@famibee/skynovel 1.48.10 → 1.48.11

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
@@ -17269,14 +17269,14 @@ class Ol {
17269
17269
  }
17270
17270
  class pr {
17271
17271
  constructor(t, e) {
17272
- if (this.cfg = t, e.let = (s) => this.#v(s), e.let_abs = (s) => this.#f(s), e.let_char_at = (s) => this.#x(s), e.let_index_of = (s) => this.#o(s), e.let_length = (s) => this.#y(s), e.let_replace = (s) => this.#_(s), e.let_round = (s) => this.#g(s), e.let_search = (s) => this.#O(s), e.let_substr = (s) => this.#A(s), e.clearsysvar = () => this.#k(), e.clearvar = () => this.#S(), e.dump_val = () => this.#C(), e.copybookmark = (s) => this.#p(s), e.erasebookmark = (s) => this.#c(s), this.#e["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
17272
+ if (this.cfg = t, e.let = (s) => this.#v(s), e.let_abs = (s) => this.#f(s), e.let_char_at = (s) => this.#x(s), e.let_index_of = (s) => this.#o(s), e.let_length = (s) => this.#y(s), e.let_replace = (s) => this.#_(s), e.let_round = (s) => this.#g(s), e.let_search = (s) => this.#P(s), e.let_substr = (s) => this.#A(s), e.clearsysvar = () => this.#k(), e.clearvar = () => this.#T(), e.dump_val = () => this.#C(), e.copybookmark = (s) => this.#p(s), e.erasebookmark = (s) => this.#c(s), this.#e["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
17273
17273
  const s = [];
17274
17274
  for (const o of Object.keys(this.#s.mark).sort()) {
17275
17275
  const a = { ...this.#s.mark[o].json };
17276
17276
  a.place = o, s.push(a);
17277
17277
  }
17278
17278
  return JSON.stringify(s);
17279
- }), this.#i["const.sn.isFirstBoot"] = !0, this.#i["const.sn.last_page_text"] = "", this.#i["const.sn.last_page_plain_text"] = "", this.#i["const.sn.displayState"] = !1, this.#i["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), this.#i["const.Date.getDateStr"] = () => tn(), this.#i["const.sn.platform"] = JSON.stringify(iu), this.#k(), this.#S(), this.#i["const.sn.config.window.width"] = t.oCfg.window.width, this.#i["const.sn.config.window.height"] = t.oCfg.window.height, this.#i["const.sn.config.book.title"] = t.oCfg.book.title, this.#i["const.sn.config.book.version"] = t.oCfg.book.version, this.#i["const.sn.Math.PI"] = Math.PI, typeof window > "u")
17279
+ }), this.#i["const.sn.isFirstBoot"] = !0, this.#i["const.sn.last_page_text"] = "", this.#i["const.sn.last_page_plain_text"] = "", this.#i["const.sn.displayState"] = !1, this.#i["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), this.#i["const.Date.getDateStr"] = () => tn(), this.#i["const.sn.platform"] = JSON.stringify(iu), this.#k(), this.#T(), this.#i["const.sn.config.window.width"] = t.oCfg.window.width, this.#i["const.sn.config.window.height"] = t.oCfg.window.height, this.#i["const.sn.config.book.title"] = t.oCfg.book.title, this.#i["const.sn.config.book.version"] = t.oCfg.book.version, this.#i["const.sn.Math.PI"] = Math.PI, typeof window > "u")
17280
17280
  return;
17281
17281
  const i = window, n = i.AudioContext ?? i.webkitAudioContext;
17282
17282
  this.#i["const.sn.needClick2Play"] = () => new n().state === "suspended";
@@ -17472,7 +17472,7 @@ class pr {
17472
17472
  return t.text = String(Math.round(e)), this.#v(t), !1;
17473
17473
  }
17474
17474
  // 正規表現で検索
17475
- #O(t) {
17475
+ #P(t) {
17476
17476
  if (!t.reg)
17477
17477
  throw "regは必須です";
17478
17478
  const { flags: e } = t, i = e ? new RegExp(t.reg, e) : new RegExp(t.reg);
@@ -17493,7 +17493,7 @@ class pr {
17493
17493
  return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), this.#t.mark = this.#s.mark = {}, this.setVal_Nochk("sys", "const.sn.save.place", 1), this.flush(), !1;
17494
17494
  }
17495
17495
  // ゲーム変数の全消去
17496
- #S() {
17496
+ #T() {
17497
17497
  const t = this.#e["const.sn.mesLayer"] ?? "", e = this.#e["sn.doRecLog"] ?? !1, i = this.#e["const.sn.sLog"] ?? "[]";
17498
17498
  return this.#e = this.#t.save = {}, this.setVal_Nochk("save", "const.sn.mesLayer", t), this.setVal_Nochk("save", "sn.doRecLog", e), this.setVal_Nochk("save", "const.sn.sLog", i), !1;
17499
17499
  }
@@ -17515,7 +17515,7 @@ class pr {
17515
17515
  };
