@famibee/skynovel 1.43.2 → 1.43.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 CHANGED
@@ -274,7 +274,7 @@ sv.exports;
274
274
  return !ne && (ne = RegExp("\\b" + xr + " *\\d+[.\\w_]*", "i").exec(C) || RegExp("\\b" + xr + " *\\w+-[\\w]*", "i").exec(C) || RegExp("\\b" + xr + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(C)) && ((ne = String(Ht.label && !RegExp(xr, "i").test(Ht.label) ? Ht.label : ne).split("/"))[1] && !/[\d.]+/.test(ne[0]) && (ne[0] += " " + ne[1]), Ht = Ht.label || Ht, ne = g(ne[0].replace(RegExp(xr, "i"), Ht).replace(RegExp("; *(?:" + Ht + "[_-])?", "i"), " ").replace(RegExp("(" + Ht + ")[-_.]?(\\w)", "i"), "$1 $2"))), ne;
275
275
  });
276
276
  }
277
- function ee(ae) {
277
+ function re(ae) {
278
278
  return w(ae, function(ne, Ht) {
279
279
  return ne || (RegExp(Ht + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(C) || 0)[1] || null;
280
280
  });
@@ -282,7 +282,7 @@ sv.exports;
282
282
  function pe() {
283
283
  return this.description || "";
284
284
  }
285
- if (st && (st = [st]), /\bAndroid\b/.test(V) && !nt && (k = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(C)) && (nt = T(k[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), dt && !nt ? nt = je([dt]) : dt && nt && (nt = nt.replace(RegExp("^(" + b(dt) + ")[-_.\\s]", "i"), dt + " ").replace(RegExp("^(" + b(dt) + ")[-_.]?(\\w)", "i"), dt + " $2")), (k = /\bGoogle TV\b/.exec(nt)) && (nt = k[0]), /\bSimulator\b/i.test(C) && (nt = (nt ? nt + " " : "") + "Simulator"), W == "Opera Mini" && /\bOPiOS\b/.test(C) && Q.push("running in Turbo/Uncompressed mode"), W == "IE" && /\blike iPhone OS\b/.test(C) ? (k = x(C.replace(/like iPhone OS/, "")), dt = k.manufacturer, nt = k.product) : /^iP/.test(nt) ? (W || (W = "Safari"), V = "iOS" + ((k = / OS ([\d_]+)/i.exec(C)) ? " " + k[1].replace(/_/g, ".") : "")) : W == "Konqueror" && /^Linux\b/i.test(V) ? V = "Kubuntu" : dt && dt != "Google" && (/Chrome/.test(W) && !/\bMobile Safari\b/i.test(C) || /\bVita\b/.test(nt)) || /\bAndroid\b/.test(V) && /^Chrome/.test(W) && /\bVersion\//i.test(C) ? (W = "Android Browser", V = /\bAndroid\b/.test(V) ? V : "Android") : W == "Silk" ? (/\bMobi/i.test(C) || (V = "Android", Q.unshift("desktop mode")), /Accelerated *= *true/i.test(C) && Q.unshift("accelerated")) : W == "UC Browser" && /\bUCWEB\b/.test(C) ? Q.push("speed mode") : W == "PaleMoon" && (k = /\bFirefox\/([\d.]+)\b/.exec(C)) ? Q.push("identifying as Firefox " + k[1]) : W == "Firefox" && (k = /\b(Mobile|Tablet|TV)\b/i.exec(C)) ? (V || (V = "Firefox OS"), nt || (nt = k[1])) : !W || (k = !/\bMinefield\b/i.test(C) && /\b(?:Firefox|Safari)\b/.exec(W)) ? (W && !nt && /[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(k + "/") + 8)) && (W = null), (k = nt || dt || V) && (nt || dt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(V)) && (W = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(V) ? V : k) + " Browser")) : W == "Electron" && (k = (/\bChrome\/([\d.]+)\b/.exec(C) || 0)[1]) && Q.push("Chromium " + k), q || (q = ee([
285
+ if (st && (st = [st]), /\bAndroid\b/.test(V) && !nt && (k = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(C)) && (nt = T(k[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), dt && !nt ? nt = je([dt]) : dt && nt && (nt = nt.replace(RegExp("^(" + b(dt) + ")[-_.\\s]", "i"), dt + " ").replace(RegExp("^(" + b(dt) + ")[-_.]?(\\w)", "i"), dt + " $2")), (k = /\bGoogle TV\b/.exec(nt)) && (nt = k[0]), /\bSimulator\b/i.test(C) && (nt = (nt ? nt + " " : "") + "Simulator"), W == "Opera Mini" && /\bOPiOS\b/.test(C) && Q.push("running in Turbo/Uncompressed mode"), W == "IE" && /\blike iPhone OS\b/.test(C) ? (k = x(C.replace(/like iPhone OS/, "")), dt = k.manufacturer, nt = k.product) : /^iP/.test(nt) ? (W || (W = "Safari"), V = "iOS" + ((k = / OS ([\d_]+)/i.exec(C)) ? " " + k[1].replace(/_/g, ".") : "")) : W == "Konqueror" && /^Linux\b/i.test(V) ? V = "Kubuntu" : dt && dt != "Google" && (/Chrome/.test(W) && !/\bMobile Safari\b/i.test(C) || /\bVita\b/.test(nt)) || /\bAndroid\b/.test(V) && /^Chrome/.test(W) && /\bVersion\//i.test(C) ? (W = "Android Browser", V = /\bAndroid\b/.test(V) ? V : "Android") : W == "Silk" ? (/\bMobi/i.test(C) || (V = "Android", Q.unshift("desktop mode")), /Accelerated *= *true/i.test(C) && Q.unshift("accelerated")) : W == "UC Browser" && /\bUCWEB\b/.test(C) ? Q.push("speed mode") : W == "PaleMoon" && (k = /\bFirefox\/([\d.]+)\b/.exec(C)) ? Q.push("identifying as Firefox " + k[1]) : W == "Firefox" && (k = /\b(Mobile|Tablet|TV)\b/i.exec(C)) ? (V || (V = "Firefox OS"), nt || (nt = k[1])) : !W || (k = !/\bMinefield\b/i.test(C) && /\b(?:Firefox|Safari)\b/.exec(W)) ? (W && !nt && /[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(k + "/") + 8)) && (W = null), (k = nt || dt || V) && (nt || dt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(V)) && (W = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(V) ? V : k) + " Browser")) : W == "Electron" && (k = (/\bChrome\/([\d.]+)\b/.exec(C) || 0)[1]) && Q.push("Chromium " + k), q || (q = re([
286
286
  "(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
287
287
  "Version",
288
288
  b(W),
@@ -318,7 +318,7 @@ sv.exports;
318
318
  }
319
319
  else
320
320
  (/\bBlackBerry\b/.test(nt) || /\bBB10\b/.test(C)) && (k = (RegExp(nt.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(C) || 0)[1] || q) ? (k = [k, /BB10/.test(C)], V = (k[1] ? (nt = null, dt = "BlackBerry") : "Device Software") + " " + k[0], q = null) : this != m && nt != "Wii" && (at && lt || /Opera/.test(W) && /\b(?:MSIE|Firefox)\b/i.test(C) || W == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(V) || W == "IE" && (V && !/^Win/.test(V) && q > 5.5 || /\bWindows XP\b/.test(V) && q > 8 || q == 8 && !/\bTrident\b/.test(C))) && !u.test(k = x.call(m, C.replace(u, "") + ";")) && k.name && (k = "ing as " + k.name + ((k = k.version) ? " " + k : ""), u.test(W) ? (/\bIE\b/.test(k) && V == "Mac OS" && (V = null), k = "identify" + k) : (k = "mask" + k, et ? W = g(et.replace(/([a-z])([A-Z])/g, "$1 $2")) : W = "Opera", /\bIE\b/.test(k) && (V = null), at || (q = null)), st = ["Presto"], Q.push(k));
321
- (k = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(C) || 0)[1]) && (k = [parseFloat(k.replace(/\.(\d)$/, ".0$1")), k], W == "Safari" && k[1].slice(-1) == "+" ? (W = "WebKit Nightly", St = "alpha", q = k[1].slice(0, -1)) : (q == k[1] || q == (k[2] = (/\bSafari\/([\d.]+\+?)/i.exec(C) || 0)[1])) && (q = null), k[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(C) || 0)[1], k[0] == 537.36 && k[2] == 537.36 && parseFloat(k[1]) >= 28 && st == "WebKit" && (st = ["Blink"]), !at || !A && !k[1] ? (st && (st[1] = "like Safari"), k = (k = k[0], k < 400 ? 1 : k < 500 ? 2 : k < 526 ? 3 : k < 533 ? 4 : k < 534 ? "4+" : k < 535 ? 5 : k < 537 ? 6 : k < 538 ? 7 : k < 601 ? 8 : k < 602 ? 9 : k < 604 ? 10 : k < 606 ? 11 : k < 608 ? 12 : "12")) : (st && (st[1] = "like Chrome"), k = k[1] || (k = k[0], k < 530 ? 1 : k < 532 ? 2 : k < 532.05 ? 3 : k < 533 ? 4 : k < 534.03 ? 5 : k < 534.07 ? 6 : k < 534.1 ? 7 : k < 534.13 ? 8 : k < 534.16 ? 9 : k < 534.24 ? 10 : k < 534.3 ? 11 : k < 535.01 ? 12 : k < 535.02 ? "13+" : k < 535.07 ? 15 : k < 535.11 ? 16 : k < 535.19 ? 17 : k < 536.05 ? 18 : k < 536.1 ? 19 : k < 537.01 ? 20 : k < 537.11 ? "21+" : k < 537.13 ? 23 : k < 537.18 ? 24 : k < 537.24 ? 25 : k < 537.36 ? 26 : st != "Blink" ? "27" : "28")), st && (st[1] += " " + (k += typeof k == "number" ? ".x" : /[.+]/.test(k) ? "" : "+")), W == "Safari" && (!q || parseInt(q) > 45) ? q = k : W == "Chrome" && /\bHeadlessChrome/i.test(C) && Q.unshift("headless")), W == "Opera" && (k = /\bzbov|zvav$/.exec(V)) ? (W += " ", Q.unshift("desktop mode"), k == "zvav" ? (W += "Mini", q = null) : W += "Mobile", V = V.replace(RegExp(" *" + k + "$"), "")) : W == "Safari" && /\bChrome\b/.exec(st && st[1]) ? (Q.unshift("desktop mode"), W = "Chrome Mobile", q = null, /\bOS X\b/.test(V) ? (dt = "Apple", V = "iOS 4.3+") : V = null) : /\bSRWare Iron\b/.test(W) && !q && (q = ee("Chrome")), q && q.indexOf(k = /[\d.]+$/.exec(V)) == 0 && C.indexOf("/" + k + "-") > -1 && (V = T(V.replace(k, ""))), V && V.indexOf(W) != -1 && !RegExp(W + " OS").test(V) && (V = V.replace(RegExp(" *" + b(W) + " *"), "")), st && !/\b(?:Avant|Nook)\b/.test(W) && (/Browser|Lunascape|Maxthon/.test(W) || W != "Safari" && /^iOS/.test(V) && /\bSafari\b/.test(st[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(W) && st[1]) && (k = st[st.length - 1]) && Q.push(k), Q.length && (Q = ["(" + Q.join("; ") + ")"]), dt && nt && nt.indexOf(dt) < 0 && Q.push("on " + dt), nt && Q.push((/^on /.test(Q[Q.length - 1]) ? "" : "on ") + nt), V && (k = / ([\d.+]+)$/.exec(V), bt = k && V.charAt(V.length - k[0].length - 1) == "/", V = {
321
+ (k = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(C) || 0)[1]) && (k = [parseFloat(k.replace(/\.(\d)$/, ".0$1")), k], W == "Safari" && k[1].slice(-1) == "+" ? (W = "WebKit Nightly", St = "alpha", q = k[1].slice(0, -1)) : (q == k[1] || q == (k[2] = (/\bSafari\/([\d.]+\+?)/i.exec(C) || 0)[1])) && (q = null), k[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(C) || 0)[1], k[0] == 537.36 && k[2] == 537.36 && parseFloat(k[1]) >= 28 && st == "WebKit" && (st = ["Blink"]), !at || !A && !k[1] ? (st && (st[1] = "like Safari"), k = (k = k[0], k < 400 ? 1 : k < 500 ? 2 : k < 526 ? 3 : k < 533 ? 4 : k < 534 ? "4+" : k < 535 ? 5 : k < 537 ? 6 : k < 538 ? 7 : k < 601 ? 8 : k < 602 ? 9 : k < 604 ? 10 : k < 606 ? 11 : k < 608 ? 12 : "12")) : (st && (st[1] = "like Chrome"), k = k[1] || (k = k[0], k < 530 ? 1 : k < 532 ? 2 : k < 532.05 ? 3 : k < 533 ? 4 : k < 534.03 ? 5 : k < 534.07 ? 6 : k < 534.1 ? 7 : k < 534.13 ? 8 : k < 534.16 ? 9 : k < 534.24 ? 10 : k < 534.3 ? 11 : k < 535.01 ? 12 : k < 535.02 ? "13+" : k < 535.07 ? 15 : k < 535.11 ? 16 : k < 535.19 ? 17 : k < 536.05 ? 18 : k < 536.1 ? 19 : k < 537.01 ? 20 : k < 537.11 ? "21+" : k < 537.13 ? 23 : k < 537.18 ? 24 : k < 537.24 ? 25 : k < 537.36 ? 26 : st != "Blink" ? "27" : "28")), st && (st[1] += " " + (k += typeof k == "number" ? ".x" : /[.+]/.test(k) ? "" : "+")), W == "Safari" && (!q || parseInt(q) > 45) ? q = k : W == "Chrome" && /\bHeadlessChrome/i.test(C) && Q.unshift("headless")), W == "Opera" && (k = /\bzbov|zvav$/.exec(V)) ? (W += " ", Q.unshift("desktop mode"), k == "zvav" ? (W += "Mini", q = null) : W += "Mobile", V = V.replace(RegExp(" *" + k + "$"), "")) : W == "Safari" && /\bChrome\b/.exec(st && st[1]) ? (Q.unshift("desktop mode"), W = "Chrome Mobile", q = null, /\bOS X\b/.test(V) ? (dt = "Apple", V = "iOS 4.3+") : V = null) : /\bSRWare Iron\b/.test(W) && !q && (q = re("Chrome")), q && q.indexOf(k = /[\d.]+$/.exec(V)) == 0 && C.indexOf("/" + k + "-") > -1 && (V = T(V.replace(k, ""))), V && V.indexOf(W) != -1 && !RegExp(W + " OS").test(V) && (V = V.replace(RegExp(" *" + b(W) + " *"), "")), st && !/\b(?:Avant|Nook)\b/.test(W) && (/Browser|Lunascape|Maxthon/.test(W) || W != "Safari" && /^iOS/.test(V) && /\bSafari\b/.test(st[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(W) && st[1]) && (k = st[st.length - 1]) && Q.push(k), Q.length && (Q = ["(" + Q.join("; ") + ")"]), dt && nt && nt.indexOf(dt) < 0 && Q.push("on " + dt), nt && Q.push((/^on /.test(Q[Q.length - 1]) ? "" : "on ") + nt), V && (k = / ([\d.+]+)$/.exec(V), bt = k && V.charAt(V.length - k[0].length - 1) == "/", V = {
322
322
  architecture: 32,
323
323
  family: k && !bt ? V.replace(k[0], "") : V,
324
324
  version: k ? k[1] : null,
@@ -13449,8 +13449,8 @@ void main(void)\r
13449
13449
  for (var xt = 0, Dt = this._textWidth * this.anchor.x, Ct = this._textHeight * this.anchor.y, be = 0; be < X.total; be++)
13450
13450
  X.vertices[xt++] -= Dt, X.vertices[xt++] -= Ct, X.vertices[xt++] -= Dt, X.vertices[xt++] -= Ct, X.vertices[xt++] -= Dt, X.vertices[xt++] -= Ct, X.vertices[xt++] -= Dt, X.vertices[xt++] -= Ct;
13451
13451
  this._maxLineHeight = T * s;
13452
- var je = X.mesh.geometry.getBuffer("aVertexPosition"), ee = X.mesh.geometry.getBuffer("aTextureCoord"), pe = X.mesh.geometry.getIndex();
13453
- je.data = X.vertices, ee.data = X.uvs, pe.data = X.indices, je.update(), ee.update(), pe.update();
13452
+ var je = X.mesh.geometry.getBuffer("aVertexPosition"), re = X.mesh.geometry.getBuffer("aTextureCoord"), pe = X.mesh.geometry.getIndex();
13453
+ je.data = X.vertices, re.data = X.uvs, pe.data = X.indices, je.update(), re.update(), pe.update();
13454
13454
  }
13455
13455
  for (var S = 0; S < o.length; S++)
13456
13456
  ew.push(o[S]);
@@ -16751,11 +16751,11 @@ var DS = { exports: {} };
16751
16751
  return L[0];
16752
16752
  });
16753
16753
  }, a.mark = function() {
16754
- return at(ee, this, ee, function(D, L, j) {
16754
+ return at(re, this, re, function(D, L, j) {
16755
16755
  return { start: D, value: L, end: j };
16756
16756
  });
16757
16757
  }, a.node = function(D) {
16758
- return at(ee, this, ee, function(L, j, J) {
16758
+ return at(re, this, re, function(L, j, J) {
16759
16759
  return { name: D, value: j, start: L, end: J };
16760
16760
  });
16761
16761
  }, a.sepBy = function(D) {
@@ -16786,7 +16786,7 @@ var DS = { exports: {} };
16786
16786
  return rt.status ? M(D(rt.value)._(j, rt.index), rt) : rt;
16787
16787
  });
16788
16788
  }, a.concat = a.or, a.empty = je, a.of = dt, a["fantasy-land/ap"] = a.ap, a["fantasy-land/chain"] = a.chain, a["fantasy-land/concat"] = a.concat, a["fantasy-land/empty"] = a.empty, a["fantasy-land/of"] = a.of, a["fantasy-land/map"] = a.map;
16789
- var ee = s(function(D, L) {
16789
+ var re = s(function(D, L) {
16790
16790
  return S(L, R(D, L));
16791
16791
  }), pe = s(function(D, L) {
16792
16792
  return L >= D.length ? C(L, "any character/byte") : S(L + 1, A(D, L));
@@ -16808,7 +16808,7 @@ var DS = { exports: {} };
16808
16808
  return L;
16809
16809
  }, s.crlf = kd, s.custom = function(D) {
16810
16810
  return s(D(S, C));
16811
- }, s.digit = ne, s.digits = Ht, s.empty = je, s.end = E0, s.eof = ae, s.fail = V, s.formatError = ft, s.index = ee, s.isParser = w, s.lazy = be, s.letter = xr, s.letters = ou, s.lf = uu, s.lookahead = xt, s.makeFailure = C, s.makeSuccess = S, s.newline = Nd, s.noneOf = function(D) {
16811
+ }, s.digit = ne, s.digits = Ht, s.empty = je, s.end = E0, s.eof = ae, s.fail = V, s.formatError = ft, s.index = re, s.isParser = w, s.lazy = be, s.letter = xr, s.letters = ou, s.lf = uu, s.lookahead = xt, s.makeFailure = C, s.makeSuccess = S, s.newline = Nd, s.noneOf = function(D) {
16812
16812
  return Ct(function(L) {
16813
16813
  return D.indexOf(L) < 0;
16814
16814
  }).desc("none of '" + D + "'");
@@ -19530,14 +19530,20 @@ const Wn = class {
19530
19530
  return this.spLay.x;
19531
19531
  }
19532
19532
  set x(t) {
19533
- this.spLay.x = t;
19533
+ this.procSetX(t), this.spLay.x = t;
19534
19534
  }
19535
+ procSetX(t) {
19536
+ }
19537
+ // set を override できないので
19535
19538
  get y() {
19536
19539
  return this.spLay.y;
19537
19540
  }
19538
19541
  set y(t) {
19539
- this.spLay.y = t;
19542
+ this.procSetY(t), this.spLay.y = t;
19543
+ }
19544
+ procSetY(t) {
19540
19545
  }
19546
+ // set を override できないので
19541
19547
  destroy() {
19542
19548
  }
19543
19549
  lay(t) {
@@ -25629,27 +25635,27 @@ var Or = {
25629
25635
  !it[0] && !it[1] && (lt = [1, 1]);
25630
25636
  var ft = T && (a ?? $.keepRatio) || !1;
25631
25637
  function Q() {
25632
- var ee = r.fixedDirection, pe = EC(lt, ft, r, t);
25638
+ var re = r.fixedDirection, pe = EC(lt, ft, r, t);
25633
25639
  et = pe.distWidth, k = pe.distHeight;
25634
- var le = lt[0] - ee[0] || ft ? Math.max(x + et, Rr) : x, ae = lt[1] - ee[1] || ft ? Math.max(S + k, Rr) : S;
25640
+ var le = lt[0] - re[0] || ft ? Math.max(x + et, Rr) : x, ae = lt[1] - re[1] || ft ? Math.max(S + k, Rr) : S;
25635
25641
  return ft && x && S && (C ? ae = le / T : le = ae * T), [le, ae];
25636
25642
  }
25637
25643
  var St = Q(), at = St[0], q = St[1];
25638
25644
  d || (r.setFixedDirection(r.fixedDirection), mt(i, "onBeforeResize", Ut(i, t, {
25639
25645
  startFixedDirection: r.startFixedDirection,
25640
25646
  startFixedPosition: r.startFixedPosition,
25641
- setFixedDirection: function(ee) {
25647
+ setFixedDirection: function(re) {
25642
25648
  var pe;
25643
- return r.setFixedDirection(ee), pe = Q(), at = pe[0], q = pe[1], [at, q];
25649
+ return r.setFixedDirection(re), pe = Q(), at = pe[0], q = pe[1], [at, q];
25644
25650
  },
25645
- setFixedPosition: function(ee) {
25651
+ setFixedPosition: function(re) {
25646
25652
  var pe;
25647
- return r.setFixedPosition(ee), pe = Q(), at = pe[0], q = pe[1], [at, q];
25653
+ return r.setFixedPosition(re), pe = Q(), at = pe[0], q = pe[1], [at, q];
25648
25654
  },
25649
25655
  boundingWidth: at,
25650
25656
  boundingHeight: q,
25651
- setSize: function(ee) {
25652
- at = ee[0], q = ee[1];
25657
+ setSize: function(re) {
25658
+ at = re[0], q = re[1];
25653
25659
  }
25654
25660
  }, !0)));
25655
25661
  var bt = o;
@@ -25657,8 +25663,8 @@ var Or = {
25657
25663
  var st = [0, 0];
25658
25664
  s || (st = HF(i, at, q, it, bt, l, r)), u && (!u[0] && (st[0] = 0), !u[1] && (st[1] = 0));
25659
25665
  function W() {
25660
- var ee;
25661
- Z && (ee = Z([at, q]), at = ee[0], q = ee[1]), at = Gt(at, z), q = Gt(q, z);
25666
+ var re;
25667
+ Z && (re = Z([at, q]), at = re[0], q = re[1]), at = Gt(at, z), q = Gt(q, z);
25662
25668
  }
25663
25669
  if (ft) {
25664
25670
  lt[0] && lt[1] && st[0] && st[1] && (Math.abs(st[0]) > Math.abs(st[1]) ? st[1] = 0 : st[0] = 0);
@@ -25670,10 +25676,10 @@ var Or = {
25670
25676
  var dt = [et - y, k - _];
25671
25677
  r.prevWidth = et, r.prevHeight = k;
25672
25678
  var V = LB(i, at, q, bt, v, r);
25673
- if (!(!X && dt.every(function(ee) {
25674
- return !ee;
25675
- }) && V.every(function(ee) {
25676
- return !ee;
25679
+ if (!(!X && dt.every(function(re) {
25680
+ return !re;
25681
+ }) && V.every(function(re) {
25682
+ return !re;
25677
25683
  }))) {
25678
25684
  var xt = Or.drag(i, Od(t, i.state, V, !!s, !1, "draggable")), Dt = xt.transform, Ct = g + et, be = m + k, je = Ut(i, t, F({
25679
25685
  width: Ct,
@@ -27446,8 +27452,8 @@ background: var(--bounds-color);
27446
27452
  bottom: x
27447
27453
  }, at, q, 5), dt = nt.horizontal, V = nt.vertical, xt = dt.offset, Dt = V.offset;
27448
27454
  if (dt.isBound && (W[1] += xt), V.isBound && (W[0] += Dt), (ct || X) && G[0][0] === 0 && G[0][1] === 0) {
27449
- var it = Si(H), Ct = it.bottom - it.top, be = ct ? it.right - it.left : Ct, je = V.isBound ? Math.abs(Dt) : V.snapIndex === 0 ? -Dt : Dt, ee = dt.isBound ? Math.abs(xt) : dt.snapIndex === 0 ? -xt : xt;
27450
- be -= je, Ct -= ee, X && (Ct = CC(V, dt) > 0 ? Ct : be, be = Ct);
27455
+ var it = Si(H), Ct = it.bottom - it.top, be = ct ? it.right - it.left : Ct, je = V.isBound ? Math.abs(Dt) : V.snapIndex === 0 ? -Dt : Dt, re = dt.isBound ? Math.abs(xt) : dt.snapIndex === 0 ? -xt : xt;
27456
+ be -= je, Ct -= re, X && (Ct = CC(V, dt) > 0 ? Ct : be, be = Ct);
27451
27457
  var pe = z[0];
27452
27458
  z[1][1] = pe[1] - Ct, z[2][0] = pe[0] + be, z[3][1] = pe[1] + Ct, z[4][0] = pe[0] - be;
27453
27459
  } else if (A && v && u) {
@@ -31253,7 +31259,7 @@ cf = new WeakMap(), ff = new WeakMap(), Li = new WeakMap(), ns = new WeakMap(),
31253
31259
  }, K(Yi, "fontFamily", "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif"), E(Yi, cf, (e, r) => {
31254
31260
  }), E(Yi, ff, (e, r, n, s) => {
31255
31261
  });
31256
- var ml, Bi, vf, yl, gf, $_, mf, V_, yf, oo, _f, ss, uo, xg, aM, as, pi, Fi, ce, gn, re, bf, mn, wg, Nr, lo, Nh, ho, _l, co, Ah, bl, xf, X_, wf, W_, fo, po, xl, Ef, wl, Ws, Ar, Eg, oM, Zr, Sf, El, Xp, os, Pa, yn, Gi, vi, gi, Tf, Y_, Sl, Wp, Cf, q_, vo;
31262
+ var ml, Bi, vf, yl, gf, $_, mf, V_, yf, oo, _f, ss, uo, xg, aM, as, pi, Fi, ce, gn, Qt, bf, mn, wg, Nr, lo, Nh, ho, _l, co, Ah, bl, xf, X_, wf, W_, fo, po, xl, Ef, wl, Ws, Ar, Eg, oM, Zr, Sf, El, Xp, os, Pa, yn, Gi, vi, gi, Tf, Y_, Sl, Wp, Cf, q_, vo;
31257
31263
  const Bt = class extends _r {
31258
31264
  constructor() {
31259
31265
  super();
@@ -31275,7 +31281,7 @@ const Bt = class extends _r {
31275
31281
  E(this, gn, "");
31276
31282
  // 背景画像無し(=単色塗り)
31277
31283
  // 文字表示
31278
- E(this, re, new De(this.spLay, () => this.canFocus(), c(Bt, _f)));
31284
+ E(this, Qt, new De(this.spLay, () => this.canFocus(), c(Bt, _f)));
31279
31285
  E(this, bf, new ua());
31280
31286
  E(this, mn, document.createElement("span"));
31281
31287
  E(this, Nr, new ye());
@@ -31321,7 +31327,7 @@ const Bt = class extends _r {
31321
31327
  O(this, Sl, Wp).call(this), c(this, Zr) ? (this.isCur && c(Bt, yl).recText(
31322
31328
  c(this, vi).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;'")
31323
31329
  // 囲んだ領域は履歴で非表示
31324
- ), c(this, re).goTxt(c(this, vi), c(this, yn) === 0), P(this, Zr, !1), P(this, yn, 0)) : this.isCur && c(Bt, oo).noticeCompTxt();
31330
+ ), c(this, Qt).goTxt(c(this, vi), c(this, yn) === 0), P(this, Zr, !1), P(this, yn, 0)) : this.isCur && c(Bt, oo).noticeCompTxt();
31325
31331
  return;
31326
31332
  case "add":
31327
31333
  {
@@ -31337,7 +31343,7 @@ const Bt = class extends _r {
31337
31343
  {
31338
31344
  const f = JSON.parse(u);
31339
31345
  if (f.id ?? (f.id = c(this, vi).length), f.id === "break") {
31340
- c(this, re).dispBreak(f.pic);
31346
+ c(this, Qt).dispBreak(f.pic);
31341
31347
  return;
31342
31348
  }
31343
31349
  P(this, Gi, !1), f.delay = c(this, yn), f.r ?? (f.r = ""), f.style ?? (f.style = ""), f.r_style ?? (f.r_style = "");
@@ -31394,10 +31400,10 @@ text-combine-upright: all;
31394
31400
  E(this, Gi, !0);
31395
31401
  E(this, vi, []);
31396
31402
  E(this, gi, []);
31397
- K(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : c(this, re).skipChIn());
31403
+ K(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : c(this, Qt).skipChIn());
31398
31404
  E(this, vo, "");
31399
31405
  K(this, "addButton", (e) => new Promise((r) => {
31400
- e.key = `btn=[${c(this, Nr).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), vt(e, "hint_tate", c(this, re).tategaki);
31406
+ e.key = `btn=[${c(this, Nr).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), vt(e, "hint_tate", c(this, Qt).tategaki);
31401
31407
  const n = new Yi(e, c(Bt, oo), () => r(), () => this.canFocus());
31402
31408
  n.name = JSON.stringify(e).replaceAll('"', "'"), c(this, Nr).addChild(n);
31403
31409
  }));
@@ -31413,11 +31419,11 @@ text-combine-upright: all;
31413
31419
  b_alpha: c(this, pi),
31414
31420
  b_alpha_isfixed: c(this, Fi),
31415
31421
  ffs: c(this, fo),
31416
- txs: c(this, re).record(),
31422
+ txs: c(this, Qt).record(),
31417
31423
  strNoFFS: c(this, xl),
31418
31424
  btns: c(this, Nr).children.map((e) => e.name)
31419
31425
  }));
31420
- this.spLay.addChild(c(this, re)), c(this, bf).init(c(this, Sf)), this.spLay.addChild(c(this, Nr)), c(this, Nr).name = "cntBtn";
31426
+ this.spLay.addChild(c(this, Qt)), c(this, bf).init(c(this, Sf)), this.spLay.addChild(c(this, Nr)), c(this, Nr).name = "cntBtn";
31421
31427
  const e = 16;
31422
31428
  this.lay({ style: `width: ${Y.stageW}px; height: ${Y.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" });
31423
31429
  }
@@ -31479,27 +31485,33 @@ text-combine-upright: all;
31479
31485
  P(Bt, yf, e), P(Bt, oo, r), P(Bt, _f, n), De.setEvtMng(r);
31480
31486
  }
31481
31487
  destroy() {
31482
- c(this, ce) && (this.spLay.removeChild(c(this, ce)).destroy(), P(this, ce, void 0)), this.clearText(), c(this, re).destroy();
31488
+ c(this, ce) && (this.spLay.removeChild(c(this, ce)).destroy(), P(this, ce, void 0)), this.clearText(), c(this, Qt).destroy();
31483
31489
  }
31484
31490
  static destroy() {
31485
31491
  P(Bt, ss, !1), P(Bt, uo, {}), P(Bt, wl, (e) => e);
31486
31492
  }
31487
31493
  set name(e) {
31488
- this.name_ = e, c(this, re).name = e;
31494
+ this.name_ = e, c(this, Qt).name = e;
31489
31495
  }
31490
31496
  get name() {
31491
31497
  return this.name_;
31492
31498
  }
31493
31499
  // getは継承しないらしい
31494
31500
  cvsResize() {
31495
- c(this, re).cvsResize();
31501
+ c(this, Qt).cvsResize();
31496
31502
  }
31497
31503
  cvsResizeChildren() {
31498
31504
  for (const e of c(this, Nr).children)
31499
31505
  e.cvsResize();
31500
31506
  }
31507
+ procSetX(e) {
31508
+ c(this, Qt).lay({ x: e });
31509
+ }
31510
+ procSetY(e) {
31511
+ c(this, Qt).lay({ y: e });
31512
+ }
31501
31513
  lay(e) {
31502
- if (super.lay(e), _r.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), ua.setting(e), O(this, wf, W_).call(this, e), c(this, re).lay(e), "r_align" in e && P(this, Ar, e.r_align ?? ""), P(this, Ws, Y.isSafari ? c(this, re).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};` : c(this, re).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};`), Y.isFirefox && (this.mkStyle_r_align = O(this, Eg, oM)), "r_style" in e)
31514
+ if (super.lay(e), _r.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), ua.setting(e), O(this, wf, W_).call(this, e), c(this, Qt).lay(e), "r_align" in e && P(this, Ar, e.r_align ?? ""), P(this, Ws, Y.isSafari ? c(this, Qt).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};` : c(this, Qt).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};`), Y.isFirefox && (this.mkStyle_r_align = O(this, Eg, oM)), "r_style" in e)
31503
31515
  if (e.r_style) {
31504
31516
  const r = document.createElement("span");
31505
31517
  r.style.cssText = e.r_style;
@@ -31522,15 +31534,15 @@ text-combine-upright: all;
31522
31534
  });
31523
31535
  }
31524
31536
  get width() {
31525
- return c(this, re).getWidth;
31537
+ return c(this, Qt).getWidth;
31526
31538
  }
31527
31539
  get height() {
31528
- return c(this, re).getHeight;
31540
+ return c(this, Qt).getHeight;
31529
31541
  }
31530
31542
  chgBackAlpha(e) {
31531
31543
  const r = c(this, Fi) ? c(this, pi) : e * c(this, pi);
31532
31544
  c(this, ce) instanceof si && (c(this, ce) && (this.spLay.removeChild(c(this, ce)), c(this, ce).destroy()), this.spLay.addChildAt(
31533
- P(this, ce, new si()).beginFill(c(this, as)).lineStyle(void 0).drawRect(0, 0, c(this, re).getWidth, c(this, re).getHeight).endFill(),
31545
+ P(this, ce, new si()).beginFill(c(this, as)).lineStyle(void 0).drawRect(0, 0, c(this, Qt).getWidth, c(this, Qt).getHeight).endFill(),
31534
31546
  0
31535
31547
  ), c(this, ce).name = "back(color)"), c(this, ce) && (c(this, ce).visible = r > 0, c(this, ce).alpha = r);
31536
31548
  }
@@ -31567,7 +31579,7 @@ text-combine-upright: all;
31567
31579
  c(this, bf).putTxt(e);
31568
31580
  }
31569
31581
  clearText() {
31570
- this.spLay.addChild(P(this, re, c(this, re).reNew())), P(this, yn, 0), P(this, Gi, !0), P(this, vi, []), P(this, vo, ""), c(Bt, yl).recPagebreak();
31582
+ this.spLay.addChild(P(this, Qt, c(this, Qt).reNew())), P(this, yn, 0), P(this, Gi, !0), P(this, vi, []), P(this, vo, ""), c(Bt, yl).recPagebreak();
31571
31583
  }
31572
31584
  get pageText() {
31573
31585
  return c(this, vo).replace("《 》", "");
@@ -31588,7 +31600,7 @@ text-combine-upright: all;
31588
31600
  r.destroy();
31589
31601
  }
31590
31602
  playback(e, r) {
31591
- super.playback(e, r), this.enabled = e.enabled, c(this, mn).style.cssText = e.r_cssText, P(this, Ar, e.r_align), this.cvsResize(), O(this, wf, W_).call(this, e), c(this, re).playback(e.txs), P(this, pi, e.b_alpha), P(this, Fi, e.b_alpha_isfixed), r.push(new Promise((s) => {
31603
+ super.playback(e, r), this.enabled = e.enabled, c(this, mn).style.cssText = e.r_cssText, P(this, Ar, e.r_align), this.cvsResize(), O(this, wf, W_).call(this, e), c(this, Qt).playback(e.txs), P(this, pi, e.b_alpha), P(this, Fi, e.b_alpha_isfixed), r.push(new Promise((s) => {
31592
31604
  const a = e.b_do ? e.b_do === "Sprite" ? { b_pic: e.b_pic } : { b_color: e.b_color } : { b_pic: "" };
31593
31605
  a.b_alpha = e.b_alpha, a.b_alpha_isfixed = e.b_alpha_isfixed, O(this, xf, X_).call(this, a, (o) => {
31594
31606
  o && s();
@@ -31598,13 +31610,13 @@ text-combine-upright: all;
31598
31610
  r = r.concat(n.map((s) => this.addButton(JSON.parse(s.replaceAll("'", '"')))));
31599
31611
  }
31600
31612
  snapshot(e, r) {
31601
- e.render(this.spLay, { clear: !1 }), c(this, re).snapshot(e, r);
31613
+ e.render(this.spLay, { clear: !1 }), c(this, Qt).snapshot(e, r);
31602
31614
  }
31603
31615
  snapshot_end() {
31604
- c(this, re).snapshot_end();
31616
+ c(this, Qt).snapshot_end();
31605
31617
  }
31606
31618
  makeDesignCast(e) {
31607
- this.spLay.visible && c(this, re).makeDesignCast(e);
31619
+ this.spLay.visible && c(this, Qt).makeDesignCast(e);
31608
31620
  }
31609
31621
  makeDesignCastChildren(e) {
31610
31622
  if (this.spLay.visible)
@@ -31612,14 +31624,14 @@ text-combine-upright: all;
31612
31624
  r.makeDesignCast(e);
31613
31625
  }
31614
31626
  showDesignCast() {
31615
- c(this, re).showDesignCast();
31627
+ c(this, Qt).showDesignCast();
31616
31628
  }
31617
31629
  showDesignCastChildren() {
31618
31630
  for (const e of c(this, Nr).children)
31619
31631
  e.showDesignCast();
31620
31632
  }
31621
31633
  dump() {
31622
- return c(this, Sf).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${c(this, re).dump()}, "b_pic":"${c(this, gn)}", "b_color":"${c(this, as)}", "b_alpha":${c(this, pi)}, "b_alpha_isfixed":"${c(this, Fi)}", "width":${c(this, re).getWidth}, "height":${c(this, re).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Ue ? "Sprite" : e instanceof si ? "Graphics" : e instanceof ye ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${c(this, Nr).children.map((e) => e.children[0].name ?? "{}").join(",")}]`;
31634
+ return c(this, Sf).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${c(this, Qt).dump()}, "b_pic":"${c(this, gn)}", "b_color":"${c(this, as)}", "b_alpha":${c(this, pi)}, "b_alpha_isfixed":"${c(this, Fi)}", "width":${c(this, Qt).getWidth}, "height":${c(this, Qt).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Ue ? "Sprite" : e instanceof si ? "Graphics" : e instanceof ye ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${c(this, Nr).children.map((e) => e.children[0].name ?? "{}").join(",")}]`;
31623
31635
  }
31624
31636
  };
31625
31637
  let Se = Bt;
@@ -31669,7 +31681,7 @@ ml = new WeakMap(), Bi = new WeakMap(), vf = new WeakMap(), yl = new WeakMap(),
31669
31681
  if (s.length !== n)
31670
31682
  throw "[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい";
31671
31683
  return P(Bt, uo, {}), s.forEach((a, o) => c(Bt, uo)[r[o]] = ii(a)), c(Bt, Bi).setVal_Nochk("save", "const.sn.autowc.time", e.time), !1;
31672
- }, as = new WeakMap(), pi = new WeakMap(), Fi = new WeakMap(), ce = new WeakMap(), gn = new WeakMap(), re = new WeakMap(), bf = new WeakMap(), mn = new WeakMap(), wg = new WeakMap(), Nr = new WeakMap(), lo = new WeakSet(), Nh = function(e) {
31684
+ }, as = new WeakMap(), pi = new WeakMap(), Fi = new WeakMap(), ce = new WeakMap(), gn = new WeakMap(), Qt = new WeakMap(), bf = new WeakMap(), mn = new WeakMap(), wg = new WeakMap(), Nr = new WeakMap(), lo = new WeakSet(), Nh = function(e) {
31673
31685
  const { in_style: r } = e;
31674
31686
  if (!r)
31675
31687
  return;
@@ -31692,11 +31704,11 @@ ml = new WeakMap(), Bi = new WeakMap(), vf = new WeakMap(), yl = new WeakMap(),
31692
31704
  if (e.b_pic) {
31693
31705
  if (c(this, gn) !== e.b_pic)
31694
31706
  return P(this, gn, e.b_pic), c(this, ce) && (this.spLay.removeChild(c(this, ce)), c(this, ce).destroy()), Wt.csv2Sprites(c(this, gn), this.spLay, (s) => {
31695
- P(this, ce, s), s.name = "back(pic)", s.visible = n > 0, s.alpha = n, c(this, re).setSize(s.width, s.height), this.spLay.setChildIndex(s, 0), r(!0);
31707
+ P(this, ce, s), s.name = "back(pic)", s.visible = n > 0, s.alpha = n, c(this, Qt).setSize(s.width, s.height), this.spLay.setChildIndex(s, 0), r(!0);
31696
31708
  });
31697
31709
  } else
31698
31710
  "b_color" in e && (P(this, as, SE(e, "b_color", 0)), c(this, ce) && (this.spLay.removeChild(c(this, ce)), c(this, ce).destroy()), P(this, gn, ""), this.spLay.addChildAt(
31699
- P(this, ce, new si()).beginFill(c(this, as)).lineStyle(void 0).drawRect(0, 0, c(this, re).getWidth, c(this, re).getHeight).endFill(),
31711
+ P(this, ce, new si()).beginFill(c(this, as)).lineStyle(void 0).drawRect(0, 0, c(this, Qt).getWidth, c(this, Qt).getHeight).endFill(),
31700
31712
  0
31701
31713
  ), c(this, ce).name = "back(color)");
31702
31714
  return c(this, ce) && (c(this, ce).visible = n > 0, c(this, ce).alpha = n), r(!1), !1;
@@ -31727,10 +31739,10 @@ ml = new WeakMap(), Bi = new WeakMap(), vf = new WeakMap(), yl = new WeakMap(),
31727
31739
  break;
31728
31740
  case "even":
31729
31741
  const u = (a - r.length) / (r.length + 1);
31730
- o = "ruby-align: space-between; " + (c(this, re).tategaki ? `padding-top: ${u}em; padding-bottom: ${u}em;` : `padding-left: ${u}em; padding-right: ${u}em;`);
31742
+ o = "ruby-align: space-between; " + (c(this, Qt).tategaki ? `padding-top: ${u}em; padding-bottom: ${u}em;` : `padding-left: ${u}em; padding-right: ${u}em;`);
31731
31743
  break;
31732
31744
  case "1ruby":
31733
- o = "ruby-align: space-between; " + (c(this, re).tategaki ? "padding-top: 1em; padding-bottom: 1em;" : "padding-left: 1em; padding-right: 1em;");
31745
+ o = "ruby-align: space-between; " + (c(this, Qt).tategaki ? "padding-top: 1em; padding-bottom: 1em;" : "padding-left: 1em; padding-right: 1em;");
31734
31746
  break;
31735
31747
  default:
31736
31748
  o = `text-align: ${n};`;
@@ -32013,7 +32025,7 @@ ${e}`, M = () => {
32013
32025
  U.start();
32014
32026
  return this.hTwInf[C] = { tw: $, resume: !1 }, !1;
32015
32027
  };
32016
- var mi, Qt, Ee, Ys, mo, Pl, Pf, Of, If, Ol, Rf, Z_, qs, Ui, Og, dM, Lr, Ig, pM, Rg, vM, Dg, gM, Yt, _n, bn, Df, kg, mM, Il, qp, Ng, yM, Ag, kf, Lg, yo, _o, us, Ye, bo, Bg, _M, qe, Cr, Xr, Fg, bM, Gg, xM, Ug, wM, xo, Lh, jg, EM, Kr, zg, SM, Hg, TM, $g, CM, Vg, MM, Xg, PM, Zs, wo, Bh, Jr, Wg, OM, Nf, Yg, IM, xn, Eo, Ks, bu, ji, wn, qg, RM, Zg, DM, Kg, kM, Jg, NM, Qg, AM, tm, LM, em, BM, Af, K_, rm, FM, im, GM, nm, UM, sm, jM, am, zM, om, HM, um, $M;
32028
+ var mi, te, Ee, Ys, mo, Pl, Pf, Of, If, Ol, Rf, Z_, qs, Ui, Og, dM, Lr, Ig, pM, Rg, vM, Dg, gM, Yt, _n, bn, Df, kg, mM, Il, qp, Ng, yM, Ag, kf, Lg, yo, _o, us, Ye, bo, Bg, _M, qe, Cr, Xr, Fg, bM, Gg, xM, Ug, wM, xo, Lh, jg, EM, Kr, zg, SM, Hg, TM, $g, CM, Vg, MM, Xg, PM, Zs, wo, Bh, Jr, Wg, OM, Nf, Yg, IM, xn, Eo, Ks, bu, ji, wn, qg, RM, Zg, DM, Kg, kM, Jg, NM, Qg, AM, tm, LM, em, BM, Af, K_, rm, FM, im, GM, nm, UM, sm, jM, am, zM, om, HM, um, $M;
32017
32029
  const Ls = class {
32018
32030
  constructor(t, e, r, n, s, a, o, u, l, h) {
32019
32031
  E(this, Rf);
@@ -32086,7 +32098,7 @@ const Ls = class {
32086
32098
  // ボタンを表示
32087
32099
  E(this, um);
32088
32100
  E(this, mi, void 0);
32089
- E(this, Qt, new ye());
32101
+ E(this, te, new ye());
32090
32102
  E(this, Ee, new ye());
32091
32103
  E(this, Ys, void 0);
32092
32104
  E(this, mo, void 0);
@@ -32212,7 +32224,7 @@ void main(void) {
32212
32224
  }
32213
32225
  o.cvsResize(), Se.init(t, e, n, this, (g) => c(this, Yt)[g.layname].fore === g, r), Wt.init(s, t, r, o, u, n), Yi.init(t), P(this, Ys, new Y3(t, e, r, n, s, o, c(this, Kr))), o.hFactoryCls.grp = () => new Wt(), o.hFactoryCls.txt = () => new Se(), e.loadplugin = (g) => O(this, Rg, vM).call(this, g), e.snapshot = (g) => O(this, Ig, pM).call(this, g), e.add_lay = (g) => O(this, Dg, gM).call(this, g), e.clear_lay = (g) => O(this, Ng, yM).call(this, g), e.finish_trans = () => O(this, xo, Lh).call(this), e.lay = (g) => O(this, kg, mM).call(this, g), e.trans = (g) => O(this, Bg, _M).call(this, g), e.wt = (g) => O(this, Ug, wM).call(this, g), e.quake = (g) => O(this, jg, EM).call(this, g), e.stop_quake = (g) => e.finish_trans(g), e.wq = (g) => e.wt(g), e.pause_tsy = (g) => O(this, Vg, MM).call(this, g), e.resume_tsy = (g) => O(this, Xg, PM).call(this, g), e.stop_tsy = (g) => O(this, $g, CM).call(this, g), e.tsy = (g) => O(this, zg, SM).call(this, g), e.wait_tsy = (g) => O(this, Hg, TM).call(this, g), e.ch = (g) => O(this, wo, Bh).call(this, g), e.clear_text = (g) => O(this, qg, RM).call(this, g), e.current = (g) => c(this, Nf).call(this, g), e.endlink = (g) => O(this, Zg, DM).call(this, g), e.er = (g) => O(this, Kg, kM).call(this, g), e.graph = (g) => O(this, Jg, NM).call(this, g), e.link = (g) => O(this, Qg, AM).call(this, g), e.r = (g) => O(this, tm, LM).call(this, g), e.rec_ch = (g) => O(this, Af, K_).call(this, g), e.rec_r = (g) => O(this, em, BM).call(this, g), e.reset_rec = (g) => O(this, rm, FM).call(this, g), e.ruby2 = (g) => O(this, im, GM).call(this, g), e.span = (g) => O(this, nm, UM).call(this, g), e.tcy = (g) => O(this, sm, jM).call(this, g), e.add_face = (g) => Wt.add_face(g), e.wv = (g) => Wt.wv(g), e.dump_lay = (g) => O(this, am, zM).call(this, g), e.enable_event = (g) => O(this, om, HM).call(this, g), e.button = (g) => O(this, um, $M).call(this, g), t.existsBreakline && (this.breakLine = () => c(this, Lr).call(this, 'grp|{"id":"break","pic":"breakline"}')), t.existsBreakpage && (this.breakPage = () => c(this, Lr).call(this, 'grp|{"id":"break","pic":"breakpage"}')), P(this, mo, xb(String(t.oCfg.init.bg_color)));
32214
32226
  const f = new si();
32215
- f.beginFill(c(this, mo), 1).lineStyle(0, c(this, mo)).drawRect(0, 0, Y.stageW, Y.stageH).endFill(), c(this, Qt).addChild(f.clone()), c(this, Ee).addChild(f), c(this, Ee).visible = !1, c(this, Qt).name = "page:A", c(this, Ee).name = "page:B", P(this, mi, r.stage), c(this, mi).addChild(c(this, Ee)), c(this, mi).addChild(c(this, Qt)), c(this, mi).addChild(c(this, _o)), c(this, mi).addChild(c(this, Ye)), c(this, mi).name = "stage", r.ticker.add(c(this, Pf));
32227
+ f.beginFill(c(this, mo), 1).lineStyle(0, c(this, mo)).drawRect(0, 0, Y.stageW, Y.stageH).endFill(), c(this, te).addChild(f.clone()), c(this, Ee).addChild(f), c(this, Ee).visible = !1, c(this, te).name = "page:A", c(this, Ee).name = "page:B", P(this, mi, r.stage), c(this, mi).addChild(c(this, Ee)), c(this, mi).addChild(c(this, te)), c(this, mi).addChild(c(this, _o)), c(this, mi).addChild(c(this, Ye)), c(this, mi).name = "stage", r.ticker.add(c(this, Pf));
32216
32228
  const p = (g, m) => {
32217
32229
  O(this, Og, dM).call(this, Number(m));
32218
32230
  };
@@ -32305,24 +32317,24 @@ void main(void) {
32305
32317
  const r = [], n = [];
32306
32318
  for (const [o, { fore: u, fore: { idx: l }, back: h, cls: d }] of Object.entries(t)) {
32307
32319
  n.push({ layer: o, idx: l });
32308
- const f = (a = c(this, Yt))[o] ?? (a[o] = new Wh(o, d, c(this, Qt), c(this, Ee), {}, this.sys, this.val, { isWait: !1 }));
32320
+ const f = (a = c(this, Yt))[o] ?? (a[o] = new Wh(o, d, c(this, te), c(this, Ee), {}, this.sys, this.val, { isWait: !1 }));
32309
32321
  f.fore.playback(u, r), f.back.playback(h, r);
32310
32322
  }
32311
- const s = c(this, Qt).children.length;
32323
+ const s = c(this, te).children.length;
32312
32324
  Promise.allSettled(r).then(() => {
32313
32325
  for (const { layer: o, idx: u } of n.sort(({ idx: l }, { idx: h }) => l === h ? 0 : l < h ? -1 : 1)) {
32314
32326
  const { fore: l, back: h } = c(this, Yt)[o];
32315
32327
  if (!l)
32316
32328
  return;
32317
32329
  const d = s > u ? u : s - 1;
32318
- c(this, Qt).setChildIndex(l.spLay, d), c(this, Ee).setChildIndex(h.spLay, d);
32330
+ c(this, te).setChildIndex(l.spLay, d), c(this, Ee).setChildIndex(h.spLay, d);
32319
32331
  }
32320
32332
  e();
32321
32333
  }).catch((o) => console.error("fn:LayerMng.ts playback e:%o", o));
32322
32334
  }
32323
32335
  };
32324
32336
  let Ga = Ls;
32325
- mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(), mo = new WeakMap(), Pl = new WeakMap(), Pf = new WeakMap(), Of = new WeakMap(), If = new WeakMap(), Ol = new WeakMap(), Rf = new WeakSet(), Z_ = function(t) {
32337
+ mi = new WeakMap(), te = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(), mo = new WeakMap(), Pl = new WeakMap(), Pf = new WeakMap(), Of = new WeakMap(), If = new WeakMap(), Ol = new WeakMap(), Rf = new WeakSet(), Z_ = function(t) {
32326
32338
  [Ve(this, If)._, this.Ol = ""] = t.split("/");
32327
32339
  const e = c(this, Yt)[c(this, If)];
32328
32340
  e && (Vt.allHide(), c(this, Ol) ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
@@ -32349,7 +32361,7 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32349
32361
  c(this, Ee).visible = !0;
32350
32362
  for (const h of c(this, bo))
32351
32363
  a.render(h, { clear: !1 });
32352
- c(this, Ee).visible = !1, c(this, _o).visible = !0, c(this, Qt).filters = c(this, Ye).filters, c(this, Qt).visible = !0, a.render(c(this, Qt), { clear: !1 }), c(this, Qt).visible = !1, c(this, Qt).filters = [], l();
32364
+ c(this, Ee).visible = !1, c(this, _o).visible = !0, c(this, te).filters = c(this, Ye).filters, c(this, te).visible = !0, a.render(c(this, te), { clear: !1 }), c(this, te).visible = !1, c(this, te).filters = [], l();
32353
32365
  }));
32354
32366
  else
32355
32367
  for (const l of O(this, Cr, Xr).call(this, t.layer))
@@ -32395,7 +32407,7 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32395
32407
  if (!r)
32396
32408
  throw "clsは必須です";
32397
32409
  const n = { isWait: !1 };
32398
- switch (c(this, Yt)[e] = new Wh(e, r, c(this, Qt), c(this, Ee), t, this.sys, this.val, n), c(this, _n).push(e), r) {
32410
+ switch (c(this, Yt)[e] = new Wh(e, r, c(this, te), c(this, Ee), t, this.sys, this.val, n), c(this, _n).push(e), r) {
32399
32411
  case "txt":
32400
32412
  c(this, bn) || (P(this, Eo, () => {
32401
32413
  }), P(this, Jr, O(this, Wg, OM)), P(this, Nf, O(this, Yg, IM)), this.hTag.current({ layer: e }), this.goTxt = () => {
@@ -32420,9 +32432,9 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32420
32432
  }, Yt = new WeakMap(), _n = new WeakMap(), bn = new WeakMap(), Df = new WeakMap(), kg = new WeakSet(), mM = function(t) {
32421
32433
  const e = O(this, Ks, bu).call(this, t), r = c(this, Yt)[e], n = r.back.spLay, s = r.fore.spLay;
32422
32434
  if (vt(t, "float", !1))
32423
- c(this, Ee).setChildIndex(n, c(this, Ee).children.length - 1), c(this, Qt).setChildIndex(s, c(this, Qt).children.length - 1), O(this, Il, qp).call(this);
32435
+ c(this, Ee).setChildIndex(n, c(this, Ee).children.length - 1), c(this, te).setChildIndex(s, c(this, te).children.length - 1), O(this, Il, qp).call(this);
32424
32436
  else if (t.index)
32425
- tt(t, "index", 0) && (c(this, Ee).setChildIndex(n, t.index), c(this, Qt).setChildIndex(s, t.index), O(this, Il, qp).call(this));
32437
+ tt(t, "index", 0) && (c(this, Ee).setChildIndex(n, t.index), c(this, te).setChildIndex(s, t.index), O(this, Il, qp).call(this));
32426
32438
  else if (t.dive) {
32427
32439
  const { dive: a } = t;
32428
32440
  let o = 0;
@@ -32431,8 +32443,8 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32431
32443
  const u = c(this, Yt)[a];
32432
32444
  if (!u)
32433
32445
  throw "[lay] 属性 dive【" + a + "】が不正です。レイヤーがありません";
32434
- const l = u.back, h = u.fore, d = c(this, Ee).getChildIndex(l.spLay), f = c(this, Qt).getChildIndex(h.spLay);
32435
- o = d < f ? d : f, o > c(this, Ee).getChildIndex(n) && --o, c(this, Qt).setChildIndex(s, o), c(this, Ee).setChildIndex(n, o), O(this, Il, qp).call(this);
32446
+ const l = u.back, h = u.fore, d = c(this, Ee).getChildIndex(l.spLay), f = c(this, te).getChildIndex(h.spLay);
32447
+ o = d < f ? d : f, o > c(this, Ee).getChildIndex(n) && --o, c(this, te).setChildIndex(s, o), c(this, Ee).setChildIndex(n, o), O(this, Il, qp).call(this);
32436
32448
  }
32437
32449
  return t[":id_tag"] = r.fore.name.slice(0, -7), this.scrItr.recodeDesign(t), r.lay(t);
32438
32450
  }, Il = new WeakSet(), qp = function() {
@@ -32468,9 +32480,9 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32468
32480
  }, m();
32469
32481
  };
32470
32482
  }
32471
- c(this, us).resize(Y.stageW, Y.stageH), this.appPixi.renderer.render(c(this, Qt), { renderTexture: c(this, us) });
32483
+ c(this, us).resize(Y.stageW, Y.stageH), this.appPixi.renderer.render(c(this, te), { renderTexture: c(this, us) });
32472
32484
  let o = () => {
32473
- c(this, Qt).visible = !0, this.appPixi.renderer.render(c(this, Qt), { renderTexture: c(this, us) }), c(this, Qt).visible = !1;
32485
+ c(this, te).visible = !0, this.appPixi.renderer.render(c(this, te), { renderTexture: c(this, us) }), c(this, te).visible = !1;
32474
32486
  };
32475
32487
  if (!n.some((m) => m.containMovement)) {
32476
32488
  let m = o;
@@ -32485,17 +32497,17 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32485
32497
  c(this, Ye).alpha = 1;
32486
32498
  const l = () => {
32487
32499
  var y;
32488
- this.appPixi.ticker && this.appPixi.ticker.remove(u), [Ve(this, Qt)._, Ve(this, Ee)._] = [c(this, Ee), c(this, Qt)];
32500
+ this.appPixi.ticker && this.appPixi.ticker.remove(u), [Ve(this, te)._, Ve(this, Ee)._] = [c(this, Ee), c(this, te)];
32489
32501
  const m = [];
32490
32502
  for (const [_, b] of Object.entries(c(this, Yt))) {
32491
32503
  if (r[_]) {
32492
32504
  b.transPage(m);
32493
32505
  continue;
32494
32506
  }
32495
- const { fore: { spLay: w }, back: { spLay: T } } = b, x = c(this, Qt).getChildIndex(T);
32496
- c(this, Qt).removeChild(T), c(this, Ee).removeChild(w), c(this, Qt).addChildAt(w, x), c(this, Ee).addChildAt(T, x);
32507
+ const { fore: { spLay: w }, back: { spLay: T } } = b, x = c(this, te).getChildIndex(T);
32508
+ c(this, te).removeChild(T), c(this, Ee).removeChild(w), c(this, te).addChildAt(w, x), c(this, Ee).addChildAt(T, x);
32497
32509
  }
32498
- Promise.allSettled(m), c(this, Qt).visible = !0, c(this, Ee).visible = !1, c(this, _o).visible = !1, c(this, Ye).visible = !1, (y = c(this, qe).tw) == null || y.stop(), c(this, qe).resume && this.main.resume(), P(this, qe, { tw: void 0, resume: !1 });
32510
+ Promise.allSettled(m), c(this, te).visible = !0, c(this, Ee).visible = !1, c(this, _o).visible = !1, c(this, Ye).visible = !1, (y = c(this, qe).tw) == null || y.stop(), c(this, qe).resume && this.main.resume(), P(this, qe, { tw: void 0, resume: !1 });
32499
32511
  };
32500
32512
  P(this, qe, { tw: void 0, resume: !1 });
32501
32513
  const h = tt(t, "time", 0);
@@ -32528,7 +32540,7 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32528
32540
  return r;
32529
32541
  }, Gg = new WeakSet(), xM = function(t = "") {
32530
32542
  return O(this, Cr, Xr).call(this, t).sort((e, r) => {
32531
- const n = c(this, Qt).getChildIndex(c(this, Yt)[e].fore.spLay), s = c(this, Qt).getChildIndex(c(this, Yt)[r].fore.spLay);
32543
+ const n = c(this, te).getChildIndex(c(this, Yt)[e].fore.spLay), s = c(this, te).getChildIndex(c(this, Yt)[r].fore.spLay);
32532
32544
  return n < s ? -1 : n > s ? 1 : 0;
32533
32545
  });
32534
32546
  }, Ug = new WeakSet(), wM = function(t) {
@@ -32546,13 +32558,13 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32546
32558
  s.push(c(this, Yt)[p].fore.spLay);
32547
32559
  c(this, us).resize(Y.stageW, Y.stageH);
32548
32560
  const a = () => {
32549
- c(this, Qt).visible = !0;
32561
+ c(this, te).visible = !0;
32550
32562
  for (const p of s)
32551
32563
  this.appPixi.renderer.render(
32552
32564
  p,
32553
32565
  { renderTexture: c(this, us), clear: !1 }
32554
32566
  );
32555
- c(this, Qt).visible = !1;
32567
+ c(this, te).visible = !1;
32556
32568
  };
32557
32569
  c(this, Ye).visible = !0, c(this, Ye).alpha = 1;
32558
32570
  const o = ii(tt(t, "hmax", 10)), u = ii(tt(t, "vmax", 10)), l = o === 0 ? () => {
@@ -32563,7 +32575,7 @@ mi = new WeakMap(), Qt = new WeakMap(), Ee = new WeakMap(), Ys = new WeakMap(),
32563
32575
  l(), h();
32564
32576
  }).repeat(d === 0 ? 1 / 0 : d - 1).yoyo(vt(t, "yoyo", !1)).onComplete(() => {
32565
32577
  var p, v;
32566
- (p = this.appPixi.ticker) == null || p.remove(a), c(this, Qt).visible = !0, c(this, Ye).visible = !1, c(this, Ye).x = 0, c(this, Ye).y = 0, (v = c(this, qe).tw) == null || v.stop(), c(this, qe).resume && this.main.resume(), P(this, qe, { tw: void 0, resume: !1 });
32578
+ (p = this.appPixi.ticker) == null || p.remove(a), c(this, te).visible = !0, c(this, Ye).visible = !1, c(this, Ye).x = 0, c(this, Ye).y = 0, (v = c(this, qe).tw) == null || v.stop(), c(this, qe).resume && this.main.resume(), P(this, qe, { tw: void 0, resume: !1 });
32567
32579
  }).start();
32568
32580
  return P(this, qe, { tw: f, resume: !1 }), this.appPixi.ticker.add(a), !1;
32569
32581
  }, Kr = new WeakMap(), zg = new WeakSet(), SM = function(t) {
@@ -33618,7 +33630,7 @@ function zG(i) {
33618
33630
  x[w] = dt, N[w] = dt - $;
33619
33631
  }
33620
33632
  if (o) {
33621
- var V, xt = w === "x" ? zr : Hr, Dt = w === "x" ? Ci : Mi, Ct = x[T], be = T === "y" ? "height" : "width", je = Ct + m[xt], ee = Ct - m[Dt], pe = [zr, Hr].indexOf(y) !== -1, le = (V = R == null ? void 0 : R[T]) != null ? V : 0, ae = pe ? je : Ct - S[be] - C[be] - le + I.altAxis, ne = pe ? Ct + S[be] + C[be] - le - I.altAxis : ee, Ht = p && pe ? fG(ae, Ct, ne) : Jh(p ? ae : je, Ct, p ? ne : ee);
33633
+ var V, xt = w === "x" ? zr : Hr, Dt = w === "x" ? Ci : Mi, Ct = x[T], be = T === "y" ? "height" : "width", je = Ct + m[xt], re = Ct - m[Dt], pe = [zr, Hr].indexOf(y) !== -1, le = (V = R == null ? void 0 : R[T]) != null ? V : 0, ae = pe ? je : Ct - S[be] - C[be] - le + I.altAxis, ne = pe ? Ct + S[be] + C[be] - le - I.altAxis : re, Ht = p && pe ? fG(ae, Ct, ne) : Jh(p ? ae : je, Ct, p ? ne : re);
33622
33634
  x[T] = Ht, N[T] = Ht - Ct;
33623
33635
  }
33624
33636
  t.modifiersData[r] = N;
@@ -36484,10 +36496,10 @@ function _b(i, t) {
36484
36496
  return i;
36485
36497
  }
36486
36498
  const H4 = 5;
36487
- var te;
36499
+ var ee;
36488
36500
  (function(i) {
36489
36501
  i[i.CONNECT = 0] = "CONNECT", i[i.DISCONNECT = 1] = "DISCONNECT", i[i.EVENT = 2] = "EVENT", i[i.ACK = 3] = "ACK", i[i.CONNECT_ERROR = 4] = "CONNECT_ERROR", i[i.BINARY_EVENT = 5] = "BINARY_EVENT", i[i.BINARY_ACK = 6] = "BINARY_ACK";
36490
- })(te || (te = {}));
36502
+ })(ee || (ee = {}));
36491
36503
  class $4 {
36492
36504
  /**
36493
36505
  * Encoder constructor
@@ -36504,8 +36516,8 @@ class $4 {
36504
36516
  * @param {Object} obj - packet object
36505
36517
  */
36506
36518
  encode(t) {
36507
- return (t.type === te.EVENT || t.type === te.ACK) && rv(t) ? this.encodeAsBinary({
36508
- type: t.type === te.EVENT ? te.BINARY_EVENT : te.BINARY_ACK,
36519
+ return (t.type === ee.EVENT || t.type === ee.ACK) && rv(t) ? this.encodeAsBinary({
36520
+ type: t.type === ee.EVENT ? ee.BINARY_EVENT : ee.BINARY_ACK,
36509
36521
  nsp: t.nsp,
36510
36522
  data: t.data,
36511
36523
  id: t.id
@@ -36516,7 +36528,7 @@ class $4 {
36516
36528
  */
36517
36529
  encodeAsString(t) {
36518
36530
  let e = "" + t.type;
36519
- return (t.type === te.BINARY_EVENT || t.type === te.BINARY_ACK) && (e += t.attachments + "-"), t.nsp && t.nsp !== "/" && (e += t.nsp + ","), t.id != null && (e += t.id), t.data != null && (e += JSON.stringify(t.data, this.replacer)), e;
36531
+ return (t.type === ee.BINARY_EVENT || t.type === ee.BINARY_ACK) && (e += t.attachments + "-"), t.nsp && t.nsp !== "/" && (e += t.nsp + ","), t.id != null && (e += t.id), t.data != null && (e += JSON.stringify(t.data, this.replacer)), e;
36520
36532
  }
36521
36533
  /**
36522
36534
  * Encode packet as 'buffer sequence' by removing blobs, and
@@ -36548,8 +36560,8 @@ class Zx extends Qe {
36548
36560
  if (this.reconstructor)
36549
36561
  throw new Error("got plaintext data when reconstructing a packet");
36550
36562
  e = this.decodeString(t);
36551
- const r = e.type === te.BINARY_EVENT;
36552
- r || e.type === te.BINARY_ACK ? (e.type = r ? te.EVENT : te.ACK, this.reconstructor = new V4(e), e.attachments === 0 && super.emitReserved("decoded", e)) : super.emitReserved("decoded", e);
36563
+ const r = e.type === ee.BINARY_EVENT;
36564
+ r || e.type === ee.BINARY_ACK ? (e.type = r ? ee.EVENT : ee.ACK, this.reconstructor = new V4(e), e.attachments === 0 && super.emitReserved("decoded", e)) : super.emitReserved("decoded", e);
36553
36565
  } else if (qx(t) || t.base64)
36554
36566
  if (this.reconstructor)
36555
36567
  e = this.reconstructor.takeBinaryData(t), e && (this.reconstructor = null, super.emitReserved("decoded", e));
@@ -36569,9 +36581,9 @@ class Zx extends Qe {
36569
36581
  const r = {
36570
36582
  type: Number(t.charAt(0))
36571
36583
  };
36572
- if (te[r.type] === void 0)
36584
+ if (ee[r.type] === void 0)
36573
36585
  throw new Error("unknown packet type " + r.type);
36574
- if (r.type === te.BINARY_EVENT || r.type === te.BINARY_ACK) {
36586
+ if (r.type === ee.BINARY_EVENT || r.type === ee.BINARY_ACK) {
36575
36587
  const s = e + 1;
36576
36588
  for (; t.charAt(++e) !== "-" && e != t.length; )
36577
36589
  ;
@@ -36619,17 +36631,17 @@ class Zx extends Qe {
36619
36631
  }
36620
36632
  static isPayloadValid(t, e) {
36621
36633
  switch (t) {
36622
- case te.CONNECT:
36634
+ case ee.CONNECT:
36623
36635
  return typeof e == "object";
36624
- case te.DISCONNECT:
36636
+ case ee.DISCONNECT:
36625
36637
  return e === void 0;
36626
- case te.CONNECT_ERROR:
36638
+ case ee.CONNECT_ERROR:
36627
36639
  return typeof e == "string" || typeof e == "object";
36628
- case te.EVENT:
36629
- case te.BINARY_EVENT:
36640
+ case ee.EVENT:
36641
+ case ee.BINARY_EVENT:
36630
36642
  return Array.isArray(e) && e.length > 0;
36631
- case te.ACK:
36632
- case te.BINARY_ACK:
36643
+ case ee.ACK:
36644
+ case ee.BINARY_ACK:
36633
36645
  return Array.isArray(e);
36634
36646
  }
36635
36647
  }
@@ -36671,7 +36683,7 @@ const X4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36671
36683
  Decoder: Zx,
36672
36684
  Encoder: $4,
36673
36685
  get PacketType() {
36674
- return te;
36686
+ return ee;
36675
36687
  },
36676
36688
  protocol: H4
36677
36689
  }, Symbol.toStringTag, { value: "Module" }));
@@ -36809,7 +36821,7 @@ class WP extends Qe {
36809
36821
  if (e.unshift(t), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
36810
36822
  return this._addToQueue(e), this;
36811
36823
  const r = {
36812
- type: te.EVENT,
36824
+ type: ee.EVENT,
36813
36825
  data: e
36814
36826
  };
36815
36827
  if (r.options = {}, r.options.compress = this.flags.compress !== !1, typeof e[e.length - 1] == "function") {
@@ -36917,7 +36929,7 @@ class WP extends Qe {
36917
36929
  */
36918
36930
  _sendConnectPacket(t) {
36919
36931
  this.packet({
36920
- type: te.CONNECT,
36932
+ type: ee.CONNECT,
36921
36933
  data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, t) : t
36922
36934
  });
36923
36935
  }
@@ -36949,21 +36961,21 @@ class WP extends Qe {
36949
36961
  onpacket(t) {
36950
36962
  if (t.nsp === this.nsp)
36951
36963
  switch (t.type) {
36952
- case te.CONNECT:
36964
+ case ee.CONNECT:
36953
36965
  t.data && t.data.sid ? this.onconnect(t.data.sid, t.data.pid) : this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
36954
36966
  break;
36955
- case te.EVENT:
36956
- case te.BINARY_EVENT:
36967
+ case ee.EVENT:
36968
+ case ee.BINARY_EVENT:
36957
36969
  this.onevent(t);
36958
36970
  break;
36959
- case te.ACK:
36960
- case te.BINARY_ACK:
36971
+ case ee.ACK:
36972
+ case ee.BINARY_ACK:
36961
36973
  this.onack(t);
36962
36974
  break;
36963
- case te.DISCONNECT:
36975
+ case ee.DISCONNECT:
36964
36976
  this.ondisconnect();
36965
36977
  break;
36966
- case te.CONNECT_ERROR:
36978
+ case ee.CONNECT_ERROR:
36967
36979
  this.destroy();
36968
36980
  const r = new Error(t.data.message);
36969
36981
  r.data = t.data.data, this.emitReserved("connect_error", r);
@@ -36998,7 +37010,7 @@ class WP extends Qe {
36998
37010
  let r = !1;
36999
37011
  return function(...n) {
37000
37012
  r || (r = !0, e.packet({
37001
- type: te.ACK,
37013
+ type: ee.ACK,
37002
37014
  id: t,
37003
37015
  data: n
37004
37016
  }));
@@ -37067,7 +37079,7 @@ class WP extends Qe {
37067
37079
  * @return self
37068
37080
  */
37069
37081
  disconnect() {
37070
- return this.connected && this.packet({ type: te.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
37082
+ return this.connected && this.packet({ type: ee.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
37071
37083
  }
37072
37084
  /**
37073
37085
  * Alias for {@link disconnect()}.