narrat 2.6.2 → 2.6.3
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/narrat.es.js +70 -70
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +12 -12
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/screens-store.d.ts +1 -1
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -5756,7 +5756,7 @@ function qn(t) {
|
|
|
5756
5756
|
return !1;
|
|
5757
5757
|
return !0;
|
|
5758
5758
|
}
|
|
5759
|
-
function
|
|
5759
|
+
function Cn(t, e) {
|
|
5760
5760
|
return Gc(t, e);
|
|
5761
5761
|
}
|
|
5762
5762
|
function sE(t, e, n) {
|
|
@@ -6820,7 +6820,7 @@ function ZT(t, e) {
|
|
|
6820
6820
|
var e6 = cn(function(t) {
|
|
6821
6821
|
var e = t.length, n = e > 1 ? t[e - 1] : void 0;
|
|
6822
6822
|
return n = typeof n == "function" ? (t.pop(), n) : void 0, by(t, n);
|
|
6823
|
-
}), gt = { chunk: vA, compact: $A, concat: AA, difference: QA, differenceBy: YA, differenceWith: XA, drop: eO, dropRight: tO, dropRightWhile: nO, dropWhile: rO, fill: hO, findIndex: Q0, findLastIndex: Y0, first: mr, flatten: x0, flattenDeep: CO, flattenDepth: $O, fromPairs: DO, head: mr, indexOf: UO, initial: tn, intersection: JO, intersectionBy: GO, intersectionWith: KO, join: kE, last: pt, lastIndexOf: jE, nth: VE, pull: dM, pullAll: dy, pullAllBy: hM, pullAllWith: pM, pullAt: mM, remove: SM, reverse: Ud, slice: RM, sortedIndex: FM, sortedIndexBy: qM, sortedIndexOf: VM, sortedLastIndex: HM, sortedLastIndexBy: WM, sortedLastIndexOf: UM, sortedUniq: GM, sortedUniqBy: KM, tail: aT, take: sT, takeRight: uT, takeRightWhile: lT, takeWhile: cT, union: ET, unionBy: MT, unionWith: TT, uniq: IT, uniqBy: PT, uniqWith: NT, unzip: wp, unzipWith: by, without: qT, xor: JT, xorBy: GT, xorWith: KT, zip: QT, zipObject: XT, zipObjectDeep: ZT, zipWith: e6 }, Rn = { countBy: BA, each: qd, eachRight: hc, every: dO, filter: vO, find: gO, findLast: kO, flatMap: jO, flatMapDeep: _O, flatMapDepth: SO, forEach: qd, forEachRight: hc, groupBy: BO, includes: WO, invokeMap: nE, keyBy: xE, map: kl, orderBy: YE, partition: lM, reduce: xM, reduceRight: jM, reject: _M, sample: TM, sampleSize: IM, shuffle: LM, size: DM, some: BM, sortBy: vy }, iz = Xl, cr = { after: I$, ary: g0, before: _0, bind: Jc, bindKey: ip, curry: cp, curryRight: fp, debounce: bl, defer: GA, delay: KA, flip: AO, memoize: vl, negate: Hu, once: GE, overArgs: ZE, partial: Zc, partialRight: yp, rearg: kM, rest: AM, spread: YM, throttle: gy, unary: $T, wrap: VT }, Tt = { castArray: hA, clone: _A, cloneDeep: SA, cloneDeepWith: L0, cloneWith: CA, conformsTo: DA, eq: uo, gt: FO, gte: qO, isArguments: ns, isArray: Jt, isArrayBuffer: rE, isArrayLike: pi, isArrayLikeObject: hr, isBoolean: iE, isBuffer: xa, isDate: oE, isElement: aE, isEmpty: qn, isEqual:
|
|
6823
|
+
}), gt = { chunk: vA, compact: $A, concat: AA, difference: QA, differenceBy: YA, differenceWith: XA, drop: eO, dropRight: tO, dropRightWhile: nO, dropWhile: rO, fill: hO, findIndex: Q0, findLastIndex: Y0, first: mr, flatten: x0, flattenDeep: CO, flattenDepth: $O, fromPairs: DO, head: mr, indexOf: UO, initial: tn, intersection: JO, intersectionBy: GO, intersectionWith: KO, join: kE, last: pt, lastIndexOf: jE, nth: VE, pull: dM, pullAll: dy, pullAllBy: hM, pullAllWith: pM, pullAt: mM, remove: SM, reverse: Ud, slice: RM, sortedIndex: FM, sortedIndexBy: qM, sortedIndexOf: VM, sortedLastIndex: HM, sortedLastIndexBy: WM, sortedLastIndexOf: UM, sortedUniq: GM, sortedUniqBy: KM, tail: aT, take: sT, takeRight: uT, takeRightWhile: lT, takeWhile: cT, union: ET, unionBy: MT, unionWith: TT, uniq: IT, uniqBy: PT, uniqWith: NT, unzip: wp, unzipWith: by, without: qT, xor: JT, xorBy: GT, xorWith: KT, zip: QT, zipObject: XT, zipObjectDeep: ZT, zipWith: e6 }, Rn = { countBy: BA, each: qd, eachRight: hc, every: dO, filter: vO, find: gO, findLast: kO, flatMap: jO, flatMapDeep: _O, flatMapDepth: SO, forEach: qd, forEachRight: hc, groupBy: BO, includes: WO, invokeMap: nE, keyBy: xE, map: kl, orderBy: YE, partition: lM, reduce: xM, reduceRight: jM, reject: _M, sample: TM, sampleSize: IM, shuffle: LM, size: DM, some: BM, sortBy: vy }, iz = Xl, cr = { after: I$, ary: g0, before: _0, bind: Jc, bindKey: ip, curry: cp, curryRight: fp, debounce: bl, defer: GA, delay: KA, flip: AO, memoize: vl, negate: Hu, once: GE, overArgs: ZE, partial: Zc, partialRight: yp, rearg: kM, rest: AM, spread: YM, throttle: gy, unary: $T, wrap: VT }, Tt = { castArray: hA, clone: _A, cloneDeep: SA, cloneDeepWith: L0, cloneWith: CA, conformsTo: DA, eq: uo, gt: FO, gte: qO, isArguments: ns, isArray: Jt, isArrayBuffer: rE, isArrayLike: pi, isArrayLikeObject: hr, isBoolean: iE, isBuffer: xa, isDate: oE, isElement: aE, isEmpty: qn, isEqual: Cn, isEqualWith: sE, isError: rp, isFinite: uE, isFunction: ra, isInteger: ny, isLength: Wc, isMap: P0, isMatch: lE, isMatchWith: cE, isNaN: fE, isNative: dE, isNil: hE, isNull: pE, isNumber: ry, isObject: Yn, isObjectLike: ur, isPlainObject: ml, isRegExp: mp, isSafeInteger: vE, isSet: N0, isString: Qc, isSymbol: xi, isTypedArray: ou, isUndefined: mE, isWeakMap: gE, isWeakSet: yE, lt: CE, lte: $E, toArray: sy, toFinite: Jo, toInteger: Zt, toLength: K0, toNumber: Li, toPlainObject: H0, toSafeInteger: yT, toString: En }, ei = { add: E$, ceil: pA, divide: ZA, floor: OO, max: TE, maxBy: IE, mean: NE, meanBy: LE, min: BE, minBy: Cu, multiply: FE, round: EM, subtract: rT, sum: iT, sumBy: oT }, oz = mA, az = HO, sz = gM, Ht = { assign: Q$, assignIn: Bd, assignInWith: Vu, assignWith: Y$, at: Z$, create: FA, defaults: HA, defaultsDeep: UA, entries: Vd, entriesIn: Hd, extend: Bd, extendWith: Vu, findKey: bO, findLastKey: wO, forIn: IO, forInRight: PO, forOwn: NO, forOwnRight: LO, functions: RO, functionsIn: zO, get: tp, has: VO, hasIn: up, invert: YO, invertBy: ZO, invoke: tE, keys: kr, keysIn: di, mapKeys: AE, mapValues: OE, merge: DE, mergeWith: W0, omit: WE, omitBy: JE, pick: cM, pickBy: ly, result: OM, set: PM, setWith: NM, toPairs: Vd, toPairsIn: Hd, transform: kT, unset: LT, update: RT, updateWith: zT, values: uu, valuesIn: FT }, To = { at: HT, chain: M0, commit: _m, lodash: K, next: Sm, plant: Om, reverse: UT, tap: fT, thru: Wu, toIterator: Em, toJSON: Is, value: Is, valueOf: Is, wrapperChain: WT }, An = { camelCase: dA, capitalize: S0, deburr: A0, endsWith: aO, escape: G0, escapeRegExp: cO, kebabCase: wE, lowerCase: _E, lowerFirst: SE, pad: oM, padEnd: aM, padStart: sM, parseInt: uM, repeat: CM, replace: $M, snakeCase: zM, split: QM, startCase: XM, startsWith: ZM, template: pT, templateSettings: Jd, toLower: mT, toUpper: bT, trim: jT, trimEnd: _T, trimStart: ST, truncate: CT, unescape: OT, upperCase: BT, upperFirst: op, words: O0 }, In = { attempt: j0, bindAll: tA, cond: PA, conforms: LA, constant: Yh, defaultTo: qA, flow: MO, flowRight: TO, identity: Yr, iteratee: bE, matches: EE, matchesProperty: ME, method: RE, methodOf: zE, mixin: ay, noop: fn, nthArg: HE, over: XE, overEvery: eM, overSome: tM, property: q0, propertyOf: fM, range: py, rangeRight: bM, stubArray: ap, stubFalse: ep, stubObject: eT, stubString: tT, stubTrue: nT, times: yy, toPath: gT, uniqueId: _o }, uz = Math.max, lz = Math.min, cz = Math.min;
|
|
6824
6824
|
/**
|
|
6825
6825
|
* @license
|
|
6826
6826
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
@@ -6970,7 +6970,7 @@ K.after = cr.after, K.ary = cr.ary, K.assign = Ht.assign, K.assignIn = Ht.assign
|
|
|
6970
6970
|
}
|
|
6971
6971
|
return p;
|
|
6972
6972
|
}, K.prototype.at = To.at, K.prototype.chain = To.wrapperChain, K.prototype.commit = To.commit, K.prototype.next = To.next, K.prototype.plant = To.plant, K.prototype.reverse = To.reverse, K.prototype.toJSON = K.prototype.valueOf = K.prototype.value = To.value, K.prototype.first = K.prototype.head, Yj && (K.prototype[Yj] = To.toIterator);
|
|
6973
|
-
Object.freeze({ __proto__: null, add: E$, after: I$, ary: g0, assign: Q$, assignIn: Bd, assignInWith: Vu, assignWith: Y$, at: Z$, attempt: j0, before: _0, bind: Jc, bindAll: tA, bindKey: ip, camelCase: dA, capitalize: S0, castArray: hA, ceil: pA, chain: M0, chunk: vA, clamp: mA, clone: _A, cloneDeep: SA, cloneDeepWith: L0, cloneWith: CA, commit: _m, compact: $A, concat: AA, cond: PA, conforms: LA, conformsTo: DA, constant: Yh, countBy: BA, create: FA, curry: cp, curryRight: fp, debounce: bl, deburr: A0, defaultTo: qA, defaults: HA, defaultsDeep: UA, defer: GA, delay: KA, difference: QA, differenceBy: YA, differenceWith: XA, divide: ZA, drop: eO, dropRight: tO, dropRightWhile: nO, dropWhile: rO, each: qd, eachRight: hc, endsWith: aO, entries: Vd, entriesIn: Hd, eq: uo, escape: G0, escapeRegExp: cO, every: dO, extend: Bd, extendWith: Vu, fill: hO, filter: vO, find: gO, findIndex: Q0, findKey: bO, findLast: kO, findLastIndex: Y0, findLastKey: wO, first: mr, flatMap: jO, flatMapDeep: _O, flatMapDepth: SO, flatten: x0, flattenDeep: CO, flattenDepth: $O, flip: AO, floor: OO, flow: MO, flowRight: TO, forEach: qd, forEachRight: hc, forIn: IO, forInRight: PO, forOwn: NO, forOwnRight: LO, fromPairs: DO, functions: RO, functionsIn: zO, get: tp, groupBy: BO, gt: FO, gte: qO, has: VO, hasIn: up, head: mr, identity: Yr, inRange: HO, includes: WO, indexOf: UO, initial: tn, intersection: JO, intersectionBy: GO, intersectionWith: KO, invert: YO, invertBy: ZO, invoke: tE, invokeMap: nE, isArguments: ns, isArray: Jt, isArrayBuffer: rE, isArrayLike: pi, isArrayLikeObject: hr, isBoolean: iE, isBuffer: xa, isDate: oE, isElement: aE, isEmpty: qn, isEqual:
|
|
6973
|
+
Object.freeze({ __proto__: null, add: E$, after: I$, ary: g0, assign: Q$, assignIn: Bd, assignInWith: Vu, assignWith: Y$, at: Z$, attempt: j0, before: _0, bind: Jc, bindAll: tA, bindKey: ip, camelCase: dA, capitalize: S0, castArray: hA, ceil: pA, chain: M0, chunk: vA, clamp: mA, clone: _A, cloneDeep: SA, cloneDeepWith: L0, cloneWith: CA, commit: _m, compact: $A, concat: AA, cond: PA, conforms: LA, conformsTo: DA, constant: Yh, countBy: BA, create: FA, curry: cp, curryRight: fp, debounce: bl, deburr: A0, defaultTo: qA, defaults: HA, defaultsDeep: UA, defer: GA, delay: KA, difference: QA, differenceBy: YA, differenceWith: XA, divide: ZA, drop: eO, dropRight: tO, dropRightWhile: nO, dropWhile: rO, each: qd, eachRight: hc, endsWith: aO, entries: Vd, entriesIn: Hd, eq: uo, escape: G0, escapeRegExp: cO, every: dO, extend: Bd, extendWith: Vu, fill: hO, filter: vO, find: gO, findIndex: Q0, findKey: bO, findLast: kO, findLastIndex: Y0, findLastKey: wO, first: mr, flatMap: jO, flatMapDeep: _O, flatMapDepth: SO, flatten: x0, flattenDeep: CO, flattenDepth: $O, flip: AO, floor: OO, flow: MO, flowRight: TO, forEach: qd, forEachRight: hc, forIn: IO, forInRight: PO, forOwn: NO, forOwnRight: LO, fromPairs: DO, functions: RO, functionsIn: zO, get: tp, groupBy: BO, gt: FO, gte: qO, has: VO, hasIn: up, head: mr, identity: Yr, inRange: HO, includes: WO, indexOf: UO, initial: tn, intersection: JO, intersectionBy: GO, intersectionWith: KO, invert: YO, invertBy: ZO, invoke: tE, invokeMap: nE, isArguments: ns, isArray: Jt, isArrayBuffer: rE, isArrayLike: pi, isArrayLikeObject: hr, isBoolean: iE, isBuffer: xa, isDate: oE, isElement: aE, isEmpty: qn, isEqual: Cn, isEqualWith: sE, isError: rp, isFinite: uE, isFunction: ra, isInteger: ny, isLength: Wc, isMap: P0, isMatch: lE, isMatchWith: cE, isNaN: fE, isNative: dE, isNil: hE, isNull: pE, isNumber: ry, isObject: Yn, isObjectLike: ur, isPlainObject: ml, isRegExp: mp, isSafeInteger: vE, isSet: N0, isString: Qc, isSymbol: xi, isTypedArray: ou, isUndefined: mE, isWeakMap: gE, isWeakSet: yE, iteratee: bE, join: kE, kebabCase: wE, keyBy: xE, keys: kr, keysIn: di, last: pt, lastIndexOf: jE, lodash: K, lowerCase: _E, lowerFirst: SE, lt: CE, lte: $E, map: kl, mapKeys: AE, mapValues: OE, matches: EE, matchesProperty: ME, max: TE, maxBy: IE, mean: NE, meanBy: LE, memoize: vl, merge: DE, mergeWith: W0, method: RE, methodOf: zE, min: BE, minBy: Cu, mixin: ay, multiply: FE, negate: Hu, next: Sm, noop: fn, now: Xl, nth: VE, nthArg: HE, omit: WE, omitBy: JE, once: GE, orderBy: YE, over: XE, overArgs: ZE, overEvery: eM, overSome: tM, pad: oM, padEnd: aM, padStart: sM, parseInt: uM, partial: Zc, partialRight: yp, partition: lM, pick: cM, pickBy: ly, plant: Om, property: q0, propertyOf: fM, pull: dM, pullAll: dy, pullAllBy: hM, pullAllWith: pM, pullAt: mM, random: gM, range: py, rangeRight: bM, rearg: kM, reduce: xM, reduceRight: jM, reject: _M, remove: SM, repeat: CM, replace: $M, rest: AM, result: OM, reverse: Ud, round: EM, sample: TM, sampleSize: IM, set: PM, setWith: NM, shuffle: LM, size: DM, slice: RM, snakeCase: zM, some: BM, sortBy: vy, sortedIndex: FM, sortedIndexBy: qM, sortedIndexOf: VM, sortedLastIndex: HM, sortedLastIndexBy: WM, sortedLastIndexOf: UM, sortedUniq: GM, sortedUniqBy: KM, split: QM, spread: YM, startCase: XM, startsWith: ZM, stubArray: ap, stubFalse: ep, stubObject: eT, stubString: tT, stubTrue: nT, subtract: rT, sum: iT, sumBy: oT, tail: aT, take: sT, takeRight: uT, takeRightWhile: lT, takeWhile: cT, tap: fT, template: pT, templateSettings: Jd, throttle: gy, thru: Wu, times: yy, toArray: sy, toFinite: Jo, toInteger: Zt, toIterator: Em, toJSON: Is, toLength: K0, toLower: mT, toNumber: Li, toPairs: Vd, toPairsIn: Hd, toPath: gT, toPlainObject: H0, toSafeInteger: yT, toString: En, toUpper: bT, transform: kT, trim: jT, trimEnd: _T, trimStart: ST, truncate: CT, unary: $T, unescape: OT, union: ET, unionBy: MT, unionWith: TT, uniq: IT, uniqBy: PT, uniqWith: NT, uniqueId: _o, unset: LT, unzip: wp, unzipWith: by, update: RT, updateWith: zT, upperCase: BT, upperFirst: op, value: Is, valueOf: Is, values: uu, valuesIn: FT, without: qT, words: O0, wrap: VT, wrapperAt: HT, wrapperChain: WT, wrapperCommit: _m, wrapperLodash: K, wrapperNext: Sm, wrapperPlant: Om, wrapperReverse: UT, wrapperToIterator: Em, wrapperValue: Is, xor: JT, xorBy: GT, xorWith: KT, zip: QT, zipObject: XT, zipObjectDeep: ZT, zipWith: e6, default: K });
|
|
6974
6974
|
function Vs(t, e) {
|
|
6975
6975
|
for (var n = xe.exports.parseJSONPointer(e), r = 0; r < n.length; r++) {
|
|
6976
6976
|
var i = n[r];
|
|
@@ -7106,7 +7106,7 @@ function r6(t, e, n) {
|
|
|
7106
7106
|
}
|
|
7107
7107
|
if (s === "move") {
|
|
7108
7108
|
var v = tn(u), m = Jr(c, v), g = pt(l), y = pt(u);
|
|
7109
|
-
if (
|
|
7109
|
+
if (Cn(tn(l), tn(u)))
|
|
7110
7110
|
m && (c = g !== y ? function(x, _, j, D) {
|
|
7111
7111
|
return xe.exports.updateIn(x, _.concat([oo]), function(O) {
|
|
7112
7112
|
var A = O.indexOf(j);
|
|
@@ -7249,7 +7249,7 @@ function a6(t, e, n) {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
function r_(t, e, n, r) {
|
|
7251
7251
|
var i = i6(t, e, r), o = i.findIndex(function(a) {
|
|
7252
|
-
return
|
|
7252
|
+
return Cn(a.path, n.focusPath) && a.type === n.type;
|
|
7253
7253
|
});
|
|
7254
7254
|
return { caret: o !== -1 ? i[o] : null, previous: o !== -1 && o > 0 ? i[o - 1] : null, next: o !== -1 && o < i.length - 1 ? i[o + 1] : null };
|
|
7255
7255
|
}
|
|
@@ -7331,7 +7331,7 @@ function sn(t, e, n) {
|
|
|
7331
7331
|
}
|
|
7332
7332
|
if (i && o) {
|
|
7333
7333
|
var m = function(y, b, k, w) {
|
|
7334
|
-
if (
|
|
7334
|
+
if (Cn(k, w))
|
|
7335
7335
|
return [k];
|
|
7336
7336
|
var $ = function(V, q) {
|
|
7337
7337
|
for (var z = 0; z < V.length && z < q.length && V[z] === q[z]; )
|
|
@@ -7409,7 +7409,7 @@ function dd(t) {
|
|
|
7409
7409
|
}
|
|
7410
7410
|
function a_(t, e, n) {
|
|
7411
7411
|
var r, i = (r = n == null ? void 0 : n[e]) === null || r === void 0 ? void 0 : r[lc];
|
|
7412
|
-
return !(!i || i.type !== kn || i.edit) &&
|
|
7412
|
+
return !(!i || i.type !== kn || i.edit) && Cn(i.focusPath, t.concat(e));
|
|
7413
7413
|
}
|
|
7414
7414
|
function u6(t) {
|
|
7415
7415
|
var e = t.escapeControlCharacters, n = t.escapeUnicodeCharacters;
|
|
@@ -24738,7 +24738,7 @@ function PW(t, e, n) {
|
|
|
24738
24738
|
f = xe.exports.setIn(f, xC(c), c, !0);
|
|
24739
24739
|
}), f;
|
|
24740
24740
|
}(t, r), o = n && n.activeItem ? xC(n.activeItem) : void 0, a = o && xe.exports.existsIn(i, o) ? xe.exports.getIn(i, o) : r[0], s = r.findIndex(function(u) {
|
|
24741
|
-
return f = a, (l = u).start === f.start && l.field === f.field &&
|
|
24741
|
+
return f = a, (l = u).start === f.start && l.field === f.field && Cn(l.path, f.path);
|
|
24742
24742
|
var l, f;
|
|
24743
24743
|
});
|
|
24744
24744
|
return { items: i, itemsWithActive: i && a && s !== -1 ? xe.exports.setIn(i, u1(a), !0) : i, flatItems: r, count: r.length, activeItem: a, activeIndex: s };
|
|
@@ -24822,7 +24822,7 @@ function DW(t, e, n, r) {
|
|
|
24822
24822
|
function RW(t, e, n, r) {
|
|
24823
24823
|
for (var i = J7(n, t, e, 1 / 0), o = [], a = 0; a < i.length; a++) {
|
|
24824
24824
|
var s = i[a - 1], u = i[a];
|
|
24825
|
-
a !== 0 && u.field === s.field &&
|
|
24825
|
+
a !== 0 && u.field === s.field && Cn(u.path, s.path) ? pt(o).items.push(u) : o.push({ path: u.path, field: u.field, items: [u] });
|
|
24826
24826
|
}
|
|
24827
24827
|
o.sort(function(c, d) {
|
|
24828
24828
|
return c.field !== d.field ? c.field === qu ? 1 : -1 : d.path.length - c.path.length;
|
|
@@ -25944,7 +25944,7 @@ function FU(t, e, n) {
|
|
|
25944
25944
|
return t.$$set = function(d) {
|
|
25945
25945
|
"path" in d && n(1, a = d.path), "value" in d && n(2, s = d.value), "context" in d && n(3, u = d.context), "enforceString" in d && n(4, l = d.enforceString), "selection" in d && n(5, f = d.selection), "searchResult" in d && n(6, c = d.searchResult);
|
|
25946
25946
|
}, t.$$.update = function() {
|
|
25947
|
-
34 & t.$$.dirty && n(8, r = !(!f || f.type !== bt) &&
|
|
25947
|
+
34 & t.$$.dirty && n(8, r = !(!f || f.type !== bt) && Cn(f.focusPath, a)), 296 & t.$$.dirty && n(7, i = !u.readOnly && r && f && f.edit === !0), 510 & t.$$.dirty && n(0, o = u.onRenderValue({ path: a, value: s, readOnly: u.readOnly, enforceString: l, isSelected: r, isEditing: i, normalization: u.normalization, selection: f, searchResult: c, onPatch: u.onPatch, onPasteJson: u.onPasteJson, onSelect: u.onSelect, onFind: u.onFind }));
|
|
25948
25948
|
}, [o, a, s, u, l, f, c, i, r];
|
|
25949
25949
|
}
|
|
25950
25950
|
var qU = function(t) {
|
|
@@ -26040,7 +26040,7 @@ var l1 = function(t) {
|
|
|
26040
26040
|
function NC(t) {
|
|
26041
26041
|
var e = t.fullJson, n = t.fullState, r = t.fullSelection, i = t.deltaY, o = t.items, a = i < 0 ? function(p) {
|
|
26042
26042
|
for (var v = p.items, m = p.fullSelection, g = p.deltaY, y = iv(m), b = v.findIndex(function(x) {
|
|
26043
|
-
return
|
|
26043
|
+
return Cn(x.path, y);
|
|
26044
26044
|
}), k = function() {
|
|
26045
26045
|
var x;
|
|
26046
26046
|
return (x = v[w - 1]) === null || x === void 0 ? void 0 : x.height;
|
|
@@ -26050,7 +26050,7 @@ function NC(t) {
|
|
|
26050
26050
|
return w !== b && v[w] !== void 0 ? { beforePath: C, indexOffset: I } : void 0;
|
|
26051
26051
|
}({ fullSelection: r, deltaY: i, items: o }) : function(p) {
|
|
26052
26052
|
for (var v, m = p.items, g = p.fullSelection, y = p.deltaY, b = t_(g), k = m.findIndex(function(j) {
|
|
26053
|
-
return
|
|
26053
|
+
return Cn(j.path, b);
|
|
26054
26054
|
}), w = function() {
|
|
26055
26055
|
var j;
|
|
26056
26056
|
return (j = m[C + 1]) === null || j === void 0 ? void 0 : j.height;
|
|
@@ -26085,9 +26085,9 @@ function NC(t) {
|
|
|
26085
26085
|
if (Array.isArray(f)) {
|
|
26086
26086
|
var c = function(p) {
|
|
26087
26087
|
var v, m, g = p.items, y = p.fullJson, b = p.fullState, k = p.fullSelection, w = p.indexOffset, $ = iv(k), C = t_(k), I = g.findIndex(function(D) {
|
|
26088
|
-
return
|
|
26088
|
+
return Cn(D.path, $);
|
|
26089
26089
|
}), x = g.findIndex(function(D) {
|
|
26090
|
-
return
|
|
26090
|
+
return Cn(D.path, C);
|
|
26091
26091
|
}), _ = (v = g[I + w]) === null || v === void 0 ? void 0 : v.path, j = (m = g[x + w]) === null || m === void 0 ? void 0 : m.path;
|
|
26092
26092
|
return sn(y, b, { type: Dt, anchorPath: _, focusPath: j });
|
|
26093
26093
|
}({ items: o, fullJson: e, fullState: n, fullSelection: r, indexOffset: a.indexOffset }), d = s6(e, c), h = xe.exports.getIn(d, l);
|
|
@@ -26126,7 +26126,7 @@ var ZU = function(t) {
|
|
|
26126
26126
|
return {};
|
|
26127
26127
|
};
|
|
26128
26128
|
function eJ(t) {
|
|
26129
|
-
var e, n, r, i, o, a, s, u, l, f = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit &&
|
|
26129
|
+
var e, n, r, i, o, a, s, u, l, f = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit && Cn(t[7].focusPath, t[1]), c = t[39].identifier, d = Co(c, t, t[40], LC), h = !t[10] && qC();
|
|
26130
26130
|
o = new qU({ props: { path: t[1], value: t[0], enforceString: t[5] ? t[5][Ti] : void 0, selection: t[7], searchResult: t[2] ? t[2][uc] : void 0, context: t[4] } });
|
|
26131
26131
|
var p = f && VC(t), v = t[15] && HC(t), m = !t[10] && WC(t);
|
|
26132
26132
|
return { c: function() {
|
|
@@ -26136,7 +26136,7 @@ function eJ(t) {
|
|
|
26136
26136
|
}, p: function(g, y) {
|
|
26137
26137
|
d && d.p && (!l || 512 & y[1]) && Ao(d, c, g, g[40], l ? $o(c, g[40], y, YU) : Oo(g[40]), LC), g[10] ? h && (h.d(1), h = null) : h || ((h = qC()).c(), h.m(n, i));
|
|
26138
26138
|
var b = {};
|
|
26139
|
-
2 & y[0] && (b.path = g[1]), 1 & y[0] && (b.value = g[0]), 32 & y[0] && (b.enforceString = g[5] ? g[5][Ti] : void 0), 128 & y[0] && (b.selection = g[7]), 4 & y[0] && (b.searchResult = g[2] ? g[2][uc] : void 0), 16 & y[0] && (b.context = g[4]), o.$set(b), 146 & y[0] && (f = !g[4].readOnly && g[7] && (g[7].type === bt || g[7].type === Dt) && !g[7].edit &&
|
|
26139
|
+
2 & y[0] && (b.path = g[1]), 1 & y[0] && (b.value = g[0]), 32 & y[0] && (b.enforceString = g[5] ? g[5][Ti] : void 0), 128 & y[0] && (b.selection = g[7]), 4 & y[0] && (b.searchResult = g[2] ? g[2][uc] : void 0), 16 & y[0] && (b.context = g[4]), o.$set(b), 146 & y[0] && (f = !g[4].readOnly && g[7] && (g[7].type === bt || g[7].type === Dt) && !g[7].edit && Cn(g[7].focusPath, g[1])), f ? p ? (p.p(g, y), 146 & y[0] && U(p, 1)) : ((p = VC(g)).c(), U(p, 1), p.m(n, null)) : p && (We(), Z(p, 1, 1, function() {
|
|
26140
26140
|
p = null;
|
|
26141
26141
|
}), Ue()), g[15] ? v ? (v.p(g, y), 32768 & y[0] && U(v, 1)) : ((v = HC(g)).c(), U(v, 1), v.m(e, u)) : v && (We(), Z(v, 1, 1, function() {
|
|
26142
26142
|
v = null;
|
|
@@ -26150,7 +26150,7 @@ function eJ(t) {
|
|
|
26150
26150
|
} };
|
|
26151
26151
|
}
|
|
26152
26152
|
function tJ(t) {
|
|
26153
|
-
var e, n, r, i, o, a, s, u, l, f, c, d, h, p, v, m, g, y, b = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit &&
|
|
26153
|
+
var e, n, r, i, o, a, s, u, l, f, c, d, h, p, v, m, g, y, b = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit && Cn(t[7].focusPath, t[1]), k = [iJ, rJ], w = [];
|
|
26154
26154
|
function $(L, P) {
|
|
26155
26155
|
return L[12] ? 0 : 1;
|
|
26156
26156
|
}
|
|
@@ -26172,7 +26172,7 @@ function tJ(t) {
|
|
|
26172
26172
|
var V = i;
|
|
26173
26173
|
(i = $(L)) === V ? w[i].p(L, P) : (We(), Z(w[V], 1, 1, function() {
|
|
26174
26174
|
w[V] = null;
|
|
26175
|
-
}), Ue(), (o = w[i]) ? o.p(L, P) : (o = w[i] = k[i](L)).c(), U(o, 1), o.m(r, null)), I && I.p && (!m || 512 & P[1]) && Ao(I, C, L, L[40], m ? $o(C, L[40], P, XU) : Oo(L[40]), RC), L[10] ? x && (x.d(1), x = null) : x || ((x = UC()).c(), x.m(n, u)), j === (j = _(L)) && D ? D.p(L, P) : (D.d(1), (D = j(L)) && (D.c(), D.m(f, null))), 146 & P[0] && (b = !L[4].readOnly && L[7] && (L[7].type === bt || L[7].type === Dt) && !L[7].edit &&
|
|
26175
|
+
}), Ue(), (o = w[i]) ? o.p(L, P) : (o = w[i] = k[i](L)).c(), U(o, 1), o.m(r, null)), I && I.p && (!m || 512 & P[1]) && Ao(I, C, L, L[40], m ? $o(C, L[40], P, XU) : Oo(L[40]), RC), L[10] ? x && (x.d(1), x = null) : x || ((x = UC()).c(), x.m(n, u)), j === (j = _(L)) && D ? D.p(L, P) : (D.d(1), (D = j(L)) && (D.c(), D.m(f, null))), 146 & P[0] && (b = !L[4].readOnly && L[7] && (L[7].type === bt || L[7].type === Dt) && !L[7].edit && Cn(L[7].focusPath, L[1])), b ? O ? (O.p(L, P), 146 & P[0] && U(O, 1)) : ((O = JC(L)).c(), U(O, 1), O.m(n, null)) : O && (We(), Z(O, 1, 1, function() {
|
|
26176
26176
|
O = null;
|
|
26177
26177
|
}), Ue()), !L[15] || L[12] && L[15].isChildError ? A && (We(), Z(A, 1, 1, function() {
|
|
26178
26178
|
A = null;
|
|
@@ -26188,7 +26188,7 @@ function tJ(t) {
|
|
|
26188
26188
|
} };
|
|
26189
26189
|
}
|
|
26190
26190
|
function nJ(t) {
|
|
26191
|
-
var e, n, r, i, o, a, s, u, l, f, c, d, h, p, v, m, g, y, b = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit &&
|
|
26191
|
+
var e, n, r, i, o, a, s, u, l, f, c, d, h, p, v, m, g, y, b = !t[4].readOnly && t[7] && (t[7].type === bt || t[7].type === Dt) && !t[7].edit && Cn(t[7].focusPath, t[1]), k = [fJ, cJ], w = [];
|
|
26192
26192
|
function $(L, P) {
|
|
26193
26193
|
return L[12] ? 0 : 1;
|
|
26194
26194
|
}
|
|
@@ -26210,7 +26210,7 @@ function nJ(t) {
|
|
|
26210
26210
|
var V = i;
|
|
26211
26211
|
(i = $(L)) === V ? w[i].p(L, P) : (We(), Z(w[V], 1, 1, function() {
|
|
26212
26212
|
w[V] = null;
|
|
26213
|
-
}), Ue(), (o = w[i]) ? o.p(L, P) : (o = w[i] = k[i](L)).c(), U(o, 1), o.m(r, null)), I && I.p && (!m || 512 & P[1]) && Ao(I, C, L, L[40], m ? $o(C, L[40], P, ZU) : Oo(L[40]), FC), L[10] ? x && (x.d(1), x = null) : x || ((x = e3()).c(), x.m(n, u)), j === (j = _(L)) && D ? D.p(L, P) : (D.d(1), (D = j(L)) && (D.c(), D.m(f, null))), 146 & P[0] && (b = !L[4].readOnly && L[7] && (L[7].type === bt || L[7].type === Dt) && !L[7].edit &&
|
|
26213
|
+
}), Ue(), (o = w[i]) ? o.p(L, P) : (o = w[i] = k[i](L)).c(), U(o, 1), o.m(r, null)), I && I.p && (!m || 512 & P[1]) && Ao(I, C, L, L[40], m ? $o(C, L[40], P, ZU) : Oo(L[40]), FC), L[10] ? x && (x.d(1), x = null) : x || ((x = e3()).c(), x.m(n, u)), j === (j = _(L)) && D ? D.p(L, P) : (D.d(1), (D = j(L)) && (D.c(), D.m(f, null))), 146 & P[0] && (b = !L[4].readOnly && L[7] && (L[7].type === bt || L[7].type === Dt) && !L[7].edit && Cn(L[7].focusPath, L[1])), b ? O ? (O.p(L, P), 146 & P[0] && U(O, 1)) : ((O = t3(L)).c(), U(O, 1), O.m(n, null)) : O && (We(), Z(O, 1, 1, function() {
|
|
26214
26214
|
O = null;
|
|
26215
26215
|
}), Ue()), !L[15] || L[12] && L[15].isChildError ? A && (We(), Z(A, 1, 1, function() {
|
|
26216
26216
|
A = null;
|
|
@@ -26894,7 +26894,7 @@ function yJ(t, e, n) {
|
|
|
26894
26894
|
return !0;
|
|
26895
26895
|
F.pop();
|
|
26896
26896
|
}
|
|
26897
|
-
return ve.type === kn ? N === kn &&
|
|
26897
|
+
return ve.type === kn ? N === kn && Cn(ve.focusPath, be) : !!(ve.type === bt && (N === bt && Cn(ve.focusPath, be) || pc(be, ve.focusPath) && be.length > ve.focusPath.length && (N === kn || N === bt || N === Dt)));
|
|
26898
26898
|
}(D.getFullSelection(), C, T))
|
|
26899
26899
|
S.button === 0 && (D.focus(), O(S));
|
|
26900
26900
|
else if (Pr.selecting = !0, Pr.selectionAnchor = C, Pr.selectionAnchorType = T, Pr.selectionFocus = C, S.shiftKey) {
|
|
@@ -26920,12 +26920,12 @@ function yJ(t, e, n) {
|
|
|
26920
26920
|
if (Pr.selecting) {
|
|
26921
26921
|
S.preventDefault(), S.stopPropagation(), Pr.selectionFocus == null && window.getSelection && window.getSelection().empty();
|
|
26922
26922
|
var T = ov(S.target);
|
|
26923
|
-
|
|
26923
|
+
Cn(C, Pr.selectionFocus) && T === Pr.selectionAnchorType || (Pr.selectionFocus = C, D.onSelect({ anchorPath: Pr.selectionAnchor, focusPath: Pr.selectionFocus }));
|
|
26924
26924
|
}
|
|
26925
26925
|
}, function(S) {
|
|
26926
26926
|
if (!D.readOnly) {
|
|
26927
26927
|
var T = D.getFullSelection(), W = tn(T.focusPath);
|
|
26928
|
-
if (
|
|
26928
|
+
if (Cn(C, W)) {
|
|
26929
26929
|
var ie = function(ve) {
|
|
26930
26930
|
var be = [];
|
|
26931
26931
|
function N(Be) {
|
|
@@ -27902,7 +27902,7 @@ function eG(t, e, n) {
|
|
|
27902
27902
|
function Te(re) {
|
|
27903
27903
|
re.json !== void 0 && function(ke) {
|
|
27904
27904
|
if (ke !== void 0) {
|
|
27905
|
-
var Oe = !
|
|
27905
|
+
var Oe = !Cn(p, ke), Ie = p === void 0;
|
|
27906
27906
|
if (l("update external json", { isChanged: Oe, isText: Ie }), !!Oe) {
|
|
27907
27907
|
var De = ue, Ge = p, ot = v, ut = ye, Rt = Q;
|
|
27908
27908
|
n(7, p = ke), n(14, ue = ti(p, De, [], Be(p), !1)), n(8, v = void 0), n(21, ye = !1), n(9, Q = He(Q, p)), ct({ previousJson: Ge, previousState: De, previousText: ot, previousTextIsRepaired: ut, previousSelection: Rt }), ee();
|
|
@@ -28219,7 +28219,7 @@ function eG(t, e, n) {
|
|
|
28219
28219
|
}
|
|
28220
28220
|
function Tn() {
|
|
28221
28221
|
var re = n_(p, ue, Q, !1), ke = tn(Q.focusPath);
|
|
28222
|
-
!qn(re.focusPath) &&
|
|
28222
|
+
!qn(re.focusPath) && Cn(ke, tn(re.focusPath)) ? n(9, Q = sn(p, ue, { type: Kr, path: re.focusPath })) : n(9, Q = sn(p, ue, { type: _r, path: ke })), l("insert before", { selection: Q, selectionBefore: re, parentPath: ke }), fr().then(co);
|
|
28223
28223
|
}
|
|
28224
28224
|
function Hi() {
|
|
28225
28225
|
var re = Q.paths ? pt(Q.paths) : Q.focusPath;
|
|
@@ -30449,25 +30449,25 @@ function uK(t, e, n) {
|
|
|
30449
30449
|
}, t.$$.update = function() {
|
|
30450
30450
|
2048 & t.$$.dirty[0] && n(17, r = Array.isArray(m)), 133120 & t.$$.dirty[0] && n(16, i = r ? vm(m) : []), 133120 & t.$$.dirty[0] && n(15, o = r ? vm(m, !0) : []), 65536 & t.$$.dirty[0] && n(6, a = i.map(D)), 32768 & t.$$.dirty[0] && n(7, s = o ? o.map(D) : []), 17472 & t.$$.dirty[0] && (n(14, p = y == null ? void 0 : y.filter) === null || p === void 0 ? void 0 : p.path) && a.find(function(O) {
|
|
30451
30451
|
var A;
|
|
30452
|
-
return
|
|
30452
|
+
return Cn(O.value, (A = y == null ? void 0 : y.filter) === null || A === void 0 ? void 0 : A.path);
|
|
30453
30453
|
}), 1 & t.$$.dirty[0] && function(O) {
|
|
30454
30454
|
var A;
|
|
30455
|
-
|
|
30455
|
+
Cn((A = y == null ? void 0 : y.filter) === null || A === void 0 ? void 0 : A.path, O) || (v("changeFilterPath", O), n(10, y = xe.exports.setIn(y, ["filter", "path"], O, !0)), b(y));
|
|
30456
30456
|
}(($ == null ? void 0 : $.value) || null), 2 & t.$$.dirty[0] && function(O) {
|
|
30457
30457
|
var A;
|
|
30458
|
-
|
|
30458
|
+
Cn((A = y == null ? void 0 : y.filter) === null || A === void 0 ? void 0 : A.relation, O) || (v("changeFilterRelation", O), n(10, y = xe.exports.setIn(y, ["filter", "relation"], O, !0)), b(y));
|
|
30459
30459
|
}((C == null ? void 0 : C.value) || null), 4 & t.$$.dirty[0] && function(O) {
|
|
30460
30460
|
var A;
|
|
30461
|
-
|
|
30461
|
+
Cn((A = y == null ? void 0 : y.filter) === null || A === void 0 ? void 0 : A.value, O) || (v("changeFilterValue", O), n(10, y = xe.exports.setIn(y, ["filter", "value"], O, !0)), b(y));
|
|
30462
30462
|
}(I || null), 8 & t.$$.dirty[0] && function(O) {
|
|
30463
30463
|
var A;
|
|
30464
|
-
|
|
30464
|
+
Cn((A = y == null ? void 0 : y.sort) === null || A === void 0 ? void 0 : A.path, O) || (v("changeSortPath", O), n(10, y = xe.exports.setIn(y, ["sort", "path"], O, !0)), b(y));
|
|
30465
30465
|
}((x == null ? void 0 : x.value) || null), 16 & t.$$.dirty[0] && function(O) {
|
|
30466
30466
|
var A;
|
|
30467
|
-
|
|
30467
|
+
Cn((A = y == null ? void 0 : y.sort) === null || A === void 0 ? void 0 : A.direction, O) || (v("changeSortDirection", O), n(10, y = xe.exports.setIn(y, ["sort", "direction"], O, !0)), b(y));
|
|
30468
30468
|
}((_ == null ? void 0 : _.value) || null), 32 & t.$$.dirty[0] && function(O) {
|
|
30469
30469
|
var A;
|
|
30470
|
-
|
|
30470
|
+
Cn((A = y == null ? void 0 : y.projection) === null || A === void 0 ? void 0 : A.paths, O) || (v("changeProjectionPaths", O), n(10, y = xe.exports.setIn(y, ["projection", "paths"], O, !0)), b(y));
|
|
30471
30471
|
}(j ? j.map(function(O) {
|
|
30472
30472
|
return O.value;
|
|
30473
30473
|
}) : null);
|
|
@@ -38336,7 +38336,7 @@ const bI = ["music", "ambiant", "sound"], d5 = tQ(bI), Vr = Vi("audio", {
|
|
|
38336
38336
|
return;
|
|
38337
38337
|
const r = xu(n.audio);
|
|
38338
38338
|
if (!r) {
|
|
38339
|
-
|
|
38339
|
+
Sn(`Could not find audio ${n.audio}`);
|
|
38340
38340
|
return;
|
|
38341
38341
|
}
|
|
38342
38342
|
r.pause(n.howlerId);
|
|
@@ -38366,7 +38366,7 @@ const bI = ["music", "ambiant", "sound"], d5 = tQ(bI), Vr = Vi("audio", {
|
|
|
38366
38366
|
async actuallyPlayChannel(t, e, n) {
|
|
38367
38367
|
const r = xu(n);
|
|
38368
38368
|
if (!r) {
|
|
38369
|
-
|
|
38369
|
+
Sn(`Could not find audio ${n}`);
|
|
38370
38370
|
return;
|
|
38371
38371
|
}
|
|
38372
38372
|
if (t !== "sound") {
|
|
@@ -38550,7 +38550,7 @@ async function wI(t, e) {
|
|
|
38550
38550
|
o.onload = () => {
|
|
38551
38551
|
Mu[t] = o, ea.log(`Loaded image ${t} successfully`), r(o);
|
|
38552
38552
|
}, o.onerror = (a) => {
|
|
38553
|
-
|
|
38553
|
+
Sn(`Failed to load image ${t} at ${e}`, a), i(a);
|
|
38554
38554
|
}, o.src = ls(e);
|
|
38555
38555
|
});
|
|
38556
38556
|
return Mu[t] = n, n;
|
|
@@ -38564,7 +38564,7 @@ const xI = "gameSave", Ih = "###_--_~=:;_JUMP", b1 = "###_--_~=:;_RETURN", LQ =
|
|
|
38564
38564
|
function DQ(t) {
|
|
38565
38565
|
return t === Ih || t === b1 || t === LQ || t === Ph;
|
|
38566
38566
|
}
|
|
38567
|
-
const RQ = "2.6.
|
|
38567
|
+
const RQ = "2.6.3", zQ = new Date("2022-08-10T20:49:51.142Z"), h5 = (t, e) => {
|
|
38568
38568
|
const n = {};
|
|
38569
38569
|
for (const r in t)
|
|
38570
38570
|
e(t[r]) && (n[r] = t[r]);
|
|
@@ -38620,7 +38620,7 @@ function p5(t, e) {
|
|
|
38620
38620
|
if (Ar.slots[n])
|
|
38621
38621
|
Ar.slots[n].saveData = t;
|
|
38622
38622
|
else {
|
|
38623
|
-
|
|
38623
|
+
Sn(`Tried to save to slot ${e} but it doesn't exist`);
|
|
38624
38624
|
return;
|
|
38625
38625
|
}
|
|
38626
38626
|
Dp();
|
|
@@ -39164,7 +39164,7 @@ const mn = Vi("vm", {
|
|
|
39164
39164
|
for (; t === Ih; ) {
|
|
39165
39165
|
const e = this.jumpTarget;
|
|
39166
39166
|
if (!e) {
|
|
39167
|
-
|
|
39167
|
+
Sn("Tried to jump but no target was set");
|
|
39168
39168
|
return;
|
|
39169
39169
|
}
|
|
39170
39170
|
this.hasJumped = !0, this.setStack(e), await Gt().autoSaveGame({}), t = await this.runFrame();
|
|
@@ -39193,7 +39193,7 @@ const mn = Vi("vm", {
|
|
|
39193
39193
|
async runLineOnly() {
|
|
39194
39194
|
const t = this.currentLine;
|
|
39195
39195
|
if (!t) {
|
|
39196
|
-
|
|
39196
|
+
Sn("There is no line of script to run.");
|
|
39197
39197
|
return;
|
|
39198
39198
|
}
|
|
39199
39199
|
return Gt().startingScript(), await LI(t);
|
|
@@ -39201,7 +39201,7 @@ const mn = Vi("vm", {
|
|
|
39201
39201
|
async runLabelFunction(t, ...e) {
|
|
39202
39202
|
const n = this.script[t];
|
|
39203
39203
|
if (!n) {
|
|
39204
|
-
|
|
39204
|
+
Sn(`Tried to run a label that doesn't exist: ${t}`);
|
|
39205
39205
|
return;
|
|
39206
39206
|
}
|
|
39207
39207
|
const r = {
|
|
@@ -39218,7 +39218,7 @@ const mn = Vi("vm", {
|
|
|
39218
39218
|
async jumpToLabel(t, ...e) {
|
|
39219
39219
|
const n = this.script[t];
|
|
39220
39220
|
if (!n) {
|
|
39221
|
-
|
|
39221
|
+
Sn(
|
|
39222
39222
|
`Label ${t} doesn't exist. Is the file with this label added in the list of script files to load in the config?`
|
|
39223
39223
|
);
|
|
39224
39224
|
return;
|
|
@@ -39292,7 +39292,7 @@ async function LI(t, e) {
|
|
|
39292
39292
|
try {
|
|
39293
39293
|
return await w1(t, e);
|
|
39294
39294
|
} catch (i) {
|
|
39295
|
-
console.error(i), console.error(t),
|
|
39295
|
+
console.error(i), console.error(t), Sn(
|
|
39296
39296
|
`Narrat script runtime error at <span class="error-filename">${t.fileName}:${t.line + 1}</span>
|
|
39297
39297
|
<b>${i}</b>
|
|
39298
39298
|
Script: ${t.code}
|
|
@@ -39360,7 +39360,7 @@ async function pY(t) {
|
|
|
39360
39360
|
return await i.processPlayerAnswer(n, t);
|
|
39361
39361
|
}
|
|
39362
39362
|
} catch (i) {
|
|
39363
|
-
console.error(i),
|
|
39363
|
+
console.error(i), Sn(
|
|
39364
39364
|
`Error after player answer at ${r.fileName}:${r.line + 1} (${r.code}<br /> - Error: ${i}`
|
|
39365
39365
|
);
|
|
39366
39366
|
}
|
|
@@ -39577,20 +39577,20 @@ const ga = Vi("hud", {
|
|
|
39577
39577
|
return e;
|
|
39578
39578
|
{
|
|
39579
39579
|
const n = `Quest ${t} doesn't exist!`;
|
|
39580
|
-
throw
|
|
39580
|
+
throw Sn(n), new Error(n);
|
|
39581
39581
|
}
|
|
39582
39582
|
},
|
|
39583
39583
|
getObjective(t, e) {
|
|
39584
39584
|
const n = this.getQuest(t);
|
|
39585
39585
|
if (!n) {
|
|
39586
39586
|
const o = `Quest ${t} doesn't exist!`;
|
|
39587
|
-
throw
|
|
39587
|
+
throw Sn(o), new Error(o);
|
|
39588
39588
|
}
|
|
39589
39589
|
const r = n.objectives[e];
|
|
39590
39590
|
if (r)
|
|
39591
39591
|
return r;
|
|
39592
39592
|
const i = `Objective ${e} doesn't exist in quest ${t}!`;
|
|
39593
|
-
throw
|
|
39593
|
+
throw Sn(i), new Error(i);
|
|
39594
39594
|
},
|
|
39595
39595
|
setupQuests(t) {
|
|
39596
39596
|
for (const e of Object.keys(t)) {
|
|
@@ -39613,25 +39613,25 @@ const ga = Vi("hud", {
|
|
|
39613
39613
|
const e = this.getQuest(t);
|
|
39614
39614
|
e ? (e.state = "unlocked", eo().addNotification(
|
|
39615
39615
|
`Started quest: ${Fh(t).title}`
|
|
39616
|
-
)) :
|
|
39616
|
+
)) : Sn(`Quest ${t} doesn't exist!`);
|
|
39617
39617
|
},
|
|
39618
39618
|
startObjective(t, e) {
|
|
39619
39619
|
const n = this.getObjective(t, e);
|
|
39620
39620
|
n ? (n.state = "unlocked", eo().addNotification(
|
|
39621
39621
|
`New quest objective: ${Yg(t, e).description}`
|
|
39622
|
-
)) :
|
|
39622
|
+
)) : Sn(`Objective ${e} doesn't exist in quest ${t}!`);
|
|
39623
39623
|
},
|
|
39624
39624
|
completeObjective(t, e) {
|
|
39625
39625
|
const n = this.getObjective(t, e);
|
|
39626
39626
|
n ? (n.state = "completed", eo().addNotification(
|
|
39627
39627
|
`Completed quest objective: ${Yg(t, e).description}`
|
|
39628
|
-
)) :
|
|
39628
|
+
)) : Sn(`Objective ${e} doesn't exist in quest ${t}!`);
|
|
39629
39629
|
},
|
|
39630
39630
|
completeQuest(t, e) {
|
|
39631
39631
|
const n = this.getQuest(t);
|
|
39632
39632
|
n ? (n.state = "completed", n.ending = e, eo().addNotification(
|
|
39633
39633
|
`Completed quest: ${Fh(t).title}`
|
|
39634
|
-
)) :
|
|
39634
|
+
)) : Sn(`Quest ${t} doesn't exist!`);
|
|
39635
39635
|
},
|
|
39636
39636
|
isQuestCompleted(t) {
|
|
39637
39637
|
const e = this.getQuest(t);
|
|
@@ -39767,7 +39767,7 @@ const Wo = Vi("screens", {
|
|
|
39767
39767
|
finishTransition(t) {
|
|
39768
39768
|
const e = this.layers[t];
|
|
39769
39769
|
if (!e)
|
|
39770
|
-
|
|
39770
|
+
Sn(
|
|
39771
39771
|
`Tried to finish transition on layer ${t} but it doesn't exist`
|
|
39772
39772
|
);
|
|
39773
39773
|
else if (e.transition) {
|
|
@@ -39827,7 +39827,7 @@ const Wo = Vi("screens", {
|
|
|
39827
39827
|
};
|
|
39828
39828
|
},
|
|
39829
39829
|
loadSaveData(t) {
|
|
39830
|
-
this.layers = t.layers.map((e) => ({ screen: e })), this.buttons = Nh(this.buttons, t.buttons);
|
|
39830
|
+
this.layers = t.layers.map((e) => (e !== null && typeof e != "string" && (e = null), { screen: e })), this.buttons = Nh(this.buttons, t.buttons);
|
|
39831
39831
|
}
|
|
39832
39832
|
},
|
|
39833
39833
|
getters: {
|
|
@@ -40075,7 +40075,7 @@ const Gt = Vi("main", {
|
|
|
40075
40075
|
finishManualSave(t, e) {
|
|
40076
40076
|
var n, r;
|
|
40077
40077
|
if (!this.saving) {
|
|
40078
|
-
|
|
40078
|
+
Sn("Trying to save but there is no saving request!");
|
|
40079
40079
|
return;
|
|
40080
40080
|
}
|
|
40081
40081
|
if (!e || !t) {
|
|
@@ -40099,7 +40099,7 @@ const Gt = Vi("main", {
|
|
|
40099
40099
|
}
|
|
40100
40100
|
},
|
|
40101
40101
|
t.slotId
|
|
40102
|
-
), this.alert("Success", "Game saved!")) :
|
|
40102
|
+
), this.alert("Success", "Game saved!")) : Sn("There was no data to save!"), this.saving.resolver(), this.saving = null;
|
|
40103
40103
|
},
|
|
40104
40104
|
playerAnswered(t) {
|
|
40105
40105
|
pY(t);
|
|
@@ -40233,9 +40233,9 @@ const Gt = Vi("main", {
|
|
|
40233
40233
|
function TY(t, e, n) {
|
|
40234
40234
|
console.error(`Parser error: ${t.fileName}:${t.currentLine}`, n);
|
|
40235
40235
|
const r = `[Parser Error] in <span class="error-filename">${t.fileName}:${e + 1}</span> - <b>${n}</b>`;
|
|
40236
|
-
|
|
40236
|
+
Sn(r);
|
|
40237
40237
|
}
|
|
40238
|
-
function
|
|
40238
|
+
function Sn(t, ...e) {
|
|
40239
40239
|
const n = Gt();
|
|
40240
40240
|
console.error(t, ...e), t = t.replace(/[\r\n]/g, `
|
|
40241
40241
|
<br />`), n.createError(`\u274C ${t}`);
|
|
@@ -41605,7 +41605,7 @@ function CP(t) {
|
|
|
41605
41605
|
return new Promise((e, n) => {
|
|
41606
41606
|
const r = new XMLHttpRequest();
|
|
41607
41607
|
r.onload = function() {
|
|
41608
|
-
r.status >= 200 && r.status < 300 ? e(r.responseText) : (
|
|
41608
|
+
r.status >= 200 && r.status < 300 ? e(r.responseText) : (Sn(`Failed to load file ${t}`, r.status), n(r.status));
|
|
41609
41609
|
}, r.open("GET", t), r.send();
|
|
41610
41610
|
});
|
|
41611
41611
|
}
|
|
@@ -41683,7 +41683,7 @@ function ft() {
|
|
|
41683
41683
|
}
|
|
41684
41684
|
function $P(t) {
|
|
41685
41685
|
const e = Bt.skills[t];
|
|
41686
|
-
return e ||
|
|
41686
|
+
return e || Sn(`Skill config for skill ${t} doesn't exist`), e;
|
|
41687
41687
|
}
|
|
41688
41688
|
function Ed(t) {
|
|
41689
41689
|
return t.startsWith("http") ? t : Bt.images[t] ? ls(Bt.images[t]) : ls(t);
|
|
@@ -41699,7 +41699,7 @@ function gu(t) {
|
|
|
41699
41699
|
}
|
|
41700
41700
|
function P5(t) {
|
|
41701
41701
|
const e = Bt.items[t];
|
|
41702
|
-
return e ||
|
|
41702
|
+
return e || Sn(`Item config for skill ${t} doesn't exist`), e;
|
|
41703
41703
|
}
|
|
41704
41704
|
function Fh(t) {
|
|
41705
41705
|
return Bt.quests[t];
|
|
@@ -41764,6 +41764,8 @@ function ol() {
|
|
|
41764
41764
|
});
|
|
41765
41765
|
}
|
|
41766
41766
|
function ci(t) {
|
|
41767
|
+
if (t === null)
|
|
41768
|
+
return null;
|
|
41767
41769
|
if (typeof t == "object")
|
|
41768
41770
|
if (Array.isArray(t)) {
|
|
41769
41771
|
const e = [];
|
|
@@ -41832,11 +41834,11 @@ const Er = Vi("skills", {
|
|
|
41832
41834
|
},
|
|
41833
41835
|
addXp(t, e) {
|
|
41834
41836
|
const n = this.getSkill(t);
|
|
41835
|
-
n ||
|
|
41837
|
+
n || Sn(`Skill ${t} doesn't exist`), n.xp += e, n.xp >= ft().skillOptions.xpPerLevel && (n.xp = 0, n.level++, this.levelledUp(t));
|
|
41836
41838
|
},
|
|
41837
41839
|
setSkillLevel(t, e) {
|
|
41838
41840
|
const n = this.getSkill(t);
|
|
41839
|
-
n ||
|
|
41841
|
+
n || Sn(`Skill ${t} doesn't exist`), n.level = e, this.levelledUp(t);
|
|
41840
41842
|
},
|
|
41841
41843
|
incrementSkill(t, e) {
|
|
41842
41844
|
this.getSkill(t).level += e, this.levelledUp(t);
|
|
@@ -42510,14 +42512,14 @@ const ite = { id: "game-menu" }, ote = {
|
|
|
42510
42512
|
if (ft().saves.mode === "manual") {
|
|
42511
42513
|
const m = Hg();
|
|
42512
42514
|
if (!m) {
|
|
42513
|
-
|
|
42515
|
+
Sn("No autosave found");
|
|
42514
42516
|
return;
|
|
42515
42517
|
}
|
|
42516
42518
|
i.value = m.id;
|
|
42517
42519
|
} else {
|
|
42518
42520
|
const m = VQ();
|
|
42519
42521
|
if (!m) {
|
|
42520
|
-
|
|
42522
|
+
Sn("No free slot found");
|
|
42521
42523
|
return;
|
|
42522
42524
|
}
|
|
42523
42525
|
i.value = m;
|
|
@@ -42532,7 +42534,7 @@ const ite = { id: "game-menu" }, ote = {
|
|
|
42532
42534
|
return;
|
|
42533
42535
|
const v = oc(i.value);
|
|
42534
42536
|
if (!v) {
|
|
42535
|
-
|
|
42537
|
+
Sn("No save file found");
|
|
42536
42538
|
return;
|
|
42537
42539
|
}
|
|
42538
42540
|
Gt().loadGame(v, i.value);
|
|
@@ -43028,9 +43030,7 @@ const Ite = ["id"], Pte = ["id", "onClick", "innerHTML"], Nte = ["id", "onClick"
|
|
|
43028
43030
|
setup(t) {
|
|
43029
43031
|
const e = t, n = mn(), r = Gt(), i = Wo(), o = Fs(), a = yt(() => o.sprites), s = yt(() => ft().layout.backgrounds.width), u = yt(() => ft().layout.backgrounds.height), l = yt(() => e.layer), f = yt(() => i.buttons), c = yt(() => {
|
|
43030
43032
|
const x = ft().screens[l.value];
|
|
43031
|
-
|
|
43032
|
-
throw new Error(`Screen ${l.value} doesn't have a config`);
|
|
43033
|
-
return x;
|
|
43033
|
+
return x || (console.log(l), Sn(`Screen ${l.value} doesn't have a config`)), x;
|
|
43034
43034
|
}), d = yt(() => r.isInGame), h = yt(() => c.value.buttons || []);
|
|
43035
43035
|
function p(x) {
|
|
43036
43036
|
const j = gu(x).background;
|
|
@@ -43576,7 +43576,7 @@ function ane(t, e, n, r, i, o) {
|
|
|
43576
43576
|
}
|
|
43577
43577
|
const sne = /* @__PURE__ */ Fi(one, [["render", ane]]);
|
|
43578
43578
|
function _n(t, e) {
|
|
43579
|
-
console.error("Runtime error ========================="), console.error(`Command: ${t.commandType}`), console.error("Args: ", t.args), console.error("Options: ", t.options),
|
|
43579
|
+
console.error("Runtime error ========================="), console.error(`Command: ${t.commandType}`), console.error("Args: ", t.args), console.error("Options: ", t.options), Sn(`Runtime error at ${t.fileName}:${t.line} (${t.commandType}) ${t.code}. -
|
|
43580
43580
|
<br />
|
|
43581
43581
|
Error: ${e}`), console.error("============================");
|
|
43582
43582
|
}
|
|
@@ -43793,7 +43793,7 @@ const lne = new nt(
|
|
|
43793
43793
|
currentIndex: 0
|
|
43794
43794
|
};
|
|
43795
43795
|
if (!n.script[e]) {
|
|
43796
|
-
|
|
43796
|
+
Sn(`Trying to jump but label ${e} not found`);
|
|
43797
43797
|
return;
|
|
43798
43798
|
}
|
|
43799
43799
|
return n.jumpTarget = r, Ih;
|
|
@@ -44801,7 +44801,7 @@ const rie = /* @__PURE__ */ Fi(Zre, [["render", nie]]), iie = Wn({
|
|
|
44801
44801
|
useItem() {
|
|
44802
44802
|
if (this.chosenItem && this.canUseChosenItem && this.chosenItemConf) {
|
|
44803
44803
|
const t = this.chosenItemConf.onUse;
|
|
44804
|
-
this.close(), eu("onItemUsed"), t.action === "jump" ? mn().jumpToLabel(t.label) : t.action === "run" ? mn().runThenGoBackToPreviousDialog(t.label, !0) :
|
|
44804
|
+
this.close(), eu("onItemUsed"), t.action === "jump" ? mn().jumpToLabel(t.label) : t.action === "run" ? mn().runThenGoBackToPreviousDialog(t.label, !0) : Sn(`Unknown action ${t.action}`);
|
|
44805
44805
|
}
|
|
44806
44806
|
},
|
|
44807
44807
|
canUseItem(t) {
|