@famibee/skynovel 1.47.2 → 1.47.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/app.js +1771 -1765
- package/dist/app.js.map +1 -1
- package/dist/sn/CallStack.d.ts +1 -0
- package/dist/sn/CallStack.d.ts.map +1 -1
- package/dist/sn/ReadState.d.ts +2 -1
- package/dist/sn/ReadState.d.ts.map +1 -1
- package/dist/sn/ScriptIterator.d.ts.map +1 -1
- package/dist/web.js +444 -438
- package/dist/web.js.map +1 -1
- package/package.json +2 -2
package/dist/web.js
CHANGED
|
@@ -8,7 +8,7 @@ var U = (o, t, e) => (zu(o, t, "read from private field"), e ? e.call(o) : t.get
|
|
|
8
8
|
if (t.has(o))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(o) : t.set(o, e);
|
|
11
|
-
}, Q = (o, t, e, r) => (zu(o, t, "write to private field"), r ? r.call(o, e) : t.set(o, e), e),
|
|
11
|
+
}, Q = (o, t, e, r) => (zu(o, t, "write to private field"), r ? r.call(o, e) : t.set(o, e), e), Ie = (o, t, e, r) => ({
|
|
12
12
|
set _(N) {
|
|
13
13
|
Q(o, t, N, e);
|
|
14
14
|
},
|
|
@@ -97,7 +97,7 @@ platform$1.exports;
|
|
|
97
97
|
ft && (lt = nt, nt = null);
|
|
98
98
|
var mt = lt.navigator || {}, wt = mt.userAgent || "";
|
|
99
99
|
nt || (nt = wt);
|
|
100
|
-
var Pt = ft ? !!mt.likeChrome : /\bChrome\b/.test(nt) && !/internal|\n/i.test(X.toString()), Mt = "Object", xt = ft ? Mt : "ScriptBridgingProxyObject", yt = ft ? Mt : "Environment", Ot = ft && lt.java ? "JavaPackage" : tt(lt.java), jt = ft ? Mt : "RuntimeObject", It = /\bJava/.test(Ot) && lt.java, Et = It && tt(lt.environment) == yt, bt = It ? "a" : "α", Ut = It ? "b" : "β", Gt = lt.document || {}, Ft = lt.operamini || lt.opera, Wt = $.test(Wt = ft && Ft ? Ft["[[Class]]"] : tt(Ft)) ? Wt : Ft = null, ut, qt = nt, At = [], oe = null, Zt = nt == wt, St = Zt && Ft && typeof Ft.version == "function" && Ft.version(), ae, kt =
|
|
100
|
+
var Pt = ft ? !!mt.likeChrome : /\bChrome\b/.test(nt) && !/internal|\n/i.test(X.toString()), Mt = "Object", xt = ft ? Mt : "ScriptBridgingProxyObject", yt = ft ? Mt : "Environment", Ot = ft && lt.java ? "JavaPackage" : tt(lt.java), jt = ft ? Mt : "RuntimeObject", It = /\bJava/.test(Ot) && lt.java, Et = It && tt(lt.environment) == yt, bt = It ? "a" : "α", Ut = It ? "b" : "β", Gt = lt.document || {}, Ft = lt.operamini || lt.opera, Wt = $.test(Wt = ft && Ft ? Ft["[[Class]]"] : tt(Ft)) ? Wt : Ft = null, ut, qt = nt, At = [], oe = null, Zt = nt == wt, St = Zt && Ft && typeof Ft.version == "function" && Ft.version(), ae, kt = Re([
|
|
101
101
|
{ label: "EdgeHTML", pattern: "Edge" },
|
|
102
102
|
"Trident",
|
|
103
103
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
|
@@ -107,7 +107,7 @@ platform$1.exports;
|
|
|
107
107
|
"Tasman",
|
|
108
108
|
"KHTML",
|
|
109
109
|
"Gecko"
|
|
110
|
-
]), vt =
|
|
110
|
+
]), vt = Oe([
|
|
111
111
|
"Adobe AIR",
|
|
112
112
|
"Arora",
|
|
113
113
|
"Avant Browser",
|
|
@@ -190,7 +190,7 @@ platform$1.exports;
|
|
|
190
190
|
"Xbox One",
|
|
191
191
|
{ label: "Xbox 360", pattern: "Xbox" },
|
|
192
192
|
"Xoom"
|
|
193
|
-
]), Yt =
|
|
193
|
+
]), Yt = ni({
|
|
194
194
|
Apple: { iPad: 1, iPhone: 1, iPod: 1 },
|
|
195
195
|
Alcatel: {},
|
|
196
196
|
Archos: {},
|
|
@@ -245,34 +245,34 @@ platform$1.exports;
|
|
|
245
245
|
"Windows 98;",
|
|
246
246
|
"Windows "
|
|
247
247
|
]);
|
|
248
|
-
function
|
|
248
|
+
function Re(ge) {
|
|
249
249
|
return at(ge, function(le, te) {
|
|
250
250
|
return le || RegExp("\\b" + (te.pattern || it(te)) + "\\b", "i").exec(nt) && (te.label || te);
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return at(ge, function(le, te,
|
|
255
|
-
return le || (te[Nt] || te[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Nt)] || RegExp("\\b" + it(
|
|
253
|
+
function ni(ge) {
|
|
254
|
+
return at(ge, function(le, te, si) {
|
|
255
|
+
return le || (te[Nt] || te[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Nt)] || RegExp("\\b" + it(si) + "(?:\\b|\\w*\\d)", "i").exec(nt)) && si;
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Oe(ge) {
|
|
259
259
|
return at(ge, function(le, te) {
|
|
260
260
|
return le || RegExp("\\b" + (te.pattern || it(te)) + "\\b", "i").exec(nt) && (te.label || te);
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function mi(ge) {
|
|
264
264
|
return at(ge, function(le, te) {
|
|
265
|
-
var
|
|
266
|
-
return !le && (le = RegExp("\\b" +
|
|
265
|
+
var si = te.pattern || it(te);
|
|
266
|
+
return !le && (le = RegExp("\\b" + si + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(nt)) && (le = Y(le, si, te.label || te)), le;
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
function _i(ge) {
|
|
270
270
|
return at(ge, function(le, te) {
|
|
271
|
-
var
|
|
272
|
-
return !le && (le = RegExp("\\b" +
|
|
271
|
+
var si = te.pattern || it(te);
|
|
272
|
+
return !le && (le = RegExp("\\b" + si + " *\\d+[.\\w_]*", "i").exec(nt) || RegExp("\\b" + si + " *\\w+-[\\w]*", "i").exec(nt) || RegExp("\\b" + si + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(nt)) && ((le = String(te.label && !RegExp(si, "i").test(te.label) ? te.label : le).split("/"))[1] && !/[\d.]+/.test(le[0]) && (le[0] += " " + le[1]), te = te.label || te, le = W(le[0].replace(RegExp(si, "i"), te).replace(RegExp("; *(?:" + te + "[_-])?", "i"), " ").replace(RegExp("(" + te + ")[-_.]?(\\w)", "i"), "$1 $2"))), le;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Ke(ge) {
|
|
276
276
|
return at(ge, function(le, te) {
|
|
277
277
|
return le || (RegExp(te + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(nt) || 0)[1] || null;
|
|
278
278
|
});
|
|
@@ -280,7 +280,7 @@ platform$1.exports;
|
|
|
280
280
|
function Bi() {
|
|
281
281
|
return this.description || "";
|
|
282
282
|
}
|
|
283
|
-
if (kt && (kt = [kt]), /\bAndroid\b/.test(_t) && !Nt && (ut = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(nt)) && (Nt = st(ut[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), Yt && !Nt ? Nt = _i([Yt]) : Yt && Nt && (Nt = Nt.replace(RegExp("^(" + it(Yt) + ")[-_.\\s]", "i"), Yt + " ").replace(RegExp("^(" + it(Yt) + ")[-_.]?(\\w)", "i"), Yt + " $2")), (ut = /\bGoogle TV\b/.exec(Nt)) && (Nt = ut[0]), /\bSimulator\b/i.test(nt) && (Nt = (Nt ? Nt + " " : "") + "Simulator"), vt == "Opera Mini" && /\bOPiOS\b/.test(nt) && At.push("running in Turbo/Uncompressed mode"), vt == "IE" && /\blike iPhone OS\b/.test(nt) ? (ut = ht(nt.replace(/like iPhone OS/, "")), Yt = ut.manufacturer, Nt = ut.product) : /^iP/.test(Nt) ? (vt || (vt = "Safari"), _t = "iOS" + ((ut = / OS ([\d_]+)/i.exec(nt)) ? " " + ut[1].replace(/_/g, ".") : "")) : vt == "Konqueror" && /^Linux\b/i.test(_t) ? _t = "Kubuntu" : Yt && Yt != "Google" && (/Chrome/.test(vt) && !/\bMobile Safari\b/i.test(nt) || /\bVita\b/.test(Nt)) || /\bAndroid\b/.test(_t) && /^Chrome/.test(vt) && /\bVersion\//i.test(nt) ? (vt = "Android Browser", _t = /\bAndroid\b/.test(_t) ? _t : "Android") : vt == "Silk" ? (/\bMobi/i.test(nt) || (_t = "Android", At.unshift("desktop mode")), /Accelerated *= *true/i.test(nt) && At.unshift("accelerated")) : vt == "UC Browser" && /\bUCWEB\b/.test(nt) ? At.push("speed mode") : vt == "PaleMoon" && (ut = /\bFirefox\/([\d.]+)\b/.exec(nt)) ? At.push("identifying as Firefox " + ut[1]) : vt == "Firefox" && (ut = /\b(Mobile|Tablet|TV)\b/i.exec(nt)) ? (_t || (_t = "Firefox OS"), Nt || (Nt = ut[1])) : !vt || (ut = !/\bMinefield\b/i.test(nt) && /\b(?:Firefox|Safari)\b/.exec(vt)) ? (vt && !Nt && /[\/,]|^[^(]+?\)/.test(nt.slice(nt.indexOf(ut + "/") + 8)) && (vt = null), (ut = Nt || Yt || _t) && (Nt || Yt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(_t)) && (vt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(_t) ? _t : ut) + " Browser")) : vt == "Electron" && (ut = (/\bChrome\/([\d.]+)\b/.exec(nt) || 0)[1]) && At.push("Chromium " + ut), St || (St =
|
|
283
|
+
if (kt && (kt = [kt]), /\bAndroid\b/.test(_t) && !Nt && (ut = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(nt)) && (Nt = st(ut[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), Yt && !Nt ? Nt = _i([Yt]) : Yt && Nt && (Nt = Nt.replace(RegExp("^(" + it(Yt) + ")[-_.\\s]", "i"), Yt + " ").replace(RegExp("^(" + it(Yt) + ")[-_.]?(\\w)", "i"), Yt + " $2")), (ut = /\bGoogle TV\b/.exec(Nt)) && (Nt = ut[0]), /\bSimulator\b/i.test(nt) && (Nt = (Nt ? Nt + " " : "") + "Simulator"), vt == "Opera Mini" && /\bOPiOS\b/.test(nt) && At.push("running in Turbo/Uncompressed mode"), vt == "IE" && /\blike iPhone OS\b/.test(nt) ? (ut = ht(nt.replace(/like iPhone OS/, "")), Yt = ut.manufacturer, Nt = ut.product) : /^iP/.test(Nt) ? (vt || (vt = "Safari"), _t = "iOS" + ((ut = / OS ([\d_]+)/i.exec(nt)) ? " " + ut[1].replace(/_/g, ".") : "")) : vt == "Konqueror" && /^Linux\b/i.test(_t) ? _t = "Kubuntu" : Yt && Yt != "Google" && (/Chrome/.test(vt) && !/\bMobile Safari\b/i.test(nt) || /\bVita\b/.test(Nt)) || /\bAndroid\b/.test(_t) && /^Chrome/.test(vt) && /\bVersion\//i.test(nt) ? (vt = "Android Browser", _t = /\bAndroid\b/.test(_t) ? _t : "Android") : vt == "Silk" ? (/\bMobi/i.test(nt) || (_t = "Android", At.unshift("desktop mode")), /Accelerated *= *true/i.test(nt) && At.unshift("accelerated")) : vt == "UC Browser" && /\bUCWEB\b/.test(nt) ? At.push("speed mode") : vt == "PaleMoon" && (ut = /\bFirefox\/([\d.]+)\b/.exec(nt)) ? At.push("identifying as Firefox " + ut[1]) : vt == "Firefox" && (ut = /\b(Mobile|Tablet|TV)\b/i.exec(nt)) ? (_t || (_t = "Firefox OS"), Nt || (Nt = ut[1])) : !vt || (ut = !/\bMinefield\b/i.test(nt) && /\b(?:Firefox|Safari)\b/.exec(vt)) ? (vt && !Nt && /[\/,]|^[^(]+?\)/.test(nt.slice(nt.indexOf(ut + "/") + 8)) && (vt = null), (ut = Nt || Yt || _t) && (Nt || Yt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(_t)) && (vt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(_t) ? _t : ut) + " Browser")) : vt == "Electron" && (ut = (/\bChrome\/([\d.]+)\b/.exec(nt) || 0)[1]) && At.push("Chromium " + ut), St || (St = Ke([
|
|
284
284
|
"(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
|
|
285
285
|
"Version",
|
|
286
286
|
it(vt),
|
|
@@ -316,7 +316,7 @@ platform$1.exports;
|
|
|
316
316
|
}
|
|
317
317
|
else
|
|
318
318
|
(/\bBlackBerry\b/.test(Nt) || /\bBB10\b/.test(nt)) && (ut = (RegExp(Nt.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(nt) || 0)[1] || St) ? (ut = [ut, /BB10/.test(nt)], _t = (ut[1] ? (Nt = null, Yt = "BlackBerry") : "Device Software") + " " + ut[0], St = null) : this != Z && Nt != "Wii" && (Zt && Ft || /Opera/.test(vt) && /\b(?:MSIE|Firefox)\b/i.test(nt) || vt == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(_t) || vt == "IE" && (_t && !/^Win/.test(_t) && St > 5.5 || /\bWindows XP\b/.test(_t) && St > 8 || St == 8 && !/\bTrident\b/.test(nt))) && !$.test(ut = ht.call(Z, nt.replace($, "") + ";")) && ut.name && (ut = "ing as " + ut.name + ((ut = ut.version) ? " " + ut : ""), $.test(vt) ? (/\bIE\b/.test(ut) && _t == "Mac OS" && (_t = null), ut = "identify" + ut) : (ut = "mask" + ut, Wt ? vt = W(Wt.replace(/([a-z])([A-Z])/g, "$1 $2")) : vt = "Opera", /\bIE\b/.test(ut) && (_t = null), Zt || (St = null)), kt = ["Presto"], At.push(ut));
|
|
319
|
-
(ut = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(nt) || 0)[1]) && (ut = [parseFloat(ut.replace(/\.(\d)$/, ".0$1")), ut], vt == "Safari" && ut[1].slice(-1) == "+" ? (vt = "WebKit Nightly", oe = "alpha", St = ut[1].slice(0, -1)) : (St == ut[1] || St == (ut[2] = (/\bSafari\/([\d.]+\+?)/i.exec(nt) || 0)[1])) && (St = null), ut[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(nt) || 0)[1], ut[0] == 537.36 && ut[2] == 537.36 && parseFloat(ut[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Zt || !Pt && !ut[1] ? (kt && (kt[1] = "like Safari"), ut = (ut = ut[0], ut < 400 ? 1 : ut < 500 ? 2 : ut < 526 ? 3 : ut < 533 ? 4 : ut < 534 ? "4+" : ut < 535 ? 5 : ut < 537 ? 6 : ut < 538 ? 7 : ut < 601 ? 8 : ut < 602 ? 9 : ut < 604 ? 10 : ut < 606 ? 11 : ut < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), ut = ut[1] || (ut = ut[0], ut < 530 ? 1 : ut < 532 ? 2 : ut < 532.05 ? 3 : ut < 533 ? 4 : ut < 534.03 ? 5 : ut < 534.07 ? 6 : ut < 534.1 ? 7 : ut < 534.13 ? 8 : ut < 534.16 ? 9 : ut < 534.24 ? 10 : ut < 534.3 ? 11 : ut < 535.01 ? 12 : ut < 535.02 ? "13+" : ut < 535.07 ? 15 : ut < 535.11 ? 16 : ut < 535.19 ? 17 : ut < 536.05 ? 18 : ut < 536.1 ? 19 : ut < 537.01 ? 20 : ut < 537.11 ? "21+" : ut < 537.13 ? 23 : ut < 537.18 ? 24 : ut < 537.24 ? 25 : ut < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (ut += typeof ut == "number" ? ".x" : /[.+]/.test(ut) ? "" : "+")), vt == "Safari" && (!St || parseInt(St) > 45) ? St = ut : vt == "Chrome" && /\bHeadlessChrome/i.test(nt) && At.unshift("headless")), vt == "Opera" && (ut = /\bzbov|zvav$/.exec(_t)) ? (vt += " ", At.unshift("desktop mode"), ut == "zvav" ? (vt += "Mini", St = null) : vt += "Mobile", _t = _t.replace(RegExp(" *" + ut + "$"), "")) : vt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (At.unshift("desktop mode"), vt = "Chrome Mobile", St = null, /\bOS X\b/.test(_t) ? (Yt = "Apple", _t = "iOS 4.3+") : _t = null) : /\bSRWare Iron\b/.test(vt) && !St && (St =
|
|
319
|
+
(ut = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(nt) || 0)[1]) && (ut = [parseFloat(ut.replace(/\.(\d)$/, ".0$1")), ut], vt == "Safari" && ut[1].slice(-1) == "+" ? (vt = "WebKit Nightly", oe = "alpha", St = ut[1].slice(0, -1)) : (St == ut[1] || St == (ut[2] = (/\bSafari\/([\d.]+\+?)/i.exec(nt) || 0)[1])) && (St = null), ut[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(nt) || 0)[1], ut[0] == 537.36 && ut[2] == 537.36 && parseFloat(ut[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Zt || !Pt && !ut[1] ? (kt && (kt[1] = "like Safari"), ut = (ut = ut[0], ut < 400 ? 1 : ut < 500 ? 2 : ut < 526 ? 3 : ut < 533 ? 4 : ut < 534 ? "4+" : ut < 535 ? 5 : ut < 537 ? 6 : ut < 538 ? 7 : ut < 601 ? 8 : ut < 602 ? 9 : ut < 604 ? 10 : ut < 606 ? 11 : ut < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), ut = ut[1] || (ut = ut[0], ut < 530 ? 1 : ut < 532 ? 2 : ut < 532.05 ? 3 : ut < 533 ? 4 : ut < 534.03 ? 5 : ut < 534.07 ? 6 : ut < 534.1 ? 7 : ut < 534.13 ? 8 : ut < 534.16 ? 9 : ut < 534.24 ? 10 : ut < 534.3 ? 11 : ut < 535.01 ? 12 : ut < 535.02 ? "13+" : ut < 535.07 ? 15 : ut < 535.11 ? 16 : ut < 535.19 ? 17 : ut < 536.05 ? 18 : ut < 536.1 ? 19 : ut < 537.01 ? 20 : ut < 537.11 ? "21+" : ut < 537.13 ? 23 : ut < 537.18 ? 24 : ut < 537.24 ? 25 : ut < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (ut += typeof ut == "number" ? ".x" : /[.+]/.test(ut) ? "" : "+")), vt == "Safari" && (!St || parseInt(St) > 45) ? St = ut : vt == "Chrome" && /\bHeadlessChrome/i.test(nt) && At.unshift("headless")), vt == "Opera" && (ut = /\bzbov|zvav$/.exec(_t)) ? (vt += " ", At.unshift("desktop mode"), ut == "zvav" ? (vt += "Mini", St = null) : vt += "Mobile", _t = _t.replace(RegExp(" *" + ut + "$"), "")) : vt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (At.unshift("desktop mode"), vt = "Chrome Mobile", St = null, /\bOS X\b/.test(_t) ? (Yt = "Apple", _t = "iOS 4.3+") : _t = null) : /\bSRWare Iron\b/.test(vt) && !St && (St = Ke("Chrome")), St && St.indexOf(ut = /[\d.]+$/.exec(_t)) == 0 && nt.indexOf("/" + ut + "-") > -1 && (_t = st(_t.replace(ut, ""))), _t && _t.indexOf(vt) != -1 && !RegExp(vt + " OS").test(_t) && (_t = _t.replace(RegExp(" *" + it(vt) + " *"), "")), kt && !/\b(?:Avant|Nook)\b/.test(vt) && (/Browser|Lunascape|Maxthon/.test(vt) || vt != "Safari" && /^iOS/.test(_t) && /\bSafari\b/.test(kt[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(vt) && kt[1]) && (ut = kt[kt.length - 1]) && At.push(ut), At.length && (At = ["(" + At.join("; ") + ")"]), Yt && Nt && Nt.indexOf(Yt) < 0 && At.push("on " + Yt), Nt && At.push((/^on /.test(At[At.length - 1]) ? "" : "on ") + Nt), _t && (ut = / ([\d.+]+)$/.exec(_t), ae = ut && _t.charAt(_t.length - ut[0].length - 1) == "/", _t = {
|
|
320
320
|
architecture: 32,
|
|
321
321
|
family: ut && !ae ? _t.replace(ut[0], "") : _t,
|
|
322
322
|
version: ut ? ut[1] : null,
|
|
@@ -10809,8 +10809,8 @@ function buildNonNativeLine(o, t) {
|
|
|
10809
10809
|
_t ? k.join === LINE_JOIN.BEVEL || oe / tt > J ? (Ft ? (V.push(Zt, St), V.push(st + lt * yt, ht + ft * yt), V.push(Zt, St), V.push(st + mt * yt, ht + wt * yt)) : (V.push(st - lt * xt, ht - ft * xt), V.push(ae, kt), V.push(st - mt * xt, ht - wt * xt), V.push(ae, kt)), q += 2) : k.join === LINE_JOIN.ROUND ? Ft ? (V.push(Zt, St), V.push(st + lt * yt, ht + ft * yt), q += round$1(st, ht, st + lt * yt, ht + ft * yt, st + mt * yt, ht + wt * yt, V, !0) + 4, V.push(Zt, St), V.push(st + mt * yt, ht + wt * yt)) : (V.push(st - lt * xt, ht - ft * xt), V.push(ae, kt), q += round$1(st, ht, st - lt * xt, ht - ft * xt, st - mt * xt, ht - wt * xt, V, !1) + 4, V.push(st - mt * xt, ht - wt * xt), V.push(ae, kt)) : (V.push(Zt, St), V.push(ae, kt)) : (V.push(st - lt * xt, ht - ft * xt), V.push(st + lt * yt, ht + ft * yt), k.join === LINE_JOIN.ROUND ? Ft ? q += round$1(st, ht, st + lt * yt, ht + ft * yt, st + mt * yt, ht + wt * yt, V, !0) + 2 : q += round$1(st, ht, st - lt * xt, ht - ft * xt, st - mt * xt, ht - wt * xt, V, !1) + 2 : k.join === LINE_JOIN.MITER && oe / tt <= J && (Ft ? (V.push(ae, kt), V.push(ae, kt)) : (V.push(Zt, St), V.push(Zt, St)), q += 2), V.push(st - mt * xt, ht - wt * xt), V.push(st + mt * yt, ht + wt * yt), q += 2);
|
|
10810
10810
|
}
|
|
10811
10811
|
it = r[(Y - 2) * 2], at = r[(Y - 2) * 2 + 1], st = r[(Y - 1) * 2], ht = r[(Y - 1) * 2 + 1], lt = -(at - ht), ft = it - st, Pt = Math.sqrt(lt * lt + ft * ft), lt /= Pt, ft /= Pt, lt *= Z, ft *= Z, V.push(st - lt * xt, ht - ft * xt), V.push(st + lt * yt, ht + ft * yt), $ || (k.cap === LINE_CAP.ROUND ? q += round$1(st - lt * (xt - yt) * 0.5, ht - ft * (xt - yt) * 0.5, st - lt * xt, ht - ft * xt, st + lt * yt, ht + ft * yt, V, !1) + 2 : k.cap === LINE_CAP.SQUARE && (q += square(st, ht, lt, ft, xt, yt, !1, V)));
|
|
10812
|
-
for (var
|
|
10813
|
-
it = V[Ot * 2], at = V[Ot * 2 + 1], st = V[(Ot + 1) * 2], ht = V[(Ot + 1) * 2 + 1], ot = V[(Ot + 2) * 2], nt = V[(Ot + 2) * 2 + 1], !(Math.abs(it * (ht - nt) + st * (nt - at) + ot * (at - ht)) <
|
|
10812
|
+
for (var Re = t.indices, ni = GRAPHICS_CURVES.epsilon * GRAPHICS_CURVES.epsilon, Ot = W; Ot < q + W - 2; ++Ot)
|
|
10813
|
+
it = V[Ot * 2], at = V[Ot * 2 + 1], st = V[(Ot + 1) * 2], ht = V[(Ot + 1) * 2 + 1], ot = V[(Ot + 2) * 2], nt = V[(Ot + 2) * 2 + 1], !(Math.abs(it * (ht - nt) + st * (nt - at) + ot * (at - ht)) < ni) && Re.push(Ot, Ot + 1, Ot + 2);
|
|
10814
10814
|
}
|
|
10815
10815
|
}
|
|
10816
10816
|
function buildNativeLine(o, t) {
|
|
@@ -13806,11 +13806,11 @@ void main(void)\r
|
|
|
13806
13806
|
for (var ot in yt) {
|
|
13807
13807
|
var bt = yt[ot];
|
|
13808
13808
|
if (this.anchor.x !== 0 || this.anchor.y !== 0)
|
|
13809
|
-
for (var
|
|
13810
|
-
bt.vertices[
|
|
13809
|
+
for (var Re = 0, ni = this._textWidth * this.anchor.x, Oe = this._textHeight * this.anchor.y, mi = 0; mi < bt.total; mi++)
|
|
13810
|
+
bt.vertices[Re++] -= ni, bt.vertices[Re++] -= Oe, bt.vertices[Re++] -= ni, bt.vertices[Re++] -= Oe, bt.vertices[Re++] -= ni, bt.vertices[Re++] -= Oe, bt.vertices[Re++] -= ni, bt.vertices[Re++] -= Oe;
|
|
13811
13811
|
this._maxLineHeight = st * k;
|
|
13812
|
-
var _i = bt.mesh.geometry.getBuffer("aVertexPosition"),
|
|
13813
|
-
_i.data = bt.vertices,
|
|
13812
|
+
var _i = bt.mesh.geometry.getBuffer("aVertexPosition"), Ke = bt.mesh.geometry.getBuffer("aTextureCoord"), Bi = bt.mesh.geometry.getIndex();
|
|
13813
|
+
_i.data = bt.vertices, Ke.data = bt.uvs, Bi.data = bt.indices, _i.update(), Ke.update(), Bi.update();
|
|
13814
13814
|
}
|
|
13815
13815
|
for (var ot = 0; ot < B.length; ot++)
|
|
13816
13816
|
charRenderDataPool.push(B[ot]);
|
|
@@ -16255,8 +16255,8 @@ class ConfigBase {
|
|
|
16255
16255
|
// 内容紹介。端的に記入
|
|
16256
16256
|
version: "1.0"
|
|
16257
16257
|
},
|
|
16258
|
-
log: { max_len:
|
|
16259
|
-
//
|
|
16258
|
+
log: { max_len: 64 },
|
|
16259
|
+
// プレイヤーが読んだ文章を読み返せる履歴のページ数
|
|
16260
16260
|
init: {
|
|
16261
16261
|
bg_color: "#000000",
|
|
16262
16262
|
// 背景色
|
|
@@ -16437,7 +16437,7 @@ function splitAmpersand(o) {
|
|
|
16437
16437
|
cast: e === 3 ? t[2].trim() : void 0
|
|
16438
16438
|
};
|
|
16439
16439
|
}
|
|
16440
|
-
var tn, en, xa, Ea, Sa,
|
|
16440
|
+
var tn, en, xa, Ea, Sa, He, Ta, cs, mh;
|
|
16441
16441
|
class Grammar {
|
|
16442
16442
|
constructor() {
|
|
16443
16443
|
K(this, cs);
|
|
@@ -16446,12 +16446,12 @@ class Grammar {
|
|
|
16446
16446
|
K(this, xa, new RegExp(""));
|
|
16447
16447
|
K(this, Ea, "");
|
|
16448
16448
|
K(this, Sa, "");
|
|
16449
|
-
K(this,
|
|
16449
|
+
K(this, He, void 0);
|
|
16450
16450
|
K(this, Ta, void 0);
|
|
16451
16451
|
this.setEscape("");
|
|
16452
16452
|
}
|
|
16453
16453
|
setEscape(t) {
|
|
16454
|
-
if (U(this,
|
|
16454
|
+
if (U(this, He) && t in U(this, He))
|
|
16455
16455
|
throw "[エスケープ文字] char【" + t + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16456
16456
|
Q(this, tn, new RegExp(
|
|
16457
16457
|
(t ? `\\${t}\\S|` : "") + // エスケープシーケンス
|
|
@@ -16474,24 +16474,24 @@ class Grammar {
|
|
|
16474
16474
|
throw "[bracket2macro] textは括弧の前後を示す二文字を指定してください";
|
|
16475
16475
|
if (!(k in e))
|
|
16476
16476
|
throw `[bracket2macro] 未定義のタグ又はマクロ[${k}]です`;
|
|
16477
|
-
U(this,
|
|
16477
|
+
U(this, He) ?? Q(this, He, {});
|
|
16478
16478
|
const $ = D.charAt(1);
|
|
16479
|
-
if (B in U(this,
|
|
16479
|
+
if (B in U(this, He))
|
|
16480
16480
|
throw "[bracket2macro] text【" + B + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16481
|
-
if ($ in U(this,
|
|
16481
|
+
if ($ in U(this, He))
|
|
16482
16482
|
throw "[bracket2macro] text【" + $ + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16483
16483
|
if (U(this, en).test(B))
|
|
16484
16484
|
throw "[bracket2macro] text【" + B + "】は括弧マクロに使用できない文字です";
|
|
16485
16485
|
if (U(this, en).test($))
|
|
16486
16486
|
throw "[bracket2macro] text【" + $ + "】は括弧マクロに使用できない文字です";
|
|
16487
|
-
U(this,
|
|
16487
|
+
U(this, He)[$] = "0", U(this, He)[B] = `[${k} text=`, this.addC2M(`\\${B}[^\\${$}]*\\${$}`, `\\${B}\\${$}`), et(this, cs, mh).call(this, r, N);
|
|
16488
16488
|
}
|
|
16489
16489
|
// 一文字マクロの定義
|
|
16490
16490
|
char2macro(t, e, r, N) {
|
|
16491
16491
|
const { char: k, name: D } = t;
|
|
16492
16492
|
if (!k)
|
|
16493
16493
|
throw "[char2macro] charは必須です";
|
|
16494
|
-
if (U(this,
|
|
16494
|
+
if (U(this, He) ?? Q(this, He, {}), k in U(this, He))
|
|
16495
16495
|
throw "[char2macro] char【" + k + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16496
16496
|
if (U(this, en).test(k))
|
|
16497
16497
|
throw "[char2macro] char【" + k + "】は一文字マクロに使用できない文字です";
|
|
@@ -16499,7 +16499,7 @@ class Grammar {
|
|
|
16499
16499
|
throw "[char2macro] nameは必須です";
|
|
16500
16500
|
if (!(D in e))
|
|
16501
16501
|
throw `[char2macro] 未定義のタグ又はマクロ[${D}]です`;
|
|
16502
|
-
U(this,
|
|
16502
|
+
U(this, He)[k] = `[${D}]`, this.addC2M(`\\${k}`, `\\${k}`), et(this, cs, mh).call(this, r, N);
|
|
16503
16503
|
}
|
|
16504
16504
|
addC2M(t, e) {
|
|
16505
16505
|
Q(this, Ea, U(this, Ea) + `${t}|`), Q(this, Sa, U(this, Sa) + `${e}`), Q(this, xa, new RegExp(
|
|
@@ -16535,8 +16535,8 @@ class Grammar {
|
|
|
16535
16535
|
}
|
|
16536
16536
|
//4tst
|
|
16537
16537
|
}
|
|
16538
|
-
tn = new WeakMap(), en = new WeakMap(), xa = new WeakMap(), Ea = new WeakMap(), Sa = new WeakMap(),
|
|
16539
|
-
if (U(this,
|
|
16538
|
+
tn = new WeakMap(), en = new WeakMap(), xa = new WeakMap(), Ea = new WeakMap(), Sa = new WeakMap(), He = new WeakMap(), Ta = new WeakMap(), cs = new WeakSet(), mh = function(t, e = 0) {
|
|
16539
|
+
if (U(this, He)) {
|
|
16540
16540
|
for (let r = t.len - 1; r >= e; --r) {
|
|
16541
16541
|
const N = t.aToken[r];
|
|
16542
16542
|
if (this.testNoTxt(N.at(0) ?? `
|
|
@@ -16548,7 +16548,7 @@ tn = new WeakMap(), en = new WeakMap(), xa = new WeakMap(), Ea = new WeakMap(),
|
|
|
16548
16548
|
let B = 1;
|
|
16549
16549
|
for (let $ = D.length - 1; $ >= 0; --$) {
|
|
16550
16550
|
let H = D[$];
|
|
16551
|
-
const z = U(this,
|
|
16551
|
+
const z = U(this, He)[H.at(0) ?? " "];
|
|
16552
16552
|
z && (H = z + (z.at(-1) === "]" ? "" : `'${H.slice(1, -1)}']`)), t.aToken.splice(r, B, H), t.aLNum.splice(r, B, k), B = 0;
|
|
16553
16553
|
}
|
|
16554
16554
|
}
|
|
@@ -16688,8 +16688,8 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
16688
16688
|
return B(rt, function() {
|
|
16689
16689
|
var gt;
|
|
16690
16690
|
dt = { v: dt.v << 1 | (gt = dt.buf, gt[0] >> 7), buf: function(Tt) {
|
|
16691
|
-
var Ct = $(function(Rt, Vt, ve,
|
|
16692
|
-
return Rt.concat(ve ===
|
|
16691
|
+
var Ct = $(function(Rt, Vt, ve, je) {
|
|
16692
|
+
return Rt.concat(ve === je.length - 1 ? Buffer.from([Vt, 0]).readUInt16BE(0) : je.readUInt16BE(ve));
|
|
16693
16693
|
}, [], Tt);
|
|
16694
16694
|
return Buffer.from(H(function(Rt) {
|
|
16695
16695
|
return (Rt << 1 & 65535) >> 8;
|
|
@@ -16720,8 +16720,8 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
16720
16720
|
throw new Error(Tt + " bit range requested exceeds 48 bit (6 byte) Number max.");
|
|
16721
16721
|
return new k(function(Ct, Rt) {
|
|
16722
16722
|
var Vt = gt + Rt;
|
|
16723
|
-
return Vt > Ct.length ? nt(Rt, gt.toString() + " bytes") : ot(Vt, $(function(ve,
|
|
16724
|
-
var ke = z(
|
|
16723
|
+
return Vt > Ct.length ? nt(Rt, gt.toString() + " bytes") : ot(Vt, $(function(ve, je) {
|
|
16724
|
+
var ke = z(je, ve.buf);
|
|
16725
16725
|
return { coll: ve.coll.concat(ke.v), buf: ke.buf };
|
|
16726
16726
|
}, { coll: [], buf: Ct.slice(Rt, Vt) }, rt).coll);
|
|
16727
16727
|
});
|
|
@@ -16786,13 +16786,13 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
16786
16786
|
var Vt = Array.from(Ct);
|
|
16787
16787
|
return Vt.sort(), Vt;
|
|
16788
16788
|
}
|
|
16789
|
-
for (var ve = {},
|
|
16790
|
-
ve[gt[
|
|
16789
|
+
for (var ve = {}, je = 0; je < gt.length; je++)
|
|
16790
|
+
ve[gt[je]] = !0;
|
|
16791
16791
|
for (var ke = 0; ke < Tt.length; ke++)
|
|
16792
16792
|
ve[Tt[ke]] = !0;
|
|
16793
16793
|
var ir = [];
|
|
16794
|
-
for (var
|
|
16795
|
-
({}).hasOwnProperty.call(ve,
|
|
16794
|
+
for (var ai in ve)
|
|
16795
|
+
({}).hasOwnProperty.call(ve, ai) && ir.push(ai);
|
|
16796
16796
|
return ir.sort(), ir;
|
|
16797
16797
|
}(rt.expected, ct.expected) : ct.expected;
|
|
16798
16798
|
return { status: rt.status, index: rt.index, value: rt.value, furthest: ct.furthest, expected: dt };
|
|
@@ -16845,35 +16845,35 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
16845
16845
|
return { from: rt - ct > 0 ? rt - ct : 0, to: rt + dt > gt ? gt : rt + dt };
|
|
16846
16846
|
}
|
|
16847
16847
|
function ut(rt, ct) {
|
|
16848
|
-
var dt, gt, Tt, Ct, Rt, Vt = ct.index, ve = Vt.offset,
|
|
16848
|
+
var dt, gt, Tt, Ct, Rt, Vt = ct.index, ve = Vt.offset, je = 1;
|
|
16849
16849
|
if (ve === rt.length)
|
|
16850
16850
|
return "Got the end of the input";
|
|
16851
16851
|
if (ht(rt)) {
|
|
16852
|
-
var ke = ve - ve % It, ir = ve - ke,
|
|
16852
|
+
var ke = ve - ve % It, ir = ve - ke, ai = Wt(ke, Et, bt + It, rt.length), rr = H(function(Me) {
|
|
16853
16853
|
return H(function(is) {
|
|
16854
16854
|
return Ft(is.toString(16), 2, "0");
|
|
16855
|
-
},
|
|
16856
|
-
}, function(
|
|
16857
|
-
var rs =
|
|
16855
|
+
}, Me);
|
|
16856
|
+
}, function(Me, is) {
|
|
16857
|
+
var rs = Me.length, qr = [], ns = 0;
|
|
16858
16858
|
if (rs <= is)
|
|
16859
|
-
return [
|
|
16859
|
+
return [Me.slice()];
|
|
16860
16860
|
for (var ss = 0; ss < rs; ss++)
|
|
16861
|
-
qr[ns] || qr.push([]), qr[ns].push(
|
|
16861
|
+
qr[ns] || qr.push([]), qr[ns].push(Me[ss]), (ss + 1) % is == 0 && ns++;
|
|
16862
16862
|
return qr;
|
|
16863
|
-
}(rt.slice(
|
|
16864
|
-
Ct = function(
|
|
16865
|
-
return
|
|
16866
|
-
}(
|
|
16867
|
-
return
|
|
16863
|
+
}(rt.slice(ai.from, ai.to).toJSON().data, It));
|
|
16864
|
+
Ct = function(Me) {
|
|
16865
|
+
return Me.from === 0 && Me.to === 1 ? { from: Me.from, to: Me.to } : { from: Me.from / It, to: Math.floor(Me.to / It) };
|
|
16866
|
+
}(ai), gt = ke / It, dt = 3 * ir, ir >= 4 && (dt += 1), je = 2, Tt = H(function(Me) {
|
|
16867
|
+
return Me.length <= 4 ? Me.join(" ") : Me.slice(0, 4).join(" ") + " " + Me.slice(4).join(" ");
|
|
16868
16868
|
}, rr), (Rt = (8 * (Ct.to > 0 ? Ct.to - 1 : Ct.to)).toString(16).length) < 2 && (Rt = 2);
|
|
16869
16869
|
} else {
|
|
16870
16870
|
var es = rt.split(/\r\n|[\n\r\u2028\u2029]/);
|
|
16871
16871
|
dt = Vt.column - 1, gt = Vt.line - 1, Ct = Wt(gt, Ot, jt, es.length), Tt = es.slice(Ct.from, Ct.to), Rt = Ct.to.toString().length;
|
|
16872
16872
|
}
|
|
16873
16873
|
var Hd = gt - Ct.from;
|
|
16874
|
-
return ht(rt) && (Rt = (8 * (Ct.to > 0 ? Ct.to - 1 : Ct.to)).toString(16).length) < 2 && (Rt = 2), $(function(
|
|
16874
|
+
return ht(rt) && (Rt = (8 * (Ct.to > 0 ? Ct.to - 1 : Ct.to)).toString(16).length) < 2 && (Rt = 2), $(function(Me, is, rs) {
|
|
16875
16875
|
var qr, ns = rs === Hd, ss = ns ? "> " : Ut;
|
|
16876
|
-
return qr = ht(rt) ? Ft((8 * (Ct.from + rs)).toString(16), Rt, "0") : Ft((Ct.from + rs + 1).toString(), Rt, " "), [].concat(
|
|
16876
|
+
return qr = ht(rt) ? Ft((8 * (Ct.from + rs)).toString(16), Rt, "0") : Ft((Ct.from + rs + 1).toString(), Rt, " "), [].concat(Me, [ss + qr + " | " + is], ns ? [Ut + Gt(" ", Rt) + " | " + Ft("", dt, " ") + Gt("^", je)] : []);
|
|
16877
16877
|
}, [], Tt).join(`
|
|
16878
16878
|
`);
|
|
16879
16879
|
}
|
|
@@ -16979,25 +16979,25 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
16979
16979
|
return nt(dt, rt);
|
|
16980
16980
|
});
|
|
16981
16981
|
}
|
|
16982
|
-
function
|
|
16982
|
+
function Re(rt) {
|
|
16983
16983
|
if (at(rt))
|
|
16984
16984
|
return k(function(ct, dt) {
|
|
16985
16985
|
var gt = rt._(ct, dt);
|
|
16986
16986
|
return gt.index = dt, gt.value = "", gt;
|
|
16987
16987
|
});
|
|
16988
16988
|
if (typeof rt == "string")
|
|
16989
|
-
return
|
|
16989
|
+
return Re(vt(rt));
|
|
16990
16990
|
if (rt instanceof RegExp)
|
|
16991
|
-
return
|
|
16991
|
+
return Re(Nt(rt));
|
|
16992
16992
|
throw new Error("not a string, regexp, or parser: " + rt);
|
|
16993
16993
|
}
|
|
16994
|
-
function
|
|
16994
|
+
function ni(rt) {
|
|
16995
16995
|
return wt(rt), k(function(ct, dt) {
|
|
16996
16996
|
var gt = rt._(ct, dt), Tt = ct.slice(dt, gt.index);
|
|
16997
16997
|
return gt.status ? nt(dt, 'not "' + Tt + '"') : ot(dt, null);
|
|
16998
16998
|
});
|
|
16999
16999
|
}
|
|
17000
|
-
function
|
|
17000
|
+
function Oe(rt) {
|
|
17001
17001
|
return xt(rt), k(function(ct, dt) {
|
|
17002
17002
|
var gt = Pt(ct, dt);
|
|
17003
17003
|
return dt < ct.length && rt(gt) ? ot(dt + 1, gt) : nt(dt, "a character/byte matching " + rt);
|
|
@@ -17111,11 +17111,11 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17111
17111
|
return ct[0];
|
|
17112
17112
|
});
|
|
17113
17113
|
}, D.mark = function() {
|
|
17114
|
-
return Zt(
|
|
17114
|
+
return Zt(Ke, this, Ke, function(rt, ct, dt) {
|
|
17115
17115
|
return { start: rt, value: ct, end: dt };
|
|
17116
17116
|
});
|
|
17117
17117
|
}, D.node = function(rt) {
|
|
17118
|
-
return Zt(
|
|
17118
|
+
return Zt(Ke, this, Ke, function(ct, dt, gt) {
|
|
17119
17119
|
return { name: rt, value: dt, start: ct, end: gt };
|
|
17120
17120
|
});
|
|
17121
17121
|
}, D.sepBy = function(rt) {
|
|
@@ -17123,9 +17123,9 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17123
17123
|
}, D.sepBy1 = function(rt) {
|
|
17124
17124
|
return kt(this, rt);
|
|
17125
17125
|
}, D.lookahead = function(rt) {
|
|
17126
|
-
return this.skip(
|
|
17126
|
+
return this.skip(Re(rt));
|
|
17127
17127
|
}, D.notFollowedBy = function(rt) {
|
|
17128
|
-
return this.skip(
|
|
17128
|
+
return this.skip(ni(rt));
|
|
17129
17129
|
}, D.desc = function(rt) {
|
|
17130
17130
|
st(rt) || (rt = [rt]);
|
|
17131
17131
|
var ct = this;
|
|
@@ -17146,7 +17146,7 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17146
17146
|
return Tt.status ? lt(rt(Tt.value)._(dt, Tt.index), Tt) : Tt;
|
|
17147
17147
|
});
|
|
17148
17148
|
}, D.concat = D.or, D.empty = _i, D.of = Yt, D["fantasy-land/ap"] = D.ap, D["fantasy-land/chain"] = D.chain, D["fantasy-land/concat"] = D.concat, D["fantasy-land/empty"] = D.empty, D["fantasy-land/of"] = D.of, D["fantasy-land/map"] = D.map;
|
|
17149
|
-
var
|
|
17149
|
+
var Ke = k(function(rt, ct) {
|
|
17150
17150
|
return ot(ct, mt(rt, ct));
|
|
17151
17151
|
}), Bi = k(function(rt, ct) {
|
|
17152
17152
|
return ct >= rt.length ? nt(ct, "any character/byte") : ot(ct + 1, Pt(rt, ct));
|
|
@@ -17154,7 +17154,7 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17154
17154
|
return ot(rt.length, rt.slice(ct));
|
|
17155
17155
|
}), ge = k(function(rt, ct) {
|
|
17156
17156
|
return ct < rt.length ? nt(ct, "EOF") : ot(ct, null);
|
|
17157
|
-
}), le = Nt(/[0-9]/).desc("a digit"), te = Nt(/[0-9]*/).desc("optional digits"),
|
|
17157
|
+
}), le = Nt(/[0-9]/).desc("a digit"), te = Nt(/[0-9]*/).desc("optional digits"), si = Nt(/[a-z]/i).desc("a letter"), Ud = Nt(/[a-z]*/i).desc("optional letters"), Gd = Nt(/\s*/).desc("optional whitespace"), $d = Nt(/\s+/).desc("whitespace"), Hc = vt("\r"), zc = vt(`
|
|
17158
17158
|
`), Vc = vt(`\r
|
|
17159
17159
|
`), Xc = St(Vc, zc, Hc).desc("newline"), jd = St(Xc, ge);
|
|
17160
17160
|
k.all = xe, k.alt = St, k.any = Bi, k.cr = Hc, k.createLanguage = function(rt) {
|
|
@@ -17168,18 +17168,18 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17168
17168
|
return ct;
|
|
17169
17169
|
}, k.crlf = Vc, k.custom = function(rt) {
|
|
17170
17170
|
return k(rt(ot, nt));
|
|
17171
|
-
}, k.digit = le, k.digits = te, k.empty = _i, k.end = jd, k.eof = ge, k.fail = _t, k.formatError = qt, k.index =
|
|
17172
|
-
return
|
|
17171
|
+
}, k.digit = le, k.digits = te, k.empty = _i, k.end = jd, k.eof = ge, k.fail = _t, k.formatError = qt, k.index = Ke, k.isParser = at, k.lazy = mi, k.letter = si, k.letters = Ud, k.lf = zc, k.lookahead = Re, k.makeFailure = nt, k.makeSuccess = ot, k.newline = Xc, k.noneOf = function(rt) {
|
|
17172
|
+
return Oe(function(ct) {
|
|
17173
17173
|
return rt.indexOf(ct) < 0;
|
|
17174
17174
|
}).desc("none of '" + rt + "'");
|
|
17175
|
-
}, k.notFollowedBy =
|
|
17175
|
+
}, k.notFollowedBy = ni, k.of = Yt, k.oneOf = function(rt) {
|
|
17176
17176
|
for (var ct = rt.split(""), dt = 0; dt < ct.length; dt++)
|
|
17177
17177
|
ct[dt] = "'" + ct[dt] + "'";
|
|
17178
|
-
return
|
|
17178
|
+
return Oe(function(gt) {
|
|
17179
17179
|
return rt.indexOf(gt) >= 0;
|
|
17180
17180
|
}).desc(ct);
|
|
17181
17181
|
}, k.optWhitespace = Gd, k.Parser = k, k.range = function(rt, ct) {
|
|
17182
|
-
return
|
|
17182
|
+
return Oe(function(dt) {
|
|
17183
17183
|
return rt <= dt && dt <= ct;
|
|
17184
17184
|
}).desc(rt + "-" + ct);
|
|
17185
17185
|
}, k.regex = Nt, k.regexp = Nt, k.sepBy = ae, k.sepBy1 = kt, k.seq = oe, k.seqMap = Zt, k.seqObj = function() {
|
|
@@ -17198,14 +17198,14 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17198
17198
|
}
|
|
17199
17199
|
if (dt === 0)
|
|
17200
17200
|
throw new Error("seqObj expects at least one named parser, found zero");
|
|
17201
|
-
return k(function(ve,
|
|
17202
|
-
for (var ke, ir = {},
|
|
17201
|
+
return k(function(ve, je) {
|
|
17202
|
+
for (var ke, ir = {}, ai = 0; ai < Tt; ai += 1) {
|
|
17203
17203
|
var rr, es;
|
|
17204
|
-
if (st(gt[
|
|
17204
|
+
if (st(gt[ai]) ? (rr = gt[ai][0], es = gt[ai][1]) : (rr = null, es = gt[ai]), !(ke = lt(es._(ve, je), ke)).status)
|
|
17205
17205
|
return ke;
|
|
17206
|
-
rr && (ir[rr] = ke.value),
|
|
17206
|
+
rr && (ir[rr] = ke.value), je = ke.index;
|
|
17207
17207
|
}
|
|
17208
|
-
return lt(ot(
|
|
17208
|
+
return lt(ot(je, ir), ke);
|
|
17209
17209
|
});
|
|
17210
17210
|
}, k.string = vt, k.succeed = Yt, k.takeWhile = function(rt) {
|
|
17211
17211
|
return xt(rt), k(function(ct, dt) {
|
|
@@ -17213,7 +17213,7 @@ var parsimmon_umd_min = { exports: {} };
|
|
|
17213
17213
|
gt++;
|
|
17214
17214
|
return ot(gt, ct.slice(dt, gt));
|
|
17215
17215
|
});
|
|
17216
|
-
}, k.test =
|
|
17216
|
+
}, k.test = Oe, k.whitespace = $d, k["fantasy-land/empty"] = _i, k["fantasy-land/of"] = Yt, k.Binary = { bitSeq: Y, bitSeqObj: function(rt) {
|
|
17217
17217
|
V();
|
|
17218
17218
|
var ct = {}, dt = 0, gt = H(function(Ct) {
|
|
17219
17219
|
if (st(Ct)) {
|
|
@@ -17666,7 +17666,7 @@ class Areas {
|
|
|
17666
17666
|
return t.slice(1);
|
|
17667
17667
|
}
|
|
17668
17668
|
}
|
|
17669
|
-
var
|
|
17669
|
+
var Ae, gi, Te, ar, we, li, Gi, Ra, Fh, Oa, Xu, Ma, Ia, Bh, tf, Uh, ef, yi, Ui, Gh, rf, $h, nf, jh, sf, Hh, af, zh, of, Vh, hf, Xh, lf, Yh, uf, vs, gh, Aa, Yu, La, an, Na, Wu, Wh, qh, ms, ka, _s, yh, Zh, cf, Kh, ff, Da, qu, Fa, Zu, Jh, df;
|
|
17670
17670
|
const ls = class {
|
|
17671
17671
|
constructor(t, e) {
|
|
17672
17672
|
K(this, Oa);
|
|
@@ -17706,17 +17706,17 @@ const ls = class {
|
|
|
17706
17706
|
K(this, Da);
|
|
17707
17707
|
K(this, Fa);
|
|
17708
17708
|
K(this, Jh);
|
|
17709
|
-
K(this,
|
|
17710
|
-
K(this, gi, U(this,
|
|
17711
|
-
K(this,
|
|
17709
|
+
K(this, Ae, { sys: {}, save: {}, tmp: {}, mp: {} });
|
|
17710
|
+
K(this, gi, U(this, Ae).save);
|
|
17711
|
+
K(this, Te, U(this, Ae).tmp);
|
|
17712
17712
|
K(this, ar, void 0);
|
|
17713
|
-
K(this,
|
|
17714
|
-
K(this,
|
|
17713
|
+
K(this, we, { sys: {}, mark: {}, kidoku: {} });
|
|
17714
|
+
K(this, li, void 0);
|
|
17715
17715
|
K(this, Gi, {});
|
|
17716
17716
|
K(this, Ra, void 0);
|
|
17717
17717
|
K(this, Fh, {
|
|
17718
17718
|
auth: (t, e) => et(this, Oa, Xu).call(this, e.hBreakpoint.aData),
|
|
17719
|
-
var: (t, e) => U(this, ar).send2Dbg(e.ri, { v: U(this,
|
|
17719
|
+
var: (t, e) => U(this, ar).send2Dbg(e.ri, { v: U(this, Ae)[e.scope] ?? {} }),
|
|
17720
17720
|
set_var: (t, e) => {
|
|
17721
17721
|
try {
|
|
17722
17722
|
U(this, La).call(this, e.nm, e.val), U(this, ar).send2Dbg(e.ri, {});
|
|
@@ -17732,7 +17732,7 @@ const ls = class {
|
|
|
17732
17732
|
});
|
|
17733
17733
|
K(this, Ia, (t) => {
|
|
17734
17734
|
});
|
|
17735
|
-
pt(this, "getMark", (t) => U(this,
|
|
17735
|
+
pt(this, "getMark", (t) => U(this, we).mark[t]);
|
|
17736
17736
|
pt(this, "getAreaKidoku", (t) => U(this, Gi)[t]);
|
|
17737
17737
|
K(this, La, (t, e, r = !0) => {
|
|
17738
17738
|
if (!t)
|
|
@@ -17742,7 +17742,7 @@ const ls = class {
|
|
|
17742
17742
|
const N = PropParser.getValName(t);
|
|
17743
17743
|
if (N === null)
|
|
17744
17744
|
throw "[変数参照] name(" + t + ")が変数名として異常です";
|
|
17745
|
-
const k = U(this,
|
|
17745
|
+
const k = U(this, Ae)[N.scope];
|
|
17746
17746
|
if (!k)
|
|
17747
17747
|
throw "[変数に値セット] scopeが異常【" + N.scope + "】です";
|
|
17748
17748
|
const D = N.name;
|
|
@@ -17756,7 +17756,7 @@ const ls = class {
|
|
|
17756
17756
|
const r = PropParser.getValName(t);
|
|
17757
17757
|
if (r === null)
|
|
17758
17758
|
throw "[変数参照] name(" + t + ")が変数名として異常です";
|
|
17759
|
-
const N = U(this,
|
|
17759
|
+
const N = U(this, Ae)[r.scope];
|
|
17760
17760
|
if (!N)
|
|
17761
17761
|
throw "[変数参照] scopeが異常【" + r.scope + "】です";
|
|
17762
17762
|
const k = r.name;
|
|
@@ -17798,7 +17798,7 @@ const ls = class {
|
|
|
17798
17798
|
K(this, qh, () => {
|
|
17799
17799
|
const t = { tmp: {}, sys: {}, save: {}, mp: {} };
|
|
17800
17800
|
for (let e in t) {
|
|
17801
|
-
const r = U(this,
|
|
17801
|
+
const r = U(this, Ae)[e], N = t[e];
|
|
17802
17802
|
for (let [k, D] of Object.entries(r))
|
|
17803
17803
|
N[k] = Object.prototype.toString.call(D) === "[object Function]" ? D() : D;
|
|
17804
17804
|
}
|
|
@@ -17831,23 +17831,23 @@ const ls = class {
|
|
|
17831
17831
|
});
|
|
17832
17832
|
if (this.cfg = t, e.let = (k) => et(this, yi, Ui).call(this, k), e.let_abs = (k) => et(this, Gh, rf).call(this, k), e.let_char_at = (k) => et(this, $h, nf).call(this, k), e.let_index_of = (k) => et(this, jh, sf).call(this, k), e.let_length = (k) => et(this, Hh, af).call(this, k), e.let_replace = (k) => et(this, zh, of).call(this, k), e.let_round = (k) => et(this, Vh, hf).call(this, k), e.let_search = (k) => et(this, Xh, lf).call(this, k), e.let_substr = (k) => et(this, Yh, uf).call(this, k), e.clearsysvar = () => et(this, vs, gh).call(this), e.clearvar = () => et(this, Aa, Yu).call(this), e.dump_val = () => U(this, qh).call(this), e.copybookmark = (k) => et(this, Bh, tf).call(this, k), e.erasebookmark = (k) => et(this, Uh, ef).call(this, k), U(this, gi)["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
|
|
17833
17833
|
const k = [];
|
|
17834
|
-
for (const D of Object.keys(U(this,
|
|
17835
|
-
const B = { ...U(this,
|
|
17834
|
+
for (const D of Object.keys(U(this, we).mark).sort()) {
|
|
17835
|
+
const B = { ...U(this, we).mark[D].json };
|
|
17836
17836
|
B.place = D, k.push(B);
|
|
17837
17837
|
}
|
|
17838
17838
|
return JSON.stringify(k);
|
|
17839
|
-
}), U(this,
|
|
17839
|
+
}), U(this, Te)["const.sn.isFirstBoot"] = !0, U(this, Te)["const.sn.last_page_text"] = "", U(this, Te)["const.sn.last_page_plain_text"] = "", U(this, Te)["const.sn.displayState"] = !1, U(this, Te)["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), U(this, Te)["const.Date.getDateStr"] = () => getDateStr(), U(this, Te)["const.sn.platform"] = JSON.stringify(platform), et(this, vs, gh).call(this), et(this, Aa, Yu).call(this), U(this, Te)["const.sn.config.window.width"] = t.oCfg.window.width, U(this, Te)["const.sn.config.window.height"] = t.oCfg.window.height, U(this, Te)["const.sn.config.book.title"] = t.oCfg.book.title, U(this, Te)["const.sn.config.book.version"] = t.oCfg.book.version, U(this, Te)["const.sn.Math.PI"] = Math.PI, typeof window > "u")
|
|
17840
17840
|
return;
|
|
17841
17841
|
const r = window, N = r.AudioContext ?? r.webkitAudioContext;
|
|
17842
|
-
U(this,
|
|
17842
|
+
U(this, Te)["const.sn.needClick2Play"] = () => new N().state === "suspended";
|
|
17843
17843
|
}
|
|
17844
17844
|
setSys(t) {
|
|
17845
|
-
Q(this, ar, t), t.initVal(U(this,
|
|
17845
|
+
Q(this, ar, t), t.initVal(U(this, we), U(this, Te), (e) => {
|
|
17846
17846
|
this.updateData(e), sessionStorage.clear();
|
|
17847
17847
|
const r = this.cfg.getNs();
|
|
17848
17848
|
Q(this, Ma, this.cfg.oCfg.debug.variable ? () => {
|
|
17849
17849
|
const k = {};
|
|
17850
|
-
for (const [X, V] of Object.entries(U(this,
|
|
17850
|
+
for (const [X, V] of Object.entries(U(this, li)))
|
|
17851
17851
|
k["sys:" + X] = V instanceof Function ? V() : V;
|
|
17852
17852
|
sessionStorage[r + "sys"] = JSON.stringify(k);
|
|
17853
17853
|
const D = {};
|
|
@@ -17855,19 +17855,19 @@ const ls = class {
|
|
|
17855
17855
|
D["save:" + X] = V instanceof Function ? V() : V;
|
|
17856
17856
|
sessionStorage[r + "save"] = JSON.stringify(D);
|
|
17857
17857
|
const B = {};
|
|
17858
|
-
for (const [X, V] of Object.entries(U(this,
|
|
17858
|
+
for (const [X, V] of Object.entries(U(this, Te)))
|
|
17859
17859
|
B[X] = V instanceof Function ? V() : V;
|
|
17860
17860
|
sessionStorage[r + "tmp"] = JSON.stringify(B);
|
|
17861
17861
|
const $ = {};
|
|
17862
|
-
for (const [X, V] of Object.entries(U(this,
|
|
17862
|
+
for (const [X, V] of Object.entries(U(this, Ae).mp))
|
|
17863
17863
|
$[X] = V instanceof Function ? V() : V;
|
|
17864
17864
|
sessionStorage[r + "mp"] = JSON.stringify($);
|
|
17865
17865
|
const H = {};
|
|
17866
|
-
for (const [X, V] of Object.entries(U(this,
|
|
17866
|
+
for (const [X, V] of Object.entries(U(this, we).mark))
|
|
17867
17867
|
H[X] = V instanceof Function ? V() : V;
|
|
17868
17868
|
sessionStorage[r + "mark"] = JSON.stringify(H);
|
|
17869
17869
|
const z = {};
|
|
17870
|
-
for (const [X, V] of Object.entries(U(this,
|
|
17870
|
+
for (const [X, V] of Object.entries(U(this, we).kidoku))
|
|
17871
17871
|
z[X] = V instanceof Function ? V() : V;
|
|
17872
17872
|
sessionStorage[r + "kidoku"] = JSON.stringify(z), t.flush();
|
|
17873
17873
|
} : () => t.flush()), Q(this, Ra, (k, D) => t.callHook(k, D)), t.addHook((k, D) => {
|
|
@@ -17875,12 +17875,12 @@ const ls = class {
|
|
|
17875
17875
|
return ($ = (B = U(this, Fh))[k]) == null ? void 0 : $.call(B, k, D);
|
|
17876
17876
|
});
|
|
17877
17877
|
const N = this.getVal("sys:sn.tagCh.msecWait", -1);
|
|
17878
|
-
(U(this,
|
|
17878
|
+
(U(this, Te)["const.sn.isFirstBoot"] || N === -1) && et(this, vs, gh).call(this);
|
|
17879
17879
|
});
|
|
17880
17880
|
}
|
|
17881
17881
|
updateData(t) {
|
|
17882
|
-
Q(this,
|
|
17883
|
-
for (const [e, r] of Object.entries(U(this,
|
|
17882
|
+
Q(this, we, t), Q(this, li, U(this, Ae).sys = U(this, we).sys), Q(this, Gi, {});
|
|
17883
|
+
for (const [e, r] of Object.entries(U(this, we).kidoku)) {
|
|
17884
17884
|
const N = new Areas();
|
|
17885
17885
|
N.hAreas = { ...r }, U(this, Gi)[e] = N;
|
|
17886
17886
|
}
|
|
@@ -17893,22 +17893,22 @@ const ls = class {
|
|
|
17893
17893
|
Q(this, Ia, t);
|
|
17894
17894
|
}
|
|
17895
17895
|
defTmp(t, e) {
|
|
17896
|
-
U(this,
|
|
17896
|
+
U(this, Te)[t] = e;
|
|
17897
17897
|
}
|
|
17898
17898
|
cloneMp() {
|
|
17899
|
-
return { ...U(this,
|
|
17899
|
+
return { ...U(this, Ae).mp };
|
|
17900
17900
|
}
|
|
17901
17901
|
setMp(t) {
|
|
17902
|
-
U(this,
|
|
17902
|
+
U(this, Ae).mp = t;
|
|
17903
17903
|
}
|
|
17904
17904
|
setMark(t, e) {
|
|
17905
|
-
U(this,
|
|
17905
|
+
U(this, we).mark[t] = e, this.flush();
|
|
17906
17906
|
}
|
|
17907
17907
|
cloneSave() {
|
|
17908
|
-
return { ...U(this,
|
|
17908
|
+
return { ...U(this, Ae).save };
|
|
17909
17909
|
}
|
|
17910
17910
|
mark2save(t) {
|
|
17911
|
-
Q(this, gi, U(this,
|
|
17911
|
+
Q(this, gi, U(this, Ae).save = { ...t.hSave }), Q(this, ms, U(this, gi)["sn.doRecLog"] ?? !1);
|
|
17912
17912
|
}
|
|
17913
17913
|
// 既読系
|
|
17914
17914
|
loadScrWork(t) {
|
|
@@ -17916,12 +17916,12 @@ const ls = class {
|
|
|
17916
17916
|
}
|
|
17917
17917
|
saveKidoku() {
|
|
17918
17918
|
for (const [t, { hAreas: e }] of Object.entries(U(this, Gi)))
|
|
17919
|
-
U(this,
|
|
17919
|
+
U(this, we).kidoku[t] = { ...e };
|
|
17920
17920
|
this.flush();
|
|
17921
17921
|
}
|
|
17922
17922
|
setVal_Nochk(t, e, r, N = !1) {
|
|
17923
17923
|
var B, $;
|
|
17924
|
-
const k = U(this,
|
|
17924
|
+
const k = U(this, Ae)[t];
|
|
17925
17925
|
N && (r = et(this, Na, Wu).call(this, r));
|
|
17926
17926
|
const D = t + ":" + e;
|
|
17927
17927
|
if (D in U(ls, an)) {
|
|
@@ -17942,7 +17942,7 @@ const ls = class {
|
|
|
17942
17942
|
}
|
|
17943
17943
|
};
|
|
17944
17944
|
let Variable = ls;
|
|
17945
|
-
|
|
17945
|
+
Ae = new WeakMap(), gi = new WeakMap(), Te = new WeakMap(), ar = new WeakMap(), we = new WeakMap(), li = new WeakMap(), Gi = new WeakMap(), Ra = new WeakMap(), Fh = new WeakMap(), Oa = new WeakSet(), Xu = function(t) {
|
|
17946
17946
|
Q(ls, an, {});
|
|
17947
17947
|
for (const e of t)
|
|
17948
17948
|
U(ls, an)[e.dataId] = 1;
|
|
@@ -17954,14 +17954,14 @@ Ie = new WeakMap(), gi = new WeakMap(), Se = new WeakMap(), ar = new WeakMap(),
|
|
|
17954
17954
|
const e = Number(t.from), r = Number(t.to);
|
|
17955
17955
|
if (e === r)
|
|
17956
17956
|
return !1;
|
|
17957
|
-
if (!(e in U(this,
|
|
17957
|
+
if (!(e in U(this, we).mark))
|
|
17958
17958
|
throw `from:${e} のセーブデータは存在しません`;
|
|
17959
|
-
return this.setMark(r, { ...U(this,
|
|
17959
|
+
return this.setMark(r, { ...U(this, we).mark[e] }), U(this, ar).copyBMFolder(e, r), !1;
|
|
17960
17960
|
}, Uh = new WeakSet(), ef = function(t) {
|
|
17961
17961
|
const { place: e } = t;
|
|
17962
17962
|
if (!e)
|
|
17963
17963
|
throw "placeは必須です";
|
|
17964
|
-
return delete U(this,
|
|
17964
|
+
return delete U(this, we).mark[e], this.flush(), U(this, ar).eraseBMFolder(e), !1;
|
|
17965
17965
|
}, yi = new WeakSet(), Ui = function(t) {
|
|
17966
17966
|
if (!t.name)
|
|
17967
17967
|
throw "nameは必須です";
|
|
@@ -18017,14 +18017,14 @@ Ie = new WeakMap(), gi = new WeakMap(), Se = new WeakMap(), ar = new WeakMap(),
|
|
|
18017
18017
|
const e = argChk_Num(t, "pos", 0);
|
|
18018
18018
|
return t.text = t.len !== "all" ? (t.text ?? "").slice(e, e + int(argChk_Num(t, "len", 1))) : (t.text ?? "").slice(e), et(this, yi, Ui).call(this, t), !1;
|
|
18019
18019
|
}, vs = new WeakSet(), gh = function() {
|
|
18020
|
-
const t = Q(this,
|
|
18020
|
+
const t = Q(this, li, U(this, Ae).sys = U(this, we).sys = {});
|
|
18021
18021
|
typeof process < "u" || (this.setVal_Nochk("sys", "const.sn.window.x", 0), this.setVal_Nochk("sys", "const.sn.window.y", 0)), this.setVal_Nochk("sys", "sn.tagCh.doWait", !0), this.setVal_Nochk("sys", "sn.tagCh.doWait_Kidoku", !0), this.setVal_Nochk("sys", "sn.tagCh.msecWait", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.msecWait_Kidoku", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.canskip", !0), this.setVal_Nochk("sys", "sn.skip.mode", "s"), this.setVal_Nochk("sys", "sn.auto.msecPageWait", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 3500)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 3500)), this.setVal_Nochk("sys", "sn.auto.msecLineWait", 500), this.setVal_Nochk("sys", "sn.auto.msecLineWait_Kidoku", 500), this.setVal_Nochk("sys", "const.sn.sound.BGM.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SE.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SYS.volume", 1);
|
|
18022
|
-
for (const [r, N] of Object.entries(U(this,
|
|
18022
|
+
for (const [r, N] of Object.entries(U(this, we).kidoku))
|
|
18023
18023
|
N.hAreas = {}, U(this, Gi)[r].clear();
|
|
18024
|
-
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), U(this,
|
|
18024
|
+
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), U(this, Ae).mark = U(this, we).mark = {}, this.setVal_Nochk("sys", "const.sn.save.place", 1), this.flush(), !1;
|
|
18025
18025
|
}, Aa = new WeakSet(), Yu = function() {
|
|
18026
18026
|
const t = U(this, gi)["const.sn.mesLayer"] ?? "", e = U(this, gi)["sn.doRecLog"] ?? !1, r = U(this, gi)["const.sn.sLog"] ?? "[]";
|
|
18027
|
-
return Q(this, gi, U(this,
|
|
18027
|
+
return Q(this, gi, U(this, Ae).save = {}), this.setVal_Nochk("save", "const.sn.mesLayer", t), this.setVal_Nochk("save", "sn.doRecLog", e), this.setVal_Nochk("save", "const.sn.sLog", r), !1;
|
|
18028
18028
|
}, La = new WeakMap(), an = new WeakMap(), Na = new WeakSet(), Wu = function(t) {
|
|
18029
18029
|
const e = t;
|
|
18030
18030
|
if (e === "true")
|
|
@@ -18036,23 +18036,23 @@ Ie = new WeakMap(), gi = new WeakMap(), Se = new WeakMap(), ar = new WeakMap(),
|
|
|
18036
18036
|
if (e !== "undefined")
|
|
18037
18037
|
return U(this, Wh).test(e) ? parseFloat(e) : t;
|
|
18038
18038
|
}, Wh = new WeakMap(), qh = new WeakMap(), ms = new WeakMap(), ka = new WeakMap(), _s = new WeakSet(), yh = function(t) {
|
|
18039
|
-
argChk_Boolean(U(this,
|
|
18039
|
+
argChk_Boolean(U(this, li), t, !0);
|
|
18040
18040
|
}, Zh = new WeakSet(), cf = function(t) {
|
|
18041
|
-
argChk_Num(U(this,
|
|
18041
|
+
argChk_Num(U(this, li), t, 10), U(this, li)["sn.tagCh.doWait"];
|
|
18042
18042
|
}, Kh = new WeakSet(), ff = function(t) {
|
|
18043
18043
|
argChk_Num(
|
|
18044
|
-
U(this,
|
|
18044
|
+
U(this, li),
|
|
18045
18045
|
t,
|
|
18046
18046
|
this.cfg.oCfg.init.tagch_msecwait === void 0 ? 10 : this.cfg.oCfg.init.tagch_msecwait
|
|
18047
|
-
), U(this,
|
|
18047
|
+
), U(this, li)["sn.tagCh.doWait_Kidoku"];
|
|
18048
18048
|
}, Da = new WeakSet(), qu = function(t) {
|
|
18049
18049
|
argChk_Num(
|
|
18050
|
-
U(this,
|
|
18050
|
+
U(this, li),
|
|
18051
18051
|
t,
|
|
18052
18052
|
this.cfg.oCfg.init.auto_msecpagewait === void 0 ? 3500 : this.cfg.oCfg.init.auto_msecpagewait
|
|
18053
18053
|
);
|
|
18054
18054
|
}, Fa = new WeakSet(), Zu = function(t) {
|
|
18055
|
-
argChk_Num(U(this,
|
|
18055
|
+
argChk_Num(U(this, li), t, 500);
|
|
18056
18056
|
}, Jh = new WeakSet(), df = function(t) {
|
|
18057
18057
|
return argChk_Boolean(U(this, gi), t, !0);
|
|
18058
18058
|
}, // reload 再生成 Main に受け渡すため static
|
|
@@ -19457,8 +19457,8 @@ var y = p.filter(function(o) {
|
|
|
19457
19457
|
return s = o, o;
|
|
19458
19458
|
}(new S());
|
|
19459
19459
|
"extensions" in n ? extensions.add(m) : Loader.registerPlugin(m);
|
|
19460
|
-
let cfg, val$1, main$3, sys, evtMng;
|
|
19461
|
-
var
|
|
19460
|
+
let cfg$1, val$1, main$3, sys, evtMng;
|
|
19461
|
+
var Ge, be, gs, Ua, Ga, Ku;
|
|
19462
19462
|
const Ee = class {
|
|
19463
19463
|
constructor() {
|
|
19464
19464
|
K(this, Ga);
|
|
@@ -19472,15 +19472,15 @@ const Ee = class {
|
|
|
19472
19472
|
pt(this, "stopfadese", (t) => U(this, be).stt.stopfadese(U(this, be), t));
|
|
19473
19473
|
}
|
|
19474
19474
|
static init(t, e, r, N) {
|
|
19475
|
-
Q(Ee,
|
|
19475
|
+
Q(Ee, Ge, {}), cfg$1 = t, val$1 = e, main$3 = r, sys = N;
|
|
19476
19476
|
}
|
|
19477
19477
|
static setEvtMng(t) {
|
|
19478
19478
|
evtMng = t;
|
|
19479
19479
|
}
|
|
19480
19480
|
static delLoopPlay(t) {
|
|
19481
|
-
delete U(Ee,
|
|
19481
|
+
delete U(Ee, Ge)[t];
|
|
19482
19482
|
const e = "const.sn.sound." + t + ".";
|
|
19483
|
-
val$1.setVal_Nochk("save", e + "fn", ""), val$1.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(U(Ee,
|
|
19483
|
+
val$1.setVal_Nochk("save", e + "fn", ""), val$1.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(U(Ee, Ge))), val$1.flush();
|
|
19484
19484
|
}
|
|
19485
19485
|
static getVol(t, e) {
|
|
19486
19486
|
const r = argChk_Num(t, "volume", e);
|
|
@@ -19491,7 +19491,7 @@ const Ee = class {
|
|
|
19491
19491
|
if (e === r)
|
|
19492
19492
|
return;
|
|
19493
19493
|
const N = "const.sn.sound." + e + ".", k = Number(val$1.getVal("save:" + N + "volume")), D = String(val$1.getVal("save:" + N + "fn")), B = "const.sn.sound." + r + ".", $ = Number(val$1.getVal("save:" + B + "volume")), H = String(val$1.getVal("save:" + B + "fn"));
|
|
19494
|
-
val$1.setVal_Nochk("save", N + "volume", $), val$1.setVal_Nochk("save", B + "volume", k), val$1.setVal_Nochk("save", N + "fn", H), val$1.setVal_Nochk("save", B + "fn", D), e in U(Ee,
|
|
19494
|
+
val$1.setVal_Nochk("save", N + "volume", $), val$1.setVal_Nochk("save", B + "volume", k), val$1.setVal_Nochk("save", N + "fn", H), val$1.setVal_Nochk("save", B + "fn", D), e in U(Ee, Ge) != r in U(Ee, Ge) && (e in U(Ee, Ge) ? (delete U(Ee, Ge)[e], U(Ee, Ge)[r] = 0) : (delete U(Ee, Ge)[r], U(Ee, Ge)[e] = 0), val$1.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(U(Ee, Ge)))), val$1.flush();
|
|
19495
19495
|
}
|
|
19496
19496
|
init(t) {
|
|
19497
19497
|
const { buf: e = "SE", fn: r = "" } = t, N = argChk_Num(t, "start_ms", 0), k = argChk_Num(t, "end_ms", U(Ee, gs)), D = argChk_Num(t, "ret_ms", 0), B = argChk_Num(t, "pan", 0), $ = argChk_Num(t, "speed", 1);
|
|
@@ -19510,7 +19510,7 @@ const Ee = class {
|
|
|
19510
19510
|
const z = Ee.getVol(t, 1);
|
|
19511
19511
|
val$1.setVal_Nochk("save", H + "volume", z);
|
|
19512
19512
|
const X = z * Number(val$1.getVal("sys:" + H + "volume", 1)), V = argChk_Boolean(t, "loop", !1);
|
|
19513
|
-
V ? (U(Ee,
|
|
19513
|
+
V ? (U(Ee, Ge)[e] = 0, val$1.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(U(Ee, Ge)))) : Ee.delLoopPlay(e), val$1.setVal_Nochk("save", H + "start_ms", N), val$1.setVal_Nochk("save", H + "end_ms", k), val$1.setVal_Nochk("save", H + "ret_ms", D), val$1.setVal_Nochk("tmp", H + "playing", !0), val$1.flush();
|
|
19514
19514
|
const Y = R.find(r);
|
|
19515
19515
|
Q(this, be, {
|
|
19516
19516
|
fn: r,
|
|
@@ -19603,8 +19603,8 @@ const Ee = class {
|
|
|
19603
19603
|
}
|
|
19604
19604
|
};
|
|
19605
19605
|
let SndBuf = Ee;
|
|
19606
|
-
|
|
19607
|
-
const r = cfg.searchPath(t, SEARCH_PATH_ARG_EXT.SOUND);
|
|
19606
|
+
Ge = new WeakMap(), be = new WeakMap(), gs = new WeakMap(), Ua = new WeakMap(), Ga = new WeakSet(), Ku = function(t, e) {
|
|
19607
|
+
const r = cfg$1.searchPath(t, SEARCH_PATH_ARG_EXT.SOUND);
|
|
19608
19608
|
if (r.slice(-4) !== ".bin") {
|
|
19609
19609
|
e.url = r, E.from(e);
|
|
19610
19610
|
return;
|
|
@@ -19617,7 +19617,7 @@ Ue = new WeakMap(), be = new WeakMap(), gs = new WeakMap(), Ua = new WeakMap(),
|
|
|
19617
19617
|
var D;
|
|
19618
19618
|
e.source = (D = k[t]) == null ? void 0 : D.data, E.from(e);
|
|
19619
19619
|
});
|
|
19620
|
-
}, K(SndBuf,
|
|
19620
|
+
}, K(SndBuf, Ge, {}), K(SndBuf, gs, 999e3);
|
|
19621
19621
|
function stop2var(o, t) {
|
|
19622
19622
|
if (o.loop)
|
|
19623
19623
|
SndBuf.delLoopPlay(t);
|
|
@@ -19804,7 +19804,7 @@ class SsStop {
|
|
|
19804
19804
|
}
|
|
19805
19805
|
// ok
|
|
19806
19806
|
}
|
|
19807
|
-
var
|
|
19807
|
+
var ze, $a, ja, tl, pf, el, vf, il, mf, rl, _f, Ha, Ju, hn, ha, za, Qu, ys, bh, Va, tc, nl, gf, ln, la, sl, yf, Xa, ec, Ya, ic, al, bf, Wa, rc, ol, xf;
|
|
19808
19808
|
class SoundMng {
|
|
19809
19809
|
constructor(t, e, r, N, k) {
|
|
19810
19810
|
// 音量設定(独自拡張)
|
|
@@ -19840,7 +19840,7 @@ class SoundMng {
|
|
|
19840
19840
|
K(this, Wa);
|
|
19841
19841
|
// 再生トラックの交換
|
|
19842
19842
|
K(this, ol);
|
|
19843
|
-
K(this,
|
|
19843
|
+
K(this, ze, {});
|
|
19844
19844
|
K(this, $a, {});
|
|
19845
19845
|
K(this, ja, void 0);
|
|
19846
19846
|
this.val = r, e.volume = (D) => et(this, tl, pf).call(this, D), e.fadebgm = (D) => et(this, Ha, Ju).call(this, D), e.fadeoutbgm = (D) => et(this, il, mf).call(this, D), e.fadeoutse = (D) => et(this, rl, _f).call(this, D), e.fadese = (D) => et(this, hn, ha).call(this, D), e.playbgm = (D) => et(this, za, Qu).call(this, D), e.playse = (D) => et(this, ys, bh).call(this, D), e.stop_allse = () => et(this, Va, tc).call(this), e.stopbgm = (D) => et(this, nl, gf).call(this, D), e.stopse = (D) => et(this, ln, la).call(this, D), e.wb = (D) => et(this, sl, yf).call(this, D), e.wf = (D) => et(this, Xa, ec).call(this, D), e.stopfadese = (D) => et(this, Ya, ic).call(this, D), e.wl = (D) => et(this, al, bf).call(this, D), e.ws = (D) => et(this, Wa, rc).call(this, D), e.xchgbuf = (D) => et(this, ol, xf).call(this, D), r.setVal_Nochk("save", "const.sn.loopPlaying", "{}"), r.setVal_Nochk("tmp", "const.sn.sound.codecs", JSON.stringify(I.supported)), SndBuf.init(t, r, N, k), R.disableAutoPause = !0;
|
|
@@ -19881,7 +19881,7 @@ class SoundMng {
|
|
|
19881
19881
|
r();
|
|
19882
19882
|
}
|
|
19883
19883
|
}
|
|
19884
|
-
|
|
19884
|
+
ze = new WeakMap(), $a = new WeakMap(), ja = new WeakMap(), tl = new WeakSet(), pf = function(t) {
|
|
19885
19885
|
const { buf: e = "SE" } = t, r = "const.sn.sound." + e + ".volume", N = et(this, el, vf).call(this, t, 1);
|
|
19886
19886
|
return Number(this.val.getVal("sys:" + r)) === N ? !1 : (this.val.setVal_Nochk("sys", r, N), this.val.flush(), t.time = 0, t.volume = Number(this.val.getVal("save:" + r)), et(this, hn, ha).call(this, t));
|
|
19887
19887
|
}, el = new WeakSet(), vf = function(t, e) {
|
|
@@ -19896,43 +19896,43 @@ He = new WeakMap(), $a = new WeakMap(), ja = new WeakMap(), tl = new WeakSet(),
|
|
|
19896
19896
|
}, hn = new WeakSet(), ha = function(t) {
|
|
19897
19897
|
var r;
|
|
19898
19898
|
const { buf: e = "SE" } = t;
|
|
19899
|
-
return et(this, Ya, ic).call(this, t), (r = U(this,
|
|
19899
|
+
return et(this, Ya, ic).call(this, t), (r = U(this, ze)[e]) == null || r.fade(t), !1;
|
|
19900
19900
|
}, za = new WeakSet(), Qu = function(t) {
|
|
19901
19901
|
return t.buf = "BGM", t.canskip = !1, argChk_Boolean(t, "loop", !0), et(this, ys, bh).call(this, t);
|
|
19902
19902
|
}, ys = new WeakSet(), bh = function(t) {
|
|
19903
19903
|
const { buf: e = "SE", fn: r } = t;
|
|
19904
19904
|
if (et(this, ln, la).call(this, { buf: e }), !r)
|
|
19905
19905
|
throw `[playse] fnは必須です buf:${e}`;
|
|
19906
|
-
return argChk_Boolean(t, "canskip", !0) && U(this, ja).isSkipping() ? !1 : (U(this,
|
|
19906
|
+
return argChk_Boolean(t, "canskip", !0) && U(this, ja).isSkipping() ? !1 : (U(this, ze)[e] = new SndBuf()).init(t);
|
|
19907
19907
|
}, Va = new WeakSet(), tc = function() {
|
|
19908
|
-
for (const t of Object.keys(U(this,
|
|
19908
|
+
for (const t of Object.keys(U(this, ze)))
|
|
19909
19909
|
et(this, ln, la).call(this, { buf: t });
|
|
19910
|
-
return Q(this,
|
|
19910
|
+
return Q(this, ze, {}), R.stopAll(), !1;
|
|
19911
19911
|
}, nl = new WeakSet(), gf = function(t) {
|
|
19912
19912
|
return t.buf = "BGM", et(this, ln, la).call(this, t);
|
|
19913
19913
|
}, ln = new WeakSet(), la = function(t) {
|
|
19914
19914
|
var r;
|
|
19915
19915
|
const { buf: e = "SE" } = t;
|
|
19916
|
-
return (r = U(this,
|
|
19916
|
+
return (r = U(this, ze)[e]) == null || r.stopse(t), !1;
|
|
19917
19917
|
}, sl = new WeakSet(), yf = function(t) {
|
|
19918
19918
|
return t.buf = "BGM", et(this, Xa, ec).call(this, t);
|
|
19919
19919
|
}, Xa = new WeakSet(), ec = function(t) {
|
|
19920
19920
|
var r;
|
|
19921
19921
|
const { buf: e = "SE" } = t;
|
|
19922
|
-
return (r = U(this,
|
|
19922
|
+
return (r = U(this, ze)[e]) == null ? void 0 : r.wf(t);
|
|
19923
19923
|
}, Ya = new WeakSet(), ic = function(t) {
|
|
19924
19924
|
var r;
|
|
19925
19925
|
const { buf: e = "SE" } = t;
|
|
19926
|
-
return (r = U(this,
|
|
19926
|
+
return (r = U(this, ze)[e]) == null || r.stopfadese(t), !1;
|
|
19927
19927
|
}, al = new WeakSet(), bf = function(t) {
|
|
19928
19928
|
return t.buf = "BGM", et(this, Wa, rc).call(this, t);
|
|
19929
19929
|
}, Wa = new WeakSet(), rc = function(t) {
|
|
19930
19930
|
var r;
|
|
19931
19931
|
const { buf: e = "SE" } = t;
|
|
19932
|
-
return (r = U(this,
|
|
19932
|
+
return (r = U(this, ze)[e]) == null ? void 0 : r.ws(t);
|
|
19933
19933
|
}, ol = new WeakSet(), xf = function(t) {
|
|
19934
19934
|
const { buf: e = "SE", buf2: r = "SE" } = t;
|
|
19935
|
-
return e === r || ([U(this,
|
|
19935
|
+
return e === r || ([U(this, ze)[e], U(this, ze)[r]] = [U(this, ze)[r], U(this, ze)[e]], SndBuf.xchgbuf(t)), !1;
|
|
19936
19936
|
};
|
|
19937
19937
|
var fe;
|
|
19938
19938
|
const Ac = class {
|
|
@@ -20604,7 +20604,7 @@ ul = new WeakMap(), Mr = new WeakMap(), or = new WeakMap(), un = new WeakMap(),
|
|
|
20604
20604
|
}
|
|
20605
20605
|
N();
|
|
20606
20606
|
}), pt(GrpLayer, "hFn2VElm", {}), K(GrpLayer, pl, /\?([^?]+)$/), K(GrpLayer, dn, {}), K(GrpLayer, eo, {});
|
|
20607
|
-
var Ts, io, pn, Kt, Hi, ur, vl,
|
|
20607
|
+
var Ts, io, pn, Kt, Hi, ur, vl, ui, Ar, Dt, bi, Ve, Xe, ws, Eh, Ii, cr, ro, Ps, ml, wf, vn, Cs, Lr, mn, _n, gn, Rs, no, Nr, so, sc, fr, ao, dr, zi, Os, oo, ac, kr, yn, ho, oc, Je;
|
|
20608
20608
|
const Ht = class extends Container {
|
|
20609
20609
|
constructor(e, r, N) {
|
|
20610
20610
|
super();
|
|
@@ -20619,7 +20619,7 @@ const Ht = class extends Container {
|
|
|
20619
20619
|
K(this, Hi, new Container());
|
|
20620
20620
|
// サンプリング先
|
|
20621
20621
|
K(this, ur, new Graphics());
|
|
20622
|
-
K(this,
|
|
20622
|
+
K(this, ui, new TxtLayDesignCast(this.spLay, this));
|
|
20623
20623
|
K(this, Ar, new TxtLayPadDesignCast(this));
|
|
20624
20624
|
K(this, Dt, {
|
|
20625
20625
|
fontsize: 24,
|
|
@@ -20636,8 +20636,8 @@ const Ht = class extends Container {
|
|
|
20636
20636
|
// paddingBottom
|
|
20637
20637
|
});
|
|
20638
20638
|
K(this, bi, !1);
|
|
20639
|
-
K(this, ze, 0);
|
|
20640
20639
|
K(this, Ve, 0);
|
|
20640
|
+
K(this, Xe, 0);
|
|
20641
20641
|
K(this, Ii, 0);
|
|
20642
20642
|
K(this, cr, !1);
|
|
20643
20643
|
K(this, ro, 0);
|
|
@@ -20651,8 +20651,8 @@ const Ht = class extends Container {
|
|
|
20651
20651
|
K(this, Os, 0);
|
|
20652
20652
|
K(this, kr, "Quadratic.Out");
|
|
20653
20653
|
K(this, yn, "Quadratic.Out");
|
|
20654
|
-
K(this,
|
|
20655
|
-
this.spLay = e, this.canFocus = r, this.sys = N, U(this, Kt).classList.add("sn_tx"), U(this, Kt).style.position = "absolute", U(Ht, io).view.parentElement.appendChild(U(this, Kt)), this.addChild(U(this, Hi)), this.addChild(U(this, ur)), U(this, ur).name = "grpDbgMasume", U(this,
|
|
20654
|
+
K(this, Je, void 0);
|
|
20655
|
+
this.spLay = e, this.canFocus = r, this.sys = N, U(this, Kt).classList.add("sn_tx"), U(this, Kt).style.position = "absolute", U(Ht, io).view.parentElement.appendChild(U(this, Kt)), this.addChild(U(this, Hi)), this.addChild(U(this, ur)), U(this, ur).name = "grpDbgMasume", U(this, ui).adopt(U(this, Ar));
|
|
20656
20656
|
}
|
|
20657
20657
|
static init(e, r) {
|
|
20658
20658
|
Q(Ht, Ts, e), Q(Ht, io, r), Q(Ht, _n, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/), Q(Ht, gn, /[[({〈「『【〔“〝]/), Q(Ht, Rs, /[─‥…]/);
|
|
@@ -20683,7 +20683,7 @@ const Ht = class extends Container {
|
|
|
20683
20683
|
U(this, Kt).style.cssText = "";
|
|
20684
20684
|
else
|
|
20685
20685
|
"alpha" in e && (r.opacity = String(this.spLay.alpha));
|
|
20686
|
-
if ("width" in e && (r.width = (e.width ?? "0") + "px"), "height" in e && (r.height = (e.height ?? "0") + "px"), "pl" in e && (r.paddingLeft = (e.pl ?? "0") + "px"), "pr" in e && (r.paddingRight = (e.pr ?? "0") + "px"), "pt" in e && (r.paddingTop = (e.pt ?? "0") + "px"), "pb" in e && (r.paddingBottom = (e.pb ?? "0") + "px"), "kinsoku_sol" in e && Q(Ht, _n, new RegExp(`[${e.kinsoku_sol}]`)), "kinsoku_eol" in e && Q(Ht, gn, new RegExp(`[${e.kinsoku_eol}]`)), "kinsoku_dns" in e && Q(Ht, Rs, new RegExp(`[${e.kinsoku_dns}]`)), et(this, ws, Eh).call(this), U(this,
|
|
20686
|
+
if ("width" in e && (r.width = (e.width ?? "0") + "px"), "height" in e && (r.height = (e.height ?? "0") + "px"), "pl" in e && (r.paddingLeft = (e.pl ?? "0") + "px"), "pr" in e && (r.paddingRight = (e.pr ?? "0") + "px"), "pt" in e && (r.paddingTop = (e.pt ?? "0") + "px"), "pb" in e && (r.paddingBottom = (e.pb ?? "0") + "px"), "kinsoku_sol" in e && Q(Ht, _n, new RegExp(`[${e.kinsoku_sol}]`)), "kinsoku_eol" in e && Q(Ht, gn, new RegExp(`[${e.kinsoku_eol}]`)), "kinsoku_dns" in e && Q(Ht, Rs, new RegExp(`[${e.kinsoku_dns}]`)), et(this, ws, Eh).call(this), U(this, ui).sethArg(e), Q(this, Ii, this.spLay.position.x), r.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), r.display = this.spLay.visible ? "inline" : "none", r.textShadow = e.filter ?? r.textShadow ?? "", Q(this, bi, argChk_Boolean(e, "break_fixed", U(this, bi))), Q(this, Ve, argChk_Num(e, "break_fixed_left", U(this, Ve))), Q(this, Xe, argChk_Num(e, "break_fixed_top", U(this, Xe))), ":redraw" in e && U(this, mn) > 0) {
|
|
20687
20687
|
const N = [
|
|
20688
20688
|
U(this, Kt).innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
|
|
20689
20689
|
`<span class='sn_ch' data-add='{"ch_in_style":"default"}'> </span>`
|
|
@@ -20693,7 +20693,7 @@ const Ht = class extends Container {
|
|
|
20693
20693
|
}
|
|
20694
20694
|
cvsResize() {
|
|
20695
20695
|
const e = U(this, Kt).style, r = this.sys.cvsScale;
|
|
20696
|
-
e.left = `${this.sys.ofsLeft4elm + U(this, Ii) * r}px`, e.top = `${this.sys.ofsTop4elm + this.spLay.position.y * r}px`, e.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * r}, ${this.spLay.scale.y * r})`, U(this,
|
|
20696
|
+
e.left = `${this.sys.ofsLeft4elm + U(this, Ii) * r}px`, e.top = `${this.sys.ofsTop4elm + this.spLay.position.y * r}px`, e.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * r}, ${this.spLay.scale.y * r})`, U(this, ui).cvsResize(), U(this, Ar).cvsResize();
|
|
20697
20697
|
}
|
|
20698
20698
|
get tategaki() {
|
|
20699
20699
|
return U(this, cr);
|
|
@@ -20722,7 +20722,7 @@ const Ht = class extends Container {
|
|
|
20722
20722
|
U(this, Dt).$height - U(this, Dt).pad_top - U(this, Dt).pad_bottom
|
|
20723
20723
|
).endFill()), U(this, Kt).innerHTML = [...e].join("").replaceAll(/[\n\t]/g, "") + U(Ht, no), !U(this, bi)) {
|
|
20724
20724
|
const ot = globalThis.getComputedStyle(U(this, Kt)), nt = parseFloat(ot.fontSize);
|
|
20725
|
-
U(this, cr) ? (Q(this,
|
|
20725
|
+
U(this, cr) ? (Q(this, Ve, (U(this, Dt).$width - U(this, Dt).pad_left - U(this, Dt).pad_right - nt * 1.5) * this.sys.cvsScale), Q(this, Xe, 0)) : (Q(this, Ve, 0), Q(this, Xe, nt / 2 * this.sys.cvsScale));
|
|
20726
20726
|
}
|
|
20727
20727
|
} else
|
|
20728
20728
|
k = U(this, Kt).innerHTML, U(this, Kt).querySelectorAll(":scope > br").forEach((ot) => U(this, Kt).removeChild(ot)), U(this, Kt).insertAdjacentHTML(
|
|
@@ -20764,7 +20764,7 @@ const Ht = class extends Container {
|
|
|
20764
20764
|
continue;
|
|
20765
20765
|
const ft = this.tategaki ? lt.rect.y : lt.rect.x;
|
|
20766
20766
|
if (nt <= ft || ((st = (at = lt.elm.previousElementSibling) == null ? void 0 : at.children[0]) == null ? void 0 : st.tagName) === "BR") {
|
|
20767
|
-
nt = ft, U(this, bi) || (Q(this,
|
|
20767
|
+
nt = ft, U(this, bi) || (Q(this, Ve, lt.rect.x), Q(this, Xe, lt.rect.y));
|
|
20768
20768
|
continue;
|
|
20769
20769
|
}
|
|
20770
20770
|
let mt = V - 1;
|
|
@@ -20772,9 +20772,9 @@ const Ht = class extends Container {
|
|
|
20772
20772
|
--mt;
|
|
20773
20773
|
const wt = ot[mt], Pt = wt.ch;
|
|
20774
20774
|
if (!U(this, bi)) {
|
|
20775
|
-
Q(this,
|
|
20775
|
+
Q(this, Ve, wt.rect.x), Q(this, Xe, wt.rect.y);
|
|
20776
20776
|
const Ot = globalThis.getComputedStyle(wt.elm), jt = parseFloat(Ot.fontSize);
|
|
20777
|
-
U(this, cr) ? Q(this,
|
|
20777
|
+
U(this, cr) ? Q(this, Xe, U(this, Xe) + jt) : Q(this, Ve, U(this, Ve) + jt);
|
|
20778
20778
|
}
|
|
20779
20779
|
nt = -1 / 0;
|
|
20780
20780
|
const Mt = V;
|
|
@@ -20841,8 +20841,8 @@ const Ht = class extends Container {
|
|
|
20841
20841
|
}
|
|
20842
20842
|
const tt = U(this, Kt).querySelectorAll("span.sn_ch");
|
|
20843
20843
|
Q(this, Nr, () => (Q(this, Nr, () => !1), tt.forEach((ot) => ot.className = ot.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), U(Ht, zi).position.set(
|
|
20844
|
-
U(this,
|
|
20845
|
-
U(this,
|
|
20844
|
+
U(this, Ve),
|
|
20845
|
+
U(this, Xe)
|
|
20846
20846
|
), U(Ht, zi).visible = !0, U(Ht, pn).noticeCompTxt(), !0)), tt.forEach((ot) => ot.className = ot.className.replaceAll(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1")), N > 0 && ++N;
|
|
20847
20847
|
let J;
|
|
20848
20848
|
for (let ot = X - 2; ot >= 0; --ot) {
|
|
@@ -20952,45 +20952,45 @@ const Ht = class extends Container {
|
|
|
20952
20952
|
var r;
|
|
20953
20953
|
et(this, ho, oc).call(this);
|
|
20954
20954
|
const e = new Ht(this.spLay, () => this.canFocus(), this.sys);
|
|
20955
|
-
return Q(e, Dt, U(this, Dt)), U(e, Kt).style.cssText = U(this, Kt).style.cssText, Q(e, Ii, U(this, Ii)), e.name = this.name, et(r = e, ws, Eh).call(r), U(e,
|
|
20955
|
+
return Q(e, Dt, U(this, Dt)), U(e, Kt).style.cssText = U(this, Kt).style.cssText, Q(e, Ii, U(this, Ii)), e.name = this.name, et(r = e, ws, Eh).call(r), U(e, ui).sethArg(U(this, ui).gethArg()), Q(e, vn, U(this, vn)), Q(e, kr, U(this, kr)), Q(e, yn, U(this, yn)), Q(e, bi, U(this, bi)), Q(e, Ve, U(this, Ve)), Q(e, Xe, U(this, Xe)), this.destroy(), e;
|
|
20956
20956
|
}
|
|
20957
20957
|
record() {
|
|
20958
20958
|
return {
|
|
20959
20959
|
infTL: U(this, Dt),
|
|
20960
20960
|
cssText: U(this, Kt).style.cssText,
|
|
20961
20961
|
left: U(this, Ii),
|
|
20962
|
-
idc_hArg: U(this,
|
|
20962
|
+
idc_hArg: U(this, ui).gethArg(),
|
|
20963
20963
|
ch_filter: U(this, vn),
|
|
20964
20964
|
fi_easing: U(this, kr),
|
|
20965
20965
|
fo_easing: U(this, yn),
|
|
20966
20966
|
break_fixed: U(this, bi),
|
|
20967
|
-
break_fixed_left: U(this,
|
|
20968
|
-
break_fixed_top: U(this,
|
|
20967
|
+
break_fixed_left: U(this, Ve),
|
|
20968
|
+
break_fixed_top: U(this, Xe)
|
|
20969
20969
|
};
|
|
20970
20970
|
}
|
|
20971
20971
|
playback(e) {
|
|
20972
|
-
Q(this, Dt, e.infTL), this.position.set(U(this, Dt).pad_left, U(this, Dt).pad_top), U(this, Kt).style.cssText = e.cssText, Q(this, Ii, e.left), et(this, ws, Eh).call(this), U(this,
|
|
20972
|
+
Q(this, Dt, e.infTL), this.position.set(U(this, Dt).pad_left, U(this, Dt).pad_top), U(this, Kt).style.cssText = e.cssText, Q(this, Ii, e.left), et(this, ws, Eh).call(this), U(this, ui).sethArg(e.idc_hArg), Q(this, vn, e.ch_filter), Q(this, kr, e.fi_easing), Q(this, yn, e.fo_easing), Q(this, bi, e.break_fixed ?? !1), Q(this, Ve, e.break_fixed_left ?? 0), Q(this, Xe, e.break_fixed_top ?? 0);
|
|
20973
20973
|
}
|
|
20974
20974
|
snapshot(e, r) {
|
|
20975
20975
|
et(this, ml, wf).call(this, (N) => {
|
|
20976
|
-
Q(this,
|
|
20976
|
+
Q(this, Je, new Sprite(N)), U(this, cr) && (U(this, Je).x += CmnLib.stageW - (U(this, Ii) + U(this, Dt).$width)), U(this, Je).y -= U(this, Ps), U(this, Je).texture.frame = new Rectangle(
|
|
20977
20977
|
0,
|
|
20978
20978
|
0,
|
|
20979
|
-
Math.min(U(this,
|
|
20980
|
-
Math.min(U(this,
|
|
20981
|
-
), U(this, Hi).addChild(U(this,
|
|
20979
|
+
Math.min(U(this, Je).width, U(this, Dt).$width - U(this, Ii)),
|
|
20980
|
+
Math.min(U(this, Je).height, U(this, Dt).$height)
|
|
20981
|
+
), U(this, Hi).addChild(U(this, Je)), e.render(U(this, Je), { clear: !1 }), r();
|
|
20982
20982
|
}, !1);
|
|
20983
20983
|
}
|
|
20984
20984
|
snapshot_end() {
|
|
20985
|
-
U(this,
|
|
20985
|
+
U(this, Je) && (U(this, Hi).removeChild(U(this, Je)), Q(this, Je, void 0));
|
|
20986
20986
|
}
|
|
20987
20987
|
makeDesignCast(e) {
|
|
20988
|
-
e(U(this,
|
|
20989
|
-
const r = U(this,
|
|
20988
|
+
e(U(this, ui));
|
|
20989
|
+
const r = U(this, ui).gethArg();
|
|
20990
20990
|
U(this, Ar).sethArg({ ...r, ":id_dc": r[":id_tag"] + "_pad" }), e(U(this, Ar));
|
|
20991
20991
|
}
|
|
20992
20992
|
showDesignCast() {
|
|
20993
|
-
U(this,
|
|
20993
|
+
U(this, ui).visible = !0, U(this, Ar).visible = !0;
|
|
20994
20994
|
}
|
|
20995
20995
|
dump() {
|
|
20996
20996
|
const e = [], r = U(this, Kt).style, N = r.length;
|
|
@@ -21005,7 +21005,7 @@ const Ht = class extends Container {
|
|
|
21005
21005
|
}
|
|
21006
21006
|
};
|
|
21007
21007
|
let TxtStage = Ht;
|
|
21008
|
-
Ts = new WeakMap(), io = new WeakMap(), pn = new WeakMap(), Kt = new WeakMap(), Hi = new WeakMap(), ur = new WeakMap(), vl = new WeakMap(),
|
|
21008
|
+
Ts = new WeakMap(), io = new WeakMap(), pn = new WeakMap(), Kt = new WeakMap(), Hi = new WeakMap(), ur = new WeakMap(), vl = new WeakMap(), ui = new WeakMap(), Ar = new WeakMap(), Dt = new WeakMap(), bi = new WeakMap(), Ve = new WeakMap(), Xe = new WeakMap(), ws = new WeakSet(), Eh = function() {
|
|
21009
21009
|
const e = U(this, Kt).style, r = parseFloat(e.fontSize || "0");
|
|
21010
21010
|
U(this, Dt).fontsize = r, U(this, Dt).pad_left = parseFloat(e.paddingLeft || "0"), U(this, Dt).pad_right = parseFloat(e.paddingRight || "0"), U(this, Dt).pad_top = parseFloat(e.paddingTop || "0"), U(this, Dt).pad_bottom = parseFloat(e.paddingBottom || "0"), U(this, Dt).$width = parseFloat(e.width || "0"), U(this, Dt).$height = parseFloat(e.height || "0"), this.position.set(U(this, Dt).pad_left, U(this, Dt).pad_top), Q(this, cr, e.writingMode === "vertical-rl"), Q(this, ro, 0), Q(this, Ps, 0);
|
|
21011
21011
|
const N = e.lineHeight ?? "0";
|
|
@@ -21253,7 +21253,7 @@ Ts = new WeakMap(), io = new WeakMap(), pn = new WeakMap(), Kt = new WeakMap(),
|
|
|
21253
21253
|
B instanceof Container && U(Ht, pn).unButton(B), B.destroy();
|
|
21254
21254
|
};
|
|
21255
21255
|
N === 0 ? (U(this, Kt).textContent = "", k()) : (D = r.lastElementChild) == null || D.addEventListener("animationend", k, { once: !0, passive: !0 }), Q(this, Kt, e);
|
|
21256
|
-
},
|
|
21256
|
+
}, Je = new WeakMap(), K(TxtStage, Ts, void 0), K(TxtStage, io, void 0), K(TxtStage, pn, void 0), K(TxtStage, vl, {
|
|
21257
21257
|
"background-color": 0,
|
|
21258
21258
|
"border-bottom-width": 0,
|
|
21259
21259
|
"border-left-width": 0,
|
|
@@ -21501,7 +21501,7 @@ uo = new WeakMap(), co = new WeakMap(), Ai = new WeakMap(), pr = new WeakMap(),
|
|
|
21501
21501
|
}, pt(Button, "fontFamily", "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif"), K(Button, uo, (e, r) => {
|
|
21502
21502
|
}), K(Button, co, (e, r, N, k) => {
|
|
21503
21503
|
});
|
|
21504
|
-
var As, Li, fo, Ls, po, hc, vo, lc, mo, xn, _o, vr, En, yl, Rf, mr, xi, Ni, ue, Xi, ee, go, Yi, bl,
|
|
21504
|
+
var As, Li, fo, Ls, po, hc, vo, lc, mo, xn, _o, vr, En, yl, Rf, mr, xi, Ni, ue, Xi, ee, go, Yi, bl, Qe, Sn, ua, Tn, Ns, wn, ca, ks, yo, uc, bo, cc, Pn, Cn, Ds, xo, Fs, Dr, ti, xl, Of, ci, Eo, Bs, Sh, _r, Kr, Wi, ki, Ei, Si, So, fc, Us, Th, To, dc, Rn, On;
|
|
21505
21505
|
const Xt = class extends Layer {
|
|
21506
21506
|
constructor() {
|
|
21507
21507
|
super();
|
|
@@ -21526,7 +21526,7 @@ const Xt = class extends Layer {
|
|
|
21526
21526
|
K(this, ee, new TxtStage(this.spLay, () => this.canFocus(), U(Xt, _o)));
|
|
21527
21527
|
K(this, go, new RubySpliter());
|
|
21528
21528
|
K(this, Yi, document.createElement("span"));
|
|
21529
|
-
K(this,
|
|
21529
|
+
K(this, Qe, new Container());
|
|
21530
21530
|
K(this, Tn, "");
|
|
21531
21531
|
K(this, Ns, !0);
|
|
21532
21532
|
K(this, ks, "");
|
|
@@ -21536,8 +21536,8 @@ const Xt = class extends Layer {
|
|
|
21536
21536
|
K(this, xo, new RegExp("[ ]"));
|
|
21537
21537
|
pt(this, "isCur", !1);
|
|
21538
21538
|
K(this, Dr, () => "");
|
|
21539
|
-
K(this,
|
|
21540
|
-
K(this,
|
|
21539
|
+
K(this, ti, "");
|
|
21540
|
+
K(this, ci, !1);
|
|
21541
21541
|
K(this, Eo, (e, r) => {
|
|
21542
21542
|
var H, z, X;
|
|
21543
21543
|
U(Xt, As).oCfg.debug.putCh && console.log(`🖊 文字表示 text:\`${e}\` ruby:\`${r}\` name:\`${this.name_}\``);
|
|
@@ -21546,12 +21546,12 @@ const Xt = class extends Layer {
|
|
|
21546
21546
|
const [D, ...B] = N, $ = B.join("|");
|
|
21547
21547
|
switch (N.length) {
|
|
21548
21548
|
case 1:
|
|
21549
|
-
if (Q(this,
|
|
21549
|
+
if (Q(this, ci, !0), e === `
|
|
21550
21550
|
`) {
|
|
21551
21551
|
U(this, ki) ? (Q(this, ki, !1), k = "<ruby> <rt> </rt></ruby><br/>") : k = "<br/>";
|
|
21552
21552
|
break;
|
|
21553
21553
|
}
|
|
21554
|
-
U(this, ki) && (Q(this, ki, !1), r === "" && (r = " ")), k = et(this, Bs, Sh).call(this, e, r, U(this,
|
|
21554
|
+
U(this, ki) && (Q(this, ki, !1), r === "" && (r = " ")), k = et(this, Bs, Sh).call(this, e, r, U(this, ti));
|
|
21555
21555
|
break;
|
|
21556
21556
|
default:
|
|
21557
21557
|
switch (D) {
|
|
@@ -21563,13 +21563,13 @@ const Xt = class extends Layer {
|
|
|
21563
21563
|
case "121":
|
|
21564
21564
|
case "even":
|
|
21565
21565
|
case "1ruby":
|
|
21566
|
-
Q(this, ki, !1), Q(this,
|
|
21566
|
+
Q(this, ki, !1), Q(this, ci, !0), k = et(this, Bs, Sh).call(this, e, $, D);
|
|
21567
21567
|
break;
|
|
21568
21568
|
case "gotxt":
|
|
21569
|
-
et(this, Us, Th).call(this), U(this,
|
|
21569
|
+
et(this, Us, Th).call(this), U(this, ci) ? (this.isCur && U(Xt, Ls).recText(
|
|
21570
21570
|
U(this, Ei).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\S+ \S+?;\s*)+/g, "style='").replaceAll(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replaceAll(/class='sn_ch .+?'/g, "class='sn_ch'").replaceAll("display: none;", "").replaceAll("class='offrec'", "style='display: none;'")
|
|
21571
21571
|
// 囲んだ領域は履歴で非表示
|
|
21572
|
-
), U(this, ee).goTxt(U(this, Ei), U(this, Wi) === 0), Q(this,
|
|
21572
|
+
), U(this, ee).goTxt(U(this, Ei), U(this, Wi) === 0), Q(this, ci, !1), Q(this, Wi, 0)) : this.isCur && U(Xt, xn).noticeCompTxt();
|
|
21573
21573
|
return;
|
|
21574
21574
|
case "add":
|
|
21575
21575
|
{
|
|
@@ -21581,7 +21581,7 @@ const Xt = class extends Layer {
|
|
|
21581
21581
|
U(this, Ei).push("</span>"), et(this, Us, Th).call(this);
|
|
21582
21582
|
return;
|
|
21583
21583
|
case "grp":
|
|
21584
|
-
Q(this,
|
|
21584
|
+
Q(this, ci, !0);
|
|
21585
21585
|
{
|
|
21586
21586
|
const V = JSON.parse($);
|
|
21587
21587
|
if (V.id ?? (V.id = U(this, Ei).length), V.id === "break") {
|
|
@@ -21593,13 +21593,13 @@ const Xt = class extends Layer {
|
|
|
21593
21593
|
k = `<span${Y} style='${q} ${V.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(V)}'${W} style='${q} display: inline;'> </span><rt${W}${this.mkStyle_r_align(
|
|
21594
21594
|
" ",
|
|
21595
21595
|
V.r,
|
|
21596
|
-
U(this,
|
|
21596
|
+
U(this, ti),
|
|
21597
21597
|
U(this, Yi).style.cssText + (((H = U(this, Si).at(-1)) == null ? void 0 : H.o.r_style) ?? "") + V.r_style
|
|
21598
21598
|
)}>${V.r}</rt></ruby></span>`;
|
|
21599
21599
|
}
|
|
21600
21600
|
break;
|
|
21601
21601
|
case "tcy":
|
|
21602
|
-
Q(this, ki, !1), Q(this,
|
|
21602
|
+
Q(this, ki, !1), Q(this, ci, !0);
|
|
21603
21603
|
{
|
|
21604
21604
|
const { t: V, r: Y = "", wait: q = null, style: W = "", r_style: Z = "" } = JSON.parse($);
|
|
21605
21605
|
U(Xt, Li).doRecLog() && (Q(this, Rn, U(this, Rn) + (e + (r ? `《${r}》` : ""))), Q(this, On, U(this, On) + V));
|
|
@@ -21609,7 +21609,7 @@ text-combine-upright: all;
|
|
|
21609
21609
|
-webkit-text-combine: horizontal;'>${V}</span><rt${at}${this.mkStyle_r_align(
|
|
21610
21610
|
V,
|
|
21611
21611
|
tt,
|
|
21612
|
-
U(this,
|
|
21612
|
+
U(this, ti),
|
|
21613
21613
|
U(this, Yi).style.cssText + (((z = U(this, Si).at(-1)) == null ? void 0 : z.o.r_style) ?? "") + Z
|
|
21614
21614
|
)}>${tt}</rt></ruby></span>`;
|
|
21615
21615
|
}
|
|
@@ -21618,10 +21618,10 @@ text-combine-upright: all;
|
|
|
21618
21618
|
TxtStage.delBreak();
|
|
21619
21619
|
return;
|
|
21620
21620
|
case "span":
|
|
21621
|
-
Q(this,
|
|
21621
|
+
Q(this, ci, !0), et(this, To, dc).call(this, JSON.parse($));
|
|
21622
21622
|
return;
|
|
21623
21623
|
case "link":
|
|
21624
|
-
Q(this,
|
|
21624
|
+
Q(this, ci, !0);
|
|
21625
21625
|
{
|
|
21626
21626
|
const V = JSON.parse($);
|
|
21627
21627
|
V[":link"] = " data-lnk='@'";
|
|
@@ -21630,10 +21630,10 @@ text-combine-upright: all;
|
|
|
21630
21630
|
}
|
|
21631
21631
|
return;
|
|
21632
21632
|
case "endlink":
|
|
21633
|
-
Q(this,
|
|
21633
|
+
Q(this, ci, !0), U(this, Ei).push("</span>"), et(this, Us, Th).call(this);
|
|
21634
21634
|
return;
|
|
21635
21635
|
default:
|
|
21636
|
-
Q(this,
|
|
21636
|
+
Q(this, ci, !0), k = et(this, Bs, Sh).call(this, e, r, U(this, ti));
|
|
21637
21637
|
}
|
|
21638
21638
|
break;
|
|
21639
21639
|
}
|
|
@@ -21647,15 +21647,15 @@ text-combine-upright: all;
|
|
|
21647
21647
|
K(this, Rn, "");
|
|
21648
21648
|
K(this, On, "");
|
|
21649
21649
|
pt(this, "addButton", (e) => new Promise((r) => {
|
|
21650
|
-
e.key = `btn=[${U(this,
|
|
21650
|
+
e.key = `btn=[${U(this, Qe).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), argChk_Boolean(e, "hint_tate", U(this, ee).tategaki);
|
|
21651
21651
|
const N = new Button(e, U(Xt, xn), () => r(), () => this.canFocus());
|
|
21652
|
-
N.name = JSON.stringify(e).replaceAll('"', "'"), U(this,
|
|
21652
|
+
N.name = JSON.stringify(e).replaceAll('"', "'"), U(this, Qe).addChild(N);
|
|
21653
21653
|
}));
|
|
21654
21654
|
pt(this, "record", () => ({
|
|
21655
21655
|
...super.record(),
|
|
21656
21656
|
enabled: this.enabled,
|
|
21657
21657
|
r_cssText: U(this, Yi).style.cssText,
|
|
21658
|
-
r_align: U(this,
|
|
21658
|
+
r_align: U(this, ti),
|
|
21659
21659
|
// バック
|
|
21660
21660
|
b_do: U(this, ue) === void 0 ? void 0 : U(this, ue) instanceof Sprite ? "Sprite" : "Graphics",
|
|
21661
21661
|
b_pic: U(this, Xi),
|
|
@@ -21665,9 +21665,9 @@ text-combine-upright: all;
|
|
|
21665
21665
|
ffs: U(this, Pn),
|
|
21666
21666
|
txs: U(this, ee).record(),
|
|
21667
21667
|
strNoFFS: U(this, Ds),
|
|
21668
|
-
btns: U(this,
|
|
21668
|
+
btns: U(this, Qe).children.map((e) => e.name)
|
|
21669
21669
|
}));
|
|
21670
|
-
this.spLay.addChild(U(this, ee)), U(this, go).init(U(this, Eo)), this.spLay.addChild(U(this,
|
|
21670
|
+
this.spLay.addChild(U(this, ee)), U(this, go).init(U(this, Eo)), this.spLay.addChild(U(this, Qe)), U(this, Qe).name = "cntBtn";
|
|
21671
21671
|
const e = 16;
|
|
21672
21672
|
this.lay({ style: `width: ${CmnLib.stageW}px; height: ${CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${e}px;`, in_style: "default", out_style: "default", back_clear: "true" });
|
|
21673
21673
|
}
|
|
@@ -21745,7 +21745,7 @@ text-combine-upright: all;
|
|
|
21745
21745
|
U(this, ee).cvsResize();
|
|
21746
21746
|
}
|
|
21747
21747
|
cvsResizeChildren() {
|
|
21748
|
-
for (const e of U(this,
|
|
21748
|
+
for (const e of U(this, Qe).children)
|
|
21749
21749
|
e.cvsResize();
|
|
21750
21750
|
}
|
|
21751
21751
|
procSetX(e) {
|
|
@@ -21755,7 +21755,7 @@ text-combine-upright: all;
|
|
|
21755
21755
|
U(this, ee).lay({ y: e });
|
|
21756
21756
|
}
|
|
21757
21757
|
lay(e) {
|
|
21758
|
-
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), et(this, bo, cc).call(this, e), U(this, ee).lay(e), "r_align" in e && Q(this,
|
|
21758
|
+
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), et(this, bo, cc).call(this, e), U(this, ee).lay(e), "r_align" in e && Q(this, ti, e.r_align ?? ""), Q(this, Dr, CmnLib.isSafari ? U(this, ee).tategaki ? (r, N) => `text-align: start; height: ${N}em; padding-top: ${r}; padding-bottom: ${r};` : (r, N) => `text-align: start; width: ${N}em; padding-left: ${r}; padding-right: ${r};` : U(this, ee).tategaki ? (r) => `text-align: justify; text-align-last: justify; padding-top: ${r}; padding-bottom: ${r};` : (r) => `text-align: justify; text-align-last: justify; padding-left: ${r}; padding-right: ${r};`), CmnLib.isFirefox && (this.mkStyle_r_align = et(this, xl, Of)), "r_style" in e)
|
|
21759
21759
|
if (e.r_style) {
|
|
21760
21760
|
const r = document.createElement("span");
|
|
21761
21761
|
r.style.cssText = e.r_style;
|
|
@@ -21771,7 +21771,7 @@ text-combine-upright: all;
|
|
|
21771
21771
|
} else
|
|
21772
21772
|
U(this, Yi).style.cssText = "";
|
|
21773
21773
|
if ("alpha" in e)
|
|
21774
|
-
for (const r of U(this,
|
|
21774
|
+
for (const r of U(this, Qe).children)
|
|
21775
21775
|
r.alpha = this.spLay.alpha;
|
|
21776
21776
|
return et(this, Sn, ua).call(this, e), et(this, wn, ca).call(this, e), et(this, yo, uc).call(this, e, (r) => {
|
|
21777
21777
|
r && U(Xt, mo).resume();
|
|
@@ -21843,11 +21843,11 @@ text-combine-upright: all;
|
|
|
21843
21843
|
}
|
|
21844
21844
|
clearLay(e) {
|
|
21845
21845
|
super.clearLay(e), this.clearText();
|
|
21846
|
-
for (const r of U(this,
|
|
21846
|
+
for (const r of U(this, Qe).removeChildren())
|
|
21847
21847
|
r.destroy();
|
|
21848
21848
|
}
|
|
21849
21849
|
playback(e, r) {
|
|
21850
|
-
super.playback(e, r), this.enabled = e.enabled, U(this, Yi).style.cssText = e.r_cssText, Q(this,
|
|
21850
|
+
super.playback(e, r), this.enabled = e.enabled, U(this, Yi).style.cssText = e.r_cssText, Q(this, ti, e.r_align), this.cvsResize(), et(this, bo, cc).call(this, e), U(this, ee).playback(e.txs), Q(this, xi, e.b_alpha), Q(this, Ni, e.b_alpha_isfixed), r.push(new Promise((k) => {
|
|
21851
21851
|
const D = e.b_do ? e.b_do === "Sprite" ? { b_pic: e.b_pic } : { b_color: e.b_color } : { b_pic: "" };
|
|
21852
21852
|
D.b_alpha = e.b_alpha, D.b_alpha_isfixed = e.b_alpha_isfixed, et(this, yo, uc).call(this, D, (B) => {
|
|
21853
21853
|
B && k();
|
|
@@ -21867,18 +21867,18 @@ text-combine-upright: all;
|
|
|
21867
21867
|
}
|
|
21868
21868
|
makeDesignCastChildren(e) {
|
|
21869
21869
|
if (this.spLay.visible)
|
|
21870
|
-
for (const r of U(this,
|
|
21870
|
+
for (const r of U(this, Qe).children)
|
|
21871
21871
|
r.makeDesignCast(e);
|
|
21872
21872
|
}
|
|
21873
21873
|
showDesignCast() {
|
|
21874
21874
|
U(this, ee).showDesignCast();
|
|
21875
21875
|
}
|
|
21876
21876
|
showDesignCastChildren() {
|
|
21877
|
-
for (const e of U(this,
|
|
21877
|
+
for (const e of U(this, Qe).children)
|
|
21878
21878
|
e.showDesignCast();
|
|
21879
21879
|
}
|
|
21880
21880
|
dump() {
|
|
21881
|
-
return U(this, Eo).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${U(this, ee).dump()}, "b_pic":"${U(this, Xi)}", "b_color":"${U(this, mr)}", "b_alpha":${U(this, xi)}, "b_alpha_isfixed":"${U(this, Ni)}", "width":${U(this, ee).getWidth}, "height":${U(this, ee).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Sprite ? "Sprite" : e instanceof Graphics ? "Graphics" : e instanceof Container ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${U(this,
|
|
21881
|
+
return U(this, Eo).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${U(this, ee).dump()}, "b_pic":"${U(this, Xi)}", "b_color":"${U(this, mr)}", "b_alpha":${U(this, xi)}, "b_alpha_isfixed":"${U(this, Ni)}", "width":${U(this, ee).getWidth}, "height":${U(this, ee).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Sprite ? "Sprite" : e instanceof Graphics ? "Graphics" : e instanceof Container ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${U(this, Qe).children.map((e) => e.children[0].name ?? "{}").join(",")}]`;
|
|
21882
21882
|
}
|
|
21883
21883
|
};
|
|
21884
21884
|
let TxtLayer = Xt;
|
|
@@ -21928,7 +21928,7 @@ As = new WeakMap(), Li = new WeakMap(), fo = new WeakMap(), Ls = new WeakMap(),
|
|
|
21928
21928
|
if (k.length !== N)
|
|
21929
21929
|
throw "[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい";
|
|
21930
21930
|
return Q(Xt, En, {}), k.forEach((D, B) => U(Xt, En)[r[B]] = uint(D)), U(Xt, Li).setVal_Nochk("save", "const.sn.autowc.time", e.time), !1;
|
|
21931
|
-
}, mr = new WeakMap(), xi = new WeakMap(), Ni = new WeakMap(), ue = new WeakMap(), Xi = new WeakMap(), ee = new WeakMap(), go = new WeakMap(), Yi = new WeakMap(), bl = new WeakMap(),
|
|
21931
|
+
}, mr = new WeakMap(), xi = new WeakMap(), Ni = new WeakMap(), ue = new WeakMap(), Xi = new WeakMap(), ee = new WeakMap(), go = new WeakMap(), Yi = new WeakMap(), bl = new WeakMap(), Qe = new WeakMap(), Sn = new WeakSet(), ua = function(e) {
|
|
21932
21932
|
const { in_style: r } = e;
|
|
21933
21933
|
if (!r)
|
|
21934
21934
|
return;
|
|
@@ -21961,7 +21961,7 @@ As = new WeakMap(), Li = new WeakMap(), fo = new WeakMap(), Ls = new WeakMap(),
|
|
|
21961
21961
|
return U(this, ue) && (U(this, ue).visible = N > 0, U(this, ue).alpha = N), r(!1), !1;
|
|
21962
21962
|
}, bo = new WeakSet(), cc = function(e) {
|
|
21963
21963
|
"noffs" in e && (Q(this, Ds, e.noffs ?? ""), Q(this, xo, new RegExp(`[ ${U(this, Ds)}]`))), "ffs" in e && (U(this, Pn) ?? Q(this, Pn, ""), Q(this, Cn, U(this, Pn) === "" ? () => "" : (r) => U(this, xo).test(r) ? "" : ` font-feature-settings: ${U(this, Pn)};`));
|
|
21964
|
-
}, Pn = new WeakMap(), Cn = new WeakMap(), Ds = new WeakMap(), xo = new WeakMap(), Fs = new WeakMap(), Dr = new WeakMap(),
|
|
21964
|
+
}, Pn = new WeakMap(), Cn = new WeakMap(), Ds = new WeakMap(), xo = new WeakMap(), Fs = new WeakMap(), Dr = new WeakMap(), ti = new WeakMap(), xl = new WeakSet(), Of = function(e, r, N, k = "") {
|
|
21965
21965
|
if (!N)
|
|
21966
21966
|
return ` style='${k}'`;
|
|
21967
21967
|
const D = e.length * 2;
|
|
@@ -21995,7 +21995,7 @@ As = new WeakMap(), Li = new WeakMap(), fo = new WeakMap(), Ls = new WeakMap(),
|
|
|
21995
21995
|
B = `text-align: ${N};`;
|
|
21996
21996
|
}
|
|
21997
21997
|
return ` style='${B} ${k}'`;
|
|
21998
|
-
},
|
|
21998
|
+
}, ci = new WeakMap(), Eo = new WeakMap(), Bs = new WeakSet(), Sh = function(e, r, N) {
|
|
21999
21999
|
var H;
|
|
22000
22000
|
const k = e === " " ? " " : e;
|
|
22001
22001
|
U(Xt, Li).doRecLog() && (Q(this, Rn, U(this, Rn) + (k + (r ? `《${r}》` : ""))), e !== " " && Q(this, On, U(this, On) + e));
|
|
@@ -22024,20 +22024,20 @@ As = new WeakMap(), Li = new WeakMap(), fo = new WeakMap(), Ls = new WeakMap(),
|
|
|
22024
22024
|
}, Wi = new WeakMap(), ki = new WeakMap(), Ei = new WeakMap(), Si = new WeakMap(), So = new WeakSet(), fc = function(e) {
|
|
22025
22025
|
U(this, Si).push({
|
|
22026
22026
|
o: e,
|
|
22027
|
-
r_align: U(this,
|
|
22027
|
+
r_align: U(this, ti),
|
|
22028
22028
|
ch_in_style: U(this, Tn),
|
|
22029
22029
|
ch_out_style: U(this, ks)
|
|
22030
|
-
}), "r_align" in e && Q(this,
|
|
22030
|
+
}), "r_align" in e && Q(this, ti, e.r_align), et(this, Sn, ua).call(this, e), et(this, wn, ca).call(this, e);
|
|
22031
22031
|
}, Us = new WeakSet(), Th = function() {
|
|
22032
22032
|
const e = U(this, Si).pop();
|
|
22033
|
-
e && (Q(this,
|
|
22033
|
+
e && (Q(this, ti, e.r_align), et(this, Sn, ua).call(this, { in_style: e.ch_in_style }), et(this, wn, ca).call(this, { out_style: e.ch_out_style }));
|
|
22034
22034
|
}, To = new WeakSet(), dc = function(e) {
|
|
22035
22035
|
const r = U(this, Si).at(-1);
|
|
22036
22036
|
if (!r) {
|
|
22037
22037
|
et(this, So, fc).call(this, e);
|
|
22038
22038
|
return;
|
|
22039
22039
|
}
|
|
22040
|
-
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && Q(this,
|
|
22040
|
+
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && Q(this, ti, e.r_align), et(this, Sn, ua).call(this, e), et(this, wn, ca).call(this, e);
|
|
22041
22041
|
}, Rn = new WeakMap(), On = new WeakMap(), // 文字出現演出
|
|
22042
22042
|
K(TxtLayer, po), // 文字消去演出
|
|
22043
22043
|
K(TxtLayer, vo), K(TxtLayer, yl), K(TxtLayer, As, void 0), K(TxtLayer, Li, void 0), K(TxtLayer, fo, void 0), K(TxtLayer, Ls, void 0), K(TxtLayer, mo, void 0), K(TxtLayer, xn, void 0), K(TxtLayer, _o, void 0), // 文字ごとのウェイト
|
|
@@ -22180,7 +22180,7 @@ Gs = new WeakMap(), Mn = new WeakMap(), El = new WeakSet(), Mf = function(t) {
|
|
|
22180
22180
|
if (!this.val.getVal("tmp:" + N))
|
|
22181
22181
|
throw `frame【${e}】が読み込まれていません`;
|
|
22182
22182
|
const k = r.style;
|
|
22183
|
-
if (argChk_Boolean(t, "float", !1) ? k.zIndex = `${++
|
|
22183
|
+
if (argChk_Boolean(t, "float", !1) ? k.zIndex = `${++Ie(this, wo)._}` : "index" in t ? k.zIndex = `${argChk_Num(t, "index", 0)}` : t.dive && (k.zIndex = `-${++Ie(this, wo)._}`), "alpha" in t) {
|
|
22184
22184
|
const B = k.opacity = String(t.alpha);
|
|
22185
22185
|
this.val.setVal_Nochk("tmp", N + ".alpha", B);
|
|
22186
22186
|
}
|
|
@@ -22272,7 +22272,7 @@ ${e}`, lt = () => {
|
|
|
22272
22272
|
yt.start();
|
|
22273
22273
|
return this.hTwInf[nt] = { tw: Ot, resume: !1 }, !1;
|
|
22274
22274
|
};
|
|
22275
|
-
var Ti, ne, me, Fr, In, Hs, Po, Co, Ro, zs, Oo, pc, Br,
|
|
22275
|
+
var Ti, ne, me, Fr, In, Hs, Po, Co, Ro, zs, Oo, pc, Br, fi, Cl, kf, ei, Rl, Df, Ol, Ff, Ml, Bf, Jt, qi, Zi, Mo, Il, Uf, Vs, Ph, Al, Gf, Ll, Io, Nl, An, Ln, gr, Pe, Nn, kl, $f, Ce, Ye, oi, Dl, jf, Fl, Hf, Bl, zf, kn, fa, Ul, Vf, di, Gl, Xf, $l, Yf, jl, Wf, Hl, qf, zl, Zf, Ur, Dn, da, pi, Vl, Kf, Ao, Xl, Jf, Ki, Fn, Gr, as, $e, Ji, Yl, Qf, Wl, td, ql, ed, Zl, id, Kl, rd, Jl, nd, Ql, sd, Lo, vc, tu, ad, eu, od, iu, hd, ru, ld, nu, ud, su, cd, au, fd;
|
|
22276
22276
|
const Rr = class {
|
|
22277
22277
|
constructor(t, e, r, N, k, D, B, $, H, z) {
|
|
22278
22278
|
K(this, Oo);
|
|
@@ -22292,7 +22292,7 @@ const Rr = class {
|
|
|
22292
22292
|
K(this, Al);
|
|
22293
22293
|
// ページ裏表を交換
|
|
22294
22294
|
K(this, kl);
|
|
22295
|
-
K(this,
|
|
22295
|
+
K(this, Ye);
|
|
22296
22296
|
K(this, Dl);
|
|
22297
22297
|
K(this, Fl);
|
|
22298
22298
|
// トランス終了待ち
|
|
@@ -22369,8 +22369,8 @@ const Rr = class {
|
|
|
22369
22369
|
K(this, zs, "");
|
|
22370
22370
|
pt(this, "getFrmDisabled", (t) => U(this, Fr).getFrmDisabled(t));
|
|
22371
22371
|
K(this, Br, void 0);
|
|
22372
|
-
K(this,
|
|
22373
|
-
K(this,
|
|
22372
|
+
K(this, fi, void 0);
|
|
22373
|
+
K(this, ei, (t, e = this.currentTxtlayForeNeedErr, r = !0) => e.tagCh("| 《" + t + "》"));
|
|
22374
22374
|
pt(this, "goTxt", () => {
|
|
22375
22375
|
});
|
|
22376
22376
|
pt(this, "breakLine", (t) => {
|
|
@@ -22429,12 +22429,12 @@ void main(void) {
|
|
|
22429
22429
|
width: CmnLib.stageW,
|
|
22430
22430
|
height: CmnLib.stageH
|
|
22431
22431
|
}));
|
|
22432
|
-
K(this,
|
|
22432
|
+
K(this, Pe, new Sprite(U(this, gr)));
|
|
22433
22433
|
K(this, Nn, []);
|
|
22434
|
-
K(this,
|
|
22434
|
+
K(this, Ce, { tw: void 0, resume: !1 });
|
|
22435
22435
|
// トゥイーン開始
|
|
22436
|
-
K(this,
|
|
22437
|
-
K(this,
|
|
22436
|
+
K(this, di, {});
|
|
22437
|
+
K(this, pi, (t) => {
|
|
22438
22438
|
throw U(this, Fn).call(this), 0;
|
|
22439
22439
|
});
|
|
22440
22440
|
// 操作対象のメッセージレイヤの指定
|
|
@@ -22446,7 +22446,7 @@ void main(void) {
|
|
|
22446
22446
|
K(this, Fn, () => {
|
|
22447
22447
|
throw "文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい";
|
|
22448
22448
|
});
|
|
22449
|
-
K(this,
|
|
22449
|
+
K(this, $e, { text: "" });
|
|
22450
22450
|
K(this, Ji, []);
|
|
22451
22451
|
this.cfg = t, this.hTag = e, this.appPixi = r, this.val = N, this.main = k, this.scrItr = D, this.sys = B, this.sndMng = $, this.alzTagArg = H, this.prpPrs = z;
|
|
22452
22452
|
const X = () => {
|
|
@@ -22456,7 +22456,7 @@ void main(void) {
|
|
|
22456
22456
|
else
|
|
22457
22457
|
for (const W of U(this, qi))
|
|
22458
22458
|
U(this, Jt)[W].fore.cvsResize();
|
|
22459
|
-
U(this, Fr).cvsResize(), U(this,
|
|
22459
|
+
U(this, Fr).cvsResize(), U(this, fi).cvsResize();
|
|
22460
22460
|
};
|
|
22461
22461
|
if (CmnLib.isMobile)
|
|
22462
22462
|
U(this, Hs).add(globalThis, "orientationchange", X, { passive: !0 });
|
|
@@ -22468,17 +22468,17 @@ void main(void) {
|
|
|
22468
22468
|
}, 1e3 / 60 * 10));
|
|
22469
22469
|
}, { passive: !0 });
|
|
22470
22470
|
}
|
|
22471
|
-
B.cvsResize(), TxtLayer.init(t, e, N, this, (W) => U(this, Jt)[W.layname].fore === W, r), GrpLayer.init(k, t, r, B, $, N), Button.init(t), Q(this, Fr, new FrameMng(t, e, r, N, k, B, U(this,
|
|
22471
|
+
B.cvsResize(), TxtLayer.init(t, e, N, this, (W) => U(this, Jt)[W.layname].fore === W, r), GrpLayer.init(k, t, r, B, $, N), Button.init(t), Q(this, Fr, new FrameMng(t, e, r, N, k, B, U(this, di))), B.hFactoryCls.grp = () => new GrpLayer(), B.hFactoryCls.txt = () => new TxtLayer(), e.loadplugin = (W) => et(this, Ol, Ff).call(this, W), e.snapshot = (W) => et(this, Rl, Df).call(this, W), e.add_lay = (W) => et(this, Ml, Bf).call(this, W), e.clear_lay = (W) => et(this, Al, Gf).call(this, W), e.finish_trans = () => et(this, kn, fa).call(this), e.lay = (W) => et(this, Il, Uf).call(this, W), e.trans = (W) => et(this, kl, $f).call(this, W), e.wt = (W) => et(this, Bl, zf).call(this, W), e.quake = (W) => et(this, Ul, Vf).call(this, W), e.stop_quake = (W) => e.finish_trans(W), e.wq = (W) => e.wt(W), e.pause_tsy = (W) => et(this, Hl, qf).call(this, W), e.resume_tsy = (W) => et(this, zl, Zf).call(this, W), e.stop_tsy = (W) => et(this, jl, Wf).call(this, W), e.tsy = (W) => et(this, Gl, Xf).call(this, W), e.wait_tsy = (W) => et(this, $l, Yf).call(this, W), e.ch = (W) => et(this, Dn, da).call(this, W), e.clear_text = (W) => et(this, Yl, Qf).call(this, W), e.current = (W) => U(this, Ao).call(this, W), e.endlink = (W) => et(this, Wl, td).call(this, W), e.er = (W) => et(this, ql, ed).call(this, W), e.graph = (W) => et(this, Zl, id).call(this, W), e.link = (W) => et(this, Kl, rd).call(this, W), e.r = (W) => et(this, Jl, nd).call(this, W), e.rec_ch = (W) => et(this, Lo, vc).call(this, W), e.rec_r = (W) => et(this, Ql, sd).call(this, W), e.reset_rec = (W) => et(this, tu, ad).call(this, W), e.ruby2 = (W) => et(this, eu, od).call(this, W), e.span = (W) => et(this, iu, hd).call(this, W), e.tcy = (W) => et(this, ru, ld).call(this, W), e.add_face = (W) => GrpLayer.add_face(W), e.wv = (W) => GrpLayer.wv(W), e.dump_lay = (W) => et(this, nu, ud).call(this, W), e.enable_event = (W) => et(this, su, cd).call(this, W), e.button = (W) => et(this, au, fd).call(this, W), t.existsBreakline && (this.breakLine = (W) => {
|
|
22472
22472
|
delete W.visible, W.id = "break", W.pic = "breakline";
|
|
22473
22473
|
const Z = encodeURIComponent(JSON.stringify(W));
|
|
22474
|
-
U(this,
|
|
22474
|
+
U(this, ei).call(this, "grp|" + Z);
|
|
22475
22475
|
}), t.existsBreakpage && (this.breakPage = (W) => {
|
|
22476
22476
|
delete W.visible, W.id = "break", W.pic = "breakpage";
|
|
22477
22477
|
const Z = encodeURIComponent(JSON.stringify(W));
|
|
22478
|
-
U(this,
|
|
22478
|
+
U(this, ei).call(this, "grp|" + Z);
|
|
22479
22479
|
}), Q(this, In, parseColor(String(t.oCfg.init.bg_color)));
|
|
22480
22480
|
const V = new Graphics();
|
|
22481
|
-
V.beginFill(U(this, In), 1).lineStyle(0, U(this, In)).drawRect(0, 0, CmnLib.stageW, CmnLib.stageH).endFill(), U(this, ne).addChild(V.clone()), U(this, me).addChild(V), U(this, me).visible = !1, U(this, ne).name = "page:A", U(this, me).name = "page:B", Q(this, Ti, r.stage), U(this, Ti).addChild(U(this, me)), U(this, Ti).addChild(U(this, ne)), U(this, Ti).addChild(U(this, Ln)), U(this, Ti).addChild(U(this,
|
|
22481
|
+
V.beginFill(U(this, In), 1).lineStyle(0, U(this, In)).drawRect(0, 0, CmnLib.stageW, CmnLib.stageH).endFill(), U(this, ne).addChild(V.clone()), U(this, me).addChild(V), U(this, me).visible = !1, U(this, ne).name = "page:A", U(this, me).name = "page:B", Q(this, Ti, r.stage), U(this, Ti).addChild(U(this, me)), U(this, Ti).addChild(U(this, ne)), U(this, Ti).addChild(U(this, Ln)), U(this, Ti).addChild(U(this, Pe)), U(this, Ti).name = "stage", r.ticker.add(U(this, Po));
|
|
22482
22482
|
const Y = (W, Z) => {
|
|
22483
22483
|
et(this, Cl, kf).call(this, Number(Z));
|
|
22484
22484
|
};
|
|
@@ -22487,7 +22487,7 @@ void main(void) {
|
|
|
22487
22487
|
q("", N.getVal("tmp:sn.button.fontFamily", Button.fontFamily)), N.defValTrg("tmp:sn.button.fontFamily", q), N.defTmp("const.sn.log.json", () => {
|
|
22488
22488
|
var W;
|
|
22489
22489
|
return JSON.stringify(
|
|
22490
|
-
(U(this,
|
|
22490
|
+
(U(this, $e).text = ((W = U(this, $e).text) == null ? void 0 : W.replaceAll("</span><span class='sn_ch'>", "")) ?? "") ? [...U(this, Ji), U(this, $e)] : U(this, Ji)
|
|
22491
22491
|
);
|
|
22492
22492
|
}), N.defTmp("const.sn.last_page_text", () => {
|
|
22493
22493
|
var W;
|
|
@@ -22508,7 +22508,7 @@ void main(void) {
|
|
|
22508
22508
|
);
|
|
22509
22509
|
}
|
|
22510
22510
|
setEvtMng(t) {
|
|
22511
|
-
Q(this,
|
|
22511
|
+
Q(this, fi, t), U(this, Fr).setEvtMng(t), GrpLayer.setEvtMng(t);
|
|
22512
22512
|
}
|
|
22513
22513
|
before_destroy() {
|
|
22514
22514
|
for (const t of Object.values(U(this, Jt)))
|
|
@@ -22519,13 +22519,13 @@ void main(void) {
|
|
|
22519
22519
|
}
|
|
22520
22520
|
// トゥイーン全停止
|
|
22521
22521
|
stopAllTw() {
|
|
22522
|
-
Q(this,
|
|
22522
|
+
Q(this, di, {}), removeAll();
|
|
22523
22523
|
}
|
|
22524
22524
|
clearBreak() {
|
|
22525
|
-
this.currentTxtlayFore && (this.clearBreak = () => U(this,
|
|
22525
|
+
this.currentTxtlayFore && (this.clearBreak = () => U(this, ei).call(this, "del|break"), this.clearBreak());
|
|
22526
22526
|
}
|
|
22527
22527
|
clickTxtLay() {
|
|
22528
|
-
return this.currentTxtlayFore ? et(this,
|
|
22528
|
+
return this.currentTxtlayFore ? et(this, Ye, oi).call(this).some((t) => {
|
|
22529
22529
|
const e = U(this, Jt)[t].fore;
|
|
22530
22530
|
return e instanceof TxtLayer && e.click();
|
|
22531
22531
|
}) : !1;
|
|
@@ -22546,7 +22546,7 @@ void main(void) {
|
|
|
22546
22546
|
return U(this, Ki) ? U(this, Ki).fore : null;
|
|
22547
22547
|
}
|
|
22548
22548
|
recText(t) {
|
|
22549
|
-
U(this,
|
|
22549
|
+
U(this, $e).text = t, this.val.setVal_Nochk(
|
|
22550
22550
|
"save",
|
|
22551
22551
|
"const.sn.sLog",
|
|
22552
22552
|
String(this.val.getVal("const.sn.log.json"))
|
|
@@ -22554,7 +22554,7 @@ void main(void) {
|
|
|
22554
22554
|
);
|
|
22555
22555
|
}
|
|
22556
22556
|
recPagebreak() {
|
|
22557
|
-
U(this,
|
|
22557
|
+
U(this, $e).text && (U(this, $e).text = U(this, $e).text.replaceAll("</span><span class='sn_ch'>", ""), U(this, Ji).push(U(this, $e)) > this.cfg.oCfg.log.max_len && Q(this, Ji, U(this, Ji).slice(-this.cfg.oCfg.log.max_len)), Q(this, $e, { text: "" }));
|
|
22558
22558
|
}
|
|
22559
22559
|
record() {
|
|
22560
22560
|
const t = {};
|
|
@@ -22570,7 +22570,7 @@ void main(void) {
|
|
|
22570
22570
|
}
|
|
22571
22571
|
playback(t, e) {
|
|
22572
22572
|
var D;
|
|
22573
|
-
Q(this, Ji, JSON.parse(String(this.val.getVal("save:const.sn.sLog")))), Q(this,
|
|
22573
|
+
Q(this, Ji, JSON.parse(String(this.val.getVal("save:const.sn.sLog")))), Q(this, $e, { text: "" });
|
|
22574
22574
|
const r = [], N = [];
|
|
22575
22575
|
for (const [B, { fore: $, fore: { idx: H }, back: z, cls: X }] of Object.entries(t)) {
|
|
22576
22576
|
N.push({ layer: B, idx: H });
|
|
@@ -22592,15 +22592,15 @@ void main(void) {
|
|
|
22592
22592
|
};
|
|
22593
22593
|
let LayerMng = Rr;
|
|
22594
22594
|
Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(), In = new WeakMap(), Hs = new WeakMap(), Po = new WeakMap(), Co = new WeakMap(), Ro = new WeakMap(), zs = new WeakMap(), Oo = new WeakSet(), pc = function(t) {
|
|
22595
|
-
[
|
|
22595
|
+
[Ie(this, Ro)._, this.zs = ""] = t.split("/");
|
|
22596
22596
|
const e = U(this, Jt)[U(this, Ro)];
|
|
22597
22597
|
e && (U(this, zs) ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
|
|
22598
|
-
}, Br = new WeakMap(),
|
|
22599
|
-
for (const e of et(this,
|
|
22598
|
+
}, Br = new WeakMap(), fi = new WeakMap(), Cl = new WeakSet(), kf = function(t) {
|
|
22599
|
+
for (const e of et(this, Ye, oi).call(this)) {
|
|
22600
22600
|
const r = U(this, Jt)[e];
|
|
22601
22601
|
r.fore instanceof TxtLayer && (r.fore.chgBackAlpha(t), r.back.chgBackAlpha(t));
|
|
22602
22602
|
}
|
|
22603
|
-
},
|
|
22603
|
+
}, ei = new WeakMap(), Rl = new WeakSet(), Df = function(t) {
|
|
22604
22604
|
const e = t.fn ? t.fn.slice(0, 10) === "userdata:/" ? t.fn : `downloads:/${t.fn + getDateStr("-", "_", "", "_")}.png` : `downloads:/snapshot${getDateStr("-", "_", "", "_")}.png`, r = this.cfg.searchPath(e);
|
|
22605
22605
|
if (!("layer" in t) && this.sys.canCapturePage(r, () => this.main.resume()))
|
|
22606
22606
|
return !0;
|
|
@@ -22613,15 +22613,15 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22613
22613
|
backgroundColor: k & 16777215,
|
|
22614
22614
|
autoDensity: !0
|
|
22615
22615
|
}), B = [], $ = t.page !== "back" ? "fore" : "back";
|
|
22616
|
-
if (U(this,
|
|
22616
|
+
if (U(this, Ce).tw)
|
|
22617
22617
|
B.push(new Promise((H) => {
|
|
22618
22618
|
U(this, me).visible = !0;
|
|
22619
22619
|
for (const z of U(this, Nn))
|
|
22620
22620
|
D.render(z, { clear: !1 });
|
|
22621
|
-
U(this, me).visible = !1, U(this, Ln).visible = !0, U(this, ne).filters = U(this,
|
|
22621
|
+
U(this, me).visible = !1, U(this, Ln).visible = !0, U(this, ne).filters = U(this, Pe).filters, U(this, ne).visible = !0, D.render(U(this, ne), { clear: !1 }), U(this, ne).visible = !1, U(this, ne).filters = [], H();
|
|
22622
22622
|
}));
|
|
22623
22623
|
else
|
|
22624
|
-
for (const H of et(this,
|
|
22624
|
+
for (const H of et(this, Ye, oi).call(this, t.layer))
|
|
22625
22625
|
B.push(
|
|
22626
22626
|
new Promise((z) => U(this, Jt)[H][$].snapshot(D, () => z()))
|
|
22627
22627
|
);
|
|
@@ -22630,8 +22630,8 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22630
22630
|
if (D.render(U(this, Ti), { renderTexture: H }), await this.sys.savePic(
|
|
22631
22631
|
r,
|
|
22632
22632
|
D.plugins.extract.base64(Sprite.from(H))
|
|
22633
|
-
), !U(this,
|
|
22634
|
-
for (const z of et(this,
|
|
22633
|
+
), !U(this, Ce).tw)
|
|
22634
|
+
for (const z of et(this, Ye, oi).call(this, t.layer))
|
|
22635
22635
|
U(this, Jt)[z][$].snapshot_end();
|
|
22636
22636
|
D.destroy(!0), this.main.resume();
|
|
22637
22637
|
}), !0;
|
|
@@ -22667,11 +22667,11 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22667
22667
|
switch (U(this, Jt)[e] = new Pages(e, r, U(this, ne), U(this, me), t, this.sys, this.val, N), U(this, qi).push(e), r) {
|
|
22668
22668
|
case "txt":
|
|
22669
22669
|
U(this, Zi) || (Q(this, Fn, () => {
|
|
22670
|
-
}), Q(this,
|
|
22671
|
-
U(this,
|
|
22672
|
-
for (const k of et(this,
|
|
22670
|
+
}), Q(this, pi, et(this, Vl, Kf)), Q(this, Ao, et(this, Xl, Jf)), this.hTag.current({ layer: e }), this.goTxt = () => {
|
|
22671
|
+
U(this, fi).isSkipping() ? Q(Rr, Ur, 0) : this.setNormalChWait();
|
|
22672
|
+
for (const k of et(this, Ye, oi).call(this)) {
|
|
22673
22673
|
const D = U(this, Jt)[k].fore;
|
|
22674
|
-
D instanceof TxtLayer && U(this,
|
|
22674
|
+
D instanceof TxtLayer && U(this, ei).call(this, "gotxt|", D, !1);
|
|
22675
22675
|
}
|
|
22676
22676
|
}), this.val.setVal_Nochk(
|
|
22677
22677
|
"save",
|
|
@@ -22711,15 +22711,15 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22711
22711
|
const r = U(this, Jt)[et(this, Gr, as).call(this, { layer: e })];
|
|
22712
22712
|
t.page === "both" ? (r.fore.clearLay(t), r.back.clearLay(t)) : r.getPage(t).clearLay(t);
|
|
22713
22713
|
}), !1;
|
|
22714
|
-
}, Ll = new WeakMap(), Io = new WeakMap(), Nl = new WeakMap(), An = new WeakMap(), Ln = new WeakMap(), gr = new WeakMap(),
|
|
22715
|
-
et(this, kn, fa).call(this), U(this,
|
|
22714
|
+
}, Ll = new WeakMap(), Io = new WeakMap(), Nl = new WeakMap(), An = new WeakMap(), Ln = new WeakMap(), gr = new WeakMap(), Pe = new WeakMap(), Nn = new WeakMap(), kl = new WeakSet(), $f = function(t) {
|
|
22715
|
+
et(this, kn, fa).call(this), U(this, fi).hideHint();
|
|
22716
22716
|
const { layer: e } = t;
|
|
22717
22717
|
Q(this, Nn, []);
|
|
22718
22718
|
const r = {}, N = [];
|
|
22719
|
-
for (const Z of et(this,
|
|
22719
|
+
for (const Z of et(this, Ye, oi).call(this, e))
|
|
22720
22720
|
r[Z] = !0, N.push(U(this, Jt)[Z].fore);
|
|
22721
22721
|
const k = [];
|
|
22722
|
-
for (const Z of et(this,
|
|
22722
|
+
for (const Z of et(this, Ye, oi).call(this)) {
|
|
22723
22723
|
const tt = U(this, Jt)[Z][r[Z] ? "back" : "fore"];
|
|
22724
22724
|
U(this, Nn).push(tt.spLay), k.push(tt);
|
|
22725
22725
|
}
|
|
@@ -22749,12 +22749,12 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22749
22749
|
};
|
|
22750
22750
|
}
|
|
22751
22751
|
const $ = () => {
|
|
22752
|
-
D(), U(this, Ln).visible = !0, B(), U(this,
|
|
22752
|
+
D(), U(this, Ln).visible = !0, B(), U(this, Pe).visible = !0;
|
|
22753
22753
|
};
|
|
22754
|
-
U(this,
|
|
22754
|
+
U(this, Pe).alpha = 1;
|
|
22755
22755
|
const H = () => {
|
|
22756
22756
|
var tt;
|
|
22757
|
-
this.appPixi.ticker && this.appPixi.ticker.remove($), [
|
|
22757
|
+
this.appPixi.ticker && this.appPixi.ticker.remove($), [Ie(this, ne)._, Ie(this, me)._] = [U(this, me), U(this, ne)];
|
|
22758
22758
|
const Z = [];
|
|
22759
22759
|
for (const [J, it] of Object.entries(U(this, Jt))) {
|
|
22760
22760
|
if (r[J]) {
|
|
@@ -22764,28 +22764,28 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22764
22764
|
const { fore: { spLay: at }, back: { spLay: st } } = it, ht = U(this, ne).getChildIndex(st);
|
|
22765
22765
|
U(this, ne).removeChild(st), U(this, me).removeChild(at), U(this, ne).addChildAt(at, ht), U(this, me).addChildAt(st, ht);
|
|
22766
22766
|
}
|
|
22767
|
-
Promise.allSettled(Z), U(this, ne).visible = !0, U(this, me).visible = !1, U(this, Ln).visible = !1, U(this,
|
|
22767
|
+
Promise.allSettled(Z), U(this, ne).visible = !0, U(this, me).visible = !1, U(this, Ln).visible = !1, U(this, Pe).visible = !1, (tt = U(this, Ce).tw) == null || tt.stop(), U(this, Ce).resume && this.main.resume(), Q(this, Ce, { tw: void 0, resume: !1 });
|
|
22768
22768
|
};
|
|
22769
|
-
Q(this,
|
|
22769
|
+
Q(this, Ce, { tw: void 0, resume: !1 });
|
|
22770
22770
|
const z = argChk_Num(t, "time", 0);
|
|
22771
|
-
if (z === 0 || U(this,
|
|
22771
|
+
if (z === 0 || U(this, fi).isSkipping())
|
|
22772
22772
|
return H(), !1;
|
|
22773
22773
|
const { ease: X, glsl: V, rule: Y } = t, q = CmnTween.ease(X);
|
|
22774
22774
|
if (!V && !Y)
|
|
22775
|
-
return U(this,
|
|
22775
|
+
return U(this, Pe).filters = [], U(this, Ce).tw = new Tween(U(this, Pe)).to({ alpha: 0 }, z).delay(argChk_Num(t, "delay", 0)).easing(q).onComplete(H).start(), this.appPixi.ticker.add($), !1;
|
|
22776
22776
|
const W = V ? new Filter(void 0, V, U(this, Io)) : U(this, Nl);
|
|
22777
|
-
if (W.uniforms.vague = argChk_Num(t, "vague", 0.04), W.uniforms.tick = 0, U(this,
|
|
22778
|
-
return U(this,
|
|
22777
|
+
if (W.uniforms.vague = argChk_Num(t, "vague", 0.04), W.uniforms.tick = 0, U(this, Ce).tw = new Tween(W.uniforms).to({ tick: 1 }, z).delay(argChk_Num(t, "delay", 0)).easing(q).onComplete(H), U(this, Pe).filters = [W], V)
|
|
22778
|
+
return U(this, Ce).tw.start(), this.appPixi.ticker.add($), !1;
|
|
22779
22779
|
if (!Y)
|
|
22780
22780
|
throw "ruleが指定されていません";
|
|
22781
22781
|
return GrpLayer.csv2Sprites(Y, void 0, (Z) => {
|
|
22782
22782
|
var tt;
|
|
22783
|
-
W.uniforms.rule = Z.texture, Z.destroy(), (tt = U(this,
|
|
22783
|
+
W.uniforms.rule = Z.texture, Z.destroy(), (tt = U(this, Ce).tw) == null || tt.start(), this.appPixi.ticker.add($);
|
|
22784
22784
|
}), !1;
|
|
22785
|
-
},
|
|
22785
|
+
}, Ce = new WeakMap(), Ye = new WeakSet(), oi = function(t = "") {
|
|
22786
22786
|
return t ? t.split(",") : U(this, qi);
|
|
22787
22787
|
}, Dl = new WeakSet(), jf = function(t, e) {
|
|
22788
|
-
const r = et(this,
|
|
22788
|
+
const r = et(this, Ye, oi).call(this, t.layer);
|
|
22789
22789
|
for (const N of r) {
|
|
22790
22790
|
if (!N)
|
|
22791
22791
|
continue;
|
|
@@ -22796,22 +22796,22 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22796
22796
|
}
|
|
22797
22797
|
return r;
|
|
22798
22798
|
}, Fl = new WeakSet(), Hf = function(t = "") {
|
|
22799
|
-
return et(this,
|
|
22799
|
+
return et(this, Ye, oi).call(this, t).sort((e, r) => {
|
|
22800
22800
|
const N = U(this, ne).getChildIndex(U(this, Jt)[e].fore.spLay), k = U(this, ne).getChildIndex(U(this, Jt)[r].fore.spLay);
|
|
22801
22801
|
return N < k ? -1 : N > k ? 1 : 0;
|
|
22802
22802
|
});
|
|
22803
22803
|
}, Bl = new WeakSet(), zf = function(t) {
|
|
22804
|
-
return U(this,
|
|
22804
|
+
return U(this, Ce).tw ? U(this, Ce).resume = U(this, fi).waitEvent(t, () => et(this, kn, fa).call(this)) : !1;
|
|
22805
22805
|
}, kn = new WeakSet(), fa = function() {
|
|
22806
22806
|
var t;
|
|
22807
|
-
return (t = U(this,
|
|
22807
|
+
return (t = U(this, Ce).tw) == null || t.end(), !1;
|
|
22808
22808
|
}, Ul = new WeakSet(), Vf = function(t) {
|
|
22809
22809
|
et(this, kn, fa).call(this);
|
|
22810
22810
|
const e = argChk_Num(t, "time", NaN);
|
|
22811
|
-
if (e === 0 || U(this,
|
|
22811
|
+
if (e === 0 || U(this, fi).isSkipping())
|
|
22812
22812
|
return !1;
|
|
22813
22813
|
const { layer: r, ease: N } = t, k = [];
|
|
22814
|
-
for (const Y of et(this,
|
|
22814
|
+
for (const Y of et(this, Ye, oi).call(this, r))
|
|
22815
22815
|
k.push(U(this, Jt)[Y].fore.spLay);
|
|
22816
22816
|
U(this, gr).resize(CmnLib.stageW, CmnLib.stageH);
|
|
22817
22817
|
const D = () => {
|
|
@@ -22823,31 +22823,31 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22823
22823
|
);
|
|
22824
22824
|
U(this, ne).visible = !1;
|
|
22825
22825
|
};
|
|
22826
|
-
U(this,
|
|
22826
|
+
U(this, Pe).visible = !0, U(this, Pe).alpha = 1;
|
|
22827
22827
|
const B = uint(argChk_Num(t, "hmax", 10)), $ = uint(argChk_Num(t, "vmax", 10)), H = B === 0 ? () => {
|
|
22828
|
-
} : () => U(this,
|
|
22829
|
-
} : () => U(this,
|
|
22830
|
-
U(this,
|
|
22831
|
-
const X = argChk_Num(t, "repeat", 1), V = new Tween(U(this,
|
|
22828
|
+
} : () => U(this, Pe).x = Math.round(Math.random() * B * 2) - B, z = $ === 0 ? () => {
|
|
22829
|
+
} : () => U(this, Pe).y = Math.round(Math.random() * $ * 2) - $;
|
|
22830
|
+
U(this, Pe).filters = [];
|
|
22831
|
+
const X = argChk_Num(t, "repeat", 1), V = new Tween(U(this, Pe)).to({ x: 0, y: 0 }, e).delay(argChk_Num(t, "delay", 0)).easing(CmnTween.ease(N)).onUpdate(() => {
|
|
22832
22832
|
H(), z();
|
|
22833
22833
|
}).repeat(X > 0 ? X - 1 : 1 / 0).yoyo(argChk_Boolean(t, "yoyo", !1)).onComplete(() => {
|
|
22834
22834
|
var Y, q;
|
|
22835
|
-
(Y = this.appPixi.ticker) == null || Y.remove(D), U(this, ne).visible = !0, U(this,
|
|
22835
|
+
(Y = this.appPixi.ticker) == null || Y.remove(D), U(this, ne).visible = !0, U(this, Pe).visible = !1, U(this, Pe).x = 0, U(this, Pe).y = 0, (q = U(this, Ce).tw) == null || q.stop(), U(this, Ce).resume && this.main.resume(), Q(this, Ce, { tw: void 0, resume: !1 });
|
|
22836
22836
|
}).start();
|
|
22837
|
-
return Q(this,
|
|
22838
|
-
},
|
|
22837
|
+
return Q(this, Ce, { tw: V, resume: !1 }), this.appPixi.ticker.add(D), !1;
|
|
22838
|
+
}, di = new WeakMap(), Gl = new WeakSet(), Xf = function(t) {
|
|
22839
22839
|
const { layer: e, render: r, path: N, name: k, ease: D, chain: B } = t;
|
|
22840
22840
|
if (!e)
|
|
22841
22841
|
throw "layerは必須です";
|
|
22842
22842
|
const $ = et(this, Gr, as).call(this, t);
|
|
22843
22843
|
let H = U(this, Jt)[$].fore, z = () => {
|
|
22844
22844
|
};
|
|
22845
|
-
const X = U(this,
|
|
22845
|
+
const X = U(this, fi).isSkipping();
|
|
22846
22846
|
!X && r && (H.renderStart(), z = () => H.renderEnd());
|
|
22847
22847
|
const V = k ?? e, Y = () => {
|
|
22848
22848
|
var ft, mt;
|
|
22849
|
-
const lt = U(this,
|
|
22850
|
-
lt && (z(), delete U(this,
|
|
22849
|
+
const lt = U(this, di)[V];
|
|
22850
|
+
lt && (z(), delete U(this, di)[V], (ft = lt.tw) == null || ft.stop(), lt.resume && this.main.resume(), (mt = lt.onEnd) == null || mt.call(lt));
|
|
22851
22851
|
}, q = cnvTweenArg(t, H), W = X ? 0 : argChk_Num(t, "time", NaN), Z = CmnTween.ease(D), tt = argChk_Num(t, "repeat", 1), J = tt > 0 ? tt - 1 : 1 / 0, it = argChk_Boolean(t, "yoyo", !1), at = argChk_Num(t, "delay", 0), st = new Tween(H).to(q, W).easing(Z).repeat(J).yoyo(it).delay(at);
|
|
22852
22852
|
let ht = st;
|
|
22853
22853
|
if (N) {
|
|
@@ -22872,14 +22872,14 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22872
22872
|
CmnLib.debugLog && console.groupEnd();
|
|
22873
22873
|
}
|
|
22874
22874
|
if (ht.onComplete(Y), B) {
|
|
22875
|
-
const lt = U(this,
|
|
22875
|
+
const lt = U(this, di)[B ?? ""];
|
|
22876
22876
|
if (!(lt != null && lt.tw))
|
|
22877
22877
|
throw `${B}は存在しない・または終了したトゥイーンです`;
|
|
22878
22878
|
delete lt.onEnd, lt.tw.chain(st);
|
|
22879
22879
|
} else
|
|
22880
22880
|
st.start();
|
|
22881
22881
|
const ot = argChk_Boolean(t, "arrive", !1), nt = argChk_Boolean(t, "backlay", !1);
|
|
22882
|
-
return U(this,
|
|
22882
|
+
return U(this, di)[V] = { tw: ht, resume: !1, onEnd: () => {
|
|
22883
22883
|
if (ot && Object.assign(H, q), nt) {
|
|
22884
22884
|
const lt = U(this, Jt)[$].back.spLay;
|
|
22885
22885
|
for (const ft of Object.keys(hMemberCnt))
|
|
@@ -22891,8 +22891,8 @@ Ti = new WeakMap(), ne = new WeakMap(), me = new WeakMap(), Fr = new WeakMap(),
|
|
|
22891
22891
|
${r}` : N ?? e;
|
|
22892
22892
|
if (!k)
|
|
22893
22893
|
throw "トゥイーンが指定されていません";
|
|
22894
|
-
const D = U(this,
|
|
22895
|
-
return D != null && D.tw ? D.resume = U(this,
|
|
22894
|
+
const D = U(this, di)[k];
|
|
22895
|
+
return D != null && D.tw ? D.resume = U(this, fi).waitEvent(t, () => {
|
|
22896
22896
|
var B;
|
|
22897
22897
|
return (B = D.tw) == null ? void 0 : B.end();
|
|
22898
22898
|
}) : !1;
|
|
@@ -22902,33 +22902,33 @@ ${r}` : N ?? e;
|
|
|
22902
22902
|
${r}` : N ?? e;
|
|
22903
22903
|
if (!k)
|
|
22904
22904
|
throw "トゥイーンが指定されていません";
|
|
22905
|
-
return (B = (D = U(this,
|
|
22905
|
+
return (B = (D = U(this, di)[k]) == null ? void 0 : D.tw) == null || B.end(), !1;
|
|
22906
22906
|
}, Hl = new WeakSet(), qf = function(t) {
|
|
22907
22907
|
var D, B;
|
|
22908
22908
|
const { layer: e = "", id: r, name: N } = t, k = r ? `frm
|
|
22909
22909
|
${r}` : N ?? e;
|
|
22910
22910
|
if (!k)
|
|
22911
22911
|
throw "トゥイーンが指定されていません";
|
|
22912
|
-
return (B = (D = U(this,
|
|
22912
|
+
return (B = (D = U(this, di)[k]) == null ? void 0 : D.tw) == null || B.pause(), !1;
|
|
22913
22913
|
}, zl = new WeakSet(), Zf = function(t) {
|
|
22914
22914
|
var D, B;
|
|
22915
22915
|
const { layer: e = "", id: r, name: N } = t, k = r ? `frm
|
|
22916
22916
|
${r}` : N ?? e;
|
|
22917
22917
|
if (!k)
|
|
22918
22918
|
throw "トゥイーンが指定されていません";
|
|
22919
|
-
return (B = (D = U(this,
|
|
22919
|
+
return (B = (D = U(this, di)[k]) == null ? void 0 : D.tw) == null || B.resume(), !1;
|
|
22920
22920
|
}, Ur = new WeakMap(), Dn = new WeakSet(), da = function(t) {
|
|
22921
22921
|
const { text: e } = t;
|
|
22922
22922
|
if (!e)
|
|
22923
22923
|
throw "textは必須です";
|
|
22924
|
-
const r = U(this,
|
|
22925
|
-
delete t.text, U(this,
|
|
22924
|
+
const r = U(this, pi).call(this, t);
|
|
22925
|
+
delete t.text, U(this, fi).isSkipping() ? t.wait = 0 : "wait" in t && argChk_Num(t, "wait", NaN);
|
|
22926
22926
|
const N = encodeURIComponent(JSON.stringify(t));
|
|
22927
|
-
U(this,
|
|
22927
|
+
U(this, ei).call(this, "add|" + N, r);
|
|
22928
22928
|
const k = argChk_Boolean(t, "record", !0), D = this.val.doRecLog();
|
|
22929
22929
|
return k || this.val.setVal_Nochk("save", "sn.doRecLog", k), r.tagCh(e.replaceAll("[r]", `
|
|
22930
|
-
`)), this.val.setVal_Nochk("save", "sn.doRecLog", D), U(this,
|
|
22931
|
-
},
|
|
22930
|
+
`)), this.val.setVal_Nochk("save", "sn.doRecLog", D), U(this, ei).call(this, "add_close|", r), !1;
|
|
22931
|
+
}, pi = new WeakMap(), Vl = new WeakSet(), Kf = function(t) {
|
|
22932
22932
|
const e = et(this, Gr, as).call(this, t, U(this, Zi)), N = U(this, Jt)[e].getPage(t);
|
|
22933
22933
|
if (!(N instanceof TxtLayer))
|
|
22934
22934
|
throw e + "はTxtLayerではありません";
|
|
@@ -22940,7 +22940,7 @@ ${r}` : N ?? e;
|
|
|
22940
22940
|
if (Q(this, Ki, U(this, Jt)[e]), !(U(this, Ki).getPage(t) instanceof TxtLayer))
|
|
22941
22941
|
throw `${e}はTxtLayerではありません`;
|
|
22942
22942
|
this.recPagebreak(), Q(this, Zi, e), this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
|
|
22943
|
-
for (const r of et(this,
|
|
22943
|
+
for (const r of et(this, Ye, oi).call(this)) {
|
|
22944
22944
|
const N = U(this, Jt)[r];
|
|
22945
22945
|
N.fore instanceof TxtLayer && (N.fore.isCur = N.back.isCur = r === e);
|
|
22946
22946
|
}
|
|
@@ -22952,33 +22952,33 @@ ${r}` : N ?? e;
|
|
|
22952
22952
|
if (!(r in U(this, Jt)))
|
|
22953
22953
|
throw "属性 layer【" + r + "】が不正です。レイヤーがありません";
|
|
22954
22954
|
return t.layer = r;
|
|
22955
|
-
},
|
|
22956
|
-
const e = U(this,
|
|
22955
|
+
}, $e = new WeakMap(), Ji = new WeakMap(), Yl = new WeakSet(), Qf = function(t) {
|
|
22956
|
+
const e = U(this, pi).call(this, t);
|
|
22957
22957
|
return t.layer === U(this, Zi) && t.page === "fore" && this.recPagebreak(), e.clearText(), !1;
|
|
22958
22958
|
}, Wl = new WeakSet(), td = function(t) {
|
|
22959
|
-
return U(this,
|
|
22959
|
+
return U(this, ei).call(this, "endlink|", U(this, pi).call(this, t)), !1;
|
|
22960
22960
|
}, ql = new WeakSet(), ed = function(t) {
|
|
22961
22961
|
return argChk_Boolean(t, "rec_page_break", !0) && this.recPagebreak(), U(this, Ki) && (U(this, Ki).fore.clearLay(t), U(this, Ki).back.clearLay(t)), !1;
|
|
22962
22962
|
}, Zl = new WeakSet(), id = function(t) {
|
|
22963
22963
|
if (!t.pic)
|
|
22964
22964
|
throw "[graph] picは必須です";
|
|
22965
22965
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
22966
|
-
return U(this,
|
|
22966
|
+
return U(this, ei).call(this, "grp|" + e, U(this, pi).call(this, t)), !1;
|
|
22967
22967
|
}, Kl = new WeakSet(), rd = function(t) {
|
|
22968
22968
|
if (!t.fn && !t.label && !t.url)
|
|
22969
22969
|
throw "fnまたはlabelまたはurlは必須です";
|
|
22970
22970
|
t.fn ?? (t.fn = this.scrItr.scriptFn), t.style ?? (t.style = "background-color: rgba(255,0,0,0.5);"), t.style_hover ?? (t.style_hover = "background-color: rgba(255,0,0,0.9);"), t.style_clicked ?? (t.style_clicked = t.style);
|
|
22971
22971
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
22972
|
-
return U(this,
|
|
22972
|
+
return U(this, ei).call(this, "link|" + e, U(this, pi).call(this, t)), !1;
|
|
22973
22973
|
}, Jl = new WeakSet(), nd = function(t) {
|
|
22974
22974
|
return t.text = `
|
|
22975
22975
|
`, et(this, Dn, da).call(this, t);
|
|
22976
22976
|
}, Ql = new WeakSet(), sd = function(t) {
|
|
22977
22977
|
return et(this, Lo, vc).call(this, { ...t, text: "[r]" });
|
|
22978
22978
|
}, Lo = new WeakSet(), vc = function(t) {
|
|
22979
|
-
return Q(this,
|
|
22979
|
+
return Q(this, $e, { ...t, text: U(this, $e).text }), t.text ? (t.record = !0, t.style ?? (t.style = ""), t.style += "display: none;", t.wait = 0, et(this, Dn, da).call(this, t)) : !1;
|
|
22980
22980
|
}, tu = new WeakSet(), ad = function(t) {
|
|
22981
|
-
return Q(this, Ji, []), Q(this,
|
|
22981
|
+
return Q(this, Ji, []), Q(this, $e, { text: t.text ?? "" }), this.val.setVal_Nochk(
|
|
22982
22982
|
"save",
|
|
22983
22983
|
"const.sn.sLog",
|
|
22984
22984
|
t.text ? `[{text:"${t.text}"}]` : "[]"
|
|
@@ -22992,15 +22992,15 @@ ${r}` : N ?? e;
|
|
|
22992
22992
|
return t.text = "|" + encodeURIComponent(e) + "《" + encodeURIComponent(r) + "》", delete t.t, delete t.r, et(this, Dn, da).call(this, t);
|
|
22993
22993
|
}, iu = new WeakSet(), hd = function(t) {
|
|
22994
22994
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
22995
|
-
return U(this,
|
|
22995
|
+
return U(this, ei).call(this, "span|" + e, U(this, pi).call(this, t)), !1;
|
|
22996
22996
|
}, ru = new WeakSet(), ld = function(t) {
|
|
22997
22997
|
if (!t.t)
|
|
22998
22998
|
throw "[tcy] tは必須です";
|
|
22999
22999
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
23000
|
-
return U(this,
|
|
23000
|
+
return U(this, ei).call(this, "tcy|" + e, U(this, pi).call(this, t)), !1;
|
|
23001
23001
|
}, nu = new WeakSet(), ud = function(t) {
|
|
23002
23002
|
console.group("🥟 [dump_lay]");
|
|
23003
|
-
for (const e of et(this,
|
|
23003
|
+
for (const e of et(this, Ye, oi).call(this, t.layer)) {
|
|
23004
23004
|
const r = U(this, Jt)[e];
|
|
23005
23005
|
try {
|
|
23006
23006
|
console.info(
|
|
@@ -23015,9 +23015,9 @@ ${r}` : N ?? e;
|
|
|
23015
23015
|
return console.groupEnd(), !1;
|
|
23016
23016
|
}, su = new WeakSet(), cd = function(t) {
|
|
23017
23017
|
const e = et(this, Gr, as).call(this, t, U(this, Zi)), r = argChk_Boolean(t, "enabled", !0);
|
|
23018
|
-
return U(this,
|
|
23018
|
+
return U(this, pi).call(this, t).enabled = r, this.val.setVal_Nochk("save", "const.sn.layer." + e + ".enabled", r), !1;
|
|
23019
23019
|
}, au = new WeakSet(), fd = function(t) {
|
|
23020
|
-
return Pages.argChk_page(t, "back"), t.fn ?? (t.fn = this.scrItr.scriptFn), U(this,
|
|
23020
|
+
return Pages.argChk_page(t, "back"), t.fn ?? (t.fn = this.scrItr.scriptFn), U(this, pi).call(this, t).addButton(t), this.scrItr.recodeDesign(t), !1;
|
|
23021
23021
|
}, // 11 match 301 step (0.1ms) PCRE2 https://regex101.com/r/reinpq/1
|
|
23022
23022
|
// List ${x}${x2}/${y}${y2}/${o}${o2}=${json}\n
|
|
23023
23023
|
/*
|
|
@@ -23110,7 +23110,7 @@ class FocusMng {
|
|
|
23110
23110
|
}
|
|
23111
23111
|
remove(t) {
|
|
23112
23112
|
const e = U(this, _e).findIndex((r) => r.btn === t);
|
|
23113
|
-
e < 0 || (U(this, _e).splice(e, 1), U(this, _e).length === 0 ? Q(this, de, -1) : e <= U(this, de) && --
|
|
23113
|
+
e < 0 || (U(this, _e).splice(e, 1), U(this, _e).length === 0 ? Q(this, de, -1) : e <= U(this, de) && --Ie(this, de)._);
|
|
23114
23114
|
}
|
|
23115
23115
|
isFocus(t) {
|
|
23116
23116
|
return U(this, de) < 0 ? !1 : U(this, _e)[U(this, de)].btn === t;
|
|
@@ -23119,7 +23119,7 @@ class FocusMng {
|
|
|
23119
23119
|
et(this, Bn, pa).call(this);
|
|
23120
23120
|
const t = U(this, _e).length;
|
|
23121
23121
|
if (t !== 0) {
|
|
23122
|
-
--
|
|
23122
|
+
--Ie(this, de)._ < 0 && Q(this, de, t - 1);
|
|
23123
23123
|
for (let e = t; e >= 1; --e) {
|
|
23124
23124
|
const r = (U(this, de) + e) % t;
|
|
23125
23125
|
if (U(this, _e)[r].on()) {
|
|
@@ -23134,7 +23134,7 @@ class FocusMng {
|
|
|
23134
23134
|
et(this, Bn, pa).call(this);
|
|
23135
23135
|
const t = U(this, _e).length;
|
|
23136
23136
|
if (t !== 0) {
|
|
23137
|
-
++
|
|
23137
|
+
++Ie(this, de)._ >= t && Q(this, de, 0);
|
|
23138
23138
|
for (let e = 0; e < t; ++e) {
|
|
23139
23139
|
const r = (U(this, de) + e) % t;
|
|
23140
23140
|
if (U(this, _e)[r].on()) {
|
|
@@ -23169,12 +23169,12 @@ _e = new WeakMap(), de = new WeakMap(), Xs = new WeakMap(), ou = new WeakSet(),
|
|
|
23169
23169
|
!(e.btn instanceof Container) || e.btn.parent ? e.off() : U(this, _e).splice(t, 1);
|
|
23170
23170
|
}
|
|
23171
23171
|
};
|
|
23172
|
-
let chgSt, main$2, val, layMng, scrItr, sndMng, hTag, fcs, goTxt, procWheel4wle, elmHint, tagL_enabled = !0, skip_all = !1, skip_enabled = !1, auto_enabled = !1, hLocalEvt2Fnc = {}, hGlobalEvt2Fnc = {};
|
|
23172
|
+
let chgSt, main$2, val, layMng, scrItr, sndMng, hTag, fcs, goTxt, procWheel4wle, elmHint, cfg, tagL_enabled = !0, skip_all = !1, skip_enabled = !1, auto_enabled = !1, hLocalEvt2Fnc = {}, hGlobalEvt2Fnc = {};
|
|
23173
23173
|
function cancelAutoSkip() {
|
|
23174
23174
|
tagL_enabled || (tagL_enabled = !0, val.setVal_Nochk("tmp", "sn.tagL.enabled", !0)), skip_enabled && (skip_enabled = !1, val.setVal_Nochk("tmp", "sn.skip.enabled", !1)), auto_enabled && (auto_enabled = !1, val.setVal_Nochk("tmp", "sn.auto.enabled", !1));
|
|
23175
23175
|
}
|
|
23176
23176
|
var $r, Ys, Ch;
|
|
23177
|
-
const
|
|
23177
|
+
const Se = class {
|
|
23178
23178
|
constructor(t) {
|
|
23179
23179
|
K(this, Ys);
|
|
23180
23180
|
pt(this, "wait", (t) => skip_enabled ? (!skip_all && !scrItr.isNextKidoku && cancelAutoSkip(), !1) : Rs_Wait.go(t));
|
|
@@ -23183,8 +23183,8 @@ const Ae = class {
|
|
|
23183
23183
|
pt(this, "isWait", !1);
|
|
23184
23184
|
this.hArg = t, chgSt(this);
|
|
23185
23185
|
}
|
|
23186
|
-
static init(t, e, r, N, k, D, B, $, H, z) {
|
|
23187
|
-
chgSt = t, main$2 = e, val = r, layMng = N, scrItr = k, sndMng = D, hTag = B, fcs = $, goTxt = () => layMng.goTxt(), procWheel4wle = H, elmHint = z, new RsEvtRsv(), val.defTmp("sn.tagL.enabled", () => tagL_enabled), val.defValTrg("tmp:sn.tagL.enabled", (
|
|
23186
|
+
static init(t, e, r, N, k, D, B, $, H, z, X) {
|
|
23187
|
+
chgSt = t, main$2 = e, val = r, layMng = N, scrItr = k, sndMng = D, hTag = B, fcs = $, goTxt = () => layMng.goTxt(), procWheel4wle = H, elmHint = z, cfg = X, new RsEvtRsv(), val.defTmp("sn.tagL.enabled", () => tagL_enabled), val.defValTrg("tmp:sn.tagL.enabled", (V, Y) => tagL_enabled = String(Y) !== "false"), val.defTmp("sn.skip.all", () => skip_all), val.defValTrg("tmp:sn.skip.all", (V, Y) => skip_all = String(Y) !== "false"), val.defTmp("sn.skip.enabled", () => skip_enabled), val.defValTrg("tmp:sn.skip.enabled", (V, Y) => skip_enabled = String(Y) !== "false"), val.defTmp("sn.auto.enabled", () => auto_enabled), val.defValTrg("tmp:sn.auto.enabled", (V, Y) => auto_enabled = String(Y) !== "false"), hLocalEvt2Fnc = {}, hGlobalEvt2Fnc = {};
|
|
23188
23188
|
}
|
|
23189
23189
|
get isSkipping() {
|
|
23190
23190
|
return skip_enabled;
|
|
@@ -23208,19 +23208,19 @@ const Ae = class {
|
|
|
23208
23208
|
if (t.slice(0, 4) !== "dom=")
|
|
23209
23209
|
return;
|
|
23210
23210
|
const N = e ? hGlobalEvt2Fnc[r] : hLocalEvt2Fnc[r];
|
|
23211
|
-
|
|
23211
|
+
Se.getHtmlElmList(t).el.forEach((k) => k.removeEventListener("click", N)), e ? delete hGlobalEvt2Fnc[r] : delete hLocalEvt2Fnc[r];
|
|
23212
23212
|
}
|
|
23213
23213
|
static clear_event(t) {
|
|
23214
23214
|
const e = argChk_Boolean(t, "global", !1), r = e ? hGlobalEvt2Fnc : hLocalEvt2Fnc;
|
|
23215
23215
|
for (const [N, k] of Object.entries(r))
|
|
23216
|
-
N.slice(0, 4) === "dom=" &&
|
|
23216
|
+
N.slice(0, 4) === "dom=" && Se.getHtmlElmList(N).el.forEach((D) => D.removeEventListener("click", k));
|
|
23217
23217
|
return e ? hGlobalEvt2Fnc = {} : hLocalEvt2Fnc = {}, !1;
|
|
23218
23218
|
}
|
|
23219
23219
|
s(t) {
|
|
23220
23220
|
return et(this, Ys, Ch).call(this), Rs_S.go(t);
|
|
23221
23221
|
}
|
|
23222
23222
|
waitTxtAndTimer(t, e) {
|
|
23223
|
-
return
|
|
23223
|
+
return Se.eeTextBreak.once(Se.NOTICE_COMP_TXT, () => {
|
|
23224
23224
|
if (this.finishLimitedEvent(), t === 0) {
|
|
23225
23225
|
this.onFinish();
|
|
23226
23226
|
return;
|
|
@@ -23232,11 +23232,11 @@ const Ae = class {
|
|
|
23232
23232
|
r.stop(), remove$6(r), this.onUserAct();
|
|
23233
23233
|
});
|
|
23234
23234
|
}), this.waitLimitedEvent(e, () => {
|
|
23235
|
-
|
|
23235
|
+
Se.eeTextBreak.off(Se.NOTICE_COMP_TXT), this.onUserAct();
|
|
23236
23236
|
});
|
|
23237
23237
|
}
|
|
23238
23238
|
static noticeCompTxt() {
|
|
23239
|
-
|
|
23239
|
+
Se.eeTextBreak.emit(Se.NOTICE_COMP_TXT);
|
|
23240
23240
|
}
|
|
23241
23241
|
static popLocalEvts() {
|
|
23242
23242
|
const t = hLocalEvt2Fnc;
|
|
@@ -23251,7 +23251,7 @@ const Ae = class {
|
|
|
23251
23251
|
// hTag.event()は内部で使わず、こうする
|
|
23252
23252
|
hLocalEvt2Fnc.enter = hLocalEvt2Fnc.arrowdown = // hTag.event({key:'downwheel', breakout: fnc});
|
|
23253
23253
|
// hTag.event()は内部で使わず、こうする
|
|
23254
|
-
hLocalEvt2Fnc["wheel.y>0"] = () => this.onUserAct() : (delete hLocalEvt2Fnc.click, delete hLocalEvt2Fnc.enter, delete hLocalEvt2Fnc.arrowdown, delete hLocalEvt2Fnc["wheel.y>0"]),
|
|
23254
|
+
hLocalEvt2Fnc["wheel.y>0"] = () => this.onUserAct() : (delete hLocalEvt2Fnc.click, delete hLocalEvt2Fnc.enter, delete hLocalEvt2Fnc.arrowdown, delete hLocalEvt2Fnc["wheel.y>0"]), Se.getEvt2Fnc = e ? (r) => hLocalEvt2Fnc[r] ?? hGlobalEvt2Fnc[r] : (r) => hLocalEvt2Fnc[r], scrItr.noticeWait(), CmnLib.debugLog) {
|
|
23255
23255
|
const r = /* @__PURE__ */ Object.create(null);
|
|
23256
23256
|
r.local = Object.keys(hLocalEvt2Fnc), r.global = Object.keys(hGlobalEvt2Fnc), console.log("🎍 wait event... %o", r);
|
|
23257
23257
|
}
|
|
@@ -23310,11 +23310,11 @@ const Ae = class {
|
|
|
23310
23310
|
page(t) {
|
|
23311
23311
|
if (!("clear" in t || "style" in t || "to" in t))
|
|
23312
23312
|
throw "clear か style か to は必須です";
|
|
23313
|
-
argChk_Boolean(t, "clear", !1) && (
|
|
23313
|
+
argChk_Boolean(t, "clear", !1) && (Se.aPage = []);
|
|
23314
23314
|
const { to: e, style: r } = t;
|
|
23315
|
-
switch (r && (
|
|
23315
|
+
switch (r && (Se.stylePage = r), e) {
|
|
23316
23316
|
case "prev":
|
|
23317
|
-
if (
|
|
23317
|
+
if (Se.aPage.length < 2)
|
|
23318
23318
|
return !1;
|
|
23319
23319
|
break;
|
|
23320
23320
|
default:
|
|
@@ -23323,19 +23323,23 @@ const Ae = class {
|
|
|
23323
23323
|
return RsPagination.go(t);
|
|
23324
23324
|
}
|
|
23325
23325
|
};
|
|
23326
|
-
let ReadState =
|
|
23326
|
+
let ReadState = Se;
|
|
23327
23327
|
$r = new WeakMap(), Ys = new WeakSet(), Ch = function(t = !1) {
|
|
23328
|
-
var
|
|
23328
|
+
var D;
|
|
23329
23329
|
if (!val.getVal("save:sn.doRecLog"))
|
|
23330
23330
|
return;
|
|
23331
23331
|
const { fn: e, idx: r } = scrItr.nowScrIdx(), N = r - 1 + ":" + e;
|
|
23332
|
-
|
|
23332
|
+
if (Se.aPage.findIndex((B) => B.key === N) > -1)
|
|
23333
|
+
return;
|
|
23334
|
+
(D = Se.aPage.at(-1)) != null && D.week && Se.aPage.pop();
|
|
23335
|
+
const k = cfg.oCfg.log.max_len;
|
|
23336
|
+
Se.aPage.push({
|
|
23333
23337
|
key: N,
|
|
23334
23338
|
week: t,
|
|
23335
23339
|
fn: val.getVal("save:const.sn.scriptFn", e),
|
|
23336
23340
|
index: val.getVal("save:const.sn.scriptIdx", 0),
|
|
23337
23341
|
mark: scrItr.nowMark()
|
|
23338
|
-
}));
|
|
23342
|
+
}) > k && (Se.aPage = Se.aPage.slice(-k));
|
|
23339
23343
|
}, pt(ReadState, "getEvt2Fnc", (t) => hLocalEvt2Fnc[t] ?? hGlobalEvt2Fnc[t]), pt(ReadState, "eeTextBreak", new i$1()), // static必須
|
|
23340
23344
|
pt(ReadState, "NOTICE_COMP_TXT", "sn:notice_comp_txt"), pt(ReadState, "aPage", []), pt(ReadState, "stylePage", "color: yellow;");
|
|
23341
23345
|
class RsEvtRsv extends ReadState {
|
|
@@ -23494,31 +23498,31 @@ class Rs_WaitAny extends Rs_S {
|
|
|
23494
23498
|
this.onFire();
|
|
23495
23499
|
}
|
|
23496
23500
|
}
|
|
23497
|
-
var
|
|
23501
|
+
var vi;
|
|
23498
23502
|
const jc = class extends Rs_S {
|
|
23499
23503
|
constructor() {
|
|
23500
23504
|
super(...arguments);
|
|
23501
23505
|
pt(this, "wait", () => !1);
|
|
23502
23506
|
pt(this, "waitclick", () => !1);
|
|
23503
23507
|
pt(this, "waitTxtAndTimer", () => !1);
|
|
23504
|
-
K(this,
|
|
23508
|
+
K(this, vi, ReadState.aPage.length - 1);
|
|
23505
23509
|
}
|
|
23506
23510
|
get isSkipping() {
|
|
23507
|
-
return !ReadState.aPage[U(this,
|
|
23511
|
+
return !ReadState.aPage[U(this, vi)].week;
|
|
23508
23512
|
}
|
|
23509
23513
|
// return true で良いのだが、[l]でページ移動モードになったあと、[l]に戻ってモード終了してから、[p]に至る文字表示が瞬時表示になる対策
|
|
23510
23514
|
s(e) {
|
|
23511
23515
|
return Rs_S.go(e);
|
|
23512
23516
|
}
|
|
23513
23517
|
l(e) {
|
|
23514
|
-
if (!ReadState.aPage[U(this,
|
|
23518
|
+
if (!ReadState.aPage[U(this, vi)].week)
|
|
23515
23519
|
return !1;
|
|
23516
23520
|
const r = ReadState.aPage.length;
|
|
23517
|
-
return U(this,
|
|
23521
|
+
return U(this, vi) === r - 1 ? Rs_L_Wait.go(e) : (argChk_Boolean(e, "visible", !0) && (layMng.breakLine(e), goTxt()), this.waitEventBase(!1, !0), !0);
|
|
23518
23522
|
}
|
|
23519
23523
|
p(e) {
|
|
23520
23524
|
const r = ReadState.aPage.length;
|
|
23521
|
-
return U(this,
|
|
23525
|
+
return U(this, vi) === r - 1 ? Rs_P_Wait.go(e) : (argChk_Boolean(e, "visible", !0) && (layMng.breakPage(e), goTxt()), this.waitEventBase(!1, !0), !0);
|
|
23522
23526
|
}
|
|
23523
23527
|
page(e) {
|
|
23524
23528
|
const { to: r } = e;
|
|
@@ -23527,23 +23531,23 @@ const jc = class extends Rs_S {
|
|
|
23527
23531
|
const N = ReadState.aPage.length;
|
|
23528
23532
|
switch (r) {
|
|
23529
23533
|
case "prev":
|
|
23530
|
-
if (U(this,
|
|
23534
|
+
if (U(this, vi) === 0)
|
|
23531
23535
|
return !1;
|
|
23532
|
-
--
|
|
23536
|
+
--Ie(this, vi)._;
|
|
23533
23537
|
break;
|
|
23534
23538
|
case "next":
|
|
23535
|
-
if (U(this,
|
|
23539
|
+
if (U(this, vi) === N - 1)
|
|
23536
23540
|
return !1;
|
|
23537
|
-
++
|
|
23541
|
+
++Ie(this, vi)._;
|
|
23538
23542
|
break;
|
|
23539
23543
|
default:
|
|
23540
23544
|
throw `属性to「${r}」は異常です`;
|
|
23541
23545
|
}
|
|
23542
|
-
const { fn: k, index: D, mark: B } = ReadState.aPage[U(this,
|
|
23546
|
+
const { fn: k, index: D, mark: B } = ReadState.aPage[U(this, vi)];
|
|
23543
23547
|
return scrItr.loadFromMark({
|
|
23544
23548
|
fn: k,
|
|
23545
23549
|
index: D,
|
|
23546
|
-
style: U(this,
|
|
23550
|
+
style: U(this, vi) === N - 1 ? void 0 : ReadState.stylePage
|
|
23547
23551
|
//r_style までは不要か
|
|
23548
23552
|
}, B);
|
|
23549
23553
|
}
|
|
@@ -23553,7 +23557,7 @@ const jc = class extends Rs_S {
|
|
|
23553
23557
|
}
|
|
23554
23558
|
};
|
|
23555
23559
|
let RsPagination = jc;
|
|
23556
|
-
|
|
23560
|
+
vi = new WeakMap(), pt(RsPagination, "go", (e) => new jc(e).page(e));
|
|
23557
23561
|
var top = "top", bottom = "bottom", right = "right", left = "left", auto = "auto", basePlacements = [top, bottom, right, left], start = "start", end = "end", clippingParents = "clippingParents", viewport = "viewport", popper = "popper", reference = "reference", variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(o, t) {
|
|
23558
23562
|
return o.concat([t + "-" + start, t + "-" + end]);
|
|
23559
23563
|
}, []), placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(o, t) {
|
|
@@ -24252,8 +24256,8 @@ function preventOverflow(o) {
|
|
|
24252
24256
|
ht[at] = Yt, wt[at] = Yt - Ot;
|
|
24253
24257
|
}
|
|
24254
24258
|
if (B) {
|
|
24255
|
-
var _t,
|
|
24256
|
-
ht[st] = te, wt[st] = te -
|
|
24259
|
+
var _t, Re = at === "x" ? top : left, ni = at === "x" ? bottom : right, Oe = ht[st], mi = st === "y" ? "height" : "width", _i = Oe + Z[Re], Ke = Oe - Z[ni], Bi = [top, left].indexOf(tt) !== -1, xe = (_t = mt == null ? void 0 : mt[st]) != null ? _t : 0, ge = Bi ? _i : Oe - ot[mi] - nt[mi] - xe + ft.altAxis, le = Bi ? Oe + ot[mi] + nt[mi] - xe - ft.altAxis : Ke, te = Y && Bi ? withinMaxClamp(ge, Oe, le) : within(Y ? ge : _i, Oe, Y ? le : Ke);
|
|
24260
|
+
ht[st] = te, wt[st] = te - Oe;
|
|
24257
24261
|
}
|
|
24258
24262
|
t.modifiersData[r] = wt;
|
|
24259
24263
|
}
|
|
@@ -24459,7 +24463,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
|
|
|
24459
24463
|
defaultModifiers
|
|
24460
24464
|
});
|
|
24461
24465
|
const { GamepadListener } = require("gamepad.js");
|
|
24462
|
-
var
|
|
24466
|
+
var We, jr, Le, qe, ko, Do, mc, Fo, gc, Bo, yc, Ws, qs, Uo, bc, Go, De, Zs, Ks, $o, hu, pd, lu, vd, jo, xc, uu, md, Ze;
|
|
24463
24467
|
class EventMng {
|
|
24464
24468
|
constructor(t, e, r, N, k, D, B, $, H) {
|
|
24465
24469
|
K(this, Do);
|
|
@@ -24476,13 +24480,13 @@ class EventMng {
|
|
|
24476
24480
|
K(this, jo);
|
|
24477
24481
|
// フォーカス移動
|
|
24478
24482
|
K(this, uu);
|
|
24479
|
-
K(this,
|
|
24483
|
+
K(this, We, new EventListenerCtn());
|
|
24480
24484
|
K(this, jr, new GamepadListener({
|
|
24481
24485
|
analog: !1,
|
|
24482
24486
|
deadZone: 0.3
|
|
24483
24487
|
}));
|
|
24484
24488
|
K(this, Le, new FocusMng());
|
|
24485
|
-
K(this,
|
|
24489
|
+
K(this, qe, void 0);
|
|
24486
24490
|
K(this, ko, (t) => {
|
|
24487
24491
|
});
|
|
24488
24492
|
K(this, Ws, !1);
|
|
@@ -24508,7 +24512,7 @@ class EventMng {
|
|
|
24508
24512
|
// 予約イベントの発生待ち
|
|
24509
24513
|
pt(this, "waitEvent", (t, e) => Rs_WaitAny.waitEvent(t, e));
|
|
24510
24514
|
// 0:no push 1:one push 2:push repeating
|
|
24511
|
-
K(this,
|
|
24515
|
+
K(this, Ze, {
|
|
24512
24516
|
Alt: 0,
|
|
24513
24517
|
Meta: 0,
|
|
24514
24518
|
// COMMANDキー
|
|
@@ -24522,10 +24526,10 @@ class EventMng {
|
|
|
24522
24526
|
// AndroidのBackキーだと思う
|
|
24523
24527
|
});
|
|
24524
24528
|
var Z, tt;
|
|
24525
|
-
if (this.cfg = t, this.hTag = e, this.appPixi = r, this.main = N, this.layMng = k, this.val = D, this.scrItr = $, this.sys = H, e.clear_event = (J) => ReadState.clear_event(J), e.event = (J) => et(this, lu, vd).call(this, J), e.l = (J) => U(this,
|
|
24529
|
+
if (this.cfg = t, this.hTag = e, this.appPixi = r, this.main = N, this.layMng = k, this.val = D, this.scrItr = $, this.sys = H, e.clear_event = (J) => ReadState.clear_event(J), e.event = (J) => et(this, lu, vd).call(this, J), e.l = (J) => U(this, qe).l(J), e.p = (J) => U(this, qe).p(J), e.s = (J) => U(this, qe).s(J), e.set_cancel_skip = () => !1, e.set_focus = (J) => et(this, uu, md).call(this, J), e.wait = (J) => U(this, qe).wait(J), e.waitclick = (J) => U(this, qe).waitclick(J), e.page = (J) => U(this, qe).page(J), B.setEvtMng(this), $.setOtherObj(this, k), TxtLayer.setEvtMng(N, this, H), k.setEvtMng(this), H.setFire((J, it) => this.fire(J, it)), CmnLib.isDbg) {
|
|
24526
24530
|
const J = {
|
|
24527
24531
|
pause: () => {
|
|
24528
|
-
if (!U(this,
|
|
24532
|
+
if (!U(this, qe).isWait)
|
|
24529
24533
|
return;
|
|
24530
24534
|
const it = {};
|
|
24531
24535
|
$.recodeDesign(it), H.callHook("_enterDesign", it), H.send2Dbg("_enterDesign", it);
|
|
@@ -24579,7 +24583,7 @@ class EventMng {
|
|
|
24579
24583
|
<div class="sn_hint" role="tooltip">
|
|
24580
24584
|
<span>Dummy</span>
|
|
24581
24585
|
<div class="sn_hint_ar" data-popper-arrow></div>
|
|
24582
|
-
</div>`), Q(this, De, document.querySelector(".sn_hint")), Q(this, Zs, U(this, De).querySelector("span")), Q(this, Ks, createPopper(U(this, Go), U(this, De))), U(this, De).hidden = !0, r.stage.interactive = !0, CmnLib.isMobile ? r.stage.on("pointerdown", (J) => this.fire("click", J)) : U(this,
|
|
24586
|
+
</div>`), Q(this, De, document.querySelector(".sn_hint")), Q(this, Zs, U(this, De).querySelector("span")), Q(this, Ks, createPopper(U(this, Go), U(this, De))), U(this, De).hidden = !0, r.stage.interactive = !0, CmnLib.isMobile ? r.stage.on("pointerdown", (J) => this.fire("click", J)) : U(this, We).add(r.stage, "pointerdown", (J) => {
|
|
24583
24587
|
switch (J.data.button) {
|
|
24584
24588
|
case 0:
|
|
24585
24589
|
this.fire("click", J);
|
|
@@ -24588,22 +24592,22 @@ class EventMng {
|
|
|
24588
24592
|
this.fire("middleclick", J);
|
|
24589
24593
|
break;
|
|
24590
24594
|
}
|
|
24591
|
-
}), U(this,
|
|
24595
|
+
}), U(this, We).add(window, "keydown", (J) => et(this, Do, mc).call(this, J)), U(this, We).add(Main.cvs, "contextmenu", (J) => et(this, Fo, gc).call(this, J));
|
|
24592
24596
|
const z = () => D.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
|
|
24593
|
-
U(this,
|
|
24597
|
+
U(this, We).add(window, "languagechange", (J) => {
|
|
24594
24598
|
z(), this.fire("sn:chgNavLang", J), clearTextureCache();
|
|
24595
24599
|
}), z();
|
|
24596
24600
|
const X = (J) => {
|
|
24597
24601
|
CmnLib.isDarkMode = J.matches, D.setVal_Nochk("tmp", "const.sn.isDarkMode", CmnLib.isDarkMode);
|
|
24598
24602
|
}, V = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
24599
|
-
X(V), U(this,
|
|
24603
|
+
X(V), U(this, We).add(V, "change", (J) => {
|
|
24600
24604
|
X(J), this.fire("sn:chgDarkMode", J);
|
|
24601
24605
|
});
|
|
24602
24606
|
let Y = (J, it) => {
|
|
24603
24607
|
};
|
|
24604
|
-
"WheelEvent" in window && (U(this,
|
|
24608
|
+
"WheelEvent" in window && (U(this, We).add(Main.cvs, "wheel", (J) => et(this, Bo, yc).call(this, J), { passive: !0 }), Q(this, ko, (J) => U(this, We).add(J, "wheel", (it) => et(this, Bo, yc).call(this, it), { passive: !0 })), Y = (J, it) => J.add(Main.cvs, "wheel", (at) => {
|
|
24605
24609
|
at.isComposing || at.deltaY <= 0 || (at.stopPropagation(), it());
|
|
24606
|
-
})), ReadState.init((J) => Q(this,
|
|
24610
|
+
})), ReadState.init((J) => Q(this, qe, J), N, D, k, $, B, e, U(this, Le), Y, U(this, De), t), CmnLib.debugLog && (U(this, jr).on("gamepad:connected", (J) => console.log(`👺<'gamepad:connected' index:${J.detail.index} id:${J.detail.gamepad.id}`)), U(this, jr).on("gamepad:disconnected", (J) => console.log(`👺<'gamepad:disconnected' index:${J.detail.index} id:${J.detail.gamepad.id}`)));
|
|
24607
24611
|
const q = [
|
|
24608
24612
|
"",
|
|
24609
24613
|
"ArrowUp",
|
|
@@ -24634,18 +24638,18 @@ class EventMng {
|
|
|
24634
24638
|
(!it || it instanceof Container ? globalThis : it).dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: !0 }));
|
|
24635
24639
|
} else
|
|
24636
24640
|
Main.cvs.dispatchEvent(new Event("contextmenu"));
|
|
24637
|
-
}), U(this, jr).start(), U(this,
|
|
24638
|
-
J.isComposing || J.key in U(this,
|
|
24639
|
-
}), D.defTmp("const.sn.key.alternate", () => U(this,
|
|
24641
|
+
}), U(this, jr).start(), U(this, We).add(window, "keyup", (J) => {
|
|
24642
|
+
J.isComposing || J.key in U(this, Ze) && (U(this, Ze)[J.key] = 0);
|
|
24643
|
+
}), D.defTmp("const.sn.key.alternate", () => U(this, Ze).Alt > 0), D.defTmp("const.sn.key.command", () => U(this, Ze).Meta > 0), D.defTmp("const.sn.key.control", () => U(this, Ze).Control > 0), D.defTmp("const.sn.key.end", () => U(this, Ze).End > 0), D.defTmp("const.sn.key.escape", () => U(this, Ze).Escape > 0), D.defTmp("const.sn.key.back", () => U(this, Ze).GoBack > 0);
|
|
24640
24644
|
}
|
|
24641
24645
|
resvFlameEvent(t) {
|
|
24642
|
-
U(this,
|
|
24646
|
+
U(this, We).add(t, "keydown", (e) => et(this, Do, mc).call(this, e)), U(this, We).add(t, "contextmenu", (e) => et(this, Fo, gc).call(this, e)), U(this, ko).call(this, t);
|
|
24643
24647
|
}
|
|
24644
24648
|
destroy() {
|
|
24645
|
-
U(this, Le).destroy(), U(this,
|
|
24649
|
+
U(this, Le).destroy(), U(this, We).clear();
|
|
24646
24650
|
}
|
|
24647
24651
|
fire(t, e) {
|
|
24648
|
-
U(this,
|
|
24652
|
+
U(this, qe).fire(t, e);
|
|
24649
24653
|
}
|
|
24650
24654
|
popLocalEvts() {
|
|
24651
24655
|
return ReadState.popLocalEvts();
|
|
@@ -24660,7 +24664,7 @@ class EventMng {
|
|
|
24660
24664
|
var X;
|
|
24661
24665
|
!t.fn && !t.label && !t.url && this.main.errScript("fnまたはlabelまたはurlは必須です"), t.fn ?? (t.fn = this.scrItr.scriptFn), e.interactive = e.buttonMode = !0;
|
|
24662
24666
|
const D = ((X = t.key) == null ? void 0 : X.toLowerCase()) ?? " ", B = argChk_Boolean(t, "global", !1);
|
|
24663
|
-
ReadState.setEvt2Fnc(B, D, () => this.main.resumeByJumpOrCall(t)), e.on("pointerdown", (V) => U(this,
|
|
24667
|
+
ReadState.setEvt2Fnc(B, D, () => this.main.resumeByJumpOrCall(t)), e.on("pointerdown", (V) => U(this, qe).fire(D, V));
|
|
24664
24668
|
const $ = t.hint ? () => et(this, hu, pd).call(this, t, e) : () => {
|
|
24665
24669
|
}, H = () => {
|
|
24666
24670
|
r(), U(this, De).hidden = !0;
|
|
@@ -24702,13 +24706,13 @@ class EventMng {
|
|
|
24702
24706
|
}
|
|
24703
24707
|
// キー押下によるスキップ中か
|
|
24704
24708
|
isSkipping() {
|
|
24705
|
-
return U(this,
|
|
24709
|
+
return U(this, qe).isSkipping ? !0 : Object.keys(U(this, Ze)).some((t) => U(this, Ze)[t] === 2);
|
|
24706
24710
|
}
|
|
24707
24711
|
}
|
|
24708
|
-
|
|
24712
|
+
We = new WeakMap(), jr = new WeakMap(), Le = new WeakMap(), qe = new WeakMap(), ko = new WeakMap(), Do = new WeakSet(), mc = function(t) {
|
|
24709
24713
|
if (t.isComposing)
|
|
24710
24714
|
return;
|
|
24711
|
-
t.key in U(this,
|
|
24715
|
+
t.key in U(this, Ze) && (U(this, Ze)[t.key] = t.repeat ? 2 : 1);
|
|
24712
24716
|
const e = (t.altKey ? t.key === "Alt" ? "" : "alt+" : "") + (t.ctrlKey ? t.key === "Control" ? "" : "ctrl+" : "") + (t.shiftKey ? t.key === "Shift" ? "" : "shift+" : "") + t.key;
|
|
24713
24717
|
this.fire(e, t);
|
|
24714
24718
|
}, Fo = new WeakSet(), gc = function(t) {
|
|
@@ -24788,8 +24792,8 @@ Ye = new WeakMap(), jr = new WeakMap(), Le = new WeakMap(), We = new WeakMap(),
|
|
|
24788
24792
|
break;
|
|
24789
24793
|
}
|
|
24790
24794
|
B.forEach((H, z) => D.el.forEach((X) => {
|
|
24791
|
-
U(this,
|
|
24792
|
-
if (!U(this,
|
|
24795
|
+
U(this, We).add(X, H, (V) => {
|
|
24796
|
+
if (!U(this, qe).isWait || this.layMng.getFrmDisabled(D.id) || H === "keydown" && V.key !== "Enter")
|
|
24793
24797
|
return;
|
|
24794
24798
|
const Y = X.dataset;
|
|
24795
24799
|
for (const [q, W] of Object.entries(Y))
|
|
@@ -24847,15 +24851,15 @@ Ye = new WeakMap(), jr = new WeakMap(), Le = new WeakMap(), We = new WeakMap(),
|
|
|
24847
24851
|
break;
|
|
24848
24852
|
}
|
|
24849
24853
|
return !1;
|
|
24850
|
-
},
|
|
24854
|
+
}, Ze = new WeakMap();
|
|
24851
24855
|
class CallStack {
|
|
24852
|
-
constructor(t = "", e = 0, r = { ":hEvt1Time": {}, ":hMp": {} }) {
|
|
24856
|
+
constructor(t = "", e = 0, r = { ":hEvt1Time": {}, ":hMp": {}, ":lenIfStk": 1 }) {
|
|
24853
24857
|
pt(this, "toString", () => `[fn:${this.fn}, idx:${this.idx}, csArg:${this.csArg}]`);
|
|
24854
24858
|
this.fn = t, this.idx = e, this.csArg = r;
|
|
24855
24859
|
}
|
|
24856
24860
|
}
|
|
24857
|
-
var Qt, se, Lt, pe, ce, yr, Ho, Ec, Un, Hr, cu, zr, zo, Sc, Vo, Tc, Xo, Vr, os, Gn, va, $n, br, ye, fu, _d, jn, ma, du, gd, Yo, Js,
|
|
24858
|
-
const
|
|
24861
|
+
var Qt, se, Lt, pe, ce, yr, Ho, Ec, Un, Hr, cu, zr, zo, Sc, Vo, Tc, Xo, Vr, os, Gn, va, $n, br, ye, fu, _d, jn, ma, du, gd, Yo, Js, ii, pu, yd, vu, bd, xr, Jr, mu, xd, Hn, zn, Wo, qo, Zo, Fe, _u, Ed, gu, Sd, yu, Td, Ko, wc, bu, wd, xu, Pd, Jo, Pc, Qo, Vn, ga, Xn, Qi, Pr, th, Cc, eh, ih, Rc, Eu, Su, rh, Tu, Cd, Be, wu, Rd, nh, Oc, Pu, Cu, Ru, Od, Ou, Md, Er, sh, Mc, Mu, Id, Iu, Ad, Au, Lu, Ld, ah, Qs, Nu, Nd, ku, kd, Di, Du, Dd, Fu, Fd;
|
|
24862
|
+
const hi = class {
|
|
24859
24863
|
constructor(t, e, r, N, k, D, B, $, H) {
|
|
24860
24864
|
K(this, Ho);
|
|
24861
24865
|
K(this, zo);
|
|
@@ -24874,7 +24878,7 @@ const oi = class {
|
|
|
24874
24878
|
K(this, xr);
|
|
24875
24879
|
// 外部へスクリプトを表示
|
|
24876
24880
|
K(this, mu);
|
|
24877
|
-
// FIFOバッファ(
|
|
24881
|
+
// 先頭に積む FIFOバッファ(unshift / shift)
|
|
24878
24882
|
K(this, _u);
|
|
24879
24883
|
K(this, gu);
|
|
24880
24884
|
// // ラベル・ジャンプ
|
|
@@ -24929,7 +24933,7 @@ const oi = class {
|
|
|
24929
24933
|
//auth: // constructorで
|
|
24930
24934
|
//launch: // ここでは冒頭停止に間に合わないのでanalyzeInit()で
|
|
24931
24935
|
disconnect: () => {
|
|
24932
|
-
Q(
|
|
24936
|
+
Q(hi, $n, {}), Q(hi, br, {}), this.isBreak = () => !1, U(this, Un).continue({}), Q(this, ye, 0);
|
|
24933
24937
|
},
|
|
24934
24938
|
restart: () => this.isBreak = () => !1,
|
|
24935
24939
|
// ブレークポイント登録
|
|
@@ -24938,9 +24942,9 @@ const oi = class {
|
|
|
24938
24942
|
U(this, ye) === 0 && (Q(this, ye, 1), this.main.setLoop(!1, `変数 ${t.dataId}【${t.old_v}】→【${t.new_v}】データブレーク`), this.sys.callHook("stopOnDataBreakpoint", {}), this.sys.send2Dbg("stopOnDataBreakpoint", {}));
|
|
24939
24943
|
},
|
|
24940
24944
|
set_func_break: (t) => {
|
|
24941
|
-
Q(
|
|
24945
|
+
Q(hi, br, {});
|
|
24942
24946
|
for (const e of t.a)
|
|
24943
|
-
U(
|
|
24947
|
+
U(hi, br)[e.name] = 1;
|
|
24944
24948
|
this.sys.send2Dbg(t.ri, {});
|
|
24945
24949
|
},
|
|
24946
24950
|
// 情報問い合わせ系
|
|
@@ -24971,7 +24975,7 @@ const oi = class {
|
|
|
24971
24975
|
});
|
|
24972
24976
|
K(this, Hr, (t) => this.cfg.searchPath(t, SEARCH_PATH_ARG_EXT.SCRIPT));
|
|
24973
24977
|
// https://regex101.com/r/Km54EK/1 141 steps (~0ms)
|
|
24974
|
-
K(this, zr, (t) => (this.sys.pathBaseCnvSnPath4Dbg + U(this, Hr).call(this, t)).replace(U(
|
|
24978
|
+
K(this, zr, (t) => (this.sys.pathBaseCnvSnPath4Dbg + U(this, Hr).call(this, t)).replace(U(hi, cu), `$1/prj/$2/${U(this, se)}$3`));
|
|
24975
24979
|
pt(this, "cnvPath4Dbg", (t) => this.sys.pathBaseCnvSnPath4Dbg + t.replace("/crypto_prj/", "/prj/"));
|
|
24976
24980
|
K(this, Xo, 0);
|
|
24977
24981
|
K(this, ye, 0);
|
|
@@ -24981,7 +24985,7 @@ const oi = class {
|
|
|
24981
24985
|
K(this, Yo, (t) => {
|
|
24982
24986
|
});
|
|
24983
24987
|
K(this, Js, void 0);
|
|
24984
|
-
K(this,
|
|
24988
|
+
K(this, ii, void 0);
|
|
24985
24989
|
K(this, Hn, () => {
|
|
24986
24990
|
});
|
|
24987
24991
|
K(this, zn, () => {
|
|
@@ -24992,7 +24996,7 @@ const oi = class {
|
|
|
24992
24996
|
});
|
|
24993
24997
|
K(this, Zo, 5);
|
|
24994
24998
|
// // 条件分岐
|
|
24995
|
-
K(this,
|
|
24999
|
+
K(this, Fe, [-1]);
|
|
24996
25000
|
K(this, Qo, "");
|
|
24997
25001
|
K(this, Xn, "");
|
|
24998
25002
|
// シナリオ解析処理ループ・冒頭処理
|
|
@@ -25002,7 +25006,7 @@ const oi = class {
|
|
|
25002
25006
|
K(this, Eu, /(\*{2,})([^\|]*)/);
|
|
25003
25007
|
K(this, Su, /\[macro\s/);
|
|
25004
25008
|
K(this, rh, /\[endmacro[\s\]]/);
|
|
25005
|
-
K(this,
|
|
25009
|
+
K(this, Be, /* @__PURE__ */ Object.create(null));
|
|
25006
25010
|
K(this, Pu, /^\[(call|loadplugin)\s/);
|
|
25007
25011
|
K(this, Cu, /\bfn\s*=\s*[^\s\]]+/);
|
|
25008
25012
|
K(this, Er, !1);
|
|
@@ -25018,7 +25022,7 @@ const oi = class {
|
|
|
25018
25022
|
});
|
|
25019
25023
|
this.cfg = t, this.hTag = e, this.main = r, this.val = N, this.alzTagArg = k, this.runAnalyze = D, this.prpPrs = B, this.sndMng = $, this.sys = H, e.let_ml = (X) => et(this, pu, yd).call(this, X), e.endlet_ml = () => !1, e.dump_stack = () => et(this, vu, bd).call(this), e.dump_script = (X) => et(this, mu, xd).call(this, X), e.else = // その他ifブロック開始
|
|
25020
25024
|
e.elsif = // 別条件のifブロック開始
|
|
25021
|
-
e.endif = () => et(this, _u, Ed).call(this), e.if = (X) => et(this, gu, Sd).call(this, X), e.call = (X) => et(this, yu, Td).call(this, X), e.jump = (X) => et(this, bu, wd).call(this, X), e.pop_stack = (X) => et(this, xu, Pd).call(this, X), e.return = (X) => et(this, Jo, Pc).call(this, X), e.bracket2macro = (X) => et(this, Mu, Id).call(this, X), e.char2macro = (X) => et(this, Iu, Ad).call(this, X), e.endmacro = (X) => et(this, Jo, Pc).call(this, X), e.macro = (X) => et(this, Lu, Ld).call(this, X), e.load = (X) => et(this, Nu, Nd).call(this, X), e.reload_script = (X) => et(this, ku, kd).call(this, X), e.record_place = () => et(this, Du, Dd).call(this), e.save = (X) => et(this, Fu, Fd).call(this, X), t.oCfg.debug.token && Q(this, eh, (X) => console.log(`🌱 トークン fn:${U(this, se)} idx:${U(this, Lt)} ln:${U(this, pe)} token【${X}】`)), N.defTmp("const.sn.vctCallStk.length", () => U(this, ce).length);
|
|
25025
|
+
e.endif = () => et(this, _u, Ed).call(this), e.if = (X) => et(this, gu, Sd).call(this, X), e.call = (X) => et(this, yu, Td).call(this, X), e.jump = (X) => et(this, bu, wd).call(this, X), e.pop_stack = (X) => et(this, xu, Pd).call(this, X), e.return = (X) => et(this, Jo, Pc).call(this, X), e.bracket2macro = (X) => et(this, Mu, Id).call(this, X), e.char2macro = (X) => et(this, Iu, Ad).call(this, X), e.endmacro = (X) => et(this, Jo, Pc).call(this, X), e.macro = (X) => et(this, Lu, Ld).call(this, X), e.load = (X) => et(this, Nu, Nd).call(this, X), e.reload_script = (X) => et(this, ku, kd).call(this, X), e.record_place = () => et(this, Du, Dd).call(this), e.save = (X) => et(this, Fu, Fd).call(this, X), t.oCfg.debug.token && Q(this, eh, (X) => console.log(`🌱 トークン fn:${U(this, se)} idx:${U(this, Lt)} ln:${U(this, pe)} token【${X}】`)), N.defTmp("const.sn.aIfStk.length", () => U(this, Fe).length), N.defTmp("const.sn.vctCallStk.length", () => U(this, ce).length);
|
|
25022
25026
|
const z = t.oCfg.init.escape;
|
|
25023
25027
|
if (U(this, yr).setEscape(z), RubySpliter.setEscape(z), CmnLib.isDbg) {
|
|
25024
25028
|
H.addHook((V, Y) => {
|
|
@@ -25033,9 +25037,9 @@ const oi = class {
|
|
|
25033
25037
|
const Y = V.hBreakpoint.hFn2hLineBP;
|
|
25034
25038
|
for (const [q, W] of Object.entries(Y))
|
|
25035
25039
|
et(this, Ho, Ec).call(this, q, W);
|
|
25036
|
-
Q(
|
|
25040
|
+
Q(hi, br, {});
|
|
25037
25041
|
for (const q of V.hBreakpoint.aFunc)
|
|
25038
|
-
U(
|
|
25042
|
+
U(hi, br)[q.name] = 1;
|
|
25039
25043
|
if (V.stopOnEntry) {
|
|
25040
25044
|
for (; ; ) {
|
|
25041
25045
|
let q = this.nextToken();
|
|
@@ -25062,13 +25066,13 @@ const oi = class {
|
|
|
25062
25066
|
return U(this, se);
|
|
25063
25067
|
}
|
|
25064
25068
|
subIdxToken() {
|
|
25065
|
-
--
|
|
25069
|
+
--Ie(this, Lt)._;
|
|
25066
25070
|
}
|
|
25067
25071
|
get lineNum() {
|
|
25068
25072
|
return U(this, pe);
|
|
25069
25073
|
}
|
|
25070
25074
|
jumpJustBefore() {
|
|
25071
|
-
et(this, Qi, Pr).call(this, U(this, se), "", --
|
|
25075
|
+
et(this, Qi, Pr).call(this, U(this, se), "", --Ie(this, Lt)._);
|
|
25072
25076
|
}
|
|
25073
25077
|
destroy() {
|
|
25074
25078
|
this.isBreak = () => !1;
|
|
@@ -25118,7 +25122,7 @@ const oi = class {
|
|
|
25118
25122
|
return N(D);
|
|
25119
25123
|
}
|
|
25120
25124
|
setOtherObj(t, e) {
|
|
25121
|
-
Q(this, Js, t), Q(this,
|
|
25125
|
+
Q(this, Js, t), Q(this, ii, e);
|
|
25122
25126
|
}
|
|
25123
25127
|
dumpErrForeLine() {
|
|
25124
25128
|
if (U(this, Lt) === 0) {
|
|
@@ -25154,7 +25158,7 @@ const oi = class {
|
|
|
25154
25158
|
if (U(this, ce).length > 0) {
|
|
25155
25159
|
const k = U(this, ce)[0];
|
|
25156
25160
|
t = k.fn, e = k.idx;
|
|
25157
|
-
const D = U(this,
|
|
25161
|
+
const D = U(this, Be)[t];
|
|
25158
25162
|
D && (r = D.len);
|
|
25159
25163
|
}
|
|
25160
25164
|
const N = this.val.getAreaKidoku(t);
|
|
@@ -25164,7 +25168,7 @@ const oi = class {
|
|
|
25164
25168
|
return U(this, Er) ? this.val.getVal("sys:sn.tagCh.doWait_Kidoku") ? uint(this.val.getVal("sys:sn.tagCh.msecWait_Kidoku")) : 0 : this.val.getVal("sys:sn.tagCh.doWait") ? uint(this.val.getVal("sys:sn.tagCh.msecWait")) : 0;
|
|
25165
25169
|
}
|
|
25166
25170
|
loadFromMark(t, e, r = !0) {
|
|
25167
|
-
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), U(this,
|
|
25171
|
+
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), U(this, ii).recPagebreak(), r && this.sndMng.playLoopFromSaveObj(), argChk_Boolean(t, "do_rec", !0) && Q(this, Di, {
|
|
25168
25172
|
hSave: this.val.cloneSave(),
|
|
25169
25173
|
hPages: { ...e.hPages },
|
|
25170
25174
|
aIfStk: [...e.aIfStk]
|
|
@@ -25176,16 +25180,16 @@ const oi = class {
|
|
|
25176
25180
|
};
|
|
25177
25181
|
this.hTag.autowc(N);
|
|
25178
25182
|
const k = String(this.val.getVal("save:const.sn.scriptFn")), D = Number(this.val.getVal("save:const.sn.scriptIdx"));
|
|
25179
|
-
return Q(this,
|
|
25183
|
+
return Q(this, Fe, [...U(this, Di).aIfStk]), Q(this, ce, []), U(this, ii).cover(!0), U(this, ii).stopAllTw(), t.index ? (U(this, ii).playback(U(this, Di).hPages, () => {
|
|
25180
25184
|
var H;
|
|
25181
25185
|
const { style: B, r_style: $ } = t;
|
|
25182
|
-
B && ((H = U(this,
|
|
25183
|
-
}), !0) : (delete U(this,
|
|
25186
|
+
B && ((H = U(this, ii).currentTxtlayFore) == null || H.lay({ style: B, r_style: $ })), U(this, ii).cover(!1), et(this, Qi, Pr).call(this, t.fn ?? k, "", t.index);
|
|
25187
|
+
}), !0) : (delete U(this, Be)[k], U(this, ii).playback(
|
|
25184
25188
|
U(this, Di).hPages,
|
|
25185
25189
|
"label" in t ? () => {
|
|
25186
|
-
U(this,
|
|
25190
|
+
U(this, ii).cover(!1), Q(this, se, k), Q(this, Lt, D), this.hTag.call({ fn: t.fn, label: t.label });
|
|
25187
25191
|
} : () => {
|
|
25188
|
-
U(this,
|
|
25192
|
+
U(this, ii).cover(!1), et(this, Qi, Pr).call(this, k, "", D);
|
|
25189
25193
|
}
|
|
25190
25194
|
), !0);
|
|
25191
25195
|
}
|
|
@@ -25213,18 +25217,18 @@ const oi = class {
|
|
|
25213
25217
|
} else
|
|
25214
25218
|
e = U(this, se), r = U(this, Lt);
|
|
25215
25219
|
t[":path"] = U(this, zr).call(this, e);
|
|
25216
|
-
const k = et(this, xr, Jr).call(this, U(this,
|
|
25220
|
+
const k = et(this, xr, Jr).call(this, U(this, Be)[e], r);
|
|
25217
25221
|
t[":ln"] = k.ln, t[":col_s"] = k.col_s, t[":col_e"] = k.col_e;
|
|
25218
25222
|
const D = r - 1;
|
|
25219
|
-
t[":idx_tkn"] = D, t[":token"] = U(this,
|
|
25223
|
+
t[":idx_tkn"] = D, t[":token"] = U(this, Be)[e].aToken[D], this.sys.send2Dbg("_recodeDesign", t);
|
|
25220
25224
|
}
|
|
25221
25225
|
replace(t, e) {
|
|
25222
25226
|
U(this, Qt).aToken[t] = e;
|
|
25223
25227
|
}
|
|
25224
25228
|
};
|
|
25225
|
-
let ScriptIterator =
|
|
25229
|
+
let ScriptIterator = hi;
|
|
25226
25230
|
Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(), ce = new WeakMap(), yr = new WeakMap(), Ho = new WeakSet(), Ec = function(t, e) {
|
|
25227
|
-
U(
|
|
25231
|
+
U(hi, $n)[U(this, zr).call(this, t)] = e;
|
|
25228
25232
|
}, Un = new WeakMap(), Hr = new WeakMap(), cu = new WeakMap(), zr = new WeakMap(), zo = new WeakSet(), Sc = function(t) {
|
|
25229
25233
|
if (et(this, Gn, va).call(this))
|
|
25230
25234
|
return;
|
|
@@ -25254,10 +25258,10 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25254
25258
|
et(this, jn, ma).call(this), Q(this, ye, 0);
|
|
25255
25259
|
break;
|
|
25256
25260
|
default:
|
|
25257
|
-
if (tagToken2Name(t) in U(
|
|
25261
|
+
if (tagToken2Name(t) in U(hi, br))
|
|
25258
25262
|
return Q(this, ye, 2), this.main.setLoop(!1, `関数 ${t} ブレーク`), this.sys.callHook("stopOnBreakpoint", {}), this.sys.send2Dbg("stopOnBreakpoint", {}), !0;
|
|
25259
25263
|
{
|
|
25260
|
-
const e = U(
|
|
25264
|
+
const e = U(hi, $n)[U(this, zr).call(this, U(this, se))];
|
|
25261
25265
|
if (!e)
|
|
25262
25266
|
break;
|
|
25263
25267
|
const r = e[U(this, pe)];
|
|
@@ -25278,7 +25282,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25278
25282
|
return !1;
|
|
25279
25283
|
}, jn = new WeakSet(), ma = function() {
|
|
25280
25284
|
var e;
|
|
25281
|
-
const t = (e = U(
|
|
25285
|
+
const t = (e = U(hi, $n)[getFn(U(this, se))]) == null ? void 0 : e[U(this, pe)];
|
|
25282
25286
|
t != null && t.hitCondition && --t.hitCondition;
|
|
25283
25287
|
}, du = new WeakSet(), gd = function() {
|
|
25284
25288
|
const t = U(this, ye) === 3 ? 1 : 0, e = U(this, Qt).aToken[U(this, Lt) - 1 + t], r = U(this, zr).call(this, U(this, se)), N = tagToken2Name(e), k = N ? `[${N}]` : e, D = this.val.getVal("mp:const.sn.macro") ?? "{}";
|
|
@@ -25288,7 +25292,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25288
25292
|
if (H === 0)
|
|
25289
25293
|
return $;
|
|
25290
25294
|
for (let z = H - 1; z >= 0; --z) {
|
|
25291
|
-
const X = U(this, ce)[z], V = U(this,
|
|
25295
|
+
const X = U(this, ce)[z], V = U(this, Be)[X.fn], Y = V.aToken[X.idx - 1], q = et(this, xr, Jr).call(this, V, X.idx), W = tagToken2Name(Y);
|
|
25292
25296
|
$.push({
|
|
25293
25297
|
fn: U(this, zr).call(this, X.fn),
|
|
25294
25298
|
ln: q.ln,
|
|
@@ -25298,13 +25302,13 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25298
25302
|
});
|
|
25299
25303
|
}
|
|
25300
25304
|
return $;
|
|
25301
|
-
}, Yo = new WeakMap(), Js = new WeakMap(),
|
|
25305
|
+
}, Yo = new WeakMap(), Js = new WeakMap(), ii = new WeakMap(), pu = new WeakSet(), yd = function(t) {
|
|
25302
25306
|
const { name: e } = t;
|
|
25303
25307
|
if (!e)
|
|
25304
25308
|
throw "nameは必須です";
|
|
25305
25309
|
let r = "";
|
|
25306
25310
|
const N = U(this, Qt).len;
|
|
25307
|
-
for (; U(this, Lt) < N && (r = U(this, Qt).aToken[U(this, Lt)], r === ""); ++
|
|
25311
|
+
for (; U(this, Lt) < N && (r = U(this, Qt).aToken[U(this, Lt)], r === ""); ++Ie(this, Lt)._)
|
|
25308
25312
|
;
|
|
25309
25313
|
return t.text = r, t.cast = "str", this.hTag.let(t), Q(this, Lt, U(this, Lt) + 2), Q(this, pe, U(this, pe) + (r.match(/\n/g) ?? []).length), !1;
|
|
25310
25314
|
}, vu = new WeakSet(), bd = function() {
|
|
@@ -25316,7 +25320,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25316
25320
|
if (r > 0) {
|
|
25317
25321
|
console.info(e);
|
|
25318
25322
|
for (let N = r - 1; N >= 0; --N) {
|
|
25319
|
-
const k = U(this, ce)[N], D = k.csArg[":hMp"], B = D ? D[":タグ名"] : void 0, $ = k.csArg[":タグ名"] ?? "", H = et(this, xr, Jr).call(this, U(this,
|
|
25323
|
+
const k = U(this, ce)[N], D = k.csArg[":hMp"], B = D ? D[":タグ名"] : void 0, $ = k.csArg[":タグ名"] ?? "", H = et(this, xr, Jr).call(this, U(this, Be)[k.fn], k.idx);
|
|
25320
25324
|
console.info(
|
|
25321
25325
|
`${r - N}つ前のコール元 fn:${k.fn} line:${H.ln} col:${H.col_s + 1}` + (B ? "([" + B + "]マクロ内)" : " ") + `で [${$} ...]をコール`
|
|
25322
25326
|
);
|
|
@@ -25360,10 +25364,10 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25360
25364
|
});
|
|
25361
25365
|
}
|
|
25362
25366
|
return !1;
|
|
25363
|
-
}, Hn = new WeakMap(), zn = new WeakMap(), Wo = new WeakMap(), qo = new WeakMap(), Zo = new WeakMap(),
|
|
25364
|
-
if (U(this,
|
|
25367
|
+
}, Hn = new WeakMap(), zn = new WeakMap(), Wo = new WeakMap(), qo = new WeakMap(), Zo = new WeakMap(), Fe = new WeakMap(), _u = new WeakSet(), Ed = function() {
|
|
25368
|
+
if (U(this, Fe)[0] === -1)
|
|
25365
25369
|
throw "ifブロック内ではありません";
|
|
25366
|
-
return Q(this, Lt, U(this,
|
|
25370
|
+
return Q(this, Lt, U(this, Fe)[0]), U(this, Fe).shift(), !1;
|
|
25367
25371
|
}, gu = new WeakSet(), Sd = function(t) {
|
|
25368
25372
|
const { exp: e } = t;
|
|
25369
25373
|
if (!e)
|
|
@@ -25374,7 +25378,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25374
25378
|
const k = U(this, Qt).aLNum[U(this, Lt)];
|
|
25375
25379
|
let D = U(this, pe) - (k || 0);
|
|
25376
25380
|
const B = U(this, Qt).len;
|
|
25377
|
-
for (; U(this, Lt) < B; ++
|
|
25381
|
+
for (; U(this, Lt) < B; ++Ie(this, Lt)._) {
|
|
25378
25382
|
const $ = U(this, Qt).aLNum[U(this, Lt)];
|
|
25379
25383
|
U(this, Qt).aLNum[U(this, Lt)] = ($ || 0) + D;
|
|
25380
25384
|
const H = U(this, Qt).aToken[U(this, Lt)];
|
|
@@ -25412,36 +25416,36 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25412
25416
|
--r;
|
|
25413
25417
|
break;
|
|
25414
25418
|
}
|
|
25415
|
-
return N === -1 ? (++
|
|
25419
|
+
return N === -1 ? (++Ie(this, Lt)._, U(this, Qt).aLNum[U(this, Lt)] += D) : (U(this, Fe).unshift(U(this, Lt) + 1), Q(this, Lt, N), Q(this, pe, U(this, Qt).aLNum[U(this, Lt)])), !1;
|
|
25416
25420
|
}
|
|
25417
25421
|
}
|
|
25418
25422
|
throw "[endif]がないままスクリプト終端です";
|
|
25419
25423
|
}, yu = new WeakSet(), Td = function(t) {
|
|
25420
25424
|
argChk_Boolean(t, "count", !1) || et(this, sh, Mc).call(this);
|
|
25421
25425
|
const { fn: e } = t;
|
|
25422
|
-
return e && U(this, Hr).call(this, e), et(this, Ko, wc).call(this, { ":hEvt1Time": U(this, Js).popLocalEvts(), ":hMp": this.val.cloneMp() }), argChk_Boolean(t, "clear_local_event", !1) && this.hTag.clear_event({}), et(this, Qi, Pr).call(this, e, t.label), !0;
|
|
25426
|
+
return e && U(this, Hr).call(this, e), et(this, Ko, wc).call(this, { ":hEvt1Time": U(this, Js).popLocalEvts(), ":hMp": this.val.cloneMp(), ":lenIfStk": U(this, Fe).length }), argChk_Boolean(t, "clear_local_event", !1) && this.hTag.clear_event({}), et(this, Qi, Pr).call(this, e, t.label), !0;
|
|
25423
25427
|
}, Ko = new WeakSet(), wc = function(t) {
|
|
25424
|
-
U(this, Qt).aLNum[U(this, Lt)] = U(this, pe), U(this, Qo) || (t[":resvToken"] = "", et(this, Vn, ga).call(this)), U(this, ce).push(new CallStack(U(this, se), U(this, Lt), t)), U(this,
|
|
25428
|
+
U(this, Qt).aLNum[U(this, Lt)] = U(this, pe), U(this, Qo) || (t[":resvToken"] = "", et(this, Vn, ga).call(this)), U(this, ce).push(new CallStack(U(this, se), U(this, Lt), t)), U(this, Fe).unshift(-1);
|
|
25425
25429
|
}, bu = new WeakSet(), wd = function(t) {
|
|
25426
|
-
return argChk_Boolean(t, "count", !0) || et(this, sh, Mc).call(this), U(this,
|
|
25430
|
+
return argChk_Boolean(t, "count", !0) || et(this, sh, Mc).call(this), U(this, Fe)[0] = -1, et(this, Qi, Pr).call(this, t.fn, t.label), !0;
|
|
25427
25431
|
}, xu = new WeakSet(), Pd = function(t) {
|
|
25428
25432
|
if (argChk_Boolean(t, "clear", !1))
|
|
25429
25433
|
Q(this, ce, []);
|
|
25430
25434
|
else if (!U(this, ce).pop())
|
|
25431
25435
|
throw "[pop_stack] スタックが空です";
|
|
25432
|
-
return et(this, Vn, ga).call(this), Q(this,
|
|
25436
|
+
return et(this, Vn, ga).call(this), Q(this, Fe, [-1]), this.val.setMp({}), !1;
|
|
25433
25437
|
}, Jo = new WeakSet(), Pc = function(t) {
|
|
25434
25438
|
const e = U(this, ce).pop();
|
|
25435
25439
|
if (!e)
|
|
25436
25440
|
throw "[return] スタックが空です";
|
|
25437
25441
|
const r = e.csArg;
|
|
25438
|
-
U(this,
|
|
25442
|
+
Q(this, Fe, U(this, Fe).slice(-r[":lenIfStk"]));
|
|
25439
25443
|
const N = r[":hMp"];
|
|
25440
25444
|
N && this.val.setMp(N);
|
|
25441
25445
|
const k = r[":resvToken"];
|
|
25442
25446
|
k ? this.nextToken = () => (et(this, Vn, ga).call(this), k) : et(this, Vn, ga).call(this), r[":hEvt1Time"] && U(this, Js).pushLocalEvts(r[":hEvt1Time"]);
|
|
25443
25447
|
const { fn: D, label: B } = t;
|
|
25444
|
-
return D || B ? (et(this, Qi, Pr).call(this, D, B), !0) : e.fn in U(this,
|
|
25448
|
+
return D || B ? (et(this, Qi, Pr).call(this, D, B), !0) : e.fn in U(this, Be) ? (et(this, nh, Oc).call(this, e), !1) : (et(this, Qi, Pr).call(this, e.fn, "", e.idx), !0);
|
|
25445
25449
|
}, Qo = new WeakMap(), Vn = new WeakSet(), ga = function() {
|
|
25446
25450
|
Q(this, Qo, ""), this.nextToken = et(this, th, Cc);
|
|
25447
25451
|
}, Xn = new WeakMap(), Qi = new WeakSet(), Pr = function(t = "", e = "", r = 0) {
|
|
@@ -25457,7 +25461,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25457
25461
|
return;
|
|
25458
25462
|
}
|
|
25459
25463
|
Q(this, se, t);
|
|
25460
|
-
const k = U(this,
|
|
25464
|
+
const k = U(this, Be)[t];
|
|
25461
25465
|
if (k) {
|
|
25462
25466
|
Q(this, Qt, k), this.analyzeInit();
|
|
25463
25467
|
return;
|
|
@@ -25494,7 +25498,7 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25494
25498
|
return "";
|
|
25495
25499
|
et(this, Ou, Md).call(this), (e = U(this, Qt).aLNum)[r = U(this, Lt)] || (e[r] = U(this, pe));
|
|
25496
25500
|
const t = U(this, Qt).aToken[U(this, Lt)];
|
|
25497
|
-
return U(this, eh).call(this, t), ++
|
|
25501
|
+
return U(this, eh).call(this, t), ++Ie(this, Lt)._, t;
|
|
25498
25502
|
}, eh = new WeakMap(), ih = new WeakSet(), Rc = function() {
|
|
25499
25503
|
return U(this, Lt) < U(this, Qt).len ? !1 : (this.main.errScript("スクリプト終端です"), !0);
|
|
25500
25504
|
}, Eu = new WeakMap(), Su = new WeakMap(), rh = new WeakMap(), Tu = new WeakSet(), Cd = function(t, e, r, N, k) {
|
|
@@ -25559,19 +25563,19 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25559
25563
|
q === 91 && (r += (Y.match(/\n/g) ?? []).length, U(this, yr).testTagLetml(Y) && (H = !0));
|
|
25560
25564
|
}
|
|
25561
25565
|
throw H ? "[let_ml]の終端・[endlet_ml]がありません" : (DebugMng.myTrace(`[jump系] ラベル【${N}】がありません`, "ET"), "Dummy");
|
|
25562
|
-
},
|
|
25566
|
+
}, Be = new WeakMap(), wu = new WeakSet(), Rd = function(t) {
|
|
25563
25567
|
let e = "";
|
|
25564
25568
|
try {
|
|
25565
25569
|
e = "ScriptIterator.resolveScript";
|
|
25566
25570
|
const r = U(this, yr).resolveScript(t);
|
|
25567
|
-
e = "ScriptIterator.replaceScript_Wildcard", et(this, Ru, Od).call(this, r), U(this,
|
|
25571
|
+
e = "ScriptIterator.replaceScript_Wildcard", et(this, Ru, Od).call(this, r), U(this, Be)[U(this, se)] = Q(this, Qt, r);
|
|
25568
25572
|
} catch (r) {
|
|
25569
25573
|
r instanceof Error ? e += `例外 mes=${r.message}(${r.name})` : e = r, this.main.errScript(e, !1);
|
|
25570
25574
|
}
|
|
25571
25575
|
this.val.loadScrWork(U(this, se));
|
|
25572
25576
|
}, nh = new WeakSet(), Oc = function(t) {
|
|
25573
25577
|
Q(this, se, t.fn), Q(this, Lt, t.idx);
|
|
25574
|
-
const e = U(this,
|
|
25578
|
+
const e = U(this, Be)[U(this, se)];
|
|
25575
25579
|
e && Q(this, Qt, e), Q(this, pe, U(this, Qt).aLNum[t.idx]);
|
|
25576
25580
|
}, Pu = new WeakMap(), Cu = new WeakMap(), Ru = new WeakSet(), Od = function(t) {
|
|
25577
25581
|
for (let e = t.len - 1; e >= 0; --e) {
|
|
@@ -25623,11 +25627,13 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25623
25627
|
if (U(this, Au).test(e))
|
|
25624
25628
|
throw `[${e}]はマクロ名として異常です`;
|
|
25625
25629
|
const r = U(this, pe), N = new CallStack(U(this, se), U(this, Lt));
|
|
25626
|
-
for (Q(this, ah, U(this, ah) + ("|" + e)), Q(this, Qs, new RegExp(`\\[(${U(this, ah)})\\b`)), this.hTag[e] = (B) => (B.design_unit = t.design_unit, et(this, Ko, wc).call(this, { ...B, ":hMp": this.val.cloneMp() }), this.val.setMp(B), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify(
|
|
25630
|
+
for (Q(this, ah, U(this, ah) + ("|" + e)), Q(this, Qs, new RegExp(`\\[(${U(this, ah)})\\b`)), this.hTag[e] = (B) => (B.design_unit = t.design_unit, et(this, Ko, wc).call(this, { ...B, ":hMp": this.val.cloneMp(), ":lenIfStk": U(this, Fe).length }), this.val.setMp(B), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify({
|
|
25631
|
+
name: t.name
|
|
25632
|
+
})), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", U(this, se)), Q(this, pe, r), et(this, nh, Oc).call(this, N), !1); U(this, Lt) < U(this, Qt).len; ++Ie(this, Lt)._) {
|
|
25627
25633
|
(k = U(this, Qt).aLNum)[D = U(this, Lt)] || (k[D] = U(this, pe));
|
|
25628
25634
|
const B = U(this, Qt).aToken[U(this, Lt)];
|
|
25629
25635
|
if (B.search(U(this, rh)) > -1)
|
|
25630
|
-
return ++
|
|
25636
|
+
return ++Ie(this, Lt)._, !1;
|
|
25631
25637
|
const $ = B.charCodeAt(0);
|
|
25632
25638
|
$ === 10 ? Q(this, pe, U(this, pe) + B.length) : $ === 91 && Q(this, pe, U(this, pe) + (B.match(/\n/g) ?? []).length);
|
|
25633
25639
|
}
|
|
@@ -25644,23 +25650,23 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25644
25650
|
return new RsEvtRsv(), this.loadFromMark(t, r);
|
|
25645
25651
|
}, ku = new WeakSet(), kd = function(t) {
|
|
25646
25652
|
const e = this.val.getMark(0);
|
|
25647
|
-
delete U(this,
|
|
25653
|
+
delete U(this, Be)[getFn(e.hSave["const.sn.scriptFn"])];
|
|
25648
25654
|
const r = {};
|
|
25649
|
-
for (const N in U(this,
|
|
25655
|
+
for (const N in U(this, Be))
|
|
25650
25656
|
try {
|
|
25651
25657
|
U(this, Hr).call(this, N + "@");
|
|
25652
25658
|
} catch {
|
|
25653
|
-
r[N] = U(this,
|
|
25659
|
+
r[N] = U(this, Be)[N];
|
|
25654
25660
|
}
|
|
25655
|
-
return Q(this,
|
|
25661
|
+
return Q(this, Be, r), t.do_rec = !1, new RsEvtRsv(), this.loadFromMark(t, e, !1);
|
|
25656
25662
|
}, Di = new WeakMap(), Du = new WeakSet(), Dd = function() {
|
|
25657
25663
|
if (this.main.isDestroyed())
|
|
25658
25664
|
return !1;
|
|
25659
25665
|
const { fn: t, idx: e } = this.nowScrIdx();
|
|
25660
25666
|
return this.val.setVal_Nochk("save", "const.sn.scriptFn", t), this.val.setVal_Nochk("save", "const.sn.scriptIdx", e), Q(this, Di, {
|
|
25661
25667
|
hSave: this.val.cloneSave(),
|
|
25662
|
-
hPages: U(this,
|
|
25663
|
-
aIfStk: U(this,
|
|
25668
|
+
hPages: U(this, ii).record(),
|
|
25669
|
+
aIfStk: U(this, Fe).slice(U(this, ce).length)
|
|
25664
25670
|
}), !1;
|
|
25665
25671
|
}, Fu = new WeakSet(), Fd = function(t) {
|
|
25666
25672
|
if (!("place" in t))
|
|
@@ -25671,14 +25677,14 @@ Qt = new WeakMap(), se = new WeakMap(), Lt = new WeakMap(), pe = new WeakMap(),
|
|
|
25671
25677
|
return e === r && this.val.setVal_Nochk("sys", "const.sn.save.place", r + 1), !1;
|
|
25672
25678
|
}, K(ScriptIterator, cu, /(.+)\/crypto_prj\/([^\/]+)\/[^\.]+(\.\w+)/), // reload 再生成 Main に受け渡すため static
|
|
25673
25679
|
K(ScriptIterator, $n, {}), K(ScriptIterator, br, {});
|
|
25674
|
-
var
|
|
25680
|
+
var ri, wi, Ue, Pi, Sr, Yn, Ne, oh, Tr, ta, Wn, hh, lh, ea, Bu, Bd, uh, ch, ia, ra, Rh, qn, Zn;
|
|
25675
25681
|
const us = class {
|
|
25676
25682
|
constructor(t) {
|
|
25677
25683
|
K(this, Bu);
|
|
25678
25684
|
K(this, ra);
|
|
25679
|
-
K(this,
|
|
25685
|
+
K(this, ri, void 0);
|
|
25680
25686
|
K(this, wi, void 0);
|
|
25681
|
-
K(this,
|
|
25687
|
+
K(this, Ue, /* @__PURE__ */ Object.create(null));
|
|
25682
25688
|
// タグ処理辞書
|
|
25683
25689
|
K(this, Pi, void 0);
|
|
25684
25690
|
K(this, Sr, void 0);
|
|
@@ -25708,7 +25714,7 @@ const us = class {
|
|
|
25708
25714
|
K(this, qn, !1);
|
|
25709
25715
|
pt(this, "isDestroyed", () => U(this, qn));
|
|
25710
25716
|
K(this, Zn, void 0);
|
|
25711
|
-
this.sys = t, skipHello(), Config.generate(t).then((e) => Q(this,
|
|
25717
|
+
this.sys = t, skipHello(), Config.generate(t).then((e) => Q(this, ri, e)).then(() => et(this, Bu, Bd).call(this)).catch((e) => console.error("load err fn:prj.json e:%o", e));
|
|
25712
25718
|
}
|
|
25713
25719
|
// thisの扱いによりメソッド代入はダメ
|
|
25714
25720
|
errScript(t, e = !0) {
|
|
@@ -25717,10 +25723,10 @@ const us = class {
|
|
|
25717
25723
|
}
|
|
25718
25724
|
resumeByJumpOrCall(t) {
|
|
25719
25725
|
if (t.url) {
|
|
25720
|
-
U(this,
|
|
25726
|
+
U(this, Ue).navigate_to(t), U(this, Ne).jumpJustBefore();
|
|
25721
25727
|
return;
|
|
25722
25728
|
}
|
|
25723
|
-
U(this, Pi).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), U(this, Pi).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (U(this, Ne).subIdxToken(), this.resume(() => U(this,
|
|
25729
|
+
U(this, Pi).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), U(this, Pi).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (U(this, Ne).subIdxToken(), this.resume(() => U(this, Ue).call(t))) : (U(this, Ue).clear_event({}), this.resume(() => U(this, Ue).jump(t)));
|
|
25724
25730
|
}
|
|
25725
25731
|
setLoop(t, e = "") {
|
|
25726
25732
|
Q(this, ia, t) ? this.resume() : this.stop(), this.sys.setTitleInfo(e ? ` -- ${e}中` : "");
|
|
@@ -25729,26 +25735,26 @@ const us = class {
|
|
|
25729
25735
|
U(this, ta).fire(t, e);
|
|
25730
25736
|
}
|
|
25731
25737
|
async destroy(t = 0) {
|
|
25732
|
-
U(this, qn) || (Q(this, qn, !0), U(this, lh) && (this.stop(), Q(this, ia, !1), U(this, Tr).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), Q(this,
|
|
25738
|
+
U(this, qn) || (Q(this, qn, !0), U(this, lh) && (this.stop(), Q(this, ia, !1), U(this, Tr).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), Q(this, Ue, {}), U(this, ta).destroy(), U(this, Ne).destroy(), U(this, Tr).destroy(), U(this, oh).destroy(), U(this, wi).ticker.remove(U(this, uh)), U(this, Zn) && U(this, wi) && us.cvs.parentNode.appendChild(U(this, Zn)), clearTextureCache(), U(this, wi).destroy(!0), this.sys.destroy()));
|
|
25733
25739
|
}
|
|
25734
25740
|
};
|
|
25735
25741
|
let Main = us;
|
|
25736
|
-
|
|
25742
|
+
ri = new WeakMap(), wi = new WeakMap(), Ue = new WeakMap(), Pi = new WeakMap(), Sr = new WeakMap(), Yn = new WeakMap(), Ne = new WeakMap(), oh = new WeakMap(), Tr = new WeakMap(), ta = new WeakMap(), Wn = new WeakMap(), hh = new WeakMap(), lh = new WeakMap(), ea = new WeakMap(), Bu = new WeakSet(), Bd = async function() {
|
|
25737
25743
|
var N;
|
|
25738
25744
|
const t = (N = document.createElement("canvas")) == null ? void 0 : N.getContext("2d");
|
|
25739
25745
|
if (!t)
|
|
25740
25746
|
throw "argChk_Color err";
|
|
25741
25747
|
CmnLib.cc4ColorName = t;
|
|
25742
25748
|
const e = {
|
|
25743
|
-
width: U(this,
|
|
25744
|
-
height: U(this,
|
|
25745
|
-
backgroundColor: parseColor(String(U(this,
|
|
25749
|
+
width: U(this, ri).oCfg.window.width,
|
|
25750
|
+
height: U(this, ri).oCfg.window.height,
|
|
25751
|
+
backgroundColor: parseColor(String(U(this, ri).oCfg.init.bg_color)),
|
|
25746
25752
|
// このString()は後方互換性のため必須
|
|
25747
25753
|
// resolution : sys.resolution,
|
|
25748
25754
|
resolution: globalThis.devicePixelRatio ?? 1
|
|
25749
25755
|
// 理想
|
|
25750
25756
|
}, r = document.getElementById(U(this, ea));
|
|
25751
|
-
r && (Q(this, Zn, r.cloneNode(!0)), U(this, Zn).id = U(this, ea), e.view = r), Q(this, wi, new Application(e)), us.cvs = U(this, wi).view, r || (document.body.appendChild(us.cvs), us.cvs.id = U(this, ea)), Q(this, Pi, new Variable(U(this,
|
|
25757
|
+
r && (Q(this, Zn, r.cloneNode(!0)), U(this, Zn).id = U(this, ea), e.view = r), Q(this, wi, new Application(e)), us.cvs = U(this, wi).view, r || (document.body.appendChild(us.cvs), us.cvs.id = U(this, ea)), Q(this, Pi, new Variable(U(this, ri), U(this, Ue))), Q(this, Sr, new PropParser(U(this, Pi), U(this, ri).oCfg.init.escape ?? "\\")), await Promise.allSettled(this.sys.init(U(this, Ue), U(this, wi), U(this, Pi), this)), U(this, Ue).title({ text: U(this, ri).oCfg.book.title || "SKYNovel" }), Q(this, Yn, new SoundMng(U(this, ri), U(this, Ue), U(this, Pi), this, this.sys)), Q(this, Ne, new ScriptIterator(U(this, ri), U(this, Ue), this, U(this, Pi), U(this, hh), () => et(this, ra, Rh).call(this), U(this, Sr), U(this, Yn), this.sys)), Q(this, oh, new DebugMng(this.sys, U(this, Ue), U(this, Ne))), Q(this, Tr, new LayerMng(U(this, ri), U(this, Ue), U(this, wi), U(this, Pi), this, U(this, Ne), this.sys, U(this, Yn), U(this, hh), U(this, Sr))), Q(this, ta, new EventMng(U(this, ri), U(this, Ue), U(this, wi), this, U(this, Tr), U(this, Pi), U(this, Yn), U(this, Ne), this.sys)), U(this, wi).ticker.add(U(this, uh)), this.resumeByJumpOrCall({ fn: "main" }), Q(this, lh, !0);
|
|
25752
25758
|
}, uh = new WeakMap(), ch = new WeakMap(), ia = new WeakMap(), ra = new WeakSet(), Rh = function() {
|
|
25753
25759
|
for (; U(this, ia); ) {
|
|
25754
25760
|
let t = U(this, Ne).nextToken();
|
|
@@ -25781,7 +25787,7 @@ ii = new WeakMap(), wi = new WeakMap(), Be = new WeakMap(), Pi = new WeakMap(),
|
|
|
25781
25787
|
if (U(this, Ne).isBreak(t))
|
|
25782
25788
|
return;
|
|
25783
25789
|
const r = splitAmpersand(t.slice(1));
|
|
25784
|
-
r.name = U(this, Sr).getValAmpersand(r.name), r.text = String(U(this, Sr).parse(r.text)), U(this,
|
|
25790
|
+
r.name = U(this, Sr).getValAmpersand(r.name), r.text = String(U(this, Sr).parse(r.text)), U(this, Ue).let(r);
|
|
25785
25791
|
continue;
|
|
25786
25792
|
}
|
|
25787
25793
|
if (t.charAt(1) === "&")
|