narrat 2.10.6 → 2.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/app.vue.d.ts +78 -78
  2. package/dist/components/MainMenu.vue.d.ts +7 -7
  3. package/dist/components/SkillsWindow.vue.d.ts +28 -28
  4. package/dist/components/StartMenu.vue.d.ts +46 -46
  5. package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +46 -46
  6. package/dist/components/debug/debug-menu.vue.d.ts +51 -51
  7. package/dist/components/dialog-picture.vue.d.ts +11 -11
  8. package/dist/components/engine-splash/engine-splash.vue.d.ts +54 -54
  9. package/dist/components/game-dialog.vue.d.ts +65 -65
  10. package/dist/components/game-splash/game-splash.vue.d.ts +46 -46
  11. package/dist/components/hud.vue.d.ts +20 -20
  12. package/dist/components/in-game.vue.d.ts +46 -46
  13. package/dist/components/inventory/inventory-section.vue.d.ts +61 -61
  14. package/dist/components/inventory/item-details.vue.d.ts +76 -76
  15. package/dist/components/inventory-ui.vue.d.ts +39 -39
  16. package/dist/components/loading-bar.vue.d.ts +10 -10
  17. package/dist/components/menu-buttons.vue.d.ts +46 -46
  18. package/dist/components/notification-toast.vue.d.ts +6 -6
  19. package/dist/components/quests/QuestDetails.vue.d.ts +64 -64
  20. package/dist/components/quests/QuestDisplay.vue.d.ts +64 -64
  21. package/dist/components/quests/quests-list-section.vue.d.ts +75 -75
  22. package/dist/components/quests-ui.vue.d.ts +22 -22
  23. package/dist/components/save-slots.vue.d.ts +79 -79
  24. package/dist/components/saves/save-slot-ui.vue.d.ts +108 -108
  25. package/dist/components/screen-layer.vue.d.ts +76 -76
  26. package/dist/components/screen-objects/screen-object.vue.d.ts +68 -68
  27. package/dist/components/screens.vue.d.ts +46 -46
  28. package/dist/components/tabs/TabsController.vue.d.ts +72 -72
  29. package/dist/components/tabs/tab-selector.vue.d.ts +82 -82
  30. package/dist/components/tooltips/tooltips-ui.vue.d.ts +46 -46
  31. package/dist/components/transitions/NarratTransition.vue.d.ts +97 -97
  32. package/dist/components/utils/alert-modal.vue.d.ts +82 -82
  33. package/dist/components/utils/floating-tooltip.vue.d.ts +62 -62
  34. package/dist/components/utils/modal-window.vue.d.ts +18 -18
  35. package/dist/components/utils/yes-no.vue.d.ts +106 -106
  36. package/dist/components/volume-controls.vue.d.ts +18 -18
  37. package/dist/config/audio-config.d.ts +58 -58
  38. package/dist/config/buttons-config.d.ts +68 -68
  39. package/dist/config/characters-config.d.ts +36 -36
  40. package/dist/config/common-config.d.ts +80 -80
  41. package/dist/config/config-input.d.ts +231 -231
  42. package/dist/config/config-output.d.ts +232 -232
  43. package/dist/config/items-config.d.ts +71 -71
  44. package/dist/config/layout-config.d.ts +26 -26
  45. package/dist/config/quests-config.d.ts +48 -48
  46. package/dist/config/screens-config.d.ts +133 -133
  47. package/dist/config/skills-config.d.ts +70 -70
  48. package/dist/config/tooltips-config.d.ts +15 -15
  49. package/dist/config.d.ts +182 -182
  50. package/dist/constants.d.ts +12 -12
  51. package/dist/demo/demo.d.ts +1 -1
  52. package/dist/dialog-box.vue.d.ts +71 -71
  53. package/dist/exports/components.d.ts +2 -2
  54. package/dist/exports/config.d.ts +2 -2
  55. package/dist/exports/display.d.ts +2 -2
  56. package/dist/exports/events.d.ts +1 -1
  57. package/dist/exports/inputs.d.ts +1 -1
  58. package/dist/exports/others.d.ts +1 -1
  59. package/dist/exports/plugins.d.ts +67 -67
  60. package/dist/exports/stores.d.ts +16 -16
  61. package/dist/exports/utils.d.ts +12 -12
  62. package/dist/gamepad/gamepad.d.ts +1 -1
  63. package/dist/hooks/util-hooks.d.ts +1 -1
  64. package/dist/inputs/Inputs.d.ts +61 -61
  65. package/dist/lib.d.ts +20 -20
  66. package/dist/main.d.ts +6 -6
  67. package/dist/menu-buttons/menu-buttons.d.ts +7 -7
  68. package/dist/narrat.es.js +852 -827
  69. package/dist/narrat.es.js.map +1 -1
  70. package/dist/narrat.umd.js +10 -10
  71. package/dist/narrat.umd.js.map +1 -1
  72. package/dist/plugins/NarratPlugin.d.ts +12 -12
  73. package/dist/stores/audio-store.d.ts +56 -56
  74. package/dist/stores/config-store.d.ts +6 -6
  75. package/dist/stores/dialog-store.d.ts +35 -35
  76. package/dist/stores/hud-stats-store.d.ts +20 -20
  77. package/dist/stores/inputs-store.d.ts +14 -14
  78. package/dist/stores/inventory-store.d.ts +49 -49
  79. package/dist/stores/main-store.d.ts +1637 -1637
  80. package/dist/stores/menu-store.d.ts +45 -45
  81. package/dist/stores/notification-store.d.ts +15 -15
  82. package/dist/stores/quest-log.d.ts +37 -37
  83. package/dist/stores/rendering-store.d.ts +20 -20
  84. package/dist/stores/screen-objects-store.d.ts +80 -68
  85. package/dist/stores/screens-store.d.ts +34 -34
  86. package/dist/stores/skills.d.ts +39 -39
  87. package/dist/stores/start-menu-store.d.ts +7 -7
  88. package/dist/stores/tooltip-store.d.ts +18 -18
  89. package/dist/stores/vm-store.d.ts +181 -181
  90. package/dist/types/app-types.d.ts +8 -8
  91. package/dist/types/dialog-box-types.d.ts +11 -11
  92. package/dist/types/game-save.d.ts +41 -41
  93. package/dist/types/parser.d.ts +93 -93
  94. package/dist/types/state.d.ts +3 -3
  95. package/dist/utils/InputsListener.d.ts +9 -9
  96. package/dist/utils/Vector2.d.ts +49 -49
  97. package/dist/utils/ajax.d.ts +2 -2
  98. package/dist/utils/audio-loader.d.ts +10 -10
  99. package/dist/utils/characters.d.ts +4 -4
  100. package/dist/utils/data-helpers.d.ts +35 -35
  101. package/dist/utils/data-helpers.test.d.ts +1 -1
  102. package/dist/utils/debounce.d.ts +14 -14
  103. package/dist/utils/error-handling.d.ts +4 -4
  104. package/dist/utils/gameloop.d.ts +10 -10
  105. package/dist/utils/getWindow.d.ts +1 -1
  106. package/dist/utils/helpers.d.ts +6 -6
  107. package/dist/utils/images-loader.d.ts +7 -7
  108. package/dist/utils/logger.d.ts +11 -11
  109. package/dist/utils/object-iterators.d.ts +9 -9
  110. package/dist/utils/promises.d.ts +1 -1
  111. package/dist/utils/randomId.d.ts +1 -1
  112. package/dist/utils/save-helpers.d.ts +16 -16
  113. package/dist/utils/skillchecks.d.ts +17 -17
  114. package/dist/utils/string-helpers.d.ts +5 -5
  115. package/dist/utils/time-helpers.d.ts +2 -2
  116. package/dist/utils/tooltip-utils.d.ts +2 -2
  117. package/dist/utils/transition.d.ts +21 -21
  118. package/dist/utils/type-utils.d.ts +2 -2
  119. package/dist/utils/typed-emitter.d.ts +18 -18
  120. package/dist/utils/viewport-utils.d.ts +3 -3
  121. package/dist/utils/vue-directives.d.ts +2 -2
  122. package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
  123. package/dist/vm/commands/array-commands.d.ts +42 -42
  124. package/dist/vm/commands/audio-commands.d.ts +15 -15
  125. package/dist/vm/commands/choice.d.ts +38 -38
  126. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  127. package/dist/vm/commands/command-helpers.d.ts +3 -3
  128. package/dist/vm/commands/command-plugin.d.ts +43 -43
  129. package/dist/vm/commands/flow-commands.d.ts +27 -27
  130. package/dist/vm/commands/if.d.ts +10 -10
  131. package/dist/vm/commands/index.d.ts +2 -2
  132. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  133. package/dist/vm/commands/logic-command.d.ts +42 -42
  134. package/dist/vm/commands/math-commands.d.ts +30 -30
  135. package/dist/vm/commands/notify.d.ts +6 -6
  136. package/dist/vm/commands/quest-commands.d.ts +30 -30
  137. package/dist/vm/commands/random-commands.d.ts +13 -13
  138. package/dist/vm/commands/screen-commands.d.ts +18 -18
  139. package/dist/vm/commands/set.d.ts +6 -6
  140. package/dist/vm/commands/skill-commands.d.ts +39 -39
  141. package/dist/vm/commands/sprite-commands.d.ts +16 -16
  142. package/dist/vm/commands/stats-commands.d.ts +12 -12
  143. package/dist/vm/commands/string-commands.d.ts +9 -9
  144. package/dist/vm/commands/text-field.d.ts +7 -7
  145. package/dist/vm/commands/text.d.ts +14 -14
  146. package/dist/vm/commands/time-commands.d.ts +16 -16
  147. package/dist/vm/commands/util-commands.d.ts +4 -4
  148. package/dist/vm/commands/wait.d.ts +4 -4
  149. package/dist/vm/vm-helpers.d.ts +19 -19
  150. package/dist/vm/vm-parser.d.ts +19 -19
  151. package/dist/vm/vm-parser.test.d.ts +1 -1
  152. package/dist/vm/vm.d.ts +21 -21
  153. package/package.json +1 -1
package/dist/narrat.es.js CHANGED
@@ -38459,7 +38459,7 @@ const vL = "gameSave", Qp = "###_--_~=:;_JUMP", aw = "###_--_~=:;_RETURN", Uee =
38459
38459
  function Wee(t) {
38460
38460
  return t === Qp || t === aw || t === Uee || t === Yp;
38461
38461
  }
38462
- const Kee = "2.10.6", Jee = new Date("2023-02-05T18:31:59.117Z"), Gee = 400, jy = 20, mL = "1.4.0";
38462
+ const Kee = "2.10.8", Jee = new Date("2023-02-14T10:29:13.921Z"), Gee = 400, jy = 20, mL = "1.4.0";
38463
38463
  let Zr;