17516
17516
  setVal_Nochk(t, e, i, n = !1) {
17517
17517
  const s = this.#t[t];
17518
- n && (i = this.#E(i));
17518
+ n && (i = this.#O(i));
17519
17519
  const o = t + ":" + e;
17520
17520
  if (o in pr.#j) {
17521
17521
  const a = s[e], h = i;
@@ -17570,9 +17570,9 @@ class pr {
17570
17570
  break;
17571
17571
  }
17572
17572
  }
17573
- return o instanceof Function && (o = o()), i.at === "@str" ? o : this.#E(o);
17573
+ return o instanceof Function && (o = o()), i.at === "@str" ? o : this.#O(o);
17574
17574
  };
17575
- #E(t) {
17575
+ #O(t) {
17576
17576
  const e = t;
17577
17577
  if (e === "true")
17578
17578
  return !0;
@@ -17607,8 +17607,8 @@ class pr {
17607
17607
  "sys:sn.tagCh.canskip": (t) => this.#D(t),
17608
17608
  "sys:sn.auto.msecPageWait": (t) => this.#H(t),
17609
17609
  "sys:sn.auto.msecPageWait_Kidoku": (t) => this.#H(t),
17610
- "sys:sn.auto.msecLineWait": (t) => this.#P(t),
17611
- "sys:sn.auto.msecLineWait_Kidoku": (t) => this.#P(t),
17610
+ "sys:sn.auto.msecLineWait": (t) => this.#S(t),
17611
+ "sys:sn.auto.msecLineWait_Kidoku": (t) => this.#S(t),
17612
17612
  // save
17613
17613
  "save:sn.doRecLog": (t) => {
17614
17614
  this.#m(
@@ -17647,7 +17647,7 @@ class pr {
17647
17647
  this.cfg.oCfg.init.auto_msecpagewait === void 0 ? 3500 : this.cfg.oCfg.init.auto_msecpagewait
17648
17648
  );
17649
17649
  }
17650
- #P(t) {
17650
+ #S(t) {
17651
17651
  D(this.#n, t, 500);
17652
17652
  }
17653
17653
  #X(t) {
@@ -20340,7 +20340,7 @@ class K extends Rt {
20340
20340
  static #t;
20341
20341
  static #e;
20342
20342
  static init(t, e) {
20343
- K.#t = t, K.#e = e, K.#k = /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, K.#S = /[[({〈「『【〔“〝]/, K.#F = /[─‥…]/;
20343
+ K.#t = t, K.#e = e, K.#k = /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/, K.#T = /[[({〈「『【〔“〝]/, K.#F = /[─‥…]/;
20344
20344
  }
20345
20345
  static #i;
20346
20346
  static setEvtMng(t) {
@@ -20401,7 +20401,7 @@ class K extends Rt {
20401
20401
  this.#r.style.cssText = "";
20402
20402
  else
20403
20403
  "alpha" in t && (e.opacity = String(this.spLay.alpha));
20404
- if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (K.#k = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (K.#S = new RegExp(`[${t.kinsoku_eol}]`)), "kinsoku_dns" in t && (K.#F = new RegExp(`[${t.kinsoku_dns}]`)), this.#c(), this.#l.sethArg(t), this.#v = this.spLay.position.x, e.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), e.display = this.spLay.visible ? "inline" : "none", e.textShadow = t.filter ?? e.textShadow ?? "", this.#u = W(t, "break_fixed", this.#u), this.#m = D(t, "break_fixed_left", this.#m), this.#p = D(t, "break_fixed_top", this.#p), ":redraw" in t && this.#A > 0) {
20404
+ if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (K.#k = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (K.#T = new RegExp(`[${t.kinsoku_eol}]`)), "kinsoku_dns" in t && (K.#F = new RegExp(`[${t.kinsoku_dns}]`)), this.#c(), this.#l.sethArg(t), this.#v = this.spLay.position.x, e.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), e.display = this.spLay.visible ? "inline" : "none", e.textShadow = t.filter ?? e.textShadow ?? "", this.#u = W(t, "break_fixed", this.#u), this.#m = D(t, "break_fixed_left", this.#m), this.#p = D(t, "break_fixed_top", this.#p), ":redraw" in t && this.#A > 0) {
20405
20405
  const i = [
20406
20406
  this.#r.innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
20407
20407
  `<span class='sn_ch' data-add='{"ch_in_style":"default"}'> </span>`
@@ -20624,15 +20624,15 @@ class K extends Rt {
20624
20624
  #_ = void 0;
20625
20625
  // 文字にかけるフィルター
20626
20626
  #g = [];
20627
- #O = [];
20627
+ #P = [];
20628
20628
  #A = 0;
20629
20629
  static #k;
20630
- static #S;
20630
+ static #T;
20631
20631
  static #F;
20632
20632
  static #j = "<span class='sn_ch sn_ch_last'> </span>";
20633
20633
  goTxt(t, e) {
20634
20634
  K.#D.visible = !1;
20635
- let i = this.#O.length, n = "";
20635
+ let i = this.#P.length, n = "";
20636
20636
  if (i === 0) {
20637
20637
  if (K.#t.oCfg.debug.masume && (R.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${this.#a.pad_left} pr:${this.#a.pad_right} pt:${this.#a.pad_top} pb:${this.#a.pad_bottom} w:${this.#a.$width} h:${this.#a.$height}`), this.#n.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#a.pad_left, -this.#a.pad_top, this.#a.$width, this.#a.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
20638
20638
  0,
@@ -20670,7 +20670,7 @@ class K extends Rt {
20670
20670
  }
20671
20671
  let u = 0, c = 2, f = !1;
20672
20672
  do {
20673
- const _ = this.#O = this.#H(this.#r, l);
20673
+ const _ = this.#P = this.#H(this.#r, l);
20674
20674
  if (u = _.length, !f && (u < 2 || i === u)) {
20675
20675
  i > 0 && i === u && (this.#r.innerHTML = n.replaceAll('class="sn_ch"', 'class="sn_ch sn_ch_in_default"'));
20676
20676
  break;
@@ -20700,7 +20700,7 @@ class K extends Rt {
20700
20700
  if (K.#F.test(E) && E === x.ch)
20701
20701
  c = T;
20702
20702
  else {
20703
- if (K.#S.test(E))
20703
+ if (K.#T.test(E))
20704
20704
  c = T;
20705
20705
  else if (K.#k.test(x.ch))
20706
20706
  for (c = T + 1; c > 0 && K.#k.test(_[--c].ch); )
@@ -20709,7 +20709,7 @@ class K extends Rt {
20709
20709
  ++c;
20710
20710
  continue;
20711
20711
  }
20712
- for (c = T + 1; c > 0 && K.#S.test(_[--c].ch); )
20712
+ for (c = T + 1; c > 0 && K.#T.test(_[--c].ch); )
20713
20713
  ;
20714
20714
  }
20715
20715
  const I = _[c].elm.parentElement, L = document.createElement("br");
@@ -20727,9 +20727,9 @@ class K extends Rt {
20727
20727
  }, m = K.#t.oCfg.debug.masume ? (_, g) => {
20728
20728
  d(_, g), this.#n.beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(g.x, g.y, g.width, g.height).endFill();
20729
20729
  } : () => {
20730
- }, p = X.ease(this.#P);
20730
+ }, p = X.ease(this.#S);
20731
20731
  for (let _ = i; _ < u; ++_) {
20732
- const g = this.#O[_], x = g.rect, w = JSON.parse(g.elm.dataset.arg ?? '{"delay": 0}'), T = JSON.parse(g.elm.dataset.add ?? "{}"), O = K.#C[T.ch_in_style];
20732
+ const g = this.#P[_], x = g.rect, w = JSON.parse(g.elm.dataset.arg ?? '{"delay": 0}'), T = JSON.parse(g.elm.dataset.add ?? "{}"), O = K.#C[T.ch_in_style];
20733
20733
  if (m(g, x), g.elm.dataset.cmd === "grp") {
20734
20734
  const E = new Rt();
20735
20735
  this.#s.addChild(E), new Y(w.pic, E, (P) => {
@@ -20759,25 +20759,25 @@ class K extends Rt {
20759
20759
  }
20760
20760
  }
20761
20761
  const v = this.#r.querySelectorAll("span.sn_ch");
20762
- this.#E = () => (this.#E = () => !1, v.forEach((_) => _.className = _.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), K.#D.position.set(
20762
+ this.#O = () => (this.#O = () => !1, v.forEach((_) => _.className = _.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), K.#D.position.set(
20763
20763
  this.#m,
20764
20764
  this.#p
20765
20765
  ), K.#D.visible = !0, K.#i.noticeCompTxt(), !0), v.forEach((_) => _.className = _.className.replaceAll(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1")), i > 0 && ++i;
20766
20766
  let y;
20767
20767
  for (let _ = u - 2; _ >= 0; --_) {
20768
- const { elm: g } = this.#O[_];
20768
+ const { elm: g } = this.#P[_];
20769
20769
  if (g.tagName === "SPAN") {
20770
20770
  y = g.parentElement?.tagName === "RUBY" ? g.parentElement.parentElement ?? g : g;
20771
20771
  break;
20772
20772
  }
20773
20773
  }
20774
20774
  if (!y || e || i === u) {
20775
- this.#E();
20775
+ this.#O();
20776
20776
  return;
20777
20777
  }
20778
- y.addEventListener("animationend", this.#E, { once: !0, passive: !0 });
20778
+ y.addEventListener("animationend", this.#O, { once: !0, passive: !0 });
20779
20779
  }
20780
- #E = () => !1;
20780
+ #O = () => !1;
20781
20781
  #z(t, e, i, n, s, o) {
20782
20782
  t.alpha = 0, e.x && (n.x = e.x.at(0) === "=" ? n.x + parseInt(e.x.slice(1)) : parseInt(e.x)), e.y && (n.y = e.y.at(0) === "=" ? n.y + parseInt(e.y.slice(1)) : parseInt(e.y)), e.width && (n.width = parseInt(e.width)), e.height && (n.height = parseInt(e.height)), e.wait && (o.wait = parseInt(e.wait)), t.width = n.width, t.height = n.height, o.x ? t.position.set(
20783
20783
  o.x.at(0) === "=" ? n.x + t.width * o.nx : o.nx,
@@ -20792,7 +20792,7 @@ class K extends Rt {
20792
20792
  this.#g.push(a);
20793
20793
  }
20794
20794
  skipChIn() {
20795
- let t = this.#E();
20795
+ let t = this.#O();
20796
20796
  for (const e of this.#g)
20797
20797
  e.tw && (e.tw.stop().end(), t = !0);
20798
20798
  return this.#g = [], t;
@@ -20907,10 +20907,10 @@ class K extends Rt {
20907
20907
  }
20908
20908
  return n.detach(), i;
20909
20909
  }
20910
- #P = "Quadratic.Out";
20910
+ #S = "Quadratic.Out";
20911
20911
  #X = "Quadratic.Out";
20912
20912
  #L() {
20913
- this.#n.clear(), this.#O = [], this.#A = 0, this.skipChIn();
20913
+ this.#n.clear(), this.#P = [], this.#A = 0, this.skipChIn();
20914
20914
  const t = this.#r.cloneNode(!0);
20915
20915
  t.textContent = "";
20916
20916
  const e = this.#r;
@@ -20944,7 +20944,7 @@ class K extends Rt {
20944
20944
  reNew() {
20945
20945
  this.#L();
20946
20946
  const t = new K(this.spLay, () => this.canFocus(), this.sys);
20947
- return t.#a = this.#a, t.#r.style.cssText = this.#r.style.cssText, t.#v = this.#v, t.name = this.name, t.#c(), t.#l.sethArg(this.#l.gethArg()), t.#_ = this.#_, t.#P = this.#P, t.#X = this.#X, t.#u = this.#u, t.#m = this.#m, t.#p = this.#p, this.destroy(), t;
20947
+ return t.#a = this.#a, t.#r.style.cssText = this.#r.style.cssText, t.#v = this.#v, t.name = this.name, t.#c(), t.#l.sethArg(this.#l.gethArg()), t.#_ = this.#_, t.#S = this.#S, t.#X = this.#X, t.#u = this.#u, t.#m = this.#m, t.#p = this.#p, this.destroy(), t;
20948
20948
  }
20949
20949
  record() {
20950
20950
  return {
@@ -20953,7 +20953,7 @@ class K extends Rt {
20953
20953
  left: this.#v,
20954
20954
  idc_hArg: this.#l.gethArg(),
20955
20955
  ch_filter: this.#_,
20956
- fi_easing: this.#P,
20956
+ fi_easing: this.#S,
20957
20957
  fo_easing: this.#X,
20958
20958
  break_fixed: this.#u,
20959
20959
  break_fixed_left: this.#m,
@@ -20961,7 +20961,7 @@ class K extends Rt {
20961
20961
  };
20962
20962
  }
20963
20963
  playback(t) {
20964
- this.#a = t.infTL, this.position.set(this.#a.pad_left, this.#a.pad_top), this.#r.style.cssText = t.cssText, this.#v = t.left, this.#c(), this.#l.sethArg(t.idc_hArg), this.#_ = t.ch_filter, this.#P = t.fi_easing, this.#X = t.fo_easing, this.#u = t.break_fixed ?? !1, this.#m = t.break_fixed_left ?? 0, this.#p = t.break_fixed_top ?? 0;
20964
+ this.#a = t.infTL, this.position.set(this.#a.pad_left, this.#a.pad_top), this.#r.style.cssText = t.cssText, this.#v = t.left, this.#c(), this.#l.sethArg(t.idc_hArg), this.#_ = t.ch_filter, this.#S = t.fi_easing, this.#X = t.fo_easing, this.#u = t.break_fixed ?? !1, this.#m = t.break_fixed_left ?? 0, this.#p = t.break_fixed_top ?? 0;
20965
20965
  }
20966
20966
  #M = void 0;
20967
20967
  snapshot(t, e) {
@@ -21363,9 +21363,9 @@ class it extends ne {
21363
21363
  "padding-top": 0,
21364
21364
  "padding-bottom": 0
21365
21365
  };
21366
- #O = new Rt();
21366
+ #P = new Rt();
21367
21367
  constructor() {
21368
- super(), this.spLay.addChild(this.#o), this.#y.init(this.#M), this.spLay.addChild(this.#O), this.#O.name = "cntBtn";
21368
+ super(), this.spLay.addChild(this.#o), this.#y.init(this.#M), this.spLay.addChild(this.#P), this.#P.name = "cntBtn";
21369
21369
  const t = 16;
21370
21370
  this.lay({ style: `width: ${R.stageW}px; height: ${R.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${t}px;`, in_style: "default", out_style: "default", back_clear: "true" });
21371
21371
  }
@@ -21386,7 +21386,7 @@ class it extends ne {
21386
21386
  this.#o.cvsResize();
21387
21387
  }
21388
21388
  cvsResizeChildren() {
21389
- for (const t of this.#O.children)
21389
+ for (const t of this.#P.children)
21390
21390
  t.cvsResize();
21391
21391
  }
21392
21392
  procSetX(t) {
@@ -21396,7 +21396,7 @@ class it extends ne {
21396
21396
  this.#o.lay({ y: t });
21397
21397
  }
21398
21398
  lay(t) {
21399
- if (super.lay(t), ne.setXY(this.spLay, t, this.spLay), t[":id_tag"] = this.name_.slice(0, -7), Ve.setting(t), this.#C(t), this.#o.lay(t), "r_align" in t && (this.#P = t.r_align ?? ""), this.#H = R.isSafari ? this.#o.tategaki ? (e, i) => `text-align: start; height: ${i}em; padding-top: ${e}; padding-bottom: ${e};` : (e, i) => `text-align: start; width: ${i}em; padding-left: ${e}; padding-right: ${e};` : this.#o.tategaki ? (e) => `text-align: justify; text-align-last: justify; padding-top: ${e}; padding-bottom: ${e};` : (e) => `text-align: justify; text-align-last: justify; padding-left: ${e}; padding-right: ${e};`, R.isFirefox && (this.mkStyle_r_align = this.#X), "r_style" in t)
21399
+ if (super.lay(t), ne.setXY(this.spLay, t, this.spLay), t[":id_tag"] = this.name_.slice(0, -7), Ve.setting(t), this.#C(t), this.#o.lay(t), "r_align" in t && (this.#S = t.r_align ?? ""), this.#H = R.isSafari ? this.#o.tategaki ? (e, i) => `text-align: start; height: ${i}em; padding-top: ${e}; padding-bottom: ${e};` : (e, i) => `text-align: start; width: ${i}em; padding-left: ${e}; padding-right: ${e};` : this.#o.tategaki ? (e) => `text-align: justify; text-align-last: justify; padding-top: ${e}; padding-bottom: ${e};` : (e) => `text-align: justify; text-align-last: justify; padding-left: ${e}; padding-right: ${e};`, R.isFirefox && (this.mkStyle_r_align = this.#X), "r_style" in t)
21400
21400
  if (t.r_style) {
21401
21401
  const e = document.createElement("span");
21402
21402
  e.style.cssText = t.r_style;
@@ -21412,7 +21412,7 @@ class it extends ne {
21412
21412
  } else
21413
21413
  this.#_.style.cssText = "";
21414
21414
  if ("alpha" in t)
21415
- for (const e of this.#O.children)
21415
+ for (const e of this.#P.children)
21416
21416
  e.alpha = this.spLay.alpha;
21417
21417
  return this.#A(t), this.#F(t), this.#z(t, (e) => {
21418
21418
  e && it.#h.resume();
@@ -21425,10 +21425,10 @@ class it extends ne {
21425
21425
  const i = K.getChInStyle(e);
21426
21426
  if (!i)
21427
21427
  throw `存在しないin_style【${e}】です`;
21428
- this.#k = e, this.#S = i.join;
21428
+ this.#k = e, this.#T = i.join;
21429
21429
  }
21430
21430
  #k = "";
21431
- #S = !0;
21431
+ #T = !0;
21432
21432
  get width() {
21433
21433
  return this.#o.getWidth;
21434
21434
  }
@@ -21444,7 +21444,7 @@ class it extends ne {
21444
21444
  this.#j = e;
21445
21445
  }
21446
21446
  #j = "";
21447
- #E = new Y();
21447
+ #O = new Y();
21448
21448
  #z(t, e) {
21449
21449
  if ("back_clear" in t)
21450
21450
  return W(t, "back_clear", !1) && (this.#p = 0, this.#c = 0, this.#v = !1, this.#x = ""), e(!1), !1;
@@ -21452,11 +21452,11 @@ class it extends ne {
21452
21452
  const i = (this.#v ? 1 : Number(it.#e.getVal("sys:TextLayer.Back.Alpha"))) * this.#c;
21453
21453
  if (t.b_pic) {
21454
21454
  if (this.#x !== t.b_pic)
21455
- return this.#x = t.b_pic, this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#E.destroy(), this.#E = new Y(this.#x, this.spLay, (n) => {
21455
+ return this.#x = t.b_pic, this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#O = new Y(this.#x, this.spLay, (n) => {
21456
21456
  this.#f = n, n.name = "back(pic)", n.visible = i > 0, n.alpha = i, this.#o.setSize(n.width, n.height), this.spLay.setChildIndex(n, 0), e(!0);
21457
- }), this.#E.ret;
21457
+ }), this.#O.ret;
21458
21458
  } else
21459
- "b_color" in t && (this.#p = nu(t, "b_color", 0), this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy(), this.#E.destroy()), this.#x = "", this.spLay.addChildAt(
21459
+ "b_color" in t && (this.#p = nu(t, "b_color", 0), this.#f && (this.spLay.removeChild(this.#f), this.#f.destroy()), this.#x = "", this.spLay.addChildAt(
21460
21460
  (this.#f = new Se()).beginFill(this.#p).lineStyle(void 0).drawRect(0, 0, this.#o.getWidth, this.#o.getHeight).endFill(),
21461
21461
  0
21462
21462
  ), this.#f.name = "back(color)");
@@ -21508,7 +21508,7 @@ class it extends ne {
21508
21508
  }
21509
21509
  return ` style='${o} ${n}'`;
21510
21510
  }
21511
- #P = "";
21511
+ #S = "";
21512
21512
  #X(t, e, i, n = "") {
21513
21513
  if (!i)
21514
21514
  return ` style='${n}'`;
@@ -21560,7 +21560,7 @@ class it extends ne {
21560
21560
  this.#B ? (this.#B = !1, n = "<ruby> <rt> </rt></ruby><br/>") : n = "<br/>";
21561
21561
  break;
21562
21562
  }
21563
- this.#B && (this.#B = !1, e === "" && (e = " ")), n = this.#q(t, e, this.#P);
21563
+ this.#B && (this.#B = !1, e === "" && (e = " ")), n = this.#q(t, e, this.#S);
21564
21564
  break;
21565
21565
  default:
21566
21566
  switch (s) {
@@ -21602,8 +21602,8 @@ class it extends ne {
21602
21602
  n = `<span${l} style='${u} ${h.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(h)}'${c} style='${u} display: inline;'> </span><rt${c}${this.mkStyle_r_align(
21603
21603
  " ",
21604
21604
  h.r,
21605
- this.#P,
21606
- this.#_.style.cssText + (this.#T.at(-1)?.o.r_style ?? "") + h.r_style
21605
+ this.#S,
21606
+ this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "") + h.r_style
21607
21607
  )}>${h.r}</rt></ruby></span>`;
21608
21608
  }
21609
21609
  break;
@@ -21618,8 +21618,8 @@ text-combine-upright: all;
21618
21618
  -webkit-text-combine: horizontal;'>${h}</span><rt${v}${this.mkStyle_r_align(
21619
21619
  h,
21620
21620
  d,
21621
- this.#P,
21622
- this.#_.style.cssText + (this.#T.at(-1)?.o.r_style ?? "") + f
21621
+ this.#S,
21622
+ this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "") + f
21623
21623
  )}>${d}</rt></ruby></span>`;
21624
21624
  }
21625
21625
  break;
@@ -21642,7 +21642,7 @@ text-combine-upright: all;
21642
21642
  this.#L = !0, this.#U.push("</span>"), this.#Y();
21643
21643
  return;
21644
21644
  default:
21645
- this.#L = !0, n = this.#q(t, e, this.#P);
21645
+ this.#L = !0, n = this.#q(t, e, this.#S);
21646
21646
  }
21647
21647
  break;
21648
21648
  }
@@ -21657,46 +21657,46 @@ text-combine-upright: all;
21657
21657
  t,
21658
21658
  e,
21659
21659
  i,
21660
- this.#_.style.cssText + (this.#T.at(-1)?.o.r_style ?? "")
21660
+ this.#_.style.cssText + (this.#E.at(-1)?.o.r_style ?? "")
21661
21661
  )}>${e}</rt></ruby></span>` : `<span${s} style='${o} ${this.#I(t)}'${a}>${n}</span>`;
21662
21662
  }
21663
21663
  #R(t, e, i = `
21664
21664
  `) {
21665
- const n = this.#S ? e ?? this.#T.at(0)?.o.wait ?? (it.#a ? it.#u[i.at(0) ?? ""] ?? 0 : Ci.msecChWait) : 0;
21666
- it.#l.isSkipping() ? this.#W = 0 : t && this.#S && (this.#W += Number(n));
21665
+ const n = this.#T ? e ?? this.#E.at(0)?.o.wait ?? (it.#a ? it.#u[i.at(0) ?? ""] ?? 0 : Ci.msecChWait) : 0;
21666
+ it.#l.isSkipping() ? this.#W = 0 : t && this.#T && (this.#W += Number(n));
21667
21667
  const s = `data-add='{"ch_in_style":"${this.#k}", "ch_out_style":"${this.#j}"}'`;
21668
21668
  return {
21669
21669
  cl: ` class='sn_ch${n > 0 ? ` sn_ch_in_${this.#k}` : ""}'`,
21670
21670
  // TxtStage.goTxt()はこれ単位で文字出現させる
21671
- sty: `animation-delay: ${this.#W}ms;${this.#T.at(-1)?.o.style ?? ""}`,
21671
+ sty: `animation-delay: ${this.#W}ms;${this.#E.at(-1)?.o.style ?? ""}`,
21672
21672
  // TxtStage.goTxt()はこれ単位で文字出現させる
21673
- lnk: (this.#T.at(0)?.o[":link"] ?? "") + " " + s,
21673
+ lnk: (this.#E.at(0)?.o[":link"] ?? "") + " " + s,
21674
21674
  curpos: s
21675
21675
  };
21676
21676
  }
21677
21677
  #W = 0;
21678
21678
  #B = !0;
21679
21679
  #U = [];
21680
- #T = [];
21680
+ #E = [];
21681
21681
  #Z(t) {
21682
- this.#T.push({
21682
+ this.#E.push({
21683
21683
  o: t,
21684
- r_align: this.#P,
21684
+ r_align: this.#S,
21685
21685
  ch_in_style: this.#k,
21686
21686
  ch_out_style: this.#j
21687
- }), "r_align" in t && (this.#P = t.r_align), this.#A(t), this.#F(t);
21687
+ }), "r_align" in t && (this.#S = t.r_align), this.#A(t), this.#F(t);
21688
21688
  }
21689
21689
  #Y() {
21690
- const t = this.#T.pop();
21691
- t && (this.#P = t.r_align, this.#A({ in_style: t.ch_in_style }), this.#F({ out_style: t.ch_out_style }));
21690
+ const t = this.#E.pop();
21691
+ t && (this.#S = t.r_align, this.#A({ in_style: t.ch_in_style }), this.#F({ out_style: t.ch_out_style }));
21692
21692
  }
21693
21693
  #N(t) {
21694
- const e = this.#T.at(-1);
21694
+ const e = this.#E.at(-1);
21695
21695
  if (!e) {
21696
21696
  this.#Z(t);
21697
21697
  return;
21698
21698
  }
21699
- e.o = { ...e.o, ...t }, !t.style && !t.r_style && (e.o.style = "", e.o.r_style = ""), "r_align" in t && (this.#P = t.r_align), this.#A(t), this.#F(t);
21699
+ e.o = { ...e.o, ...t }, !t.style && !t.r_style && (e.o.style = "", e.o.r_style = ""), "r_align" in t && (this.#S = t.r_align), this.#A(t), this.#F(t);
21700
21700
  }
21701
21701
  click = () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : this.#o.skipChIn();
21702
21702
  clearText() {
@@ -21717,23 +21717,23 @@ text-combine-upright: all;
21717
21717
  this.spLay.interactiveChildren = t;
21718
21718
  }
21719
21719
  addButton = (t) => new Promise((e) => {
21720
- t.key = `btn=[${this.#O.children.length}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), W(t, "hint_tate", this.#o.tategaki);
21720
+ t.key = `btn=[${this.#P.children.length}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), W(t, "hint_tate", this.#o.tategaki);
21721
21721
  const i = new Ne(t, it.#l, () => e(), () => this.canFocus());
21722
- i.name = JSON.stringify(t).replaceAll('"', "'"), this.#O.addChild(i);
21722
+ i.name = JSON.stringify(t).replaceAll('"', "'"), this.#P.addChild(i);
21723
21723
  });
21724
21724
  canFocus() {
21725
21725
  return (this.spLay.interactiveChildren ?? !1) && this.spLay.visible && it.#i(this);
21726
21726
  }
21727
21727
  clearLay(t) {
21728
21728
  super.clearLay(t), this.clearText();
21729
- for (const e of this.#O.removeChildren())
21729
+ for (const e of this.#P.removeChildren())
21730
21730
  e.destroy();
21731
21731
  }
21732
21732
  record = () => ({
21733
21733
  ...super.record(),
21734
21734
  enabled: this.enabled,
21735
21735
  r_cssText: this.#_.style.cssText,
21736
- r_align: this.#P,
21736
+ r_align: this.#S,
21737
21737
  // バック
21738
21738
  b_do: this.#f === void 0 ? void 0 : this.#f instanceof Vt ? "Sprite" : "Graphics",
21739
21739
  b_pic: this.#x,
@@ -21743,10 +21743,10 @@ text-combine-upright: all;
21743
21743
  ffs: this.#w,
21744
21744
  txs: this.#o.record(),
21745
21745
  strNoFFS: this.#D,
21746
- btns: this.#O.children.map((t) => t.name)
21746
+ btns: this.#P.children.map((t) => t.name)
21747
21747
  });
21748
21748
  playback(t, e) {
21749
- super.playback(t, e), this.enabled = t.enabled, this.#_.style.cssText = t.r_cssText, this.#P = t.r_align, this.cvsResize(), this.#C(t), this.#o.playback(t.txs), this.#c = t.b_alpha, this.#v = t.b_alpha_isfixed, e.push(new Promise((n) => {
21749
+ super.playback(t, e), this.enabled = t.enabled, this.#_.style.cssText = t.r_cssText, this.#S = t.r_align, this.cvsResize(), this.#C(t), this.#o.playback(t.txs), this.#c = t.b_alpha, this.#v = t.b_alpha_isfixed, e.push(new Promise((n) => {
21750
21750
  const s = t.b_do ? t.b_do === "Sprite" ? { b_pic: t.b_pic } : { b_color: t.b_color } : { b_pic: "" };
21751
21751
  s.b_alpha = t.b_alpha, s.b_alpha_isfixed = t.b_alpha_isfixed, this.#z(s, (o) => {
21752
21752
  o && n();
@@ -21766,18 +21766,18 @@ text-combine-upright: all;
21766
21766
  }
21767
21767
  makeDesignCastChildren(t) {
21768
21768
  if (this.spLay.visible)
21769
- for (const e of this.#O.children)
21769
+ for (const e of this.#P.children)
21770
21770
  e.makeDesignCast(t);
21771
21771
  }
21772
21772
  showDesignCast() {
21773
21773
  this.#o.showDesignCast();
21774
21774
  }
21775
21775
  showDesignCastChildren() {
21776
- for (const t of this.#O.children)
21776
+ for (const t of this.#P.children)
21777
21777
  t.showDesignCast();
21778
21778
  }
21779
21779
  dump() {
21780
- return this.#M("", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${this.#o.dump()}, "b_pic":"${this.#x}", "b_color":"${this.#p}", "b_alpha":${this.#c}, "b_alpha_isfixed":"${this.#v}", "width":${this.#o.getWidth}, "height":${this.#o.getHeight}, "pixi_obj":[${this.spLay.children.map((t) => `{"class":"${t instanceof Vt ? "Sprite" : t instanceof Se ? "Graphics" : t instanceof Rt ? "Container" : "?"}", "name":"${t.name}", "alpha":${t.alpha}, "x":${t.x}, "y":${t.y}, "visible":"${t.visible}"}`).join(",")}], "button":[${this.#O.children.map((t) => t.children[0].name ?? "{}").join(",")}]`;
21780
+ return this.#M("", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${this.#o.dump()}, "b_pic":"${this.#x}", "b_color":"${this.#p}", "b_alpha":${this.#c}, "b_alpha_isfixed":"${this.#v}", "width":${this.#o.getWidth}, "height":${this.#o.getHeight}, "pixi_obj":[${this.spLay.children.map((t) => `{"class":"${t instanceof Vt ? "Sprite" : t instanceof Se ? "Graphics" : t instanceof Rt ? "Container" : "?"}", "name":"${t.name}", "alpha":${t.alpha}, "x":${t.x}, "y":${t.y}, "visible":"${t.visible}"}`).join(",")}], "button":[${this.#P.children.map((t) => t.children[0].name ?? "{}").join(",")}]`;
21781
21781
  }
21782
21782
  }
21783
21783
  class Re {
@@ -22023,7 +22023,7 @@ class Ci {
22023
22023
  }, 1e3 / 60 * 10));
22024
22024
  }, { passive: !0 });
22025
22025
  }
22026
- a.cvsResize(), it.init(t, e, n, this, (p) => this.#o[p.layname].fore === p, i), He.init(s, t, i, a, h, n), Re.init(t, a, s), Ne.init(t), this.#r = new Re(t, e, i, n, s, a), a.hFactoryCls.grp = () => new He(), a.hFactoryCls.txt = () => new it(), e.loadplugin = (p) => this.#f(p), e.snapshot = (p) => this.#v(p), e.add_lay = (p) => this.#x(p), e.clear_lay = (p) => this.#k(p), e.finish_trans = () => X.finish_trans(), e.lay = (p) => this.#O(p), e.trans = (p) => this.#D(p), e.wt = (p) => X.wt(p), e.quake = (p) => this.#X(p), e.stop_quake = e.finish_trans, e.wq = (p) => e.wt(p), e.pause_tsy = (p) => X.pause_tsy(p), e.resume_tsy = (p) => X.resume_tsy(p), e.stop_tsy = (p) => X.stop_tsy(p), e.tsy = (p) => this.#L(p), e.wait_tsy = (p) => X.wait_tsy(p), e.ch = (p) => this.#q(p), e.clear_text = (p) => this.#K(p), e.current = (p) => this.#B(p), e.endlink = (p) => this.#tt(p), e.er = (p) => this.#nt(p), e.graph = (p) => this.#G(p), e.link = (p) => this.#st(p), e.r = (p) => this.#et(p), e.rec_ch = (p) => this.#it(p), e.rec_r = (p) => this.#ot(p), e.reset_rec = (p) => this.#at(p), e.ruby2 = (p) => this.#ht(p), e.span = (p) => this.#J(p), e.tcy = (p) => this.#rt(p), e.add_face = (p) => Y.add_face(p), e.wv = (p) => Y.wv(p), e.dump_lay = (p) => this.#lt(p), e.enable_event = (p) => this.#ut(p), e.button = (p) => this.#ct(p), t.existsBreakline && (this.breakLine = (p) => {
22026
+ a.cvsResize(), it.init(t, e, n, this, (p) => this.#o[p.layname].fore === p, i), He.init(s, t, i, a, h, n), Re.init(t, a, s), Ne.init(t), this.#r = new Re(t, e, i, n, s, a), a.hFactoryCls.grp = () => new He(), a.hFactoryCls.txt = () => new it(), e.loadplugin = (p) => this.#f(p), e.snapshot = (p) => this.#v(p), e.add_lay = (p) => this.#x(p), e.clear_lay = (p) => this.#k(p), e.finish_trans = () => X.finish_trans(), e.lay = (p) => this.#P(p), e.trans = (p) => this.#D(p), e.wt = (p) => X.wt(p), e.quake = (p) => this.#X(p), e.stop_quake = e.finish_trans, e.wq = (p) => e.wt(p), e.pause_tsy = (p) => X.pause_tsy(p), e.resume_tsy = (p) => X.resume_tsy(p), e.stop_tsy = (p) => X.stop_tsy(p), e.tsy = (p) => this.#L(p), e.wait_tsy = (p) => X.wait_tsy(p), e.ch = (p) => this.#q(p), e.clear_text = (p) => this.#K(p), e.current = (p) => this.#B(p), e.endlink = (p) => this.#tt(p), e.er = (p) => this.#nt(p), e.graph = (p) => this.#G(p), e.link = (p) => this.#st(p), e.r = (p) => this.#et(p), e.rec_ch = (p) => this.#it(p), e.rec_r = (p) => this.#ot(p), e.reset_rec = (p) => this.#at(p), e.ruby2 = (p) => this.#ht(p), e.span = (p) => this.#J(p), e.tcy = (p) => this.#rt(p), e.add_face = (p) => Y.add_face(p), e.wv = (p) => Y.wv(p), e.dump_lay = (p) => this.#lt(p), e.enable_event = (p) => this.#ut(p), e.button = (p) => this.#ct(p), t.existsBreakline && (this.breakLine = (p) => {
22027
22027
  delete p.visible, p.id = "break", p.pic = "breakline";
22028
22028
  const v = encodeURIComponent(JSON.stringify(p));
22029
22029
  this.#c("grp|" + v);
@@ -22215,7 +22215,7 @@ class Ci {
22215
22215
  // 最適化用
22216
22216
  #_ = "";
22217
22217
  #g = "";
22218
- #O(t) {
22218
+ #P(t) {
22219
22219
  const e = this.#Y(t), i = this.#o[e], n = i.back.spLay, s = i.fore.spLay;
22220
22220
  if (W(t, "float", !1))
22221
22221
  this.#i.setChildIndex(n, this.#i.children.length - 1), this.#e.setChildIndex(s, this.#e.children.length - 1), this.#A();
@@ -22235,7 +22235,7 @@ class Ci {
22235
22235
  return t[":id_tag"] = i.fore.name.slice(0, -7), this.scrItr.recodeDesign(t), i.lay(t);
22236
22236
  }
22237
22237
  #A() {
22238
- this.#y = this.#P();
22238
+ this.#y = this.#S();
22239
22239
  }
22240
22240
  // レイヤ設定の消去
22241
22241
  #k(t) {
@@ -22244,7 +22244,7 @@ class Ci {
22244
22244
  t.page === "both" ? (i.fore.clearLay(t), i.back.clearLay(t)) : i.getPage(t).clearLay(t);
22245
22245
  }), !1;
22246
22246
  }
22247
- #S = `
22247
+ #T = `
22248
22248
  precision mediump float;
22249
22249
 
22250
22250
  varying vec2 vTextureCoord;
@@ -22280,12 +22280,12 @@ void main(void) {
22280
22280
  vague: 0,
22281
22281
  tick: 0
22282
22282
  };
22283
- #j = new Ze(void 0, this.#S, this.#F);
22284
- #E = Ae.create({
22283
+ #j = new Ze(void 0, this.#T, this.#F);
22284
+ #O = Ae.create({
22285
22285
  width: R.stageW,
22286
22286
  height: R.stageH
22287
22287
  });
22288
- #z = new Vt(this.#E);
22288
+ #z = new Vt(this.#O);
22289
22289
  #C = Ae.create({
22290
22290
  width: R.stageW,
22291
22291
  height: R.stageH
@@ -22305,11 +22305,11 @@ void main(void) {
22305
22305
  const y = this.#o[v][i[v] ? "back" : "fore"];
22306
22306
  this.#I.push(y.spLay), s.push(y);
22307
22307
  }
22308
- this.#E.resize(R.stageW, R.stageH), this.appPixi.renderer.render(this.#i, { renderTexture: this.#E });
22308
+ this.#O.resize(R.stageW, R.stageH), this.appPixi.renderer.render(this.#i, { renderTexture: this.#O });
22309
22309
  let o = () => {
22310
22310
  this.#i.visible = !0;
22311
22311
  for (const v of this.#I)
22312
- this.appPixi.renderer.render(v, { renderTexture: this.#E, clear: !1 });
22312
+ this.appPixi.renderer.render(v, { renderTexture: this.#O, clear: !1 });
22313
22313
  this.#i.visible = !1;
22314
22314
  };
22315
22315
  if (!s.some((v) => v.containMovement)) {
@@ -22384,7 +22384,7 @@ void main(void) {
22384
22384
  }
22385
22385
  return i;
22386
22386
  }
22387
- #P(t = "") {
22387
+ #S(t = "") {
22388
22388
  return this.#b(t).sort((e, i) => {
22389
22389
  const n = this.#e.getChildIndex(this.#o[e].fore.spLay), s = this.#e.getChildIndex(this.#o[i].fore.spLay);
22390
22390
  return n < s ? -1 : n > s ? 1 : 0;
@@ -22476,7 +22476,7 @@ void main(void) {
22476
22476
  const { layer: e } = t;
22477
22477
  if (!e)
22478
22478
  throw "[current] layerは必須です";
22479
- if (this.#T = this.#o[e], !(this.#T.getPage(t) instanceof it))
22479
+ if (this.#E = this.#o[e], !(this.#E.getPage(t) instanceof it))
22480
22480
  throw `${e}はTxtLayerではありません`;
22481
22481
  this.recPagebreak(), this.#_ = e, this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
22482
22482
  for (const i of this.#b()) {
@@ -22489,9 +22489,9 @@ void main(void) {
22489
22489
  return this.#Z(), this.currentTxtlayFore;
22490
22490
  }
22491
22491
  get currentTxtlayFore() {
22492
- return this.#T ? this.#T.fore : null;
22492
+ return this.#E ? this.#E.fore : null;
22493
22493
  }
22494
- #T;
22494
+ #E;
22495
22495
  // カレントテキストレイヤ
22496
22496
  #Z = () => {
22497
22497
  throw "文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい";
@@ -22527,7 +22527,7 @@ void main(void) {
22527
22527
  }
22528
22528
  // ページ両面の文字消去
22529
22529
  #nt(t) {
22530
- return W(t, "rec_page_break", !0) && this.recPagebreak(), this.#T && (this.#T.fore.clearLay(t), this.#T.back.clearLay(t)), !1;
22530
+ return W(t, "rec_page_break", !0) && this.recPagebreak(), this.#E && (this.#E.fore.clearLay(t), this.#E.back.clearLay(t)), !1;
22531
22531
  }
22532
22532
  // インライン画像表示
22533
22533
  #G(t) {
@@ -24471,7 +24471,7 @@ class xe {
24471
24471
  constructor(t, e, i, n, s, o, a, h, l) {
24472
24472
  this.cfg = t, this.hTag = e, this.main = i, this.val = n, this.alzTagArg = s, this.runAnalyze = o, this.prpPrs = a, this.sndMng = h, this.sys = l, e.let_ml = (c) => this.#F(c), e.endlet_ml = () => !1, e.dump_stack = () => this.#j(), e.dump_script = (c) => this.#z(c), e.else = // その他ifブロック開始
24473
24473
  e.elsif = // 別条件のifブロック開始
24474
- e.endif = () => this.#H(), e.if = (c) => this.#P(c), e.call = (c) => this.#X(c), e.jump = (c) => this.#M(c), e.pop_stack = (c) => this.#q(c), e.return = (c) => this.#R(c), e.bracket2macro = (c) => this.#lt(c), e.char2macro = (c) => this.#ut(c), e.endmacro = (c) => this.#R(c), e.macro = (c) => this.#pt(c), e.load = (c) => this.#vt(c), e.reload_script = (c) => this.#mt(c), e.record_place = () => this.#yt(), e.save = (c) => this.#_t(c), t.oCfg.debug.token && (this.#Y = (c) => console.log(`🌱 トークン fn:${this.#e} idx:${this.#i} ln:${this.#r} token【${c}】`)), n.defTmp("const.sn.aIfStk.length", () => this.#b.length), n.defTmp("const.sn.vctCallStk.length", () => this.#s.length);
24474
+ e.endif = () => this.#H(), e.if = (c) => this.#S(c), e.call = (c) => this.#X(c), e.jump = (c) => this.#M(c), e.pop_stack = (c) => this.#q(c), e.return = (c) => this.#R(c), e.bracket2macro = (c) => this.#lt(c), e.char2macro = (c) => this.#ut(c), e.endmacro = (c) => this.#R(c), e.macro = (c) => this.#pt(c), e.load = (c) => this.#vt(c), e.reload_script = (c) => this.#mt(c), e.record_place = () => this.#yt(), e.save = (c) => this.#_t(c), t.oCfg.debug.token && (this.#Y = (c) => console.log(`🌱 トークン fn:${this.#e} idx:${this.#i} ln:${this.#r} token【${c}】`)), n.defTmp("const.sn.aIfStk.length", () => this.#b.length), n.defTmp("const.sn.vctCallStk.length", () => this.#s.length);
24475
24475
  const u = t.oCfg.init.escape;
24476
24476
  if (this.#n.setEscape(u), Ve.setEscape(u), R.isDbg) {
24477
24477
  l.addHook((f, d) => this.#l[f]?.(d)), this.isBreak = this.#_;
@@ -24523,7 +24523,7 @@ class xe {
24523
24523
  }
24524
24524
  addLineNum = (t) => this.#r += t;
24525
24525
  jumpJustBefore() {
24526
- this.#T(this.#e, "", --this.#i);
24526
+ this.#E(this.#e, "", --this.#i);
24527
24527
  }
24528
24528
  // 直前にジャンプ
24529
24529
  #s = [];
@@ -24556,7 +24556,7 @@ class xe {
24556
24556
  this.sys.send2Dbg(t.ri, {});
24557
24557
  },
24558
24558
  // 情報問い合わせ系
24559
- stack: (t) => this.sys.send2Dbg(t.ri, { a: this.#O() }),
24559
+ stack: (t) => this.sys.send2Dbg(t.ri, { a: this.#P() }),
24560
24560
  eval: (t) => {
24561
24561
  this.sys.send2Dbg(t.ri, { v: this.prpPrs.parse(t.txt) });
24562
24562
  },
@@ -24653,15 +24653,15 @@ class xe {
24653
24653
  const t = xe.#x[Qn(this.#e)]?.[this.#r];
24654
24654
  t?.hitCondition && --t.hitCondition;
24655
24655
  }
24656
- #O() {
24656
+ #P() {
24657
24657
  const t = this.#y === 3 ? 1 : 0, e = this.#t.aToken[this.#i - 1 + t], i = this.#u(this.#e), n = rs(e), s = n ? `[${n}]` : e, o = this.val.getVal("mp:const.sn.macro") ?? "{}";
24658
24658
  if (this.#i === 0)
24659
24659
  return [{ fn: i, ln: 1, col: 1, nm: s, ma: o }];
24660
- const a = this.#E(this.#t, this.#i), h = [{ fn: i, ln: a.ln, col: a.col_s + 1, nm: s, ma: o }], l = this.#s.length;
24660
+ const a = this.#O(this.#t, this.#i), h = [{ fn: i, ln: a.ln, col: a.col_s + 1, nm: s, ma: o }], l = this.#s.length;
24661
24661
  if (l === 0)
24662
24662
  return h;
24663
24663
  for (let u = l - 1; u >= 0; --u) {
24664
- const c = this.#s[u], f = this.#G[c.fn], d = f.aToken[c.idx - 1], m = this.#E(f, c.idx), p = rs(d);
24664
+ const c = this.#s[u], f = this.#G[c.fn], d = f.aToken[c.idx - 1], m = this.#O(f, c.idx), p = rs(d);
24665
24665
  h.push({
24666
24666
  fn: this.#u(c.fn),
24667
24667
  ln: m.ln,
@@ -24720,9 +24720,9 @@ class xe {
24720
24720
  return n(o);
24721
24721
  }
24722
24722
  #k;
24723
- #S;
24723
+ #T;
24724
24724
  setOtherObj(t, e) {
24725
- this.#k = t, this.#S = e;
24725
+ this.#k = t, this.#T = e;
24726
24726
  }
24727
24727
  // // 変数操作
24728
24728
  // インラインテキスト代入
@@ -24741,13 +24741,13 @@ class xe {
24741
24741
  #j() {
24742
24742
  if (this.#i === 0)
24743
24743
  return console.group(`🥟 [dump_stack] スクリプト現在地 fn:${this.#e} line:1 col:0`), console.groupEnd(), !1;
24744
- const t = this.#E(this.#t, this.#i), e = `スクリプト現在地 fn:${this.#e} line:${t.ln} col:${t.col_s + 1}`;
24744
+ const t = this.#O(this.#t, this.#i), e = `スクリプト現在地 fn:${this.#e} line:${t.ln} col:${t.col_s + 1}`;
24745
24745
  console.group(`🥟 [dump_stack] ${e}`);
24746
24746
  const i = this.#s.length;
24747
24747
  if (i > 0) {
24748
24748
  console.info(e);
24749
24749
  for (let n = i - 1; n >= 0; --n) {
24750
- const s = this.#s[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, h = s.csArg[":タグ名"] ?? "", l = this.#E(this.#G[s.fn], s.idx);
24750
+ const s = this.#s[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, h = s.csArg[":タグ名"] ?? "", l = this.#O(this.#G[s.fn], s.idx);
24751
24751
  console.info(
24752
24752
  `${i - n}つ前のコール元 fn:${s.fn} line:${l.ln} col:${l.col_s + 1}` + (a ? "([" + a + "]マクロ内)" : " ") + `で [${h} ...]をコール`
24753
24753
  );
@@ -24755,7 +24755,7 @@ class xe {
24755
24755
  }
24756
24756
  return console.groupEnd(), !1;
24757
24757
  }
24758
- #E(t, e) {
24758
+ #O(t, e) {
24759
24759
  const i = { ln: 1, col_s: 0, col_e: 0 };
24760
24760
  if (!t)
24761
24761
  return i;
@@ -24817,7 +24817,7 @@ class xe {
24817
24817
  const e = t.split(`
24818
24818
  `).slice(-this.#$), i = e.length;
24819
24819
  console.group(`🥟 Error line (from ${i} rows before) fn:${this.#e}`);
24820
- const n = String(this.#r).length, s = this.#E(this.#t, this.#i);
24820
+ const n = String(this.#r).length, s = this.#O(this.#t, this.#i);
24821
24821
  for (let o = 0; o < i; ++o) {
24822
24822
  const a = this.#r - i + o + 1, h = `${String(a).padStart(n, " ")}: %c`, l = e[o], u = l.length > 75 ? l.slice(0, 75) + "…" : l;
24823
24823
  o === i - 1 ? console.info(
@@ -24836,7 +24836,7 @@ class xe {
24836
24836
  throw "ifブロック内ではありません";
24837
24837
  return this.#i = this.#b[0], this.#b.shift(), !1;
24838
24838
  }
24839
- #P(t) {
24839
+ #S(t) {
24840
24840
  const { exp: e } = t;
24841
24841
  if (!e)
24842
24842
  throw "expは必須です";
@@ -24894,14 +24894,14 @@ class xe {
24894
24894
  #X(t) {
24895
24895
  W(t, "count", !1) || this.#rt();
24896
24896
  const { fn: e } = t;
24897
- return e && this.#d(e), this.#L({ ":hEvt1Time": this.#k.popLocalEvts(), ":hMp": this.val.cloneMp(), ":lenIfStk": this.#b.length }), W(t, "clear_local_event", !1) && this.hTag.clear_event({}), this.#T(e, t.label), !0;
24897
+ return e && this.#d(e), this.#L({ ":hEvt1Time": this.#k.popLocalEvts(), ":hMp": this.val.cloneMp(), ":lenIfStk": this.#b.length }), W(t, "clear_local_event", !1) && this.hTag.clear_event({}), this.#E(e, t.label), !0;
24898
24898
  }
24899
24899
  #L(t) {
24900
24900
  this.#t.aLNum[this.#i] = this.#r, this.#W || (t[":resvToken"] = "", this.#B()), this.#s.push(new $l(this.#e, this.#i, t)), this.#b.unshift(-1);
24901
24901
  }
24902
24902
  // シナリオジャンプ
24903
24903
  #M(t) {
24904
- return W(t, "count", !0) || this.#rt(), this.#b[0] = -1, this.#T(t.fn, t.label), !0;
24904
+ return W(t, "count", !0) || this.#rt(), this.#b[0] = -1, this.#E(t.fn, t.label), !0;
24905
24905
  }
24906
24906
  // コールスタック破棄
24907
24907
  #q(t) {
@@ -24923,14 +24923,14 @@ class xe {
24923
24923
  const s = i[":resvToken"];
24924
24924
  s ? this.nextToken = () => (this.#B(), s) : this.#B(), i[":hEvt1Time"] && this.#k.pushLocalEvts(i[":hEvt1Time"]);
24925
24925
  const { fn: o, label: a } = t;
24926
- return o || a ? (this.#T(o, a), !0) : e.fn in this.#G ? (this.#et(e), !1) : (this.#T(e.fn, "", e.idx), !0);
24926
+ return o || a ? (this.#E(o, a), !0) : e.fn in this.#G ? (this.#et(e), !1) : (this.#E(e.fn, "", e.idx), !0);
24927
24927
  }
24928
24928
  #W = "";
24929
24929
  #B() {
24930
24930
  this.#W = "", this.nextToken = this.#Z;
24931
24931
  }
24932
24932
  #U = "";
24933
- #T(t = "", e = "", i = 0) {
24933
+ #E(t = "", e = "", i = 0) {
24934
24934
  if (!t && !e && this.main.errScript("[jump系] fnまたはlabelは必須です"), e ? (e.at(0) !== "*" && this.main.errScript("[jump系] labelは*で始まります"), this.#U = e, this.#U.slice(0, 2) !== "**" && (this.#i = i)) : (this.#U = "", this.#i = i), !t) {
24935
24935
  this.analyzeInit();
24936
24936
  return;
@@ -25184,7 +25184,7 @@ class xe {
25184
25184
  return new Ke(), this.loadFromMark(t, i);
25185
25185
  }
25186
25186
  loadFromMark(t, e, i = !0) {
25187
- this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), this.#S.recPagebreak(), i && this.sndMng.playLoopFromSaveObj(), W(t, "do_rec", !0) && (this.#Q = {
25187
+ this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), this.#T.recPagebreak(), i && this.sndMng.playLoopFromSaveObj(), W(t, "do_rec", !0) && (this.#Q = {
25188
25188
  hSave: this.val.cloneSave(),
25189
25189
  hPages: { ...e.hPages },
25190
25190
  aIfStk: [...e.aIfStk]
@@ -25196,15 +25196,15 @@ class xe {
25196
25196
  };
25197
25197
  this.hTag.autowc(n);
25198
25198
  const s = String(this.val.getVal("save:const.sn.scriptFn")), o = Number(this.val.getVal("save:const.sn.scriptIdx"));
25199
- return this.#b = [...this.#Q.aIfStk], this.#s = [], this.#S.cover(!0), X.stopAllTw(), t.index ? (this.#S.playback(this.#Q.hPages, () => {
25199
+ return this.#b = [...this.#Q.aIfStk], this.#s = [], this.#T.cover(!0), X.stopAllTw(), t.index ? (this.#T.playback(this.#Q.hPages, () => {
25200
25200
  const { style: a, r_style: h } = t;
25201
- a && this.#S.currentTxtlayFore?.lay({ style: a, r_style: h }), this.#S.cover(!1), this.#T(t.fn ?? s, "", t.index);
25202
- }), !0) : (delete this.#G[s], this.#S.playback(
25201
+ a && this.#T.currentTxtlayFore?.lay({ style: a, r_style: h }), this.#T.cover(!1), this.#E(t.fn ?? s, "", t.index);
25202
+ }), !0) : (delete this.#G[s], this.#T.playback(
25203
25203
  this.#Q.hPages,
25204
25204
  "label" in t ? () => {
25205
- this.#S.cover(!1), this.#e = s, this.#i = o, this.hTag.call({ fn: t.fn, label: t.label });
25205
+ this.#T.cover(!1), this.#e = s, this.#i = o, this.hTag.call({ fn: t.fn, label: t.label });
25206
25206
  } : () => {
25207
- this.#S.cover(!1), this.#T(s, "", o);
25207
+ this.#T.cover(!1), this.#E(s, "", o);
25208
25208
  }
25209
25209
  ), !0);
25210
25210
  }
@@ -25233,7 +25233,7 @@ class xe {
25233
25233
  const { fn: t, idx: e } = this.nowScrIdx();
25234
25234
  return this.val.setVal_Nochk("save", "const.sn.scriptFn", t), this.val.setVal_Nochk("save", "const.sn.scriptIdx", e), this.#Q = {
25235
25235
  hSave: this.val.cloneSave(),
25236
- hPages: this.#S.record(),
25236
+ hPages: this.#T.record(),
25237
25237
  aIfStk: this.#b.slice(this.#s.length)
25238
25238
  }, !1;
25239
25239
  }
@@ -25270,7 +25270,7 @@ class xe {
25270
25270
  } else
25271
25271
  e = this.#e, i = this.#i;
25272
25272
  t[":path"] = this.#u(e);
25273
- const s = this.#E(this.#G[e], i);
25273
+ const s = this.#O(this.#G[e], i);
25274
25274
  t[":ln"] = s.ln, t[":col_s"] = s.col_s, t[":col_e"] = s.col_e;
25275
25275
  const o = i - 1;
25276
25276
  t[":idx_tkn"] = o, t[":token"] = this.#G[e].aToken[o], this.sys.send2Dbg("_recodeDesign", t);