narrat 3.17.3 → 3.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Drqyeaew.js → index-_B9MXcFH.js} +2 -2
- package/dist/{index-Drqyeaew.js.map → index-_B9MXcFH.js.map} +1 -1
- package/dist/{lib-WVHsRT2C.js → lib-4-GMYwZC.js} +674 -683
- package/dist/lib-4-GMYwZC.js.map +1 -0
- package/dist/narrat.es.js +1 -1
- package/dist/narrat.umd.js +2 -2
- package/dist/narrat.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib-WVHsRT2C.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Tm = Object.defineProperty;
|
|
2
2
|
var Sm = (e, t, n) => t in e ? Tm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var We = (e, t, n) => (Sm(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as Se, openBlock as x, createBlock as _e, Transition as oi, withCtx as Je, createElementVNode as M, normalizeClass as He, createElementBlock as H, createCommentVNode as ve, renderSlot as Zr, createTextVNode as yn, effectScope as Qc, ref as
|
|
4
|
+
import { defineComponent as Se, openBlock as x, createBlock as _e, Transition as oi, withCtx as Je, createElementVNode as M, normalizeClass as He, createElementBlock as H, createCommentVNode as ve, renderSlot as Zr, createTextVNode as yn, effectScope as Qc, ref as ae, markRaw as Or, hasInjectionContext as wm, inject as km, getCurrentInstance as $m, toRaw as zo, watch as sn, reactive as Qr, isRef as Fi, isReactive as ca, toRef as hs, nextTick as Bi, computed as R, unref as Be, getCurrentScope as Cm, onScopeDispose as Om, toRefs as Ml, normalizeStyle as Ze, toDisplayString as pe, onMounted as ft, createVNode as Xe, onUnmounted as gt, withDirectives as Qn, vModelText as pi, Fragment as Ge, renderList as et, onBeforeMount as Yc, TransitionGroup as Ei, Teleport as Ui, resolveDynamicComponent as Qo, resolveDirective as Jc, resolveComponent as _o, useSlots as Am, shallowRef as ki, pushScopeId as Xc, popScopeId as Zc, createStaticVNode as Im, normalizeProps as Em, mergeProps as eu, vModelCheckbox as Pm, createApp as xm } from "vue";
|
|
5
5
|
var qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
6
|
function ua(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -22,8 +22,8 @@ var tu = { exports: {} };
|
|
|
22
22
|
e.exports = r();
|
|
23
23
|
})(qn, function() {
|
|
24
24
|
function n(z) {
|
|
25
|
-
var
|
|
26
|
-
return z !== null && (
|
|
25
|
+
var se = typeof z;
|
|
26
|
+
return z !== null && (se === "object" || se === "function");
|
|
27
27
|
}
|
|
28
28
|
function r(z) {
|
|
29
29
|
return typeof z == "function";
|
|
@@ -32,8 +32,8 @@ var tu = { exports: {} };
|
|
|
32
32
|
Array.isArray ? i = Array.isArray : i = function(z) {
|
|
33
33
|
return Object.prototype.toString.call(z) === "[object Array]";
|
|
34
34
|
};
|
|
35
|
-
var s = i, o = 0, l = void 0, u = void 0, c = function(
|
|
36
|
-
j[o] =
|
|
35
|
+
var s = i, o = 0, l = void 0, u = void 0, c = function(se, le) {
|
|
36
|
+
j[o] = se, j[o + 1] = le, o += 2, o === 2 && (u ? u(P) : Y());
|
|
37
37
|
};
|
|
38
38
|
function m(z) {
|
|
39
39
|
u = z;
|
|
@@ -47,14 +47,14 @@ var tu = { exports: {} };
|
|
|
47
47
|
return process.nextTick(P);
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function O() {
|
|
51
51
|
return typeof l < "u" ? function() {
|
|
52
52
|
l(P);
|
|
53
53
|
} : V();
|
|
54
54
|
}
|
|
55
55
|
function N() {
|
|
56
|
-
var z = 0,
|
|
57
|
-
return
|
|
56
|
+
var z = 0, se = new h(P), le = document.createTextNode("");
|
|
57
|
+
return se.observe(le, { characterData: !0 }), function() {
|
|
58
58
|
le.data = z = ++z % 2;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -73,22 +73,22 @@ var tu = { exports: {} };
|
|
|
73
73
|
var j = new Array(1e3);
|
|
74
74
|
function P() {
|
|
75
75
|
for (var z = 0; z < o; z += 2) {
|
|
76
|
-
var
|
|
77
|
-
|
|
76
|
+
var se = j[z], le = j[z + 1];
|
|
77
|
+
se(le), j[z] = void 0, j[z + 1] = void 0;
|
|
78
78
|
}
|
|
79
79
|
o = 0;
|
|
80
80
|
}
|
|
81
81
|
function K() {
|
|
82
82
|
try {
|
|
83
83
|
var z = Function("return this")().require("vertx");
|
|
84
|
-
return l = z.runOnLoop || z.runOnContext,
|
|
84
|
+
return l = z.runOnLoop || z.runOnContext, O();
|
|
85
85
|
} catch {
|
|
86
86
|
return V();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
y ?
|
|
91
|
-
function ee(z,
|
|
89
|
+
var Y = void 0;
|
|
90
|
+
y ? Y = v() : h ? Y = N() : T ? Y = U() : d === void 0 && typeof Nm == "function" ? Y = K() : Y = V();
|
|
91
|
+
function ee(z, se) {
|
|
92
92
|
var le = this, he = new this.constructor(ne);
|
|
93
93
|
he[re] === void 0 && B(he);
|
|
94
94
|
var Ce = le._state;
|
|
@@ -98,14 +98,14 @@ var tu = { exports: {} };
|
|
|
98
98
|
return ie(Ce, he, Ne, le._result);
|
|
99
99
|
});
|
|
100
100
|
} else
|
|
101
|
-
F(le, he, z,
|
|
101
|
+
F(le, he, z, se);
|
|
102
102
|
return he;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var
|
|
106
|
-
if (z && typeof z == "object" && z.constructor ===
|
|
104
|
+
function J(z) {
|
|
105
|
+
var se = this;
|
|
106
|
+
if (z && typeof z == "object" && z.constructor === se)
|
|
107
107
|
return z;
|
|
108
|
-
var le = new
|
|
108
|
+
var le = new se(ne);
|
|
109
109
|
return $(le, z), le;
|
|
110
110
|
}
|
|
111
111
|
var re = Math.random().toString(36).substring(2);
|
|
@@ -118,70 +118,70 @@ var tu = { exports: {} };
|
|
|
118
118
|
function ze() {
|
|
119
119
|
return new TypeError("A promises callback cannot return that same promise.");
|
|
120
120
|
}
|
|
121
|
-
function lt(z,
|
|
121
|
+
function lt(z, se, le, he) {
|
|
122
122
|
try {
|
|
123
|
-
z.call(
|
|
123
|
+
z.call(se, le, he);
|
|
124
124
|
} catch (Ce) {
|
|
125
125
|
return Ce;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
function L(z,
|
|
128
|
+
function L(z, se, le) {
|
|
129
129
|
c(function(he) {
|
|
130
|
-
var Ce = !1, Ne = lt(le,
|
|
131
|
-
Ce || (Ce = !0,
|
|
130
|
+
var Ce = !1, Ne = lt(le, se, function(Ee) {
|
|
131
|
+
Ce || (Ce = !0, se !== Ee ? $(he, Ee) : b(he, Ee));
|
|
132
132
|
}, function(Ee) {
|
|
133
133
|
Ce || (Ce = !0, k(he, Ee));
|
|
134
134
|
}, "Settle: " + (he._label || " unknown promise"));
|
|
135
135
|
!Ce && Ne && (Ce = !0, k(he, Ne));
|
|
136
136
|
}, z);
|
|
137
137
|
}
|
|
138
|
-
function g(z,
|
|
139
|
-
|
|
138
|
+
function g(z, se) {
|
|
139
|
+
se._state === fe ? b(z, se._result) : se._state === De ? k(z, se._result) : F(se, void 0, function(le) {
|
|
140
140
|
return $(z, le);
|
|
141
141
|
}, function(le) {
|
|
142
142
|
return k(z, le);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
function C(z,
|
|
146
|
-
|
|
145
|
+
function C(z, se, le) {
|
|
146
|
+
se.constructor === z.constructor && le === ee && se.constructor.resolve === J ? g(z, se) : le === void 0 ? b(z, se) : r(le) ? L(z, se, le) : b(z, se);
|
|
147
147
|
}
|
|
148
|
-
function $(z,
|
|
149
|
-
if (z ===
|
|
148
|
+
function $(z, se) {
|
|
149
|
+
if (z === se)
|
|
150
150
|
k(z, rt());
|
|
151
|
-
else if (n(
|
|
151
|
+
else if (n(se)) {
|
|
152
152
|
var le = void 0;
|
|
153
153
|
try {
|
|
154
|
-
le =
|
|
154
|
+
le = se.then;
|
|
155
155
|
} catch (he) {
|
|
156
156
|
k(z, he);
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
C(z,
|
|
159
|
+
C(z, se, le);
|
|
160
160
|
} else
|
|
161
|
-
b(z,
|
|
161
|
+
b(z, se);
|
|
162
162
|
}
|
|
163
163
|
function _(z) {
|
|
164
164
|
z._onerror && z._onerror(z._result), G(z);
|
|
165
165
|
}
|
|
166
|
-
function b(z,
|
|
167
|
-
z._state === X && (z._result =
|
|
166
|
+
function b(z, se) {
|
|
167
|
+
z._state === X && (z._result = se, z._state = fe, z._subscribers.length !== 0 && c(G, z));
|
|
168
168
|
}
|
|
169
|
-
function k(z,
|
|
170
|
-
z._state === X && (z._state = De, z._result =
|
|
169
|
+
function k(z, se) {
|
|
170
|
+
z._state === X && (z._state = De, z._result = se, c(_, z));
|
|
171
171
|
}
|
|
172
|
-
function F(z,
|
|
172
|
+
function F(z, se, le, he) {
|
|
173
173
|
var Ce = z._subscribers, Ne = Ce.length;
|
|
174
|
-
z._onerror = null, Ce[Ne] =
|
|
174
|
+
z._onerror = null, Ce[Ne] = se, Ce[Ne + fe] = le, Ce[Ne + De] = he, Ne === 0 && z._state && c(G, z);
|
|
175
175
|
}
|
|
176
176
|
function G(z) {
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
179
|
-
for (var he = void 0, Ce = void 0, Ne = z._result, Ee = 0; Ee <
|
|
180
|
-
he =
|
|
177
|
+
var se = z._subscribers, le = z._state;
|
|
178
|
+
if (se.length !== 0) {
|
|
179
|
+
for (var he = void 0, Ce = void 0, Ne = z._result, Ee = 0; Ee < se.length; Ee += 3)
|
|
180
|
+
he = se[Ee], Ce = se[Ee + le], he ? ie(le, he, Ce, Ne) : Ce(Ne);
|
|
181
181
|
z._subscribers.length = 0;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function ie(z,
|
|
184
|
+
function ie(z, se, le, he) {
|
|
185
185
|
var Ce = r(le), Ne = void 0, Ee = void 0, $t = !0;
|
|
186
186
|
if (Ce) {
|
|
187
187
|
try {
|
|
@@ -189,17 +189,17 @@ var tu = { exports: {} };
|
|
|
189
189
|
} catch (Yt) {
|
|
190
190
|
$t = !1, Ee = Yt;
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
193
|
-
k(
|
|
192
|
+
if (se === Ne) {
|
|
193
|
+
k(se, ze());
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
} else
|
|
197
197
|
Ne = he;
|
|
198
|
-
|
|
198
|
+
se._state !== X || (Ce && $t ? $(se, Ne) : $t === !1 ? k(se, Ee) : z === fe ? b(se, Ne) : z === De && k(se, Ne));
|
|
199
199
|
}
|
|
200
|
-
function te(z,
|
|
200
|
+
function te(z, se) {
|
|
201
201
|
try {
|
|
202
|
-
|
|
202
|
+
se(function(he) {
|
|
203
203
|
$(z, he);
|
|
204
204
|
}, function(he) {
|
|
205
205
|
k(z, he);
|
|
@@ -219,15 +219,15 @@ var tu = { exports: {} };
|
|
|
219
219
|
return new Error("Array Methods must be provided an Array");
|
|
220
220
|
}
|
|
221
221
|
var ge = function() {
|
|
222
|
-
function z(
|
|
223
|
-
this._instanceConstructor =
|
|
222
|
+
function z(se, le) {
|
|
223
|
+
this._instanceConstructor = se, this.promise = new se(ne), this.promise[re] || B(this.promise), s(le) ? (this.length = le.length, this._remaining = le.length, this._result = new Array(this.length), this.length === 0 ? b(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(le), this._remaining === 0 && b(this.promise, this._result))) : k(this.promise, Z());
|
|
224
224
|
}
|
|
225
225
|
return z.prototype._enumerate = function(le) {
|
|
226
226
|
for (var he = 0; this._state === X && he < le.length; he++)
|
|
227
227
|
this._eachEntry(le[he], he);
|
|
228
228
|
}, z.prototype._eachEntry = function(le, he) {
|
|
229
229
|
var Ce = this._instanceConstructor, Ne = Ce.resolve;
|
|
230
|
-
if (Ne ===
|
|
230
|
+
if (Ne === J) {
|
|
231
231
|
var Ee = void 0, $t = void 0, Yt = !1;
|
|
232
232
|
try {
|
|
233
233
|
Ee = le.then;
|
|
@@ -263,27 +263,27 @@ var tu = { exports: {} };
|
|
|
263
263
|
return new ge(this, z).promise;
|
|
264
264
|
}
|
|
265
265
|
function Ae(z) {
|
|
266
|
-
var
|
|
267
|
-
return s(z) ? new
|
|
266
|
+
var se = this;
|
|
267
|
+
return s(z) ? new se(function(le, he) {
|
|
268
268
|
for (var Ce = z.length, Ne = 0; Ne < Ce; Ne++)
|
|
269
|
-
|
|
270
|
-
}) : new
|
|
269
|
+
se.resolve(z[Ne]).then(le, he);
|
|
270
|
+
}) : new se(function(le, he) {
|
|
271
271
|
return he(new TypeError("You must pass an array to race."));
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function Ie(z) {
|
|
275
|
-
var
|
|
275
|
+
var se = this, le = new se(ne);
|
|
276
276
|
return k(le, z), le;
|
|
277
277
|
}
|
|
278
278
|
function Qe() {
|
|
279
279
|
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function pt() {
|
|
282
282
|
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
|
|
283
283
|
}
|
|
284
284
|
var ut = function() {
|
|
285
|
-
function z(
|
|
286
|
-
this[re] = Le(), this._result = this._state = void 0, this._subscribers = [], ne !==
|
|
285
|
+
function z(se) {
|
|
286
|
+
this[re] = Le(), this._result = this._state = void 0, this._subscribers = [], ne !== se && (typeof se != "function" && Qe(), this instanceof z ? te(this, se) : pt());
|
|
287
287
|
}
|
|
288
288
|
return z.prototype.catch = function(le) {
|
|
289
289
|
return this.then(null, le);
|
|
@@ -300,7 +300,7 @@ var tu = { exports: {} };
|
|
|
300
300
|
}) : he.then(le, le);
|
|
301
301
|
}, z;
|
|
302
302
|
}();
|
|
303
|
-
ut.prototype.then = ee, ut.all = me, ut.race = Ae, ut.resolve =
|
|
303
|
+
ut.prototype.then = ee, ut.all = me, ut.race = Ae, ut.resolve = J, ut.reject = Ie, ut._setScheduler = m, ut._setAsap = a, ut._asap = c;
|
|
304
304
|
function xe() {
|
|
305
305
|
var z = void 0;
|
|
306
306
|
if (typeof qn < "u")
|
|
@@ -313,14 +313,14 @@ var tu = { exports: {} };
|
|
|
313
313
|
} catch {
|
|
314
314
|
throw new Error("polyfill failed because global object is unavailable in this environment");
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
if (
|
|
316
|
+
var se = z.Promise;
|
|
317
|
+
if (se) {
|
|
318
318
|
var le = null;
|
|
319
319
|
try {
|
|
320
|
-
le = Object.prototype.toString.call(
|
|
320
|
+
le = Object.prototype.toString.call(se.resolve());
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
|
-
if (le === "[object Promise]" && !
|
|
323
|
+
if (le === "[object Promise]" && !se.cast)
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
z.Promise = ut;
|
|
@@ -524,217 +524,217 @@ var f = {};
|
|
|
524
524
|
e.TypeGuardUnknownTypeError = s;
|
|
525
525
|
var o;
|
|
526
526
|
(function(L) {
|
|
527
|
-
function g(
|
|
527
|
+
function g(A) {
|
|
528
528
|
try {
|
|
529
|
-
return new RegExp(
|
|
529
|
+
return new RegExp(A), !0;
|
|
530
530
|
} catch {
|
|
531
531
|
return !1;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function C(
|
|
535
|
-
if (!i.IsString(
|
|
534
|
+
function C(A) {
|
|
535
|
+
if (!i.IsString(A))
|
|
536
536
|
return !1;
|
|
537
|
-
for (let E = 0; E <
|
|
538
|
-
const I =
|
|
537
|
+
for (let E = 0; E < A.length; E++) {
|
|
538
|
+
const I = A.charCodeAt(E);
|
|
539
539
|
if (I >= 7 && I <= 13 || I === 27 || I === 127)
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
542
|
return !0;
|
|
543
543
|
}
|
|
544
|
-
function $(
|
|
545
|
-
return k(
|
|
544
|
+
function $(A) {
|
|
545
|
+
return k(A) || bt(A);
|
|
546
546
|
}
|
|
547
|
-
function _(
|
|
548
|
-
return i.IsUndefined(
|
|
547
|
+
function _(A) {
|
|
548
|
+
return i.IsUndefined(A) || i.IsBigInt(A);
|
|
549
549
|
}
|
|
550
|
-
function b(
|
|
551
|
-
return i.IsUndefined(
|
|
550
|
+
function b(A) {
|
|
551
|
+
return i.IsUndefined(A) || i.IsNumber(A);
|
|
552
552
|
}
|
|
553
|
-
function k(
|
|
554
|
-
return i.IsUndefined(
|
|
553
|
+
function k(A) {
|
|
554
|
+
return i.IsUndefined(A) || i.IsBoolean(A);
|
|
555
555
|
}
|
|
556
|
-
function F(
|
|
557
|
-
return i.IsUndefined(
|
|
556
|
+
function F(A) {
|
|
557
|
+
return i.IsUndefined(A) || i.IsString(A);
|
|
558
558
|
}
|
|
559
|
-
function G(
|
|
560
|
-
return i.IsUndefined(
|
|
559
|
+
function G(A) {
|
|
560
|
+
return i.IsUndefined(A) || i.IsString(A) && C(A) && g(A);
|
|
561
561
|
}
|
|
562
|
-
function ie(
|
|
563
|
-
return i.IsUndefined(
|
|
562
|
+
function ie(A) {
|
|
563
|
+
return i.IsUndefined(A) || i.IsString(A) && C(A);
|
|
564
564
|
}
|
|
565
|
-
function te(
|
|
566
|
-
return i.IsUndefined(
|
|
565
|
+
function te(A) {
|
|
566
|
+
return i.IsUndefined(A) || bt(A);
|
|
567
567
|
}
|
|
568
|
-
function oe(
|
|
569
|
-
return xe(
|
|
568
|
+
function oe(A) {
|
|
569
|
+
return xe(A, "Any") && F(A.$id);
|
|
570
570
|
}
|
|
571
571
|
L.TAny = oe;
|
|
572
|
-
function Le(
|
|
573
|
-
return xe(
|
|
572
|
+
function Le(A) {
|
|
573
|
+
return xe(A, "Array") && A.type === "array" && F(A.$id) && bt(A.items) && b(A.minItems) && b(A.maxItems) && k(A.uniqueItems) && te(A.contains) && b(A.minContains) && b(A.maxContains);
|
|
574
574
|
}
|
|
575
575
|
L.TArray = Le;
|
|
576
|
-
function B(
|
|
577
|
-
return xe(
|
|
576
|
+
function B(A) {
|
|
577
|
+
return xe(A, "AsyncIterator") && A.type === "AsyncIterator" && F(A.$id) && bt(A.items);
|
|
578
578
|
}
|
|
579
579
|
L.TAsyncIterator = B;
|
|
580
|
-
function Z(
|
|
581
|
-
return xe(
|
|
580
|
+
function Z(A) {
|
|
581
|
+
return xe(A, "BigInt") && A.type === "bigint" && F(A.$id) && _(A.exclusiveMaximum) && _(A.exclusiveMinimum) && _(A.maximum) && _(A.minimum) && _(A.multipleOf);
|
|
582
582
|
}
|
|
583
583
|
L.TBigInt = Z;
|
|
584
|
-
function ge(
|
|
585
|
-
return xe(
|
|
584
|
+
function ge(A) {
|
|
585
|
+
return xe(A, "Boolean") && A.type === "boolean" && F(A.$id);
|
|
586
586
|
}
|
|
587
587
|
L.TBoolean = ge;
|
|
588
|
-
function me(
|
|
589
|
-
return xe(
|
|
588
|
+
function me(A) {
|
|
589
|
+
return xe(A, "Constructor") && A.type === "Constructor" && F(A.$id) && i.IsArray(A.parameters) && A.parameters.every((E) => bt(E)) && bt(A.returns);
|
|
590
590
|
}
|
|
591
591
|
L.TConstructor = me;
|
|
592
|
-
function Ae(
|
|
593
|
-
return xe(
|
|
592
|
+
function Ae(A) {
|
|
593
|
+
return xe(A, "Date") && A.type === "Date" && F(A.$id) && b(A.exclusiveMaximumTimestamp) && b(A.exclusiveMinimumTimestamp) && b(A.maximumTimestamp) && b(A.minimumTimestamp) && b(A.multipleOfTimestamp);
|
|
594
594
|
}
|
|
595
595
|
L.TDate = Ae;
|
|
596
|
-
function Ie(
|
|
597
|
-
return xe(
|
|
596
|
+
function Ie(A) {
|
|
597
|
+
return xe(A, "Function") && A.type === "Function" && F(A.$id) && i.IsArray(A.parameters) && A.parameters.every((E) => bt(E)) && bt(A.returns);
|
|
598
598
|
}
|
|
599
599
|
L.TFunction = Ie;
|
|
600
|
-
function Qe(
|
|
601
|
-
return xe(
|
|
600
|
+
function Qe(A) {
|
|
601
|
+
return xe(A, "Integer") && A.type === "integer" && F(A.$id) && b(A.exclusiveMaximum) && b(A.exclusiveMinimum) && b(A.maximum) && b(A.minimum) && b(A.multipleOf);
|
|
602
602
|
}
|
|
603
603
|
L.TInteger = Qe;
|
|
604
|
-
function
|
|
605
|
-
return xe(
|
|
604
|
+
function pt(A) {
|
|
605
|
+
return xe(A, "Intersect") && !(i.IsString(A.type) && A.type !== "object") && i.IsArray(A.allOf) && A.allOf.every((E) => bt(E) && !gr(E)) && F(A.type) && (k(A.unevaluatedProperties) || te(A.unevaluatedProperties)) && F(A.$id);
|
|
606
606
|
}
|
|
607
|
-
L.TIntersect =
|
|
608
|
-
function ut(
|
|
609
|
-
return xe(
|
|
607
|
+
L.TIntersect = pt;
|
|
608
|
+
function ut(A) {
|
|
609
|
+
return xe(A, "Iterator") && A.type === "Iterator" && F(A.$id) && bt(A.items);
|
|
610
610
|
}
|
|
611
611
|
L.TIterator = ut;
|
|
612
|
-
function xe(
|
|
613
|
-
return z(
|
|
612
|
+
function xe(A, E) {
|
|
613
|
+
return z(A) && A[e.Kind] === E;
|
|
614
614
|
}
|
|
615
615
|
L.TKindOf = xe;
|
|
616
|
-
function z(
|
|
617
|
-
return i.IsObject(
|
|
616
|
+
function z(A) {
|
|
617
|
+
return i.IsObject(A) && e.Kind in A && i.IsString(A[e.Kind]);
|
|
618
618
|
}
|
|
619
619
|
L.TKind = z;
|
|
620
|
-
function
|
|
621
|
-
return Ce(
|
|
620
|
+
function se(A) {
|
|
621
|
+
return Ce(A) && i.IsString(A.const);
|
|
622
622
|
}
|
|
623
|
-
L.TLiteralString =
|
|
624
|
-
function le(
|
|
625
|
-
return Ce(
|
|
623
|
+
L.TLiteralString = se;
|
|
624
|
+
function le(A) {
|
|
625
|
+
return Ce(A) && i.IsNumber(A.const);
|
|
626
626
|
}
|
|
627
627
|
L.TLiteralNumber = le;
|
|
628
|
-
function he(
|
|
629
|
-
return Ce(
|
|
628
|
+
function he(A) {
|
|
629
|
+
return Ce(A) && i.IsBoolean(A.const);
|
|
630
630
|
}
|
|
631
631
|
L.TLiteralBoolean = he;
|
|
632
|
-
function Ce(
|
|
633
|
-
return xe(
|
|
632
|
+
function Ce(A) {
|
|
633
|
+
return xe(A, "Literal") && F(A.$id) && (i.IsBoolean(A.const) || i.IsNumber(A.const) || i.IsString(A.const));
|
|
634
634
|
}
|
|
635
635
|
L.TLiteral = Ce;
|
|
636
|
-
function Ne(
|
|
637
|
-
return xe(
|
|
636
|
+
function Ne(A) {
|
|
637
|
+
return xe(A, "Never") && i.IsObject(A.not) && Object.getOwnPropertyNames(A.not).length === 0;
|
|
638
638
|
}
|
|
639
639
|
L.TNever = Ne;
|
|
640
|
-
function Ee(
|
|
641
|
-
return xe(
|
|
640
|
+
function Ee(A) {
|
|
641
|
+
return xe(A, "Not") && bt(A.not);
|
|
642
642
|
}
|
|
643
643
|
L.TNot = Ee;
|
|
644
|
-
function $t(
|
|
645
|
-
return xe(
|
|
644
|
+
function $t(A) {
|
|
645
|
+
return xe(A, "Null") && A.type === "null" && F(A.$id);
|
|
646
646
|
}
|
|
647
647
|
L.TNull = $t;
|
|
648
|
-
function Yt(
|
|
649
|
-
return xe(
|
|
648
|
+
function Yt(A) {
|
|
649
|
+
return xe(A, "Number") && A.type === "number" && F(A.$id) && b(A.exclusiveMaximum) && b(A.exclusiveMinimum) && b(A.maximum) && b(A.minimum) && b(A.multipleOf);
|
|
650
650
|
}
|
|
651
651
|
L.TNumber = Yt;
|
|
652
|
-
function Jt(
|
|
653
|
-
return xe(
|
|
652
|
+
function Jt(A) {
|
|
653
|
+
return xe(A, "Object") && A.type === "object" && F(A.$id) && i.IsObject(A.properties) && $(A.additionalProperties) && b(A.minProperties) && b(A.maxProperties) && Object.entries(A.properties).every(([E, I]) => C(E) && bt(I));
|
|
654
654
|
}
|
|
655
655
|
L.TObject = Jt;
|
|
656
|
-
function Ut(
|
|
657
|
-
return xe(
|
|
656
|
+
function Ut(A) {
|
|
657
|
+
return xe(A, "Promise") && A.type === "Promise" && F(A.$id) && bt(A.item);
|
|
658
658
|
}
|
|
659
659
|
L.TPromise = Ut;
|
|
660
|
-
function hr(
|
|
661
|
-
return xe(
|
|
660
|
+
function hr(A) {
|
|
661
|
+
return xe(A, "Record") && A.type === "object" && F(A.$id) && $(A.additionalProperties) && i.IsObject(A.patternProperties) && ((E) => {
|
|
662
662
|
const I = Object.getOwnPropertyNames(E.patternProperties);
|
|
663
663
|
return I.length === 1 && g(I[0]) && i.IsObject(E.patternProperties) && bt(E.patternProperties[I[0]]);
|
|
664
|
-
})(
|
|
664
|
+
})(A);
|
|
665
665
|
}
|
|
666
666
|
L.TRecord = hr;
|
|
667
|
-
function bi(
|
|
668
|
-
return i.IsObject(
|
|
667
|
+
function bi(A) {
|
|
668
|
+
return i.IsObject(A) && e.Hint in A && A[e.Hint] === "Recursive";
|
|
669
669
|
}
|
|
670
670
|
L.TRecursive = bi;
|
|
671
|
-
function yr(
|
|
672
|
-
return xe(
|
|
671
|
+
function yr(A) {
|
|
672
|
+
return xe(A, "Ref") && F(A.$id) && i.IsString(A.$ref);
|
|
673
673
|
}
|
|
674
674
|
L.TRef = yr;
|
|
675
|
-
function Vt(
|
|
676
|
-
return xe(
|
|
675
|
+
function Vt(A) {
|
|
676
|
+
return xe(A, "String") && A.type === "string" && F(A.$id) && b(A.minLength) && b(A.maxLength) && G(A.pattern) && ie(A.format);
|
|
677
677
|
}
|
|
678
678
|
L.TString = Vt;
|
|
679
|
-
function Rr(
|
|
680
|
-
return xe(
|
|
679
|
+
function Rr(A) {
|
|
680
|
+
return xe(A, "Symbol") && A.type === "symbol" && F(A.$id);
|
|
681
681
|
}
|
|
682
682
|
L.TSymbol = Rr;
|
|
683
|
-
function Mn(
|
|
684
|
-
return xe(
|
|
683
|
+
function Mn(A) {
|
|
684
|
+
return xe(A, "TemplateLiteral") && A.type === "string" && i.IsString(A.pattern) && A.pattern[0] === "^" && A.pattern[A.pattern.length - 1] === "$";
|
|
685
685
|
}
|
|
686
686
|
L.TTemplateLiteral = Mn;
|
|
687
|
-
function Mr(
|
|
688
|
-
return xe(
|
|
687
|
+
function Mr(A) {
|
|
688
|
+
return xe(A, "This") && F(A.$id) && i.IsString(A.$ref);
|
|
689
689
|
}
|
|
690
690
|
L.TThis = Mr;
|
|
691
|
-
function gr(
|
|
692
|
-
return i.IsObject(
|
|
691
|
+
function gr(A) {
|
|
692
|
+
return i.IsObject(A) && e.Transform in A;
|
|
693
693
|
}
|
|
694
694
|
L.TTransform = gr;
|
|
695
|
-
function _t(
|
|
696
|
-
return xe(
|
|
697
|
-
(i.IsUndefined(
|
|
695
|
+
function _t(A) {
|
|
696
|
+
return xe(A, "Tuple") && A.type === "array" && F(A.$id) && i.IsNumber(A.minItems) && i.IsNumber(A.maxItems) && A.minItems === A.maxItems && // empty
|
|
697
|
+
(i.IsUndefined(A.items) && i.IsUndefined(A.additionalItems) && A.minItems === 0 || i.IsArray(A.items) && A.items.every((E) => bt(E)));
|
|
698
698
|
}
|
|
699
699
|
L.TTuple = _t;
|
|
700
|
-
function Fr(
|
|
701
|
-
return xe(
|
|
700
|
+
function Fr(A) {
|
|
701
|
+
return xe(A, "Undefined") && A.type === "undefined" && F(A.$id);
|
|
702
702
|
}
|
|
703
703
|
L.TUndefined = Fr;
|
|
704
|
-
function bn(
|
|
705
|
-
return Fn(
|
|
704
|
+
function bn(A) {
|
|
705
|
+
return Fn(A) && A.anyOf.every((E) => se(E) || le(E));
|
|
706
706
|
}
|
|
707
707
|
L.TUnionLiteral = bn;
|
|
708
|
-
function Fn(
|
|
709
|
-
return xe(
|
|
708
|
+
function Fn(A) {
|
|
709
|
+
return xe(A, "Union") && F(A.$id) && i.IsObject(A) && i.IsArray(A.anyOf) && A.anyOf.every((E) => bt(E));
|
|
710
710
|
}
|
|
711
711
|
L.TUnion = Fn;
|
|
712
|
-
function Bn(
|
|
713
|
-
return xe(
|
|
712
|
+
function Bn(A) {
|
|
713
|
+
return xe(A, "Uint8Array") && A.type === "Uint8Array" && F(A.$id) && b(A.minByteLength) && b(A.maxByteLength);
|
|
714
714
|
}
|
|
715
715
|
L.TUint8Array = Bn;
|
|
716
|
-
function It(
|
|
717
|
-
return xe(
|
|
716
|
+
function It(A) {
|
|
717
|
+
return xe(A, "Unknown") && F(A.$id);
|
|
718
718
|
}
|
|
719
719
|
L.TUnknown = It;
|
|
720
|
-
function Zn(
|
|
721
|
-
return xe(
|
|
720
|
+
function Zn(A) {
|
|
721
|
+
return xe(A, "Unsafe");
|
|
722
722
|
}
|
|
723
723
|
L.TUnsafe = Zn;
|
|
724
|
-
function er(
|
|
725
|
-
return xe(
|
|
724
|
+
function er(A) {
|
|
725
|
+
return xe(A, "Void") && A.type === "void" && F(A.$id);
|
|
726
726
|
}
|
|
727
727
|
L.TVoid = er;
|
|
728
|
-
function Ti(
|
|
729
|
-
return i.IsObject(
|
|
728
|
+
function Ti(A) {
|
|
729
|
+
return i.IsObject(A) && A[e.Readonly] === "Readonly";
|
|
730
730
|
}
|
|
731
731
|
L.TReadonly = Ti;
|
|
732
|
-
function Br(
|
|
733
|
-
return i.IsObject(
|
|
732
|
+
function Br(A) {
|
|
733
|
+
return i.IsObject(A) && A[e.Optional] === "Optional";
|
|
734
734
|
}
|
|
735
735
|
L.TOptional = Br;
|
|
736
|
-
function bt(
|
|
737
|
-
return i.IsObject(
|
|
736
|
+
function bt(A) {
|
|
737
|
+
return i.IsObject(A) && (oe(A) || Le(A) || ge(A) || Z(A) || B(A) || me(A) || Ae(A) || Ie(A) || Qe(A) || pt(A) || ut(A) || Ce(A) || Ne(A) || Ee(A) || $t(A) || Yt(A) || Jt(A) || Ut(A) || hr(A) || yr(A) || Vt(A) || Rr(A) || Mn(A) || Mr(A) || _t(A) || Fr(A) || Fn(A) || Bn(A) || It(A) || Zn(A) || er(A) || z(A) && t.Has(A[e.Kind]));
|
|
738
738
|
}
|
|
739
739
|
L.TSchema = bt;
|
|
740
740
|
})(o || (e.TypeGuard = o = {}));
|
|
@@ -811,7 +811,7 @@ var f = {};
|
|
|
811
811
|
function Qe(w, S) {
|
|
812
812
|
return w.allOf.some((ke) => ye(ke, S) === c.True) ? c.True : c.False;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function pt(w, S) {
|
|
815
815
|
return $(S) ? _(w, S) : o.TIterator(S) ? g(ye(w.items, S.items)) : c.False;
|
|
816
816
|
}
|
|
817
817
|
function ut(w, S) {
|
|
@@ -823,14 +823,14 @@ var f = {};
|
|
|
823
823
|
function z(w, S) {
|
|
824
824
|
return c.True;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function se(w) {
|
|
827
827
|
let [S, ke] = [w, 0];
|
|
828
828
|
for (; o.TNot(S); )
|
|
829
829
|
S = S.not, ke += 1;
|
|
830
830
|
return ke % 2 === 0 ? S : e.Type.Unknown();
|
|
831
831
|
}
|
|
832
832
|
function le(w, S) {
|
|
833
|
-
return o.TNot(w) ? ye(
|
|
833
|
+
return o.TNot(w) ? ye(se(w), S) : o.TNot(S) ? ye(w, se(S)) : C("Invalid fallthrough for Not");
|
|
834
834
|
}
|
|
835
835
|
function he(w, S) {
|
|
836
836
|
return $(S) ? _(w, S) : o.TObject(S) ? _t(w, S) : o.TRecord(S) ? It(w, S) : o.TNull(S) ? c.True : c.False;
|
|
@@ -932,14 +932,14 @@ var f = {};
|
|
|
932
932
|
function bt(w, S) {
|
|
933
933
|
return o.TTemplateLiteral(w) ? ye(V.Resolve(w), S) : o.TTemplateLiteral(S) ? ye(w, V.Resolve(S)) : C("Invalid fallthrough for TemplateLiteral");
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function A(w, S) {
|
|
936
936
|
return o.TArray(S) && w.items !== void 0 && w.items.every((ke) => ye(ke, S.items) === c.True);
|
|
937
937
|
}
|
|
938
938
|
function E(w, S) {
|
|
939
939
|
return o.TNever(w) ? c.True : o.TUnknown(w) ? c.False : o.TAny(w) ? c.Union : c.False;
|
|
940
940
|
}
|
|
941
941
|
function I(w, S) {
|
|
942
|
-
return $(S) ? _(w, S) : o.TObject(S) && Mn(S) || o.TArray(S) &&
|
|
942
|
+
return $(S) ? _(w, S) : o.TObject(S) && Mn(S) || o.TArray(S) && A(w, S) ? c.True : o.TTuple(S) ? i.IsUndefined(w.items) && !i.IsUndefined(S.items) || !i.IsUndefined(w.items) && i.IsUndefined(S.items) ? c.False : i.IsUndefined(w.items) && !i.IsUndefined(S.items) || w.items.every((ke, nt) => ye(ke, S.items[nt]) === c.True) ? c.True : c.False : c.False;
|
|
943
943
|
}
|
|
944
944
|
function D(w, S) {
|
|
945
945
|
return $(S) ? _(w, S) : o.TObject(S) ? _t(w, S) : o.TRecord(S) ? It(w, S) : o.TUint8Array(S) ? c.True : c.False;
|
|
@@ -970,7 +970,7 @@ var f = {};
|
|
|
970
970
|
// resolvable
|
|
971
971
|
o.TTemplateLiteral(w) || o.TTemplateLiteral(S) ? bt(w, S) : o.TNot(w) || o.TNot(S) ? le(w, S) : (
|
|
972
972
|
// standard
|
|
973
|
-
o.TAny(w) ? k(w, S) : o.TArray(w) ? G(w, S) : o.TBigInt(w) ? te(w, S) : o.TBoolean(w) ? Le(w, S) : o.TAsyncIterator(w) ? ie(w, S) : o.TConstructor(w) ? B(w, S) : o.TDate(w) ? Z(w, S) : o.TFunction(w) ? ge(w, S) : o.TInteger(w) ? Ae(w, S) : o.TIntersect(w) ? Qe(w, S) : o.TIterator(w) ?
|
|
973
|
+
o.TAny(w) ? k(w, S) : o.TArray(w) ? G(w, S) : o.TBigInt(w) ? te(w, S) : o.TBoolean(w) ? Le(w, S) : o.TAsyncIterator(w) ? ie(w, S) : o.TConstructor(w) ? B(w, S) : o.TDate(w) ? Z(w, S) : o.TFunction(w) ? ge(w, S) : o.TInteger(w) ? Ae(w, S) : o.TIntersect(w) ? Qe(w, S) : o.TIterator(w) ? pt(w, S) : o.TLiteral(w) ? ut(w, S) : o.TNever(w) ? z() : o.TNull(w) ? he(w, S) : o.TNumber(w) ? Ne(w, S) : o.TObject(w) ? Fr(w, S) : o.TRecord(w) ? Zn(w, S) : o.TString(w) ? Ti(w, S) : o.TSymbol(w) ? Br(w, S) : o.TTuple(w) ? I(w, S) : o.TPromise(w) ? bn(w, S) : o.TUint8Array(w) ? D(w, S) : o.TUndefined(w) ? Q(w, S) : o.TUnion(w) ? be(w, S) : o.TUnknown(w) ? Ke(w, S) : o.TVoid(w) ? mt(w, S) : C(`Unknown left type operand '${w[e.Kind]}'`)
|
|
974
974
|
)
|
|
975
975
|
);
|
|
976
976
|
}
|
|
@@ -1078,9 +1078,9 @@ var f = {};
|
|
|
1078
1078
|
}
|
|
1079
1079
|
function b(te, oe) {
|
|
1080
1080
|
const Le = P.ParseExact(te.pattern);
|
|
1081
|
-
if (!
|
|
1081
|
+
if (!Y.Check(Le))
|
|
1082
1082
|
return { ...te, pattern: k(te.pattern, oe) };
|
|
1083
|
-
const ge = [...
|
|
1083
|
+
const ge = [...J.Generate(Le)].map((Ie) => e.Type.Literal(Ie)), me = F(ge, oe), Ae = e.Type.Union(me);
|
|
1084
1084
|
return e.Type.TemplateLiteral([Ae]);
|
|
1085
1085
|
}
|
|
1086
1086
|
function k(te, oe) {
|
|
@@ -1157,14 +1157,14 @@ var f = {};
|
|
|
1157
1157
|
function g(C) {
|
|
1158
1158
|
return Array.isArray(C) ? C : o.TUnionLiteral(C) ? C.anyOf.map(($) => $.const.toString()) : o.TLiteral(C) ? [C.const] : o.TTemplateLiteral(C) ? (() => {
|
|
1159
1159
|
const $ = P.ParseExact(C.pattern);
|
|
1160
|
-
if (!
|
|
1160
|
+
if (!Y.Check($))
|
|
1161
1161
|
throw new T("Cannot resolve keys from infinite template expression");
|
|
1162
|
-
return [...
|
|
1162
|
+
return [...J.Generate($)];
|
|
1163
1163
|
})() : [];
|
|
1164
1164
|
}
|
|
1165
1165
|
L.Resolve = g;
|
|
1166
1166
|
})(v || (e.KeyArrayResolver = v = {}));
|
|
1167
|
-
var
|
|
1167
|
+
var O;
|
|
1168
1168
|
(function(L) {
|
|
1169
1169
|
function* g($) {
|
|
1170
1170
|
for (const _ of $.anyOf)
|
|
@@ -1174,7 +1174,7 @@ var f = {};
|
|
|
1174
1174
|
return e.Type.Union([...g($)], { ...$ });
|
|
1175
1175
|
}
|
|
1176
1176
|
L.Resolve = C;
|
|
1177
|
-
})(
|
|
1177
|
+
})(O || (e.UnionResolver = O = {}));
|
|
1178
1178
|
class N extends n {
|
|
1179
1179
|
}
|
|
1180
1180
|
e.TemplateLiteralPatternError = N;
|
|
@@ -1198,9 +1198,9 @@ var f = {};
|
|
|
1198
1198
|
(function(L) {
|
|
1199
1199
|
function g(C) {
|
|
1200
1200
|
const $ = P.ParseExact(C.pattern);
|
|
1201
|
-
if (!
|
|
1201
|
+
if (!Y.Check($))
|
|
1202
1202
|
return e.Type.String();
|
|
1203
|
-
const _ = [...
|
|
1203
|
+
const _ = [...J.Generate($)].map((b) => e.Type.Literal(b));
|
|
1204
1204
|
return e.Type.Union(_);
|
|
1205
1205
|
}
|
|
1206
1206
|
L.Resolve = g;
|
|
@@ -1263,9 +1263,9 @@ var f = {};
|
|
|
1263
1263
|
if (!C(Ae, Ie))
|
|
1264
1264
|
throw new j("TemplateLiteralParser: Index must point to open parens");
|
|
1265
1265
|
let Qe = 0;
|
|
1266
|
-
for (let
|
|
1267
|
-
if (C(Ae,
|
|
1268
|
-
return [Ie,
|
|
1266
|
+
for (let pt = Ie; pt < Ae.length; pt++)
|
|
1267
|
+
if (C(Ae, pt) && (Qe += 1), $(Ae, pt) && (Qe -= 1), Qe === 0)
|
|
1268
|
+
return [Ie, pt];
|
|
1269
1269
|
throw new j("TemplateLiteralParser: Unclosed group parens in expression");
|
|
1270
1270
|
}
|
|
1271
1271
|
function ge(Ae, Ie) {
|
|
@@ -1277,11 +1277,11 @@ var f = {};
|
|
|
1277
1277
|
const me = [];
|
|
1278
1278
|
for (let Ae = 0; Ae < B.length; Ae++)
|
|
1279
1279
|
if (C(B, Ae)) {
|
|
1280
|
-
const [Ie, Qe] = Z(B, Ae),
|
|
1281
|
-
me.push(oe(
|
|
1280
|
+
const [Ie, Qe] = Z(B, Ae), pt = B.slice(Ie, Qe + 1);
|
|
1281
|
+
me.push(oe(pt)), Ae = Qe;
|
|
1282
1282
|
} else {
|
|
1283
|
-
const [Ie, Qe] = ge(B, Ae),
|
|
1284
|
-
|
|
1283
|
+
const [Ie, Qe] = ge(B, Ae), pt = B.slice(Ie, Qe);
|
|
1284
|
+
pt.length > 0 && me.push(oe(pt)), Ae = Qe - 1;
|
|
1285
1285
|
}
|
|
1286
1286
|
return me.length === 0 ? { type: "const", const: "" } : me.length === 1 ? me[0] : { type: "and", expr: me };
|
|
1287
1287
|
}
|
|
@@ -1297,7 +1297,7 @@ var f = {};
|
|
|
1297
1297
|
class K extends n {
|
|
1298
1298
|
}
|
|
1299
1299
|
e.TemplateLiteralFiniteError = K;
|
|
1300
|
-
var
|
|
1300
|
+
var Y;
|
|
1301
1301
|
(function(L) {
|
|
1302
1302
|
function g(k) {
|
|
1303
1303
|
throw new K(k);
|
|
@@ -1315,11 +1315,11 @@ var f = {};
|
|
|
1315
1315
|
return $(k) ? !0 : C(k) || _(k) ? !1 : k.type === "and" ? k.expr.every((F) => b(F)) : k.type === "or" ? k.expr.every((F) => b(F)) : k.type === "const" ? !0 : g("Unknown expression type");
|
|
1316
1316
|
}
|
|
1317
1317
|
L.Check = b;
|
|
1318
|
-
})(
|
|
1318
|
+
})(Y || (e.TemplateLiteralFinite = Y = {}));
|
|
1319
1319
|
class ee extends n {
|
|
1320
1320
|
}
|
|
1321
1321
|
e.TemplateLiteralGeneratorError = ee;
|
|
1322
|
-
var
|
|
1322
|
+
var J;
|
|
1323
1323
|
(function(L) {
|
|
1324
1324
|
function* g(k) {
|
|
1325
1325
|
if (k.length === 1)
|
|
@@ -1344,7 +1344,7 @@ var f = {};
|
|
|
1344
1344
|
})();
|
|
1345
1345
|
}
|
|
1346
1346
|
L.Generate = b;
|
|
1347
|
-
})(
|
|
1347
|
+
})(J || (e.TemplateLiteralGenerator = J = {}));
|
|
1348
1348
|
var re;
|
|
1349
1349
|
(function(L) {
|
|
1350
1350
|
function* g(b) {
|
|
@@ -1606,9 +1606,9 @@ var f = {};
|
|
|
1606
1606
|
Record(g, C, $ = {}) {
|
|
1607
1607
|
return o.TTemplateLiteral(g) ? (() => {
|
|
1608
1608
|
const _ = P.ParseExact(g.pattern);
|
|
1609
|
-
return
|
|
1609
|
+
return Y.Check(_) ? this.Object([...J.Generate(_)].reduce((b, k) => ({ ...b, [k]: a.Type(C) }), {}), $) : this.Create({ ...$, [e.Kind]: "Record", type: "object", patternProperties: { [g.pattern]: a.Type(C) } });
|
|
1610
1610
|
})() : o.TUnion(g) ? (() => {
|
|
1611
|
-
const _ =
|
|
1611
|
+
const _ = O.Resolve(g);
|
|
1612
1612
|
if (o.TUnionLiteral(_)) {
|
|
1613
1613
|
const b = _.anyOf.reduce((k, F) => ({ ...k, [F.const]: a.Type(C) }), {});
|
|
1614
1614
|
return this.Object(b, { ...$, [e.Hint]: "Record" });
|
|
@@ -1924,9 +1924,9 @@ const Ao = "###_--_~=:;_JUMP", ma = "###_--_~=:;_RETURN", th = "###_--_~=:;_OK",
|
|
|
1924
1924
|
function nh(e) {
|
|
1925
1925
|
return e === Ao || e === ma || e === th || e === Io;
|
|
1926
1926
|
}
|
|
1927
|
-
const rh = "3.17.
|
|
1927
|
+
const rh = "3.17.4", ih = /* @__PURE__ */ new Date("2025-07-05T13:54:19.307Z"), Ul = {
|
|
1928
1928
|
branch: "main",
|
|
1929
|
-
commit: "
|
|
1929
|
+
commit: "df00d71f270b0d70acf192197e7faaea22f24afa"
|
|
1930
1930
|
}, oh = ir.WARN, sh = 400, Eo = 20, Jo = "@empty", Vl = {
|
|
1931
1931
|
background: Jo
|
|
1932
1932
|
}, ah = f.Type.Optional(
|
|
@@ -3151,7 +3151,7 @@ function ay({ app: e, store: t, options: n }) {
|
|
|
3151
3151
|
);
|
|
3152
3152
|
}
|
|
3153
3153
|
function ly() {
|
|
3154
|
-
const e = Qc(!0), t = e.run(() =>
|
|
3154
|
+
const e = Qc(!0), t = e.run(() => ae({}));
|
|
3155
3155
|
let n = [], r = [];
|
|
3156
3156
|
const i = Or({
|
|
3157
3157
|
install(s) {
|
|
@@ -3224,7 +3224,7 @@ function zl(e, t, n, r) {
|
|
|
3224
3224
|
!l && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = i ? i() : {});
|
|
3225
3225
|
const m = process.env.NODE_ENV !== "production" && r ? (
|
|
3226
3226
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
3227
|
-
Ml(
|
|
3227
|
+
Ml(ae(i ? i() : {}).value)
|
|
3228
3228
|
) : Ml(n.state.value[e]);
|
|
3229
3229
|
return nn(m, s, Object.keys(o || {}).reduce((a, d) => (process.env.NODE_ENV !== "production" && d in m && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), a[d] = Or(R(() => {
|
|
3230
3230
|
Vi(n);
|
|
@@ -3249,15 +3249,15 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3249
3249
|
let c, m, a = [], d = [], p;
|
|
3250
3250
|
const h = r.state.value[e];
|
|
3251
3251
|
!s && !h && (process.env.NODE_ENV === "production" || !i) && (r.state.value[e] = {});
|
|
3252
|
-
const y =
|
|
3252
|
+
const y = ae({});
|
|
3253
3253
|
let T;
|
|
3254
3254
|
function v(ee) {
|
|
3255
|
-
let
|
|
3256
|
-
c = m = !1, process.env.NODE_ENV !== "production" && (p = []), typeof ee == "function" ? (ee(r.state.value[e]),
|
|
3255
|
+
let J;
|
|
3256
|
+
c = m = !1, process.env.NODE_ENV !== "production" && (p = []), typeof ee == "function" ? (ee(r.state.value[e]), J = {
|
|
3257
3257
|
type: Pn.patchFunction,
|
|
3258
3258
|
storeId: e,
|
|
3259
3259
|
events: p
|
|
3260
|
-
}) : (js(r.state.value[e], ee),
|
|
3260
|
+
}) : (js(r.state.value[e], ee), J = {
|
|
3261
3261
|
type: Pn.patchObject,
|
|
3262
3262
|
payload: ee,
|
|
3263
3263
|
storeId: e,
|
|
@@ -3266,10 +3266,10 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3266
3266
|
const re = T = Symbol();
|
|
3267
3267
|
Bi().then(() => {
|
|
3268
3268
|
T === re && (c = !0);
|
|
3269
|
-
}), m = !0, qr(a,
|
|
3269
|
+
}), m = !0, qr(a, J, r.state.value[e]);
|
|
3270
3270
|
}
|
|
3271
|
-
const
|
|
3272
|
-
const { state:
|
|
3271
|
+
const O = s ? function() {
|
|
3272
|
+
const { state: J } = n, re = J ? J() : {};
|
|
3273
3273
|
this.$patch((ne) => {
|
|
3274
3274
|
nn(ne, re);
|
|
3275
3275
|
});
|
|
@@ -3282,7 +3282,7 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3282
3282
|
function N() {
|
|
3283
3283
|
o.stop(), a = [], d = [], r._s.delete(e);
|
|
3284
3284
|
}
|
|
3285
|
-
function U(ee,
|
|
3285
|
+
function U(ee, J) {
|
|
3286
3286
|
return function() {
|
|
3287
3287
|
Vi(r);
|
|
3288
3288
|
const re = Array.from(arguments), ne = [], X = [];
|
|
@@ -3301,7 +3301,7 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3301
3301
|
});
|
|
3302
3302
|
let rt;
|
|
3303
3303
|
try {
|
|
3304
|
-
rt =
|
|
3304
|
+
rt = J.apply(this && this.$id === e ? this : P, re);
|
|
3305
3305
|
} catch (ze) {
|
|
3306
3306
|
throw qr(X, ze), ze;
|
|
3307
3307
|
}
|
|
@@ -3319,15 +3319,15 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3319
3319
|
$id: e,
|
|
3320
3320
|
$onAction: Gl.bind(null, d),
|
|
3321
3321
|
$patch: v,
|
|
3322
|
-
$reset:
|
|
3323
|
-
$subscribe(ee,
|
|
3324
|
-
const re = Gl(a, ee,
|
|
3325
|
-
(
|
|
3322
|
+
$reset: O,
|
|
3323
|
+
$subscribe(ee, J = {}) {
|
|
3324
|
+
const re = Gl(a, ee, J.detached, () => ne()), ne = o.run(() => sn(() => r.state.value[e], (X) => {
|
|
3325
|
+
(J.flush === "sync" ? m : c) && ee({
|
|
3326
3326
|
storeId: e,
|
|
3327
3327
|
type: Pn.direct,
|
|
3328
3328
|
events: p
|
|
3329
3329
|
}, X);
|
|
3330
|
-
}, nn({}, u,
|
|
3330
|
+
}, nn({}, u, J)));
|
|
3331
3331
|
return re;
|
|
3332
3332
|
},
|
|
3333
3333
|
$dispose: N
|
|
@@ -3342,57 +3342,57 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3342
3342
|
// setupStore
|
|
3343
3343
|
) : j);
|
|
3344
3344
|
r._s.set(e, P);
|
|
3345
|
-
const
|
|
3346
|
-
for (const ee in
|
|
3347
|
-
const
|
|
3348
|
-
if (Fi(
|
|
3349
|
-
process.env.NODE_ENV !== "production" && i ? co(y.value, ee, hs(
|
|
3350
|
-
else if (typeof
|
|
3351
|
-
const re = process.env.NODE_ENV !== "production" && i ?
|
|
3352
|
-
|
|
3345
|
+
const Y = (r._a && r._a.runWithContext || cy)(() => r._e.run(() => (o = Qc()).run(t)));
|
|
3346
|
+
for (const ee in Y) {
|
|
3347
|
+
const J = Y[ee];
|
|
3348
|
+
if (Fi(J) && !Wl(J) || ca(J))
|
|
3349
|
+
process.env.NODE_ENV !== "production" && i ? co(y.value, ee, hs(Y, ee)) : s || (h && dy(J) && (Fi(J) ? J.value = h[ee] : js(J, h[ee])), r.state.value[e][ee] = J), process.env.NODE_ENV !== "production" && V.state.push(ee);
|
|
3350
|
+
else if (typeof J == "function") {
|
|
3351
|
+
const re = process.env.NODE_ENV !== "production" && i ? J : U(ee, J);
|
|
3352
|
+
Y[ee] = re, process.env.NODE_ENV !== "production" && (V.actions[ee] = J), l.actions[ee] = J;
|
|
3353
3353
|
} else
|
|
3354
|
-
process.env.NODE_ENV !== "production" && Wl(
|
|
3354
|
+
process.env.NODE_ENV !== "production" && Wl(J) && (V.getters[ee] = s ? (
|
|
3355
3355
|
// @ts-expect-error
|
|
3356
3356
|
n.getters[ee]
|
|
3357
|
-
) :
|
|
3358
|
-
(
|
|
3357
|
+
) : J, Xo && (Y._getters || // @ts-expect-error: same
|
|
3358
|
+
(Y._getters = Or([]))).push(ee));
|
|
3359
3359
|
}
|
|
3360
|
-
if (nn(P,
|
|
3360
|
+
if (nn(P, Y), nn(zo(P), Y), Object.defineProperty(P, "$state", {
|
|
3361
3361
|
get: () => process.env.NODE_ENV !== "production" && i ? y.value : r.state.value[e],
|
|
3362
3362
|
set: (ee) => {
|
|
3363
3363
|
if (process.env.NODE_ENV !== "production" && i)
|
|
3364
3364
|
throw new Error("cannot set hotState");
|
|
3365
|
-
v((
|
|
3366
|
-
nn(
|
|
3365
|
+
v((J) => {
|
|
3366
|
+
nn(J, ee);
|
|
3367
3367
|
});
|
|
3368
3368
|
}
|
|
3369
3369
|
}), process.env.NODE_ENV !== "production" && (P._hotUpdate = Or((ee) => {
|
|
3370
|
-
P._hotUpdating = !0, ee._hmrPayload.state.forEach((
|
|
3371
|
-
if (
|
|
3372
|
-
const re = ee.$state[
|
|
3373
|
-
typeof re == "object" && xr(re) && xr(ne) ? hd(re, ne) : ee.$state[
|
|
3370
|
+
P._hotUpdating = !0, ee._hmrPayload.state.forEach((J) => {
|
|
3371
|
+
if (J in P.$state) {
|
|
3372
|
+
const re = ee.$state[J], ne = P.$state[J];
|
|
3373
|
+
typeof re == "object" && xr(re) && xr(ne) ? hd(re, ne) : ee.$state[J] = ne;
|
|
3374
3374
|
}
|
|
3375
|
-
co(P,
|
|
3376
|
-
}), Object.keys(P.$state).forEach((
|
|
3377
|
-
|
|
3375
|
+
co(P, J, hs(ee.$state, J));
|
|
3376
|
+
}), Object.keys(P.$state).forEach((J) => {
|
|
3377
|
+
J in ee.$state || gs(P, J);
|
|
3378
3378
|
}), c = !1, m = !1, r.state.value[e] = hs(ee._hmrPayload, "hotState"), m = !0, Bi().then(() => {
|
|
3379
3379
|
c = !0;
|
|
3380
3380
|
});
|
|
3381
|
-
for (const
|
|
3382
|
-
const re = ee[
|
|
3383
|
-
co(P,
|
|
3381
|
+
for (const J in ee._hmrPayload.actions) {
|
|
3382
|
+
const re = ee[J];
|
|
3383
|
+
co(P, J, U(J, re));
|
|
3384
3384
|
}
|
|
3385
|
-
for (const
|
|
3386
|
-
const re = ee._hmrPayload.getters[
|
|
3385
|
+
for (const J in ee._hmrPayload.getters) {
|
|
3386
|
+
const re = ee._hmrPayload.getters[J], ne = s ? (
|
|
3387
3387
|
// special handling of options api
|
|
3388
3388
|
R(() => (Vi(r), re.call(P, P)))
|
|
3389
3389
|
) : re;
|
|
3390
|
-
co(P,
|
|
3390
|
+
co(P, J, ne);
|
|
3391
3391
|
}
|
|
3392
|
-
Object.keys(P._hmrPayload.getters).forEach((
|
|
3393
|
-
|
|
3394
|
-
}), Object.keys(P._hmrPayload.actions).forEach((
|
|
3395
|
-
|
|
3392
|
+
Object.keys(P._hmrPayload.getters).forEach((J) => {
|
|
3393
|
+
J in ee._hmrPayload.getters || gs(P, J);
|
|
3394
|
+
}), Object.keys(P._hmrPayload.actions).forEach((J) => {
|
|
3395
|
+
J in ee._hmrPayload.actions || gs(P, J);
|
|
3396
3396
|
}), P._hmrPayload = ee._hmrPayload, P._getters = ee._getters, P._hotUpdating = !1;
|
|
3397
3397
|
})), Pi) {
|
|
3398
3398
|
const ee = {
|
|
@@ -3401,19 +3401,19 @@ function Ds(e, t, n = {}, r, i, s) {
|
|
|
3401
3401
|
// avoid warning on devtools trying to display this property
|
|
3402
3402
|
enumerable: !1
|
|
3403
3403
|
};
|
|
3404
|
-
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
|
3405
|
-
Object.defineProperty(P,
|
|
3404
|
+
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((J) => {
|
|
3405
|
+
Object.defineProperty(P, J, nn({ value: P[J] }, ee));
|
|
3406
3406
|
});
|
|
3407
3407
|
}
|
|
3408
3408
|
return r._p.forEach((ee) => {
|
|
3409
3409
|
if (Pi) {
|
|
3410
|
-
const
|
|
3410
|
+
const J = o.run(() => ee({
|
|
3411
3411
|
store: P,
|
|
3412
3412
|
app: r._a,
|
|
3413
3413
|
pinia: r,
|
|
3414
3414
|
options: l
|
|
3415
3415
|
}));
|
|
3416
|
-
Object.keys(
|
|
3416
|
+
Object.keys(J || {}).forEach((re) => P._customProperties.add(re)), nn(P, J);
|
|
3417
3417
|
} else
|
|
3418
3418
|
nn(P, o.run(() => ee({
|
|
3419
3419
|
store: P,
|
|
@@ -3995,7 +3995,7 @@ var xn = {};
|
|
|
3995
3995
|
}
|
|
3996
3996
|
if (!d || typeof d.canPlayType != "function")
|
|
3997
3997
|
return a;
|
|
3998
|
-
var p = d.canPlayType("audio/mpeg;").replace(/^no$/, ""), h = a._navigator ? a._navigator.userAgent : "", y = h.match(/OPR\/(\d+)/g), T = y && parseInt(y[0].split("/")[1], 10) < 33, v = h.indexOf("Safari") !== -1 && h.indexOf("Chrome") === -1,
|
|
3998
|
+
var p = d.canPlayType("audio/mpeg;").replace(/^no$/, ""), h = a._navigator ? a._navigator.userAgent : "", y = h.match(/OPR\/(\d+)/g), T = y && parseInt(y[0].split("/")[1], 10) < 33, v = h.indexOf("Safari") !== -1 && h.indexOf("Chrome") === -1, O = h.match(/Version\/(.*?) /), N = v && O && parseInt(O[1], 10) < 15;
|
|
3999
3999
|
return a._codecs = {
|
|
4000
4000
|
mp3: !!(!T && (p || d.canPlayType("audio/mp3;").replace(/^no$/, ""))),
|
|
4001
4001
|
mpeg: !!p,
|
|
@@ -4036,8 +4036,8 @@ var xn = {};
|
|
|
4036
4036
|
for (var y = 0; y < a._howls.length; y++)
|
|
4037
4037
|
if (!a._howls[y]._webAudio)
|
|
4038
4038
|
for (var T = a._howls[y]._getSoundIds(), v = 0; v < T.length; v++) {
|
|
4039
|
-
var
|
|
4040
|
-
|
|
4039
|
+
var O = a._howls[y]._soundById(T[v]);
|
|
4040
|
+
O && O._node && !O._node._unlocked && (O._node._unlocked = !0, O._node.load());
|
|
4041
4041
|
}
|
|
4042
4042
|
a._autoResume();
|
|
4043
4043
|
var N = a.ctx.createBufferSource();
|
|
@@ -4195,13 +4195,13 @@ var xn = {};
|
|
|
4195
4195
|
return null;
|
|
4196
4196
|
if (h && !a && (a = v._sprite || "__default"), p._state !== "loaded") {
|
|
4197
4197
|
v._sprite = a, v._ended = !1;
|
|
4198
|
-
var
|
|
4198
|
+
var O = v._id;
|
|
4199
4199
|
return p._queue.push({
|
|
4200
4200
|
event: "play",
|
|
4201
4201
|
action: function() {
|
|
4202
|
-
p.play(
|
|
4202
|
+
p.play(O);
|
|
4203
4203
|
}
|
|
4204
|
-
}),
|
|
4204
|
+
}), O;
|
|
4205
4205
|
}
|
|
4206
4206
|
if (h && !v._paused)
|
|
4207
4207
|
return d || p._loadQueue("play"), v._id;
|
|
@@ -4215,46 +4215,46 @@ var xn = {};
|
|
|
4215
4215
|
p._ended(v);
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
|
-
var
|
|
4218
|
+
var Y = v._node;
|
|
4219
4219
|
if (p._webAudio) {
|
|
4220
4220
|
var ee = function() {
|
|
4221
4221
|
p._playLock = !1, K(), p._refreshBuffer(v);
|
|
4222
4222
|
var X = v._muted || p._muted ? 0 : v._volume;
|
|
4223
|
-
|
|
4223
|
+
Y.gain.setValueAtTime(X, n.ctx.currentTime), v._playStart = n.ctx.currentTime, typeof Y.bufferSource.start > "u" ? v._loop ? Y.bufferSource.noteGrainOn(0, N, 86400) : Y.bufferSource.noteGrainOn(0, N, U) : v._loop ? Y.bufferSource.start(0, N, 86400) : Y.bufferSource.start(0, N, U), V !== 1 / 0 && (p._endTimers[v._id] = setTimeout(p._ended.bind(p, v), V)), d || setTimeout(function() {
|
|
4224
4224
|
p._emit("play", v._id), p._loadQueue();
|
|
4225
4225
|
}, 0);
|
|
4226
4226
|
};
|
|
4227
4227
|
n.state === "running" && n.ctx.state !== "interrupted" ? ee() : (p._playLock = !0, p.once("resume", ee), p._clearTimer(v._id));
|
|
4228
4228
|
} else {
|
|
4229
|
-
var
|
|
4230
|
-
|
|
4229
|
+
var J = function() {
|
|
4230
|
+
Y.currentTime = N, Y.muted = v._muted || p._muted || n._muted || Y.muted, Y.volume = v._volume * n.volume(), Y.playbackRate = v._rate;
|
|
4231
4231
|
try {
|
|
4232
|
-
var X =
|
|
4232
|
+
var X = Y.play();
|
|
4233
4233
|
if (X && typeof Promise < "u" && (X instanceof Promise || typeof X.then == "function") ? (p._playLock = !0, K(), X.then(function() {
|
|
4234
|
-
p._playLock = !1,
|
|
4234
|
+
p._playLock = !1, Y._unlocked = !0, d ? p._loadQueue() : p._emit("play", v._id);
|
|
4235
4235
|
}).catch(function() {
|
|
4236
4236
|
p._playLock = !1, p._emit("playerror", v._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."), v._ended = !0, v._paused = !0;
|
|
4237
|
-
})) : d || (p._playLock = !1, K(), p._emit("play", v._id)),
|
|
4237
|
+
})) : d || (p._playLock = !1, K(), p._emit("play", v._id)), Y.playbackRate = v._rate, Y.paused) {
|
|
4238
4238
|
p._emit("playerror", v._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
|
|
4239
4239
|
return;
|
|
4240
4240
|
}
|
|
4241
4241
|
a !== "__default" || v._loop ? p._endTimers[v._id] = setTimeout(p._ended.bind(p, v), V) : (p._endTimers[v._id] = function() {
|
|
4242
|
-
p._ended(v),
|
|
4243
|
-
},
|
|
4242
|
+
p._ended(v), Y.removeEventListener("ended", p._endTimers[v._id], !1);
|
|
4243
|
+
}, Y.addEventListener("ended", p._endTimers[v._id], !1));
|
|
4244
4244
|
} catch (fe) {
|
|
4245
4245
|
p._emit("playerror", v._id, fe);
|
|
4246
4246
|
}
|
|
4247
4247
|
};
|
|
4248
|
-
|
|
4249
|
-
var re = window && window.ejecta || !
|
|
4250
|
-
if (
|
|
4251
|
-
|
|
4248
|
+
Y.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (Y.src = p._src, Y.load());
|
|
4249
|
+
var re = window && window.ejecta || !Y.readyState && n._navigator.isCocoonJS;
|
|
4250
|
+
if (Y.readyState >= 3 || re)
|
|
4251
|
+
J();
|
|
4252
4252
|
else {
|
|
4253
4253
|
p._playLock = !0, p._state = "loading";
|
|
4254
4254
|
var ne = function() {
|
|
4255
|
-
p._state = "loaded",
|
|
4255
|
+
p._state = "loaded", J(), Y.removeEventListener(n._canPlayEvent, ne, !1);
|
|
4256
4256
|
};
|
|
4257
|
-
|
|
4257
|
+
Y.addEventListener(n._canPlayEvent, ne, !1), p._clearTimer(v._id);
|
|
4258
4258
|
}
|
|
4259
4259
|
}
|
|
4260
4260
|
return v._id;
|
|
@@ -4362,8 +4362,8 @@ var xn = {};
|
|
|
4362
4362
|
}
|
|
4363
4363
|
}), a;
|
|
4364
4364
|
typeof h > "u" && (a._volume = p), h = a._getSoundIds(h);
|
|
4365
|
-
for (var
|
|
4366
|
-
v = a._soundById(h[
|
|
4365
|
+
for (var O = 0; O < h.length; O++)
|
|
4366
|
+
v = a._soundById(h[O]), v && (v._volume = p, d[2] || a._stopFade(h[O]), a._webAudio && v._node && !v._muted ? v._node.gain.setValueAtTime(p, n.ctx.currentTime) : v._node && !v._muted && (v._node.volume = p * n.volume()), a._emit("volume", v._id));
|
|
4367
4367
|
} else
|
|
4368
4368
|
return v = h ? a._soundById(h) : a._sounds[0], v ? v._volume : 0;
|
|
4369
4369
|
return a;
|
|
@@ -4387,13 +4387,13 @@ var xn = {};
|
|
|
4387
4387
|
}), y;
|
|
4388
4388
|
a = Math.min(Math.max(0, parseFloat(a)), 1), d = Math.min(Math.max(0, parseFloat(d)), 1), p = parseFloat(p), y.volume(a, h);
|
|
4389
4389
|
for (var T = y._getSoundIds(h), v = 0; v < T.length; v++) {
|
|
4390
|
-
var
|
|
4391
|
-
if (
|
|
4392
|
-
if (h || y._stopFade(T[v]), y._webAudio && !
|
|
4390
|
+
var O = y._soundById(T[v]);
|
|
4391
|
+
if (O) {
|
|
4392
|
+
if (h || y._stopFade(T[v]), y._webAudio && !O._muted) {
|
|
4393
4393
|
var N = n.ctx.currentTime, U = N + p / 1e3;
|
|
4394
|
-
|
|
4394
|
+
O._volume = a, O._node.gain.setValueAtTime(a, N), O._node.gain.linearRampToValueAtTime(d, U);
|
|
4395
4395
|
}
|
|
4396
|
-
y._startFadeInterval(
|
|
4396
|
+
y._startFadeInterval(O, a, d, p, T[v], typeof h > "u");
|
|
4397
4397
|
}
|
|
4398
4398
|
}
|
|
4399
4399
|
return y;
|
|
@@ -4408,10 +4408,10 @@ var xn = {};
|
|
|
4408
4408
|
* @param {Boolean} isGroup If true, set the volume on the group.
|
|
4409
4409
|
*/
|
|
4410
4410
|
_startFadeInterval: function(a, d, p, h, y, T) {
|
|
4411
|
-
var v = this,
|
|
4411
|
+
var v = this, O = d, N = p - d, U = Math.abs(N / 0.01), V = Math.max(4, U > 0 ? h / U : h), j = Date.now();
|
|
4412
4412
|
a._fadeTo = p, a._interval = setInterval(function() {
|
|
4413
4413
|
var P = (Date.now() - j) / h;
|
|
4414
|
-
j = Date.now(),
|
|
4414
|
+
j = Date.now(), O += N * P, O = Math.round(O * 100) / 100, N < 0 ? O = Math.max(p, O) : O = Math.min(p, O), v._webAudio ? a._volume = O : v.volume(O, a._id, !0), T && (v._volume = O), (p < d && O <= p || p > d && O >= p) && (clearInterval(a._interval), a._interval = null, a._fadeTo = null, v.volume(p, a._id), v._emit("fade", a._id));
|
|
4415
4415
|
}, V);
|
|
4416
4416
|
},
|
|
4417
4417
|
/**
|
|
@@ -4474,11 +4474,11 @@ var xn = {};
|
|
|
4474
4474
|
}
|
|
4475
4475
|
}), a;
|
|
4476
4476
|
typeof h > "u" && (a._rate = p), h = a._getSoundIds(h);
|
|
4477
|
-
for (var
|
|
4478
|
-
if (v = a._soundById(h[
|
|
4479
|
-
a.playing(h[
|
|
4480
|
-
var N = a.seek(h[
|
|
4481
|
-
(a._endTimers[h[
|
|
4477
|
+
for (var O = 0; O < h.length; O++)
|
|
4478
|
+
if (v = a._soundById(h[O]), v) {
|
|
4479
|
+
a.playing(h[O]) && (v._rateSeek = a.seek(h[O]), v._playStart = a._webAudio ? n.ctx.currentTime : v._playStart), v._rate = p, a._webAudio && v._node && v._node.bufferSource ? v._node.bufferSource.playbackRate.setValueAtTime(p, n.ctx.currentTime) : v._node && (v._node.playbackRate = p);
|
|
4480
|
+
var N = a.seek(h[O]), U = (a._sprite[v._sprite][0] + a._sprite[v._sprite][1]) / 1e3 - N, V = U * 1e3 / Math.abs(v._rate);
|
|
4481
|
+
(a._endTimers[h[O]] || !v._paused) && (a._clearTimer(h[O]), a._endTimers[h[O]] = setTimeout(a._ended.bind(a, v), V)), a._emit("rate", v._id);
|
|
4482
4482
|
}
|
|
4483
4483
|
} else
|
|
4484
4484
|
return v = a._soundById(h), v ? v._rate : a._rate;
|
|
@@ -4513,12 +4513,12 @@ var xn = {};
|
|
|
4513
4513
|
var v = a._soundById(h);
|
|
4514
4514
|
if (v)
|
|
4515
4515
|
if (typeof p == "number" && p >= 0) {
|
|
4516
|
-
var
|
|
4517
|
-
|
|
4516
|
+
var O = a.playing(h);
|
|
4517
|
+
O && a.pause(h, !0), v._seek = p, v._ended = !1, a._clearTimer(h), !a._webAudio && v._node && !isNaN(v._node.duration) && (v._node.currentTime = p);
|
|
4518
4518
|
var N = function() {
|
|
4519
|
-
|
|
4519
|
+
O && a.play(h, !0), a._emit("seek", h);
|
|
4520
4520
|
};
|
|
4521
|
-
if (
|
|
4521
|
+
if (O && !a._webAudio) {
|
|
4522
4522
|
var U = function() {
|
|
4523
4523
|
a._playLock ? setTimeout(U, 0) : N();
|
|
4524
4524
|
};
|
|
@@ -4613,9 +4613,9 @@ var xn = {};
|
|
|
4613
4613
|
else if (a)
|
|
4614
4614
|
h["_on" + a] = [];
|
|
4615
4615
|
else {
|
|
4616
|
-
var
|
|
4617
|
-
for (T = 0; T <
|
|
4618
|
-
|
|
4616
|
+
var O = Object.keys(h);
|
|
4617
|
+
for (T = 0; T < O.length; T++)
|
|
4618
|
+
O[T].indexOf("_on") === 0 && Array.isArray(h[O[T]]) && (h[O[T]] = []);
|
|
4619
4619
|
}
|
|
4620
4620
|
return h;
|
|
4621
4621
|
},
|
|
@@ -6215,17 +6215,17 @@ function pv(e, t) {
|
|
|
6215
6215
|
$e(e, "unexpected end of the stream within a double quoted scalar");
|
|
6216
6216
|
}
|
|
6217
6217
|
function mv(e, t) {
|
|
6218
|
-
var n = !0, r, i, s, o = e.tag, l, u = e.anchor, c, m, a, d, p, h = /* @__PURE__ */ Object.create(null), y, T, v,
|
|
6219
|
-
if (
|
|
6218
|
+
var n = !0, r, i, s, o = e.tag, l, u = e.anchor, c, m, a, d, p, h = /* @__PURE__ */ Object.create(null), y, T, v, O;
|
|
6219
|
+
if (O = e.input.charCodeAt(e.position), O === 91)
|
|
6220
6220
|
m = 93, p = !1, l = [];
|
|
6221
|
-
else if (
|
|
6221
|
+
else if (O === 123)
|
|
6222
6222
|
m = 125, p = !0, l = {};
|
|
6223
6223
|
else
|
|
6224
6224
|
return !1;
|
|
6225
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l),
|
|
6226
|
-
if (Ct(e, !0, t),
|
|
6225
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), O = e.input.charCodeAt(++e.position); O !== 0; ) {
|
|
6226
|
+
if (Ct(e, !0, t), O = e.input.charCodeAt(e.position), O === m)
|
|
6227
6227
|
return e.position++, e.tag = o, e.anchor = u, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
6228
|
-
n ?
|
|
6228
|
+
n ? O === 44 && $e(e, "expected the node content, but found ','") : $e(e, "missed comma between flow collection entries"), T = y = v = null, a = d = !1, O === 63 && (c = e.input.charCodeAt(e.position + 1), Qt(c) && (a = d = !0, e.position++, Ct(e, !0, t))), r = e.line, i = e.lineStart, s = e.position, ci(e, t, xo, !1, !0), T = e.tag, y = e.result, Ct(e, !0, t), O = e.input.charCodeAt(e.position), (d || e.line === r) && O === 58 && (a = !0, O = e.input.charCodeAt(++e.position), Ct(e, !0, t), ci(e, t, xo, !1, !0), v = e.result), p ? Xr(e, l, h, T, y, v, r, i, s) : a ? l.push(Xr(e, null, h, T, y, v, r, i, s)) : l.push(y), Ct(e, !0, t), O = e.input.charCodeAt(e.position), O === 44 ? (n = !0, O = e.input.charCodeAt(++e.position)) : n = !1;
|
|
6229
6229
|
}
|
|
6230
6230
|
$e(e, "unexpected end of the stream within a flow collection");
|
|
6231
6231
|
}
|
|
@@ -6293,20 +6293,20 @@ function ic(e, t) {
|
|
|
6293
6293
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = s, !0) : !1;
|
|
6294
6294
|
}
|
|
6295
6295
|
function yv(e, t, n) {
|
|
6296
|
-
var r, i, s, o, l, u, c = e.tag, m = e.anchor, a = {}, d = /* @__PURE__ */ Object.create(null), p = null, h = null, y = null, T = !1, v = !1,
|
|
6296
|
+
var r, i, s, o, l, u, c = e.tag, m = e.anchor, a = {}, d = /* @__PURE__ */ Object.create(null), p = null, h = null, y = null, T = !1, v = !1, O;
|
|
6297
6297
|
if (e.firstTabInLine !== -1)
|
|
6298
6298
|
return !1;
|
|
6299
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a),
|
|
6300
|
-
if (!T && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $e(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), s = e.line, (
|
|
6301
|
-
|
|
6299
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), O = e.input.charCodeAt(e.position); O !== 0; ) {
|
|
6300
|
+
if (!T && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $e(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), s = e.line, (O === 63 || O === 58) && Qt(r))
|
|
6301
|
+
O === 63 ? (T && (Xr(e, a, d, p, h, null, o, l, u), p = h = y = null), v = !0, T = !0, i = !0) : T ? (T = !1, i = !0) : $e(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, O = r;
|
|
6302
6302
|
else {
|
|
6303
6303
|
if (o = e.line, l = e.lineStart, u = e.position, !ci(e, n, ef, !1, !0))
|
|
6304
6304
|
break;
|
|
6305
6305
|
if (e.line === s) {
|
|
6306
|
-
for (
|
|
6307
|
-
|
|
6308
|
-
if (
|
|
6309
|
-
|
|
6306
|
+
for (O = e.input.charCodeAt(e.position); Ir(O); )
|
|
6307
|
+
O = e.input.charCodeAt(++e.position);
|
|
6308
|
+
if (O === 58)
|
|
6309
|
+
O = e.input.charCodeAt(++e.position), Qt(O) || $e(e, "a whitespace character is expected after the key-value separator within a block mapping"), T && (Xr(e, a, d, p, h, null, o, l, u), p = h = y = null), v = !0, T = !1, i = !1, p = e.tag, h = e.result;
|
|
6310
6310
|
else if (v)
|
|
6311
6311
|
$e(e, "can not read an implicit mapping pair; a colon is missed");
|
|
6312
6312
|
else
|
|
@@ -6316,7 +6316,7 @@ function yv(e, t, n) {
|
|
|
6316
6316
|
else
|
|
6317
6317
|
return e.tag = c, e.anchor = m, !0;
|
|
6318
6318
|
}
|
|
6319
|
-
if ((e.line === s || e.lineIndent > t) && (T && (o = e.line, l = e.lineStart, u = e.position), ci(e, t, No, !0, i) && (T ? h = e.result : y = e.result), T || (Xr(e, a, d, p, h, y, o, l, u), p = h = y = null), Ct(e, !0, -1),
|
|
6319
|
+
if ((e.line === s || e.lineIndent > t) && (T && (o = e.line, l = e.lineStart, u = e.position), ci(e, t, No, !0, i) && (T ? h = e.result : y = e.result), T || (Xr(e, a, d, p, h, y, o, l, u), p = h = y = null), Ct(e, !0, -1), O = e.input.charCodeAt(e.position)), (e.line === s || e.lineIndent > t) && O !== 0)
|
|
6320
6320
|
$e(e, "bad indentation of a mapping entry");
|
|
6321
6321
|
else if (e.lineIndent < t)
|
|
6322
6322
|
break;
|
|
@@ -7333,7 +7333,7 @@ const j_ = /* @__PURE__ */ jn(P_, [["render", L_]]), D_ = "data:image/svg+xml,%3
|
|
|
7333
7333
|
__name: "engine-splash",
|
|
7334
7334
|
emits: ["finished"],
|
|
7335
7335
|
setup(e, { emit: t }) {
|
|
7336
|
-
const n = t, r =
|
|
7336
|
+
const n = t, r = ae("hidden"), i = R(() => ({
|
|
7337
7337
|
transitionDuration: `${m.value}s`
|
|
7338
7338
|
})), s = R(() => ({
|
|
7339
7339
|
invisible: r.value !== "appear"
|
|
@@ -7349,7 +7349,7 @@ const j_ = /* @__PURE__ */ jn(P_, [["render", L_]]), D_ = "data:image/svg+xml,%3
|
|
|
7349
7349
|
), a = R(
|
|
7350
7350
|
() => typeof l.value.timeBeforeFadeout == "number" ? l.value.timeBeforeFadeout : 1.5
|
|
7351
7351
|
);
|
|
7352
|
-
|
|
7352
|
+
ft(async () => {
|
|
7353
7353
|
if (await Ht(10), r.value = "appear", l.value.skip || o.options.debug) {
|
|
7354
7354
|
d();
|
|
7355
7355
|
return;
|
|
@@ -7616,15 +7616,15 @@ function os(e, t = 50, n = {}) {
|
|
|
7616
7616
|
return new Promise((p, h) => {
|
|
7617
7617
|
const y = function() {
|
|
7618
7618
|
if (r = void 0, l = Date.now(), !i) {
|
|
7619
|
-
const
|
|
7620
|
-
s && s(
|
|
7619
|
+
const O = e.apply(d, a);
|
|
7620
|
+
s && s(O), u.forEach(({ resolve: N }) => N(O)), u = [];
|
|
7621
7621
|
}
|
|
7622
7622
|
}, T = i && r === void 0;
|
|
7623
7623
|
r !== void 0 && clearTimeout(r);
|
|
7624
7624
|
const v = c();
|
|
7625
7625
|
if (r = setTimeout(y, v), T) {
|
|
7626
|
-
const
|
|
7627
|
-
return s && s(
|
|
7626
|
+
const O = e.apply(d, a);
|
|
7627
|
+
return s && s(O), p(O);
|
|
7628
7628
|
}
|
|
7629
7629
|
u.push({ resolve: p, reject: h });
|
|
7630
7630
|
});
|
|
@@ -8698,7 +8698,7 @@ const kn = new H_(), Dt = vt("menu", {
|
|
|
8698
8698
|
}, If = /* @__PURE__ */ Se({
|
|
8699
8699
|
__name: "game-splash",
|
|
8700
8700
|
setup(e) {
|
|
8701
|
-
const t =
|
|
8701
|
+
const t = ae(null), n = Oe(), r = R(
|
|
8702
8702
|
() => {
|
|
8703
8703
|
var u;
|
|
8704
8704
|
return ((u = ce().splashScreens) == null ? void 0 : u.gameSplashScreen) ?? {};
|
|
@@ -8709,7 +8709,7 @@ const kn = new H_(), Dt = vt("menu", {
|
|
|
8709
8709
|
function l() {
|
|
8710
8710
|
Zt().goToStartMenuScene();
|
|
8711
8711
|
}
|
|
8712
|
-
return
|
|
8712
|
+
return ft(() => {
|
|
8713
8713
|
t.value = Ve().registerInputListener("game-splash", {
|
|
8714
8714
|
confirm: {
|
|
8715
8715
|
press: () => {
|
|
@@ -8739,13 +8739,13 @@ const kn = new H_(), Dt = vt("menu", {
|
|
|
8739
8739
|
function pr(e) {
|
|
8740
8740
|
if (!e.listener)
|
|
8741
8741
|
return console.warn("No input listener provided for navigation"), null;
|
|
8742
|
-
const t =
|
|
8742
|
+
const t = ae(-1), n = R(
|
|
8743
8743
|
() => e.mode === "grid" ? t.value % e.columns : 0
|
|
8744
|
-
), r =
|
|
8744
|
+
), r = ae([]), i = ae(kn.lastInputMethodUsed), s = ae(null);
|
|
8745
8745
|
function o() {
|
|
8746
|
-
var
|
|
8747
|
-
return (
|
|
8748
|
-
(
|
|
8746
|
+
var Y, ee;
|
|
8747
|
+
return (Y = e.container) != null && Y.value ? e.container.value.children : (ee = e.elements) != null && ee.value ? e.elements.value.filter(
|
|
8748
|
+
(J) => J !== null
|
|
8749
8749
|
) : [];
|
|
8750
8750
|
}
|
|
8751
8751
|
function l() {
|
|
@@ -8754,19 +8754,19 @@ function pr(e) {
|
|
|
8754
8754
|
const u = R(
|
|
8755
8755
|
() => a(t.value)
|
|
8756
8756
|
);
|
|
8757
|
-
function c(
|
|
8758
|
-
return r.value ?
|
|
8757
|
+
function c(Y) {
|
|
8758
|
+
return r.value ? Y >= 0 && Y < r.value.length : !1;
|
|
8759
8759
|
}
|
|
8760
|
-
function m(
|
|
8760
|
+
function m(Y) {
|
|
8761
8761
|
const ee = t.value;
|
|
8762
|
-
if (c(
|
|
8762
|
+
if (c(Y) && (t.value = Y, u.value)) {
|
|
8763
8763
|
i.value === "gamepad" && u.value.classList.add("selected");
|
|
8764
|
-
const
|
|
8765
|
-
|
|
8764
|
+
const J = a(ee);
|
|
8765
|
+
J && ee !== Y && J.classList.remove("selected"), e.onSelected && e.onSelected(Y);
|
|
8766
8766
|
}
|
|
8767
8767
|
}
|
|
8768
|
-
function a(
|
|
8769
|
-
return r.value ? r.value[
|
|
8768
|
+
function a(Y) {
|
|
8769
|
+
return r.value ? r.value[Y] : null;
|
|
8770
8770
|
}
|
|
8771
8771
|
function d() {
|
|
8772
8772
|
r.value && (t.value === 0 ? e.loopForbidden || m(r.value.length - 1) : m(t.value - 1));
|
|
@@ -8777,16 +8777,16 @@ function pr(e) {
|
|
|
8777
8777
|
function h() {
|
|
8778
8778
|
if (!r.value)
|
|
8779
8779
|
return;
|
|
8780
|
-
const
|
|
8781
|
-
!e.loopForbidden && ee <
|
|
8780
|
+
const Y = e, ee = t.value;
|
|
8781
|
+
!e.loopForbidden && ee < Y.columns ? m(r.value.length - 1) : m(
|
|
8782
8782
|
t.value - e.columns
|
|
8783
8783
|
);
|
|
8784
8784
|
}
|
|
8785
8785
|
function y() {
|
|
8786
8786
|
if (!r.value)
|
|
8787
8787
|
return;
|
|
8788
|
-
const
|
|
8789
|
-
!e.loopForbidden && ee >= r.value.length -
|
|
8788
|
+
const Y = e, ee = t.value;
|
|
8789
|
+
!e.loopForbidden && ee >= r.value.length - Y.columns ? m(0) : m(
|
|
8790
8790
|
t.value + e.columns
|
|
8791
8791
|
);
|
|
8792
8792
|
}
|
|
@@ -8796,7 +8796,7 @@ function pr(e) {
|
|
|
8796
8796
|
function v() {
|
|
8797
8797
|
e.mode === "grid" ? y() : e.mode === "list" && p();
|
|
8798
8798
|
}
|
|
8799
|
-
function
|
|
8799
|
+
function O() {
|
|
8800
8800
|
(e.mode === "grid" || e.mode === "list") && d();
|
|
8801
8801
|
}
|
|
8802
8802
|
function N() {
|
|
@@ -8805,7 +8805,7 @@ function pr(e) {
|
|
|
8805
8805
|
function U() {
|
|
8806
8806
|
e.onChosen && e.onChosen(t.value);
|
|
8807
8807
|
}
|
|
8808
|
-
|
|
8808
|
+
ft(() => {
|
|
8809
8809
|
K();
|
|
8810
8810
|
});
|
|
8811
8811
|
function V() {
|
|
@@ -8818,10 +8818,10 @@ function pr(e) {
|
|
|
8818
8818
|
u.value && u.value.classList.remove("selected");
|
|
8819
8819
|
}
|
|
8820
8820
|
function K() {
|
|
8821
|
-
e.listener && (l(), s.value = (
|
|
8822
|
-
i.value =
|
|
8821
|
+
e.listener && (l(), s.value = (Y) => {
|
|
8822
|
+
i.value = Y.detail, Y.detail === "gamepad" ? j() : P();
|
|
8823
8823
|
}, kn.addEventListener("change-input", s.value), e.onlyVertical || (e.listener.actions.left = {
|
|
8824
|
-
press:
|
|
8824
|
+
press: O
|
|
8825
8825
|
}, e.listener.actions.right = {
|
|
8826
8826
|
press: N
|
|
8827
8827
|
}), e.onlyHorizontal || (e.listener.actions.up = {
|
|
@@ -8836,11 +8836,11 @@ function pr(e) {
|
|
|
8836
8836
|
V();
|
|
8837
8837
|
}), sn(
|
|
8838
8838
|
() => {
|
|
8839
|
-
var
|
|
8840
|
-
return (
|
|
8839
|
+
var Y;
|
|
8840
|
+
return (Y = e.elements) == null ? void 0 : Y.value;
|
|
8841
8841
|
},
|
|
8842
|
-
(
|
|
8843
|
-
|
|
8842
|
+
(Y) => {
|
|
8843
|
+
Y && l();
|
|
8844
8844
|
}
|
|
8845
8845
|
), {
|
|
8846
8846
|
selectedIndex: t,
|
|
@@ -8848,7 +8848,7 @@ function pr(e) {
|
|
|
8848
8848
|
currentColumn: n,
|
|
8849
8849
|
buttonDown: v,
|
|
8850
8850
|
buttonUp: T,
|
|
8851
|
-
buttonLeft:
|
|
8851
|
+
buttonLeft: O,
|
|
8852
8852
|
buttonRight: N,
|
|
8853
8853
|
selectUp: h,
|
|
8854
8854
|
selectDown: y,
|
|
@@ -8874,11 +8874,11 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8874
8874
|
emits: ["choice", "cancel"],
|
|
8875
8875
|
setup(e, { expose: t, emit: n }) {
|
|
8876
8876
|
var U;
|
|
8877
|
-
const r = e, i =
|
|
8877
|
+
const r = e, i = ae(null), s = ae(null), o = ae(null);
|
|
8878
8878
|
t({
|
|
8879
8879
|
slotContainer: o
|
|
8880
8880
|
});
|
|
8881
|
-
const l =
|
|
8881
|
+
const l = ae(((U = r.saveSlot.saveData) == null ? void 0 : U.metadata.name) ?? "Empty Save"), u = ae(0), c = R(() => r.saveSlot.saveData !== null), m = R(() => r.saveSlot.saveData), a = R(() => ce().saves.mode), d = R(() => {
|
|
8882
8882
|
const V = r.saveSlot.saveData;
|
|
8883
8883
|
if (V && V.screens.layers[0]) {
|
|
8884
8884
|
const j = oo(V.screens.layers[0]);
|
|
@@ -8904,7 +8904,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8904
8904
|
const P = r.saveSlot.slotNumber;
|
|
8905
8905
|
return P === 0 && ce().saves.mode === "manual" ? "AUTO" : (V >= 10 && P < 10 && (j += "0"), V >= 100 && P < 100 && (j += "0"), j + P);
|
|
8906
8906
|
}
|
|
8907
|
-
function
|
|
8907
|
+
function O() {
|
|
8908
8908
|
i.value = pr({
|
|
8909
8909
|
mode: "list",
|
|
8910
8910
|
container: s,
|
|
@@ -8924,9 +8924,11 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8924
8924
|
return sn(
|
|
8925
8925
|
() => r.selected,
|
|
8926
8926
|
(V, j) => {
|
|
8927
|
-
V && !i.value &&
|
|
8927
|
+
V && !i.value && O(), !V && i.value && N();
|
|
8928
8928
|
}
|
|
8929
|
-
),
|
|
8929
|
+
), ft(() => {
|
|
8930
|
+
r.selected && O();
|
|
8931
|
+
}), gt(() => {
|
|
8930
8932
|
i.value && N();
|
|
8931
8933
|
}), (V, j) => (x(), H("div", {
|
|
8932
8934
|
class: "save-slot flex flex-row",
|
|
@@ -8992,7 +8994,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
8992
8994
|
},
|
|
8993
8995
|
emits: ["choice"],
|
|
8994
8996
|
setup(e, { emit: t }) {
|
|
8995
|
-
const n =
|
|
8997
|
+
const n = ae(
|
|
8996
8998
|
Ve().registerInputListener("yes-no", {
|
|
8997
8999
|
cancel: {
|
|
8998
9000
|
press: () => {
|
|
@@ -9005,7 +9007,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9005
9007
|
}
|
|
9006
9008
|
}
|
|
9007
9009
|
})
|
|
9008
|
-
), r =
|
|
9010
|
+
), r = ae(null);
|
|
9009
9011
|
pr({
|
|
9010
9012
|
mode: "list",
|
|
9011
9013
|
container: r,
|
|
@@ -9018,7 +9020,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9018
9020
|
function o(l) {
|
|
9019
9021
|
l === !0 && i.onConfirm ? i.onConfirm() : l === !1 && i.onRefuse && i.onRefuse(), s("choice", l);
|
|
9020
9022
|
}
|
|
9021
|
-
return
|
|
9023
|
+
return ft(() => {
|
|
9022
9024
|
}), gt(() => {
|
|
9023
9025
|
n.value && Ve().unregisterInputListener(n.value);
|
|
9024
9026
|
}), (l, u) => (x(), _e(fr, {
|
|
@@ -9058,7 +9060,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9058
9060
|
},
|
|
9059
9061
|
emits: ["chosen", "close"],
|
|
9060
9062
|
setup(e, { emit: t }) {
|
|
9061
|
-
const n = e, r =
|
|
9063
|
+
const n = e, r = ae(
|
|
9062
9064
|
Ve().registerInputListener("save-slots", {
|
|
9063
9065
|
cancel: {
|
|
9064
9066
|
press: () => {
|
|
@@ -9066,29 +9068,18 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9066
9068
|
}
|
|
9067
9069
|
}
|
|
9068
9070
|
})
|
|
9069
|
-
), i =
|
|
9070
|
-
se({
|
|
9071
|
-
mode: "list",
|
|
9072
|
-
elements: a,
|
|
9073
|
-
listener: r.value,
|
|
9074
|
-
onlyVertical: !0,
|
|
9075
|
-
noChoosing: !0,
|
|
9076
|
-
onSelected: (Y) => {
|
|
9077
|
-
i.value = Y;
|
|
9078
|
-
}
|
|
9079
|
-
});
|
|
9080
|
-
const p = pr({
|
|
9071
|
+
), i = ae(0), s = Qr([]), o = R(() => s.slice(0, 1)), l = R(() => s.slice(1)), u = ae([]), c = ae([]), m = ae([]), a = ae([]), d = ae([]), p = pr({
|
|
9081
9072
|
mode: "list",
|
|
9082
9073
|
elements: a,
|
|
9083
9074
|
listener: r.value,
|
|
9084
9075
|
onlyVertical: !0,
|
|
9085
9076
|
noChoosing: !0,
|
|
9086
|
-
onSelected: (
|
|
9087
|
-
i.value =
|
|
9077
|
+
onSelected: (J) => {
|
|
9078
|
+
i.value = J;
|
|
9088
9079
|
}
|
|
9089
9080
|
}), h = R(() => {
|
|
9090
|
-
const
|
|
9091
|
-
return d.value.length <
|
|
9081
|
+
const J = i.value;
|
|
9082
|
+
return d.value.length < J + 1 ? null : d.value[J].id;
|
|
9092
9083
|
}), y = Qr(
|
|
9093
9084
|
n.mode === "load" ? ["Load", "Delete"] : ["Choose"]
|
|
9094
9085
|
), T = R(() => ce().saves.mode), v = Qr({
|
|
@@ -9100,14 +9091,14 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9100
9091
|
onRefuse: () => {
|
|
9101
9092
|
v.saveToDelete = null;
|
|
9102
9093
|
}
|
|
9103
|
-
}),
|
|
9094
|
+
}), O = Qr({
|
|
9104
9095
|
prompt: "Are you sure you want to overwrite this save file?",
|
|
9105
9096
|
saveToOverwrite: null,
|
|
9106
9097
|
onConfirm: () => {
|
|
9107
|
-
V(
|
|
9098
|
+
V(O.saveToOverwrite), O.saveToOverwrite = null;
|
|
9108
9099
|
},
|
|
9109
9100
|
onRefuse: () => {
|
|
9110
|
-
|
|
9101
|
+
O.saveToOverwrite = null;
|
|
9111
9102
|
}
|
|
9112
9103
|
}), N = t;
|
|
9113
9104
|
Yc(() => {
|
|
@@ -9120,53 +9111,53 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9120
9111
|
...c.value.map((re) => re.slotContainer),
|
|
9121
9112
|
...m.value.map((re) => re.slotContainer)
|
|
9122
9113
|
] : u.value.map((re) => re.slotContainer);
|
|
9123
|
-
const
|
|
9124
|
-
d.value =
|
|
9114
|
+
const J = T.value === "manual" ? [...o.value, ...l.value] : s;
|
|
9115
|
+
d.value = J.map((re) => ({
|
|
9125
9116
|
id: re.id
|
|
9126
9117
|
}));
|
|
9127
9118
|
}
|
|
9128
|
-
|
|
9119
|
+
ft(() => {
|
|
9129
9120
|
U();
|
|
9130
9121
|
}), gt(() => {
|
|
9131
9122
|
p.value && (p.value.disable(), p.value = null), r.value && Ve().unregisterInputListener(r.value);
|
|
9132
9123
|
});
|
|
9133
|
-
function V(
|
|
9124
|
+
function V(J) {
|
|
9134
9125
|
N("chosen", {
|
|
9135
|
-
slotId:
|
|
9126
|
+
slotId: J
|
|
9136
9127
|
});
|
|
9137
9128
|
}
|
|
9138
|
-
function j(
|
|
9139
|
-
const re = ee(
|
|
9129
|
+
function j(J) {
|
|
9130
|
+
const re = ee(J);
|
|
9140
9131
|
if (re) {
|
|
9141
9132
|
if (ce().saves.mode === "manual" && re.slotType === "auto") {
|
|
9142
9133
|
Oe().alert("Sorry", "Can't delete the auto save slot!");
|
|
9143
9134
|
return;
|
|
9144
9135
|
}
|
|
9145
|
-
v.saveToDelete =
|
|
9136
|
+
v.saveToDelete = J;
|
|
9146
9137
|
}
|
|
9147
9138
|
}
|
|
9148
|
-
function P(
|
|
9149
|
-
xy(
|
|
9150
|
-
const re = s.find((ne) => ne.id ===
|
|
9139
|
+
function P(J) {
|
|
9140
|
+
xy(J);
|
|
9141
|
+
const re = s.find((ne) => ne.id === J);
|
|
9151
9142
|
re && (re.saveData = null), U();
|
|
9152
9143
|
}
|
|
9153
9144
|
function K() {
|
|
9154
9145
|
N("close");
|
|
9155
9146
|
}
|
|
9156
|
-
function J
|
|
9147
|
+
function Y(J, re) {
|
|
9157
9148
|
const ne = y[re];
|
|
9158
|
-
ne === "Load" ? V(
|
|
9149
|
+
ne === "Load" ? V(J) : ne === "Delete" ? j(J) : ne === "Choose" && (O.saveToOverwrite = J);
|
|
9159
9150
|
}
|
|
9160
|
-
function ee(
|
|
9161
|
-
return s.find((re) => re.id ===
|
|
9151
|
+
function ee(J) {
|
|
9152
|
+
return s.find((re) => re.id === J);
|
|
9162
9153
|
}
|
|
9163
|
-
return (
|
|
9154
|
+
return (J, re) => (x(), _e(fr, {
|
|
9164
9155
|
onClose: K,
|
|
9165
9156
|
containerCssClass: "save-modal",
|
|
9166
9157
|
cantClose: !1
|
|
9167
9158
|
}, {
|
|
9168
9159
|
header: Je(() => [
|
|
9169
|
-
M("h3", ab, pe(
|
|
9160
|
+
M("h3", ab, pe(J.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
|
|
9170
9161
|
]),
|
|
9171
9162
|
body: Je(() => [
|
|
9172
9163
|
T.value === "manual" ? (x(), H("div", lb, [
|
|
@@ -9182,7 +9173,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9182
9173
|
saveSlot: ne,
|
|
9183
9174
|
id: ne.id,
|
|
9184
9175
|
actions: y,
|
|
9185
|
-
onChoice: (X) =>
|
|
9176
|
+
onChoice: (X) => Y(ne.id, X),
|
|
9186
9177
|
inputListener: r.value,
|
|
9187
9178
|
selected: h.value === ne.id,
|
|
9188
9179
|
ref_for: !0,
|
|
@@ -9205,7 +9196,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9205
9196
|
saveSlot: ne,
|
|
9206
9197
|
id: ne.id,
|
|
9207
9198
|
actions: y,
|
|
9208
|
-
onChoice: (X) =>
|
|
9199
|
+
onChoice: (X) => Y(ne.id, X),
|
|
9209
9200
|
inputListener: r.value,
|
|
9210
9201
|
selected: h.value === ne.id,
|
|
9211
9202
|
ref_for: !0,
|
|
@@ -9229,7 +9220,7 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9229
9220
|
saveSlot: ne,
|
|
9230
9221
|
id: ne.id,
|
|
9231
9222
|
actions: y,
|
|
9232
|
-
onChoice: (X) =>
|
|
9223
|
+
onChoice: (X) => Y(ne.id, X),
|
|
9233
9224
|
selected: h.value === ne.id,
|
|
9234
9225
|
inputListener: r.value,
|
|
9235
9226
|
ref_for: !0,
|
|
@@ -9247,11 +9238,11 @@ const Y_ = { class: "used-save-slot flex flex-row justify-between items-center g
|
|
|
9247
9238
|
onRefuse: v.onRefuse,
|
|
9248
9239
|
onConfirm: v.onConfirm
|
|
9249
9240
|
}, null, 8, ["prompt", "onRefuse", "onConfirm"])) : ve("", !0),
|
|
9250
|
-
|
|
9241
|
+
O.saveToOverwrite ? (x(), _e(Ro, {
|
|
9251
9242
|
key: 3,
|
|
9252
|
-
prompt:
|
|
9253
|
-
onRefuse:
|
|
9254
|
-
onConfirm:
|
|
9243
|
+
prompt: O.prompt,
|
|
9244
|
+
onRefuse: O.onRefuse,
|
|
9245
|
+
onConfirm: O.onConfirm
|
|
9255
9246
|
}, null, 8, ["prompt", "onRefuse", "onConfirm"])) : ve("", !0)
|
|
9256
9247
|
]),
|
|
9257
9248
|
_: 1
|
|
@@ -9343,9 +9334,9 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9343
9334
|
}, Sb = { id: "game-title-container" }, wb = { id: "game-title-text" }, kb = { class: "nrt-title" }, $b = /* @__PURE__ */ Se({
|
|
9344
9335
|
__name: "StartMenu",
|
|
9345
9336
|
setup(e) {
|
|
9346
|
-
const t =
|
|
9337
|
+
const t = ae(
|
|
9347
9338
|
Ve().registerInputListener("start-menu", {})
|
|
9348
|
-
), n =
|
|
9339
|
+
), n = ae([]), r = ae(null), i = ae(!1), s = ae(!1), o = ae(null), l = ae(null), u = ae(!1), c = ae(!1), m = ae(null), a = Ea(), d = ae(!1), p = ae(null), h = R(() => a.buttons), y = pr({
|
|
9349
9340
|
mode: "list",
|
|
9350
9341
|
onlyVertical: !0,
|
|
9351
9342
|
container: r,
|
|
@@ -9374,9 +9365,9 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9374
9365
|
}
|
|
9375
9366
|
}
|
|
9376
9367
|
async function v() {
|
|
9377
|
-
i.value && ce().saves.mode === "manual" && !ce().saves.disabled ? c.value = !0 :
|
|
9368
|
+
i.value && ce().saves.mode === "manual" && !ce().saves.disabled ? c.value = !0 : O();
|
|
9378
9369
|
}
|
|
9379
|
-
async function
|
|
9370
|
+
async function O() {
|
|
9380
9371
|
if (l.value === null)
|
|
9381
9372
|
if (ce().saves.mode === "manual") {
|
|
9382
9373
|
const ne = _a();
|
|
@@ -9423,14 +9414,14 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9423
9414
|
function K() {
|
|
9424
9415
|
u.value = !0;
|
|
9425
9416
|
}
|
|
9426
|
-
function
|
|
9417
|
+
function Y({ slotId: ne }) {
|
|
9427
9418
|
const X = Ni(ne);
|
|
9428
9419
|
X && X.saveData ? (l.value = ne, j()) : v();
|
|
9429
9420
|
}
|
|
9430
|
-
|
|
9421
|
+
ft(() => {
|
|
9431
9422
|
const ne = Dn();
|
|
9432
9423
|
ne.slots.some((X) => X.saveData) && (i.value = !0), (ce().saves.mode === "manual" || ne.slots.some((X) => !X.saveData)) && (s.value = !0), ne.lastSaveSlot && Ni(ne.lastSaveSlot) && (o.value = ne.lastSaveSlot), ee(), m.value = _n.on("debouncedKeydown", (X) => {
|
|
9433
|
-
X.key === " " &&
|
|
9424
|
+
X.key === " " && O(), X.key === "c" && P();
|
|
9434
9425
|
}), Bi(() => {
|
|
9435
9426
|
y.select(0);
|
|
9436
9427
|
}), an().options.defaultMusic && (p.value = Hy(an().options.defaultMusic)), Me.callHook("onStartScreenMounted");
|
|
@@ -9438,19 +9429,19 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9438
9429
|
function ee() {
|
|
9439
9430
|
const ne = ce().saves.disabled;
|
|
9440
9431
|
o.value && !ne && n.value.push(
|
|
9441
|
-
|
|
9432
|
+
J({
|
|
9442
9433
|
id: "continue",
|
|
9443
9434
|
title: "Continue",
|
|
9444
9435
|
cssClass: "continue-button"
|
|
9445
9436
|
})
|
|
9446
9437
|
), s.value && n.value.push(
|
|
9447
|
-
|
|
9438
|
+
J({
|
|
9448
9439
|
id: "new-game",
|
|
9449
9440
|
title: "New Game",
|
|
9450
9441
|
cssClass: "start-button"
|
|
9451
9442
|
})
|
|
9452
9443
|
), i.value && !ne && n.value.push(
|
|
9453
|
-
|
|
9444
|
+
J({
|
|
9454
9445
|
id: "load-game",
|
|
9455
9446
|
title: "Load Game",
|
|
9456
9447
|
cssClass: "continue-button"
|
|
@@ -9463,14 +9454,14 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9463
9454
|
cssClass: `${X.id}-start-menu-button`
|
|
9464
9455
|
});
|
|
9465
9456
|
n.value.push(
|
|
9466
|
-
|
|
9457
|
+
J({
|
|
9467
9458
|
id: "exit",
|
|
9468
9459
|
title: "Exit",
|
|
9469
9460
|
cssClass: "exit-button"
|
|
9470
9461
|
})
|
|
9471
9462
|
);
|
|
9472
9463
|
}
|
|
9473
|
-
function
|
|
9464
|
+
function J({
|
|
9474
9465
|
id: ne,
|
|
9475
9466
|
title: X,
|
|
9476
9467
|
cssClass: fe
|
|
@@ -9497,13 +9488,13 @@ const bb = { id: "game-menu" }, Tb = {
|
|
|
9497
9488
|
u.value ? (x(), _e(Ef, {
|
|
9498
9489
|
key: 0,
|
|
9499
9490
|
mode: "load",
|
|
9500
|
-
onChosen:
|
|
9491
|
+
onChosen: Y,
|
|
9501
9492
|
onClose: X[0] || (X[0] = (fe) => u.value = !1)
|
|
9502
9493
|
})) : ve("", !0),
|
|
9503
9494
|
c.value ? (x(), _e(Ro, {
|
|
9504
9495
|
key: 1,
|
|
9505
9496
|
prompt: "This will override your previous autosave, are you sure?",
|
|
9506
|
-
onConfirm:
|
|
9497
|
+
onConfirm: O,
|
|
9507
9498
|
onRefuse: V
|
|
9508
9499
|
})) : ve("", !0),
|
|
9509
9500
|
M("div", Tb, [
|
|
@@ -9734,16 +9725,16 @@ const Rb = {
|
|
|
9734
9725
|
index: {}
|
|
9735
9726
|
},
|
|
9736
9727
|
setup(e, { expose: t }) {
|
|
9737
|
-
const n =
|
|
9728
|
+
const n = ae(null), r = ae(""), i = ae(!1), s = ae(null), o = ae(null), l = ae(!1), u = ae(null), c = ae(null), m = ae(null), a = ae(null), d = ae(null), p = e, h = ae(null);
|
|
9738
9729
|
p.active && (h.value = pr({
|
|
9739
9730
|
mode: "list",
|
|
9740
9731
|
container: n,
|
|
9741
9732
|
listener: p.inputListener,
|
|
9742
9733
|
onlyVertical: !0,
|
|
9743
9734
|
onChosen: (B) => {
|
|
9744
|
-
te.value && F.value ? V(F.value[B]) :
|
|
9735
|
+
te.value && F.value ? V(F.value[B]) : O(" ");
|
|
9745
9736
|
}
|
|
9746
|
-
})),
|
|
9737
|
+
})), ft(() => {
|
|
9747
9738
|
fe(), l.value = !0;
|
|
9748
9739
|
}), gt(() => {
|
|
9749
9740
|
y(), re(), lt({ unmounted: !0 });
|
|
@@ -9755,9 +9746,9 @@ const Rb = {
|
|
|
9755
9746
|
h.value && (h.value.disable(), h.value = null);
|
|
9756
9747
|
}
|
|
9757
9748
|
function v(B) {
|
|
9758
|
-
|
|
9749
|
+
O(B.key);
|
|
9759
9750
|
}
|
|
9760
|
-
function
|
|
9751
|
+
function O(B) {
|
|
9761
9752
|
if (!te.value) {
|
|
9762
9753
|
l.value && o && B === " " && lt({ pressedSpace: !0 });
|
|
9763
9754
|
return;
|
|
@@ -9826,7 +9817,7 @@ const Rb = {
|
|
|
9826
9817
|
}
|
|
9827
9818
|
return wd(ge, me);
|
|
9828
9819
|
}
|
|
9829
|
-
function
|
|
9820
|
+
function Y(B) {
|
|
9830
9821
|
const Z = {};
|
|
9831
9822
|
if (B.allowed || (Z["strike-anim"] = !0), B.seenBefore && (Z["seen-before"] = !0), B.flag) {
|
|
9832
9823
|
const ge = Bc(B.flag);
|
|
@@ -9838,7 +9829,7 @@ const Rb = {
|
|
|
9838
9829
|
const B = r.value;
|
|
9839
9830
|
re(), Oe().playerAnswered(B);
|
|
9840
9831
|
}
|
|
9841
|
-
function
|
|
9832
|
+
function J() {
|
|
9842
9833
|
p.options.textField && (Ve().startTyping(), s.value = setTimeout(() => {
|
|
9843
9834
|
te.value && (d.value = Ve().registerInputListener(
|
|
9844
9835
|
"text-field-input-grabber",
|
|
@@ -9916,7 +9907,7 @@ const Rb = {
|
|
|
9916
9907
|
unmounted: B,
|
|
9917
9908
|
pressedSpace: Z
|
|
9918
9909
|
} = {}) {
|
|
9919
|
-
Pe().endTextAnimation(), B ||
|
|
9910
|
+
Pe().endTextAnimation(), B || J(), setTimeout(() => {
|
|
9920
9911
|
h.value && h.value.select(0);
|
|
9921
9912
|
}, 10), o.value && (o.value.timer && clearInterval(o.value.timer), o.value = null), u.value && !Z && clearTimeout(u.value), c.value && clearTimeout(c.value), m.value && clearTimeout(m.value), !B && !Z && Ye().playMode !== "normal" && C && (m.value = setTimeout(
|
|
9922
9913
|
() => {
|
|
@@ -9982,7 +9973,7 @@ const Rb = {
|
|
|
9982
9973
|
(x(!0), H(Ge, null, et(F.value, (me, Ae) => (x(), H("p", {
|
|
9983
9974
|
key: Ae,
|
|
9984
9975
|
style: Ze(P(me)),
|
|
9985
|
-
class: He([
|
|
9976
|
+
class: He([Y(me), "dialog-choice override"]),
|
|
9986
9977
|
onClick: (Ie) => V(me),
|
|
9987
9978
|
innerHTML: K(Ae, me)
|
|
9988
9979
|
}, null, 14, Kb))), 128))
|
|
@@ -10089,7 +10080,7 @@ function Pa(e) {
|
|
|
10089
10080
|
// Right stick horizontal axis
|
|
10090
10081
|
},
|
|
10091
10082
|
inputListener: o
|
|
10092
|
-
} = e, l =
|
|
10083
|
+
} = e, l = ae(!1);
|
|
10093
10084
|
let u = null;
|
|
10094
10085
|
function c(p) {
|
|
10095
10086
|
if (!t.value)
|
|
@@ -10128,7 +10119,7 @@ function Pa(e) {
|
|
|
10128
10119
|
function d() {
|
|
10129
10120
|
u && (clearInterval(u), u = null), l.value = !1;
|
|
10130
10121
|
}
|
|
10131
|
-
return
|
|
10122
|
+
return ft(() => {
|
|
10132
10123
|
a(), o && (o.actions.scroll = {
|
|
10133
10124
|
press: () => {
|
|
10134
10125
|
},
|
|
@@ -10139,13 +10130,13 @@ function Pa(e) {
|
|
|
10139
10130
|
}), {
|
|
10140
10131
|
isScrolling: l,
|
|
10141
10132
|
scrollContainer: c,
|
|
10142
|
-
container:
|
|
10133
|
+
container: ae(t)
|
|
10143
10134
|
};
|
|
10144
10135
|
}
|
|
10145
10136
|
const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", { class: "anchor" }, null, -1), Rf = /* @__PURE__ */ Se({
|
|
10146
10137
|
__name: "game-dialog",
|
|
10147
10138
|
setup(e) {
|
|
10148
|
-
const t = R(() => St().layoutMode), n = R(() => Ve().inGameInputListener), r =
|
|
10139
|
+
const t = R(() => St().layoutMode), n = R(() => Ve().inGameInputListener), r = ae(Oe().inScript), i = ae(null), s = St(), o = Pe(), l = R(() => o.stack), u = Ye(), c = R(() => u.dialog), m = ae(null), a = ae(null), d = ae(null), p = ae(null);
|
|
10149
10140
|
Pa({
|
|
10150
10141
|
container: m,
|
|
10151
10142
|
scrollSpeed: 40,
|
|
@@ -10169,17 +10160,17 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10169
10160
|
}), v = R(() => {
|
|
10170
10161
|
if (y.value)
|
|
10171
10162
|
return y.value.pose;
|
|
10172
|
-
}),
|
|
10163
|
+
}), O = R(() => {
|
|
10173
10164
|
if (y.value) {
|
|
10174
10165
|
const X = T.value;
|
|
10175
10166
|
let fe = v.value;
|
|
10176
10167
|
return X ? (fe || (fe = "idle"), fe) : void 0;
|
|
10177
10168
|
}
|
|
10178
10169
|
}), N = R(() => {
|
|
10179
|
-
if (!
|
|
10170
|
+
if (!O.value)
|
|
10180
10171
|
return;
|
|
10181
10172
|
const X = T.value;
|
|
10182
|
-
return Cb(X,
|
|
10173
|
+
return Cb(X, O.value);
|
|
10183
10174
|
}), U = R(() => {
|
|
10184
10175
|
const X = N.value;
|
|
10185
10176
|
if (Ob(X))
|
|
@@ -10193,7 +10184,7 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10193
10184
|
X ? r.value = !0 : Ye().playMode !== "normal" ? (Ye().playMode === "skip" && (Ye().playMode = "normal"), i.value = setTimeout(() => {
|
|
10194
10185
|
r.value = !1;
|
|
10195
10186
|
}, 500)) : r.value = !1;
|
|
10196
|
-
}),
|
|
10187
|
+
}), ft(() => {
|
|
10197
10188
|
if (n.value) {
|
|
10198
10189
|
const fe = n.value;
|
|
10199
10190
|
fe.actions.autoPlay = {
|
|
@@ -10231,13 +10222,13 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10231
10222
|
transformOrigin: "right"
|
|
10232
10223
|
};
|
|
10233
10224
|
});
|
|
10234
|
-
function
|
|
10225
|
+
function Y() {
|
|
10235
10226
|
Ye().toggleAutoPlay();
|
|
10236
10227
|
}
|
|
10237
10228
|
function ee() {
|
|
10238
10229
|
Ye().toggleSkip();
|
|
10239
10230
|
}
|
|
10240
|
-
function
|
|
10231
|
+
function J() {
|
|
10241
10232
|
Ye().toggleHistory();
|
|
10242
10233
|
}
|
|
10243
10234
|
function re(X, fe) {
|
|
@@ -10317,7 +10308,7 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10317
10308
|
M("div", Zb, [
|
|
10318
10309
|
M("div", {
|
|
10319
10310
|
class: "nrt-button menu-toggle-button auto-button auto",
|
|
10320
|
-
onClick:
|
|
10311
|
+
onClick: Y
|
|
10321
10312
|
}, [
|
|
10322
10313
|
yn(" Auto "),
|
|
10323
10314
|
Xe(zi, { input: "autoPlay" })
|
|
@@ -10332,7 +10323,7 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10332
10323
|
Be(ce)().dialogPanel.allowHistoryToggling !== !1 ? (x(), H("div", {
|
|
10333
10324
|
key: 0,
|
|
10334
10325
|
class: "nrt-button menu-toggle-button auto-button toggle-history",
|
|
10335
|
-
onClick:
|
|
10326
|
+
onClick: J
|
|
10336
10327
|
}, " Toggle History ")) : ve("", !0)
|
|
10337
10328
|
])
|
|
10338
10329
|
])),
|
|
@@ -10391,7 +10382,7 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10391
10382
|
},
|
|
10392
10383
|
emits: ["tab-change", "close"],
|
|
10393
10384
|
setup(e, { emit: t }) {
|
|
10394
|
-
const n =
|
|
10385
|
+
const n = ae(
|
|
10395
10386
|
Ve().registerInputListener("tabs-controller", {
|
|
10396
10387
|
cancel: {
|
|
10397
10388
|
press: () => {
|
|
@@ -10419,7 +10410,7 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10419
10410
|
}
|
|
10420
10411
|
}
|
|
10421
10412
|
})
|
|
10422
|
-
), r = t, i = e, s =
|
|
10413
|
+
), r = t, i = e, s = ae(i.defaultTab);
|
|
10423
10414
|
function o(u) {
|
|
10424
10415
|
s.value = u, r("tab-change", u);
|
|
10425
10416
|
}
|
|
@@ -10448,8 +10439,8 @@ const Zb = { class: "auto-skip-buttons flex" }, eT = /* @__PURE__ */ M("div", {
|
|
|
10448
10439
|
}), dT = { class: "menu-container menu-toggle" }, fT = ["onClick", "id"], pT = { class: "nrt-title" }, Ff = /* @__PURE__ */ Se({
|
|
10449
10440
|
__name: "menu-buttons",
|
|
10450
10441
|
setup(e) {
|
|
10451
|
-
const t = Dt(), n =
|
|
10452
|
-
|
|
10442
|
+
const t = Dt(), n = ae(null);
|
|
10443
|
+
ft(() => {
|
|
10453
10444
|
Me.callHook("onGameMounted");
|
|
10454
10445
|
}), gt(() => {
|
|
10455
10446
|
n.value && _n.off("keydown", n.value), Me.callHook("onGameUnmounted");
|
|
@@ -10715,16 +10706,16 @@ const vT = ["id"], _T = ["innerHTML"], bT = /* @__PURE__ */ Se({
|
|
|
10715
10706
|
id: `viewport-layer-background-${u.value}`,
|
|
10716
10707
|
style: Ze(h.value)
|
|
10717
10708
|
}, null, 12, CT)),
|
|
10718
|
-
(x(!0), H(Ge, null, et(a.value, (
|
|
10719
|
-
key:
|
|
10720
|
-
id:
|
|
10709
|
+
(x(!0), H(Ge, null, et(a.value, (O) => (x(), _e(ST, {
|
|
10710
|
+
key: O,
|
|
10711
|
+
id: O,
|
|
10721
10712
|
layerSelected: i.value,
|
|
10722
10713
|
transitioning: T.transitioning,
|
|
10723
10714
|
activeInteractive: T.activeInteractive
|
|
10724
10715
|
}, null, 8, ["id", "layerSelected", "transitioning", "activeInteractive"]))), 128)),
|
|
10725
|
-
(x(!0), H(Ge, null, et(s.value, (
|
|
10726
|
-
key:
|
|
10727
|
-
screenObject:
|
|
10716
|
+
(x(!0), H(Ge, null, et(s.value, (O) => (x(), _e(bT, {
|
|
10717
|
+
key: O.id,
|
|
10718
|
+
screenObject: O,
|
|
10728
10719
|
transitioning: T.transitioning,
|
|
10729
10720
|
layerSelected: i.value,
|
|
10730
10721
|
activeInteractive: T.activeInteractive
|
|
@@ -10747,13 +10738,13 @@ const vT = ["id"], _T = ["innerHTML"], bT = /* @__PURE__ */ Se({
|
|
|
10747
10738
|
emits: ["complete"],
|
|
10748
10739
|
setup(e, { emit: t }) {
|
|
10749
10740
|
Am();
|
|
10750
|
-
const n = t, r = e, i =
|
|
10741
|
+
const n = t, r = e, i = ae("start"), s = Qr({
|
|
10751
10742
|
oldSlotClasses: {},
|
|
10752
10743
|
oldSlotStyle: {},
|
|
10753
10744
|
newSlotClasses: {},
|
|
10754
10745
|
newSlotStyle: {}
|
|
10755
10746
|
});
|
|
10756
|
-
return
|
|
10747
|
+
return ft(async () => {
|
|
10757
10748
|
const o = `narrat-transition-${r.name}`;
|
|
10758
10749
|
s.newSlotClasses = {
|
|
10759
10750
|
[`${o}-enter-from`]: !0
|
|
@@ -10787,23 +10778,23 @@ function yc(e, t, n) {
|
|
|
10787
10778
|
const Uf = /* @__PURE__ */ Se({
|
|
10788
10779
|
__name: "screens",
|
|
10789
10780
|
setup(e) {
|
|
10790
|
-
const t = R(() => Ve().inGameInputListener), n = Oe(), r = vn(), i = ln(), s =
|
|
10781
|
+
const t = R(() => Ve().inGameInputListener), n = Oe(), r = vn(), i = ln(), s = ae(0), o = R(() => r.nonEmptyLayers), l = R(() => {
|
|
10791
10782
|
const y = [];
|
|
10792
|
-
return o.value.reduce((T, v,
|
|
10783
|
+
return o.value.reduce((T, v, O) => {
|
|
10793
10784
|
const U = oo(v.screen).buttons;
|
|
10794
10785
|
if (U)
|
|
10795
10786
|
for (const j of U)
|
|
10796
10787
|
r.isButtonClickable(j) && T.push({
|
|
10797
10788
|
id: j,
|
|
10798
10789
|
type: "button",
|
|
10799
|
-
layer:
|
|
10790
|
+
layer: O
|
|
10800
10791
|
});
|
|
10801
|
-
const V = i.tree.filter((j) => j.layer ===
|
|
10792
|
+
const V = i.tree.filter((j) => j.layer === O);
|
|
10802
10793
|
for (const j of V)
|
|
10803
10794
|
i.isScreenObjectClickable(j) && T.push({
|
|
10804
10795
|
id: j.id,
|
|
10805
10796
|
type: "screenObject",
|
|
10806
|
-
layer:
|
|
10797
|
+
layer: O
|
|
10807
10798
|
});
|
|
10808
10799
|
return T;
|
|
10809
10800
|
}, y);
|
|
@@ -10823,7 +10814,7 @@ const Uf = /* @__PURE__ */ Se({
|
|
|
10823
10814
|
width: `${y}px`
|
|
10824
10815
|
};
|
|
10825
10816
|
}), h = R(() => l.value.length > 0);
|
|
10826
|
-
return
|
|
10817
|
+
return ft(() => {
|
|
10827
10818
|
Bi(() => {
|
|
10828
10819
|
if (t.value) {
|
|
10829
10820
|
const y = t.value.actions;
|
|
@@ -10869,7 +10860,7 @@ const Uf = /* @__PURE__ */ Se({
|
|
|
10869
10860
|
id: "narrat-viewport",
|
|
10870
10861
|
style: Ze(p.value)
|
|
10871
10862
|
}, [
|
|
10872
|
-
(x(!0), H(Ge, null, et(o.value, (v,
|
|
10863
|
+
(x(!0), H(Ge, null, et(o.value, (v, O) => (x(), H("div", {
|
|
10873
10864
|
key: v.screen ?? "",
|
|
10874
10865
|
class: "layer-container"
|
|
10875
10866
|
}, [
|
|
@@ -10878,13 +10869,13 @@ const Uf = /* @__PURE__ */ Se({
|
|
|
10878
10869
|
name: v.transition.transition,
|
|
10879
10870
|
duration: v.transition.duration,
|
|
10880
10871
|
delay: v.transition.delay,
|
|
10881
|
-
onComplete: () => d(
|
|
10872
|
+
onComplete: () => d(O)
|
|
10882
10873
|
}, {
|
|
10883
10874
|
oldElement: Je(() => [
|
|
10884
10875
|
v.transition.oldScreen ? (x(), _e(ws, {
|
|
10885
10876
|
key: 0,
|
|
10886
10877
|
layer: v.transition.oldScreen,
|
|
10887
|
-
layerIndex:
|
|
10878
|
+
layerIndex: O,
|
|
10888
10879
|
transitioning: !0
|
|
10889
10880
|
}, null, 8, ["layer", "layerIndex"])) : ve("", !0)
|
|
10890
10881
|
]),
|
|
@@ -10892,7 +10883,7 @@ const Uf = /* @__PURE__ */ Se({
|
|
|
10892
10883
|
v.screen ? (x(), _e(ws, {
|
|
10893
10884
|
key: 0,
|
|
10894
10885
|
layer: v.screen,
|
|
10895
|
-
layerIndex:
|
|
10886
|
+
layerIndex: O,
|
|
10896
10887
|
transitioning: !0
|
|
10897
10888
|
}, null, 8, ["layer", "layerIndex"])) : ve("", !0)
|
|
10898
10889
|
]),
|
|
@@ -10900,7 +10891,7 @@ const Uf = /* @__PURE__ */ Se({
|
|
|
10900
10891
|
}, 1032, ["name", "duration", "delay", "onComplete"])) : v.screen ? (x(), _e(ws, {
|
|
10901
10892
|
key: 1,
|
|
10902
10893
|
layer: v.screen,
|
|
10903
|
-
layerIndex:
|
|
10894
|
+
layerIndex: O,
|
|
10904
10895
|
transitioning: !1,
|
|
10905
10896
|
activeInteractive: u.value
|
|
10906
10897
|
}, null, 8, ["layer", "layerIndex", "activeInteractive"])) : ve("", !0)
|
|
@@ -11026,7 +11017,7 @@ function xT(e, t, n, r, i, s) {
|
|
|
11026
11017
|
const Vf = /* @__PURE__ */ jn(AT, [["render", xT]]), qf = /* @__PURE__ */ Se({
|
|
11027
11018
|
__name: "in-game",
|
|
11028
11019
|
setup(e) {
|
|
11029
|
-
const t = Ve(), n = R(() => t.inGameInputListener), r = Oe(), i = St(), s = R(() => i.layoutMode), o = R(() => r.saving), l =
|
|
11020
|
+
const t = Ve(), n = R(() => t.inGameInputListener), r = Oe(), i = St(), s = R(() => i.layoutMode), o = R(() => r.saving), l = ae(null), u = Ye(), c = ae(null), m = R(
|
|
11030
11021
|
() => o.value && !o.value.withPrompt || o.value && l.value
|
|
11031
11022
|
), a = R(() => {
|
|
11032
11023
|
let y = "row";
|
|
@@ -11049,7 +11040,7 @@ const Vf = /* @__PURE__ */ jn(AT, [["render", xT]]), qf = /* @__PURE__ */ Se({
|
|
|
11049
11040
|
}
|
|
11050
11041
|
return Yc(() => {
|
|
11051
11042
|
t.createInGameInputListener();
|
|
11052
|
-
}),
|
|
11043
|
+
}), ft(() => {
|
|
11053
11044
|
c.value = _n.on("debouncedKeydown", (y) => {
|
|
11054
11045
|
Oe().debugMode || ((y.key === "a" || y.key === "A") && u.toggleAutoPlay(), (y.key === "s" || y.key === "S") && u.toggleSkip());
|
|
11055
11046
|
});
|
|
@@ -11083,11 +11074,11 @@ const Vf = /* @__PURE__ */ jn(AT, [["render", xT]]), qf = /* @__PURE__ */ Se({
|
|
|
11083
11074
|
options: {}
|
|
11084
11075
|
},
|
|
11085
11076
|
setup(e) {
|
|
11086
|
-
const t = e, n =
|
|
11077
|
+
const t = e, n = ae(null);
|
|
11087
11078
|
function r() {
|
|
11088
11079
|
n.value = null, Zt().changeScene($n.Playing), Pe().jumpToLabel(t.options.next_label);
|
|
11089
11080
|
}
|
|
11090
|
-
return
|
|
11081
|
+
return ft(() => {
|
|
11091
11082
|
n.value = setTimeout(r, t.options.duration ?? 2e3);
|
|
11092
11083
|
}), gt(() => {
|
|
11093
11084
|
n.value && (clearTimeout(n.value), n.value = null);
|
|
@@ -12158,10 +12149,10 @@ var Hs = { exports: {} }, op = {}, hn = {}, ui = {}, Zi = {}, qe = {}, Qi = {};
|
|
|
12158
12149
|
}
|
|
12159
12150
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
12160
12151
|
class n extends t {
|
|
12161
|
-
constructor(
|
|
12162
|
-
if (super(), !e.IDENTIFIER.test(
|
|
12152
|
+
constructor(O) {
|
|
12153
|
+
if (super(), !e.IDENTIFIER.test(O))
|
|
12163
12154
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
12164
|
-
this.str =
|
|
12155
|
+
this.str = O;
|
|
12165
12156
|
}
|
|
12166
12157
|
toString() {
|
|
12167
12158
|
return this.str;
|
|
@@ -12175,8 +12166,8 @@ var Hs = { exports: {} }, op = {}, hn = {}, ui = {}, Zi = {}, qe = {}, Qi = {};
|
|
|
12175
12166
|
}
|
|
12176
12167
|
e.Name = n;
|
|
12177
12168
|
class r extends t {
|
|
12178
|
-
constructor(
|
|
12179
|
-
super(), this._items = typeof
|
|
12169
|
+
constructor(O) {
|
|
12170
|
+
super(), this._items = typeof O == "string" ? [O] : O;
|
|
12180
12171
|
}
|
|
12181
12172
|
toString() {
|
|
12182
12173
|
return this.str;
|
|
@@ -12184,66 +12175,66 @@ var Hs = { exports: {} }, op = {}, hn = {}, ui = {}, Zi = {}, qe = {}, Qi = {};
|
|
|
12184
12175
|
emptyStr() {
|
|
12185
12176
|
if (this._items.length > 1)
|
|
12186
12177
|
return !1;
|
|
12187
|
-
const
|
|
12188
|
-
return
|
|
12178
|
+
const O = this._items[0];
|
|
12179
|
+
return O === "" || O === '""';
|
|
12189
12180
|
}
|
|
12190
12181
|
get str() {
|
|
12191
|
-
var
|
|
12192
|
-
return (
|
|
12182
|
+
var O;
|
|
12183
|
+
return (O = this._str) !== null && O !== void 0 ? O : this._str = this._items.reduce((N, U) => `${N}${U}`, "");
|
|
12193
12184
|
}
|
|
12194
12185
|
get names() {
|
|
12195
|
-
var
|
|
12196
|
-
return (
|
|
12186
|
+
var O;
|
|
12187
|
+
return (O = this._names) !== null && O !== void 0 ? O : this._names = this._items.reduce((N, U) => (U instanceof n && (N[U.str] = (N[U.str] || 0) + 1), N), {});
|
|
12197
12188
|
}
|
|
12198
12189
|
}
|
|
12199
12190
|
e._Code = r, e.nil = new r("");
|
|
12200
|
-
function i(v, ...
|
|
12191
|
+
function i(v, ...O) {
|
|
12201
12192
|
const N = [v[0]];
|
|
12202
12193
|
let U = 0;
|
|
12203
|
-
for (; U <
|
|
12204
|
-
l(N,
|
|
12194
|
+
for (; U < O.length; )
|
|
12195
|
+
l(N, O[U]), N.push(v[++U]);
|
|
12205
12196
|
return new r(N);
|
|
12206
12197
|
}
|
|
12207
12198
|
e._ = i;
|
|
12208
12199
|
const s = new r("+");
|
|
12209
|
-
function o(v, ...
|
|
12200
|
+
function o(v, ...O) {
|
|
12210
12201
|
const N = [p(v[0])];
|
|
12211
12202
|
let U = 0;
|
|
12212
|
-
for (; U <
|
|
12213
|
-
N.push(s), l(N,
|
|
12203
|
+
for (; U < O.length; )
|
|
12204
|
+
N.push(s), l(N, O[U]), N.push(s, p(v[++U]));
|
|
12214
12205
|
return u(N), new r(N);
|
|
12215
12206
|
}
|
|
12216
12207
|
e.str = o;
|
|
12217
|
-
function l(v,
|
|
12218
|
-
|
|
12208
|
+
function l(v, O) {
|
|
12209
|
+
O instanceof r ? v.push(...O._items) : O instanceof n ? v.push(O) : v.push(a(O));
|
|
12219
12210
|
}
|
|
12220
12211
|
e.addCodeArg = l;
|
|
12221
12212
|
function u(v) {
|
|
12222
|
-
let
|
|
12223
|
-
for (;
|
|
12224
|
-
if (v[
|
|
12225
|
-
const N = c(v[
|
|
12213
|
+
let O = 1;
|
|
12214
|
+
for (; O < v.length - 1; ) {
|
|
12215
|
+
if (v[O] === s) {
|
|
12216
|
+
const N = c(v[O - 1], v[O + 1]);
|
|
12226
12217
|
if (N !== void 0) {
|
|
12227
|
-
v.splice(
|
|
12218
|
+
v.splice(O - 1, 3, N);
|
|
12228
12219
|
continue;
|
|
12229
12220
|
}
|
|
12230
|
-
v[
|
|
12221
|
+
v[O++] = "+";
|
|
12231
12222
|
}
|
|
12232
|
-
|
|
12223
|
+
O++;
|
|
12233
12224
|
}
|
|
12234
12225
|
}
|
|
12235
|
-
function c(v,
|
|
12236
|
-
if (
|
|
12226
|
+
function c(v, O) {
|
|
12227
|
+
if (O === '""')
|
|
12237
12228
|
return v;
|
|
12238
12229
|
if (v === '""')
|
|
12239
|
-
return
|
|
12230
|
+
return O;
|
|
12240
12231
|
if (typeof v == "string")
|
|
12241
|
-
return
|
|
12242
|
-
if (typeof
|
|
12243
|
-
return `"${v}${
|
|
12232
|
+
return O instanceof n || v[v.length - 1] !== '"' ? void 0 : typeof O != "string" ? `${v.slice(0, -1)}${O}"` : O[0] === '"' ? v.slice(0, -1) + O.slice(1) : void 0;
|
|
12233
|
+
if (typeof O == "string" && O[0] === '"' && !(v instanceof n))
|
|
12234
|
+
return `"${v}${O.slice(1)}`;
|
|
12244
12235
|
}
|
|
12245
|
-
function m(v,
|
|
12246
|
-
return
|
|
12236
|
+
function m(v, O) {
|
|
12237
|
+
return O.emptyStr() ? v : v.emptyStr() ? O : o`${v}${O}`;
|
|
12247
12238
|
}
|
|
12248
12239
|
e.strConcat = m;
|
|
12249
12240
|
function a(v) {
|
|
@@ -12338,9 +12329,9 @@ var Gs = {};
|
|
|
12338
12329
|
const d = this.toName(c), { prefix: p } = d, h = (a = m.key) !== null && a !== void 0 ? a : m.ref;
|
|
12339
12330
|
let y = this._values[p];
|
|
12340
12331
|
if (y) {
|
|
12341
|
-
const
|
|
12342
|
-
if (
|
|
12343
|
-
return
|
|
12332
|
+
const O = y.get(h);
|
|
12333
|
+
if (O)
|
|
12334
|
+
return O;
|
|
12344
12335
|
} else
|
|
12345
12336
|
y = this._values[p] = /* @__PURE__ */ new Map();
|
|
12346
12337
|
y.set(h, d);
|
|
@@ -12377,12 +12368,12 @@ var Gs = {};
|
|
|
12377
12368
|
if (T.has(v))
|
|
12378
12369
|
return;
|
|
12379
12370
|
T.set(v, r.Started);
|
|
12380
|
-
let
|
|
12381
|
-
if (
|
|
12371
|
+
let O = m(v);
|
|
12372
|
+
if (O) {
|
|
12382
12373
|
const N = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
|
|
12383
|
-
p = (0, t._)`${p}${N} ${v} = ${
|
|
12384
|
-
} else if (
|
|
12385
|
-
p = (0, t._)`${p}${
|
|
12374
|
+
p = (0, t._)`${p}${N} ${v} = ${O};${this.opts._n}`;
|
|
12375
|
+
} else if (O = d == null ? void 0 : d(v))
|
|
12376
|
+
p = (0, t._)`${p}${O}${this.opts._n}`;
|
|
12386
12377
|
else
|
|
12387
12378
|
throw new n(v);
|
|
12388
12379
|
T.set(v, r.Completed);
|
|
@@ -12600,10 +12591,10 @@ var Gs = {};
|
|
|
12600
12591
|
}
|
|
12601
12592
|
}
|
|
12602
12593
|
v.kind = "if";
|
|
12603
|
-
class
|
|
12594
|
+
class O extends h {
|
|
12604
12595
|
}
|
|
12605
|
-
|
|
12606
|
-
class N extends
|
|
12596
|
+
O.kind = "for";
|
|
12597
|
+
class N extends O {
|
|
12607
12598
|
constructor(_) {
|
|
12608
12599
|
super(), this.iteration = _;
|
|
12609
12600
|
}
|
|
@@ -12618,7 +12609,7 @@ var Gs = {};
|
|
|
12618
12609
|
return re(super.names, this.iteration.names);
|
|
12619
12610
|
}
|
|
12620
12611
|
}
|
|
12621
|
-
class U extends
|
|
12612
|
+
class U extends O {
|
|
12622
12613
|
constructor(_, b, k, F) {
|
|
12623
12614
|
super(), this.varKind = _, this.name = b, this.from = k, this.to = F;
|
|
12624
12615
|
}
|
|
@@ -12631,7 +12622,7 @@ var Gs = {};
|
|
|
12631
12622
|
return ne(_, this.to);
|
|
12632
12623
|
}
|
|
12633
12624
|
}
|
|
12634
|
-
class V extends
|
|
12625
|
+
class V extends O {
|
|
12635
12626
|
constructor(_, b, k, F) {
|
|
12636
12627
|
super(), this.loop = _, this.varKind = b, this.name = k, this.iterable = F;
|
|
12637
12628
|
}
|
|
@@ -12679,7 +12670,7 @@ var Gs = {};
|
|
|
12679
12670
|
return this.catch && re(_, this.catch.names), this.finally && re(_, this.finally.names), _;
|
|
12680
12671
|
}
|
|
12681
12672
|
}
|
|
12682
|
-
class
|
|
12673
|
+
class Y extends h {
|
|
12683
12674
|
constructor(_) {
|
|
12684
12675
|
super(), this.error = _;
|
|
12685
12676
|
}
|
|
@@ -12687,14 +12678,14 @@ var Gs = {};
|
|
|
12687
12678
|
return `catch(${this.error})` + super.render(_);
|
|
12688
12679
|
}
|
|
12689
12680
|
}
|
|
12690
|
-
|
|
12681
|
+
Y.kind = "catch";
|
|
12691
12682
|
class ee extends h {
|
|
12692
12683
|
render(_) {
|
|
12693
12684
|
return "finally" + super.render(_);
|
|
12694
12685
|
}
|
|
12695
12686
|
}
|
|
12696
12687
|
ee.kind = "finally";
|
|
12697
|
-
class
|
|
12688
|
+
class J {
|
|
12698
12689
|
constructor(_, b = {}) {
|
|
12699
12690
|
this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...b, _n: b.lines ? `
|
|
12700
12691
|
` : "" }, this._extScope = _, this._scope = new n.Scope({ parent: _ }), this._nodes = [new y()];
|
|
@@ -12816,7 +12807,7 @@ var Gs = {};
|
|
|
12816
12807
|
}
|
|
12817
12808
|
// end `for` loop
|
|
12818
12809
|
endFor() {
|
|
12819
|
-
return this._endBlockNode(
|
|
12810
|
+
return this._endBlockNode(O);
|
|
12820
12811
|
}
|
|
12821
12812
|
// `label` statement
|
|
12822
12813
|
label(_) {
|
|
@@ -12840,9 +12831,9 @@ var Gs = {};
|
|
|
12840
12831
|
const F = new K();
|
|
12841
12832
|
if (this._blockNode(F), this.code(_), b) {
|
|
12842
12833
|
const G = this.name("e");
|
|
12843
|
-
this._currNode = F.catch = new
|
|
12834
|
+
this._currNode = F.catch = new Y(G), b(G);
|
|
12844
12835
|
}
|
|
12845
|
-
return k && (this._currNode = F.finally = new ee(), this.code(k)), this._endBlockNode(
|
|
12836
|
+
return k && (this._currNode = F.finally = new ee(), this.code(k)), this._endBlockNode(Y, ee);
|
|
12846
12837
|
}
|
|
12847
12838
|
// `throw` statement
|
|
12848
12839
|
throw(_) {
|
|
@@ -12904,7 +12895,7 @@ var Gs = {};
|
|
|
12904
12895
|
b[b.length - 1] = _;
|
|
12905
12896
|
}
|
|
12906
12897
|
}
|
|
12907
|
-
e.CodeGen =
|
|
12898
|
+
e.CodeGen = J;
|
|
12908
12899
|
function re($, _) {
|
|
12909
12900
|
for (const b in _)
|
|
12910
12901
|
$[b] = ($[b] || 0) + (_[b] || 0);
|
|
@@ -12968,12 +12959,12 @@ var tt = {};
|
|
|
12968
12959
|
}
|
|
12969
12960
|
e.alwaysValidSchema = i;
|
|
12970
12961
|
function s(j, P = j.schema) {
|
|
12971
|
-
const { opts: K, self:
|
|
12962
|
+
const { opts: K, self: Y } = j;
|
|
12972
12963
|
if (!K.strictSchema || typeof P == "boolean")
|
|
12973
12964
|
return;
|
|
12974
|
-
const ee =
|
|
12975
|
-
for (const
|
|
12976
|
-
ee[
|
|
12965
|
+
const ee = Y.RULES.keywords;
|
|
12966
|
+
for (const J in P)
|
|
12967
|
+
ee[J] || V(j, `unknown keyword: "${J}"`);
|
|
12977
12968
|
}
|
|
12978
12969
|
e.checkUnknownRules = s;
|
|
12979
12970
|
function o(j, P) {
|
|
@@ -12994,14 +12985,14 @@ var tt = {};
|
|
|
12994
12985
|
return !1;
|
|
12995
12986
|
}
|
|
12996
12987
|
e.schemaHasRulesButRef = l;
|
|
12997
|
-
function u({ topSchemaRef: j, schemaPath: P }, K,
|
|
12988
|
+
function u({ topSchemaRef: j, schemaPath: P }, K, Y, ee) {
|
|
12998
12989
|
if (!ee) {
|
|
12999
12990
|
if (typeof K == "number" || typeof K == "boolean")
|
|
13000
12991
|
return K;
|
|
13001
12992
|
if (typeof K == "string")
|
|
13002
12993
|
return (0, t._)`${K}`;
|
|
13003
12994
|
}
|
|
13004
|
-
return (0, t._)`${j}${P}${(0, t.getProperty)(
|
|
12995
|
+
return (0, t._)`${j}${P}${(0, t.getProperty)(Y)}`;
|
|
13005
12996
|
}
|
|
13006
12997
|
e.schemaRefOrVal = u;
|
|
13007
12998
|
function c(j) {
|
|
@@ -13028,10 +13019,10 @@ var tt = {};
|
|
|
13028
13019
|
P(j);
|
|
13029
13020
|
}
|
|
13030
13021
|
e.eachItem = p;
|
|
13031
|
-
function h({ mergeNames: j, mergeToName: P, mergeValues: K, resultToName:
|
|
13032
|
-
return (ee,
|
|
13033
|
-
const X = re === void 0 ?
|
|
13034
|
-
return ne === t.Name && !(X instanceof t.Name) ?
|
|
13022
|
+
function h({ mergeNames: j, mergeToName: P, mergeValues: K, resultToName: Y }) {
|
|
13023
|
+
return (ee, J, re, ne) => {
|
|
13024
|
+
const X = re === void 0 ? J : re instanceof t.Name ? (J instanceof t.Name ? j(ee, J, re) : P(ee, J, re), re) : J instanceof t.Name ? (P(ee, re, J), J) : K(J, re);
|
|
13025
|
+
return ne === t.Name && !(X instanceof t.Name) ? Y(ee, X) : X;
|
|
13035
13026
|
};
|
|
13036
13027
|
}
|
|
13037
13028
|
e.mergeEvaluated = {
|
|
@@ -13060,25 +13051,25 @@ var tt = {};
|
|
|
13060
13051
|
}
|
|
13061
13052
|
e.evaluatedPropsToName = y;
|
|
13062
13053
|
function T(j, P, K) {
|
|
13063
|
-
Object.keys(K).forEach((
|
|
13054
|
+
Object.keys(K).forEach((Y) => j.assign((0, t._)`${P}${(0, t.getProperty)(Y)}`, !0));
|
|
13064
13055
|
}
|
|
13065
13056
|
e.setEvaluated = T;
|
|
13066
13057
|
const v = {};
|
|
13067
|
-
function
|
|
13058
|
+
function O(j, P) {
|
|
13068
13059
|
return j.scopeValue("func", {
|
|
13069
13060
|
ref: P,
|
|
13070
13061
|
code: v[P.code] || (v[P.code] = new n._Code(P.code))
|
|
13071
13062
|
});
|
|
13072
13063
|
}
|
|
13073
|
-
e.useFunc =
|
|
13064
|
+
e.useFunc = O;
|
|
13074
13065
|
var N;
|
|
13075
13066
|
(function(j) {
|
|
13076
13067
|
j[j.Num = 0] = "Num", j[j.Str = 1] = "Str";
|
|
13077
13068
|
})(N = e.Type || (e.Type = {}));
|
|
13078
13069
|
function U(j, P, K) {
|
|
13079
13070
|
if (j instanceof t.Name) {
|
|
13080
|
-
const
|
|
13081
|
-
return K ?
|
|
13071
|
+
const Y = P === N.Num;
|
|
13072
|
+
return K ? Y ? (0, t._)`"[" + ${j} + "]"` : (0, t._)`"['" + ${j} + "']"` : Y ? (0, t._)`"/" + ${j}` : (0, t._)`"/" + ${j}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
|
|
13082
13073
|
}
|
|
13083
13074
|
return K ? (0, t.getProperty)(j).toString() : "/" + a(j);
|
|
13084
13075
|
}
|
|
@@ -13126,13 +13117,13 @@ Rn.default = l0;
|
|
|
13126
13117
|
}, e.keyword$DataError = {
|
|
13127
13118
|
message: ({ keyword: T, schemaType: v }) => v ? (0, t.str)`"${T}" keyword must be ${v} ($data)` : (0, t.str)`"${T}" keyword is invalid ($data)`
|
|
13128
13119
|
};
|
|
13129
|
-
function i(T, v = e.keywordError,
|
|
13130
|
-
const { it: U } = T, { gen: V, compositeRule: j, allErrors: P } = U, K = a(T, v,
|
|
13120
|
+
function i(T, v = e.keywordError, O, N) {
|
|
13121
|
+
const { it: U } = T, { gen: V, compositeRule: j, allErrors: P } = U, K = a(T, v, O);
|
|
13131
13122
|
N ?? (j || P) ? u(V, K) : c(U, (0, t._)`[${K}]`);
|
|
13132
13123
|
}
|
|
13133
13124
|
e.reportError = i;
|
|
13134
|
-
function s(T, v = e.keywordError,
|
|
13135
|
-
const { it: N } = T, { gen: U, compositeRule: V, allErrors: j } = N, P = a(T, v,
|
|
13125
|
+
function s(T, v = e.keywordError, O) {
|
|
13126
|
+
const { it: N } = T, { gen: U, compositeRule: V, allErrors: j } = N, P = a(T, v, O);
|
|
13136
13127
|
u(U, P), V || j || c(N, r.default.vErrors);
|
|
13137
13128
|
}
|
|
13138
13129
|
e.reportExtraError = s;
|
|
@@ -13140,22 +13131,22 @@ Rn.default = l0;
|
|
|
13140
13131
|
T.assign(r.default.errors, v), T.if((0, t._)`${r.default.vErrors} !== null`, () => T.if(v, () => T.assign((0, t._)`${r.default.vErrors}.length`, v), () => T.assign(r.default.vErrors, null)));
|
|
13141
13132
|
}
|
|
13142
13133
|
e.resetErrorsCount = o;
|
|
13143
|
-
function l({ gen: T, keyword: v, schemaValue:
|
|
13134
|
+
function l({ gen: T, keyword: v, schemaValue: O, data: N, errsCount: U, it: V }) {
|
|
13144
13135
|
if (U === void 0)
|
|
13145
13136
|
throw new Error("ajv implementation error");
|
|
13146
13137
|
const j = T.name("err");
|
|
13147
13138
|
T.forRange("i", U, r.default.errors, (P) => {
|
|
13148
|
-
T.const(j, (0, t._)`${r.default.vErrors}[${P}]`), T.if((0, t._)`${j}.instancePath === undefined`, () => T.assign((0, t._)`${j}.instancePath`, (0, t.strConcat)(r.default.instancePath, V.errorPath))), T.assign((0, t._)`${j}.schemaPath`, (0, t.str)`${V.errSchemaPath}/${v}`), V.opts.verbose && (T.assign((0, t._)`${j}.schema`,
|
|
13139
|
+
T.const(j, (0, t._)`${r.default.vErrors}[${P}]`), T.if((0, t._)`${j}.instancePath === undefined`, () => T.assign((0, t._)`${j}.instancePath`, (0, t.strConcat)(r.default.instancePath, V.errorPath))), T.assign((0, t._)`${j}.schemaPath`, (0, t.str)`${V.errSchemaPath}/${v}`), V.opts.verbose && (T.assign((0, t._)`${j}.schema`, O), T.assign((0, t._)`${j}.data`, N));
|
|
13149
13140
|
});
|
|
13150
13141
|
}
|
|
13151
13142
|
e.extendErrors = l;
|
|
13152
13143
|
function u(T, v) {
|
|
13153
|
-
const
|
|
13154
|
-
T.if((0, t._)`${r.default.vErrors} === null`, () => T.assign(r.default.vErrors, (0, t._)`[${
|
|
13144
|
+
const O = T.const("err", v);
|
|
13145
|
+
T.if((0, t._)`${r.default.vErrors} === null`, () => T.assign(r.default.vErrors, (0, t._)`[${O}]`), (0, t._)`${r.default.vErrors}.push(${O})`), T.code((0, t._)`${r.default.errors}++`);
|
|
13155
13146
|
}
|
|
13156
13147
|
function c(T, v) {
|
|
13157
|
-
const { gen:
|
|
13158
|
-
U.$async ?
|
|
13148
|
+
const { gen: O, validateName: N, schemaEnv: U } = T;
|
|
13149
|
+
U.$async ? O.throw((0, t._)`new ${T.ValidationError}(${v})`) : (O.assign((0, t._)`${N}.errors`, v), O.return(!1));
|
|
13159
13150
|
}
|
|
13160
13151
|
const m = {
|
|
13161
13152
|
keyword: new t.Name("keyword"),
|
|
@@ -13166,28 +13157,28 @@ Rn.default = l0;
|
|
|
13166
13157
|
schema: new t.Name("schema"),
|
|
13167
13158
|
parentSchema: new t.Name("parentSchema")
|
|
13168
13159
|
};
|
|
13169
|
-
function a(T, v,
|
|
13160
|
+
function a(T, v, O) {
|
|
13170
13161
|
const { createErrors: N } = T.it;
|
|
13171
|
-
return N === !1 ? (0, t._)`{}` : d(T, v,
|
|
13162
|
+
return N === !1 ? (0, t._)`{}` : d(T, v, O);
|
|
13172
13163
|
}
|
|
13173
|
-
function d(T, v,
|
|
13164
|
+
function d(T, v, O = {}) {
|
|
13174
13165
|
const { gen: N, it: U } = T, V = [
|
|
13175
|
-
p(U,
|
|
13176
|
-
h(T,
|
|
13166
|
+
p(U, O),
|
|
13167
|
+
h(T, O)
|
|
13177
13168
|
];
|
|
13178
13169
|
return y(T, v, V), N.object(...V);
|
|
13179
13170
|
}
|
|
13180
13171
|
function p({ errorPath: T }, { instancePath: v }) {
|
|
13181
|
-
const
|
|
13182
|
-
return [r.default.instancePath, (0, t.strConcat)(r.default.instancePath,
|
|
13172
|
+
const O = v ? (0, t.str)`${T}${(0, n.getErrorPath)(v, n.Type.Str)}` : T;
|
|
13173
|
+
return [r.default.instancePath, (0, t.strConcat)(r.default.instancePath, O)];
|
|
13183
13174
|
}
|
|
13184
|
-
function h({ keyword: T, it: { errSchemaPath: v } }, { schemaPath:
|
|
13175
|
+
function h({ keyword: T, it: { errSchemaPath: v } }, { schemaPath: O, parentSchema: N }) {
|
|
13185
13176
|
let U = N ? v : (0, t.str)`${v}/${T}`;
|
|
13186
|
-
return
|
|
13177
|
+
return O && (U = (0, t.str)`${U}${(0, n.getErrorPath)(O, n.Type.Str)}`), [m.schemaPath, U];
|
|
13187
13178
|
}
|
|
13188
|
-
function y(T, { params: v, message:
|
|
13189
|
-
const { keyword: U, data: V, schemaValue: j, it: P } = T, { opts: K, propertyName:
|
|
13190
|
-
N.push([m.keyword, U], [m.params, typeof v == "function" ? v(T) : v || (0, t._)`{}`]), K.messages && N.push([m.message, typeof
|
|
13179
|
+
function y(T, { params: v, message: O }, N) {
|
|
13180
|
+
const { keyword: U, data: V, schemaValue: j, it: P } = T, { opts: K, propertyName: Y, topSchemaRef: ee, schemaPath: J } = P;
|
|
13181
|
+
N.push([m.keyword, U], [m.params, typeof v == "function" ? v(T) : v || (0, t._)`{}`]), K.messages && N.push([m.message, typeof O == "function" ? O(T) : O]), K.verbose && N.push([m.schema, j], [m.parentSchema, (0, t._)`${ee}${J}`], [r.default.data, V]), Y && N.push([m.propertyName, Y]);
|
|
13191
13182
|
}
|
|
13192
13183
|
})(Zi);
|
|
13193
13184
|
Object.defineProperty(ui, "__esModule", { value: !0 });
|
|
@@ -13287,14 +13278,14 @@ Kn.shouldUseRule = lp;
|
|
|
13287
13278
|
}
|
|
13288
13279
|
e.getJSONTypes = u;
|
|
13289
13280
|
function c(N, U) {
|
|
13290
|
-
const { gen: V, data: j, opts: P } = N, K = a(U, P.coerceTypes),
|
|
13291
|
-
if (
|
|
13281
|
+
const { gen: V, data: j, opts: P } = N, K = a(U, P.coerceTypes), Y = U.length > 0 && !(K.length === 0 && U.length === 1 && (0, n.schemaHasRulesForType)(N, U[0]));
|
|
13282
|
+
if (Y) {
|
|
13292
13283
|
const ee = y(U, j, P.strictNumbers, o.Wrong);
|
|
13293
13284
|
V.if(ee, () => {
|
|
13294
13285
|
K.length ? d(N, U, K) : v(N);
|
|
13295
13286
|
});
|
|
13296
13287
|
}
|
|
13297
|
-
return
|
|
13288
|
+
return Y;
|
|
13298
13289
|
}
|
|
13299
13290
|
e.coerceAndCheckDataType = c;
|
|
13300
13291
|
const m = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
@@ -13302,25 +13293,25 @@ Kn.shouldUseRule = lp;
|
|
|
13302
13293
|
return U ? N.filter((V) => m.has(V) || U === "array" && V === "array") : [];
|
|
13303
13294
|
}
|
|
13304
13295
|
function d(N, U, V) {
|
|
13305
|
-
const { gen: j, data: P, opts: K } = N,
|
|
13306
|
-
K.coerceTypes === "array" && j.if((0, i._)`${
|
|
13296
|
+
const { gen: j, data: P, opts: K } = N, Y = j.let("dataType", (0, i._)`typeof ${P}`), ee = j.let("coerced", (0, i._)`undefined`);
|
|
13297
|
+
K.coerceTypes === "array" && j.if((0, i._)`${Y} == 'object' && Array.isArray(${P}) && ${P}.length == 1`, () => j.assign(P, (0, i._)`${P}[0]`).assign(Y, (0, i._)`typeof ${P}`).if(y(U, P, K.strictNumbers), () => j.assign(ee, P))), j.if((0, i._)`${ee} !== undefined`);
|
|
13307
13298
|
for (const re of V)
|
|
13308
|
-
(m.has(re) || re === "array" && K.coerceTypes === "array") &&
|
|
13299
|
+
(m.has(re) || re === "array" && K.coerceTypes === "array") && J(re);
|
|
13309
13300
|
j.else(), v(N), j.endIf(), j.if((0, i._)`${ee} !== undefined`, () => {
|
|
13310
13301
|
j.assign(P, ee), p(N, ee);
|
|
13311
13302
|
});
|
|
13312
|
-
function
|
|
13303
|
+
function J(re) {
|
|
13313
13304
|
switch (re) {
|
|
13314
13305
|
case "string":
|
|
13315
|
-
j.elseIf((0, i._)`${
|
|
13306
|
+
j.elseIf((0, i._)`${Y} == "number" || ${Y} == "boolean"`).assign(ee, (0, i._)`"" + ${P}`).elseIf((0, i._)`${P} === null`).assign(ee, (0, i._)`""`);
|
|
13316
13307
|
return;
|
|
13317
13308
|
case "number":
|
|
13318
|
-
j.elseIf((0, i._)`${
|
|
13319
|
-
|| (${
|
|
13309
|
+
j.elseIf((0, i._)`${Y} == "boolean" || ${P} === null
|
|
13310
|
+
|| (${Y} == "string" && ${P} && ${P} == +${P})`).assign(ee, (0, i._)`+${P}`);
|
|
13320
13311
|
return;
|
|
13321
13312
|
case "integer":
|
|
13322
|
-
j.elseIf((0, i._)`${
|
|
13323
|
-
|| (${
|
|
13313
|
+
j.elseIf((0, i._)`${Y} === "boolean" || ${P} === null
|
|
13314
|
+
|| (${Y} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign(ee, (0, i._)`+${P}`);
|
|
13324
13315
|
return;
|
|
13325
13316
|
case "boolean":
|
|
13326
13317
|
j.elseIf((0, i._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign(ee, !1).elseIf((0, i._)`${P} === "true" || ${P} === 1`).assign(ee, !0);
|
|
@@ -13329,8 +13320,8 @@ Kn.shouldUseRule = lp;
|
|
|
13329
13320
|
j.elseIf((0, i._)`${P} === "" || ${P} === 0 || ${P} === false`), j.assign(ee, null);
|
|
13330
13321
|
return;
|
|
13331
13322
|
case "array":
|
|
13332
|
-
j.elseIf((0, i._)`${
|
|
13333
|
-
|| ${
|
|
13323
|
+
j.elseIf((0, i._)`${Y} === "string" || ${Y} === "number"
|
|
13324
|
+
|| ${Y} === "boolean" || ${P} === null`).assign(ee, (0, i._)`[${P}]`);
|
|
13334
13325
|
}
|
|
13335
13326
|
}
|
|
13336
13327
|
}
|
|
@@ -13350,16 +13341,16 @@ Kn.shouldUseRule = lp;
|
|
|
13350
13341
|
K = (0, i._)`${U} && typeof ${U} == "object" && !Array.isArray(${U})`;
|
|
13351
13342
|
break;
|
|
13352
13343
|
case "integer":
|
|
13353
|
-
K =
|
|
13344
|
+
K = Y((0, i._)`!(${U} % 1) && !isNaN(${U})`);
|
|
13354
13345
|
break;
|
|
13355
13346
|
case "number":
|
|
13356
|
-
K =
|
|
13347
|
+
K = Y();
|
|
13357
13348
|
break;
|
|
13358
13349
|
default:
|
|
13359
13350
|
return (0, i._)`typeof ${U} ${P} ${N}`;
|
|
13360
13351
|
}
|
|
13361
13352
|
return j === o.Correct ? K : (0, i.not)(K);
|
|
13362
|
-
function
|
|
13353
|
+
function Y(ee = i.nil) {
|
|
13363
13354
|
return (0, i.and)((0, i._)`typeof ${U} == "number"`, ee, V ? (0, i._)`isFinite(${U})` : i.nil);
|
|
13364
13355
|
}
|
|
13365
13356
|
}
|
|
@@ -13370,13 +13361,13 @@ Kn.shouldUseRule = lp;
|
|
|
13370
13361
|
let P;
|
|
13371
13362
|
const K = (0, s.toHash)(N);
|
|
13372
13363
|
if (K.array && K.object) {
|
|
13373
|
-
const
|
|
13374
|
-
P = K.null ?
|
|
13364
|
+
const Y = (0, i._)`typeof ${U} != "object"`;
|
|
13365
|
+
P = K.null ? Y : (0, i._)`!${U} || ${Y}`, delete K.null, delete K.array, delete K.object;
|
|
13375
13366
|
} else
|
|
13376
13367
|
P = i.nil;
|
|
13377
13368
|
K.number && delete K.integer;
|
|
13378
|
-
for (const
|
|
13379
|
-
P = (0, i.and)(P, h(
|
|
13369
|
+
for (const Y in K)
|
|
13370
|
+
P = (0, i.and)(P, h(Y, U, V, j));
|
|
13380
13371
|
return P;
|
|
13381
13372
|
}
|
|
13382
13373
|
e.checkDataTypes = y;
|
|
@@ -13385,11 +13376,11 @@ Kn.shouldUseRule = lp;
|
|
|
13385
13376
|
params: ({ schema: N, schemaValue: U }) => typeof N == "string" ? (0, i._)`{type: ${N}}` : (0, i._)`{type: ${U}}`
|
|
13386
13377
|
};
|
|
13387
13378
|
function v(N) {
|
|
13388
|
-
const U =
|
|
13379
|
+
const U = O(N);
|
|
13389
13380
|
(0, r.reportError)(U, T);
|
|
13390
13381
|
}
|
|
13391
13382
|
e.reportTypeError = v;
|
|
13392
|
-
function
|
|
13383
|
+
function O(N) {
|
|
13393
13384
|
const { gen: U, data: V, schema: j } = N, P = (0, s.schemaRefOrVal)(N, j, "type");
|
|
13394
13385
|
return {
|
|
13395
13386
|
gen: U,
|
|
@@ -13568,19 +13559,19 @@ function D0(e, t) {
|
|
|
13568
13559
|
}
|
|
13569
13560
|
function p() {
|
|
13570
13561
|
const v = r.let("ruleErrs", null);
|
|
13571
|
-
return r.try(() => y((0, qt._)`await `), (
|
|
13562
|
+
return r.try(() => y((0, qt._)`await `), (O) => r.assign(a, !1).if((0, qt._)`${O} instanceof ${u.ValidationError}`, () => r.assign(v, (0, qt._)`${O}.errors`), () => r.throw(O))), v;
|
|
13572
13563
|
}
|
|
13573
13564
|
function h() {
|
|
13574
13565
|
const v = (0, qt._)`${m}.errors`;
|
|
13575
13566
|
return r.assign(v, null), y(qt.nil), v;
|
|
13576
13567
|
}
|
|
13577
13568
|
function y(v = t.async ? (0, qt._)`await ` : qt.nil) {
|
|
13578
|
-
const
|
|
13579
|
-
r.assign(a, (0, qt._)`${v}${(0, N0.callValidateCode)(e, m,
|
|
13569
|
+
const O = u.opts.passContext ? wr.default.this : wr.default.self, N = !("compile" in t && !l || t.schema === !1);
|
|
13570
|
+
r.assign(a, (0, qt._)`${v}${(0, N0.callValidateCode)(e, m, O, N)}`, t.modifying);
|
|
13580
13571
|
}
|
|
13581
13572
|
function T(v) {
|
|
13582
|
-
var
|
|
13583
|
-
r.if((0, qt.not)((
|
|
13573
|
+
var O;
|
|
13574
|
+
r.if((0, qt.not)((O = t.valid) !== null && O !== void 0 ? O : a), v);
|
|
13584
13575
|
}
|
|
13585
13576
|
}
|
|
13586
13577
|
An.funcKeywordCode = D0;
|
|
@@ -13864,7 +13855,7 @@ function tS(e, t) {
|
|
|
13864
13855
|
return;
|
|
13865
13856
|
const y = o + d;
|
|
13866
13857
|
let T = s[h];
|
|
13867
|
-
typeof a[n] == "string" && (T = v.call(this, a[n])),
|
|
13858
|
+
typeof a[n] == "string" && (T = v.call(this, a[n])), O.call(this, a.$anchor), O.call(this, a.$dynamicAnchor), s[d] = T;
|
|
13868
13859
|
function v(N) {
|
|
13869
13860
|
const U = this.opts.uriResolver.resolve;
|
|
13870
13861
|
if (N = ni(T ? U(T, N) : N), u.has(N))
|
|
@@ -13873,7 +13864,7 @@ function tS(e, t) {
|
|
|
13873
13864
|
let V = this.refs[N];
|
|
13874
13865
|
return typeof V == "string" && (V = this.refs[V]), typeof V == "object" ? c(a, V.schema, N) : N !== ni(y) && (N[0] === "#" ? (c(a, l[N], N), l[N] = a) : this.refs[N] = y), N;
|
|
13875
13866
|
}
|
|
13876
|
-
function
|
|
13867
|
+
function O(N) {
|
|
13877
13868
|
if (typeof N == "string") {
|
|
13878
13869
|
if (!eS.test(N))
|
|
13879
13870
|
throw new Error(`invalid anchor "${N}"`);
|
|
@@ -14484,11 +14475,11 @@ var Va = {}, zs = { exports: {} };
|
|
|
14484
14475
|
return D;
|
|
14485
14476
|
} else
|
|
14486
14477
|
return Array.from(E);
|
|
14487
|
-
}, h = 2147483647, y = 36, T = 1, v = 26,
|
|
14478
|
+
}, h = 2147483647, y = 36, T = 1, v = 26, O = 38, N = 700, U = 72, V = 128, j = "-", P = /^xn--/, K = /[^\0-\x7E]/, Y = /[\x2E\u3002\uFF0E\uFF61]/g, ee = {
|
|
14488
14479
|
overflow: "Overflow: input needs wider integers to process",
|
|
14489
14480
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
14490
14481
|
"invalid-input": "Invalid input"
|
|
14491
|
-
},
|
|
14482
|
+
}, J = y - T, re = Math.floor, ne = String.fromCharCode;
|
|
14492
14483
|
function X(E) {
|
|
14493
14484
|
throw new RangeError(ee[E]);
|
|
14494
14485
|
}
|
|
@@ -14499,7 +14490,7 @@ var Va = {}, zs = { exports: {} };
|
|
|
14499
14490
|
}
|
|
14500
14491
|
function De(E, I) {
|
|
14501
14492
|
var D = E.split("@"), Q = "";
|
|
14502
|
-
D.length > 1 && (Q = D[0] + "@", E = D[1]), E = E.replace(
|
|
14493
|
+
D.length > 1 && (Q = D[0] + "@", E = D[1]), E = E.replace(Y, ".");
|
|
14503
14494
|
var W = E.split("."), be = fe(W, I).join(".");
|
|
14504
14495
|
return Q + be;
|
|
14505
14496
|
}
|
|
@@ -14525,11 +14516,11 @@ var Va = {}, zs = { exports: {} };
|
|
|
14525
14516
|
for (
|
|
14526
14517
|
I = Q ? re(I / N) : I >> 1, I += re(I / D);
|
|
14527
14518
|
/* no initialization */
|
|
14528
|
-
I >
|
|
14519
|
+
I > J * v >> 1;
|
|
14529
14520
|
W += y
|
|
14530
14521
|
)
|
|
14531
|
-
I = re(I /
|
|
14532
|
-
return re(W + (
|
|
14522
|
+
I = re(I / J);
|
|
14523
|
+
return re(W + (J + 1) * I / (I + O));
|
|
14533
14524
|
}, C = function(I) {
|
|
14534
14525
|
var D = [], Q = I.length, W = 0, be = V, we = U, Ke = I.lastIndexOf(j);
|
|
14535
14526
|
Ke < 0 && (Ke = 0);
|
|
@@ -14753,15 +14744,15 @@ var Va = {}, zs = { exports: {} };
|
|
|
14753
14744
|
return "[" + be + (we ? "%25" + we : "") + "]";
|
|
14754
14745
|
})), (typeof E.port == "number" || typeof E.port == "string") && (Q.push(":"), Q.push(String(E.port))), Q.length ? Q.join("") : void 0;
|
|
14755
14746
|
}
|
|
14756
|
-
var Ie = /^\.\.?\//, Qe = /^\/\.(\/|$)/,
|
|
14747
|
+
var Ie = /^\.\.?\//, Qe = /^\/\.(\/|$)/, pt = /^\/\.\.(\/|$)/, ut = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
14757
14748
|
function xe(E) {
|
|
14758
14749
|
for (var I = []; E.length; )
|
|
14759
14750
|
if (E.match(Ie))
|
|
14760
14751
|
E = E.replace(Ie, "");
|
|
14761
14752
|
else if (E.match(Qe))
|
|
14762
14753
|
E = E.replace(Qe, "/");
|
|
14763
|
-
else if (E.match(
|
|
14764
|
-
E = E.replace(
|
|
14754
|
+
else if (E.match(pt))
|
|
14755
|
+
E = E.replace(pt, "/"), I.pop();
|
|
14765
14756
|
else if (E === "." || E === "..")
|
|
14766
14757
|
E = "";
|
|
14767
14758
|
else {
|
|
@@ -14792,13 +14783,13 @@ var Va = {}, zs = { exports: {} };
|
|
|
14792
14783
|
}
|
|
14793
14784
|
return E.query !== void 0 && (Q.push("?"), Q.push(E.query)), E.fragment !== void 0 && (Q.push("#"), Q.push(E.fragment)), Q.join("");
|
|
14794
14785
|
}
|
|
14795
|
-
function
|
|
14786
|
+
function se(E, I) {
|
|
14796
14787
|
var D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Q = arguments[3], W = {};
|
|
14797
14788
|
return Q || (E = me(z(E, D), D), I = me(z(I, D), D)), D = D || {}, !D.tolerant && I.scheme ? (W.scheme = I.scheme, W.userinfo = I.userinfo, W.host = I.host, W.port = I.port, W.path = xe(I.path || ""), W.query = I.query) : (I.userinfo !== void 0 || I.host !== void 0 || I.port !== void 0 ? (W.userinfo = I.userinfo, W.host = I.host, W.port = I.port, W.path = xe(I.path || ""), W.query = I.query) : (I.path ? (I.path.charAt(0) === "/" ? W.path = xe(I.path) : ((E.userinfo !== void 0 || E.host !== void 0 || E.port !== void 0) && !E.path ? W.path = "/" + I.path : E.path ? W.path = E.path.slice(0, E.path.lastIndexOf("/") + 1) + I.path : W.path = I.path, W.path = xe(W.path)), W.query = I.query) : (W.path = E.path, I.query !== void 0 ? W.query = I.query : W.query = E.query), W.userinfo = E.userinfo, W.host = E.host, W.port = E.port), W.scheme = E.scheme), W.fragment = I.fragment, W;
|
|
14798
14789
|
}
|
|
14799
14790
|
function le(E, I, D) {
|
|
14800
14791
|
var Q = u({ scheme: "null" }, D);
|
|
14801
|
-
return z(
|
|
14792
|
+
return z(se(me(E, Q), me(I, Q), Q, !0), Q);
|
|
14802
14793
|
}
|
|
14803
14794
|
function he(E, I) {
|
|
14804
14795
|
return typeof E == "string" ? E = z(me(E, I), I) : s(E) === "object" && (E = me(z(E, I), I)), E;
|
|
@@ -14933,7 +14924,7 @@ var Va = {}, zs = { exports: {} };
|
|
|
14933
14924
|
var Ke = I, at = I.nss;
|
|
14934
14925
|
return Ke.path = (W || D.nid) + ":" + at, Ke;
|
|
14935
14926
|
}
|
|
14936
|
-
}, bt = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,
|
|
14927
|
+
}, bt = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, A = {
|
|
14937
14928
|
scheme: "urn:uuid",
|
|
14938
14929
|
parse: function(I, D) {
|
|
14939
14930
|
var Q = I;
|
|
@@ -14944,7 +14935,7 @@ var Va = {}, zs = { exports: {} };
|
|
|
14944
14935
|
return Q.nss = (I.uuid || "").toLowerCase(), Q;
|
|
14945
14936
|
}
|
|
14946
14937
|
};
|
|
14947
|
-
F[$t.scheme] = $t, F[Yt.scheme] = Yt, F[Ut.scheme] = Ut, F[hr.scheme] = hr, F[er.scheme] = er, F[Br.scheme] = Br, F[
|
|
14938
|
+
F[$t.scheme] = $t, F[Yt.scheme] = Yt, F[Ut.scheme] = Ut, F[hr.scheme] = hr, F[er.scheme] = er, F[Br.scheme] = Br, F[A.scheme] = A, n.SCHEMES = F, n.pctEncChar = G, n.pctDecChars = ie, n.parse = me, n.removeDotSegments = xe, n.serialize = z, n.resolveComponents = se, n.resolve = le, n.normalize = he, n.equal = Ce, n.escapeComponent = Ne, n.unescapeComponent = Ee, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
14948
14939
|
});
|
|
14949
14940
|
})(zs, zs.exports);
|
|
14950
14941
|
var US = zs.exports;
|
|
@@ -15008,9 +14999,9 @@ Va.default = Ep;
|
|
|
15008
14999
|
ignoreKeywordsWithRef: "",
|
|
15009
15000
|
jsPropertySyntax: "",
|
|
15010
15001
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
15011
|
-
},
|
|
15002
|
+
}, O = 200;
|
|
15012
15003
|
function N(L) {
|
|
15013
|
-
var g, C, $, _, b, k, F, G, ie, te, oe, Le, B, Z, ge, me, Ae, Ie, Qe,
|
|
15004
|
+
var g, C, $, _, b, k, F, G, ie, te, oe, Le, B, Z, ge, me, Ae, Ie, Qe, pt, ut, xe, z, se, le;
|
|
15014
15005
|
const he = L.strict, Ce = (g = L.code) === null || g === void 0 ? void 0 : g.optimize, Ne = Ce === !0 || Ce === void 0 ? 1 : Ce || 0, Ee = ($ = (C = L.code) === null || C === void 0 ? void 0 : C.regExp) !== null && $ !== void 0 ? $ : p, $t = (_ = L.uriResolver) !== null && _ !== void 0 ? _ : d.default;
|
|
15015
15006
|
return {
|
|
15016
15007
|
strictSchema: (k = (b = L.strictSchema) !== null && b !== void 0 ? b : he) !== null && k !== void 0 ? k : !0,
|
|
@@ -15019,16 +15010,16 @@ Va.default = Ep;
|
|
|
15019
15010
|
strictTuples: (Le = (oe = L.strictTuples) !== null && oe !== void 0 ? oe : he) !== null && Le !== void 0 ? Le : "log",
|
|
15020
15011
|
strictRequired: (Z = (B = L.strictRequired) !== null && B !== void 0 ? B : he) !== null && Z !== void 0 ? Z : !1,
|
|
15021
15012
|
code: L.code ? { ...L.code, optimize: Ne, regExp: Ee } : { optimize: Ne, regExp: Ee },
|
|
15022
|
-
loopRequired: (ge = L.loopRequired) !== null && ge !== void 0 ? ge :
|
|
15023
|
-
loopEnum: (me = L.loopEnum) !== null && me !== void 0 ? me :
|
|
15013
|
+
loopRequired: (ge = L.loopRequired) !== null && ge !== void 0 ? ge : O,
|
|
15014
|
+
loopEnum: (me = L.loopEnum) !== null && me !== void 0 ? me : O,
|
|
15024
15015
|
meta: (Ae = L.meta) !== null && Ae !== void 0 ? Ae : !0,
|
|
15025
15016
|
messages: (Ie = L.messages) !== null && Ie !== void 0 ? Ie : !0,
|
|
15026
15017
|
inlineRefs: (Qe = L.inlineRefs) !== null && Qe !== void 0 ? Qe : !0,
|
|
15027
|
-
schemaId: (
|
|
15018
|
+
schemaId: (pt = L.schemaId) !== null && pt !== void 0 ? pt : "$id",
|
|
15028
15019
|
addUsedSchema: (ut = L.addUsedSchema) !== null && ut !== void 0 ? ut : !0,
|
|
15029
15020
|
validateSchema: (xe = L.validateSchema) !== null && xe !== void 0 ? xe : !0,
|
|
15030
15021
|
validateFormats: (z = L.validateFormats) !== null && z !== void 0 ? z : !0,
|
|
15031
|
-
unicodeRegExp: (
|
|
15022
|
+
unicodeRegExp: (se = L.unicodeRegExp) !== null && se !== void 0 ? se : !0,
|
|
15032
15023
|
int32range: (le = L.int32range) !== null && le !== void 0 ? le : !0,
|
|
15033
15024
|
uriResolver: $t
|
|
15034
15025
|
};
|
|
@@ -15039,7 +15030,7 @@ Va.default = Ep;
|
|
|
15039
15030
|
const { es5: C, lines: $ } = this.opts.code;
|
|
15040
15031
|
this.scope = new l.ValueScope({ scope: {}, prefixes: y, es5: C, lines: $ }), this.logger = re(g.logger);
|
|
15041
15032
|
const _ = g.validateFormats;
|
|
15042
|
-
g.validateFormats = !1, this.RULES = (0, s.getRules)(), V.call(this, T, g, "NOT SUPPORTED"), V.call(this, v, g, "DEPRECATED", "warn"), this._metaOpts = ee.call(this), g.formats && K.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), g.keywords &&
|
|
15033
|
+
g.validateFormats = !1, this.RULES = (0, s.getRules)(), V.call(this, T, g, "NOT SUPPORTED"), V.call(this, v, g, "DEPRECATED", "warn"), this._metaOpts = ee.call(this), g.formats && K.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), g.keywords && Y.call(this, g.keywords), typeof g.meta == "object" && this.addMetaSchema(g.meta), P.call(this), g.validateFormats = _;
|
|
15043
15034
|
}
|
|
15044
15035
|
_addVocabularies() {
|
|
15045
15036
|
this.addKeyword("$async");
|
|
@@ -15317,7 +15308,7 @@ Va.default = Ep;
|
|
|
15317
15308
|
g && this.addFormat(L, g);
|
|
15318
15309
|
}
|
|
15319
15310
|
}
|
|
15320
|
-
function
|
|
15311
|
+
function Y(L) {
|
|
15321
15312
|
if (Array.isArray(L)) {
|
|
15322
15313
|
this.addVocabulary(L);
|
|
15323
15314
|
return;
|
|
@@ -15334,13 +15325,13 @@ Va.default = Ep;
|
|
|
15334
15325
|
delete L[g];
|
|
15335
15326
|
return L;
|
|
15336
15327
|
}
|
|
15337
|
-
const
|
|
15328
|
+
const J = { log() {
|
|
15338
15329
|
}, warn() {
|
|
15339
15330
|
}, error() {
|
|
15340
15331
|
} };
|
|
15341
15332
|
function re(L) {
|
|
15342
15333
|
if (L === !1)
|
|
15343
|
-
return
|
|
15334
|
+
return J;
|
|
15344
15335
|
if (L === void 0)
|
|
15345
15336
|
return console;
|
|
15346
15337
|
if (L.log && L.warn && L.error)
|
|
@@ -15708,11 +15699,11 @@ const Is = eo, Et = qe, fw = tt, pw = ro, mw = {
|
|
|
15708
15699
|
return c.length > 0 && !c.some((h) => h === "object" || h === "array");
|
|
15709
15700
|
}
|
|
15710
15701
|
function d(h, y) {
|
|
15711
|
-
const T = t.name("item"), v = (0, Is.checkDataTypes)(c, T, l.opts.strictNumbers, Is.DataType.Wrong),
|
|
15702
|
+
const T = t.name("item"), v = (0, Is.checkDataTypes)(c, T, l.opts.strictNumbers, Is.DataType.Wrong), O = t.const("indices", (0, Et._)`{}`);
|
|
15712
15703
|
t.for((0, Et._)`;${h}--;`, () => {
|
|
15713
|
-
t.let(T, (0, Et._)`${n}[${h}]`), t.if(v, (0, Et._)`continue`), c.length > 1 && t.if((0, Et._)`typeof ${T} == "string"`, (0, Et._)`${T} += "_"`), t.if((0, Et._)`typeof ${
|
|
15714
|
-
t.assign(y, (0, Et._)`${
|
|
15715
|
-
}).code((0, Et._)`${
|
|
15704
|
+
t.let(T, (0, Et._)`${n}[${h}]`), t.if(v, (0, Et._)`continue`), c.length > 1 && t.if((0, Et._)`typeof ${T} == "string"`, (0, Et._)`${T} += "_"`), t.if((0, Et._)`typeof ${O}[${T}] == "number"`, () => {
|
|
15705
|
+
t.assign(y, (0, Et._)`${O}[${T}]`), e.error(), t.assign(u, !1).break();
|
|
15706
|
+
}).code((0, Et._)`${O}[${T}] = ${h}`);
|
|
15716
15707
|
});
|
|
15717
15708
|
}
|
|
15718
15709
|
function p(h, y) {
|
|
@@ -16081,11 +16072,11 @@ const mo = Ue, dn = qe, Jw = Rn, ho = tt, Xw = {
|
|
|
16081
16072
|
function d(T) {
|
|
16082
16073
|
let v;
|
|
16083
16074
|
if (c.length > 8) {
|
|
16084
|
-
const
|
|
16085
|
-
v = (0, mo.isOwnProperty)(t,
|
|
16075
|
+
const O = (0, ho.schemaRefOrVal)(o, r.properties, "properties");
|
|
16076
|
+
v = (0, mo.isOwnProperty)(t, O, T);
|
|
16086
16077
|
} else
|
|
16087
|
-
c.length ? v = (0, dn.or)(...c.map((
|
|
16088
|
-
return m.length && (v = (0, dn.or)(v, ...m.map((
|
|
16078
|
+
c.length ? v = (0, dn.or)(...c.map((O) => (0, dn._)`${T} === ${O}`)) : v = dn.nil;
|
|
16079
|
+
return m.length && (v = (0, dn.or)(v, ...m.map((O) => (0, dn._)`${(0, mo.usePattern)(e, O)}.test(${T})`))), (0, dn.not)(v);
|
|
16089
16080
|
}
|
|
16090
16081
|
function p(T) {
|
|
16091
16082
|
t.code((0, dn._)`delete ${i}[${T}]`);
|
|
@@ -16106,13 +16097,13 @@ const mo = Ue, dn = qe, Jw = Rn, ho = tt, Xw = {
|
|
|
16106
16097
|
})) : (y(T, v), l || t.if((0, dn.not)(v), () => t.break()));
|
|
16107
16098
|
}
|
|
16108
16099
|
}
|
|
16109
|
-
function y(T, v,
|
|
16100
|
+
function y(T, v, O) {
|
|
16110
16101
|
const N = {
|
|
16111
16102
|
keyword: "additionalProperties",
|
|
16112
16103
|
dataProp: T,
|
|
16113
16104
|
dataPropType: ho.Type.Str
|
|
16114
16105
|
};
|
|
16115
|
-
|
|
16106
|
+
O === !1 && Object.assign(N, {
|
|
16116
16107
|
compositeRule: !0,
|
|
16117
16108
|
createErrors: !1,
|
|
16118
16109
|
allErrors: !1
|
|
@@ -16373,8 +16364,8 @@ const Tt = qe, Nk = {
|
|
|
16373
16364
|
ref: a.formats,
|
|
16374
16365
|
code: u.code.formats
|
|
16375
16366
|
}), y = n.const("fDef", (0, Tt._)`${h}[${o}]`), T = n.let("fType"), v = n.let("format");
|
|
16376
|
-
n.if((0, Tt._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`, () => n.assign(T, (0, Tt._)`${y}.type || "string"`).assign(v, (0, Tt._)`${y}.validate`), () => n.assign(T, (0, Tt._)`"string"`).assign(v, y)), e.fail$data((0, Tt.or)(
|
|
16377
|
-
function
|
|
16367
|
+
n.if((0, Tt._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`, () => n.assign(T, (0, Tt._)`${y}.type || "string"`).assign(v, (0, Tt._)`${y}.validate`), () => n.assign(T, (0, Tt._)`"string"`).assign(v, y)), e.fail$data((0, Tt.or)(O(), N()));
|
|
16368
|
+
function O() {
|
|
16378
16369
|
return u.strictSchema === !1 ? Tt.nil : (0, Tt._)`${o} && !${v}`;
|
|
16379
16370
|
}
|
|
16380
16371
|
function N() {
|
|
@@ -16385,14 +16376,14 @@ const Tt = qe, Nk = {
|
|
|
16385
16376
|
function p() {
|
|
16386
16377
|
const h = a.formats[s];
|
|
16387
16378
|
if (!h) {
|
|
16388
|
-
|
|
16379
|
+
O();
|
|
16389
16380
|
return;
|
|
16390
16381
|
}
|
|
16391
16382
|
if (h === !0)
|
|
16392
16383
|
return;
|
|
16393
16384
|
const [y, T, v] = N(h);
|
|
16394
16385
|
y === t && e.pass(U());
|
|
16395
|
-
function
|
|
16386
|
+
function O() {
|
|
16396
16387
|
if (u.strictSchema === !1) {
|
|
16397
16388
|
a.logger.warn(V());
|
|
16398
16389
|
return;
|
|
@@ -16497,7 +16488,7 @@ const zr = qe, Js = Fp, Mc = zt, Vk = tt, qk = {
|
|
|
16497
16488
|
const j = (p = V == null ? void 0 : V.properties) === null || p === void 0 ? void 0 : p[l];
|
|
16498
16489
|
if (typeof j != "object")
|
|
16499
16490
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);
|
|
16500
|
-
T = T && (y || v(V)),
|
|
16491
|
+
T = T && (y || v(V)), O(j, U);
|
|
16501
16492
|
}
|
|
16502
16493
|
if (!T)
|
|
16503
16494
|
throw new Error(`discriminator: "${l}" must be required`);
|
|
@@ -16505,7 +16496,7 @@ const zr = qe, Js = Fp, Mc = zt, Vk = tt, qk = {
|
|
|
16505
16496
|
function v({ required: U }) {
|
|
16506
16497
|
return Array.isArray(U) && U.includes(l);
|
|
16507
16498
|
}
|
|
16508
|
-
function
|
|
16499
|
+
function O(U, V) {
|
|
16509
16500
|
if (U.const)
|
|
16510
16501
|
N(U.const, V);
|
|
16511
16502
|
else if (U.enum)
|
|
@@ -17911,24 +17902,24 @@ function j$(e, t, n, {
|
|
|
17911
17902
|
}
|
|
17912
17903
|
}
|
|
17913
17904
|
h = -1;
|
|
17914
|
-
let
|
|
17905
|
+
let O = [], N = 1, U = m + a;
|
|
17915
17906
|
const V = 1 << m - 1;
|
|
17916
17907
|
for (let P = 0; P < m; P += 1) {
|
|
17917
|
-
let K = 0,
|
|
17918
|
-
for (; K <
|
|
17908
|
+
let K = 0, Y = U;
|
|
17909
|
+
for (; K < Y; )
|
|
17919
17910
|
go(t, {
|
|
17920
17911
|
errors: P,
|
|
17921
|
-
currentLocation: d +
|
|
17912
|
+
currentLocation: d + Y,
|
|
17922
17913
|
expectedLocation: d,
|
|
17923
17914
|
distance: i,
|
|
17924
17915
|
ignoreLocation: c
|
|
17925
|
-
}) <= p ? K =
|
|
17926
|
-
U =
|
|
17927
|
-
let ee = Math.max(1, d -
|
|
17928
|
-
re[
|
|
17929
|
-
for (let X =
|
|
17916
|
+
}) <= p ? K = Y : U = Y, Y = Math.floor((U - K) / 2 + K);
|
|
17917
|
+
U = Y;
|
|
17918
|
+
let ee = Math.max(1, d - Y + 1), J = o ? a : Math.min(d + Y, a) + m, re = Array(J + 2);
|
|
17919
|
+
re[J + 1] = (1 << P) - 1;
|
|
17920
|
+
for (let X = J; X >= ee; X -= 1) {
|
|
17930
17921
|
let fe = X - 1, De = n[e.charAt(fe)];
|
|
17931
|
-
if (y && (T[fe] = +!!De), re[X] = (re[X + 1] << 1 | 1) & De, P && (re[X] |= (
|
|
17922
|
+
if (y && (T[fe] = +!!De), re[X] = (re[X + 1] << 1 | 1) & De, P && (re[X] |= (O[X + 1] | O[X]) << 1 | 1 | O[X + 1]), re[X] & V && (N = go(t, {
|
|
17932
17923
|
errors: P,
|
|
17933
17924
|
currentLocation: fe,
|
|
17934
17925
|
expectedLocation: d,
|
|
@@ -17948,7 +17939,7 @@ function j$(e, t, n, {
|
|
|
17948
17939
|
ignoreLocation: c
|
|
17949
17940
|
}) > p)
|
|
17950
17941
|
break;
|
|
17951
|
-
|
|
17942
|
+
O = re;
|
|
17952
17943
|
}
|
|
17953
17944
|
const j = {
|
|
17954
17945
|
isMatch: h >= 0,
|
|
@@ -18029,7 +18020,7 @@ class im {
|
|
|
18029
18020
|
} = this.options;
|
|
18030
18021
|
let m = [], a = 0, d = !1;
|
|
18031
18022
|
this.chunks.forEach(({ pattern: h, alphabet: y, startIndex: T }) => {
|
|
18032
|
-
const { isMatch: v, score:
|
|
18023
|
+
const { isMatch: v, score: O, indices: N } = j$(t, h, y, {
|
|
18033
18024
|
location: i + T,
|
|
18034
18025
|
distance: s,
|
|
18035
18026
|
threshold: o,
|
|
@@ -18038,7 +18029,7 @@ class im {
|
|
|
18038
18029
|
includeMatches: r,
|
|
18039
18030
|
ignoreLocation: c
|
|
18040
18031
|
});
|
|
18041
|
-
v && (d = !0), a +=
|
|
18032
|
+
v && (d = !0), a += O, v && N && (m = [...m, ...N]);
|
|
18042
18033
|
});
|
|
18043
18034
|
let p = {
|
|
18044
18035
|
isMatch: d,
|
|
@@ -18605,7 +18596,7 @@ const tC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), nC
|
|
|
18605
18596
|
setup(e, { emit: t }) {
|
|
18606
18597
|
const n = t;
|
|
18607
18598
|
let r;
|
|
18608
|
-
const i =
|
|
18599
|
+
const i = ae(null), s = ae(""), o = ae([]), l = ae(0), u = ae(null);
|
|
18609
18600
|
function c() {
|
|
18610
18601
|
const d = s.value, p = r.search(d);
|
|
18611
18602
|
o.value = p.map((h) => h.item), o.value.length > 0 && l.value > o.value.length - 1 && (l.value = o.value.length - 1);
|
|
@@ -18617,7 +18608,7 @@ const tC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), nC
|
|
|
18617
18608
|
};
|
|
18618
18609
|
}
|
|
18619
18610
|
const a = R(() => Object.keys(Me.script).sort());
|
|
18620
|
-
return
|
|
18611
|
+
return ft(() => {
|
|
18621
18612
|
Oe().debugMode = !0, r = new vi(a.value, {
|
|
18622
18613
|
includeScore: !0
|
|
18623
18614
|
}), o.value = a.value, l.value = 0, setTimeout(() => {
|
|
@@ -18993,7 +18984,7 @@ const cC = (e) => (Xc("data-v-4598a901"), e = e(), Zc(), e), uC = { class: "debu
|
|
|
18993
18984
|
}), mC = /* @__PURE__ */ jn(pC, [["__scopeId", "data-v-4598a901"]]);
|
|
18994
18985
|
let ri;
|
|
18995
18986
|
async function hC() {
|
|
18996
|
-
ri || (ri = (await import("./index-
|
|
18987
|
+
ri || (ri = (await import("./index-_B9MXcFH.js")).JSONEditor, console.log(ri));
|
|
18997
18988
|
}
|
|
18998
18989
|
const yC = Se({
|
|
18999
18990
|
components: {
|
|
@@ -19396,7 +19387,7 @@ const VC = /* @__PURE__ */ jn(yC, [["render", UC]]), qC = ["src"], KC = ["innerH
|
|
|
19396
19387
|
function r() {
|
|
19397
19388
|
n("close");
|
|
19398
19389
|
}
|
|
19399
|
-
const i =
|
|
19390
|
+
const i = ae(
|
|
19400
19391
|
Ve().registerInputListener("yes-no", {
|
|
19401
19392
|
cancel: {
|
|
19402
19393
|
press: () => {
|
|
@@ -19446,14 +19437,14 @@ const VC = /* @__PURE__ */ jn(yC, [["render", UC]]), qC = ["src"], KC = ["innerH
|
|
|
19446
19437
|
titleCssClass: {}
|
|
19447
19438
|
},
|
|
19448
19439
|
setup(e) {
|
|
19449
|
-
const t =
|
|
19440
|
+
const t = ae(150), n = ae(null), r = e, i = R(() => r.screenWidth ?? window.innerWidth), s = R(() => r.screenHeight ?? window.innerHeight), o = R(() => {
|
|
19450
19441
|
const l = r.screenMargin ?? 5, u = {};
|
|
19451
19442
|
let c = r.x - r.width / 2;
|
|
19452
19443
|
c = Math.min(c, i.value - r.width - l), c = Math.max(l, c), u.left = `${c}px`;
|
|
19453
19444
|
let m = s.value - r.y;
|
|
19454
19445
|
return m = Math.max(m, l), m = Math.min(m, s.value - t.value - l), u.bottom = `${m}px`, u.width = `${r.width}px`, u;
|
|
19455
19446
|
});
|
|
19456
|
-
return
|
|
19447
|
+
return ft(() => {
|
|
19457
19448
|
n.value && (t.value = n.value.clientHeight);
|
|
19458
19449
|
}), (l, u) => (x(), _e(oi, { name: "fade" }, {
|
|
19459
19450
|
default: Je(() => [
|
|
@@ -19595,7 +19586,7 @@ const r1 = ["id"], i1 = /* @__PURE__ */ Se({
|
|
|
19595
19586
|
options: {}
|
|
19596
19587
|
},
|
|
19597
19588
|
setup(e) {
|
|
19598
|
-
const t = e, n = Oe(), r = Zt(), i = R(() => r.activeScene), s = R(() => n.alerts), o = St(), l =
|
|
19589
|
+
const t = e, n = Oe(), r = Zt(), i = R(() => r.activeScene), s = R(() => n.alerts), o = St(), l = ae(!1), u = R(() => ({
|
|
19599
19590
|
transform: `scale(${o.gameScaleRatio}, ${o.gameScaleRatio})`,
|
|
19600
19591
|
width: `${o.gameWidth}px`,
|
|
19601
19592
|
height: `${o.actualGameHeight}px`
|
|
@@ -19606,7 +19597,7 @@ const r1 = ["id"], i1 = /* @__PURE__ */ Se({
|
|
|
19606
19597
|
function a() {
|
|
19607
19598
|
St().refreshScreenSize();
|
|
19608
19599
|
}
|
|
19609
|
-
return
|
|
19600
|
+
return ft(async () => {
|
|
19610
19601
|
Me.callHook("onAppMounted"), await n1(), o.inputsContainer.addEventListener(
|
|
19611
19602
|
"resize",
|
|
19612
19603
|
os(
|
|
@@ -21626,7 +21617,7 @@ const wI = /* @__PURE__ */ jn(gI, [["render", SI]]), kI = ["id", "name", "min",
|
|
|
21626
21617
|
},
|
|
21627
21618
|
emits: ["change"],
|
|
21628
21619
|
setup(e, { emit: t }) {
|
|
21629
|
-
const n = e, r =
|
|
21620
|
+
const n = e, r = ae(null), i = ae(n.value), s = ae(!1);
|
|
21630
21621
|
let o = null, l = null;
|
|
21631
21622
|
const u = t;
|
|
21632
21623
|
sn(i, (v) => {
|
|
@@ -21674,10 +21665,10 @@ const wI = /* @__PURE__ */ jn(gI, [["render", SI]]), kI = ["id", "name", "min",
|
|
|
21674
21665
|
};
|
|
21675
21666
|
return sn(
|
|
21676
21667
|
() => n.focused,
|
|
21677
|
-
(v,
|
|
21678
|
-
v && !
|
|
21668
|
+
(v, O) => {
|
|
21669
|
+
v && !O ? y() : !v && O && T();
|
|
21679
21670
|
}
|
|
21680
|
-
), (v,
|
|
21671
|
+
), (v, O) => (x(), H("div", {
|
|
21681
21672
|
class: He(["slider-widget", v.containerClass])
|
|
21682
21673
|
}, [
|
|
21683
21674
|
Qn(M("input", {
|
|
@@ -21690,7 +21681,7 @@ const wI = /* @__PURE__ */ jn(gI, [["render", SI]]), kI = ["id", "name", "min",
|
|
|
21690
21681
|
min: v.minValue,
|
|
21691
21682
|
max: v.maxValue,
|
|
21692
21683
|
step: v.step,
|
|
21693
|
-
"onUpdate:modelValue":
|
|
21684
|
+
"onUpdate:modelValue": O[0] || (O[0] = (N) => i.value = N)
|
|
21694
21685
|
}, null, 10, kI), [
|
|
21695
21686
|
[pi, i.value]
|
|
21696
21687
|
])
|
|
@@ -21703,7 +21694,7 @@ const wI = /* @__PURE__ */ jn(gI, [["render", SI]]), kI = ["id", "name", "min",
|
|
|
21703
21694
|
inputListener: {}
|
|
21704
21695
|
},
|
|
21705
21696
|
setup(e) {
|
|
21706
|
-
const t = e, n = Ln(), r = R(() => n.getSetting(t.settingId)), i =
|
|
21697
|
+
const t = e, n = Ln(), r = R(() => n.getSetting(t.settingId)), i = ae(r.value), s = R(() => n.getSettingSchema(t.settingId)), o = (u) => {
|
|
21707
21698
|
i.value = u;
|
|
21708
21699
|
};
|
|
21709
21700
|
function l(u) {
|
|
@@ -21778,7 +21769,7 @@ function mm(e) {
|
|
|
21778
21769
|
return e && (t.isGamepad ? n["gamepad-selected"] = !0 : n["keyboard-selected"] = !0), n;
|
|
21779
21770
|
}
|
|
21780
21771
|
function hm(e) {
|
|
21781
|
-
const t =
|
|
21772
|
+
const t = ae(-1), n = (K) => {
|
|
21782
21773
|
t.value = K;
|
|
21783
21774
|
}, r = (K) => {
|
|
21784
21775
|
t.value = e.elements.indexOf(K);
|
|
@@ -21801,17 +21792,17 @@ function hm(e) {
|
|
|
21801
21792
|
t.value === e.elements.length - 1 ? e.looping && d(0) : d(t.value + 1);
|
|
21802
21793
|
}
|
|
21803
21794
|
function y() {
|
|
21804
|
-
const K = e,
|
|
21805
|
-
e.looping &&
|
|
21795
|
+
const K = e, Y = t.value;
|
|
21796
|
+
e.looping && Y < K.columns ? d(e.elements.length - 1) : d(t.value - e.columns);
|
|
21806
21797
|
}
|
|
21807
21798
|
function T() {
|
|
21808
|
-
const K = e,
|
|
21809
|
-
e.looping &&
|
|
21799
|
+
const K = e, Y = t.value;
|
|
21800
|
+
e.looping && Y >= e.elements.length - K.columns ? d(0) : d(t.value + e.columns);
|
|
21810
21801
|
}
|
|
21811
21802
|
function v() {
|
|
21812
21803
|
u.value ? y() : c.value && p();
|
|
21813
21804
|
}
|
|
21814
|
-
function
|
|
21805
|
+
function O() {
|
|
21815
21806
|
u.value ? T() : c.value && h();
|
|
21816
21807
|
}
|
|
21817
21808
|
function N() {
|
|
@@ -21823,7 +21814,7 @@ function hm(e) {
|
|
|
21823
21814
|
function V() {
|
|
21824
21815
|
e.onConfirmed && e.onConfirmed(s.value, t.value);
|
|
21825
21816
|
}
|
|
21826
|
-
|
|
21817
|
+
ft(() => {
|
|
21827
21818
|
(typeof e.autoMount > "u" || e.autoMount === !0) && P();
|
|
21828
21819
|
});
|
|
21829
21820
|
function j() {
|
|
@@ -21843,7 +21834,7 @@ function hm(e) {
|
|
|
21843
21834
|
}), (u.value || l.value) && (K.actions.up = {
|
|
21844
21835
|
press: v
|
|
21845
21836
|
}, K.actions.down = {
|
|
21846
|
-
press:
|
|
21837
|
+
press: O
|
|
21847
21838
|
}), e.noConfirm || (K.actions.confirm = {
|
|
21848
21839
|
press: V
|
|
21849
21840
|
}), d(0);
|
|
@@ -21857,7 +21848,7 @@ function hm(e) {
|
|
|
21857
21848
|
selectElement: r,
|
|
21858
21849
|
isElementSelected: m,
|
|
21859
21850
|
currentColumn: i,
|
|
21860
|
-
buttonDown:
|
|
21851
|
+
buttonDown: O,
|
|
21861
21852
|
buttonUp: v,
|
|
21862
21853
|
buttonLeft: N,
|
|
21863
21854
|
buttonRight: U,
|
|
@@ -21878,8 +21869,8 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
21878
21869
|
emits: ["close"],
|
|
21879
21870
|
setup(e, { emit: t }) {
|
|
21880
21871
|
const n = e;
|
|
21881
|
-
|
|
21882
|
-
const r =
|
|
21872
|
+
ae(null);
|
|
21873
|
+
const r = ae(null), i = t;
|
|
21883
21874
|
function s() {
|
|
21884
21875
|
window.close();
|
|
21885
21876
|
}
|
|
@@ -21956,8 +21947,8 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
21956
21947
|
emits: ["close"],
|
|
21957
21948
|
setup(e, { emit: t }) {
|
|
21958
21949
|
const n = e;
|
|
21959
|
-
|
|
21960
|
-
const r = El(), i =
|
|
21950
|
+
ae(null);
|
|
21951
|
+
const r = El(), i = ae(null);
|
|
21961
21952
|
Pa({
|
|
21962
21953
|
container: i,
|
|
21963
21954
|
scrollSpeed: 40,
|
|
@@ -22033,12 +22024,12 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22033
22024
|
},
|
|
22034
22025
|
emits: ["tab-change", "close"],
|
|
22035
22026
|
setup(e, { emit: t }) {
|
|
22036
|
-
const n = t, r = e, i =
|
|
22027
|
+
const n = t, r = e, i = ae(r.defaultTab);
|
|
22037
22028
|
function s(l) {
|
|
22038
22029
|
i.value = l, n("tab-change", l);
|
|
22039
22030
|
}
|
|
22040
22031
|
const o = R(() => r.tabs[i.value]);
|
|
22041
|
-
return
|
|
22032
|
+
return ft(() => {
|
|
22042
22033
|
r.inputListener.actions.subPreviousTab = {
|
|
22043
22034
|
press: () => {
|
|
22044
22035
|
i.value > 0 && s(i.value - 1);
|
|
@@ -22079,7 +22070,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22079
22070
|
},
|
|
22080
22071
|
emits: ["chosen"],
|
|
22081
22072
|
setup(e, { emit: t }) {
|
|
22082
|
-
const n = e, r =
|
|
22073
|
+
const n = e, r = ae(null), i = ae(null), s = t;
|
|
22083
22074
|
function o(c) {
|
|
22084
22075
|
s("chosen", c);
|
|
22085
22076
|
}
|
|
@@ -22091,7 +22082,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22091
22082
|
function u(c) {
|
|
22092
22083
|
return In(c).name;
|
|
22093
22084
|
}
|
|
22094
|
-
return
|
|
22085
|
+
return ft(() => {
|
|
22095
22086
|
i.value = pr({
|
|
22096
22087
|
mode: "grid",
|
|
22097
22088
|
listener: n.inputListener,
|
|
@@ -22131,7 +22122,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22131
22122
|
},
|
|
22132
22123
|
emits: ["use", "close"],
|
|
22133
22124
|
setup(e, { emit: t }) {
|
|
22134
|
-
const n = e, r =
|
|
22125
|
+
const n = e, r = ae(null), i = R(() => In(n.item.id)), s = R(() => ({
|
|
22135
22126
|
backgroundImage: `url(${Ft(i.value.icon)})`
|
|
22136
22127
|
})), o = t, l = R(() => Mt().canUseItem(n.item));
|
|
22137
22128
|
function u() {
|
|
@@ -22140,7 +22131,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22140
22131
|
function c() {
|
|
22141
22132
|
o("close");
|
|
22142
22133
|
}
|
|
22143
|
-
return
|
|
22134
|
+
return ft(() => {
|
|
22144
22135
|
r.value = Ve().registerInputListener("item-details", {
|
|
22145
22136
|
confirm: {
|
|
22146
22137
|
press: () => {
|
|
@@ -22190,7 +22181,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22190
22181
|
},
|
|
22191
22182
|
emits: ["close"],
|
|
22192
22183
|
setup(e, { emit: t }) {
|
|
22193
|
-
const n = Mt(), r = R(() => n.items), i =
|
|
22184
|
+
const n = Mt(), r = R(() => n.items), i = ae(!1), s = R(() => i.value ? r.value[i.value] : null);
|
|
22194
22185
|
function o() {
|
|
22195
22186
|
Dt().closeMenu();
|
|
22196
22187
|
}
|
|
@@ -22328,14 +22319,14 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22328
22319
|
setup(e, { emit: t }) {
|
|
22329
22320
|
const n = e, r = _i(), i = Ye(), s = R(() => r.achievements);
|
|
22330
22321
|
R(() => i.currentDialog.choices);
|
|
22331
|
-
const o =
|
|
22322
|
+
const o = ae(null);
|
|
22332
22323
|
Ve(), Pa({
|
|
22333
22324
|
container: o,
|
|
22334
22325
|
scrollSpeed: 40,
|
|
22335
22326
|
onlyVertical: !0,
|
|
22336
22327
|
inputListener: n.inputListener
|
|
22337
22328
|
});
|
|
22338
|
-
const l =
|
|
22329
|
+
const l = ae(!1);
|
|
22339
22330
|
function u(d) {
|
|
22340
22331
|
l.value = d;
|
|
22341
22332
|
}
|
|
@@ -22347,14 +22338,14 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22347
22338
|
const d = it().achievements.categories, p = [];
|
|
22348
22339
|
return c.value.reduce(
|
|
22349
22340
|
(y, T) => {
|
|
22350
|
-
const v = Cl(T.id),
|
|
22341
|
+
const v = Cl(T.id), O = v.category ?? "default", N = d.find((V) => V.id === O);
|
|
22351
22342
|
if (!N)
|
|
22352
|
-
return de(`Unknown category ${
|
|
22343
|
+
return de(`Unknown category ${O}`), y;
|
|
22353
22344
|
if (v != null && v.hidden && !T.unlocked)
|
|
22354
22345
|
return y;
|
|
22355
|
-
let U = y.find((V) => V.id ===
|
|
22346
|
+
let U = y.find((V) => V.id === O);
|
|
22356
22347
|
return U || (U = {
|
|
22357
|
-
id:
|
|
22348
|
+
id: O,
|
|
22358
22349
|
title: N.title,
|
|
22359
22350
|
achievements: []
|
|
22360
22351
|
}, y.push(U)), U.achievements.push(T), y;
|
|
@@ -22526,7 +22517,7 @@ const RI = ["onClick"], MI = /* @__PURE__ */ Se({
|
|
|
22526
22517
|
function p(h) {
|
|
22527
22518
|
d(h);
|
|
22528
22519
|
}
|
|
22529
|
-
return
|
|
22520
|
+
return ft(() => {
|
|
22530
22521
|
o.value.length > 0 ? d(o.value[0]) : l.value.length > 0 && d(l.value[0]);
|
|
22531
22522
|
}), (h, y) => {
|
|
22532
22523
|
var T, v;
|
|
@@ -22589,12 +22580,12 @@ const jE = (e) => (Xc("data-v-ee85cc0c"), e = e(), Zc(), e), DE = ["id"], RE = {
|
|
|
22589
22580
|
},
|
|
22590
22581
|
emits: ["cancel"],
|
|
22591
22582
|
setup(e, { emit: t }) {
|
|
22592
|
-
const n = e, r = t, i =
|
|
22583
|
+
const n = e, r = t, i = ae(null), s = ae(null);
|
|
22593
22584
|
function o() {
|
|
22594
22585
|
r("cancel");
|
|
22595
22586
|
}
|
|
22596
22587
|
const { skillStyle: l, skillName: u, skillDescription: c, skillLevelText: m } = ym(n.chosenSkill);
|
|
22597
|
-
return
|
|
22588
|
+
return ft(() => {
|
|
22598
22589
|
i.value = pr({
|
|
22599
22590
|
mode: "list",
|
|
22600
22591
|
listener: n.inputListener,
|
|
@@ -22641,7 +22632,7 @@ const jE = (e) => (Xc("data-v-ee85cc0c"), e = e(), Zc(), e), DE = ["id"], RE = {
|
|
|
22641
22632
|
},
|
|
22642
22633
|
emits: ["choose"],
|
|
22643
22634
|
setup(e, { expose: t, emit: n }) {
|
|
22644
|
-
const r = e, i =
|
|
22635
|
+
const r = e, i = ae(null);
|
|
22645
22636
|
t({
|
|
22646
22637
|
gridElement: i
|
|
22647
22638
|
});
|
|
@@ -22680,7 +22671,7 @@ const jE = (e) => (Xc("data-v-ee85cc0c"), e = e(), Zc(), e), DE = ["id"], RE = {
|
|
|
22680
22671
|
},
|
|
22681
22672
|
emits: ["choose"],
|
|
22682
22673
|
setup(e, { emit: t }) {
|
|
22683
|
-
const n = e, r =
|
|
22674
|
+
const n = e, r = ae([]), i = R(() => r.value.map((d) => d.gridElement)), s = kt(), o = R(() => s.skills), l = ae(null), u = t;
|
|
22684
22675
|
function c(d) {
|
|
22685
22676
|
u("choose", d);
|
|
22686
22677
|
}
|
|
@@ -22690,7 +22681,7 @@ const jE = (e) => (Xc("data-v-ee85cc0c"), e = e(), Zc(), e), DE = ["id"], RE = {
|
|
|
22690
22681
|
m.value[p].hidden && o.value[p].level < 1 || (d[p] = o.value[p]);
|
|
22691
22682
|
return Object.values(d);
|
|
22692
22683
|
});
|
|
22693
|
-
return
|
|
22684
|
+
return ft(() => {
|
|
22694
22685
|
var d;
|
|
22695
22686
|
if (l.value = pr({
|
|
22696
22687
|
mode: "grid",
|
|
@@ -22726,7 +22717,7 @@ const jE = (e) => (Xc("data-v-ee85cc0c"), e = e(), Zc(), e), DE = ["id"], RE = {
|
|
|
22726
22717
|
inputListener: {}
|
|
22727
22718
|
},
|
|
22728
22719
|
setup(e) {
|
|
22729
|
-
const t =
|
|
22720
|
+
const t = ae(!1), n = ae(!1);
|
|
22730
22721
|
function r(s) {
|
|
22731
22722
|
n.value = s, t.value = s;
|
|
22732
22723
|
}
|
|
@@ -23524,4 +23515,4 @@ export {
|
|
|
23524
23515
|
$l as y,
|
|
23525
23516
|
Pr as z
|
|
23526
23517
|
};
|
|
23527
|
-
//# sourceMappingURL=lib-
|
|
23518
|
+
//# sourceMappingURL=lib-4-GMYwZC.js.map
|