38464
38464
  function gL() {
38465
38465
  if (Zr)
@@ -40354,6 +40354,18 @@ function sA(t) {
40354
40354
  function Jre(t) {
40355
40355
  return typeof t == "object" && t !== null && t._entityType === "sprite";
40356
40356
  }
40357
+ function Gre(t) {
40358
+ if (t.includes(" ")) {
40359
+ const e = t.split(" ");
40360
+ return {
40361
+ label: e[0],
40362
+ args: e.slice(1)
40363
+ };
40364
+ } else
40365
+ return {
40366
+ label: t
40367
+ };
40368
+ }
40357
40369
  const Oo = hi("screenObjects", {
40358
40370
  state: () => ({
40359
40371
  tree: [],
@@ -40410,7 +40422,23 @@ const Oo = hi("screenObjects", {
40410
40422
  return this.objectsList[t];
40411
40423
  },
40412
40424
  clickObject(t) {
40413
- !bD(t) || t.onClick && (console.log("click", Date.now()), Vu("onSpriteClicked"), t.clickMethod === "run" ? En().runThenGoBackToPreviousDialog(t.onClick, !0) : t.clickMethod === "jump" || !t.clickMethod ? En().jumpToLabel(t.onClick) : Zt(`Unknown sprite click method ${t.clickMethod}`));
40425
+ var e, n, r;
40426
+ if (!!bD(t) && t.onClick) {
40427
+ console.log("click", Date.now()), Vu("onSpriteClicked");
40428
+ let i;
40429
+ if (typeof t.onClick == "string") {
40430
+ const o = Gre(t.onClick);
40431
+ i = {
40432
+ label: o.label,
40433
+ args: o.args
40434
+ };
40435
+ } else
40436
+ i = t.onClick;
40437
+ i.method = (n = (e = i.method) != null ? e : t.clickMethod) != null ? n : "jump", i.args = (r = i.args) != null ? r : [], i.method === "run" ? En().runThenGoBackToPreviousDialog(
40438
+ i.label,
40439
+ ...i.args
40440
+ ) : i.method === "jump" ? En().jumpToLabel(i.label, ...i.args) : Zt(`Unknown sprite click method ${t.clickMethod}`);
40441
+ }
40414
40442
  },
40415
40443
  generateSaveData() {
40416
40444
  return {
@@ -40455,13 +40483,10 @@ const Oo = hi("screenObjects", {
40455
40483
  generateSaveData() {
40456
40484
  return {
40457
40485
  lastLabel: this.lastLabel,
40458
- data: Fy(this.data, (t) => {
40459
- if (sA(t))
40460
- return {
40461
- _entityType: t._entityType,
40462
- id: t.id
40463
- };
40464
- })
40486
+ data: Fy(this.data, (t) => sA(t) ? {
40487
+ _entityType: t._entityType,
40488
+ id: t.id
40489
+ } : t)
40465
40490
  };
40466
40491
  },
40467
40492
  loadSaveData(t) {
@@ -40500,7 +40525,7 @@ const Oo = hi("screenObjects", {
40500
40525
  i = {
40501
40526
  ...i,
40502
40527
  ...Dre(
40503
- (u, l, f) => vie(u, l, f),
40528
+ (u, l, f) => mie(u, l, f),
40504
40529
  s,
40505
40530
  t[a]
40506
40531
  )
@@ -40728,7 +40753,7 @@ const Oo = hi("screenObjects", {
40728
40753
  }
40729
40754
  }
40730
40755
  });
40731
- class Gre {
40756
+ class Qre {
40732
40757
  constructor() {
40733
40758
  ii(this, "plugins", []);
40734
40759
  ii(this, "pinia");
@@ -40755,7 +40780,7 @@ class Gre {
40755
40780
  return e;
40756
40781
  }
40757
40782
  }
40758
- const Jn = new Gre();
40783
+ const Jn = new Qre();
40759
40784
  async function wD(t, e) {
40760
40785
  var r;
40761
40786
  const n = En();
@@ -40770,7 +40795,7 @@ async function wD(t, e) {
40770
40795
  );
40771
40796
  }
40772
40797
  }
40773
- async function Qre(t, e) {
40798
+ async function Yre(t, e) {
40774
40799
  const n = t.command, r = Jn.commands[n.commandType];
40775
40800
  if (r) {
40776
40801
  const i = {
@@ -40792,7 +40817,7 @@ async function Qre(t, e) {
40792
40817
  if (s.search(wL) === 0)
40793
40818
  u = Xs(s.substring(3));
40794
40819
  else if (jL(s)) {
40795
- const l = oc(), f = que(l, s);
40820
+ const l = oc(), f = Vue(l, s);
40796
40821
  if (f) {
40797
40822
  const [c, d] = f;
40798
40823
  u = c[d];
@@ -40812,12 +40837,12 @@ async function Qre(t, e) {
40812
40837
  throw new Error(`${n.commandType} is not a valid command`);
40813
40838
  }
40814
40839
  async function mw(t, e) {
40815
- const n = await Qre(t, e), r = Jn.commands[n.commandType];
40840
+ const n = await Yre(t, e), r = Jn.commands[n.commandType];
40816
40841
  if (r)
40817
40842
  return await r.run(n, e);
40818
40843
  throw new Error(`${n.commandType} is not a valid command`);
40819
40844
  }
40820
- async function Yre(t) {
40845
+ async function Xre(t) {
40821
40846
  Vu("onPlayerAnswered");
40822
40847
  const e = En(), n = e.popAnswerQueue(), r = e.currentLine;
40823
40848
  try {
@@ -40832,44 +40857,44 @@ async function Yre(t) {
40832
40857
  );
40833
40858
  }
40834
40859
  }
40835
- var Xre = function(e) {
40836
- return Zre(e) && !eie(e);
40860
+ var Zre = function(e) {
40861
+ return eie(e) && !tie(e);
40837
40862
  };
40838
- function Zre(t) {
40863
+ function eie(t) {
40839
40864
  return !!t && typeof t == "object";
40840
40865
  }
40841
- function eie(t) {
40866
+ function tie(t) {
40842
40867
  var e = Object.prototype.toString.call(t);
40843
- return e === "[object RegExp]" || e === "[object Date]" || rie(t);
40844
- }
40845
- var tie = typeof Symbol == "function" && Symbol.for, nie = tie ? Symbol.for("react.element") : 60103;
40846
- function rie(t) {
40847
- return t.$$typeof === nie;
40868
+ return e === "[object RegExp]" || e === "[object Date]" || iie(t);
40848
40869
  }
40870
+ var nie = typeof Symbol == "function" && Symbol.for, rie = nie ? Symbol.for("react.element") : 60103;
40849
40871
  function iie(t) {
40872
+ return t.$$typeof === rie;
40873
+ }
40874
+ function oie(t) {
40850
40875
  return Array.isArray(t) ? [] : {};
40851
40876
  }
40852
40877
  function Qf(t, e) {
40853
- return e.clone !== !1 && e.isMergeableObject(t) ? ec(iie(t), t, e) : t;
40878
+ return e.clone !== !1 && e.isMergeableObject(t) ? ec(oie(t), t, e) : t;
40854
40879
  }
40855
- function oie(t, e, n) {
40880
+ function aie(t, e, n) {
40856
40881
  return t.concat(e).map(function(r) {
40857
40882
  return Qf(r, n);
40858
40883
  });
40859
40884
  }
40860
- function aie(t, e) {
40885
+ function sie(t, e) {
40861
40886
  if (!e.customMerge)
40862
40887
  return ec;
40863
40888
  var n = e.customMerge(t);
40864
40889
  return typeof n == "function" ? n : ec;
40865
40890
  }
40866
- function sie(t) {
40891
+ function uie(t) {
40867
40892
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
40868
40893
  return t.propertyIsEnumerable(e);
40869
40894
  }) : [];
40870
40895
  }
40871
40896
  function uA(t) {
40872
- return Object.keys(t).concat(sie(t));
40897
+ return Object.keys(t).concat(uie(t));
40873
40898
  }
40874
40899
  function kD(t, e) {
40875
40900
  try {
@@ -40878,21 +40903,21 @@ function kD(t, e) {
40878
40903
  return !1;
40879
40904
  }
40880
40905
  }
40881
- function uie(t, e) {
40906
+ function lie(t, e) {
40882
40907
  return kD(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
40883
40908
  }
40884
- function lie(t, e, n) {
40909
+ function cie(t, e, n) {
40885
40910
  var r = {};
40886
40911
  return n.isMergeableObject(t) && uA(t).forEach(function(i) {
40887
40912
  r[i] = Qf(t[i], n);
40888
40913
  }), uA(e).forEach(function(i) {
40889
- uie(t, i) || (kD(t, i) && n.isMergeableObject(e[i]) ? r[i] = aie(i, n)(t[i], e[i], n) : r[i] = Qf(e[i], n));
40914
+ lie(t, i) || (kD(t, i) && n.isMergeableObject(e[i]) ? r[i] = sie(i, n)(t[i], e[i], n) : r[i] = Qf(e[i], n));
40890
40915
  }), r;
40891
40916
  }
40892
40917
  function ec(t, e, n) {
40893
- n = n || {}, n.arrayMerge = n.arrayMerge || oie, n.isMergeableObject = n.isMergeableObject || Xre, n.cloneUnlessOtherwiseSpecified = Qf;
40918
+ n = n || {}, n.arrayMerge = n.arrayMerge || aie, n.isMergeableObject = n.isMergeableObject || Zre, n.cloneUnlessOtherwiseSpecified = Qf;
40894
40919
  var r = Array.isArray(e), i = Array.isArray(t), o = r === i;
40895
- return o ? r ? n.arrayMerge(t, e, n) : lie(t, e, n) : Qf(e, n);
40920
+ return o ? r ? n.arrayMerge(t, e, n) : cie(t, e, n) : Qf(e, n);
40896
40921
  }
40897
40922
  ec.all = function(e, n) {
40898
40923
  if (!Array.isArray(e))
@@ -40901,7 +40926,7 @@ ec.all = function(e, n) {
40901
40926
  return ec(r, i, n);
40902
40927
  }, {});
40903
40928
  };
40904
- var cie = ec, rv = cie;
40929
+ var fie = ec, rv = fie;
40905
40930
  const is = hi("hud", {
40906
40931
  state: () => ({
40907
40932
  hudStats: {}
@@ -41134,7 +41159,7 @@ const is = hi("hud", {
41134
41159
  }
41135
41160
  }
41136
41161
  });
41137
- function fie(t, e, n, r) {
41162
+ function die(t, e, n, r) {
41138
41163
  const i = t / n, o = e / r;
41139
41164
  return Math.min(i, o);
41140
41165
  }
@@ -41151,7 +41176,7 @@ const Mo = hi("rendering", {
41151
41176
  },
41152
41177
  getters: {
41153
41178
  gameScaleRatio(t) {
41154
- return fie(
41179
+ return die(
41155
41180
  this.screenWidth,
41156
41181
  this.screenHeight,
41157
41182
  this.gameWidth,
@@ -41199,13 +41224,13 @@ const Mo = hi("rendering", {
41199
41224
  }
41200
41225
  }
41201
41226
  }), Hh = {};
41202
- function die(t) {
41227
+ function hie(t) {
41203
41228
  var e;
41204
41229
  return (e = Hh[t]) != null ? e : {};
41205
41230
  }
41206
41231
  function lA(t, e, n) {
41207
41232
  var s, u, l, f;
41208
- const r = die(t.transition), i = (u = (s = t.duration) != null ? s : r.duration) != null ? u : 500, o = (f = (l = t.delay) != null ? l : r.delay) != null ? f : 0;
41233
+ const r = hie(t.transition), i = (u = (s = t.duration) != null ? s : r.duration) != null ? u : 500, o = (f = (l = t.delay) != null ? l : r.delay) != null ? f : 0;
41209
41234
  return {
41210
41235
  ...t,
41211
41236
  resolve: n,
@@ -41408,7 +41433,7 @@ const ea = hi("menu", {
41408
41433
  }
41409
41434
  }
41410
41435
  });
41411
- function hie() {
41436
+ function pie() {
41412
41437
  return {
41413
41438
  baseAssetsPath: "",
41414
41439
  baseDataPath: "",
@@ -41417,7 +41442,7 @@ function hie() {
41417
41442
  debug: !1
41418
41443
  };
41419
41444
  }
41420
- class pie extends gw {
41445
+ class vie extends gw {
41421
41446
  }
41422
41447
  const rn = hi("main", {
41423
41448
  state: () => ({
@@ -41446,7 +41471,7 @@ const rn = hi("main", {
41446
41471
  },
41447
41472
  alerts: [],
41448
41473
  saving: null,
41449
- listener: new pie(),
41474
+ listener: new vie(),
41450
41475
  inScript: !1
41451
41476
  }),
41452
41477
  actions: {
@@ -41553,7 +41578,7 @@ const rn = hi("main", {
41553
41578
  ), this.alert("Success", "Game saved!")) : Zt("There was no data to save!"), this.saving.resolver(), this.saving = null;
41554
41579
  },
41555
41580
  playerAnswered(t) {
41556
- Yre(t);
41581
+ Xre(t);
41557
41582
  },
41558
41583
  menuReturn() {
41559
41584
  this.reset(), this.setFlowState("menu"), es().options.defaultMusic && wi().playChannel("music", es().options.defaultMusic, 0);
@@ -41680,7 +41705,7 @@ const rn = hi("main", {
41680
41705
  }
41681
41706
  }
41682
41707
  });
41683
- function vie(t, e, n) {
41708
+ function mie(t, e, n) {
41684
41709
  console.error(`Parser error: ${t.fileName}:${t.currentLine}`, n);
41685
41710
  const r = `[Parser Error] in <span class="error-filename">${t.fileName}:${e + 1}</span> - <b>${n}</b>`;
41686
41711
  Zt(r);
@@ -41921,25 +41946,25 @@ var X = {};
41921
41946
  }
41922
41947
  t.TypeBuilder = n, t.Type = new n();
41923
41948
  })(X);
41924
- const mie = X.Type.Object({
41949
+ const gie = X.Type.Object({
41925
41950
  src: X.Type.String(),
41926
41951
  path: X.Type.Optional(X.Type.String()),
41927
41952
  volume: X.Type.Optional(X.Type.Number()),
41928
41953
  rate: X.Type.Optional(X.Type.Number()),
41929
41954
  html5: X.Type.Optional(X.Type.Boolean())
41930
- }), gie = X.Type.Record(
41955
+ }), yie = X.Type.Record(
41931
41956
  X.Type.String(),
41932
- mie
41933
- ), yie = X.Type.Object({
41957
+ gie
41958
+ ), bie = X.Type.Object({
41934
41959
  volume: X.Type.Optional(X.Type.Number()),
41935
41960
  defaultMusic: X.Type.Optional(X.Type.String()),
41936
41961
  musicFadeInTime: X.Type.Optional(X.Type.Number()),
41937
41962
  musicFadeOutTime: X.Type.Optional(X.Type.Number()),
41938
41963
  musicFadeInDelay: X.Type.Optional(X.Type.Number())
41939
- }), bie = X.Type.Record(X.Type.String(), X.Type.String()), _D = X.Type.Object({
41940
- files: gie,
41941
- audioTriggers: bie,
41942
- options: yie
41964
+ }), wie = X.Type.Record(X.Type.String(), X.Type.String()), _D = X.Type.Object({
41965
+ files: yie,
41966
+ audioTriggers: wie,
41967
+ options: bie
41943
41968
  }), xD = {
41944
41969
  files: {},
41945
41970
  audioTriggers: {},
@@ -41949,7 +41974,7 @@ const mie = X.Type.Object({
41949
41974
  musicFadeInDelay: 0.5,
41950
41975
  musicFadeOutTime: 0.5
41951
41976
  }
41952
- }, wie = X.Type.Object({
41977
+ }, kie = X.Type.Object({
41953
41978
  name: X.Type.String(),
41954
41979
  description: X.Type.String(),
41955
41980
  icon: X.Type.String(),
@@ -41965,7 +41990,7 @@ const mie = X.Type.Object({
41965
41990
  }), jD = X.Type.Object({
41966
41991
  id: X.Type.String(),
41967
41992
  title: X.Type.String()
41968
- }), SD = X.Type.Record(X.Type.String(), wie);
41993
+ }), SD = X.Type.Record(X.Type.String(), kie);
41969
41994
  X.Type.Object({
41970
41995
  categories: X.Type.Array(jD),
41971
41996
  items: SD
@@ -41981,20 +42006,20 @@ const CD = X.Type.Object({
41981
42006
  }
41982
42007
  ],
41983
42008
  items: {}
41984
- }, kie = X.Type.Object({
42009
+ }, _ie = X.Type.Object({
41985
42010
  description: X.Type.String(),
41986
42011
  hidden: X.Type.Optional(X.Type.Boolean())
41987
- }), _ie = X.Type.Object({
42012
+ }), xie = X.Type.Object({
41988
42013
  title: X.Type.String(),
41989
42014
  description: X.Type.String(),
41990
- objectives: X.Type.Record(X.Type.String(), kie),
42015
+ objectives: X.Type.Record(X.Type.String(), _ie),
41991
42016
  category: X.Type.Optional(X.Type.String())
41992
- }), xie = X.Type.Object({
42017
+ }), jie = X.Type.Object({
41993
42018
  id: X.Type.String(),
41994
42019
  title: X.Type.String()
41995
- }), jie = X.Type.Record(X.Type.String(), _ie), OD = X.Type.Object({
41996
- quests: jie,
41997
- categories: X.Type.Array(xie)
42020
+ }), Sie = X.Type.Record(X.Type.String(), xie), OD = X.Type.Object({
42021
+ quests: Sie,
42022
+ categories: X.Type.Array(jie)
41998
42023
  }), TD = {
41999
42024
  quests: {},
42000
42025
  categories: [
@@ -42024,23 +42049,23 @@ const CD = X.Type.Object({
42024
42049
  actionType: X.Type.Optional(X.Type.String()),
42025
42050
  scriptClickable: X.Type.Optional(X.Type.Boolean()),
42026
42051
  tag: X.Type.Optional(X.Type.String())
42027
- }), Sie = X.Type.Record(X.Type.String(), AD), ED = X.Type.Object({
42028
- buttons: Sie,
42052
+ }), Cie = X.Type.Record(X.Type.String(), AD), ED = X.Type.Object({
42053
+ buttons: Cie,
42029
42054
  clickableDuringScriptsByDefault: X.Type.Optional(X.Type.Boolean())
42030
42055
  }), MD = {
42031
42056
  buttons: {},
42032
42057
  clickableDuringScriptsByDefault: !1
42033
- }, Cie = X.Type.Intersect([
42058
+ }, $ie = X.Type.Intersect([
42034
42059
  AD,
42035
42060
  X.Type.Object({
42036
42061
  id: X.Type.String()
42037
42062
  })
42038
- ]), $ie = X.Type.Object({
42063
+ ]), Oie = X.Type.Object({
42039
42064
  background: X.Type.String(),
42040
42065
  buttons: X.Type.Optional(
42041
- X.Type.Array(X.Type.Union([X.Type.String(), Cie]))
42066
+ X.Type.Array(X.Type.Union([X.Type.String(), $ie]))
42042
42067
  )
42043
- }), PD = X.Type.Record(X.Type.String(), $ie);
42068
+ }), PD = X.Type.Record(X.Type.String(), Oie);
42044
42069
  X.Type.Object({
42045
42070
  screens: PD
42046
42071
  });
@@ -42048,7 +42073,7 @@ const ID = X.Type.Object({
42048
42073
  screens: X.Type.Optional(PD)
42049
42074
  }), ND = {
42050
42075
  screens: {}
42051
- }, Oie = X.Type.Object({
42076
+ }, Tie = X.Type.Object({
42052
42077
  name: X.Type.String(),
42053
42078
  description: X.Type.String(),
42054
42079
  startingLevel: X.Type.Number(),
@@ -42056,7 +42081,7 @@ const ID = X.Type.Object({
42056
42081
  icon: X.Type.String()
42057
42082
  }), LD = X.Type.Record(
42058
42083
  X.Type.String(),
42059
- Oie
42084
+ Tie
42060
42085
  ), DD = X.Type.Object({
42061
42086
  xpPerLevel: X.Type.Number(),
42062
42087
  notifyLevelUp: X.Type.Boolean()
@@ -42095,26 +42120,26 @@ const zD = X.Type.Object({
42095
42120
  xpPerLevel: 10,
42096
42121
  notifyLevelUp: !0
42097
42122
  }
42098
- }, Tie = X.Type.Object({
42123
+ }, Aie = X.Type.Object({
42099
42124
  color: X.Type.Optional(X.Type.String()),
42100
42125
  boxCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
42101
42126
  nameCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any())),
42102
42127
  textCss: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.Any()))
42103
- }), Aie = X.Type.Object({
42128
+ }), Eie = X.Type.Object({
42104
42129
  sprites: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
42105
42130
  name: X.Type.String(),
42106
- style: X.Type.Optional(Tie)
42131
+ style: X.Type.Optional(Aie)
42107
42132
  }), BD = X.Type.Object({
42108
42133
  config: X.Type.Object({
42109
42134
  imagesPath: X.Type.String()
42110
42135
  }),
42111
- characters: X.Type.Record(X.Type.String(), Aie)
42136
+ characters: X.Type.Record(X.Type.String(), Eie)
42112
42137
  }), qD = {
42113
42138
  config: {
42114
42139
  imagesPath: ""
42115
42140
  },
42116
42141
  characters: {}
42117
- }, Eie = X.Type.Object({
42142
+ }, Mie = X.Type.Object({
42118
42143
  backgrounds: X.Type.Object({
42119
42144
  width: X.Type.Number(),
42120
42145
  height: X.Type.Number()
@@ -42142,7 +42167,7 @@ const zD = X.Type.Object({
42142
42167
  })
42143
42168
  )
42144
42169
  })
42145
- }), Mie = {
42170
+ }), Pie = {
42146
42171
  backgrounds: {
42147
42172
  width: 880,
42148
42173
  height: 720
@@ -42178,7 +42203,7 @@ const zD = X.Type.Object({
42178
42203
  baseDataPath: "",
42179
42204
  gameTitle: "Narrat Game",
42180
42205
  images: {},
42181
- layout: Mie,
42206
+ layout: Pie,
42182
42207
  gameFlow: {},
42183
42208
  dialogPanel: {
42184
42209
  overlayMode: !0,
@@ -42228,7 +42253,7 @@ const zD = X.Type.Object({
42228
42253
  this.config = t;
42229
42254
  }
42230
42255
  }
42231
- }), Pie = X.Type.Optional(
42256
+ }), Iie = X.Type.Optional(
42232
42257
  X.Type.Object({
42233
42258
  animateText: X.Type.Optional(X.Type.Boolean()),
42234
42259
  textSpeed: X.Type.Optional(X.Type.Number()),
@@ -42239,7 +42264,7 @@ const zD = X.Type.Object({
42239
42264
  width: X.Type.Optional(X.Type.Number()),
42240
42265
  height: X.Type.Optional(X.Type.Number())
42241
42266
  })
42242
- ), Iie = X.Type.Object({
42267
+ ), Nie = X.Type.Object({
42243
42268
  engineSplashScreen: X.Type.Optional(
42244
42269
  X.Type.Object({
42245
42270
  skip: X.Type.Optional(X.Type.Boolean()),
@@ -42254,67 +42279,67 @@ const zD = X.Type.Object({
42254
42279
  startButtonText: X.Type.Optional(X.Type.String())
42255
42280
  })
42256
42281
  )
42257
- }), Nie = X.Type.Object({
42282
+ }), Lie = X.Type.Object({
42258
42283
  timeOnScreen: X.Type.Number(),
42259
42284
  alsoPrintInDialogue: X.Type.Optional(X.Type.Boolean())
42260
- }), Lie = X.Type.Object({
42285
+ }), Die = X.Type.Object({
42261
42286
  name: X.Type.String(),
42262
42287
  icon: X.Type.String(),
42263
42288
  startingValue: X.Type.Number(),
42264
42289
  maxValue: X.Type.Optional(X.Type.Number()),
42265
42290
  minValue: X.Type.Optional(X.Type.Number())
42266
- }), Die = X.Type.Record(
42291
+ }), Rie = X.Type.Record(
42267
42292
  X.Type.String(),
42268
- Lie
42269
- ), Rie = X.Type.Record(
42293
+ Die
42294
+ ), zie = X.Type.Record(
42270
42295
  X.Type.String(),
42271
42296
  X.Type.Object({
42272
42297
  onlyInteractOutsideOfScripts: X.Type.Optional(X.Type.Boolean())
42273
42298
  })
42274
- ), zie = X.Type.Object({
42299
+ ), Fie = X.Type.Object({
42275
42300
  delay: X.Type.Optional(X.Type.Number()),
42276
42301
  duration: X.Type.Optional(X.Type.Number())
42277
- }), Fie = X.Type.Record(
42302
+ }), Bie = X.Type.Record(
42278
42303
  X.Type.String(),
42279
- zie
42280
- ), Bie = X.Type.Object({
42304
+ Fie
42305
+ ), qie = X.Type.Object({
42281
42306
  text: X.Type.String()
42282
- }), qie = X.Type.Record(
42307
+ }), Vie = X.Type.Record(
42283
42308
  X.Type.String(),
42284
- Bie
42285
- ), Vie = X.Type.Object({
42309
+ qie
42310
+ ), Hie = X.Type.Object({
42286
42311
  showScriptFinishedMessage: X.Type.Optional(X.Type.Boolean())
42287
- }), Hie = X.Type.Object({
42312
+ }), Uie = X.Type.Object({
42288
42313
  mode: X.Type.String(),
42289
42314
  slots: X.Type.Number()
42290
- }), WD = X.Type.Array(X.Type.String()), Uie = [], Wie = X.Type.Object({
42315
+ }), WD = X.Type.Array(X.Type.String()), Wie = [], Kie = X.Type.Object({
42291
42316
  baseAssetsPath: X.Type.Optional(X.Type.String()),
42292
42317
  baseDataPath: X.Type.Optional(X.Type.String()),
42293
42318
  gameTitle: X.Type.String(),
42294
42319
  images: X.Type.Optional(X.Type.Record(X.Type.String(), X.Type.String())),
42295
- layout: Eie,
42320
+ layout: Mie,
42296
42321
  gameFlow: X.Type.Optional(
42297
42322
  X.Type.Object({
42298
42323
  labelToJumpOnScriptEnd: X.Type.Optional(X.Type.String())
42299
42324
  })
42300
42325
  ),
42301
- dialogPanel: X.Type.Optional(Pie),
42302
- splashScreens: X.Type.Optional(Iie),
42326
+ dialogPanel: X.Type.Optional(Iie),
42327
+ splashScreens: X.Type.Optional(Nie),
42303
42328
  screens: X.Type.Union([X.Type.String(), ID]),
42304
42329
  buttons: X.Type.Optional(X.Type.Union([X.Type.String(), ED])),
42305
42330
  skills: X.Type.Optional(X.Type.Union([X.Type.String(), zD])),
42306
42331
  scripts: X.Type.Union([X.Type.String(), WD]),
42307
42332
  audio: X.Type.Union([X.Type.String(), _D]),
42308
- notifications: X.Type.Optional(Nie),
42333
+ notifications: X.Type.Optional(Lie),
42309
42334
  tooltips: X.Type.Optional(X.Type.Union([X.Type.String(), VD])),
42310
- hudStats: Die,
42335
+ hudStats: Rie,
42311
42336
  items: X.Type.Optional(X.Type.Union([X.Type.String(), CD])),
42312
- interactionTags: X.Type.Optional(Rie),
42337
+ interactionTags: X.Type.Optional(zie),
42313
42338
  quests: X.Type.Optional(X.Type.Union([X.Type.String(), OD])),
42314
- transitions: X.Type.Optional(Fie),
42315
- menuButtons: X.Type.Optional(qie),
42316
- debugging: X.Type.Optional(Vie),
42317
- saves: X.Type.Optional(Hie),
42339
+ transitions: X.Type.Optional(Bie),
42340
+ menuButtons: X.Type.Optional(Vie),
42341
+ debugging: X.Type.Optional(Hie),
42342
+ saves: X.Type.Optional(Uie),
42318
42343
  characters: X.Type.Union([X.Type.String(), BD])
42319
42344
  });
42320
42345
  var My = { exports: {} }, KD = {}, ra = {}, nc = {}, jd = {}, Pn = {}, Yf = {};
@@ -43229,7 +43254,7 @@ var Vn = {};
43229
43254
  })(Vn);
43230
43255
  var Ha = {};
43231
43256
  Object.defineProperty(Ha, "__esModule", { value: !0 });
43232
- const yi = Pn, Kie = {
43257
+ const yi = Pn, Jie = {
43233
43258
  data: new yi.Name("data"),
43234
43259
  valCxt: new yi.Name("valCxt"),
43235
43260
  instancePath: new yi.Name("instancePath"),
@@ -43247,7 +43272,7 @@ const yi = Pn, Kie = {
43247
43272
  jsonLen: new yi.Name("jsonLen"),
43248
43273
  jsonPart: new yi.Name("jsonPart")
43249
43274
  };
43250
- Ha.default = Kie;
43275
+ Ha.default = Jie;
43251
43276
  (function(t) {
43252
43277
  Object.defineProperty(t, "__esModule", { value: !0 }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0;
43253
43278
  const e = Pn, n = Vn, r = Ha;
@@ -43322,19 +43347,19 @@ Ha.default = Kie;
43322
43347
  })(jd);
43323
43348
  Object.defineProperty(nc, "__esModule", { value: !0 });
43324
43349
  nc.boolOrEmptySchema = nc.topBoolOrEmptySchema = void 0;
43325
- const Jie = jd, Gie = Pn, Qie = Ha, Yie = {
43350
+ const Gie = jd, Qie = Pn, Yie = Ha, Xie = {
43326
43351
  message: "boolean schema is false"
43327
43352
  };
43328
- function Xie(t) {
43353
+ function Zie(t) {
43329
43354
  const { gen: e, schema: n, validateName: r } = t;
43330
- n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(Qie.default.data) : (e.assign((0, Gie._)`${r}.errors`, null), e.return(!0));
43355
+ n === !1 ? JD(t, !1) : typeof n == "object" && n.$async === !0 ? e.return(Yie.default.data) : (e.assign((0, Qie._)`${r}.errors`, null), e.return(!0));
43331
43356
  }
43332
- nc.topBoolOrEmptySchema = Xie;
43333
- function Zie(t, e) {
43357
+ nc.topBoolOrEmptySchema = Zie;
43358
+ function eoe(t, e) {
43334
43359
  const { gen: n, schema: r } = t;
43335
43360
  r === !1 ? (n.var(e, !1), JD(t)) : n.var(e, !0);
43336
43361
  }
43337
- nc.boolOrEmptySchema = Zie;
43362
+ nc.boolOrEmptySchema = eoe;
43338
43363
  function JD(t, e) {
43339
43364
  const { gen: n, data: r } = t, i = {
43340
43365
  gen: n,
@@ -43346,17 +43371,17 @@ function JD(t, e) {
43346
43371
  params: {},
43347
43372
  it: t
43348
43373
  };
43349
- (0, Jie.reportError)(i, Yie, void 0, e);
43374
+ (0, Gie.reportError)(i, Xie, void 0, e);
43350
43375
  }
43351
43376
  var Sd = {}, Uu = {};
43352
43377
  Object.defineProperty(Uu, "__esModule", { value: !0 });
43353
43378
  Uu.getRules = Uu.isJSONType = void 0;
43354
- const eoe = ["string", "number", "integer", "boolean", "null", "object", "array"], toe = new Set(eoe);
43355
- function noe(t) {
43356
- return typeof t == "string" && toe.has(t);
43379
+ const toe = ["string", "number", "integer", "boolean", "null", "object", "array"], noe = new Set(toe);
43380
+ function roe(t) {
43381
+ return typeof t == "string" && noe.has(t);
43357
43382
  }
43358
- Uu.isJSONType = noe;
43359
- function roe() {
43383
+ Uu.isJSONType = roe;
43384
+ function ioe() {
43360
43385
  const t = {
43361
43386
  number: { type: "number", rules: [] },
43362
43387
  string: { type: "string", rules: [] },
@@ -43371,15 +43396,15 @@ function roe() {
43371
43396
  keywords: {}
43372
43397
  };
43373
43398
  }
43374
- Uu.getRules = roe;
43399
+ Uu.getRules = ioe;
43375
43400
  var ss = {};
43376
43401
  Object.defineProperty(ss, "__esModule", { value: !0 });
43377
43402
  ss.shouldUseRule = ss.shouldUseGroup = ss.schemaHasRulesForType = void 0;
43378
- function ioe({ schema: t, self: e }, n) {
43403
+ function ooe({ schema: t, self: e }, n) {
43379
43404
  const r = e.RULES.types[n];
43380
43405
  return r && r !== !0 && GD(t, r);
43381
43406
  }
43382
- ss.schemaHasRulesForType = ioe;
43407
+ ss.schemaHasRulesForType = ooe;
43383
43408
  function GD(t, e) {
43384
43409
  return e.rules.some((n) => QD(t, n));
43385
43410
  }
@@ -43537,8 +43562,8 @@ ss.shouldUseRule = QD;
43537
43562
  var sm = {};
43538
43563
  Object.defineProperty(sm, "__esModule", { value: !0 });
43539
43564
  sm.assignDefaults = void 0;
43540
- const ul = Pn, ooe = Vn;
43541
- function aoe(t, e) {
43565
+ const ul = Pn, aoe = Vn;
43566
+ function soe(t, e) {
43542
43567
  const { properties: n, items: r } = t.schema;
43543
43568
  if (e === "object" && n)
43544
43569
  for (const i in n)
@@ -43546,14 +43571,14 @@ function aoe(t, e) {
43546
43571
  else
43547
43572
  e === "array" && Array.isArray(r) && r.forEach((i, o) => cA(t, o, i.default));
43548
43573
  }
43549
- sm.assignDefaults = aoe;
43574
+ sm.assignDefaults = soe;
43550
43575
  function cA(t, e, n) {
43551
43576
  const { gen: r, compositeRule: i, data: o, opts: a } = t;
43552
43577
  if (n === void 0)
43553
43578
  return;
43554
43579
  const s = (0, ul._)`${o}${(0, ul.getProperty)(e)}`;
43555
43580
  if (i) {
43556
- (0, ooe.checkStrictMode)(t, `default is ignored for: ${s}`);
43581
+ (0, aoe.checkStrictMode)(t, `default is ignored for: ${s}`);
43557
43582
  return;
43558
43583
  }
43559
43584
  let u = (0, ul._)`${s} === undefined`;
@@ -43562,22 +43587,22 @@ function cA(t, e, n) {
43562
43587
  var Ta = {}, An = {};
43563
43588
  Object.defineProperty(An, "__esModule", { value: !0 });
43564
43589
  An.validateUnion = An.validateArray = An.usePattern = An.callValidateCode = An.schemaProperties = An.allSchemaProperties = An.noPropertyInData = An.propertyInData = An.isOwnProperty = An.hasPropFunc = An.reportMissingProp = An.checkMissingProp = An.checkReportMissingProp = void 0;
43565
- const br = Pn, yw = Vn, $s = Ha, soe = Vn;
43566
- function uoe(t, e) {
43590
+ const br = Pn, yw = Vn, $s = Ha, uoe = Vn;
43591
+ function loe(t, e) {
43567
43592
  const { gen: n, data: r, it: i } = t;
43568
43593
  n.if(ww(n, r, e, i.opts.ownProperties), () => {
43569
43594
  t.setParams({ missingProperty: (0, br._)`${e}` }, !0), t.error();
43570
43595
  });
43571
43596
  }
43572
- An.checkReportMissingProp = uoe;
43573
- function loe({ gen: t, data: e, it: { opts: n } }, r, i) {
43597
+ An.checkReportMissingProp = loe;
43598
+ function coe({ gen: t, data: e, it: { opts: n } }, r, i) {
43574
43599
  return (0, br.or)(...r.map((o) => (0, br.and)(ww(t, e, o, n.ownProperties), (0, br._)`${i} = ${o}`)));
43575
43600
  }
43576
- An.checkMissingProp = loe;
43577
- function coe(t, e) {
43601
+ An.checkMissingProp = coe;
43602
+ function foe(t, e) {
43578
43603
  t.setParams({ missingProperty: e }, !0), t.error();
43579
43604
  }
43580
- An.reportMissingProp = coe;
43605
+ An.reportMissingProp = foe;
43581
43606
  function YD(t) {
43582
43607
  return t.scopeValue("func", {
43583
43608
  ref: Object.prototype.hasOwnProperty,
@@ -43589,11 +43614,11 @@ function bw(t, e, n) {
43589
43614
  return (0, br._)`${YD(t)}.call(${e}, ${n})`;
43590
43615
  }
43591
43616
  An.isOwnProperty = bw;
43592
- function foe(t, e, n, r) {
43617
+ function doe(t, e, n, r) {
43593
43618
  const i = (0, br._)`${e}${(0, br.getProperty)(n)} !== undefined`;
43594
43619
  return r ? (0, br._)`${i} && ${bw(t, e, n)}` : i;
43595
43620
  }
43596
- An.propertyInData = foe;
43621
+ An.propertyInData = doe;
43597
43622
  function ww(t, e, n, r) {
43598
43623
  const i = (0, br._)`${e}${(0, br.getProperty)(n)} === undefined`;
43599
43624
  return r ? (0, br.or)(i, (0, br.not)(bw(t, e, n))) : i;
@@ -43603,11 +43628,11 @@ function XD(t) {
43603
43628
  return t ? Object.keys(t).filter((e) => e !== "__proto__") : [];
43604
43629
  }
43605
43630
  An.allSchemaProperties = XD;
43606
- function doe(t, e) {
43631
+ function hoe(t, e) {
43607
43632
  return XD(e).filter((n) => !(0, yw.alwaysValidSchema)(t, e[n]));
43608
43633
  }
43609
- An.schemaProperties = doe;
43610
- function hoe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: o }, it: a }, s, u, l) {
43634
+ An.schemaProperties = hoe;
43635
+ function poe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath: i, errorPath: o }, it: a }, s, u, l) {
43611
43636
  const f = l ? (0, br._)`${t}, ${e}, ${r}${i}` : e, c = [
43612
43637
  [$s.default.instancePath, (0, br.strConcat)($s.default.instancePath, o)],
43613
43638
  [$s.default.parentData, a.parentData],
@@ -43618,18 +43643,18 @@ function hoe({ schemaCode: t, data: e, it: { gen: n, topSchemaRef: r, schemaPath
43618
43643
  const d = (0, br._)`${f}, ${n.object(...c)}`;
43619
43644
  return u !== br.nil ? (0, br._)`${s}.call(${u}, ${d})` : (0, br._)`${s}(${d})`;
43620
43645
  }
43621
- An.callValidateCode = hoe;
43622
- const poe = (0, br._)`new RegExp`;
43623
- function voe({ gen: t, it: { opts: e } }, n) {
43646
+ An.callValidateCode = poe;
43647
+ const voe = (0, br._)`new RegExp`;
43648
+ function moe({ gen: t, it: { opts: e } }, n) {
43624
43649
  const r = e.unicodeRegExp ? "u" : "", { regExp: i } = e.code, o = i(n, r);
43625
43650
  return t.scopeValue("pattern", {
43626
43651
  key: o.toString(),
43627
43652
  ref: o,
43628
- code: (0, br._)`${i.code === "new RegExp" ? poe : (0, soe.useFunc)(t, i)}(${n}, ${r})`
43653
+ code: (0, br._)`${i.code === "new RegExp" ? voe : (0, uoe.useFunc)(t, i)}(${n}, ${r})`
43629
43654
  });
43630
43655
  }
43631
- An.usePattern = voe;
43632
- function moe(t) {
43656
+ An.usePattern = moe;
43657
+ function goe(t) {
43633
43658
  const { gen: e, data: n, keyword: r, it: i } = t, o = e.name("valid");
43634
43659
  if (i.allErrors) {
43635
43660
  const s = e.let("valid", !0);
@@ -43647,8 +43672,8 @@ function moe(t) {
43647
43672
  });
43648
43673
  }
43649
43674
  }
43650
- An.validateArray = moe;
43651
- function goe(t) {
43675
+ An.validateArray = goe;
43676
+ function yoe(t) {
43652
43677
  const { gen: e, schema: n, keyword: r, it: i } = t;
43653
43678
  if (!Array.isArray(n))
43654
43679
  throw new Error("ajv implementation error");
@@ -43664,11 +43689,11 @@ function goe(t) {
43664
43689
  e.assign(a, (0, br._)`${a} || ${s}`), t.mergeValidEvaluated(f, s) || e.if((0, br.not)(a));
43665
43690
  })), t.result(a, () => t.reset(), () => t.error(!0));
43666
43691
  }
43667
- An.validateUnion = goe;
43692
+ An.validateUnion = yoe;
43668
43693
  Object.defineProperty(Ta, "__esModule", { value: !0 });
43669
43694
  Ta.validateKeywordUsage = Ta.validSchemaType = Ta.funcKeywordCode = Ta.macroKeywordCode = void 0;
43670
- const Ii = Pn, bu = Ha, yoe = An, boe = jd;
43671
- function woe(t, e) {
43695
+ const Ii = Pn, bu = Ha, boe = An, woe = jd;
43696
+ function koe(t, e) {
43672
43697
  const { gen: n, keyword: r, schema: i, parentSchema: o, it: a } = t, s = e.macro.call(a.self, i, o, a), u = ZD(n, r, s);
43673
43698
  a.opts.validateSchema !== !1 && a.self.validateSchema(s, !0);
43674
43699
  const l = n.name("valid");
@@ -43680,11 +43705,11 @@ function woe(t, e) {
43680
43705
  compositeRule: !0
43681
43706
  }, l), t.pass(l, () => t.error(!0));
43682
43707
  }
43683
- Ta.macroKeywordCode = woe;
43684
- function koe(t, e) {
43708
+ Ta.macroKeywordCode = koe;
43709
+ function _oe(t, e) {
43685
43710
  var n;
43686
43711
  const { gen: r, keyword: i, schema: o, parentSchema: a, $data: s, it: u } = t;
43687
- xoe(u, e);
43712
+ joe(u, e);
43688
43713
  const l = !s && e.compile ? e.compile.call(u.self, o, a, u) : e.validate, f = ZD(r, i, l), c = r.let("valid");
43689
43714
  t.block$data(c, d), t.ok((n = e.valid) !== null && n !== void 0 ? n : c);
43690
43715
  function d() {
@@ -43692,7 +43717,7 @@ function koe(t, e) {
43692
43717
  v(), e.modifying && fA(t), g(() => t.error());
43693
43718
  else {
43694
43719
  const m = e.async ? h() : p();
43695
- e.modifying && fA(t), g(() => _oe(t, m));
43720
+ e.modifying && fA(t), g(() => xoe(t, m));
43696
43721
  }
43697
43722
  }
43698
43723
  function h() {
@@ -43705,25 +43730,25 @@ function koe(t, e) {
43705
43730
  }
43706
43731
  function v(m = e.async ? (0, Ii._)`await ` : Ii.nil) {
43707
43732
  const y = u.opts.passContext ? bu.default.this : bu.default.self, b = !("compile" in e && !s || e.schema === !1);
43708
- r.assign(c, (0, Ii._)`${m}${(0, yoe.callValidateCode)(t, f, y, b)}`, e.modifying);
43733
+ r.assign(c, (0, Ii._)`${m}${(0, boe.callValidateCode)(t, f, y, b)}`, e.modifying);
43709
43734
  }
43710
43735
  function g(m) {
43711
43736
  var y;
43712
43737
  r.if((0, Ii.not)((y = e.valid) !== null && y !== void 0 ? y : c), m);
43713
43738
  }
43714
43739
  }
43715
- Ta.funcKeywordCode = koe;
43740
+ Ta.funcKeywordCode = _oe;
43716
43741
  function fA(t) {
43717
43742
  const { gen: e, data: n, it: r } = t;
43718
43743
  e.if(r.parentData, () => e.assign(n, (0, Ii._)`${r.parentData}[${r.parentDataProperty}]`));
43719
43744
  }
43720
- function _oe(t, e) {
43745
+ function xoe(t, e) {
43721
43746
  const { gen: n } = t;
43722
43747
  n.if((0, Ii._)`Array.isArray(${e})`, () => {
43723
- n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0, boe.extendErrors)(t);
43748
+ n.assign(bu.default.vErrors, (0, Ii._)`${bu.default.vErrors} === null ? ${e} : ${bu.default.vErrors}.concat(${e})`).assign(bu.default.errors, (0, Ii._)`${bu.default.vErrors}.length`), (0, woe.extendErrors)(t);
43724
43749
  }, () => t.error());
43725
43750
  }
43726
- function xoe({ schemaEnv: t }, e) {
43751
+ function joe({ schemaEnv: t }, e) {
43727
43752
  if (e.async && !t.$async)
43728
43753
  throw new Error("async keyword in sync schema");
43729
43754
  }
@@ -43732,11 +43757,11 @@ function ZD(t, e, n) {
43732
43757
  throw new Error(`keyword "${e}" failed to compile`);
43733
43758
  return t.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, Ii.stringify)(n) });
43734
43759
  }
43735
- function joe(t, e, n = !1) {
43760
+ function Soe(t, e, n = !1) {
43736
43761
  return !e.length || e.some((r) => r === "array" ? Array.isArray(t) : r === "object" ? t && typeof t == "object" && !Array.isArray(t) : typeof t == r || n && typeof t > "u");
43737
43762
  }
43738
- Ta.validSchemaType = joe;
43739
- function Soe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43763
+ Ta.validSchemaType = Soe;
43764
+ function Coe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43740
43765
  if (Array.isArray(i.keyword) ? !i.keyword.includes(o) : i.keyword !== o)
43741
43766
  throw new Error("ajv implementation error");
43742
43767
  const a = i.dependencies;
@@ -43750,12 +43775,12 @@ function Soe({ schema: t, opts: e, self: n, errSchemaPath: r }, i, o) {
43750
43775
  throw new Error(u);
43751
43776
  }
43752
43777
  }
43753
- Ta.validateKeywordUsage = Soe;
43778
+ Ta.validateKeywordUsage = Coe;
43754
43779
  var Bs = {};
43755
43780
  Object.defineProperty(Bs, "__esModule", { value: !0 });
43756
43781
  Bs.extendSubschemaMode = Bs.extendSubschemaData = Bs.getSubschema = void 0;
43757
43782
  const xa = Pn, eR = Vn;
43758
- function Coe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
43783
+ function $oe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
43759
43784
  if (e !== void 0 && r !== void 0)
43760
43785
  throw new Error('both "keyword" and "schema" passed, only one allowed');
43761
43786
  if (e !== void 0) {
@@ -43782,8 +43807,8 @@ function Coe(t, { keyword: e, schemaProp: n, schema: r, schemaPath: i, errSchema
43782
43807
  }
43783
43808
  throw new Error('either "keyword" or "schema" must be passed');
43784
43809
  }
43785
- Bs.getSubschema = Coe;
43786
- function $oe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, propertyName: a }) {
43810
+ Bs.getSubschema = $oe;
43811
+ function Ooe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, propertyName: a }) {
43787
43812
  if (i !== void 0 && n !== void 0)
43788
43813
  throw new Error('both "data" and "dataProp" passed, only one allowed');
43789
43814
  const { gen: s } = e;
@@ -43800,11 +43825,11 @@ function $oe(t, e, { dataProp: n, dataPropType: r, data: i, dataTypes: o, proper
43800
43825
  t.data = l, t.dataLevel = e.dataLevel + 1, t.dataTypes = [], e.definedProperties = /* @__PURE__ */ new Set(), t.parentData = e.data, t.dataNames = [...e.dataNames, l];
43801
43826
  }
43802
43827
  }
43803
- Bs.extendSubschemaData = $oe;
43804
- function Ooe(t, { jtdDiscriminator: e, jtdMetadata: n, compositeRule: r, createErrors: i, allErrors: o }) {
43828
+ Bs.extendSubschemaData = Ooe;
43829
+ function Toe(t, { jtdDiscriminator: e, jtdMetadata: n, compositeRule: r, createErrors: i, allErrors: o }) {
43805
43830
  r !== void 0 && (t.compositeRule = r), i !== void 0 && (t.createErrors = i), o !== void 0 && (t.allErrors = o), t.jtdDiscriminator = e, t.jtdMetadata = n;
43806
43831
  }
43807
- Bs.extendSubschemaMode = Ooe;
43832
+ Bs.extendSubschemaMode = Toe;
43808
43833
  var ui = {}, tR = function t(e, n) {
43809
43834
  if (e === n)
43810
43835
  return !0;
@@ -43902,19 +43927,19 @@ function Uh(t, e, n, r, i, o, a, s, u, l) {
43902
43927
  } else if (f in Ns.propsKeywords) {
43903
43928
  if (c && typeof c == "object")
43904
43929
  for (var h in c)
43905
- Uh(t, e, n, c[h], i + "/" + f + "/" + Toe(h), o, i, f, r, h);
43930
+ Uh(t, e, n, c[h], i + "/" + f + "/" + Aoe(h), o, i, f, r, h);
43906
43931
  } else
43907
43932
  (f in Ns.keywords || t.allKeys && !(f in Ns.skipKeywords)) && Uh(t, e, n, c, i + "/" + f, o, i, f, r);
43908
43933
  }
43909
43934
  n(r, i, o, a, s, u, l);
43910
43935
  }
43911
43936
  }
43912
- function Toe(t) {
43937
+ function Aoe(t) {
43913
43938
  return t.replace(/~/g, "~0").replace(/\//g, "~1");
43914
43939
  }
43915
43940
  Object.defineProperty(ui, "__esModule", { value: !0 });
43916
43941
  ui.getSchemaRefs = ui.resolveUrl = ui.normalizeId = ui._getFullPath = ui.getFullPath = ui.inlineRef = void 0;
43917
- const Aoe = Vn, Eoe = tR, Moe = nR.exports, Poe = /* @__PURE__ */ new Set([
43942
+ const Eoe = Vn, Moe = tR, Poe = nR.exports, Ioe = /* @__PURE__ */ new Set([
43918
43943
  "type",
43919
43944
  "format",
43920
43945
  "pattern",
@@ -43932,11 +43957,11 @@ const Aoe = Vn, Eoe = tR, Moe = nR.exports, Poe = /* @__PURE__ */ new Set([
43932
43957
  "enum",
43933
43958
  "const"
43934
43959
  ]);
43935
- function Ioe(t, e = !0) {
43960
+ function Noe(t, e = !0) {
43936
43961
  return typeof t == "boolean" ? !0 : e === !0 ? !Iy(t) : e ? rR(t) <= e : !1;
43937
43962
  }
43938
- ui.inlineRef = Ioe;
43939
- const Noe = /* @__PURE__ */ new Set([
43963
+ ui.inlineRef = Noe;
43964
+ const Loe = /* @__PURE__ */ new Set([
43940
43965
  "$ref",
43941
43966
  "$recursiveRef",
43942
43967
  "$recursiveAnchor",
@@ -43945,7 +43970,7 @@ const Noe = /* @__PURE__ */ new Set([
43945
43970
  ]);
43946
43971
  function Iy(t) {
43947
43972
  for (const e in t) {
43948
- if (Noe.has(e))
43973
+ if (Loe.has(e))
43949
43974
  return !0;
43950
43975
  const n = t[e];
43951
43976
  if (Array.isArray(n) && n.some(Iy) || typeof n == "object" && Iy(n))
@@ -43958,7 +43983,7 @@ function rR(t) {
43958
43983
  for (const n in t) {
43959
43984
  if (n === "$ref")
43960
43985
  return 1 / 0;
43961
- if (e++, !Poe.has(n) && (typeof t[n] == "object" && (0, Aoe.eachItem)(t[n], (r) => e += rR(r)), e === 1 / 0))
43986
+ if (e++, !Ioe.has(n) && (typeof t[n] == "object" && (0, Eoe.eachItem)(t[n], (r) => e += rR(r)), e === 1 / 0))
43962
43987
  return 1 / 0;
43963
43988
  }
43964
43989
  return e;
@@ -43973,21 +43998,21 @@ function oR(t, e) {
43973
43998
  return t.serialize(e).split("#")[0] + "#";
43974
43999
  }
43975
44000
  ui._getFullPath = oR;
43976
- const Loe = /#\/?$/;
44001
+ const Doe = /#\/?$/;
43977
44002
  function Ll(t) {
43978
- return t ? t.replace(Loe, "") : "";
44003
+ return t ? t.replace(Doe, "") : "";
43979
44004
  }
43980
44005
  ui.normalizeId = Ll;
43981
- function Doe(t, e, n) {
44006
+ function Roe(t, e, n) {
43982
44007
  return n = Ll(n), t.resolve(e, n);
43983
44008
  }
43984
- ui.resolveUrl = Doe;
43985
- const Roe = /^[a-z_][-a-z0-9._]*$/i;
43986
- function zoe(t, e) {
44009
+ ui.resolveUrl = Roe;
44010
+ const zoe = /^[a-z_][-a-z0-9._]*$/i;
44011
+ function Foe(t, e) {
43987
44012
  if (typeof t == "boolean")
43988
44013
  return {};
43989
44014
  const { schemaId: n, uriResolver: r } = this.opts, i = Ll(t[n] || e), o = { "": i }, a = iR(r, i, !1), s = {}, u = /* @__PURE__ */ new Set();
43990
- return Moe(t, { allKeys: !0 }, (c, d, h, p) => {
44015
+ return Poe(t, { allKeys: !0 }, (c, d, h, p) => {
43991
44016
  if (p === void 0)
43992
44017
  return;
43993
44018
  const v = a + d;
@@ -44003,54 +44028,54 @@ function zoe(t, e) {
44003
44028
  }
44004
44029
  function y(b) {
44005
44030
  if (typeof b == "string") {
44006
- if (!Roe.test(b))
44031
+ if (!zoe.test(b))
44007
44032
  throw new Error(`invalid anchor "${b}"`);
44008
44033
  m.call(this, `#${b}`);
44009
44034
  }
44010
44035
  }
44011
44036
  }), s;
44012
44037
  function l(c, d, h) {
44013
- if (d !== void 0 && !Eoe(c, d))
44038
+ if (d !== void 0 && !Moe(c, d))
44014
44039
  throw f(h);
44015
44040
  }
44016
44041
  function f(c) {
44017
44042
  return new Error(`reference "${c}" resolves to more than one schema`);
44018
44043
  }
44019
44044
  }
44020
- ui.getSchemaRefs = zoe;
44045
+ ui.getSchemaRefs = Foe;
44021
44046
  Object.defineProperty(ra, "__esModule", { value: !0 });
44022
44047
  ra.getData = ra.KeywordCxt = ra.validateFunctionCode = void 0;
44023
- const aR = nc, dA = Sd, kw = ss, iv = Sd, Foe = sm, lf = Ta, Cg = Bs, Dt = Pn, ln = Ha, Boe = ui, us = Vn, Lc = jd;
44024
- function qoe(t) {
44048
+ const aR = nc, dA = Sd, kw = ss, iv = Sd, Boe = sm, lf = Ta, Cg = Bs, Dt = Pn, ln = Ha, qoe = ui, us = Vn, Lc = jd;
44049
+ function Voe(t) {
44025
44050
  if (lR(t) && (cR(t), uR(t))) {
44026
- Uoe(t);
44051
+ Woe(t);
44027
44052
  return;
44028
44053
  }
44029
44054
  sR(t, () => (0, aR.topBoolOrEmptySchema)(t));
44030
44055
  }
44031
- ra.validateFunctionCode = qoe;
44056
+ ra.validateFunctionCode = Voe;
44032
44057
  function sR({ gen: t, validateName: e, schema: n, schemaEnv: r, opts: i }, o) {
44033
44058
  i.code.es5 ? t.func(e, (0, Dt._)`${ln.default.data}, ${ln.default.valCxt}`, r.$async, () => {
44034
- t.code((0, Dt._)`"use strict"; ${hA(n, i)}`), Hoe(t, i), t.code(o);
44035
- }) : t.func(e, (0, Dt._)`${ln.default.data}, ${Voe(i)}`, r.$async, () => t.code(hA(n, i)).code(o));
44059
+ t.code((0, Dt._)`"use strict"; ${hA(n, i)}`), Uoe(t, i), t.code(o);
44060
+ }) : t.func(e, (0, Dt._)`${ln.default.data}, ${Hoe(i)}`, r.$async, () => t.code(hA(n, i)).code(o));
44036
44061
  }
44037
- function Voe(t) {
44062
+ function Hoe(t) {
44038
44063
  return (0, Dt._)`{${ln.default.instancePath}="", ${ln.default.parentData}, ${ln.default.parentDataProperty}, ${ln.default.rootData}=${ln.default.data}${t.dynamicRef ? (0, Dt._)`, ${ln.default.dynamicAnchors}={}` : Dt.nil}}={}`;
44039
44064
  }
44040
- function Hoe(t, e) {
44065
+ function Uoe(t, e) {
44041
44066
  t.if(ln.default.valCxt, () => {
44042
44067
  t.var(ln.default.instancePath, (0, Dt._)`${ln.default.valCxt}.${ln.default.instancePath}`), t.var(ln.default.parentData, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentData}`), t.var(ln.default.parentDataProperty, (0, Dt._)`${ln.default.valCxt}.${ln.default.parentDataProperty}`), t.var(ln.default.rootData, (0, Dt._)`${ln.default.valCxt}.${ln.default.rootData}`), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`${ln.default.valCxt}.${ln.default.dynamicAnchors}`);
44043
44068
  }, () => {
44044
44069
  t.var(ln.default.instancePath, (0, Dt._)`""`), t.var(ln.default.parentData, (0, Dt._)`undefined`), t.var(ln.default.parentDataProperty, (0, Dt._)`undefined`), t.var(ln.default.rootData, ln.default.data), e.dynamicRef && t.var(ln.default.dynamicAnchors, (0, Dt._)`{}`);
44045
44070
  });
44046
44071
  }
44047
- function Uoe(t) {
44072
+ function Woe(t) {
44048
44073
  const { schema: e, opts: n, gen: r } = t;
44049
44074
  sR(t, () => {
44050
- n.$comment && e.$comment && dR(t), Qoe(t), r.let(ln.default.vErrors, null), r.let(ln.default.errors, 0), n.unevaluated && Woe(t), fR(t), Zoe(t);
44075
+ n.$comment && e.$comment && dR(t), Yoe(t), r.let(ln.default.vErrors, null), r.let(ln.default.errors, 0), n.unevaluated && Koe(t), fR(t), eae(t);
44051
44076
  });
44052
44077
  }
44053
- function Woe(t) {
44078
+ function Koe(t) {
44054
44079
  const { gen: e, validateName: n } = t;
44055
44080
  t.evaluated = e.const("evaluated", (0, Dt._)`${n}.evaluated`), e.if((0, Dt._)`${t.evaluated}.dynamicProps`, () => e.assign((0, Dt._)`${t.evaluated}.props`, (0, Dt._)`undefined`)), e.if((0, Dt._)`${t.evaluated}.dynamicItems`, () => e.assign((0, Dt._)`${t.evaluated}.items`, (0, Dt._)`undefined`));
44056
44081
  }
@@ -44058,9 +44083,9 @@ function hA(t, e) {
44058
44083
  const n = typeof t == "object" && t[e.schemaId];
44059
44084
  return n && (e.code.source || e.code.process) ? (0, Dt._)`/*# sourceURL=${n} */` : Dt.nil;
44060
44085
  }
44061
- function Koe(t, e) {
44086
+ function Joe(t, e) {
44062
44087
  if (lR(t) && (cR(t), uR(t))) {
44063
- Joe(t, e);
44088
+ Goe(t, e);
44064
44089
  return;
44065
44090
  }
44066
44091
  (0, aR.boolOrEmptySchema)(t, e);
@@ -44076,14 +44101,14 @@ function uR({ schema: t, self: e }) {
44076
44101
  function lR(t) {
44077
44102
  return typeof t.schema != "boolean";
44078
44103
  }
44079
- function Joe(t, e) {
44104
+ function Goe(t, e) {
44080
44105
  const { schema: n, gen: r, opts: i } = t;
44081
- i.$comment && n.$comment && dR(t), Yoe(t), Xoe(t);
44106
+ i.$comment && n.$comment && dR(t), Xoe(t), Zoe(t);
44082
44107
  const o = r.const("_errs", ln.default.errors);
44083
44108
  fR(t, o), r.var(e, (0, Dt._)`${o} === ${ln.default.errors}`);
44084
44109
  }
44085
44110
  function cR(t) {
44086
- (0, us.checkUnknownRules)(t), Goe(t);
44111
+ (0, us.checkUnknownRules)(t), Qoe(t);
44087
44112
  }
44088
44113
  function fR(t, e) {
44089
44114
  if (t.opts.jtd)
@@ -44091,19 +44116,19 @@ function fR(t, e) {
44091
44116
  const n = (0, dA.getSchemaTypes)(t.schema), r = (0, dA.coerceAndCheckDataType)(t, n);
44092
44117
  pA(t, n, !r, e);
44093
44118
  }
44094
- function Goe(t) {
44119
+ function Qoe(t) {
44095
44120
  const { schema: e, errSchemaPath: n, opts: r, self: i } = t;
44096
44121
  e.$ref && r.ignoreKeywordsWithRef && (0, us.schemaHasRulesButRef)(e, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
44097
44122
  }
44098
- function Qoe(t) {
44123
+ function Yoe(t) {
44099
44124
  const { schema: e, opts: n } = t;
44100
44125
  e.default !== void 0 && n.useDefaults && n.strictSchema && (0, us.checkStrictMode)(t, "default is ignored in the schema root");
44101
44126
  }
44102
- function Yoe(t) {
44127
+ function Xoe(t) {
44103
44128
  const e = t.schema[t.opts.schemaId];
44104
- e && (t.baseId = (0, Boe.resolveUrl)(t.opts.uriResolver, t.baseId, e));
44129
+ e && (t.baseId = (0, qoe.resolveUrl)(t.opts.uriResolver, t.baseId, e));
44105
44130
  }
44106
- function Xoe(t) {
44131
+ function Zoe(t) {
44107
44132
  if (t.schema.$async && !t.schemaEnv.$async)
44108
44133
  throw new Error("async schema in sync schema");
44109
44134
  }
@@ -44116,11 +44141,11 @@ function dR({ gen: t, schemaEnv: e, schema: n, errSchemaPath: r, opts: i }) {
44116
44141
  t.code((0, Dt._)`${ln.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`);
44117
44142
  }
44118
44143
  }
44119
- function Zoe(t) {
44144
+ function eae(t) {
44120
44145
  const { gen: e, schemaEnv: n, validateName: r, ValidationError: i, opts: o } = t;
44121
- n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated && eae(t), e.return((0, Dt._)`${ln.default.errors} === 0`));
44146
+ n.$async ? e.if((0, Dt._)`${ln.default.errors} === 0`, () => e.return(ln.default.data), () => e.throw((0, Dt._)`new ${i}(${ln.default.vErrors})`)) : (e.assign((0, Dt._)`${r}.errors`, ln.default.vErrors), o.unevaluated && tae(t), e.return((0, Dt._)`${ln.default.errors} === 0`));
44122
44147
  }
44123
- function eae({ gen: t, evaluated: e, props: n, items: r }) {
44148
+ function tae({ gen: t, evaluated: e, props: n, items: r }) {
44124
44149
  n instanceof Dt.Name && t.assign((0, Dt._)`${e}.props`, n), r instanceof Dt.Name && t.assign((0, Dt._)`${e}.items`, r);
44125
44150
  }
44126
44151
  function pA(t, e, n, r) {
@@ -44129,7 +44154,7 @@ function pA(t, e, n, r) {
44129
44154
  i.block(() => pR(t, "$ref", f.all.$ref.definition));
44130
44155
  return;
44131
44156
  }
44132
- u.jtd || tae(t, e), i.block(() => {
44157
+ u.jtd || nae(t, e), i.block(() => {
44133
44158
  for (const d of f.rules)
44134
44159
  c(d);
44135
44160
  c(f.post);
@@ -44140,15 +44165,15 @@ function pA(t, e, n, r) {
44140
44165
  }
44141
44166
  function vA(t, e) {
44142
44167
  const { gen: n, schema: r, opts: { useDefaults: i } } = t;
44143
- i && (0, Foe.assignDefaults)(t, e.type), n.block(() => {
44168
+ i && (0, Boe.assignDefaults)(t, e.type), n.block(() => {
44144
44169
  for (const o of e.rules)
44145
44170
  (0, kw.shouldUseRule)(r, o) && pR(t, o.keyword, o.definition, e.type);
44146
44171
  });
44147
44172
  }
44148
- function tae(t, e) {
44149
- t.schemaEnv.meta || !t.opts.strictTypes || (nae(t, e), t.opts.allowUnionTypes || rae(t, e), iae(t, t.dataTypes));
44150
- }
44151
44173
  function nae(t, e) {
44174
+ t.schemaEnv.meta || !t.opts.strictTypes || (rae(t, e), t.opts.allowUnionTypes || iae(t, e), oae(t, t.dataTypes));
44175
+ }
44176
+ function rae(t, e) {
44152
44177
  if (!!e.length) {
44153
44178
  if (!t.dataTypes.length) {
44154
44179
  t.dataTypes = e;
@@ -44159,20 +44184,20 @@ function nae(t, e) {
44159
44184
  }), t.dataTypes = t.dataTypes.filter((n) => mA(e, n));
44160
44185
  }
44161
44186
  }
44162
- function rae(t, e) {
44187
+ function iae(t, e) {
44163
44188
  e.length > 1 && !(e.length === 2 && e.includes("null")) && _w(t, "use allowUnionTypes to allow union type keyword");
44164
44189
  }
44165
- function iae(t, e) {
44190
+ function oae(t, e) {
44166
44191
  const n = t.self.RULES.all;
44167
44192
  for (const r in n) {
44168
44193
  const i = n[r];
44169
44194
  if (typeof i == "object" && (0, kw.shouldUseRule)(t.schema, i)) {
44170
44195
  const { type: o } = i.definition;
44171
- o.length && !o.some((a) => oae(e, a)) && _w(t, `missing type "${o.join(",")}" for keyword "${r}"`);
44196
+ o.length && !o.some((a) => aae(e, a)) && _w(t, `missing type "${o.join(",")}" for keyword "${r}"`);
44172
44197
  }
44173
44198
  }
44174
44199
  }
44175
- function oae(t, e) {
44200
+ function aae(t, e) {
44176
44201
  return t.includes(e) || e === "number" && t.includes("integer");
44177
44202
  }
44178
44203
  function mA(t, e) {
@@ -44270,7 +44295,7 @@ class hR {
44270
44295
  const r = (0, Cg.getSubschema)(this.it, e);
44271
44296
  (0, Cg.extendSubschemaData)(r, this.it, e), (0, Cg.extendSubschemaMode)(r, e);
44272
44297
  const i = { ...this.it, ...r, items: void 0, props: void 0 };
44273
- return Koe(i, n), i;
44298
+ return Joe(i, n), i;
44274
44299
  }
44275
44300
  mergeEvaluated(e, n) {
44276
44301
  const { it: r, gen: i } = this;
@@ -44287,17 +44312,17 @@ function pR(t, e, n, r) {
44287
44312
  const i = new hR(t, n, e);
44288
44313
  "code" in n ? n.code(i, r) : i.$data && n.validate ? (0, lf.funcKeywordCode)(i, n) : "macro" in n ? (0, lf.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, lf.funcKeywordCode)(i, n);
44289
44314
  }
44290
- const aae = /^\/(?:[^~]|~0|~1)*$/, sae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
44315
+ const sae = /^\/(?:[^~]|~0|~1)*$/, uae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
44291
44316
  function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
44292
44317
  let i, o;
44293
44318
  if (t === "")
44294
44319
  return ln.default.rootData;
44295
44320
  if (t[0] === "/") {
44296
- if (!aae.test(t))
44321
+ if (!sae.test(t))
44297
44322
  throw new Error(`Invalid JSON-pointer: ${t}`);
44298
44323
  i = t, o = ln.default.rootData;
44299
44324
  } else {
44300
- const l = sae.exec(t);
44325
+ const l = uae.exec(t);
44301
44326
  if (!l)
44302
44327
  throw new Error(`Invalid JSON-pointer: ${t}`);
44303
44328
  const f = +l[1];
@@ -44323,25 +44348,25 @@ function vR(t, { dataLevel: e, dataNames: n, dataPathArr: r }) {
44323
44348
  ra.getData = vR;
44324
44349
  var um = {};
44325
44350
  Object.defineProperty(um, "__esModule", { value: !0 });
44326
- class uae extends Error {
44351
+ class lae extends Error {
44327
44352
  constructor(e) {
44328
44353
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
44329
44354
  }
44330
44355
  }
44331
- um.default = uae;
44356
+ um.default = lae;
44332
44357
  var lm = {};
44333
44358
  Object.defineProperty(lm, "__esModule", { value: !0 });
44334
44359
  const $g = ui;
44335
- class lae extends Error {
44360
+ class cae extends Error {
44336
44361
  constructor(e, n, r, i) {
44337
44362
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, $g.resolveUrl)(e, n, r), this.missingSchema = (0, $g.normalizeId)((0, $g.getFullPath)(e, this.missingRef));
44338
44363
  }
44339
44364
  }
44340
- lm.default = lae;
44365
+ lm.default = cae;
44341
44366
  var Yi = {};
44342
44367
  Object.defineProperty(Yi, "__esModule", { value: !0 });
44343
44368
  Yi.resolveSchema = Yi.getCompilingSchema = Yi.resolveRef = Yi.compileSchema = Yi.SchemaEnv = void 0;
44344
- const Vo = Pn, cae = um, fu = Ha, Jo = ui, gA = Vn, fae = ra;
44369
+ const Vo = Pn, fae = um, fu = Ha, Jo = ui, gA = Vn, dae = ra;
44345
44370
  class cm {
44346
44371
  constructor(e) {
44347
44372
  var n;
@@ -44358,7 +44383,7 @@ function xw(t) {
44358
44383
  const n = (0, Jo.getFullPath)(this.opts.uriResolver, t.root.baseId), { es5: r, lines: i } = this.opts.code, { ownProperties: o } = this.opts, a = new Vo.CodeGen(this.scope, { es5: r, lines: i, ownProperties: o });
44359
44384
  let s;
44360
44385
  t.$async && (s = a.scopeValue("Error", {
44361
- ref: cae.default,
44386
+ ref: fae.default,
44362
44387
  code: (0, Vo._)`require("ajv/dist/runtime/validation_error").default`
44363
44388
  }));
44364
44389
  const u = a.scopeName("validate");
@@ -44389,7 +44414,7 @@ function xw(t) {
44389
44414
  };
44390
44415
  let f;
44391
44416
  try {
44392
- this._compilations.add(t), (0, fae.validateFunctionCode)(l), a.optimize(this.opts.code.optimize);
44417
+ this._compilations.add(t), (0, dae.validateFunctionCode)(l), a.optimize(this.opts.code.optimize);
44393
44418
  const c = a.toString();
44394
44419
  f = `${a.scopeRefs(fu.default.scope)}return ${c}`, this.opts.code.process && (f = this.opts.code.process(f, t));
44395
44420
  const h = new Function(`${fu.default.self}`, `${fu.default.scope}`, f)(this, this.scope.get());
@@ -44410,34 +44435,34 @@ function xw(t) {
44410
44435
  }
44411
44436
  }
44412
44437
  Yi.compileSchema = xw;
44413
- function dae(t, e, n) {
44438
+ function hae(t, e, n) {
44414
44439
  var r;
44415
44440
  n = (0, Jo.resolveUrl)(this.opts.uriResolver, e, n);
44416
44441
  const i = t.refs[n];
44417
44442
  if (i)
44418
44443
  return i;
44419
- let o = vae.call(this, t, n);
44444
+ let o = mae.call(this, t, n);
44420
44445
  if (o === void 0) {
44421
44446
  const a = (r = t.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: s } = this.opts;
44422
44447
  a && (o = new cm({ schema: a, schemaId: s, root: t, baseId: e }));
44423
44448
  }
44424
44449
  if (o !== void 0)
44425
- return t.refs[n] = hae.call(this, o);
44450
+ return t.refs[n] = pae.call(this, o);
44426
44451
  }
44427
- Yi.resolveRef = dae;
44428
- function hae(t) {
44452
+ Yi.resolveRef = hae;
44453
+ function pae(t) {
44429
44454
  return (0, Jo.inlineRef)(t.schema, this.opts.inlineRefs) ? t.schema : t.validate ? t : xw.call(this, t);
44430
44455
  }
44431
44456
  function mR(t) {
44432
44457
  for (const e of this._compilations)
44433
- if (pae(e, t))
44458
+ if (vae(e, t))
44434
44459
  return e;
44435
44460
  }
44436
44461
  Yi.getCompilingSchema = mR;
44437
- function pae(t, e) {
44462
+ function vae(t, e) {
44438
44463
  return t.schema === e.schema && t.root === e.root && t.baseId === e.baseId;
44439
44464
  }
44440
- function vae(t, e) {
44465
+ function mae(t, e) {
44441
44466
  let n;
44442
44467
  for (; typeof (n = this.refs[e]) == "string"; )
44443
44468
  e = n;
@@ -44462,7 +44487,7 @@ function fm(t, e) {
44462
44487
  }
44463
44488
  }
44464
44489
  Yi.resolveSchema = fm;
44465
- const mae = /* @__PURE__ */ new Set([
44490
+ const gae = /* @__PURE__ */ new Set([
44466
44491
  "properties",
44467
44492
  "patternProperties",
44468
44493
  "enum",
@@ -44481,7 +44506,7 @@ function Og(t, { baseId: e, schema: n, root: r }) {
44481
44506
  return;
44482
44507
  n = u;
44483
44508
  const l = typeof n == "object" && n[this.opts.schemaId];
44484
- !mae.has(s) && l && (e = (0, Jo.resolveUrl)(this.opts.uriResolver, e, l));
44509
+ !gae.has(s) && l && (e = (0, Jo.resolveUrl)(this.opts.uriResolver, e, l));
44485
44510
  }
44486
44511
  let o;
44487
44512
  if (typeof n != "boolean" && n.$ref && !(0, gA.schemaHasRulesButRef)(n, this.RULES)) {
@@ -44492,9 +44517,9 @@ function Og(t, { baseId: e, schema: n, root: r }) {
44492
44517
  if (o = o || new cm({ schema: n, schemaId: a, root: r, baseId: e }), o.schema !== o.root.schema)
44493
44518
  return o;
44494
44519
  }
44495
- const gae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", yae = "Meta-schema for $data reference (JSON AnySchema extension proposal)", bae = "object", wae = [
44520
+ const yae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", bae = "Meta-schema for $data reference (JSON AnySchema extension proposal)", wae = "object", kae = [
44496
44521
  "$data"
44497
- ], kae = {
44522
+ ], _ae = {
44498
44523
  $data: {
44499
44524
  type: "string",
44500
44525
  anyOf: [
@@ -44506,13 +44531,13 @@ const gae = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs
44506
44531
  }
44507
44532
  ]
44508
44533
  }
44509
- }, _ae = !1, xae = {
44510
- $id: gae,
44511
- description: yae,
44512
- type: bae,
44513
- required: wae,
44514
- properties: kae,
44515
- additionalProperties: _ae
44534
+ }, xae = !1, jae = {
44535
+ $id: yae,
44536
+ description: bae,
44537
+ type: wae,
44538
+ required: kae,
44539
+ properties: _ae,
44540
+ additionalProperties: xae
44516
44541
  };
44517
44542
  var jw = {}, Ny = { exports: {} };
44518
44543
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
@@ -45064,7 +45089,7 @@ jw.default = gR;
45064
45089
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
45065
45090
  return n.CodeGen;
45066
45091
  } });
45067
- const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c = xae, d = jw, h = (I, N) => new RegExp(I, N);
45092
+ const r = um, i = lm, o = Uu, a = Yi, s = Pn, u = ui, l = Sd, f = Vn, c = jae, d = jw, h = (I, N) => new RegExp(I, N);
45068
45093
  h.code = "new RegExp";
45069
45094
  const p = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
45070
45095
  "validate",
@@ -45473,17 +45498,17 @@ jw.default = gR;
45473
45498
  })(KD);
45474
45499
  var Sw = {}, Cw = {}, $w = {};
45475
45500
  Object.defineProperty($w, "__esModule", { value: !0 });
45476
- const jae = {
45501
+ const Sae = {
45477
45502
  keyword: "id",
45478
45503
  code() {
45479
45504
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
45480
45505
  }
45481
45506
  };
45482
- $w.default = jae;
45507
+ $w.default = Sae;
45483
45508
  var Wu = {};
45484
45509
  Object.defineProperty(Wu, "__esModule", { value: !0 });
45485
45510
  Wu.callRef = Wu.getValidate = void 0;
45486
- const Sae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, Cae = {
45511
+ const Cae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, $ae = {
45487
45512
  keyword: "$ref",
45488
45513
  schemaType: "string",
45489
45514
  code(t) {
@@ -45492,7 +45517,7 @@ const Sae = lm, yA = An, Gi = Pn, ll = Ha, bA = Yi, mh = Vn, Cae = {
45492
45517
  return c();
45493
45518
  const f = bA.resolveRef.call(u, l, i, n);
45494
45519
  if (f === void 0)
45495
- throw new Sae.default(r.opts.uriResolver, i, n);
45520
+ throw new Cae.default(r.opts.uriResolver, i, n);
45496
45521
  if (f instanceof bA.SchemaEnv)
45497
45522
  return d(f);
45498
45523
  return h(f);
@@ -45565,19 +45590,19 @@ function Wh(t, e, n, r) {
45565
45590
  }
45566
45591
  }
45567
45592
  Wu.callRef = Wh;
45568
- Wu.default = Cae;
45593
+ Wu.default = $ae;
45569
45594
  Object.defineProperty(Cw, "__esModule", { value: !0 });
45570
- const $ae = $w, Oae = Wu, Tae = [
45595
+ const Oae = $w, Tae = Wu, Aae = [
45571
45596
  "$schema",
45572
45597
  "$id",
45573
45598
  "$defs",
45574
45599
  "$vocabulary",
45575
45600
  { keyword: "$comment" },
45576
45601
  "definitions",
45577
- $ae.default,
45578
- Oae.default
45602
+ Oae.default,
45603
+ Tae.default
45579
45604
  ];
45580
- Cw.default = Tae;
45605
+ Cw.default = Aae;
45581
45606
  var Ow = {}, Tw = {};
45582
45607
  Object.defineProperty(Tw, "__esModule", { value: !0 });
45583
45608
  const ov = Pn, Os = ov.operators, av = {
@@ -45585,38 +45610,38 @@ const ov = Pn, Os = ov.operators, av = {
45585
45610
  minimum: { okStr: ">=", ok: Os.GTE, fail: Os.LT },
45586
45611
  exclusiveMaximum: { okStr: "<", ok: Os.LT, fail: Os.GTE },
45587
45612
  exclusiveMinimum: { okStr: ">", ok: Os.GT, fail: Os.LTE }
45588
- }, Aae = {
45613
+ }, Eae = {
45589
45614
  message: ({ keyword: t, schemaCode: e }) => (0, ov.str)`must be ${av[t].okStr} ${e}`,
45590
45615
  params: ({ keyword: t, schemaCode: e }) => (0, ov._)`{comparison: ${av[t].okStr}, limit: ${e}}`
45591
- }, Eae = {
45616
+ }, Mae = {
45592
45617
  keyword: Object.keys(av),
45593
45618
  type: "number",
45594
45619
  schemaType: "number",
45595
45620
  $data: !0,
45596
- error: Aae,
45621
+ error: Eae,
45597
45622
  code(t) {
45598
45623
  const { keyword: e, data: n, schemaCode: r } = t;
45599
45624
  t.fail$data((0, ov._)`${n} ${av[e].fail} ${r} || isNaN(${n})`);
45600
45625
  }
45601
45626
  };
45602
- Tw.default = Eae;
45627
+ Tw.default = Mae;
45603
45628
  var Aw = {};
45604
45629
  Object.defineProperty(Aw, "__esModule", { value: !0 });
45605
- const cf = Pn, Mae = {
45630
+ const cf = Pn, Pae = {
45606
45631
  message: ({ schemaCode: t }) => (0, cf.str)`must be multiple of ${t}`,
45607
45632
  params: ({ schemaCode: t }) => (0, cf._)`{multipleOf: ${t}}`
45608
- }, Pae = {
45633
+ }, Iae = {
45609
45634
  keyword: "multipleOf",
45610
45635
  type: "number",
45611
45636
  schemaType: "number",
45612
45637
  $data: !0,
45613
- error: Mae,
45638
+ error: Pae,
45614
45639
  code(t) {
45615
45640
  const { gen: e, data: n, schemaCode: r, it: i } = t, o = i.opts.multipleOfPrecision, a = e.let("res"), s = o ? (0, cf._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}` : (0, cf._)`${a} !== parseInt(${a})`;
45616
45641
  t.fail$data((0, cf._)`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`);
45617
45642
  }
45618
45643
  };
45619
- Aw.default = Pae;
45644
+ Aw.default = Iae;
45620
45645
  var Ew = {}, Mw = {};
45621
45646
  Object.defineProperty(Mw, "__esModule", { value: !0 });
45622
45647
  function bR(t) {
@@ -45629,72 +45654,72 @@ function bR(t) {
45629
45654
  Mw.default = bR;
45630
45655
  bR.code = 'require("ajv/dist/runtime/ucs2length").default';
45631
45656
  Object.defineProperty(Ew, "__esModule", { value: !0 });
45632
- const wu = Pn, Iae = Vn, Nae = Mw, Lae = {
45657
+ const wu = Pn, Nae = Vn, Lae = Mw, Dae = {
45633
45658
  message({ keyword: t, schemaCode: e }) {
45634
45659
  const n = t === "maxLength" ? "more" : "fewer";
45635
45660
  return (0, wu.str)`must NOT have ${n} than ${e} characters`;
45636
45661
  },
45637
45662
  params: ({ schemaCode: t }) => (0, wu._)`{limit: ${t}}`
45638
- }, Dae = {
45663
+ }, Rae = {
45639
45664
  keyword: ["maxLength", "minLength"],
45640
45665
  type: "string",
45641
45666
  schemaType: "number",
45642
45667
  $data: !0,
45643
- error: Lae,
45668
+ error: Dae,
45644
45669
  code(t) {
45645
- const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0, Iae.useFunc)(t.gen, Nae.default)}(${n})`;
45670
+ const { keyword: e, data: n, schemaCode: r, it: i } = t, o = e === "maxLength" ? wu.operators.GT : wu.operators.LT, a = i.opts.unicode === !1 ? (0, wu._)`${n}.length` : (0, wu._)`${(0, Nae.useFunc)(t.gen, Lae.default)}(${n})`;
45646
45671
  t.fail$data((0, wu._)`${a} ${o} ${r}`);
45647
45672
  }
45648
45673
  };
45649
- Ew.default = Dae;
45674
+ Ew.default = Rae;
45650
45675
  var Pw = {};
45651
45676
  Object.defineProperty(Pw, "__esModule", { value: !0 });
45652
- const Rae = An, sv = Pn, zae = {
45677
+ const zae = An, sv = Pn, Fae = {
45653
45678
  message: ({ schemaCode: t }) => (0, sv.str)`must match pattern "${t}"`,
45654
45679
  params: ({ schemaCode: t }) => (0, sv._)`{pattern: ${t}}`
45655
- }, Fae = {
45680
+ }, Bae = {
45656
45681
  keyword: "pattern",
45657
45682
  type: "string",
45658
45683
  schemaType: "string",
45659
45684
  $data: !0,
45660
- error: zae,
45685
+ error: Fae,
45661
45686
  code(t) {
45662
- const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0, Rae.usePattern)(t, r);
45687
+ const { data: e, $data: n, schema: r, schemaCode: i, it: o } = t, a = o.opts.unicodeRegExp ? "u" : "", s = n ? (0, sv._)`(new RegExp(${i}, ${a}))` : (0, zae.usePattern)(t, r);
45663
45688
  t.fail$data((0, sv._)`!${s}.test(${e})`);
45664
45689
  }
45665
45690
  };
45666
- Pw.default = Fae;
45691
+ Pw.default = Bae;
45667
45692
  var Iw = {};
45668
45693
  Object.defineProperty(Iw, "__esModule", { value: !0 });
45669
- const ff = Pn, Bae = {
45694
+ const ff = Pn, qae = {
45670
45695
  message({ keyword: t, schemaCode: e }) {
45671
45696
  const n = t === "maxProperties" ? "more" : "fewer";
45672
45697
  return (0, ff.str)`must NOT have ${n} than ${e} properties`;
45673
45698
  },
45674
45699
  params: ({ schemaCode: t }) => (0, ff._)`{limit: ${t}}`
45675
- }, qae = {
45700
+ }, Vae = {
45676
45701
  keyword: ["maxProperties", "minProperties"],
45677
45702
  type: "object",
45678
45703
  schemaType: "number",
45679
45704
  $data: !0,
45680
- error: Bae,
45705
+ error: qae,
45681
45706
  code(t) {
45682
45707
  const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxProperties" ? ff.operators.GT : ff.operators.LT;
45683
45708
  t.fail$data((0, ff._)`Object.keys(${n}).length ${i} ${r}`);
45684
45709
  }
45685
45710
  };
45686
- Iw.default = qae;
45711
+ Iw.default = Vae;
45687
45712
  var Nw = {};
45688
45713
  Object.defineProperty(Nw, "__esModule", { value: !0 });
45689
- const Dc = An, df = Pn, Vae = Vn, Hae = {
45714
+ const Dc = An, df = Pn, Hae = Vn, Uae = {
45690
45715
  message: ({ params: { missingProperty: t } }) => (0, df.str)`must have required property '${t}'`,
45691
45716
  params: ({ params: { missingProperty: t } }) => (0, df._)`{missingProperty: ${t}}`
45692
- }, Uae = {
45717
+ }, Wae = {
45693
45718
  keyword: "required",
45694
45719
  type: "object",
45695
45720
  schemaType: "array",
45696
45721
  $data: !0,
45697
- error: Hae,
45722
+ error: Uae,
45698
45723
  code(t) {
45699
45724
  const { gen: e, schema: n, schemaCode: r, data: i, $data: o, it: a } = t, { opts: s } = a;
45700
45725
  if (!o && n.length === 0)
@@ -45705,7 +45730,7 @@ const Dc = An, df = Pn, Vae = Vn, Hae = {
45705
45730
  for (const v of n)
45706
45731
  if ((h == null ? void 0 : h[v]) === void 0 && !p.has(v)) {
45707
45732
  const g = a.schemaEnv.baseId + a.errSchemaPath, m = `required property "${v}" is not defined at "${g}" (strictRequired)`;
45708
- (0, Vae.checkStrictMode)(a, m, a.opts.strictRequired);
45733
+ (0, Hae.checkStrictMode)(a, m, a.opts.strictRequired);
45709
45734
  }
45710
45735
  }
45711
45736
  function l() {
@@ -45737,42 +45762,42 @@ const Dc = An, df = Pn, Vae = Vn, Hae = {
45737
45762
  }
45738
45763
  }
45739
45764
  };
45740
- Nw.default = Uae;
45765
+ Nw.default = Wae;
45741
45766
  var Lw = {};
45742
45767
  Object.defineProperty(Lw, "__esModule", { value: !0 });
45743
- const hf = Pn, Wae = {
45768
+ const hf = Pn, Kae = {
45744
45769
  message({ keyword: t, schemaCode: e }) {
45745
45770
  const n = t === "maxItems" ? "more" : "fewer";
45746
45771
  return (0, hf.str)`must NOT have ${n} than ${e} items`;
45747
45772
  },
45748
45773
  params: ({ schemaCode: t }) => (0, hf._)`{limit: ${t}}`
45749
- }, Kae = {
45774
+ }, Jae = {
45750
45775
  keyword: ["maxItems", "minItems"],
45751
45776
  type: "array",
45752
45777
  schemaType: "number",
45753
45778
  $data: !0,
45754
- error: Wae,
45779
+ error: Kae,
45755
45780
  code(t) {
45756
45781
  const { keyword: e, data: n, schemaCode: r } = t, i = e === "maxItems" ? hf.operators.GT : hf.operators.LT;
45757
45782
  t.fail$data((0, hf._)`${n}.length ${i} ${r}`);
45758
45783
  }
45759
45784
  };
45760
- Lw.default = Kae;
45785
+ Lw.default = Jae;
45761
45786
  var Dw = {}, Cd = {};
45762
45787
  Object.defineProperty(Cd, "__esModule", { value: !0 });
45763
45788
  const wR = tR;
45764
45789
  wR.code = 'require("ajv/dist/runtime/equal").default';
45765
45790
  Cd.default = wR;
45766
45791
  Object.defineProperty(Dw, "__esModule", { value: !0 });
45767
- const Tg = Sd, ai = Pn, Jae = Vn, Gae = Cd, Qae = {
45792
+ const Tg = Sd, ai = Pn, Gae = Vn, Qae = Cd, Yae = {
45768
45793
  message: ({ params: { i: t, j: e } }) => (0, ai.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,
45769
45794
  params: ({ params: { i: t, j: e } }) => (0, ai._)`{i: ${t}, j: ${e}}`
45770
- }, Yae = {
45795
+ }, Xae = {
45771
45796
  keyword: "uniqueItems",
45772
45797
  type: "array",
45773
45798
  schemaType: "boolean",
45774
45799
  $data: !0,
45775
- error: Qae,
45800
+ error: Yae,
45776
45801
  code(t) {
45777
45802
  const { gen: e, data: n, $data: r, schema: i, parentSchema: o, schemaCode: a, it: s } = t;
45778
45803
  if (!r && !i)
@@ -45795,46 +45820,46 @@ const Tg = Sd, ai = Pn, Jae = Vn, Gae = Cd, Qae = {
45795
45820
  });
45796
45821
  }
45797
45822
  function h(p, v) {
45798
- const g = (0, Jae.useFunc)(e, Gae.default), m = e.name("outer");
45823
+ const g = (0, Gae.useFunc)(e, Qae.default), m = e.name("outer");
45799
45824
  e.label(m).for((0, ai._)`;${p}--;`, () => e.for((0, ai._)`${v} = ${p}; ${v}--;`, () => e.if((0, ai._)`${g}(${n}[${p}], ${n}[${v}])`, () => {
45800
45825
  t.error(), e.assign(u, !1).break(m);
45801
45826
  })));
45802
45827
  }
45803
45828
  }
45804
45829
  };
45805
- Dw.default = Yae;
45830
+ Dw.default = Xae;
45806
45831
  var Rw = {};
45807
45832
  Object.defineProperty(Rw, "__esModule", { value: !0 });
45808
- const Ly = Pn, Xae = Vn, Zae = Cd, ese = {
45833
+ const Ly = Pn, Zae = Vn, ese = Cd, tse = {
45809
45834
  message: "must be equal to constant",
45810
45835
  params: ({ schemaCode: t }) => (0, Ly._)`{allowedValue: ${t}}`
45811
- }, tse = {
45836
+ }, nse = {
45812
45837
  keyword: "const",
45813
45838
  $data: !0,
45814
- error: ese,
45839
+ error: tse,
45815
45840
  code(t) {
45816
45841
  const { gen: e, data: n, $data: r, schemaCode: i, schema: o } = t;
45817
- r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0, Xae.useFunc)(e, Zae.default)}(${n}, ${i})`) : t.fail((0, Ly._)`${o} !== ${n}`);
45842
+ r || o && typeof o == "object" ? t.fail$data((0, Ly._)`!${(0, Zae.useFunc)(e, ese.default)}(${n}, ${i})`) : t.fail((0, Ly._)`${o} !== ${n}`);
45818
45843
  }
45819
45844
  };
45820
- Rw.default = tse;
45845
+ Rw.default = nse;
45821
45846
  var zw = {};
45822
45847
  Object.defineProperty(zw, "__esModule", { value: !0 });
45823
- const Kc = Pn, nse = Vn, rse = Cd, ise = {
45848
+ const Kc = Pn, rse = Vn, ise = Cd, ose = {
45824
45849
  message: "must be equal to one of the allowed values",
45825
45850
  params: ({ schemaCode: t }) => (0, Kc._)`{allowedValues: ${t}}`
45826
- }, ose = {
45851
+ }, ase = {
45827
45852
  keyword: "enum",
45828
45853
  schemaType: "array",
45829
45854
  $data: !0,
45830
- error: ise,
45855
+ error: ose,
45831
45856
  code(t) {
45832
45857
  const { gen: e, data: n, $data: r, schema: i, schemaCode: o, it: a } = t;
45833
45858
  if (!r && i.length === 0)
45834
45859
  throw new Error("enum must have non-empty array");
45835
45860
  const s = i.length >= a.opts.loopEnum;
45836
45861
  let u;
45837
- const l = () => u != null ? u : u = (0, nse.useFunc)(e, rse.default);
45862
+ const l = () => u != null ? u : u = (0, rse.useFunc)(e, ise.default);
45838
45863
  let f;
45839
45864
  if (s || r)
45840
45865
  f = e.let("valid"), t.block$data(f, c);
@@ -45854,10 +45879,9 @@ const Kc = Pn, nse = Vn, rse = Cd, ise = {
45854
45879
  }
45855
45880
  }
45856
45881
  };
45857
- zw.default = ose;
45882
+ zw.default = ase;
45858
45883
  Object.defineProperty(Ow, "__esModule", { value: !0 });
45859
- const ase = Tw, sse = Aw, use = Ew, lse = Pw, cse = Iw, fse = Nw, dse = Lw, hse = Dw, pse = Rw, vse = zw, mse = [
45860
- ase.default,
45884
+ const sse = Tw, use = Aw, lse = Ew, cse = Pw, fse = Iw, dse = Nw, hse = Lw, pse = Dw, vse = Rw, mse = zw, gse = [
45861
45885
  sse.default,
45862
45886
  use.default,
45863
45887
  lse.default,
@@ -45865,24 +45889,25 @@ const ase = Tw, sse = Aw, use = Ew, lse = Pw, cse = Iw, fse = Nw, dse = Lw, hse
45865
45889
  fse.default,
45866
45890
  dse.default,
45867
45891
  hse.default,
45892
+ pse.default,
45868
45893
  { keyword: "type", schemaType: ["string", "array"] },
45869
45894
  { keyword: "nullable", schemaType: "boolean" },
45870
- pse.default,
45871
- vse.default
45895
+ vse.default,
45896
+ mse.default
45872
45897
  ];
45873
- Ow.default = mse;
45898
+ Ow.default = gse;
45874
45899
  var Fw = {}, Sc = {};
45875
45900
  Object.defineProperty(Sc, "__esModule", { value: !0 });
45876
45901
  Sc.validateAdditionalItems = void 0;
45877
- const ku = Pn, Dy = Vn, gse = {
45902
+ const ku = Pn, Dy = Vn, yse = {
45878
45903
  message: ({ params: { len: t } }) => (0, ku.str)`must NOT have more than ${t} items`,
45879
45904
  params: ({ params: { len: t } }) => (0, ku._)`{limit: ${t}}`
45880
- }, yse = {
45905
+ }, bse = {
45881
45906
  keyword: "additionalItems",
45882
45907
  type: "array",
45883
45908
  schemaType: ["boolean", "object"],
45884
45909
  before: "uniqueItems",
45885
- error: gse,
45910
+ error: yse,
45886
45911
  code(t) {
45887
45912
  const { parentSchema: e, it: n } = t, { items: r } = e;
45888
45913
  if (!Array.isArray(r)) {
@@ -45909,11 +45934,11 @@ function kR(t, e) {
45909
45934
  }
45910
45935
  }
45911
45936
  Sc.validateAdditionalItems = kR;
45912
- Sc.default = yse;
45937
+ Sc.default = bse;
45913
45938
  var Bw = {}, Cc = {};
45914
45939
  Object.defineProperty(Cc, "__esModule", { value: !0 });
45915
45940
  Cc.validateTuple = void 0;
45916
- const wA = Pn, Kh = Vn, bse = An, wse = {
45941
+ const wA = Pn, Kh = Vn, wse = An, kse = {
45917
45942
  keyword: "items",
45918
45943
  type: "array",
45919
45944
  schemaType: ["object", "array", "boolean"],
@@ -45922,7 +45947,7 @@ const wA = Pn, Kh = Vn, bse = An, wse = {
45922
45947
  const { schema: e, it: n } = t;
45923
45948
  if (Array.isArray(e))
45924
45949
  return _R(t, "additionalItems", e);
45925
- n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0, bse.validateArray)(t));
45950
+ n.items = !0, !(0, Kh.alwaysValidSchema)(n, e) && t.ok((0, wse.validateArray)(t));
45926
45951
  }
45927
45952
  };
45928
45953
  function _R(t, e, n = t.schema) {
@@ -45945,45 +45970,45 @@ function _R(t, e, n = t.schema) {
45945
45970
  }
45946
45971
  }
45947
45972
  Cc.validateTuple = _R;
45948
- Cc.default = wse;
45973
+ Cc.default = kse;
45949
45974
  Object.defineProperty(Bw, "__esModule", { value: !0 });
45950
- const kse = Cc, _se = {
45975
+ const _se = Cc, xse = {
45951
45976
  keyword: "prefixItems",
45952
45977
  type: "array",
45953
45978
  schemaType: ["array"],
45954
45979
  before: "uniqueItems",
45955
- code: (t) => (0, kse.validateTuple)(t, "items")
45980
+ code: (t) => (0, _se.validateTuple)(t, "items")
45956
45981
  };
45957
- Bw.default = _se;
45982
+ Bw.default = xse;
45958
45983
  var qw = {};
45959
45984
  Object.defineProperty(qw, "__esModule", { value: !0 });
45960
- const kA = Pn, xse = Vn, jse = An, Sse = Sc, Cse = {
45985
+ const kA = Pn, jse = Vn, Sse = An, Cse = Sc, $se = {
45961
45986
  message: ({ params: { len: t } }) => (0, kA.str)`must NOT have more than ${t} items`,
45962
45987
  params: ({ params: { len: t } }) => (0, kA._)`{limit: ${t}}`
45963
- }, $se = {
45988
+ }, Ose = {
45964
45989
  keyword: "items",
45965
45990
  type: "array",
45966
45991
  schemaType: ["object", "boolean"],
45967
45992
  before: "uniqueItems",
45968
- error: Cse,
45993
+ error: $se,
45969
45994
  code(t) {
45970
45995
  const { schema: e, parentSchema: n, it: r } = t, { prefixItems: i } = n;
45971
- r.items = !0, !(0, xse.alwaysValidSchema)(r, e) && (i ? (0, Sse.validateAdditionalItems)(t, i) : t.ok((0, jse.validateArray)(t)));
45996
+ r.items = !0, !(0, jse.alwaysValidSchema)(r, e) && (i ? (0, Cse.validateAdditionalItems)(t, i) : t.ok((0, Sse.validateArray)(t)));
45972
45997
  }
45973
45998
  };
45974
- qw.default = $se;
45999
+ qw.default = Ose;
45975
46000
  var Vw = {};
45976
46001
  Object.defineProperty(Vw, "__esModule", { value: !0 });
45977
- const _o = Pn, gh = Vn, Ose = {
46002
+ const _o = Pn, gh = Vn, Tse = {
45978
46003
  message: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o.str)`must contain at least ${t} valid item(s)` : (0, _o.str)`must contain at least ${t} and no more than ${e} valid item(s)`,
45979
46004
  params: ({ params: { min: t, max: e } }) => e === void 0 ? (0, _o._)`{minContains: ${t}}` : (0, _o._)`{minContains: ${t}, maxContains: ${e}}`
45980
- }, Tse = {
46005
+ }, Ase = {
45981
46006
  keyword: "contains",
45982
46007
  type: "array",
45983
46008
  schemaType: ["object", "boolean"],
45984
46009
  before: "uniqueItems",
45985
46010
  trackErrors: !0,
45986
- error: Ose,
46011
+ error: Tse,
45987
46012
  code(t) {
45988
46013
  const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
45989
46014
  let a, s;
@@ -46025,7 +46050,7 @@ const _o = Pn, gh = Vn, Ose = {
46025
46050
  }
46026
46051
  }
46027
46052
  };
46028
- Vw.default = Tse;
46053
+ Vw.default = Ase;
46029
46054
  var xR = {};
46030
46055
  (function(t) {
46031
46056
  Object.defineProperty(t, "__esModule", { value: !0 }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0;
@@ -46097,17 +46122,17 @@ var xR = {};
46097
46122
  })(xR);
46098
46123
  var Hw = {};
46099
46124
  Object.defineProperty(Hw, "__esModule", { value: !0 });
46100
- const jR = Pn, Ase = Vn, Ese = {
46125
+ const jR = Pn, Ese = Vn, Mse = {
46101
46126
  message: "property name must be valid",
46102
46127
  params: ({ params: t }) => (0, jR._)`{propertyName: ${t.propertyName}}`
46103
- }, Mse = {
46128
+ }, Pse = {
46104
46129
  keyword: "propertyNames",
46105
46130
  type: "object",
46106
46131
  schemaType: ["object", "boolean"],
46107
- error: Ese,
46132
+ error: Mse,
46108
46133
  code(t) {
46109
46134
  const { gen: e, schema: n, data: r, it: i } = t;
46110
- if ((0, Ase.alwaysValidSchema)(i, n))
46135
+ if ((0, Ese.alwaysValidSchema)(i, n))
46111
46136
  return;
46112
46137
  const o = e.name("valid");
46113
46138
  e.forIn("key", r, (a) => {
@@ -46123,19 +46148,19 @@ const jR = Pn, Ase = Vn, Ese = {
46123
46148
  }), t.ok(o);
46124
46149
  }
46125
46150
  };
46126
- Hw.default = Mse;
46151
+ Hw.default = Pse;
46127
46152
  var dm = {};
46128
46153
  Object.defineProperty(dm, "__esModule", { value: !0 });
46129
- const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46154
+ const yh = An, Ho = Pn, Ise = Ha, bh = Vn, Nse = {
46130
46155
  message: "must NOT have additional properties",
46131
46156
  params: ({ params: t }) => (0, Ho._)`{additionalProperty: ${t.additionalProperty}}`
46132
- }, Nse = {
46157
+ }, Lse = {
46133
46158
  keyword: "additionalProperties",
46134
46159
  type: ["object"],
46135
46160
  schemaType: ["boolean", "object"],
46136
46161
  allowUndefined: !0,
46137
46162
  trackErrors: !0,
46138
- error: Ise,
46163
+ error: Nse,
46139
46164
  code(t) {
46140
46165
  const { gen: e, schema: n, parentSchema: r, data: i, errsCount: o, it: a } = t;
46141
46166
  if (!o)
@@ -46144,7 +46169,7 @@ const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46144
46169
  if (a.props = !0, u.removeAdditional !== "all" && (0, bh.alwaysValidSchema)(a, n))
46145
46170
  return;
46146
46171
  const l = (0, yh.allSchemaProperties)(r.properties), f = (0, yh.allSchemaProperties)(r.patternProperties);
46147
- c(), t.ok((0, Ho._)`${o} === ${Pse.default.errors}`);
46172
+ c(), t.ok((0, Ho._)`${o} === ${Ise.default.errors}`);
46148
46173
  function c() {
46149
46174
  e.forIn("key", i, (g) => {
46150
46175
  !l.length && !f.length ? p(g) : e.if(d(g), () => p(g));
@@ -46192,16 +46217,16 @@ const yh = An, Ho = Pn, Pse = Ha, bh = Vn, Ise = {
46192
46217
  }
46193
46218
  }
46194
46219
  };
46195
- dm.default = Nse;
46220
+ dm.default = Lse;
46196
46221
  var Uw = {};
46197
46222
  Object.defineProperty(Uw, "__esModule", { value: !0 });
46198
- const Lse = ra, _A = An, Ag = Vn, xA = dm, Dse = {
46223
+ const Dse = ra, _A = An, Ag = Vn, xA = dm, Rse = {
46199
46224
  keyword: "properties",
46200
46225
  type: "object",
46201
46226
  schemaType: "object",
46202
46227
  code(t) {
46203
46228
  const { gen: e, schema: n, parentSchema: r, data: i, it: o } = t;
46204
- o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new Lse.KeywordCxt(o, xA.default, "additionalProperties"));
46229
+ o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && xA.default.code(new Dse.KeywordCxt(o, xA.default, "additionalProperties"));
46205
46230
  const a = (0, _A.allSchemaProperties)(n);
46206
46231
  for (const c of a)
46207
46232
  o.definedProperties.add(c);
@@ -46224,10 +46249,10 @@ const Lse = ra, _A = An, Ag = Vn, xA = dm, Dse = {
46224
46249
  }
46225
46250
  }
46226
46251
  };
46227
- Uw.default = Dse;
46252
+ Uw.default = Rse;
46228
46253
  var Ww = {};
46229
46254
  Object.defineProperty(Ww, "__esModule", { value: !0 });
46230
- const jA = An, wh = Pn, SA = Vn, CA = Vn, Rse = {
46255
+ const jA = An, wh = Pn, SA = Vn, CA = Vn, zse = {
46231
46256
  keyword: "patternProperties",
46232
46257
  type: "object",
46233
46258
  schemaType: "object",
@@ -46262,16 +46287,16 @@ const jA = An, wh = Pn, SA = Vn, CA = Vn, Rse = {
46262
46287
  }
46263
46288
  }
46264
46289
  };
46265
- Ww.default = Rse;
46290
+ Ww.default = zse;
46266
46291
  var Kw = {};
46267
46292
  Object.defineProperty(Kw, "__esModule", { value: !0 });
46268
- const zse = Vn, Fse = {
46293
+ const Fse = Vn, Bse = {
46269
46294
  keyword: "not",
46270
46295
  schemaType: ["object", "boolean"],
46271
46296
  trackErrors: !0,
46272
46297
  code(t) {
46273
46298
  const { gen: e, schema: n, it: r } = t;
46274
- if ((0, zse.alwaysValidSchema)(r, n)) {
46299
+ if ((0, Fse.alwaysValidSchema)(r, n)) {
46275
46300
  t.fail();
46276
46301
  return;
46277
46302
  }
@@ -46285,27 +46310,27 @@ const zse = Vn, Fse = {
46285
46310
  },
46286
46311
  error: { message: "must NOT be valid" }
46287
46312
  };
46288
- Kw.default = Fse;
46313
+ Kw.default = Bse;
46289
46314
  var Jw = {};
46290
46315
  Object.defineProperty(Jw, "__esModule", { value: !0 });
46291
- const Bse = An, qse = {
46316
+ const qse = An, Vse = {
46292
46317
  keyword: "anyOf",
46293
46318
  schemaType: "array",
46294
46319
  trackErrors: !0,
46295
- code: Bse.validateUnion,
46320
+ code: qse.validateUnion,
46296
46321
  error: { message: "must match a schema in anyOf" }
46297
46322
  };
46298
- Jw.default = qse;
46323
+ Jw.default = Vse;
46299
46324
  var Gw = {};
46300
46325
  Object.defineProperty(Gw, "__esModule", { value: !0 });
46301
- const Jh = Pn, Vse = Vn, Hse = {
46326
+ const Jh = Pn, Hse = Vn, Use = {
46302
46327
  message: "must match exactly one schema in oneOf",
46303
46328
  params: ({ params: t }) => (0, Jh._)`{passingSchemas: ${t.passing}}`
46304
- }, Use = {
46329
+ }, Wse = {
46305
46330
  keyword: "oneOf",
46306
46331
  schemaType: "array",
46307
46332
  trackErrors: !0,
46308
- error: Hse,
46333
+ error: Use,
46309
46334
  code(t) {
46310
46335
  const { gen: e, schema: n, parentSchema: r, it: i } = t;
46311
46336
  if (!Array.isArray(n))
@@ -46317,7 +46342,7 @@ const Jh = Pn, Vse = Vn, Hse = {
46317
46342
  function l() {
46318
46343
  o.forEach((f, c) => {
46319
46344
  let d;
46320
- (0, Vse.alwaysValidSchema)(i, f) ? e.var(u, !0) : d = t.subschema({
46345
+ (0, Hse.alwaysValidSchema)(i, f) ? e.var(u, !0) : d = t.subschema({
46321
46346
  keyword: "oneOf",
46322
46347
  schemaProp: c,
46323
46348
  compositeRule: !0
@@ -46328,10 +46353,10 @@ const Jh = Pn, Vse = Vn, Hse = {
46328
46353
  }
46329
46354
  }
46330
46355
  };
46331
- Gw.default = Use;
46356
+ Gw.default = Wse;
46332
46357
  var Qw = {};
46333
46358
  Object.defineProperty(Qw, "__esModule", { value: !0 });
46334
- const Wse = Vn, Kse = {
46359
+ const Kse = Vn, Jse = {
46335
46360
  keyword: "allOf",
46336
46361
  schemaType: "array",
46337
46362
  code(t) {
@@ -46340,24 +46365,24 @@ const Wse = Vn, Kse = {
46340
46365
  throw new Error("ajv implementation error");
46341
46366
  const i = e.name("valid");
46342
46367
  n.forEach((o, a) => {
46343
- if ((0, Wse.alwaysValidSchema)(r, o))
46368
+ if ((0, Kse.alwaysValidSchema)(r, o))
46344
46369
  return;
46345
46370
  const s = t.subschema({ keyword: "allOf", schemaProp: a }, i);
46346
46371
  t.ok(i), t.mergeEvaluated(s);
46347
46372
  });
46348
46373
  }
46349
46374
  };
46350
- Qw.default = Kse;
46375
+ Qw.default = Jse;
46351
46376
  var Yw = {};
46352
46377
  Object.defineProperty(Yw, "__esModule", { value: !0 });
46353
- const uv = Pn, SR = Vn, Jse = {
46378
+ const uv = Pn, SR = Vn, Gse = {
46354
46379
  message: ({ params: t }) => (0, uv.str)`must match "${t.ifClause}" schema`,
46355
46380
  params: ({ params: t }) => (0, uv._)`{failingKeyword: ${t.ifClause}}`
46356
- }, Gse = {
46381
+ }, Qse = {
46357
46382
  keyword: "if",
46358
46383
  schemaType: ["object", "boolean"],
46359
46384
  trackErrors: !0,
46360
- error: Jse,
46385
+ error: Gse,
46361
46386
  code(t) {
46362
46387
  const { gen: e, parentSchema: n, it: r } = t;
46363
46388
  n.then === void 0 && n.else === void 0 && (0, SR.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
@@ -46392,47 +46417,47 @@ function $A(t, e) {
46392
46417
  const n = t.schema[e];
46393
46418
  return n !== void 0 && !(0, SR.alwaysValidSchema)(t, n);
46394
46419
  }
46395
- Yw.default = Gse;
46420
+ Yw.default = Qse;
46396
46421
  var Xw = {};
46397
46422
  Object.defineProperty(Xw, "__esModule", { value: !0 });
46398
- const Qse = Vn, Yse = {
46423
+ const Yse = Vn, Xse = {
46399
46424
  keyword: ["then", "else"],
46400
46425
  schemaType: ["object", "boolean"],
46401
46426
  code({ keyword: t, parentSchema: e, it: n }) {
46402
- e.if === void 0 && (0, Qse.checkStrictMode)(n, `"${t}" without "if" is ignored`);
46427
+ e.if === void 0 && (0, Yse.checkStrictMode)(n, `"${t}" without "if" is ignored`);
46403
46428
  }
46404
46429
  };
46405
- Xw.default = Yse;
46430
+ Xw.default = Xse;
46406
46431
  Object.defineProperty(Fw, "__esModule", { value: !0 });
46407
- const Xse = Sc, Zse = Bw, eue = Cc, tue = qw, nue = Vw, rue = xR, iue = Hw, oue = dm, aue = Uw, sue = Ww, uue = Kw, lue = Jw, cue = Gw, fue = Qw, due = Yw, hue = Xw;
46408
- function pue(t = !1) {
46432
+ const Zse = Sc, eue = Bw, tue = Cc, nue = qw, rue = Vw, iue = xR, oue = Hw, aue = dm, sue = Uw, uue = Ww, lue = Kw, cue = Jw, fue = Gw, due = Qw, hue = Yw, pue = Xw;
46433
+ function vue(t = !1) {
46409
46434
  const e = [
46410
- uue.default,
46411
46435
  lue.default,
46412
46436
  cue.default,
46413
46437
  fue.default,
46414
46438
  due.default,
46415
46439
  hue.default,
46416
- iue.default,
46440
+ pue.default,
46417
46441
  oue.default,
46418
- rue.default,
46419
46442
  aue.default,
46420
- sue.default
46443
+ iue.default,
46444
+ sue.default,
46445
+ uue.default
46421
46446
  ];
46422
- return t ? e.push(Zse.default, tue.default) : e.push(Xse.default, eue.default), e.push(nue.default), e;
46447
+ return t ? e.push(eue.default, nue.default) : e.push(Zse.default, tue.default), e.push(rue.default), e;
46423
46448
  }
46424
- Fw.default = pue;
46449
+ Fw.default = vue;
46425
46450
  var Zw = {}, ek = {};
46426
46451
  Object.defineProperty(ek, "__esModule", { value: !0 });
46427
- const Lr = Pn, vue = {
46452
+ const Lr = Pn, mue = {
46428
46453
  message: ({ schemaCode: t }) => (0, Lr.str)`must match format "${t}"`,
46429
46454
  params: ({ schemaCode: t }) => (0, Lr._)`{format: ${t}}`
46430
- }, mue = {
46455
+ }, gue = {
46431
46456
  keyword: "format",
46432
46457
  type: ["number", "string"],
46433
46458
  schemaType: "string",
46434
46459
  $data: !0,
46435
- error: vue,
46460
+ error: mue,
46436
46461
  code(t, e) {
46437
46462
  const { gen: n, data: r, $data: i, schema: o, schemaCode: a, it: s } = t, { opts: u, errSchemaPath: l, schemaEnv: f, self: c } = s;
46438
46463
  if (!u.validateFormats)
@@ -46487,10 +46512,10 @@ const Lr = Pn, vue = {
46487
46512
  }
46488
46513
  }
46489
46514
  };
46490
- ek.default = mue;
46515
+ ek.default = gue;
46491
46516
  Object.defineProperty(Zw, "__esModule", { value: !0 });
46492
- const gue = ek, yue = [gue.default];
46493
- Zw.default = yue;
46517
+ const yue = ek, bue = [yue.default];
46518
+ Zw.default = bue;
46494
46519
  var rc = {};
46495
46520
  Object.defineProperty(rc, "__esModule", { value: !0 });
46496
46521
  rc.contentVocabulary = rc.metadataVocabulary = void 0;
@@ -46509,15 +46534,15 @@ rc.contentVocabulary = [
46509
46534
  "contentSchema"
46510
46535
  ];
46511
46536
  Object.defineProperty(Sw, "__esModule", { value: !0 });
46512
- const bue = Cw, wue = Ow, kue = Fw, _ue = Zw, OA = rc, xue = [
46513
- bue.default,
46537
+ const wue = Cw, kue = Ow, _ue = Fw, xue = Zw, OA = rc, jue = [
46514
46538
  wue.default,
46515
- (0, kue.default)(),
46516
- _ue.default,
46539
+ kue.default,
46540
+ (0, _ue.default)(),
46541
+ xue.default,
46517
46542
  OA.metadataVocabulary,
46518
46543
  OA.contentVocabulary
46519
46544
  ];
46520
- Sw.default = xue;
46545
+ Sw.default = jue;
46521
46546
  var tk = {}, CR = {};
46522
46547
  (function(t) {
46523
46548
  Object.defineProperty(t, "__esModule", { value: !0 }), t.DiscrError = void 0, function(e) {
@@ -46525,14 +46550,14 @@ var tk = {}, CR = {};
46525
46550
  }(t.DiscrError || (t.DiscrError = {}));
46526
46551
  })(CR);
46527
46552
  Object.defineProperty(tk, "__esModule", { value: !0 });
46528
- const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46553
+ const ml = Pn, Ry = CR, TA = Yi, Sue = Vn, Cue = {
46529
46554
  message: ({ params: { discrError: t, tagName: e } }) => t === Ry.DiscrError.Tag ? `tag "${e}" must be string` : `value of tag "${e}" must be in oneOf`,
46530
46555
  params: ({ params: { discrError: t, tag: e, tagName: n } }) => (0, ml._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`
46531
- }, Cue = {
46556
+ }, $ue = {
46532
46557
  keyword: "discriminator",
46533
46558
  type: "object",
46534
46559
  schemaType: "object",
46535
- error: Sue,
46560
+ error: Cue,
46536
46561
  code(t) {
46537
46562
  const { gen: e, data: n, schema: r, parentSchema: i, it: o } = t, { oneOf: a } = i;
46538
46563
  if (!o.opts.discriminator)
@@ -46563,7 +46588,7 @@ const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46563
46588
  let g = !0;
46564
46589
  for (let w = 0; w < a.length; w++) {
46565
46590
  let k = a[w];
46566
- (k == null ? void 0 : k.$ref) && !(0, jue.schemaHasRulesButRef)(k, o.self.RULES) && (k = TA.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, k == null ? void 0 : k.$ref), k instanceof TA.SchemaEnv && (k = k.schema));
46591
+ (k == null ? void 0 : k.$ref) && !(0, Sue.schemaHasRulesButRef)(k, o.self.RULES) && (k = TA.resolveRef.call(o.self, o.schemaEnv.root, o.baseId, k == null ? void 0 : k.$ref), k instanceof TA.SchemaEnv && (k = k.schema));
46567
46592
  const j = (h = k == null ? void 0 : k.properties) === null || h === void 0 ? void 0 : h[s];
46568
46593
  if (typeof j != "object")
46569
46594
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);
@@ -46592,8 +46617,8 @@ const ml = Pn, Ry = CR, TA = Yi, jue = Vn, Sue = {
46592
46617
  }
46593
46618
  }
46594
46619
  };
46595
- tk.default = Cue;
46596
- const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema.org/draft-07/schema#", Tue = "Core schema meta-schema", Aue = {
46620
+ tk.default = $ue;
46621
+ const Oue = "http://json-schema.org/draft-07/schema#", Tue = "http://json-schema.org/draft-07/schema#", Aue = "Core schema meta-schema", Eue = {
46597
46622
  schemaArray: {
46598
46623
  type: "array",
46599
46624
  minItems: 1,
@@ -46634,10 +46659,10 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46634
46659
  uniqueItems: !0,
46635
46660
  default: []
46636
46661
  }
46637
- }, Eue = [
46662
+ }, Mue = [
46638
46663
  "object",
46639
46664
  "boolean"
46640
- ], Mue = {
46665
+ ], Pue = {
46641
46666
  $id: {
46642
46667
  type: "string",
46643
46668
  format: "uri-reference"
@@ -46825,18 +46850,18 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46825
46850
  not: {
46826
46851
  $ref: "#"
46827
46852
  }
46828
- }, Pue = {
46829
- $schema: $ue,
46830
- $id: Oue,
46831
- title: Tue,
46832
- definitions: Aue,
46833
- type: Eue,
46834
- properties: Mue,
46853
+ }, Iue = {
46854
+ $schema: Oue,
46855
+ $id: Tue,
46856
+ title: Aue,
46857
+ definitions: Eue,
46858
+ type: Mue,
46859
+ properties: Pue,
46835
46860
  default: !0
46836
46861
  };
46837
46862
  (function(t, e) {
46838
46863
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
46839
- const n = KD, r = Sw, i = tk, o = Pue, a = ["/properties"], s = "http://json-schema.org/draft-07/schema";
46864
+ const n = KD, r = Sw, i = tk, o = Iue, a = ["/properties"], s = "http://json-schema.org/draft-07/schema";
46840
46865
  class u extends n.default {
46841
46866
  _addVocabularies() {
46842
46867
  super._addVocabularies(), r.default.forEach((d) => this.addVocabulary(d)), this.opts.discriminator && this.addKeyword(i.default);
@@ -46873,17 +46898,17 @@ const $ue = "http://json-schema.org/draft-07/schema#", Oue = "http://json-schema
46873
46898
  })(My, My.exports);
46874
46899
  const $R = /* @__PURE__ */ QR(My.exports);
46875
46900
  let Rc;
46876
- const Iue = [
46901
+ const Nue = [
46877
46902
  ["items", CD, $D],
46878
46903
  ["screens", ID, ND],
46879
46904
  ["skills", zD, FD],
46880
46905
  ["buttons", ED, MD],
46881
- ["scripts", WD, Uie],
46906
+ ["scripts", WD, Wie],
46882
46907
  ["audio", _D, xD],
46883
46908
  ["quests", OD, TD],
46884
46909
  ["tooltips", VD, HD],
46885
46910
  ["characters", BD, qD]
46886
- ], Nue = [
46911
+ ], Lue = [
46887
46912
  "baseAssetsPath",
46888
46913
  "baseDataPath",
46889
46914
  "gameTitle",
@@ -46900,22 +46925,22 @@ const Iue = [
46900
46925
  "debugging",
46901
46926
  "saves"
46902
46927
  ];
46903
- async function Lue(t) {
46928
+ async function Due(t) {
46904
46929
  const e = { ...Hu };
46905
- for (const n of Nue) {
46930
+ for (const n of Lue) {
46906
46931
  const r = t[n];
46907
46932
  r && (typeof r == "object" && !Array.isArray(r) ? e[n] = {
46908
46933
  ...e[n],
46909
46934
  ...r
46910
46935
  } : e[n] = r);
46911
46936
  }
46912
- for (const n of Iue) {
46937
+ for (const n of Nue) {
46913
46938
  const r = n[0], i = n[1], o = n[2];
46914
46939
  let a = t[r];
46915
46940
  if (a && typeof a == "string")
46916
46941
  try {
46917
46942
  a = await vw(
46918
- Rue(t.baseDataPath, a)
46943
+ zue(t.baseDataPath, a)
46919
46944
  );
46920
46945
  const s = new $R({ allErrors: !0 });
46921
46946
  if (!s.validate(i, a))
@@ -46930,11 +46955,11 @@ async function Lue(t) {
46930
46955
  Hh[n] ? Object.assign(Hh[n], Rc.transitions[n]) : Hh[n] = Rc.transitions[n];
46931
46956
  return e;
46932
46957
  }
46933
- async function Due(t) {
46958
+ async function Rue(t) {
46934
46959
  const e = await vw(t.configPath);
46935
46960
  t.baseAssetsPath ? e.baseAssetsPath = t.baseAssetsPath : e.baseAssetsPath = e.baseAssetsPath || "", t.baseDataPath ? e.baseDataPath = t.baseDataPath : e.baseDataPath = e.baseDataPath || "";
46936
46961
  const n = new $R({ allErrors: !0 });
46937
- return n.validate(Wie, e) || (Zt("Config file validation failed."), console.log(n.errors), Zt(n.errorsText())), Lue(e);
46962
+ return n.validate(Kie, e) || (Zt("Config file validation failed."), console.log(n.errors), Zt(n.errorsText())), Due(e);
46938
46963
  }
46939
46964
  function wt() {
46940
46965
  return UD().config;
@@ -46977,7 +47002,7 @@ function lv(t) {
46977
47002
  function gs(t) {
46978
47003
  return t.startsWith("http") ? t : wt().baseAssetsPath ? `${wt().baseAssetsPath}${t}` : t;
46979
47004
  }
46980
- function Rue(t, e) {
47005
+ function zue(t, e) {
46981
47006
  return `${t}${e}`;
46982
47007
  }
46983
47008
  function MR(t) {
@@ -46987,7 +47012,7 @@ function pu(t) {
46987
47012
  const e = OR().buttons[t];
46988
47013
  return e || Zt(`Button config for button ${t} doesn't exist`), e;
46989
47014
  }
46990
- function zue(t) {
47015
+ function Fue(t) {
46991
47016
  const e = rk().screens[t];
46992
47017
  return e || Zt(`Screen config for screen ${t} doesn't exist`), e;
46993
47018
  }
@@ -47020,11 +47045,11 @@ function PR(t, e, n) {
47020
47045
  u,
47021
47046
  l
47022
47047
  );
47023
- isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] = Bue(s, f);
47048
+ isNaN(Number(f)) || (f = Number(f)), u > 0 && (s = s[a]), [s, a] = que(s, f);
47024
47049
  }
47025
47050
  if (o !== -1) {
47026
47051
  u = o;
47027
- const l = n.substring(o + 1), f = Fue(l) + o, c = n.substring(o + 1, f), [d, h] = PR(
47052
+ const l = n.substring(o + 1), f = Bue(l) + o, c = n.substring(o + 1, f), [d, h] = PR(
47028
47053
  t,
47029
47054
  t,
47030
47055
  c
@@ -47040,7 +47065,7 @@ function PR(t, e, n) {
47040
47065
  }
47041
47066
  return [s, a];
47042
47067
  }
47043
- function Fue(t) {
47068
+ function Bue(t) {
47044
47069
  let e = !1, n = 0, r, i = 1;
47045
47070
  for (; !e; ) {
47046
47071
  r = t.substring(n);
@@ -47049,7 +47074,7 @@ function Fue(t) {
47049
47074
  }
47050
47075
  return n;
47051
47076
  }
47052
- function Bue(t, e) {
47077
+ function que(t, e) {
47053
47078
  if (typeof e == "number")
47054
47079
  return [t, e];
47055
47080
  e.startsWith(".") && (e = e.substring(1));
@@ -47064,7 +47089,7 @@ function Bue(t, e) {
47064
47089
  function vm(t, e) {
47065
47090
  return PR(t, t, e);
47066
47091
  }
47067
- function que(t, e) {
47092
+ function Vue(t, e) {
47068
47093
  return vm(t, e);
47069
47094
  }
47070
47095
  function IR(t, e, n) {
@@ -47220,7 +47245,7 @@ const Dr = hi("skills", {
47220
47245
  }
47221
47246
  });
47222
47247
  let AA;
47223
- const Vue = Nn({
47248
+ const Hue = Nn({
47224
47249
  components: {
47225
47250
  Modal: uc
47226
47251
  },
@@ -47374,42 +47399,42 @@ const Vue = Nn({
47374
47399
  }
47375
47400
  }
47376
47401
  });
47377
- const Hue = { class: "debug-menu" }, Uue = {
47402
+ const Uue = { class: "debug-menu" }, Wue = {
47378
47403
  key: 0,
47379
47404
  class: "debug-info"
47380
- }, Wue = /* @__PURE__ */ HR("<h3>Debug mode is ON</h3><ul><li><b>j</b>: Quick Label Jump</li><li><b>d</b>: Debug Menu</li><li><b>a</b>: Auto Play</li><li><b>s</b>: Skip</li><li><b>Space</b>: New Game</li><li><b>c</b>: Continue</li><li><b>Escape</b>: Toggle Menu</li></ul>", 2), Kue = [
47381
- Wue
47382
- ], Jue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Jump to label", -1), Gue = {
47405
+ }, Kue = /* @__PURE__ */ HR("<h3>Debug mode is ON</h3><ul><li><b>j</b>: Quick Label Jump</li><li><b>d</b>: Debug Menu</li><li><b>a</b>: Auto Play</li><li><b>s</b>: Skip</li><li><b>Space</b>: New Game</li><li><b>c</b>: Continue</li><li><b>Escape</b>: Toggle Menu</li></ul>", 2), Jue = [
47406
+ Kue
47407
+ ], Gue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Jump to label", -1), Que = {
47383
47408
  key: 0,
47384
47409
  class: "search-results"
47385
- }, Que = { key: 1 }, Yue = /* @__PURE__ */ Ie("h3", null, "No matches found", -1), Xue = [
47386
- Yue
47387
- ], Zue = /* @__PURE__ */ Ie("h3", { class: "title" }, "Error(s)", -1), ele = /* @__PURE__ */ sc(" There are errors in your dialogue scripts. Open the developer console for more details. "), tle = ["innerHTML"], nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Debug Menu!", -1), rle = { class: "container" }, ile = /* @__PURE__ */ sc(" Hello this is the debug menu. "), ole = /* @__PURE__ */ Ie("option", {
47410
+ }, Yue = { key: 1 }, Xue = /* @__PURE__ */ Ie("h3", null, "No matches found", -1), Zue = [
47411
+ Xue
47412
+ ], ele = /* @__PURE__ */ Ie("h3", { class: "title" }, "Error(s)", -1), tle = /* @__PURE__ */ sc(" There are errors in your dialogue scripts. Open the developer console for more details. "), nle = ["innerHTML"], rle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Debug Menu!", -1), ile = { class: "container" }, ole = /* @__PURE__ */ sc(" Hello this is the debug menu. "), ale = /* @__PURE__ */ Ie("option", {
47388
47413
  class: "option",
47389
47414
  selected: "",
47390
47415
  disabled: ""
47391
- }, "Jump to a label", -1), ale = ["value"], sle = { class: "grid grid-cols-3 gap-4" }, ule = /* @__PURE__ */ Ie("h2", null, "Variables Editor", -1), lle = { ref: "variablesViewer" }, cle = /* @__PURE__ */ Ie("h2", null, "Skill Checks", -1), fle = { class: "table-auto" }, dle = /* @__PURE__ */ Ie("thead", null, [
47416
+ }, "Jump to a label", -1), sle = ["value"], ule = { class: "grid grid-cols-3 gap-4" }, lle = /* @__PURE__ */ Ie("h2", null, "Variables Editor", -1), cle = { ref: "variablesViewer" }, fle = /* @__PURE__ */ Ie("h2", null, "Skill Checks", -1), dle = { class: "table-auto" }, hle = /* @__PURE__ */ Ie("thead", null, [
47392
47417
  /* @__PURE__ */ Ie("tr", null, [
47393
47418
  /* @__PURE__ */ Ie("th", null, "Skill Check"),
47394
47419
  /* @__PURE__ */ Ie("th", null, "Happened"),
47395
47420
  /* @__PURE__ */ Ie("th", null, "Succeeded")
47396
47421
  ])
47397
- ], -1), hle = /* @__PURE__ */ Ie("h2", null, "App State editor (entire app and engine", -1), ple = /* @__PURE__ */ Ie("h3", { style: { color: "pink" } }, " Use for debugging, editing some of those things can cause issues ", -1), vle = { ref: "stateViewer" };
47398
- function mle(t, e, n, r, i, o) {
47422
+ ], -1), ple = /* @__PURE__ */ Ie("h2", null, "App State editor (entire app and engine", -1), vle = /* @__PURE__ */ Ie("h3", { style: { color: "pink" } }, " Use for debugging, editing some of those things can cause issues ", -1), mle = { ref: "stateViewer" };
47423
+ function gle(t, e, n, r, i, o) {
47399
47424
  const a = Ni("modal");
47400
- return Ee(), Ye("div", Hue, [
47425
+ return Ee(), Ye("div", Uue, [
47401
47426
  Ie("button", {
47402
47427
  onClick: e[0] || (e[0] = (...s) => t.open && t.open(...s)),
47403
47428
  class: "button debug-button"
47404
47429
  }, "Debug Menu"),
47405
- !t.playing && t.flowState === "menu" ? (Ee(), Ye("div", Uue, Kue)) : vn("", !0),
47430
+ !t.playing && t.flowState === "menu" ? (Ee(), Ye("div", Wue, Jue)) : vn("", !0),
47406
47431
  t.jumping ? (Ee(), pn(a, {
47407
47432
  key: 1,
47408
47433
  onClose: t.finishJumping,
47409
47434
  containerCssClass: "jump-menu-container"
47410
47435
  }, {
47411
47436
  header: sr(() => [
47412
- Jue
47437
+ Gue
47413
47438
  ]),
47414
47439
  body: sr(() => [
47415
47440
  mf(Ie("input", {
@@ -47421,13 +47446,13 @@ function mle(t, e, n, r, i, o) {
47421
47446
  }, null, 544), [
47422
47447
  [hv, t.searchString]
47423
47448
  ]),
47424
- t.matches.length > 0 ? (Ee(), Ye("div", Gue, [
47449
+ t.matches.length > 0 ? (Ee(), Ye("div", Que, [
47425
47450
  (Ee(!0), Ye(Zn, null, cr(t.matches, (s, u) => (Ee(), Ye("div", {
47426
47451
  class: "search-result",
47427
47452
  style: lr(t.getMatchResultStyle(u)),
47428
47453
  key: u
47429
47454
  }, zt(s), 5))), 128))
47430
- ])) : (Ee(), Ye("div", Que, Xue))
47455
+ ])) : (Ee(), Ye("div", Yue, Zue))
47431
47456
  ]),
47432
47457
  _: 1
47433
47458
  }, 8, ["onClose"])) : vn("", !0),
@@ -47437,16 +47462,16 @@ function mle(t, e, n, r, i, o) {
47437
47462
  containerCssClass: "debug-menu-container"
47438
47463
  }, {
47439
47464
  header: sr(() => [
47440
- Zue
47465
+ ele
47441
47466
  ]),
47442
47467
  body: sr(() => [
47443
- ele,
47468
+ tle,
47444
47469
  Ie("ul", null, [
47445
47470
  (Ee(!0), Ye(Zn, null, cr(t.errors, (s, u) => (Ee(), Ye("li", {
47446
47471
  key: u,
47447
47472
  class: vr(["error-message list-disc", s.type === "error" ? "error" : "warning"]),
47448
47473
  innerHTML: s.text
47449
- }, null, 10, tle))), 128))
47474
+ }, null, 10, nle))), 128))
47450
47475
  ])
47451
47476
  ]),
47452
47477
  _: 1
@@ -47457,24 +47482,24 @@ function mle(t, e, n, r, i, o) {
47457
47482
  containerCssClass: "debug-menu-container"
47458
47483
  }, {
47459
47484
  header: sr(() => [
47460
- nle
47485
+ rle
47461
47486
  ]),
47462
47487
  body: sr(() => [
47463
- Ie("div", rle, [
47464
- ile,
47488
+ Ie("div", ile, [
47489
+ ole,
47465
47490
  Ie("select", {
47466
47491
  class: "select",
47467
47492
  name: "label-selector",
47468
47493
  onChange: e[3] || (e[3] = (s) => t.labelSelected(s))
47469
47494
  }, [
47470
- ole,
47495
+ ale,
47471
47496
  (Ee(!0), Ye(Zn, null, cr(t.labels, (s) => (Ee(), Ye("option", {
47472
47497
  class: "option",
47473
47498
  value: s,
47474
47499
  key: s
47475
- }, zt(s), 9, ale))), 128))
47500
+ }, zt(s), 9, sle))), 128))
47476
47501
  ], 32),
47477
- Ie("div", sle, [
47502
+ Ie("div", ule, [
47478
47503
  Ie("button", {
47479
47504
  onClick: e[4] || (e[4] = (...s) => t.wordCount && t.wordCount(...s)),
47480
47505
  class: "button"
@@ -47485,11 +47510,11 @@ function mle(t, e, n, r, i, o) {
47485
47510
  }, "Save Game")
47486
47511
  ]),
47487
47512
  Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
47488
- ule,
47489
- Ie("div", lle, null, 512),
47490
- cle,
47491
- Ie("table", fle, [
47492
- dle,
47513
+ lle,
47514
+ Ie("div", cle, null, 512),
47515
+ fle,
47516
+ Ie("table", dle, [
47517
+ hle,
47493
47518
  Ie("tbody", null, [
47494
47519
  (Ee(!0), Ye(Zn, null, cr(t.skillChecks, (s, u) => (Ee(), Ye("tr", { key: u }, [
47495
47520
  Ie("td", null, zt(u), 1),
@@ -47498,22 +47523,22 @@ function mle(t, e, n, r, i, o) {
47498
47523
  ]))), 128))
47499
47524
  ])
47500
47525
  ]),
47501
- hle,
47502
47526
  ple,
47503
- Ie("div", vle, null, 512)
47527
+ vle,
47528
+ Ie("div", mle, null, 512)
47504
47529
  ])
47505
47530
  ]),
47506
47531
  _: 1
47507
47532
  }, 8, ["onClose"])) : vn("", !0)
47508
47533
  ]);
47509
47534
  }
47510
- const gle = /* @__PURE__ */ go(Vue, [["render", mle]]), yle = Nn({
47535
+ const yle = /* @__PURE__ */ go(Hue, [["render", gle]]), ble = Nn({
47511
47536
  computed: {
47512
47537
  ...vs(To, ["notifications"])
47513
47538
  }
47514
47539
  });
47515
- const ble = ["innerHTML"];
47516
- function wle(t, e, n, r, i, o) {
47540
+ const wle = ["innerHTML"];
47541
+ function kle(t, e, n, r, i, o) {
47517
47542
  return Ee(), pn(Gc, {
47518
47543
  name: "notification",
47519
47544
  tag: "div",
@@ -47526,13 +47551,13 @@ function wle(t, e, n, r, i, o) {
47526
47551
  }, [
47527
47552
  Ie("h3", {
47528
47553
  innerHTML: a.text
47529
- }, null, 8, ble)
47554
+ }, null, 8, wle)
47530
47555
  ]))), 128))
47531
47556
  ]),
47532
47557
  _: 1
47533
47558
  });
47534
47559
  }
47535
- const kle = /* @__PURE__ */ go(yle, [["render", wle]]);
47560
+ const _le = /* @__PURE__ */ go(ble, [["render", kle]]);
47536
47561
  function LR(t, e = 50, n = {}) {
47537
47562
  var c, d;
47538
47563
  let r;
@@ -47568,10 +47593,10 @@ function LR(t, e = 50, n = {}) {
47568
47593
  r !== void 0 && clearTimeout(r), u.forEach(({ reject: p }) => p(h)), u = [];
47569
47594
  }, f;
47570
47595
  }
47571
- const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot flex flex-row justify-between items-center grow" }, jle = { class: "flex flex-col save-slot-number-container" }, Sle = { class: "save-slot-number" }, Cle = { class: "flex flex-col justify-center save-info" }, $le = {
47596
+ const xle = { class: "save-slot flex flex-row" }, jle = { class: "used-save-slot flex flex-row justify-between items-center grow" }, Sle = { class: "flex flex-col save-slot-number-container" }, Cle = { class: "save-slot-number" }, $le = { class: "flex flex-col justify-center save-info" }, Ole = {
47572
47597
  key: 1,
47573
47598
  class: "save-name"
47574
- }, Ole = { class: "flex flex-col" }, Tle = { key: 0 }, Ale = { key: 1 }, Ele = { key: 2 }, Mle = { class: "flex flex-row" }, Ple = ["onClick"], Eg = /* @__PURE__ */ Nn({
47599
+ }, Tle = { class: "flex flex-col" }, Ale = { key: 0 }, Ele = { key: 1 }, Mle = { key: 2 }, Ple = { class: "flex flex-row" }, Ile = ["onClick"], Eg = /* @__PURE__ */ Nn({
47575
47600
  __name: "save-slot-ui",
47576
47601
  props: {
47577
47602
  saveSlot: {
@@ -47616,17 +47641,17 @@ const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot
47616
47641
  const g = n.saveSlot.slotNumber;
47617
47642
  return g === 0 && wt().saves.mode === "manual" ? "AUTO" : (p >= 10 && g < 10 && (v += "0"), p >= 100 && g < 100 && (v += "0"), v + g);
47618
47643
  }
47619
- return (p, v) => (Ee(), Ye("div", _le, [
47620
- Ie("div", xle, [
47621
- Ie("div", jle, [
47622
- Ie("h1", Sle, zt(c()), 1)
47644
+ return (p, v) => (Ee(), Ye("div", xle, [
47645
+ Ie("div", jle, [
47646
+ Ie("div", Sle, [
47647
+ Ie("h1", Cle, zt(c()), 1)
47623
47648
  ]),
47624
47649
  bt(s) ? (Ee(), Ye("div", {
47625
47650
  key: 0,
47626
47651
  class: "save-slot-screenshot",
47627
47652
  style: lr(bt(s))
47628
47653
  }, null, 4)) : vn("", !0),
47629
- Ie("div", Cle, [
47654
+ Ie("div", $le, [
47630
47655
  bt(i) ? mf((Ee(), Ye("input", {
47631
47656
  key: 0,
47632
47657
  type: "text",
@@ -47635,27 +47660,27 @@ const _le = { class: "save-slot flex flex-row" }, xle = { class: "used-save-slot
47635
47660
  onInput: f
47636
47661
  }, null, 544)), [
47637
47662
  [hv, r.value]
47638
- ]) : (Ee(), Ye("h3", $le, zt(r.value), 1)),
47639
- Ie("div", Ole, [
47640
- bt(o) ? (Ee(), Ye("p", Tle, zt(new Date(bt(o).metadata.saveDate).toLocaleString()), 1)) : vn("", !0),
47641
- bt(o) ? (Ee(), Ye("p", Ale, "Play time: " + zt(l(t.saveSlot)), 1)) : vn("", !0),
47642
- bt(a) === "game-slots" ? (Ee(), Ye("p", Ele, zt(t.saveSlot.slotType === "auto" ? "Auto Save" : "Manual Save"), 1)) : vn("", !0)
47663
+ ]) : (Ee(), Ye("h3", Ole, zt(r.value), 1)),
47664
+ Ie("div", Tle, [
47665
+ bt(o) ? (Ee(), Ye("p", Ale, zt(new Date(bt(o).metadata.saveDate).toLocaleString()), 1)) : vn("", !0),
47666
+ bt(o) ? (Ee(), Ye("p", Ele, "Play time: " + zt(l(t.saveSlot)), 1)) : vn("", !0),
47667
+ bt(a) === "game-slots" ? (Ee(), Ye("p", Mle, zt(t.saveSlot.slotType === "auto" ? "Auto Save" : "Manual Save"), 1)) : vn("", !0)
47643
47668
  ])
47644
47669
  ]),
47645
- Ie("div", Mle, [
47670
+ Ie("div", Ple, [
47646
47671
  (Ee(!0), Ye(Zn, null, cr(t.actions, (g, m) => (Ee(), Ye("button", {
47647
47672
  class: "button",
47648
47673
  onClick: () => u(m),
47649
47674
  key: m
47650
47675
  }, [
47651
47676
  Ie("h3", null, zt(g), 1)
47652
- ], 8, Ple))), 128))
47677
+ ], 8, Ile))), 128))
47653
47678
  ])
47654
47679
  ])
47655
47680
  ]));
47656
47681
  }
47657
47682
  });
47658
- const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nle = { class: "flex justify-center" }, fv = /* @__PURE__ */ Nn({
47683
+ const Nle = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Lle = { class: "flex justify-center" }, fv = /* @__PURE__ */ Nn({
47659
47684
  __name: "yes-no",
47660
47685
  props: {
47661
47686
  prompt: {
@@ -47682,11 +47707,11 @@ const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nl
47682
47707
  containerCssClass: "yes-no-modal"
47683
47708
  }, {
47684
47709
  header: sr(() => [
47685
- Ile
47710
+ Nle
47686
47711
  ]),
47687
47712
  body: sr(() => [
47688
47713
  Ie("h3", null, zt(t.prompt), 1),
47689
- Ie("div", Nle, [
47714
+ Ie("div", Lle, [
47690
47715
  Ie("button", {
47691
47716
  class: "button",
47692
47717
  onClick: o[0] || (o[0] = () => r(!0))
@@ -47701,10 +47726,10 @@ const Ile = /* @__PURE__ */ Ie("h3", { class: "title" }, "Confirmation", -1), Nl
47701
47726
  }));
47702
47727
  }
47703
47728
  });
47704
- const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section" }, zle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Auto save", -1), Fle = { class: "saves-section" }, Ble = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Manual Saves", -1), qle = {
47729
+ const Dle = { class: "title" }, Rle = { key: 0 }, zle = { class: "saves-section" }, Fle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Auto save", -1), Ble = { class: "saves-section" }, qle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Manual Saves", -1), Vle = {
47705
47730
  key: 1,
47706
47731
  class: "saves-section"
47707
- }, Vle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Save Slots", -1), Hle = { class: "saves-container flex flex-col" }, DR = /* @__PURE__ */ Nn({
47732
+ }, Hle = /* @__PURE__ */ Ie("h3", { class: "saves-section-title" }, "Save Slots", -1), Ule = { class: "saves-container flex flex-col" }, DR = /* @__PURE__ */ Nn({
47708
47733
  __name: "save-slots",
47709
47734
  props: {
47710
47735
  mode: {
@@ -47777,12 +47802,12 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47777
47802
  cantClose: !1
47778
47803
  }, {
47779
47804
  header: sr(() => [
47780
- Ie("h3", Lle, zt(t.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
47805
+ Ie("h3", Dle, zt(t.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
47781
47806
  ]),
47782
47807
  body: sr(() => [
47783
- bt(s) === "manual" ? (Ee(), Ye("div", Dle, [
47784
- Ie("div", Rle, [
47785
- zle,
47808
+ bt(s) === "manual" ? (Ee(), Ye("div", Rle, [
47809
+ Ie("div", zle, [
47810
+ Fle,
47786
47811
  Br(Gc, {
47787
47812
  name: "list",
47788
47813
  tag: "div"
@@ -47799,8 +47824,8 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47799
47824
  _: 1
47800
47825
  })
47801
47826
  ]),
47802
- Ie("div", Fle, [
47803
- Ble,
47827
+ Ie("div", Ble, [
47828
+ qle,
47804
47829
  Br(Gc, {
47805
47830
  name: "list",
47806
47831
  tag: "div"
@@ -47817,9 +47842,9 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47817
47842
  _: 1
47818
47843
  })
47819
47844
  ])
47820
- ])) : (Ee(), Ye("div", qle, [
47821
- Vle,
47822
- Ie("div", Hle, [
47845
+ ])) : (Ee(), Ye("div", Vle, [
47846
+ Hle,
47847
+ Ie("div", Ule, [
47823
47848
  Br(Gc, {
47824
47849
  name: "list",
47825
47850
  tag: "div"
@@ -47854,7 +47879,7 @@ const Lle = { class: "title" }, Dle = { key: 0 }, Rle = { class: "saves-section"
47854
47879
  }));
47855
47880
  }
47856
47881
  });
47857
- class Ule extends gw {
47882
+ class Wle extends gw {
47858
47883
  setup(e = !1) {
47859
47884
  const r = e ? "keydown" : "keyup", i = LR(
47860
47885
  (o) => {
@@ -47873,7 +47898,7 @@ class Ule extends gw {
47873
47898
  });
47874
47899
  }
47875
47900
  }
47876
- const fa = new Ule(), RR = hi("startMenu", {
47901
+ const fa = new Wle(), RR = hi("startMenu", {
47877
47902
  state: () => ({
47878
47903
  buttons: []
47879
47904
  }),
@@ -47887,10 +47912,10 @@ const fa = new Ule(), RR = hi("startMenu", {
47887
47912
  });
47888
47913
  }
47889
47914
  }
47890
- }), Wle = { id: "game-menu" }, Kle = {
47915
+ }), Kle = { id: "game-menu" }, Jle = {
47891
47916
  id: "game-header",
47892
47917
  class: "flex flex-col justify-between items-center"
47893
- }, Jle = { id: "game-title-container" }, Gle = { id: "game-title-text" }, Qle = { class: "flex flex-col start-menu-buttons-container" }, Yle = ["onClick"], Xle = { class: "title" }, Zle = /* @__PURE__ */ Nn({
47918
+ }, Gle = { id: "game-title-container" }, Qle = { id: "game-title-text" }, Yle = { class: "flex flex-col start-menu-buttons-container" }, Xle = ["onClick"], Zle = { class: "title" }, ece = /* @__PURE__ */ Nn({
47894
47919
  __name: "StartMenu",
47895
47920
  setup(t) {
47896
47921
  const e = Hn(!1), n = Hn(!1), r = Hn(null), i = Hn(null), o = Hn(!1), a = Hn(!1), s = Hn(null), u = RR(), l = Hn(!1), f = ft(() => u.buttons);
@@ -47957,7 +47982,7 @@ const fa = new Ule(), RR = hi("startMenu", {
47957
47982
  s.value && fa.off("debouncedKeydown", s.value);
47958
47983
  });
47959
47984
  const w = ft(() => wt().gameTitle);
47960
- return (k, j) => (Ee(), Ye("div", Wle, [
47985
+ return (k, j) => (Ee(), Ye("div", Kle, [
47961
47986
  o.value ? (Ee(), pn(DR, {
47962
47987
  key: 0,
47963
47988
  mode: "load",
@@ -47970,11 +47995,11 @@ const fa = new Ule(), RR = hi("startMenu", {
47970
47995
  onConfirm: d,
47971
47996
  onRefuse: v
47972
47997
  })) : vn("", !0),
47973
- Ie("div", Kle, [
47974
- Ie("div", Jle, [
47975
- Ie("h1", Gle, zt(bt(w)), 1)
47998
+ Ie("div", Jle, [
47999
+ Ie("div", Gle, [
48000
+ Ie("h1", Qle, zt(bt(w)), 1)
47976
48001
  ]),
47977
- Ie("div", Qle, [
48002
+ Ie("div", Yle, [
47978
48003
  r.value ? (Ee(), Ye("button", {
47979
48004
  key: 0,
47980
48005
  class: "button menu-button main-menu-button large continue-button override",
@@ -47994,7 +48019,7 @@ const fa = new Ule(), RR = hi("startMenu", {
47994
48019
  key: S.id,
47995
48020
  class: vr(["button menu-button main-menu-button large override", `${S.id}-start-menu-button`]),
47996
48021
  onClick: (A) => h(S)
47997
- }, zt(S.text), 11, Yle))), 128))
48022
+ }, zt(S.text), 11, Xle))), 128))
47998
48023
  ])
47999
48024
  ]),
48000
48025
  l.value ? (Ee(), pn(qy, {
@@ -48006,7 +48031,7 @@ const fa = new Ule(), RR = hi("startMenu", {
48006
48031
  class: vr(`start-menu-popup-${l.value.id}`)
48007
48032
  }, {
48008
48033
  header: sr(() => [
48009
- Ie("h3", Xle, zt(l.value.text), 1)
48034
+ Ie("h3", Zle, zt(l.value.text), 1)
48010
48035
  ]),
48011
48036
  body: sr(() => [
48012
48037
  l.value.popupComponent ? (Ee(), pn(PA(l.value.popupComponent.component), {
@@ -48020,7 +48045,7 @@ const fa = new Ule(), RR = hi("startMenu", {
48020
48045
  ]));
48021
48046
  }
48022
48047
  });
48023
- const ece = { class: "title" }, tce = /* @__PURE__ */ Nn({
48048
+ const tce = { class: "title" }, nce = /* @__PURE__ */ Nn({
48024
48049
  __name: "alert-modal",
48025
48050
  props: {
48026
48051
  title: {
@@ -48040,7 +48065,7 @@ const ece = { class: "title" }, tce = /* @__PURE__ */ Nn({
48040
48065
  header: sr(() => {
48041
48066
  var r;
48042
48067
  return [
48043
- Ie("h3", ece, zt((r = t.title) != null ? r : "Alert"), 1)
48068
+ Ie("h3", tce, zt((r = t.title) != null ? r : "Alert"), 1)
48044
48069
  ];
48045
48070
  }),
48046
48071
  body: sr(() => [
@@ -48054,7 +48079,7 @@ function ik(t) {
48054
48079
  const e = TR().characters[t];
48055
48080
  return e || Zt(`Character ${t} not found`), e;
48056
48081
  }
48057
- function nce(t, e) {
48082
+ function rce(t, e) {
48058
48083
  const n = ik(t);
48059
48084
  if (!!n && (e || (e = "default"), n.sprites)) {
48060
48085
  const r = `${TR().config.imagesPath}${n.sprites[e]}`;
@@ -48065,7 +48090,7 @@ function kh(t) {
48065
48090
  var e;
48066
48091
  return t ? ((e = ik(t)) == null ? void 0 : e.style) || {} : {};
48067
48092
  }
48068
- const rce = Nn({
48093
+ const ice = Nn({
48069
48094
  props: {
48070
48095
  pictureUrl: String
48071
48096
  },
@@ -48100,8 +48125,8 @@ const rce = Nn({
48100
48125
  }
48101
48126
  }
48102
48127
  });
48103
- const ice = ["src"];
48104
- function oce(t, e, n, r, i, o) {
48128
+ const oce = ["src"];
48129
+ function ace(t, e, n, r, i, o) {
48105
48130
  return Ee(), Ye("div", {
48106
48131
  class: "dialog-picture override",
48107
48132
  style: lr(t.boxStyle)
@@ -48109,10 +48134,10 @@ function oce(t, e, n, r, i, o) {
48109
48134
  Ie("img", {
48110
48135
  src: t.getAssetUrl(t.pictureUrl),
48111
48136
  class: "picture override"
48112
- }, null, 8, ice)
48137
+ }, null, 8, oce)
48113
48138
  ], 4);
48114
48139
  }
48115
- const ace = /* @__PURE__ */ go(rce, [["render", oce]]), sce = Nn({
48140
+ const sce = /* @__PURE__ */ go(ice, [["render", ace]]), uce = Nn({
48116
48141
  data() {
48117
48142
  return {
48118
48143
  playerText: "",
@@ -48329,38 +48354,38 @@ const ace = /* @__PURE__ */ go(rce, [["render", oce]]), sce = Nn({
48329
48354
  }
48330
48355
  }
48331
48356
  });
48332
- const uce = { class: "dialog-content" }, lce = ["innerHTML"], cce = ["innerHTML"], fce = ["innerHTML"], dce = { key: 1 }, hce = {
48357
+ const lce = { class: "dialog-content" }, cce = ["innerHTML"], fce = ["innerHTML"], dce = ["innerHTML"], hce = { key: 1 }, pce = {
48333
48358
  key: 0,
48334
48359
  class: "dialog-choices"
48335
- }, pce = ["onClick", "innerHTML"], vce = { key: 1 }, mce = {
48360
+ }, vce = ["onClick", "innerHTML"], mce = { key: 1 }, gce = {
48336
48361
  key: 2,
48337
48362
  class: "buttons-container"
48338
48363
  };
48339
- function gce(t, e, n, r, i, o) {
48364
+ function yce(t, e, n, r, i, o) {
48340
48365
  const a = UR("visible");
48341
48366
  return Ee(), Ye("div", {
48342
48367
  class: vr(["dialog-box w-full override", t.dialogBoxClass]),
48343
48368
  style: lr(t.dialogBoxStyle)
48344
48369
  }, [
48345
- Ie("div", uce, [
48370
+ Ie("div", lce, [
48346
48371
  t.options.title ? (Ee(), Ye("span", {
48347
48372
  key: 0,
48348
48373
  class: "dialog-title override",
48349
48374
  style: lr(t.titleStyle),
48350
48375
  innerHTML: t.options.title
48351
- }, null, 12, lce)) : vn("", !0),
48376
+ }, null, 12, cce)) : vn("", !0),
48352
48377
  Ie("span", {
48353
48378
  class: "dialog-text dialog-separator override",
48354
48379
  style: lr(t.textStyle),
48355
48380
  innerHTML: t.preText
48356
- }, null, 12, cce),
48381
+ }, null, 12, fce),
48357
48382
  Ie("span", {
48358
48383
  class: vr(["dialog-text override", t.options.cssClass]),
48359
48384
  style: lr(t.textStyle),
48360
48385
  innerHTML: t.text
48361
- }, null, 14, fce),
48362
- t.options.old ? vn("", !0) : mf((Ee(), Ye("div", dce, [
48363
- t.choices ? (Ee(), Ye("div", hce, [
48386
+ }, null, 14, dce),
48387
+ t.options.old ? vn("", !0) : mf((Ee(), Ye("div", hce, [
48388
+ t.choices ? (Ee(), Ye("div", pce, [
48364
48389
  (Ee(!0), Ye(Zn, null, cr(t.choices, (s, u) => (Ee(), Ye("p", {
48365
48390
  key: u,
48366
48391
  style: lr(t.dialogStyle(s)),
@@ -48369,8 +48394,8 @@ function gce(t, e, n, r, i, o) {
48369
48394
  ref_for: !0,
48370
48395
  ref: "choices",
48371
48396
  innerHTML: `${u + 1}. \u2013\xA0 ${s.choice}`
48372
- }, null, 14, pce))), 128))
48373
- ])) : t.options.textField ? (Ee(), Ye("div", vce, [
48397
+ }, null, 14, vce))), 128))
48398
+ ])) : t.options.textField ? (Ee(), Ye("div", mce, [
48374
48399
  mf(Ie("input", {
48375
48400
  type: "text",
48376
48401
  class: "label-input input",
@@ -48385,7 +48410,7 @@ function gce(t, e, n, r, i, o) {
48385
48410
  class: "button",
48386
48411
  id: "player-input-submit"
48387
48412
  }, " Submit ")
48388
- ])) : (Ee(), Ye("div", mce, [
48413
+ ])) : (Ee(), Ye("div", gce, [
48389
48414
  Ie("div", {
48390
48415
  onClick: e[2] || (e[2] = (s) => t.chooseOption(0)),
48391
48416
  ref: "continue",
@@ -48398,7 +48423,7 @@ function gce(t, e, n, r, i, o) {
48398
48423
  ])
48399
48424
  ], 6);
48400
48425
  }
48401
- const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie("div", { class: "anchor" }, null, -1), wce = /* @__PURE__ */ Nn({
48426
+ const bce = /* @__PURE__ */ go(uce, [["render", yce]]), wce = /* @__PURE__ */ Ie("div", { class: "anchor" }, null, -1), kce = /* @__PURE__ */ Nn({
48402
48427
  __name: "game-dialog",
48403
48428
  props: {
48404
48429
  layoutMode: String,
@@ -48418,7 +48443,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48418
48443
  if (h.value) {
48419
48444
  const j = h.value.speaker;
48420
48445
  let S = h.value.pose;
48421
- return j ? (S || (S = "idle"), nce(j, S)) : void 0;
48446
+ return j ? (S || (S = "idle"), rce(j, S)) : void 0;
48422
48447
  }
48423
48448
  }), v = ft(() => i.dialogWidth), g = ft(() => rn().inScript);
48424
48449
  Gh(g, (j) => {
@@ -48486,7 +48511,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48486
48511
  }), (j, S) => (Ee(), Ye(Zn, null, [
48487
48512
  Br(pf, { name: "fade" }, {
48488
48513
  default: sr(() => [
48489
- bt(p) && bt(i).showDialog ? (Ee(), pn(ace, {
48514
+ bt(p) && bt(i).showDialog ? (Ee(), pn(sce, {
48490
48515
  key: 0,
48491
48516
  pictureUrl: bt(p)
48492
48517
  }, null, 8, ["pictureUrl"])) : vn("", !0)
@@ -48509,7 +48534,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48509
48534
  style: lr(bt(d))
48510
48535
  }, {
48511
48536
  default: sr(() => [
48512
- (Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(yce, {
48537
+ (Ee(!0), Ye(Zn, null, cr(bt(u), (A, C) => (Ee(), pn(bce, {
48513
48538
  ref_for: !0,
48514
48539
  ref: (O) => f.value = O,
48515
48540
  key: A.id,
@@ -48531,7 +48556,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48531
48556
  }, " Skip ")
48532
48557
  ])
48533
48558
  ])),
48534
- bce
48559
+ wce
48535
48560
  ], 4)) : vn("", !0)
48536
48561
  ]),
48537
48562
  _: 1
@@ -48539,7 +48564,7 @@ const yce = /* @__PURE__ */ go(sce, [["render", gce]]), bce = /* @__PURE__ */ Ie
48539
48564
  ], 64));
48540
48565
  }
48541
48566
  });
48542
- const kce = ["id"], _ce = ["src"], xce = { class: "tab-title" }, jce = /* @__PURE__ */ Nn({
48567
+ const _ce = ["id"], xce = ["src"], jce = { class: "tab-title" }, Sce = /* @__PURE__ */ Nn({
48543
48568
  __name: "tab-selector",
48544
48569
  props: {
48545
48570
  tab: null,
@@ -48564,23 +48589,23 @@ const kce = ["id"], _ce = ["src"], xce = { class: "tab-title" }, jce = /* @__PUR
48564
48589
  src: t.tab.icon,
48565
48590
  alt: "tab icon",
48566
48591
  class: "tab-icon"
48567
- }, null, 8, _ce)) : vn("", !0),
48568
- Ie("span", xce, zt(t.tab.label), 1)
48592
+ }, null, 8, xce)) : vn("", !0),
48593
+ Ie("span", jce, zt(t.tab.label), 1)
48569
48594
  ], 2)
48570
- ], 10, kce));
48595
+ ], 10, _ce));
48571
48596
  }
48572
48597
  });
48573
- const Sce = { class: "tabs-controller" }, Cce = {
48598
+ const Cce = { class: "tabs-controller" }, $ce = {
48574
48599
  key: 0,
48575
48600
  class: "tabs-controller__tabs"
48576
- }, $ce = {
48601
+ }, Oce = {
48577
48602
  key: 1,
48578
48603
  class: "tab-content"
48579
- }, Oce = { key: 2 }, Tce = /* @__PURE__ */ Ie("div", { class: "tab-content__empty" }, [
48604
+ }, Tce = { key: 2 }, Ace = /* @__PURE__ */ Ie("div", { class: "tab-content__empty" }, [
48580
48605
  /* @__PURE__ */ Ie("p", null, "No tab selected")
48581
- ], -1), Ace = [
48582
- Tce
48583
- ], Ece = /* @__PURE__ */ Nn({
48606
+ ], -1), Ece = [
48607
+ Ace
48608
+ ], Mce = /* @__PURE__ */ Nn({
48584
48609
  __name: "TabsController",
48585
48610
  props: {
48586
48611
  tabs: null,
@@ -48596,25 +48621,25 @@ const Sce = { class: "tabs-controller" }, Cce = {
48596
48621
  r.value = n.tabs[u].id, e("tab-change", u);
48597
48622
  }
48598
48623
  const o = ft(() => n.tabs.find((u) => u.id === r.value));
48599
- return (u, l) => (Ee(), Ye("div", Sce, [
48600
- t.tabs.length > 1 ? (Ee(), Ye("div", Cce, [
48601
- (Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(jce, {
48624
+ return (u, l) => (Ee(), Ye("div", Cce, [
48625
+ t.tabs.length > 1 ? (Ee(), Ye("div", $ce, [
48626
+ (Ee(!0), Ye(Zn, null, cr(t.tabs, (f, c) => (Ee(), pn(Sce, {
48602
48627
  key: f.id,
48603
48628
  tab: f,
48604
48629
  active: f.id === r.value,
48605
48630
  onClick: () => i(c)
48606
48631
  }, null, 8, ["tab", "active", "onClick"]))), 128))
48607
48632
  ])) : vn("", !0),
48608
- bt(o) ? (Ee(), Ye("div", $ce, [
48633
+ bt(o) ? (Ee(), Ye("div", Oce, [
48609
48634
  bt(o) ? (Ee(), pn(PA(bt(o).component), {
48610
48635
  key: 0,
48611
48636
  onClose: l[0] || (l[0] = (f) => u.$emit("close"))
48612
48637
  }, null, 32)) : vn("", !0)
48613
- ])) : (Ee(), Ye("div", Oce, Ace))
48638
+ ])) : (Ee(), Ye("div", Tce, Ece))
48614
48639
  ]));
48615
48640
  }
48616
48641
  });
48617
- const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class: "title" }, Nce = /* @__PURE__ */ Nn({
48642
+ const Pce = { class: "menu-container" }, Ice = ["onClick", "id"], Nce = { class: "title" }, Lce = /* @__PURE__ */ Nn({
48618
48643
  __name: "menu-buttons",
48619
48644
  setup(t) {
48620
48645
  const e = ea(), n = Hn(null);
@@ -48645,7 +48670,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48645
48670
  function l() {
48646
48671
  return s();
48647
48672
  }
48648
- return (f, c) => (Ee(), Ye("div", Mce, [
48673
+ return (f, c) => (Ee(), Ye("div", Pce, [
48649
48674
  (Ee(!0), Ye(Zn, null, cr(bt(i), (d, h) => {
48650
48675
  var p;
48651
48676
  return Ee(), Ye("button", {
@@ -48653,7 +48678,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48653
48678
  onClick: (v) => r(d.id),
48654
48679
  id: (p = d.cssId) != null ? p : `${h}-menu-button`,
48655
48680
  class: "button menu-toggle-button"
48656
- }, zt(d.label), 9, Pce);
48681
+ }, zt(d.label), 9, Ice);
48657
48682
  }), 128)),
48658
48683
  bt(o) ? (Ee(), pn(qy, {
48659
48684
  key: 0,
@@ -48666,11 +48691,11 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48666
48691
  header: sr(() => {
48667
48692
  var d, h;
48668
48693
  return [
48669
- Ie("h3", Ice, zt((h = (d = bt(e).tab) == null ? void 0 : d.text) != null ? h : bt(o).label), 1)
48694
+ Ie("h3", Nce, zt((h = (d = bt(e).tab) == null ? void 0 : d.text) != null ? h : bt(o).label), 1)
48670
48695
  ];
48671
48696
  }),
48672
48697
  body: sr(() => [
48673
- Br(Ece, {
48698
+ Br(Mce, {
48674
48699
  onTabChange: u,
48675
48700
  onClose: l,
48676
48701
  tabs: bt(a),
@@ -48683,7 +48708,7 @@ const Mce = { class: "menu-container" }, Pce = ["onClick", "id"], Ice = { class:
48683
48708
  ]));
48684
48709
  }
48685
48710
  });
48686
- const Lce = ["id"], Dce = ["innerHTML"], Rce = /* @__PURE__ */ Nn({
48711
+ const Dce = ["id"], Rce = ["innerHTML"], zce = /* @__PURE__ */ Nn({
48687
48712
  __name: "screen-object",
48688
48713
  props: {
48689
48714
  screenObject: null,
@@ -48726,17 +48751,17 @@ const Lce = ["id"], Dce = ["innerHTML"], Rce = /* @__PURE__ */ Nn({
48726
48751
  }, [
48727
48752
  Ie("span", {
48728
48753
  innerHTML: e.screenObject.text ? bt(Xs)(e.screenObject.text) : void 0
48729
- }, null, 8, Dce),
48754
+ }, null, 8, Rce),
48730
48755
  (Ee(!0), Ye(Zn, null, cr(e.screenObject.children, (u) => (Ee(), pn(s, {
48731
48756
  transitioning: t.transitioning,
48732
48757
  key: u.id,
48733
48758
  screenObject: u
48734
48759
  }, null, 8, ["transitioning", "screenObject"]))), 128))
48735
- ], 14, Lce);
48760
+ ], 14, Dce);
48736
48761
  };
48737
48762
  }
48738
48763
  });
48739
- const zce = ["id"], Fce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ Nn({
48764
+ const Fce = ["id"], Bce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ Nn({
48740
48765
  __name: "screen-layer",
48741
48766
  props: {
48742
48767
  layer: String,
@@ -48817,16 +48842,16 @@ const zce = ["id"], Fce = ["id", "onClick", "innerHTML"], Mg = /* @__PURE__ */ N
48817
48842
  onClick: (C) => y(S),
48818
48843
  style: lr(m(S)),
48819
48844
  innerHTML: b(S)
48820
- }, null, 14, Fce))), 128)),
48821
- (Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(Rce, {
48845
+ }, null, 14, Bce))), 128)),
48846
+ (Ee(!0), Ye(Zn, null, cr(bt(o).tree, (S) => (Ee(), pn(zce, {
48822
48847
  key: S.id,
48823
48848
  screenObject: S,
48824
48849
  transitioning: t.transitioning
48825
48850
  }, null, 8, ["screenObject", "transitioning"]))), 128))
48826
- ], 12, zce)) : vn("", !0);
48851
+ ], 12, Fce)) : vn("", !0);
48827
48852
  }
48828
48853
  });
48829
- const Bce = /* @__PURE__ */ Nn({
48854
+ const qce = /* @__PURE__ */ Nn({
48830
48855
  __name: "NarratTransition",
48831
48856
  props: {
48832
48857
  name: {
@@ -48877,7 +48902,7 @@ const Bce = /* @__PURE__ */ Nn({
48877
48902
  ], 64));
48878
48903
  }
48879
48904
  });
48880
- const qce = /* @__PURE__ */ Nn({
48905
+ const Vce = /* @__PURE__ */ Nn({
48881
48906
  __name: "screens",
48882
48907
  setup(t) {
48883
48908
  const e = Mo(), n = rn(), r = Oa(), i = ft(() => r.nonEmptyLayers), o = ft(() => e.layoutMode), a = ft(() => wt().layout.backgrounds.width), s = ft(() => wt().layout.backgrounds.height), u = ft(() => n.isInGame);
@@ -48901,7 +48926,7 @@ const qce = /* @__PURE__ */ Nn({
48901
48926
  key: p,
48902
48927
  class: "layer-container"
48903
48928
  }, [
48904
- h.transition ? (Ee(), pn(Bce, {
48929
+ h.transition ? (Ee(), pn(qce, {
48905
48930
  key: 0,
48906
48931
  name: h.transition.transition,
48907
48932
  duration: h.transition.duration,
@@ -48931,7 +48956,7 @@ const qce = /* @__PURE__ */ Nn({
48931
48956
  ], 4)) : vn("", !0);
48932
48957
  }
48933
48958
  });
48934
- const Vce = Nn({
48959
+ const Hce = Nn({
48935
48960
  data() {
48936
48961
  return {};
48937
48962
  },
@@ -48958,8 +48983,8 @@ const Vce = Nn({
48958
48983
  }
48959
48984
  }
48960
48985
  });
48961
- const Hce = ["src"], Uce = { class: "bold hud-text" }, Wce = /* @__PURE__ */ sc(": ");
48962
- function Kce(t, e, n, r, i, o) {
48986
+ const Uce = ["src"], Wce = { class: "bold hud-text" }, Kce = /* @__PURE__ */ sc(": ");
48987
+ function Jce(t, e, n, r, i, o) {
48963
48988
  return Ee(), Ye("div", {
48964
48989
  class: "hud",
48965
48990
  style: lr(t.hudStyle)
@@ -48971,28 +48996,28 @@ function Kce(t, e, n, r, i, o) {
48971
48996
  Ie("img", {
48972
48997
  class: "hud-icon",
48973
48998
  src: t.getStatImage(s)
48974
- }, null, 8, Hce),
48975
- Ie("span", Uce, zt(t.statsConfig[s].name), 1),
48976
- Wce,
48999
+ }, null, 8, Uce),
49000
+ Ie("span", Wce, zt(t.statsConfig[s].name), 1),
49001
+ Kce,
48977
49002
  Ie("span", null, zt(Math.floor(a.value * 100) / 100), 1)
48978
49003
  ]))), 128))
48979
49004
  ], 4);
48980
49005
  }
48981
- const Jce = /* @__PURE__ */ go(Vce, [["render", Kce]]), Gce = {
49006
+ const Gce = /* @__PURE__ */ go(Hce, [["render", Jce]]), Qce = {
48982
49007
  key: 0,
48983
49008
  class: "auto-play-feedback-container"
48984
- }, Qce = /* @__PURE__ */ Nn({
49009
+ }, Yce = /* @__PURE__ */ Nn({
48985
49010
  __name: "AutoPlayFeedback",
48986
49011
  setup(t) {
48987
49012
  const e = Xn(), n = ft(() => e.playMode === "auto"), r = ft(() => e.playMode === "skip"), i = ft(() => n.value ? "auto-play-feedback-auto" : r.value ? "auto-play-feedback-skip" : {}), o = ft(() => n.value ? "Auto Play" : r.value ? "Skip" : "");
48988
- return (a, s) => bt(o) ? (Ee(), Ye("div", Gce, [
49013
+ return (a, s) => bt(o) ? (Ee(), Ye("div", Qce, [
48989
49014
  Ie("div", {
48990
49015
  class: vr(["auto-play-feedback", bt(i)])
48991
49016
  }, zt(bt(o)), 3)
48992
49017
  ])) : vn("", !0);
48993
49018
  }
48994
49019
  });
48995
- const Yce = /* @__PURE__ */ Nn({
49020
+ const Xce = /* @__PURE__ */ Nn({
48996
49021
  __name: "in-game",
48997
49022
  setup(t) {
48998
49023
  const e = rn(), n = Mo(), r = ft(() => n.layoutMode), i = ft(() => e.saving), o = Hn(null), a = Xn(), s = Hn(null), u = ft(
@@ -49026,10 +49051,10 @@ const Yce = /* @__PURE__ */ Nn({
49026
49051
  class: "game",
49027
49052
  style: lr(bt(l))
49028
49053
  }, [
49029
- Br(Jce),
49030
- Br(Nce, { class: "menu-toggle" }),
49031
- Br(qce),
49032
- Br(wce, {
49054
+ Br(Gce),
49055
+ Br(Lce, { class: "menu-toggle" }),
49056
+ Br(Vce),
49057
+ Br(kce, {
49033
49058
  inGame: !0,
49034
49059
  layoutMode: bt(r)
49035
49060
  }, null, 8, ["layoutMode"]),
@@ -49039,7 +49064,7 @@ const Yce = /* @__PURE__ */ Nn({
49039
49064
  onChosen: f,
49040
49065
  onClose: p[0] || (p[0] = () => f(null))
49041
49066
  })) : vn("", !0),
49042
- Br(Qce),
49067
+ Br(Yce),
49043
49068
  bt(i) && bt(i).withPrompt && o.value === null ? (Ee(), pn(fv, {
49044
49069
  key: 1,
49045
49070
  prompt: "Would you like to save the game?",
@@ -49049,7 +49074,7 @@ const Yce = /* @__PURE__ */ Nn({
49049
49074
  ], 4));
49050
49075
  }
49051
49076
  });
49052
- const Xce = Nn({
49077
+ const Zce = Nn({
49053
49078
  props: {
49054
49079
  percentage: Number,
49055
49080
  step: String
@@ -49063,22 +49088,22 @@ const Xce = Nn({
49063
49088
  },
49064
49089
  computed: {}
49065
49090
  });
49066
- const Zce = { id: "loading-bar" }, efe = { id: "loading-text" };
49067
- function tfe(t, e, n, r, i, o) {
49068
- return Ee(), Ye("div", Zce, [
49091
+ const efe = { id: "loading-bar" }, tfe = { id: "loading-text" };
49092
+ function nfe(t, e, n, r, i, o) {
49093
+ return Ee(), Ye("div", efe, [
49069
49094
  Ie("div", {
49070
49095
  id: "inner-loading-bar",
49071
49096
  style: lr(t.loadingStyle())
49072
49097
  }, null, 4),
49073
- Ie("div", efe, [
49098
+ Ie("div", tfe, [
49074
49099
  Ie("h3", null, "Loading " + zt(Math.floor(t.percentage * 100)) + "% - " + zt(t.step), 1)
49075
49100
  ])
49076
49101
  ]);
49077
49102
  }
49078
- const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", ife = {
49103
+ const rfe = /* @__PURE__ */ go(Zce, [["render", nfe]]), ife = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlJhdCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDU5NS4zIDU5NS4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OTUuMyA1OTUuMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNFMjNCMzM7fQo8L3N0eWxlPgo8cGF0aCBpZD0iUmF0X1NoYXBlIiBjbGFzcz0ic3QwIiBkPSJNNTU2LjksODIuNWMtMTAuOC0yNC4zLTQ3LTU3LjEtNzEuMy02NS42Yy0yNC4zLTguNC02NC4xLTAuMy04OC43LDIyLjMKCWMtMjAsMTguNC0yNiwyOC4yLTI5LjEsMzdjLTIuMSw1LjktNC44LDEzLjUtNiwyMC45djBjLTAuNSw0LjEtNC41LDctOC42LDYuMWMtMTAuNC0yLjMtMjkuNS02LTQ0LjQtNi4zCgljLTEzLjctMC4yLTMwLjEsMy4yLTQwLjQsNS43Yy00LjUsMS4xLTguOC0yLjItOC44LTYuOGMtMC4xLTUuMy0xLjEtMTIuMy00LjgtMTkuNmMtOC41LTE2LjktMTkuNi0zMi42LTU3LjgtNDcuNAoJYy0zMS45LTEyLjQtNzUuMS05LjctMTAwLjgsMS44Yy0yOC4xLDEyLjYtNDIuNCwzNy45LTU0LDYxLjhjLTE0LjQsMjkuOC0xNC45LDgzLjYtNi40LDEwNGMxMi44LDMwLjcsMzUuOCw0Ny4yLDUyLjYsNTMKCWMxMS4zLDMuOCwyOC4yLDMuNywzOC4yLDMuM2M0LjItMC4yLDcuNywzLjMsNy41LDcuNWMtMC43LDEzLjYtMC45LDQxLjUsNyw2MS40YzcuNywxOS40LDI5LjcsNjIuMyw1MC43LDEwMS4yCgljMCwwLjEtMTQuNiwyLjktMzEuNCw2LjhjLTIzLjksNS41LTUyLjYsMTIuNy01NC4zLDEzLjdjLTMuNSwyLjEtMywxMC0yLjcsMTJjMC41LDMuNCw1LjMsOC4xLDYuOSw4LjNjMy45LDAuMywzMS4zLTcuNiw1NS43LTE0LjYKCWMxOC41LTUuMywzNC45LTkuMywzNS41LTguMmM1LjEsOS4zLDEwLDE4LDE0LjQsMjUuOGM1LjIsOS4xLDEwLjcsMTYuNCwxNC4xLDIzLjZjMS4xLDIuMy0xNi42LDUuOC0zMi41LDE0LjcKCWMtMTYuNCw5LjEtMjkuNywyMS0zMi4zLDI0Yy0xLjgsMi4xLTMsNi0xLjIsMTAuN2MxLjEsMi45LDEwLDUuNywxMi40LDUuMWM2LjgtMS43LDE2LjUtMTIuNSwzMy4xLTIxLjEKCWMxNi4zLTguNSwzMi45LTE0LjksMzMuOC0xMy42YzkuNywxNC4zLDE2LjksMjEuNiwyMi42LDMxLjJjOS44LDE2LjUsMjcuMyw0NS45LDQ2LjYsMzkuNWM2LjQtMi4xLDMxLjEtMzMuNiw1My4zLTY4LjYKCWMxLjMtMi4xLDE2LjEsMTEuMywzMC40LDIzLjJjMTMuOCwxMS40LDIyLjcsMjAuNiwyNy4xLDIxLjRjNS40LDEsMTQuMi03LjcsMTQuMS0xNC43Yy0wLjEtMi43LTE0LjMtMTMuOC0yOS4xLTI2LjIKCWMtMTQuNS0xMi4xLTMwLjEtMjIuOC0yOS4yLTI0LjNjNy42LTEyLDE0LjUtMjMuNywyMC4xLTMzLjljNC4zLTcuOCw4LjktMTYsMTMtMjQuN2MwLjYtMS4yLDE1LjksMywzMS40LDcuMWMxNS4zLDQsMjYuNywxMCwzMSw4CgljNi45LTMsMTEuNi0xMy44LDkuNC0xOC4zYy0xLjEtMi4zLTE3LTcuMy0zMy4yLTEyYy0xNC4yLTQuMS0yOC02LjUtMjcuNy03LjNjMTUuNS0zNCwyOC44LTY0LjgsMjcuNi02OS42CgljLTEuNy03LjEsMi42LTExLjksNy0zNi41YzMuMi0xOC4xLDQuNy00MC45LDUuMi01MS43YzAuMi0zLjUsMi44LTYuMyw2LjMtNi43YzMuMS0wLjMsNi45LTAuOSwxMC41LTEuOWM3LjgtMiwxOC42LTcuOCwzNi40LTIwLjYKCWMxNy45LTEyLjgsMzguNy00OS42LDQ0LjQtNjcuOFM1NjcuNiwxMDYuOCw1NTYuOSw4Mi41eiBNMjY1LjEsMzM2LjJjLTguMSw0LTEzLDctMjYuNCw5LjZjLTYuOSwxLjQtMjkuNC0wLjItNDAuNy00LjYKCWMtMTAuNS00LjEtMTkuOS03LjYtMzAtMTUuNHMtMTUuNy0xMy4yLTE1LjctMTUuM2MwLTQuNCw2LTkuNCwxMS05LjRjNS4xLDAsMTQuNSw5LjIsMjkuNywxNi42YzE0LjMsNywxNy45LDYuMSwyNS40LDcuMwoJYzIuOSwwLjUsNy43LDAuNiwxMC43LDAuNGMxNC4xLTEuMywyMS40LTUuOSwyNS4zLTguOGM0LTMsMTMuNy0xMi45LDE3LjItMTIuNWM4LDEsMTguOSwzLjQsMTguOSw3LjEKCUMyOTAuNCwzMTksMjczLjIsMzMyLjEsMjY1LjEsMzM2LjJ6IE0zMjAuOSw1MjEuNGMtNC4zLDMuNy0xNy43LDEzLjUtMjMuMywxMy41Yy0yLjgsMC03LjQtOC4yLTExLjUtMTYuOAoJYy00LjEtOC41LTkuMS0yMS4xLTkuMS0zMS42YzAtNC42LDYtNy40LDEzLjQtOS4yYzcuMi0xLjcsMjcuMy0xLjgsMjkuOS0xLjFjNi44LDEuNywxMi45LDIuMiwxMi43LDYuNGMtMC40LDEyLjctNywxOC45LTguMywyNC4zCglDMzIzLjQsNTEyLjMsMzIzLjQsNTE5LjIsMzIwLjksNTIxLjR6IE00MzEuMSwzMjAuM2MtOS4yLDcuNC0xMC42LDguMS0yNC45LDEzLjdjLTExLjMsNC40LTI4LjYsNS44LTQxLjYsMy42CgljLTEyLjItMi4xLTIyLjMtNC42LTI5LjUtMTAuMWMtOS43LTcuMy0xNi40LTE1LjEtMTYuNC0xOS44YzAtMy43LDYuNC00LjMsMTQuNS00LjljMy41LTAuMyw5LjMsNS45LDEzLjIsOS4yCgljOC4xLDYuOCwxNC44LDgsMjguOCw5LjljMi45LDAuNCw3LjgsMC40LDEwLjcsMC4xYzcuNS0wLjksMTItMC40LDI1LjgtOC4yYzIwLTExLjIsMTcuOC0xNC40LDI1LjEtMTIuNmMyLjIsMC42LDUuOCwxLjIsNS42LDUuNgoJQzQ0Mi40LDMwOSw0NDAuNSwzMTIuNyw0MzEuMSwzMjAuM3oiLz4KPC9zdmc+Cg==", ofe = {
49079
49104
  id: "engine-splash-screen",
49080
49105
  class: "flex justify-center items-center"
49081
- }, ofe = { id: "engine-splash-title" }, afe = ["src"], sfe = /* @__PURE__ */ Nn({
49106
+ }, afe = { id: "engine-splash-title" }, sfe = ["src"], ufe = /* @__PURE__ */ Nn({
49082
49107
  __name: "engine-splash",
49083
49108
  emits: ["finished"],
49084
49109
  setup(t, { emit: e }) {
@@ -49095,7 +49120,7 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49095
49120
  () => typeof a.value.overrideText == "string" ? a.value.overrideText : "Made with narrat engine"
49096
49121
  ), u = ft(() => {
49097
49122
  var d;
49098
- return (d = a.value.overrideLogo) != null ? d : rfe;
49123
+ return (d = a.value.overrideLogo) != null ? d : ife;
49099
49124
  }), l = ft(
49100
49125
  () => typeof a.value.fadeDuration == "number" ? a.value.fadeDuration : 2
49101
49126
  ), f = ft(
@@ -49113,19 +49138,19 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49113
49138
  e("finished");
49114
49139
  });
49115
49140
  }
49116
- return (d, h) => (Ee(), Ye("div", ife, [
49141
+ return (d, h) => (Ee(), Ye("div", ofe, [
49117
49142
  Ie("div", {
49118
49143
  id: "engine-splash-header",
49119
49144
  class: vr(["flex justify-center flex-col items-center", bt(i)]),
49120
49145
  style: lr(bt(r))
49121
49146
  }, [
49122
- Ie("h1", ofe, zt(bt(s)), 1),
49147
+ Ie("h1", afe, zt(bt(s)), 1),
49123
49148
  Ie("img", {
49124
49149
  src: bt(u),
49125
49150
  alt: "Narrat Logo",
49126
49151
  id: "engine-splash-logo"
49127
- }, null, 8, afe),
49128
- Br(nfe, {
49152
+ }, null, 8, sfe),
49153
+ Br(rfe, {
49129
49154
  percentage: bt(o).loading.percentage,
49130
49155
  step: bt(o).loading.step
49131
49156
  }, null, 8, ["percentage", "step"])
@@ -49133,17 +49158,17 @@ const nfe = /* @__PURE__ */ go(Xce, [["render", tfe]]), rfe = "data:image/svg+xm
49133
49158
  ]));
49134
49159
  }
49135
49160
  });
49136
- const ufe = {
49161
+ const lfe = {
49137
49162
  id: "game-splash-screen",
49138
49163
  style: { height: "100%", padding: "20px" },
49139
49164
  class: "flex justify-center items-center"
49140
- }, lfe = {
49165
+ }, cfe = {
49141
49166
  id: "game-splash-screen-header flex justify-center flex-col items-center",
49142
49167
  class: "flex justify-center flex-col items-center"
49143
- }, cfe = {
49168
+ }, ffe = {
49144
49169
  class: "title",
49145
49170
  id: "game-splash-title"
49146
- }, ffe = /* @__PURE__ */ Nn({
49171
+ }, dfe = /* @__PURE__ */ Nn({
49147
49172
  __name: "game-splash",
49148
49173
  setup(t) {
49149
49174
  const e = rn(), n = ft(
@@ -49159,9 +49184,9 @@ const ufe = {
49159
49184
  }
49160
49185
  return ys(() => {
49161
49186
  e.options.debug && a();
49162
- }), (s, u) => (Ee(), Ye("div", ufe, [
49163
- Ie("div", lfe, [
49164
- Ie("h1", cfe, zt(bt(o)), 1),
49187
+ }), (s, u) => (Ee(), Ye("div", lfe, [
49188
+ Ie("div", cfe, [
49189
+ Ie("h1", ffe, zt(bt(o)), 1),
49165
49190
  bt(i) ? (Ee(), Ye("button", {
49166
49191
  key: 0,
49167
49192
  class: "button menu-button main-menu-button large splash-start-button override",
@@ -49171,10 +49196,10 @@ const ufe = {
49171
49196
  ]));
49172
49197
  }
49173
49198
  });
49174
- const dfe = {
49199
+ const hfe = {
49175
49200
  key: 0,
49176
49201
  class: "floating-tooltip-title"
49177
- }, hfe = /* @__PURE__ */ Ie("hr", null, null, -1), pfe = { class: "floating-tooltip-text" }, vfe = /* @__PURE__ */ Nn({
49202
+ }, pfe = /* @__PURE__ */ Ie("hr", null, null, -1), vfe = { class: "floating-tooltip-text" }, mfe = /* @__PURE__ */ Nn({
49178
49203
  __name: "floating-tooltip",
49179
49204
  props: {
49180
49205
  title: null,
@@ -49201,26 +49226,26 @@ const dfe = {
49201
49226
  ref_key: "element",
49202
49227
  ref: r
49203
49228
  }, [
49204
- t.title ? (Ee(), Ye("div", dfe, [
49229
+ t.title ? (Ee(), Ye("div", hfe, [
49205
49230
  sc(zt(e.title) + " ", 1),
49206
- hfe
49231
+ pfe
49207
49232
  ])) : vn("", !0),
49208
- Ie("div", pfe, zt(e.text), 1)
49233
+ Ie("div", vfe, zt(e.text), 1)
49209
49234
  ], 4)
49210
49235
  ]),
49211
49236
  _: 1
49212
49237
  }));
49213
49238
  }
49214
49239
  });
49215
- const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49240
+ const gfe = { class: "tooltips-ui" }, yfe = /* @__PURE__ */ Nn({
49216
49241
  __name: "tooltips-ui",
49217
49242
  setup(t) {
49218
49243
  const e = ft(() => sw().tooltip);
49219
- return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div", mfe, [
49220
- bt(e) ? (Ee(), pn(vfe, KR(JR({ key: 0 }, bt(e))), null, 16)) : vn("", !0)
49244
+ return ft(() => pm().options.width), (n, r) => (Ee(), Ye("div", gfe, [
49245
+ bt(e) ? (Ee(), pn(mfe, KR(JR({ key: 0 }, bt(e))), null, 16)) : vn("", !0)
49221
49246
  ]));
49222
49247
  }
49223
- }), yfe = Nn({
49248
+ }), bfe = Nn({
49224
49249
  setup() {
49225
49250
  const t = Xn(), e = En(), n = rn();
49226
49251
  return {
@@ -49235,14 +49260,14 @@ const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49235
49260
  },
49236
49261
  inject: ["mq"],
49237
49262
  components: {
49238
- DebugMenu: gle,
49239
- NotificationToast: kle,
49240
- StartMenu: Zle,
49241
- AlertModal: tce,
49242
- InGame: Yce,
49243
- EngineSplash: sfe,
49244
- GameSplash: ffe,
49245
- TooltipsUi: gfe
49263
+ DebugMenu: yle,
49264
+ NotificationToast: _le,
49265
+ StartMenu: ece,
49266
+ AlertModal: nce,
49267
+ InGame: Xce,
49268
+ EngineSplash: ufe,
49269
+ GameSplash: dfe,
49270
+ TooltipsUi: yfe
49246
49271
  },
49247
49272
  data() {
49248
49273
  return {
@@ -49306,7 +49331,7 @@ const mfe = { class: "tooltips-ui" }, gfe = /* @__PURE__ */ Nn({
49306
49331
  }
49307
49332
  }
49308
49333
  });
49309
- function bfe(t, e, n, r, i, o) {
49334
+ function wfe(t, e, n, r, i, o) {
49310
49335
  const a = Ni("EngineSplash"), s = Ni("GameSplash"), u = Ni("StartMenu"), l = Ni("InGame"), f = Ni("DebugMenu"), c = Ni("NotificationToast"), d = Ni("AlertModal"), h = Ni("TooltipsUi");
49311
49336
  return Ee(), Ye(Zn, null, [
49312
49337
  Ie("div", {
@@ -49342,13 +49367,13 @@ function bfe(t, e, n, r, i, o) {
49342
49367
  Br(h)
49343
49368
  ], 64);
49344
49369
  }
49345
- const wfe = /* @__PURE__ */ go(yfe, [["render", bfe]]);
49370
+ const kfe = /* @__PURE__ */ go(bfe, [["render", wfe]]);
49346
49371
  function Jt(t, e) {
49347
49372
  console.error("Runtime error ========================="), console.error(`Command: ${t.commandType}`), console.error("Args: ", t.args), console.error("Options: ", t.options), Zt(`Runtime error at ${t.fileName}:${t.line} (${t.commandType}) ${t.code}. -
49348
49373
  <br />
49349
49374
  Error: ${e}`), console.error("============================");
49350
49375
  }
49351
- function kfe(t, ...e) {
49376
+ function _fe(t, ...e) {
49352
49377
  console.log(`[${t.fileName}:${t.line}] log: `, ...e);
49353
49378
  }
49354
49379
  class Qe {
@@ -49409,7 +49434,7 @@ function mm(t, e) {
49409
49434
  });
49410
49435
  };
49411
49436
  }
49412
- const _fe = new Qe(
49437
+ const xfe = new Qe(
49413
49438
  "add_level",
49414
49439
  [
49415
49440
  {
@@ -49434,7 +49459,7 @@ const _fe = new Qe(
49434
49459
  }
49435
49460
  Dr().incrementSkill(e, n);
49436
49461
  }
49437
- ), xfe = Qe.FromOptions({
49462
+ ), jfe = Qe.FromOptions({
49438
49463
  keyword: "set_level",
49439
49464
  argTypes: [
49440
49465
  { name: "skill", type: "string" },
@@ -49453,7 +49478,7 @@ const _fe = new Qe(
49453
49478
  }
49454
49479
  Dr().setSkillLevel(e, n);
49455
49480
  }
49456
- }), jfe = new Qe(
49481
+ }), Sfe = new Qe(
49457
49482
  "add_xp",
49458
49483
  [
49459
49484
  { name: "xpKey", type: "string" },
@@ -49466,7 +49491,7 @@ const _fe = new Qe(
49466
49491
  "add_xp command needs a skill id and a value as parameters"
49467
49492
  ), Dr().addXp(e, n);
49468
49493
  }
49469
- ), Sfe = new Qe(
49494
+ ), Cfe = new Qe(
49470
49495
  "get_level",
49471
49496
  [
49472
49497
  {
@@ -49483,7 +49508,7 @@ const _fe = new Qe(
49483
49508
  const n = Dr().getSkill(e);
49484
49509
  return n || Jt(t, `Skill ${e} not found`), n.level;
49485
49510
  }
49486
- ), Cfe = new Qe(
49511
+ ), $fe = new Qe(
49487
49512
  "get_xp",
49488
49513
  [
49489
49514
  {
@@ -49497,7 +49522,7 @@ const _fe = new Qe(
49497
49522
  const n = Dr().getSkillXp(e);
49498
49523
  return n || Jt(t, `XP ${e} not found`), n;
49499
49524
  }
49500
- ), $fe = new Qe(
49525
+ ), Ofe = new Qe(
49501
49526
  "roll",
49502
49527
  [
49503
49528
  { name: "id", type: "string" },
@@ -49516,15 +49541,15 @@ const _fe = new Qe(
49516
49541
  repeatable: a
49517
49542
  }).succeeded;
49518
49543
  }
49519
- ), Ofe = new Qe(
49544
+ ), Tfe = new Qe(
49520
49545
  "get_skill_check",
49521
49546
  [{ name: "skillCheckId", type: "string" }],
49522
49547
  async (t) => Dr().getSkillCheck(t.options.skillCheckId)
49523
- ), Tfe = new Qe(
49548
+ ), Afe = new Qe(
49524
49549
  "skill_check_result",
49525
49550
  [{ name: "skillCheckId", type: "string" }],
49526
49551
  async (t) => Dr().getSkillCheck(t.options.skillCheckId).succeeded
49527
- ), Afe = new Qe(
49552
+ ), Efe = new Qe(
49528
49553
  "reset_roll",
49529
49554
  [
49530
49555
  {
@@ -49533,7 +49558,7 @@ const _fe = new Qe(
49533
49558
  }
49534
49559
  ],
49535
49560
  async (t) => Dr().resetSkillCheck(t.options.id)
49536
- ), Efe = new Qe(
49561
+ ), Mfe = new Qe(
49537
49562
  "add_stat",
49538
49563
  [
49539
49564
  { name: "statKey", type: "string" },
@@ -49546,7 +49571,7 @@ const _fe = new Qe(
49546
49571
  "add_stat command needs a stat id and a value as parameters"
49547
49572
  ), is().addStat(e, n);
49548
49573
  }
49549
- ), Mfe = new Qe(
49574
+ ), Pfe = new Qe(
49550
49575
  "set_stat",
49551
49576
  [
49552
49577
  { name: "statKey", type: "string" },
@@ -49559,13 +49584,13 @@ const _fe = new Qe(
49559
49584
  "set_stat command needs a stat id and a value as parameters"
49560
49585
  ), is().setStat(e, n);
49561
49586
  }
49562
- ), Pfe = new Qe("get_stat_value", [{ name: "statKey", type: "string" }], async (t) => {
49587
+ ), Ife = new Qe("get_stat_value", [{ name: "statKey", type: "string" }], async (t) => {
49563
49588
  const { statKey: e } = t.options;
49564
49589
  return e || Jt(
49565
49590
  t,
49566
49591
  "get_stat_value command needs a stat id as parameter"
49567
49592
  ), is().getStatValue(e);
49568
- }), Ife = Qe.FromOptions({
49593
+ }), Nfe = Qe.FromOptions({
49569
49594
  keyword: "jump",
49570
49595
  argTypes: "any",
49571
49596
  runner: async (t) => {
@@ -49582,7 +49607,7 @@ const _fe = new Qe(
49582
49607
  }
49583
49608
  return n.jumpTarget = r, Qp;
49584
49609
  }
49585
- }), Nfe = Qe.FromOptions({
49610
+ }), Lfe = Qe.FromOptions({
49586
49611
  keyword: "run",
49587
49612
  argTypes: "any",
49588
49613
  runner: async (t) => {
@@ -49590,7 +49615,7 @@ const _fe = new Qe(
49590
49615
  const e = t.args[0];
49591
49616
  return await En().runLabelFunction(e, ...t.args.slice(1));
49592
49617
  }
49593
- }), Lfe = Qe.FromOptions({
49618
+ }), Dfe = Qe.FromOptions({
49594
49619
  keyword: "var",
49595
49620
  argTypes: [
49596
49621
  { name: "name", type: "string" },
@@ -49600,30 +49625,30 @@ const _fe = new Qe(
49600
49625
  const { name: e, value: n } = t.options;
49601
49626
  En().addScopedVariable(e, n);
49602
49627
  }
49603
- }), Dfe = Qe.FromOptions({
49628
+ }), Rfe = Qe.FromOptions({
49604
49629
  keyword: "return",
49605
49630
  argTypes: [{ name: "value", type: "any" }],
49606
49631
  runner: async (t) => {
49607
49632
  const { value: e } = t.options;
49608
49633
  return En().setReturnValue(e), aw;
49609
49634
  }
49610
- }), Rfe = Qe.FromOptions({
49635
+ }), zfe = Qe.FromOptions({
49611
49636
  keyword: "log",
49612
49637
  argTypes: "any",
49613
49638
  runner: async (t) => {
49614
- kfe(t, ...t.args);
49639
+ _fe(t, ...t.args);
49615
49640
  }
49616
- }), zfe = Qe.FromOptions({
49641
+ }), Ffe = Qe.FromOptions({
49617
49642
  keyword: "menu_return",
49618
49643
  argTypes: [],
49619
49644
  runner: async (t) => (rn().menuReturn(), Yp)
49620
- }), Ffe = Qe.FromOptions({
49645
+ }), Bfe = Qe.FromOptions({
49621
49646
  keyword: "save",
49622
49647
  argTypes: [{ name: "name", type: "string", optional: !0 }],
49623
49648
  runner: async (t) => {
49624
49649
  await rn().manualSave({ saveName: t.options.name });
49625
49650
  }
49626
- }), Bfe = Qe.FromOptions({
49651
+ }), qfe = Qe.FromOptions({
49627
49652
  keyword: "save_prompt",
49628
49653
  argTypes: [{ name: "name", type: "string", optional: !0 }],
49629
49654
  runner: async (t) => {
@@ -49632,7 +49657,7 @@ const _fe = new Qe(
49632
49657
  withPrompt: !0
49633
49658
  });
49634
49659
  }
49635
- }), qfe = Qe.FromOptions({
49660
+ }), Vfe = Qe.FromOptions({
49636
49661
  keyword: "new",
49637
49662
  argTypes: [
49638
49663
  { name: "name", type: "string" },
@@ -49645,18 +49670,18 @@ const _fe = new Qe(
49645
49670
  if (e === "Object")
49646
49671
  return {};
49647
49672
  }
49648
- }), Vfe = [
49673
+ }), Hfe = [
49649
49674
  { name: "mode", type: "string" },
49650
49675
  { name: "audio", type: "string" },
49651
49676
  { name: "channel", type: "number", optional: !0 }
49652
- ], Hfe = new Qe(
49677
+ ], Ufe = new Qe(
49653
49678
  "play",
49654
- Vfe,
49679
+ Hfe,
49655
49680
  async (t) => {
49656
49681
  const e = wi(), { mode: n, audio: r, channel: i } = t.options, o = ok(t, n);
49657
49682
  o && e.playChannel(o, r, i != null ? i : 0);
49658
49683
  }
49659
- ), Ufe = new Qe(
49684
+ ), Wfe = new Qe(
49660
49685
  "pause",
49661
49686
  [
49662
49687
  { name: "mode", type: "string" },
@@ -49666,7 +49691,7 @@ const _fe = new Qe(
49666
49691
  const e = wi(), { mode: n, channel: r } = t.options, i = ok(t, n);
49667
49692
  i && e.pauseChannel(i, r != null ? r : 0);
49668
49693
  }
49669
- ), Wfe = new Qe(
49694
+ ), Kfe = new Qe(
49670
49695
  "stop",
49671
49696
  [
49672
49697
  { name: "mode", type: "string" },
@@ -49678,12 +49703,12 @@ const _fe = new Qe(
49678
49703
  }
49679
49704
  );
49680
49705
  function ok(t, e) {
49681
- return Kfe(e) ? e : (Jt(t, `${e} is not a valid audio mode.`), !1);
49706
+ return Jfe(e) ? e : (Jt(t, `${e} is not a valid audio mode.`), !1);
49682
49707
  }
49683
- function Kfe(t) {
49708
+ function Jfe(t) {
49684
49709
  return !!dL.includes(t);
49685
49710
  }
49686
- const Jfe = new Qe(
49711
+ const Gfe = new Qe(
49687
49712
  "set",
49688
49713
  [
49689
49714
  { name: "key", type: "string" },
@@ -49693,7 +49718,7 @@ const Jfe = new Qe(
49693
49718
  const e = oc();
49694
49719
  IR(e, `$${t.options.key}`, t.options.value);
49695
49720
  }
49696
- ), Gfe = new Qe(
49721
+ ), Qfe = new Qe(
49697
49722
  "add",
49698
49723
  [
49699
49724
  { name: "key", type: "string" },
@@ -49703,7 +49728,7 @@ const Jfe = new Qe(
49703
49728
  const e = oc();
49704
49729
  NR(e, `$${t.options.key}`, t.options.value);
49705
49730
  }
49706
- ), Qfe = new Qe(
49731
+ ), Yfe = new Qe(
49707
49732
  "set_screen",
49708
49733
  [
49709
49734
  { name: "screen", type: "string" },
@@ -49715,7 +49740,7 @@ const Jfe = new Qe(
49715
49740
  async (t) => {
49716
49741
  var r;
49717
49742
  const e = Oa();
49718
- if (!zue(t.options.screen)) {
49743
+ if (!Fue(t.options.screen)) {
49719
49744
  Jt(
49720
49745
  t,
49721
49746
  `Screen ${t.options.screen} doesn't exist in the config`
@@ -49732,7 +49757,7 @@ const Jfe = new Qe(
49732
49757
  t.options.layer
49733
49758
  ) : e.setScreen(t.options.screen, (r = t.options.layer) != null ? r : 0);
49734
49759
  }
49735
- ), Yfe = new Qe(
49760
+ ), Xfe = new Qe(
49736
49761
  "empty_layer",
49737
49762
  [
49738
49763
  { name: "layer", type: "number" },
@@ -49748,7 +49773,7 @@ const Jfe = new Qe(
49748
49773
  delay: t.options.transitionDelay
49749
49774
  }) : e.emptyLayer(t.options.layer);
49750
49775
  }
49751
- ), Xfe = new Qe(
49776
+ ), Zfe = new Qe(
49752
49777
  "set_button",
49753
49778
  [
49754
49779
  { name: "buttonId", type: "string" },
@@ -49765,7 +49790,7 @@ const Jfe = new Qe(
49765
49790
  }
49766
49791
  r.changeButton(e, n);
49767
49792
  }
49768
- ), Zfe = Qe.FromOptions({
49793
+ ), ede = Qe.FromOptions({
49769
49794
  keyword: "talk",
49770
49795
  argTypes: [
49771
49796
  {
@@ -49792,7 +49817,7 @@ const Jfe = new Qe(
49792
49817
  });
49793
49818
  },
49794
49819
  returnAfterPlayerAnswer: !0
49795
- }), ede = Qe.FromOptions({
49820
+ }), tde = Qe.FromOptions({
49796
49821
  keyword: "think",
49797
49822
  argTypes: [
49798
49823
  {
@@ -49819,7 +49844,7 @@ const Jfe = new Qe(
49819
49844
  });
49820
49845
  },
49821
49846
  returnAfterPlayerAnswer: !0
49822
- }), tde = () => {
49847
+ }), nde = () => {
49823
49848
  const t = mm("text", []);
49824
49849
  return (e, n) => {
49825
49850
  const r = t(e, n);
@@ -49827,7 +49852,7 @@ const Jfe = new Qe(
49827
49852
  text: n.code.substring(1, n.code.length - 1)
49828
49853
  }, r;
49829
49854
  };
49830
- }, nde = Qe.FromOptions({
49855
+ }, rde = Qe.FromOptions({
49831
49856
  keyword: "text",
49832
49857
  argTypes: [],
49833
49858
  runner: async (t, e) => {
@@ -49839,9 +49864,9 @@ const Jfe = new Qe(
49839
49864
  interactive: !0
49840
49865
  });
49841
49866
  },
49842
- parser: tde(),
49867
+ parser: nde(),
49843
49868
  returnAfterPlayerAnswer: !0
49844
- }), rde = new Qe(
49869
+ }), ide = new Qe(
49845
49870
  "add_item",
49846
49871
  [
49847
49872
  { name: "id", type: "string" },
@@ -49854,7 +49879,7 @@ const Jfe = new Qe(
49854
49879
  amount: n
49855
49880
  });
49856
49881
  }
49857
- ), ide = new Qe(
49882
+ ), ode = new Qe(
49858
49883
  "remove_item",
49859
49884
  [
49860
49885
  { name: "id", type: "string" },
@@ -49867,7 +49892,7 @@ const Jfe = new Qe(
49867
49892
  amount: n
49868
49893
  });
49869
49894
  }
49870
- ), ode = new Qe(
49895
+ ), ade = new Qe(
49871
49896
  "has_item?",
49872
49897
  [
49873
49898
  { name: "id", type: "string" },
@@ -49877,35 +49902,35 @@ const Jfe = new Qe(
49877
49902
  const { id: e, amount: n } = t.options;
49878
49903
  return ti().hasItem(e, n);
49879
49904
  }
49880
- ), ade = new Qe(
49905
+ ), sde = new Qe(
49881
49906
  "item_amount?",
49882
49907
  [{ name: "id", type: "string" }],
49883
49908
  async (t) => {
49884
49909
  const { id: e } = t.options;
49885
49910
  return ti().getItemAmount(e);
49886
49911
  }
49887
- ), sde = new Qe(
49912
+ ), ude = new Qe(
49888
49913
  "enable_interaction",
49889
49914
  [{ name: "tag", type: "string" }],
49890
49915
  async (t) => {
49891
49916
  const e = t.options.tag;
49892
49917
  ti().enableInteraction(e);
49893
49918
  }
49894
- ), ude = new Qe(
49919
+ ), lde = new Qe(
49895
49920
  "disable_interaction",
49896
49921
  [{ name: "tag", type: "string" }],
49897
49922
  async (t) => {
49898
49923
  const e = t.options.tag;
49899
49924
  ti().disableInteraction(e);
49900
49925
  }
49901
- ), lde = new Qe(
49926
+ ), cde = new Qe(
49902
49927
  "start_quest",
49903
49928
  [{ name: "questId", type: "string" }],
49904
49929
  async (t) => {
49905
49930
  const e = t.options.questId;
49906
49931
  Vi().startQuest(e);
49907
49932
  }
49908
- ), cde = new Qe(
49933
+ ), fde = new Qe(
49909
49934
  "start_objective",
49910
49935
  [
49911
49936
  { name: "questId", type: "string" },
@@ -49915,7 +49940,7 @@ const Jfe = new Qe(
49915
49940
  const { questId: e, objectiveId: n } = t.options;
49916
49941
  Vi().startObjective(e, n);
49917
49942
  }
49918
- ), fde = new Qe(
49943
+ ), dde = new Qe(
49919
49944
  "complete_objective",
49920
49945
  [
49921
49946
  { name: "questId", type: "string" },
@@ -49925,7 +49950,7 @@ const Jfe = new Qe(
49925
49950
  const { questId: e, objectiveId: n } = t.options;
49926
49951
  Vi().completeObjective(e, n);
49927
49952
  }
49928
- ), dde = new Qe(
49953
+ ), hde = new Qe(
49929
49954
  "complete_quest",
49930
49955
  [
49931
49956
  { name: "questId", type: "string" },
@@ -49935,10 +49960,10 @@ const Jfe = new Qe(
49935
49960
  const { questId: e, ending: n } = t.options;
49936
49961
  Vi().completeQuest(e, n);
49937
49962
  }
49938
- ), hde = new Qe("quest_completed?", [{ name: "questId", type: "string" }], async (t) => {
49963
+ ), pde = new Qe("quest_completed?", [{ name: "questId", type: "string" }], async (t) => {
49939
49964
  const { questId: e } = t.options;
49940
49965
  return Vi().isQuestCompleted(e);
49941
- }), pde = new Qe(
49966
+ }), vde = new Qe(
49942
49967
  "objective_completed?",
49943
49968
  [
49944
49969
  { name: "questId", type: "string" },
@@ -49948,10 +49973,10 @@ const Jfe = new Qe(
49948
49973
  const { questId: e, objectiveId: n } = t.options;
49949
49974
  return Vi().isObjectiveCompleted(e, n);
49950
49975
  }
49951
- ), vde = new Qe("quest_started?", [{ name: "questId", type: "string" }], async (t) => {
49976
+ ), mde = new Qe("quest_started?", [{ name: "questId", type: "string" }], async (t) => {
49952
49977
  const { questId: e } = t.options;
49953
49978
  return Vi().isQuestStarted(e);
49954
- }), mde = new Qe(
49979
+ }), gde = new Qe(
49955
49980
  "objective_started?",
49956
49981
  [
49957
49982
  { name: "questId", type: "string" },
@@ -49961,38 +49986,38 @@ const Jfe = new Qe(
49961
49986
  const { questId: e, objectiveId: n } = t.options;
49962
49987
  return Vi().isObjectiveStarted(e, n);
49963
49988
  }
49964
- ), gde = Qe.FromOptions({
49989
+ ), yde = Qe.FromOptions({
49965
49990
  keyword: "wait",
49966
49991
  argTypes: [{ name: "duration", type: "number" }],
49967
49992
  runner: async (t) => {
49968
49993
  await Zo(t.options.duration);
49969
49994
  }
49970
- }), yde = new Qe(
49995
+ }), bde = new Qe(
49971
49996
  "notify",
49972
49997
  [{ name: "text", type: "string" }],
49973
49998
  async (t) => {
49974
49999
  const { text: e } = t.options;
49975
50000
  To().addNotification(e);
49976
50001
  }
49977
- ), bde = new Qe(
50002
+ ), wde = new Qe(
49978
50003
  "disable_notifications",
49979
50004
  [],
49980
50005
  async (t) => {
49981
50006
  To().disableNotifications();
49982
50007
  }
49983
- ), wde = new Qe(
50008
+ ), kde = new Qe(
49984
50009
  "enable_notifications",
49985
50010
  [],
49986
50011
  async (t) => {
49987
50012
  To().enableNotifications();
49988
50013
  }
49989
- ), kde = new Qe(
50014
+ ), _de = new Qe(
49990
50015
  "clear_dialog",
49991
50016
  [],
49992
50017
  async (t) => {
49993
50018
  Xn().clearDialog();
49994
50019
  }
49995
- ), _de = new Qe(
50020
+ ), xde = new Qe(
49996
50021
  "if",
49997
50022
  [{ name: "condition", type: "boolean" }],
49998
50023
  async (t) => {
@@ -50030,7 +50055,7 @@ const Jfe = new Qe(
50030
50055
  newLine: n
50031
50056
  };
50032
50057
  }
50033
- ), xde = new Qe(
50058
+ ), jde = new Qe(
50034
50059
  "==",
50035
50060
  "any",
50036
50061
  async (t) => {
@@ -50044,7 +50069,7 @@ const Jfe = new Qe(
50044
50069
  e = r;
50045
50070
  return n;
50046
50071
  }
50047
- ), jde = new Qe(
50072
+ ), Sde = new Qe(
50048
50073
  ">",
50049
50074
  [
50050
50075
  { name: "a", type: "any" },
@@ -50054,7 +50079,7 @@ const Jfe = new Qe(
50054
50079
  const { a: e, b: n } = t.options;
50055
50080
  return e > n;
50056
50081
  }
50057
- ), Sde = new Qe(
50082
+ ), Cde = new Qe(
50058
50083
  "<",
50059
50084
  [
50060
50085
  { name: "a", type: "any" },
@@ -50064,7 +50089,7 @@ const Jfe = new Qe(
50064
50089
  const { a: e, b: n } = t.options;
50065
50090
  return e < n;
50066
50091
  }
50067
- ), Cde = new Qe(
50092
+ ), $de = new Qe(
50068
50093
  ">=",
50069
50094
  [
50070
50095
  { name: "a", type: "any" },
@@ -50074,7 +50099,7 @@ const Jfe = new Qe(
50074
50099
  const { a: e, b: n } = t.options;
50075
50100
  return e >= n;
50076
50101
  }
50077
- ), $de = new Qe(
50102
+ ), Ode = new Qe(
50078
50103
  "<=",
50079
50104
  [
50080
50105
  { name: "a", type: "any" },
@@ -50084,7 +50109,7 @@ const Jfe = new Qe(
50084
50109
  const { a: e, b: n } = t.options;
50085
50110
  return e <= n;
50086
50111
  }
50087
- ), Ode = new Qe(
50112
+ ), Tde = new Qe(
50088
50113
  "!=",
50089
50114
  [
50090
50115
  { name: "a", type: "any" },
@@ -50094,25 +50119,25 @@ const Jfe = new Qe(
50094
50119
  const { a: e, b: n } = t.options;
50095
50120
  return e != n;
50096
50121
  }
50097
- ), Tde = new Qe(
50122
+ ), Ade = new Qe(
50098
50123
  "!",
50099
50124
  [{ name: "a", type: "any" }],
50100
50125
  async (t) => {
50101
50126
  const { a: e } = t.options;
50102
50127
  return !e;
50103
50128
  }
50104
- ), Ade = new Qe(
50129
+ ), Ede = new Qe(
50105
50130
  "&&",
50106
50131
  "any",
50107
50132
  async (t) => {
50108
50133
  const e = t.args;
50109
50134
  return t.args.length < 2 && Jt(t, "requires at least two arguments"), e.reduce((n, r) => n && r, !0);
50110
50135
  }
50111
- ), Ede = new Qe(
50136
+ ), Mde = new Qe(
50112
50137
  "||",
50113
50138
  "any",
50114
50139
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => e || n, !1))
50115
- ), Mde = new Qe(
50140
+ ), Pde = new Qe(
50116
50141
  "?",
50117
50142
  [
50118
50143
  { name: "a", type: "any" },
@@ -50123,27 +50148,27 @@ const Jfe = new Qe(
50123
50148
  const { a: e, b: n, c: r } = t.options;
50124
50149
  return e ? n : r;
50125
50150
  }
50126
- ), Pde = new Qe(
50151
+ ), Ide = new Qe(
50127
50152
  "+",
50128
50153
  "any",
50129
50154
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e + n : (Jt(t, "requires all arguments to be numbers"), e), 0))
50130
- ), Ide = new Qe(
50155
+ ), Nde = new Qe(
50131
50156
  "-",
50132
50157
  "any",
50133
50158
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.slice(1).reduce((e, n) => typeof n == "number" ? e - n : (Jt(t, "requires all arguments to be numbers"), e), t.args[0]))
50134
- ), Nde = new Qe(
50159
+ ), Lde = new Qe(
50135
50160
  "neg",
50136
50161
  [{ name: "a", type: "number" }],
50137
50162
  async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), -t.options.a)
50138
- ), Lde = new Qe(
50163
+ ), Dde = new Qe(
50139
50164
  "abs",
50140
50165
  [{ name: "a", type: "number" }],
50141
50166
  async (t) => (t.args.length !== 1 && Jt(t, "requires one argument"), Math.abs(t.options.a))
50142
- ), Dde = new Qe(
50167
+ ), Rde = new Qe(
50143
50168
  "*",
50144
50169
  "any",
50145
50170
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "number" ? e * n : (Jt(t, "requires all arguments to be numbers"), e), 1))
50146
- ), Rde = new Qe(
50171
+ ), zde = new Qe(
50147
50172
  "/",
50148
50173
  "any",
50149
50174
  async (t) => {
@@ -50151,7 +50176,7 @@ const Jfe = new Qe(
50151
50176
  const e = t.args[0] / t.args[1];
50152
50177
  return t.args.slice(2).reduce((n, r) => typeof r == "number" ? n / r : (Jt(t, "requires all arguments to be numbers"), n), e);
50153
50178
  }
50154
- ), zde = async (t) => {
50179
+ ), Fde = async (t) => {
50155
50180
  const { prompt: e, choices: n } = t.staticOptions, r = [];
50156
50181
  for (const [, a] of n.entries()) {
50157
50182
  const s = await mw(a.prompt);
@@ -50167,9 +50192,9 @@ const Jfe = new Qe(
50167
50192
  allowed: u
50168
50193
  };
50169
50194
  }).filter((a) => a.choice), o = await wD(e, i);
50170
- return await Vde(t, o);
50195
+ return await Hde(t, o);
50171
50196
  };
50172
- function Fde(t, e) {
50197
+ function Bde(t, e) {
50173
50198
  e.branch || t.parserContext.error(
50174
50199
  e.line,
50175
50200
  `Choice option doesn't have any branch to go to (${e.code} - ${e.line})`
@@ -50196,7 +50221,7 @@ function Fde(t, e) {
50196
50221
  skillBranches: n
50197
50222
  };
50198
50223
  }
50199
- const Bde = (t, e) => {
50224
+ const qde = (t, e) => {
50200
50225
  let n = t.currentLine;
50201
50226
  mm("choice", []);
50202
50227
  const { line: r } = t, i = e.command;
@@ -50209,19 +50234,19 @@ const Bde = (t, e) => {
50209
50234
  const s = r.branch.slice(1).map((u, l) => (u.branch || t.parserContext.error(
50210
50235
  u.line,
50211
50236
  `Choice option doesn't have any branch to go to (${u.code})`
50212
- ), u = Hde(t.parserContext, u), Fde(t, u)));
50237
+ ), u = Ude(t.parserContext, u), Bde(t, u)));
50213
50238
  return i.staticOptions = {
50214
50239
  prompt: t.processCommandsFunction(t.parserContext, [o], r)[0],
50215
50240
  choices: s
50216
50241
  }, n++, {
50217
50242
  newLine: n
50218
50243
  };
50219
- }, qde = Qe.FromOptions({
50244
+ }, Vde = Qe.FromOptions({
50220
50245
  keyword: "choice",
50221
50246
  argTypes: [],
50222
- runner: zde,
50223
- parser: Bde
50224
- }), Vde = async (t, e) => {
50247
+ runner: Fde,
50248
+ parser: qde
50249
+ }), Hde = async (t, e) => {
50225
50250
  const n = e, r = En(), { choices: i } = t.staticOptions, o = i[n], a = t.options.choiceResults[n];
50226
50251
  let s = a.text, u;
50227
50252
  if (a.skillCheck ? (s = null, _L({
@@ -50248,7 +50273,7 @@ const Bde = (t, e) => {
50248
50273
  return await r.addAndRunBlock(l);
50249
50274
  }
50250
50275
  };
50251
- function Hde(t, e) {
50276
+ function Ude(t, e) {
50252
50277
  return {
50253
50278
  code: `choicePrompt ${e.code}`,
50254
50279
  indentation: e.indentation,
@@ -50257,7 +50282,7 @@ function Hde(t, e) {
50257
50282
  expression: ["choicePrompt", ...e.expression]
50258
50283
  };
50259
50284
  }
50260
- const Ude = new Qe(
50285
+ const Wde = new Qe(
50261
50286
  "choicePrompt",
50262
50287
  "any",
50263
50288
  async (t) => {
@@ -50317,7 +50342,7 @@ const Ude = new Qe(
50317
50342
  }
50318
50343
  });
50319
50344
  zR.onPlayerAnswered = async (t, e) => (typeof e != "string" && Jt(t, "The player's answer should be a string"), e);
50320
- const Wde = Qe.FromOptions({
50345
+ const Kde = Qe.FromOptions({
50321
50346
  keyword: "text_field_prompt",
50322
50347
  argTypes: [{ name: "prompt", type: "string" }],
50323
50348
  runner: async (t) => {
@@ -50329,7 +50354,7 @@ const Wde = Qe.FromOptions({
50329
50354
  };
50330
50355
  Xn().addDialog(e);
50331
50356
  }
50332
- }), Kde = new Qe(
50357
+ }), Jde = new Qe(
50333
50358
  "random",
50334
50359
  [
50335
50360
  { name: "a", type: "number" },
@@ -50342,7 +50367,7 @@ const Wde = Qe.FromOptions({
50342
50367
  "random command needs two numbers as parameters"
50343
50368
  ), 0) : Math.floor(Math.random() * (n - e + 1)) + e;
50344
50369
  }
50345
- ), Jde = new Qe(
50370
+ ), Gde = new Qe(
50346
50371
  "random_float",
50347
50372
  [
50348
50373
  { name: "a", type: "number" },
@@ -50355,7 +50380,7 @@ const Wde = Qe.FromOptions({
50355
50380
  "random_float command needs two numbers as parameters"
50356
50381
  ), 0) : Math.random() * (n - e) + e;
50357
50382
  }
50358
- ), Gde = new Qe(
50383
+ ), Qde = new Qe(
50359
50384
  "random_from_args",
50360
50385
  [],
50361
50386
  async (t) => {
@@ -50365,7 +50390,7 @@ const Wde = Qe.FromOptions({
50365
50390
  "random_from_args command needs at least one argument"
50366
50391
  ), 0) : e[Math.floor(Math.random() * e.length)];
50367
50392
  }
50368
- ), Qde = new Qe(
50393
+ ), Yde = new Qe(
50369
50394
  "random_from_array",
50370
50395
  [{ name: "a", type: "any" }],
50371
50396
  async (t) => {
@@ -50375,18 +50400,18 @@ const Wde = Qe.FromOptions({
50375
50400
  "random_from_array command needs an array as parameter"
50376
50401
  ), 0);
50377
50402
  }
50378
- ), Yde = new Qe(
50403
+ ), Xde = new Qe(
50379
50404
  "concat",
50380
50405
  "any",
50381
50406
  async (t) => (t.args.length < 2 && Jt(t, "requires at least two arguments"), t.args.reduce((e, n) => typeof n == "string" ? `${e}${n}` : (Jt(t, "requires all arguments to be strings"), e), ""))
50382
- ), Xde = new Qe(
50407
+ ), Zde = new Qe(
50383
50408
  "join",
50384
50409
  "any",
50385
50410
  async (t) => {
50386
50411
  const e = t.args[0];
50387
50412
  return t.args.length < 3 && Jt(t, "requires at least 3 arguments"), t.args.slice(1).reduce((n, r) => typeof r == "string" ? `${n}${e}${r}` : (Jt(t, "requires all arguments to be strings"), n), "");
50388
50413
  }
50389
- ), Zde = Qe.FromOptions({
50414
+ ), ehe = Qe.FromOptions({
50390
50415
  keyword: "min",
50391
50416
  argTypes: [
50392
50417
  { name: "min", type: "number" },
@@ -50396,7 +50421,7 @@ const Wde = Qe.FromOptions({
50396
50421
  const { min: e, value: n } = t.options;
50397
50422
  return n < e ? n : e;
50398
50423
  }
50399
- }), ehe = Qe.FromOptions({
50424
+ }), the = Qe.FromOptions({
50400
50425
  keyword: "max",
50401
50426
  argTypes: [
50402
50427
  { name: "max", type: "number" },
@@ -50406,7 +50431,7 @@ const Wde = Qe.FromOptions({
50406
50431
  const { max: e, value: n } = t.options;
50407
50432
  return n > e ? n : e;
50408
50433
  }
50409
- }), the = Qe.FromOptions({
50434
+ }), nhe = Qe.FromOptions({
50410
50435
  keyword: "clamp",
50411
50436
  argTypes: [
50412
50437
  { name: "min", type: "number" },
@@ -50417,35 +50442,35 @@ const Wde = Qe.FromOptions({
50417
50442
  const { min: e, max: n, value: r } = t.options;
50418
50443
  return r < e ? e : r > n ? n : r;
50419
50444
  }
50420
- }), nhe = Qe.FromOptions({
50445
+ }), rhe = Qe.FromOptions({
50421
50446
  keyword: "floor",
50422
50447
  argTypes: [{ name: "value", type: "number" }],
50423
50448
  runner: async (t) => {
50424
50449
  const { value: e } = t.options;
50425
50450
  return Math.floor(e);
50426
50451
  }
50427
- }), rhe = Qe.FromOptions({
50452
+ }), ihe = Qe.FromOptions({
50428
50453
  keyword: "ceil",
50429
50454
  argTypes: [{ name: "value", type: "number" }],
50430
50455
  runner: async (t) => {
50431
50456
  const { value: e } = t.options;
50432
50457
  return Math.ceil(e);
50433
50458
  }
50434
- }), ihe = Qe.FromOptions({
50459
+ }), ohe = Qe.FromOptions({
50435
50460
  keyword: "round",
50436
50461
  argTypes: [{ name: "value", type: "number" }],
50437
50462
  runner: async (t) => {
50438
50463
  const { value: e } = t.options;
50439
50464
  return Math.round(e);
50440
50465
  }
50441
- }), ohe = Qe.FromOptions({
50466
+ }), ahe = Qe.FromOptions({
50442
50467
  keyword: "sqrt",
50443
50468
  argTypes: [{ name: "value", type: "number" }],
50444
50469
  runner: async (t) => {
50445
50470
  const { value: e } = t.options;
50446
50471
  return Math.sqrt(e);
50447
50472
  }
50448
- }), ahe = Qe.FromOptions({
50473
+ }), she = Qe.FromOptions({
50449
50474
  keyword: "^",
50450
50475
  argTypes: [
50451
50476
  { name: "base", type: "number" },
@@ -50455,7 +50480,7 @@ const Wde = Qe.FromOptions({
50455
50480
  const { base: e, exponent: n } = t.options;
50456
50481
  return Math.pow(e, n);
50457
50482
  }
50458
- }), she = new Qe(
50483
+ }), uhe = new Qe(
50459
50484
  "create_sprite",
50460
50485
  [
50461
50486
  { name: "image", type: "string" },
@@ -50467,7 +50492,7 @@ const Wde = Qe.FromOptions({
50467
50492
  const e = Oo(), { x: n, y: r, image: i, parent: o } = t.options, a = { x: n, y: r, image: i };
50468
50493
  return typeof o == "object" && (a.parent = o), typeof o == "string" && (a.parent = Oo().getObject(o)), e.createSprite(a);
50469
50494
  }
50470
- ), uhe = new Qe(
50495
+ ), lhe = new Qe(
50471
50496
  "create_object",
50472
50497
  [
50473
50498
  { name: "x", type: "number" },
@@ -50478,7 +50503,7 @@ const Wde = Qe.FromOptions({
50478
50503
  const e = Oo(), { x: n, y: r, parent: i } = t.options, o = { x: n, y: r };
50479
50504
  return typeof i == "object" && (o.parent = i), typeof i == "string" && (o.parent = Oo().getObject(i)), e.createObject(o);
50480
50505
  }
50481
- ), lhe = new Qe("delete_sprite", [{ name: "sprite", type: "any" }], async (t) => Oo().destroyObject(t.options.sprite)), che = Qe.FromOptions({
50506
+ ), che = new Qe("delete_sprite", [{ name: "sprite", type: "any" }], async (t) => Oo().destroyObject(t.options.sprite)), fhe = Qe.FromOptions({
50482
50507
  keyword: "shuffle",
50483
50508
  argTypes: [{ name: "array", type: "any" }],
50484
50509
  runner: async (t) => {
@@ -50487,9 +50512,9 @@ const Wde = Qe.FromOptions({
50487
50512
  Jt(t, "requires an array argument");
50488
50513
  return;
50489
50514
  }
50490
- return khe(e), e;
50515
+ return _he(e), e;
50491
50516
  }
50492
- }), fhe = Qe.FromOptions({
50517
+ }), dhe = Qe.FromOptions({
50493
50518
  keyword: "push",
50494
50519
  argTypes: [
50495
50520
  { name: "array", type: "any" },
@@ -50503,7 +50528,7 @@ const Wde = Qe.FromOptions({
50503
50528
  }
50504
50529
  return e.push(n), e;
50505
50530
  }
50506
- }), dhe = Qe.FromOptions({
50531
+ }), hhe = Qe.FromOptions({
50507
50532
  keyword: "pop",
50508
50533
  argTypes: [{ name: "array", type: "any" }],
50509
50534
  runner: async (t) => {
@@ -50514,7 +50539,7 @@ const Wde = Qe.FromOptions({
50514
50539
  }
50515
50540
  return e.pop();
50516
50541
  }
50517
- }), hhe = Qe.FromOptions({
50542
+ }), phe = Qe.FromOptions({
50518
50543
  keyword: "shift",
50519
50544
  argTypes: [{ name: "array", type: "any" }],
50520
50545
  runner: async (t) => {
@@ -50525,7 +50550,7 @@ const Wde = Qe.FromOptions({
50525
50550
  }
50526
50551
  return e.shift();
50527
50552
  }
50528
- }), phe = Qe.FromOptions({
50553
+ }), vhe = Qe.FromOptions({
50529
50554
  keyword: "array_join",
50530
50555
  argTypes: [
50531
50556
  { name: "array", type: "any" },
@@ -50543,7 +50568,7 @@ const Wde = Qe.FromOptions({
50543
50568
  }
50544
50569
  return e.join(n), e;
50545
50570
  }
50546
- }), vhe = Qe.FromOptions({
50571
+ }), mhe = Qe.FromOptions({
50547
50572
  keyword: "array_concat",
50548
50573
  argTypes: [
50549
50574
  { name: "array", type: "any" },
@@ -50562,7 +50587,7 @@ const Wde = Qe.FromOptions({
50562
50587
  }
50563
50588
  return e.concat(...n.slice(1));
50564
50589
  }
50565
- }), mhe = Qe.FromOptions({
50590
+ }), ghe = Qe.FromOptions({
50566
50591
  keyword: "includes",
50567
50592
  argTypes: [
50568
50593
  { name: "array", type: "any" },
@@ -50572,14 +50597,14 @@ const Wde = Qe.FromOptions({
50572
50597
  const { array: e, searchElement: n } = t.options;
50573
50598
  return Array.isArray(e) || Jt(t, "requires an array argument"), typeof n > "u" && Jt(t, "requires a search element argument"), e.includes(n);
50574
50599
  }
50575
- }), ghe = Qe.FromOptions({
50600
+ }), yhe = Qe.FromOptions({
50576
50601
  keyword: "reverse",
50577
50602
  argTypes: [{ name: "array", type: "any" }],
50578
50603
  runner: async (t) => {
50579
50604
  const { array: e } = t.options;
50580
50605
  return Array.isArray(e) || Jt(t, "requires an array argument"), e.reverse(), e;
50581
50606
  }
50582
- }), yhe = Qe.FromOptions({
50607
+ }), bhe = Qe.FromOptions({
50583
50608
  keyword: "slice",
50584
50609
  argTypes: [
50585
50610
  { name: "array", type: "any" },
@@ -50593,7 +50618,7 @@ const Wde = Qe.FromOptions({
50593
50618
  "end index argument must be a number if present"
50594
50619
  ), e.slice(n, r);
50595
50620
  }
50596
- }), bhe = Qe.FromOptions({
50621
+ }), whe = Qe.FromOptions({
50597
50622
  keyword: "splice",
50598
50623
  argTypes: [
50599
50624
  { name: "array", type: "any" },
@@ -50607,7 +50632,7 @@ const Wde = Qe.FromOptions({
50607
50632
  "end index argument must be a number if present"
50608
50633
  ), e.splice(n, r);
50609
50634
  }
50610
- }), whe = Qe.FromOptions({
50635
+ }), khe = Qe.FromOptions({
50611
50636
  keyword: "array_find_index",
50612
50637
  argTypes: [
50613
50638
  { name: "array", type: "any" },
@@ -50627,52 +50652,52 @@ const Wde = Qe.FromOptions({
50627
50652
  return -1;
50628
50653
  }
50629
50654
  });
50630
- function khe(t) {
50655
+ function _he(t) {
50631
50656
  for (let e = t.length - 1; e > 0; e--) {
50632
50657
  const n = Math.floor(Math.random() * (e + 1));
50633
50658
  [t[e], t[n]] = [t[n], t[e]];
50634
50659
  }
50635
50660
  }
50636
- const _he = Qe.FromOptions({
50661
+ const xhe = Qe.FromOptions({
50637
50662
  keyword: "load_data",
50638
50663
  argTypes: [{ name: "url", type: "string" }],
50639
50664
  runner: async (t) => {
50640
50665
  const { url: e } = t.options;
50641
50666
  return await vw(MR(e));
50642
50667
  }
50643
- }), xhe = Qe.FromOptions({
50668
+ }), jhe = Qe.FromOptions({
50644
50669
  keyword: "time_now",
50645
50670
  argTypes: [],
50646
50671
  runner: async (t) => Date.now()
50647
- }), jhe = Qe.FromOptions({
50672
+ }), She = Qe.FromOptions({
50648
50673
  keyword: "total_playtime",
50649
50674
  argTypes: [],
50650
50675
  runner: async (t) => rn().totalPlayTime
50651
- }), She = Qe.FromOptions({
50676
+ }), Che = Qe.FromOptions({
50652
50677
  keyword: "session_playtime",
50653
50678
  argTypes: [],
50654
50679
  runner: async (t) => rn().sessionPlayTime
50655
- }), Che = Qe.FromOptions({
50680
+ }), $he = Qe.FromOptions({
50656
50681
  keyword: "to_days",
50657
50682
  argTypes: [{ name: "time", type: "number" }],
50658
50683
  runner: async (t) => Math.floor(t.options.time / 864e5)
50659
- }), $he = Qe.FromOptions({
50684
+ }), Ohe = Qe.FromOptions({
50660
50685
  keyword: "to_hours",
50661
50686
  argTypes: [{ name: "time", type: "number" }],
50662
50687
  runner: async (t) => Math.floor(t.options.time / 36e5)
50663
- }), Ohe = Qe.FromOptions({
50688
+ }), The = Qe.FromOptions({
50664
50689
  keyword: "to_minutes",
50665
50690
  argTypes: [{ name: "time", type: "number" }],
50666
50691
  runner: async (t) => Math.floor(t.options.time / 6e4)
50667
- }), The = Qe.FromOptions({
50692
+ }), Ahe = Qe.FromOptions({
50668
50693
  keyword: "to_seconds",
50669
50694
  argTypes: [{ name: "time", type: "number" }],
50670
50695
  runner: async (t) => Math.floor(t.options.time / 1e3)
50671
50696
  });
50672
- function Ahe(t) {
50673
- t.addCommand(qde), t.addCommand(Ude), t.addCommand(_de), t.addCommand(Efe), t.addCommand(Mfe), t.addCommand(Pfe), t.addCommand(kde), t.addCommand(yde), t.addCommand(bde), t.addCommand(wde), t.addCommand(Ufe), t.addCommand(Hfe), t.addCommand(Wfe), t.addCommand(Xfe), t.addCommand(Qfe), t.addCommand(Yfe), t.addCommand(she), t.addCommand(uhe), t.addCommand(lhe), t.addCommand(gde), t.addCommand(xde), t.addCommand(jde), t.addCommand(Sde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Dde), t.addCommand(Rde), t.addCommand(Nde), t.addCommand(Lde), t.addCommand(Gfe), t.addCommand(Jfe), t.addCommand(nde), t.addCommand(Zfe), t.addCommand(ede), t.addCommand(Ife), t.addCommand(Nfe), t.addCommand(Lfe), t.addCommand(Dfe), t.addCommand(Rfe), t.addCommand(zfe), t.addCommand(Ffe), t.addCommand(Bfe), t.addCommand(qfe), t.addCommand(lde), t.addCommand(cde), t.addCommand(fde), t.addCommand(dde), t.addCommand(vde), t.addCommand(mde), t.addCommand(hde), t.addCommand(pde), t.addCommand(rde), t.addCommand(ide), t.addCommand(sde), t.addCommand(ude), t.addCommand(ode), t.addCommand(ade), t.addCommand(_fe), t.addCommand(xfe), t.addCommand(jfe), t.addCommand($fe), t.addCommand(Afe), t.addCommand(Ofe), t.addCommand(Tfe), t.addCommand(Sfe), t.addCommand(Cfe), t.addCommand(zR), t.addCommand(Wde), t.addCommand(Kde), t.addCommand(Jde), t.addCommand(Gde), t.addCommand(Qde), t.addCommand(Yde), t.addCommand(Xde), t.addCommand(Zde), t.addCommand(ehe), t.addCommand(the), t.addCommand(nhe), t.addCommand(ihe), t.addCommand(rhe), t.addCommand(ohe), t.addCommand(ahe), t.addCommand(che), t.addCommand(fhe), t.addCommand(dhe), t.addCommand(hhe), t.addCommand(phe), t.addCommand(vhe), t.addCommand(mhe), t.addCommand(ghe), t.addCommand(yhe), t.addCommand(bhe), t.addCommand(whe), t.addCommand(_he), t.addCommand(xhe), t.addCommand(jhe), t.addCommand(She), t.addCommand(Che), t.addCommand($he), t.addCommand(Ohe), t.addCommand(The);
50697
+ function Ehe(t) {
50698
+ t.addCommand(Vde), t.addCommand(Wde), t.addCommand(xde), t.addCommand(Mfe), t.addCommand(Pfe), t.addCommand(Ife), t.addCommand(_de), t.addCommand(bde), t.addCommand(wde), t.addCommand(kde), t.addCommand(Wfe), t.addCommand(Ufe), t.addCommand(Kfe), t.addCommand(Zfe), t.addCommand(Yfe), t.addCommand(Xfe), t.addCommand(uhe), t.addCommand(lhe), t.addCommand(che), t.addCommand(yde), t.addCommand(jde), t.addCommand(Sde), t.addCommand(Cde), t.addCommand($de), t.addCommand(Ode), t.addCommand(Tde), t.addCommand(Ade), t.addCommand(Ede), t.addCommand(Mde), t.addCommand(Pde), t.addCommand(Ide), t.addCommand(Nde), t.addCommand(Rde), t.addCommand(zde), t.addCommand(Lde), t.addCommand(Dde), t.addCommand(Qfe), t.addCommand(Gfe), t.addCommand(rde), t.addCommand(ede), t.addCommand(tde), t.addCommand(Nfe), t.addCommand(Lfe), t.addCommand(Dfe), t.addCommand(Rfe), t.addCommand(zfe), t.addCommand(Ffe), t.addCommand(Bfe), t.addCommand(qfe), t.addCommand(Vfe), t.addCommand(cde), t.addCommand(fde), t.addCommand(dde), t.addCommand(hde), t.addCommand(mde), t.addCommand(gde), t.addCommand(pde), t.addCommand(vde), t.addCommand(ide), t.addCommand(ode), t.addCommand(ude), t.addCommand(lde), t.addCommand(ade), t.addCommand(sde), t.addCommand(xfe), t.addCommand(jfe), t.addCommand(Sfe), t.addCommand(Ofe), t.addCommand(Efe), t.addCommand(Tfe), t.addCommand(Afe), t.addCommand(Cfe), t.addCommand($fe), t.addCommand(zR), t.addCommand(Kde), t.addCommand(Jde), t.addCommand(Gde), t.addCommand(Qde), t.addCommand(Yde), t.addCommand(Xde), t.addCommand(Zde), t.addCommand(ehe), t.addCommand(the), t.addCommand(nhe), t.addCommand(rhe), t.addCommand(ohe), t.addCommand(ihe), t.addCommand(ahe), t.addCommand(she), t.addCommand(fhe), t.addCommand(dhe), t.addCommand(hhe), t.addCommand(phe), t.addCommand(vhe), t.addCommand(mhe), t.addCommand(ghe), t.addCommand(yhe), t.addCommand(bhe), t.addCommand(whe), t.addCommand(khe), t.addCommand(xhe), t.addCommand(jhe), t.addCommand(She), t.addCommand(Che), t.addCommand($he), t.addCommand(Ohe), t.addCommand(The), t.addCommand(Ahe);
50674
50699
  }
50675
- const Ehe = Nn({
50700
+ const Mhe = Nn({
50676
50701
  data() {
50677
50702
  return {
50678
50703
  muted: !1,
@@ -50704,18 +50729,18 @@ const Ehe = Nn({
50704
50729
  }
50705
50730
  }
50706
50731
  });
50707
- const Mhe = { class: "volume-controls" }, Phe = /* @__PURE__ */ Ie("h3", { class: "subtitle" }, "Volume", -1), Ihe = {
50732
+ const Phe = { class: "volume-controls" }, Ihe = /* @__PURE__ */ Ie("h3", { class: "subtitle" }, "Volume", -1), Nhe = {
50708
50733
  for: "volume",
50709
50734
  class: "volume-label"
50710
- }, Nhe = ["onUpdate:modelValue", "onChange"];
50711
- function Lhe(t, e, n, r, i, o) {
50712
- return Ee(), Ye("div", Mhe, [
50713
- Phe,
50735
+ }, Lhe = ["onUpdate:modelValue", "onChange"];
50736
+ function Dhe(t, e, n, r, i, o) {
50737
+ return Ee(), Ye("div", Phe, [
50738
+ Ihe,
50714
50739
  (Ee(!0), Ye(Zn, null, cr(t.volumes, (a, s) => (Ee(), Ye("div", {
50715
50740
  class: "volume-control",
50716
50741
  key: a.mode
50717
50742
  }, [
50718
- Ie("label", Ihe, zt(t.modeNames[a.mode]), 1),
50743
+ Ie("label", Nhe, zt(t.modeNames[a.mode]), 1),
50719
50744
  mf(Ie("input", {
50720
50745
  ref_for: !0,
50721
50746
  ref: "slider",
@@ -50728,15 +50753,15 @@ function Lhe(t, e, n, r, i, o) {
50728
50753
  step: "0.1",
50729
50754
  "onUpdate:modelValue": (u) => t.volumes[s].volume = u,
50730
50755
  onChange: (u) => t.changeVolume(a.mode, u)
50731
- }, null, 40, Nhe), [
50756
+ }, null, 40, Lhe), [
50732
50757
  [hv, t.volumes[s].volume]
50733
50758
  ])
50734
50759
  ]))), 128))
50735
50760
  ]);
50736
50761
  }
50737
- const Dhe = /* @__PURE__ */ go(Ehe, [["render", Lhe]]), Rhe = Nn({
50762
+ const Rhe = /* @__PURE__ */ go(Mhe, [["render", Dhe]]), zhe = Nn({
50738
50763
  components: {
50739
- VolumeControls: Dhe
50764
+ VolumeControls: Rhe
50740
50765
  },
50741
50766
  data() {
50742
50767
  return {};
@@ -50762,10 +50787,10 @@ const Dhe = /* @__PURE__ */ go(Ehe, [["render", Lhe]]), Rhe = Nn({
50762
50787
  }
50763
50788
  }
50764
50789
  });
50765
- const zhe = { class: "menu-content" };
50766
- function Fhe(t, e, n, r, i, o) {
50790
+ const Fhe = { class: "menu-content" };
50791
+ function Bhe(t, e, n, r, i, o) {
50767
50792
  const a = Ni("VolumeControls");
50768
- return Ee(), Ye("div", zhe, [
50793
+ return Ee(), Ye("div", Fhe, [
50769
50794
  Ie("h3", null, "Play time: " + zt(t.getPlayTimeString()), 1),
50770
50795
  Br(a),
50771
50796
  Ie("button", {
@@ -50778,7 +50803,7 @@ function Fhe(t, e, n, r, i, o) {
50778
50803
  }, "Exit")
50779
50804
  ]);
50780
50805
  }
50781
- const Bhe = /* @__PURE__ */ go(Rhe, [["render", Fhe]]), qhe = { class: "inventory-section-items" }, Vhe = ["onClick"], Hhe = { class: "item-title" }, Uhe = { class: "item-amount" }, Whe = /* @__PURE__ */ Nn({
50806
+ const qhe = /* @__PURE__ */ go(zhe, [["render", Bhe]]), Vhe = { class: "inventory-section-items" }, Hhe = ["onClick"], Uhe = { class: "item-title" }, Whe = { class: "item-amount" }, Khe = /* @__PURE__ */ Nn({
50782
50807
  __name: "inventory-section",
50783
50808
  props: {
50784
50809
  items: null,
@@ -50799,21 +50824,21 @@ const Bhe = /* @__PURE__ */ go(Rhe, [["render", Fhe]]), qhe = { class: "inventor
50799
50824
  class: vr(["inventory-section", `section-${e.id}`])
50800
50825
  }, [
50801
50826
  Ie("h3", null, zt(t.title), 1),
50802
- Ie("div", qhe, [
50827
+ Ie("div", Vhe, [
50803
50828
  (Ee(!0), Ye(Zn, null, cr(t.items, (a) => (Ee(), Ye("button", {
50804
50829
  onClick: () => i.$emit("chosen", a.id),
50805
50830
  class: vr(["item-display", `item-${a.id}`]),
50806
50831
  style: lr(n(a.id)),
50807
50832
  key: a.id
50808
50833
  }, [
50809
- Ie("h3", Hhe, zt(r(a.id)), 1),
50810
- Ie("h3", Uhe, zt(a.amount), 1)
50811
- ], 14, Vhe))), 128))
50834
+ Ie("h3", Uhe, zt(r(a.id)), 1),
50835
+ Ie("h3", Whe, zt(a.amount), 1)
50836
+ ], 14, Hhe))), 128))
50812
50837
  ])
50813
50838
  ], 2));
50814
50839
  }
50815
50840
  });
50816
- const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class: "flex item-left" }, Ghe = { class: "flex item-right" }, Qhe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1), Yhe = /* @__PURE__ */ Nn({
50841
+ const Jhe = { class: "flex flex-row item-description-container" }, Ghe = { class: "flex item-left" }, Qhe = { class: "flex item-right" }, Yhe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1), Xhe = /* @__PURE__ */ Nn({
50817
50842
  __name: "item-details",
50818
50843
  props: {
50819
50844
  item: null
@@ -50824,16 +50849,16 @@ const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class
50824
50849
  backgroundImage: `url(${gs(r.value.icon)})`
50825
50850
  })), o = ft(() => ti().canUseItem(n.item));
50826
50851
  return (a, s) => (Ee(), Ye("div", null, [
50827
- Ie("div", Khe, [
50828
- Ie("div", Jhe, [
50852
+ Ie("div", Jhe, [
50853
+ Ie("div", Ghe, [
50829
50854
  Ie("div", {
50830
50855
  class: "item-display",
50831
50856
  style: lr(bt(i))
50832
50857
  }, null, 4)
50833
50858
  ]),
50834
- Ie("div", Ghe, [
50859
+ Ie("div", Qhe, [
50835
50860
  Ie("h2", null, zt(bt(r).name), 1),
50836
- Qhe,
50861
+ Yhe,
50837
50862
  Ie("h3", null, "Amount: " + zt(t.item.amount), 1),
50838
50863
  Ie("p", null, zt(bt(r).description), 1),
50839
50864
  Ie("button", {
@@ -50849,7 +50874,7 @@ const Khe = { class: "flex flex-row item-description-container" }, Jhe = { class
50849
50874
  ]));
50850
50875
  }
50851
50876
  });
50852
- const Xhe = Nn({
50877
+ const Zhe = Nn({
50853
50878
  setup() {
50854
50879
  const t = ti(), e = Xn(), n = ft(() => t.items), r = ft(() => e.currentDialog.choices);
50855
50880
  return { items: n, currentlyChoosing: r };
@@ -50911,14 +50936,14 @@ const Xhe = Nn({
50911
50936
  }, e);
50912
50937
  }
50913
50938
  },
50914
- components: { InventorySection: Whe, ItemDetails: Yhe }
50939
+ components: { InventorySection: Khe, ItemDetails: Xhe }
50915
50940
  });
50916
- const Zhe = { key: 0 }, epe = { key: 2 }, tpe = /* @__PURE__ */ Ie("h2", null, "The inventory is empty!", -1), npe = [
50917
- tpe
50941
+ const epe = { key: 0 }, tpe = { key: 2 }, npe = /* @__PURE__ */ Ie("h2", null, "The inventory is empty!", -1), rpe = [
50942
+ npe
50918
50943
  ];
50919
- function rpe(t, e, n, r, i, o) {
50944
+ function ipe(t, e, n, r, i, o) {
50920
50945
  const a = Ni("InventorySection"), s = Ni("ItemDetails");
50921
- return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div", Zhe, [
50946
+ return !t.chosenItem && Object.keys(t.itemsToDisplay).length > 0 ? (Ee(), Ye("div", epe, [
50922
50947
  (Ee(!0), Ye(Zn, null, cr(t.sections, (u) => (Ee(), pn(a, {
50923
50948
  key: u.id,
50924
50949
  items: u.items,
@@ -50931,12 +50956,12 @@ function rpe(t, e, n, r, i, o) {
50931
50956
  item: t.items[t.chosenId],
50932
50957
  onUse: t.useItem,
50933
50958
  onClose: t.closeItem
50934
- }, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div", epe, npe));
50959
+ }, null, 8, ["item", "onUse", "onClose"])) : (Ee(), Ye("div", tpe, rpe));
50935
50960
  }
50936
- const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-display" }, ape = { class: "quest-title" }, spe = { class: "quest-description" }, upe = {
50961
+ const ope = /* @__PURE__ */ go(Zhe, [["render", ipe]]), ape = { class: "quest-display" }, spe = { class: "quest-title" }, upe = { class: "quest-description" }, lpe = {
50937
50962
  key: 0,
50938
50963
  class: "quest-objectives-container list-disc"
50939
- }, lpe = /* @__PURE__ */ Nn({
50964
+ }, cpe = /* @__PURE__ */ Nn({
50940
50965
  __name: "QuestDetails",
50941
50966
  props: {
50942
50967
  quest: null
@@ -50960,17 +50985,17 @@ const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-di
50960
50985
  }), o = ft(() => e.quest.ending ? e.quest.ending : n.value.description), a = ft(() => Object.values(e.quest.objectives).filter(
50961
50986
  (s) => s.state !== "hidden"
50962
50987
  ));
50963
- return (s, u) => (Ee(), Ye("div", ope, [
50988
+ return (s, u) => (Ee(), Ye("div", ape, [
50964
50989
  Ie("div", {
50965
50990
  class: vr([
50966
50991
  "quest-header",
50967
50992
  t.quest.state === "completed" ? "quest-completed" : "quest-in-progress"
50968
50993
  ])
50969
50994
  }, [
50970
- Ie("h3", ape, zt(bt(n).title) + " " + zt(bt(i)), 1)
50995
+ Ie("h3", spe, zt(bt(n).title) + " " + zt(bt(i)), 1)
50971
50996
  ], 2),
50972
- Ie("p", spe, zt(bt(o)), 1),
50973
- t.quest.state !== "completed" ? (Ee(), Ye("ul", upe, [
50997
+ Ie("p", upe, zt(bt(o)), 1),
50998
+ t.quest.state !== "completed" ? (Ee(), Ye("ul", lpe, [
50974
50999
  (Ee(!0), Ye(Zn, null, cr(bt(a), (l) => (Ee(), Ye("li", {
50975
51000
  class: "quest-objective-display",
50976
51001
  key: l.id
@@ -50986,7 +51011,7 @@ const ipe = /* @__PURE__ */ go(Xhe, [["render", rpe]]), ope = { class: "quest-di
50986
51011
  ]));
50987
51012
  }
50988
51013
  });
50989
- const cpe = { class: "quest-list-title" }, fpe = /* @__PURE__ */ Nn({
51014
+ const fpe = { class: "quest-list-title" }, dpe = /* @__PURE__ */ Nn({
50990
51015
  __name: "QuestDisplay",
50991
51016
  props: {
50992
51017
  quest: null
@@ -50999,11 +51024,11 @@ const cpe = { class: "quest-list-title" }, fpe = /* @__PURE__ */ Nn({
50999
51024
  t.quest.state === "completed" ? "quest-list-completed" : "quest-list-in-progress"
51000
51025
  ])
51001
51026
  }, [
51002
- Ie("p", cpe, zt(bt(n).title), 1)
51027
+ Ie("p", fpe, zt(bt(n).title), 1)
51003
51028
  ], 2));
51004
51029
  }
51005
51030
  });
51006
- const dpe = { key: 0 }, hpe = { key: 0 }, ppe = { key: 1 }, vpe = /* @__PURE__ */ Nn({
51031
+ const hpe = { key: 0 }, ppe = { key: 0 }, vpe = { key: 1 }, mpe = /* @__PURE__ */ Nn({
51007
51032
  __name: "quests-list-section",
51008
51033
  props: {
51009
51034
  quests: null,
@@ -51033,29 +51058,29 @@ const dpe = { key: 0 }, hpe = { key: 0 }, ppe = { key: 1 }, vpe = /* @__PURE__ *
51033
51058
  class: vr([`${t.sectionId}-quests-container`, "quests-section"])
51034
51059
  }, [
51035
51060
  Ie("h3", null, zt(t.title), 1),
51036
- t.quests.length > 0 ? (Ee(), Ye("div", dpe, [
51061
+ t.quests.length > 0 ? (Ee(), Ye("div", hpe, [
51037
51062
  (Ee(!0), Ye(Zn, null, cr(bt(i), (s) => (Ee(), Ye("div", {
51038
51063
  class: vr([`${t.sectionId}-${s.category.id}-category`, "quests-category"]),
51039
51064
  key: s.category.id
51040
51065
  }, [
51041
- bt(r).length > 1 ? (Ee(), Ye("h4", hpe, zt(s.category.title), 1)) : vn("", !0),
51066
+ bt(r).length > 1 ? (Ee(), Ye("h4", ppe, zt(s.category.title), 1)) : vn("", !0),
51042
51067
  Ie("div", {
51043
51068
  class: vr(`${t.sectionId}-${s.category.id}-quests`)
51044
51069
  }, [
51045
- (Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(fpe, {
51070
+ (Ee(!0), Ye(Zn, null, cr(s.quests, (u) => (Ee(), pn(dpe, {
51046
51071
  key: u.id,
51047
51072
  quest: u,
51048
51073
  onClick: (l) => o.$emit("quest-selected", u)
51049
51074
  }, null, 8, ["quest", "onClick"]))), 128))
51050
51075
  ], 2)
51051
51076
  ], 2))), 128))
51052
- ])) : (Ee(), Ye("div", ppe, [
51077
+ ])) : (Ee(), Ye("div", vpe, [
51053
51078
  Ie("p", null, zt(t.fallbackText), 1)
51054
51079
  ]))
51055
51080
  ], 2));
51056
51081
  }
51057
51082
  });
51058
- const mpe = Nn({
51083
+ const gpe = Nn({
51059
51084
  setup() {
51060
51085
  const t = Vi(), e = ft(() => t.quests), n = Hn(null);
51061
51086
  return { quests: e, selectedQuest: n };
@@ -51086,15 +51111,15 @@ const mpe = Nn({
51086
51111
  this.selectedQuest = t;
51087
51112
  }
51088
51113
  },
51089
- components: { QuestDetails: lpe, QuestsListSection: vpe }
51114
+ components: { QuestDetails: cpe, QuestsListSection: mpe }
51090
51115
  });
51091
- const gpe = { class: "quests-list-container" }, ype = { class: "quest-details" };
51092
- function bpe(t, e, n, r, i, o) {
51116
+ const ype = { class: "quests-list-container" }, bpe = { class: "quest-details" };
51117
+ function wpe(t, e, n, r, i, o) {
51093
51118
  const a = Ni("QuestsListSection"), s = Ni("QuestDetails");
51094
51119
  return Ee(), Ye("div", {
51095
51120
  class: vr(["quests-ui", t.questsUiClass])
51096
51121
  }, [
51097
- Ie("div", gpe, [
51122
+ Ie("div", ype, [
51098
51123
  Br(a, {
51099
51124
  quests: t.activeQuests,
51100
51125
  sectionId: "active",
@@ -51110,7 +51135,7 @@ function bpe(t, e, n, r, i, o) {
51110
51135
  onQuestSelected: t.clickOnQuest
51111
51136
  }, null, 8, ["quests", "onQuestSelected"])
51112
51137
  ]),
51113
- Ie("div", ype, [
51138
+ Ie("div", bpe, [
51114
51139
  t.selectedQuest ? (Ee(), pn(s, {
51115
51140
  key: 0,
51116
51141
  quest: t.selectedQuest
@@ -51118,7 +51143,7 @@ function bpe(t, e, n, r, i, o) {
51118
51143
  ])
51119
51144
  ], 2);
51120
51145
  }
51121
- const wpe = /* @__PURE__ */ go(mpe, [["render", bpe]]), kpe = Nn({
51146
+ const kpe = /* @__PURE__ */ go(gpe, [["render", wpe]]), _pe = Nn({
51122
51147
  setup() {
51123
51148
  const t = Dr();
51124
51149
  return { skills: ft(() => t.skills) };
@@ -51166,22 +51191,22 @@ const wpe = /* @__PURE__ */ go(mpe, [["render", bpe]]), kpe = Nn({
51166
51191
  }
51167
51192
  }
51168
51193
  });
51169
- const _pe = {
51194
+ const xpe = {
51170
51195
  key: 0,
51171
51196
  class: "skills-container"
51172
- }, xpe = ["onClick"], jpe = { class: "skill-title" }, Spe = { class: "skill-xp-container" }, Cpe = { class: "skill-xp-text" }, $pe = { class: "skill-level" }, Ope = { key: 1 }, Tpe = { class: "flex flex-row skill-description-container" }, Ape = { class: "flex skill-left" }, Epe = { class: "flex skill-right" }, Mpe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1);
51173
- function Ppe(t, e, n, r, i, o) {
51174
- return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div", Ope, [
51175
- Ie("div", Tpe, [
51176
- Ie("div", Ape, [
51197
+ }, jpe = ["onClick"], Spe = { class: "skill-title" }, Cpe = { class: "skill-xp-container" }, $pe = { class: "skill-xp-text" }, Ope = { class: "skill-level" }, Tpe = { key: 1 }, Ape = { class: "flex flex-row skill-description-container" }, Epe = { class: "flex skill-left" }, Mpe = { class: "flex skill-right" }, Ppe = /* @__PURE__ */ Ie("hr", { class: "hr-solid" }, null, -1);
51198
+ function Ipe(t, e, n, r, i, o) {
51199
+ return t.chosenSkill ? typeof t.chosenSkill == "string" ? (Ee(), Ye("div", Tpe, [
51200
+ Ie("div", Ape, [
51201
+ Ie("div", Epe, [
51177
51202
  Ie("div", {
51178
51203
  class: "skill-display",
51179
51204
  style: lr(t.getSkillStyle(t.chosenSkill))
51180
51205
  }, null, 4)
51181
51206
  ]),
51182
- Ie("div", Epe, [
51207
+ Ie("div", Mpe, [
51183
51208
  Ie("h2", null, zt(t.getSkillName(t.chosenSkill)), 1),
51184
- Mpe,
51209
+ Ppe,
51185
51210
  Ie("h3", null, "Level: " + zt(t.skills[t.chosenSkill].level), 1),
51186
51211
  Ie("p", null, zt(t.skillConf[t.chosenSkill].description), 1)
51187
51212
  ])
@@ -51190,28 +51215,28 @@ function Ppe(t, e, n, r, i, o) {
51190
51215
  class: "button",
51191
51216
  onClick: e[0] || (e[0] = (...a) => t.closeSkill && t.closeSkill(...a))
51192
51217
  }, zt("<--"))
51193
- ])) : vn("", !0) : (Ee(), Ye("div", _pe, [
51218
+ ])) : vn("", !0) : (Ee(), Ye("div", xpe, [
51194
51219
  (Ee(!0), Ye(Zn, null, cr(t.skillsToDisplay, (a) => (Ee(), Ye("button", {
51195
51220
  onClick: () => t.clickSkill(a.id),
51196
51221
  class: "skill-display",
51197
51222
  style: lr(t.getSkillStyle(a.id)),
51198
51223
  key: a.id
51199
51224
  }, [
51200
- Ie("h3", jpe, zt(t.getSkillName(a.id)), 1),
51201
- Ie("div", Spe, [
51225
+ Ie("h3", Spe, zt(t.getSkillName(a.id)), 1),
51226
+ Ie("div", Cpe, [
51202
51227
  Ie("div", {
51203
51228
  class: "skill-xp-bar",
51204
51229
  style: lr(t.xpBarWidth(a.xp))
51205
51230
  }, null, 4),
51206
- Ie("h3", Cpe, zt(a.xp) + " / " + zt(t.xpPerLevel) + " XP", 1)
51231
+ Ie("h3", $pe, zt(a.xp) + " / " + zt(t.xpPerLevel) + " XP", 1)
51207
51232
  ]),
51208
- Ie("h3", $pe, zt(a.level), 1)
51209
- ], 12, xpe))), 128))
51233
+ Ie("h3", Ope, zt(a.level), 1)
51234
+ ], 12, jpe))), 128))
51210
51235
  ]));
51211
51236
  }
51212
- const Ipe = /* @__PURE__ */ go(kpe, [["render", Ppe]]);
51213
- function Npe(t) {
51214
- t.component("MainMenu", Bhe), t.component("InventoryUi", ipe), t.component("QuestsUi", wpe), t.component("SkillsWindow", Ipe), ea().menus = {
51237
+ const Npe = /* @__PURE__ */ go(_pe, [["render", Ipe]]);
51238
+ function Lpe(t) {
51239
+ t.component("MainMenu", qhe), t.component("InventoryUi", ope), t.component("QuestsUi", kpe), t.component("SkillsWindow", Npe), ea().menus = {
51215
51240
  system: {
51216
51241
  label: "System",
51217
51242
  cssClass: "system-menu",
@@ -51257,7 +51282,7 @@ function Npe(t) {
51257
51282
  }
51258
51283
  };
51259
51284
  }
51260
- function Lpe(t, e, n) {
51285
+ function Dpe(t, e, n) {
51261
51286
  const r = window.narrat.app;
51262
51287
  for (const i in e.tabs) {
51263
51288
  const o = e.tabs[i].component;
@@ -51265,20 +51290,20 @@ function Lpe(t, e, n) {
51265
51290
  }
51266
51291
  ea().addMenu(t, e);
51267
51292
  }
51268
- function Dpe(t, e, n) {
51293
+ function Rpe(t, e, n) {
51269
51294
  window.narrat.app.component(e.component, n), ea().addMenuOption(t, e);
51270
51295
  }
51271
- function Rpe() {
51296
+ function zpe() {
51272
51297
  for (const t of Jn.plugins) {
51273
51298
  if (t.customMenuButtons)
51274
51299
  for (const e of t.customMenuButtons)
51275
- Lpe(e.config.id, e.config, e.components);
51300
+ Dpe(e.config.id, e.config, e.components);
51276
51301
  if (t.customMenuTabs)
51277
51302
  for (const e of t.customMenuTabs)
51278
- Dpe(e.config.id, e.config, e.component);
51303
+ Rpe(e.config.id, e.config, e.component);
51279
51304
  }
51280
51305
  }
51281
- function zpe(t) {
51306
+ function Fpe(t) {
51282
51307
  t.directive("visible", {
51283
51308
  mounted(e, n) {
51284
51309
  n.value ? e.style.visibility = "visible" : e.style.visibility = "hidden";
@@ -51288,7 +51313,7 @@ function zpe(t) {
51288
51313
  }
51289
51314
  });
51290
51315
  }
51291
- class Fpe extends gw {
51316
+ class Bpe extends gw {
51292
51317
  setup() {
51293
51318
  const e = () => {
51294
51319
  this.emit("preUpdate"), this.emit("update"), this.emit("postUpdate"), requestAnimationFrame(e);
@@ -51296,7 +51321,7 @@ class Fpe extends gw {
51296
51321
  e();
51297
51322
  }
51298
51323
  }
51299
- const FR = new Fpe();
51324
+ const FR = new Bpe();
51300
51325
  var Ol;
51301
51326
  ((t) => {
51302
51327
  function e(p, v) {
@@ -51385,7 +51410,7 @@ var Ol;
51385
51410
  }
51386
51411
  t.dot = h;
51387
51412
  })(Ol || (Ol = {}));
51388
- class Bpe {
51413
+ class qpe {
51389
51414
  constructor() {
51390
51415
  ii(this, "gameActions", {});
51391
51416
  ii(this, "keyboardState", {});
@@ -51459,8 +51484,8 @@ class Bpe {
51459
51484
  });
51460
51485
  }
51461
51486
  }
51462
- const qpe = hi("inputs", {
51463
- state: () => ({ inputs: new Bpe() }),
51487
+ const Vpe = hi("inputs", {
51488
+ state: () => ({ inputs: new qpe() }),
51464
51489
  actions: {
51465
51490
  setupInputs() {
51466
51491
  this.inputs.startListening();
@@ -51469,14 +51494,14 @@ const qpe = hi("inputs", {
51469
51494
  });
51470
51495
  let Ja;
51471
51496
  Jn.callHook("onPageLoaded");
51472
- async function Upe(t) {
51497
+ async function Wpe(t) {
51473
51498
  FR.setup(), console.log("Starting narrat...");
51474
- const e = Object.assign(hie(), t), n = Lee();
51475
- Ja = GR(wfe, {
51499
+ const e = Object.assign(pie(), t), n = Lee();
51500
+ Ja = GR(kfe, {
51476
51501
  options: e
51477
- }), zpe(Ja), Ja.use(n);
51478
- const r = await Due(e);
51479
- UD().setConfig(r), qpe().setupInputs(), Jn.pinia = n, rn();
51502
+ }), Fpe(Ja), Ja.use(n);
51503
+ const r = await Rue(e);
51504
+ UD().setConfig(r), Vpe().setupInputs(), Jn.pinia = n, rn();
51480
51505
  const i = {
51481
51506
  app: Ja,
51482
51507
  vm: Jn,
@@ -51484,21 +51509,21 @@ async function Upe(t) {
51484
51509
  En().jumpToLabel(o);
51485
51510
  }
51486
51511
  };
51487
- return window.narrat = i, Npe(Ja), Rpe(), RR().addButtonsFromPlugins(), rn().setOptions(e), Ja.use(j9, {
51512
+ return window.narrat = i, Lpe(Ja), zpe(), RR().addButtonsFromPlugins(), rn().setOptions(e), Ja.use(j9, {
51488
51513
  breakpoints: {
51489
51514
  s: 0,
51490
51515
  m: 800,
51491
51516
  l: 1200
51492
51517
  }
51493
- }), Ahe(Jn), UA.setupDebugger(e.debug), console.log(
51518
+ }), Ehe(Jn), UA.setupDebugger(e.debug), console.log(
51494
51519
  `%c Narrat game engine v${Kee} - Built at ${Jee.toLocaleString()}`,
51495
51520
  "background: #222; color: #bada55"
51496
51521
  ), Jn.callHook("onNarratSetup"), Ja.mount("#game-holder"), Ja;
51497
51522
  }
51498
- function Wpe(t, e) {
51523
+ function Kpe(t, e) {
51499
51524
  Ja.component(t, e);
51500
51525
  }
51501
- class Kpe {
51526
+ class Jpe {
51502
51527
  constructor() {
51503
51528
  ii(this, "pluginId", "narrat-plugin");
51504
51529
  }
@@ -51519,21 +51544,21 @@ class Kpe {
51519
51544
  onGameDismounted() {
51520
51545
  }
51521
51546
  }
51522
- function Jpe(t) {
51547
+ function Gpe(t) {
51523
51548
  Jn.addPlugin(t);
51524
51549
  }
51525
- function Gpe(t) {
51550
+ function Qpe(t) {
51526
51551
  Jn.addCommand(t);
51527
51552
  }
51528
51553
  export {
51529
51554
  Qe as CommandPlugin,
51530
- Ule as InputsListener,
51555
+ Wle as InputsListener,
51531
51556
  HA as LogManager,
51532
51557
  uc as ModalWindow,
51533
- Kpe as NarratPlugin,
51558
+ Jpe as NarratPlugin,
51534
51559
  Ol as Vec2,
51535
- Gpe as addCommand,
51536
- fie as aspectRatioFit,
51560
+ Qpe as addCommand,
51561
+ die as aspectRatioFit,
51537
51562
  es as audioConfig,
51538
51563
  OR as buttonsConfig,
51539
51564
  TR as charactersConfig,
@@ -51550,9 +51575,9 @@ export {
51550
51575
  qs as getItemConfig,
51551
51576
  zy as getObjectiveConfig,
51552
51577
  ic as getQuestConfig,
51553
- zue as getScreenConfig,
51578
+ Fue as getScreenConfig,
51554
51579
  ER as getSkillConfig,
51555
- Rue as getSplitConfigUrl,
51580
+ zue as getSplitConfigUrl,
51556
51581
  bL as getWindow,
51557
51582
  fa as inputEvents,
51558
51583
  nk as itemsConfig,
@@ -51562,19 +51587,19 @@ export {
51562
51587
  Xs as processText,
51563
51588
  hm as questsConfig,
51564
51589
  Uf as randomId,
51565
- Wpe as registerComponent,
51566
- Lpe as registerMenuButton,
51567
- Jpe as registerPlugin,
51590
+ Kpe as registerComponent,
51591
+ Dpe as registerMenuButton,
51592
+ Gpe as registerPlugin,
51568
51593
  rk as screensConfig,
51569
51594
  ia as skillsConfig,
51570
- Upe as startApp,
51595
+ Wpe as startApp,
51571
51596
  Zo as timeout,
51572
51597
  pm as tooltipsConfig,
51573
51598
  wi as useAudio,
51574
51599
  UD as useConfig,
51575
51600
  Xn as useDialogStore,
51576
51601
  is as useHud,
51577
- qpe as useInputs,
51602
+ Vpe as useInputs,
51578
51603
  ti as useInventory,
51579
51604
  rn as useMain,
51580
51605
  ea as useMenu,