@famibee/skynovel 1.64.22 → 1.65.0

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.
Files changed (61) hide show
  1. package/dist/CmnTween.js +921 -109
  2. package/dist/CmnTween.js.map +1 -1
  3. package/dist/EventMng.js +1 -1
  4. package/dist/EventMng.js.map +1 -1
  5. package/dist/GrpLayer.js +1 -1
  6. package/dist/LayerMng.js +43 -44
  7. package/dist/LayerMng.js.map +1 -1
  8. package/dist/Main.js.map +1 -1
  9. package/dist/RubySpliter.js +18 -15
  10. package/dist/RubySpliter.js.map +1 -1
  11. package/dist/ScriptIterator.js +1 -2
  12. package/dist/ScriptIterator.js.map +1 -1
  13. package/dist/SndBuf.js +83 -77
  14. package/dist/SndBuf.js.map +1 -1
  15. package/dist/SpritesMng.js +1 -1
  16. package/dist/TxtLayer.js +96 -97
  17. package/dist/TxtLayer.js.map +1 -1
  18. package/dist/Variable.js +1 -1
  19. package/dist/sn/CmnTween.d.ts +4 -4
  20. package/dist/sn/CmnTween.d.ts.map +1 -1
  21. package/dist/sn/FocusMng.d.ts.map +1 -1
  22. package/dist/sn/Log.d.ts.map +1 -1
  23. package/dist/sn/Main.d.ts.map +1 -1
  24. package/dist/sn/Pages.d.ts.map +1 -1
  25. package/dist/sn/Reading.d.ts +1 -0
  26. package/dist/sn/Reading.d.ts.map +1 -1
  27. package/dist/sn/RubySpliter.d.ts.map +1 -1
  28. package/dist/sn/SndBuf.d.ts.map +1 -1
  29. package/dist/sn/TxtStage.d.ts +2 -0
  30. package/dist/sn/TxtStage.d.ts.map +1 -1
  31. package/dist_app/CmnTween.js +921 -109
  32. package/dist_app/CmnTween.js.map +1 -1
  33. package/dist_app/EventMng.js +1 -1
  34. package/dist_app/EventMng.js.map +1 -1
  35. package/dist_app/GrpLayer.js +1 -1
  36. package/dist_app/LayerMng.js +2 -3
  37. package/dist_app/LayerMng.js.map +1 -1
  38. package/dist_app/Main.js.map +1 -1
  39. package/dist_app/RubySpliter.js +18 -15
  40. package/dist_app/RubySpliter.js.map +1 -1
  41. package/dist_app/ScriptIterator.js +1 -2
  42. package/dist_app/ScriptIterator.js.map +1 -1
  43. package/dist_app/SndBuf.js +83 -77
  44. package/dist_app/SndBuf.js.map +1 -1
  45. package/dist_app/SpritesMng.js +1 -1
  46. package/dist_app/TxtLayer.js +96 -97
  47. package/dist_app/TxtLayer.js.map +1 -1
  48. package/dist_app/Variable.js +1 -1
  49. package/dist_app/sn/CmnTween.d.ts +4 -4
  50. package/dist_app/sn/CmnTween.d.ts.map +1 -1
  51. package/dist_app/sn/FocusMng.d.ts.map +1 -1
  52. package/dist_app/sn/Log.d.ts.map +1 -1
  53. package/dist_app/sn/Main.d.ts.map +1 -1
  54. package/dist_app/sn/Pages.d.ts.map +1 -1
  55. package/dist_app/sn/Reading.d.ts +1 -0
  56. package/dist_app/sn/Reading.d.ts.map +1 -1
  57. package/dist_app/sn/RubySpliter.d.ts.map +1 -1
  58. package/dist_app/sn/SndBuf.d.ts.map +1 -1
  59. package/dist_app/sn/TxtStage.d.ts +2 -0
  60. package/dist_app/sn/TxtStage.d.ts.map +1 -1
  61. package/package.json +3 -3
@@ -1,14 +1,13 @@
1
- import { e as F, k as S, y as rt, D as K, o as P, a as j, R as A, G as B, x as G, N as X, z as tt, O as ot, w as V, S as et, u as M, r as ct } from "./app2.js";
2
- import { C as dt } from "./CmnTween.js";
3
- import { S as I } from "./SpritesMng.js";
4
- import { a as W, T as pt } from "./Reading.js";
5
- import { R as st } from "./RubySpliter.js";
6
- import { Button as ft } from "./Button.js";
7
- const H = "、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々", U = "[({〈「『【〔“〝", q = "─‥…", Y = H, it = new RegExp(`[${H}]`), ut = new RegExp(`[${U}]`), gt = new RegExp(`[${q}]`), _t = it;
8
- class yt {
1
+ import { e as F, k as S, y as ot, D as K, o as P, a as T, R as A, G as B, x as q, N as X, z as tt, O as ct, w as V, S as et, u as M, r as dt } from "./app2.js";
2
+ import { a as I, C as st, G as pt, T as ft } from "./CmnTween.js";
3
+ import { S as W } from "./SpritesMng.js";
4
+ import { R as it } from "./RubySpliter.js";
5
+ import { Button as ut } from "./Button.js";
6
+ const H = "、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々", G = "[({〈「『【〔“〝", U = "─‥…", Y = H, nt = new RegExp(`[${H}]`), gt = new RegExp(`[${G}]`), _t = new RegExp(`[${U}]`), yt = nt;
7
+ class mt {
9
8
  #c = H;
10
- #n = U;
11
- #r = q;
9
+ #n = G;
10
+ #r = U;
12
11
  #a = Y;
13
12
  get 行頭禁則() {
14
13
  return this.#c;
@@ -22,10 +21,10 @@ class yt {
22
21
  get ぶら下げ() {
23
22
  return this.#a;
24
23
  }
25
- #e = it;
26
- #h = ut;
27
- #p = gt;
28
- #k = _t;
24
+ #e = nt;
25
+ #h = gt;
26
+ #p = _t;
27
+ #k = yt;
29
28
  break_fixed = !1;
30
29
  break_fixed_left = 0;
31
30
  break_fixed_top = 0;
@@ -74,13 +73,13 @@ class yt {
74
73
  break_fixed_top: this.break_fixed_top,
75
74
  bura: this.bura
76
75
  };
77
- return this.#c === H && (t.行頭禁則 = this.#c), this.#n === U && (t.行末禁則 = this.#n), this.#r === q && (t.分割禁止 = this.#r), this.#a === Y && (t.ぶら下げ = this.#a), t;
76
+ return this.#c === H && (t.行頭禁則 = this.#c), this.#n === G && (t.行末禁則 = this.#n), this.#r === U && (t.分割禁止 = this.#r), this.#a === Y && (t.ぶら下げ = this.#a), t;
78
77
  }
79
78
  playback(t) {
80
79
  t && (this.#t(
81
80
  t.行頭禁則 ?? H,
82
- t.行末禁則 ?? U,
83
- t.分割禁止 ?? q,
81
+ t.行末禁則 ?? G,
82
+ t.分割禁止 ?? U,
84
83
  t.ぶら下げ ?? Y
85
84
  ), this.break_fixed = t.break_fixed, this.break_fixed_left = t.break_fixed_left, this.break_fixed_top = t.break_fixed_top, this.bura = t.bura);
86
85
  }
@@ -205,7 +204,7 @@ class yt {
205
204
  return { cont: !1, ins: a };
206
205
  }
207
206
  }
208
- function mt(Q, t, e, s, i, a = !0) {
207
+ function bt(Q, t, e, s, i, a = !0) {
209
208
  const n = {
210
209
  escape: (o) => o.replaceAll(/([.*+?^${}()|[\]/\\])/g, "\\$1"),
211
210
  mimeType: (o) => {
@@ -302,16 +301,16 @@ function mt(Q, t, e, s, i, a = !0) {
302
301
  });
303
302
  }
304
303
  function m(_, f, p, E) {
305
- return Promise.resolve(f).then((R) => p ? n.resolveUrl(R, p) : R).then(E || n.getAndEncode).then((R) => n.dataAsUrl(R, n.mimeType(f))).then((R) => _.replace(T(f), "$1" + R + "$3"));
306
- function T(R) {
304
+ return Promise.resolve(f).then((R) => p ? n.resolveUrl(R, p) : R).then(E || n.getAndEncode).then((R) => n.dataAsUrl(R, n.mimeType(f))).then((R) => _.replace(j(f), "$1" + R + "$3"));
305
+ function j(R) {
307
306
  return new RegExp(`(url\\(['"]?)(` + n.escape(R) + `)(['"]?\\))`, "g");
308
307
  }
309
308
  }
310
309
  function v(_, f, p) {
311
310
  if (E()) return Promise.resolve(_);
312
- return Promise.resolve(_).then(u).then((T) => {
311
+ return Promise.resolve(_).then(u).then((j) => {
313
312
  let R = Promise.resolve(_);
314
- for (const J of T) R = R.then((O) => m(O, J, f, p));
313
+ for (const J of j) R = R.then((O) => m(O, J, f, p));
315
314
  return R;
316
315
  });
317
316
  function E() {
@@ -371,13 +370,13 @@ function mt(Q, t, e, s, i, a = !0) {
371
370
  });
372
371
  }).then((o) => new Promise((d) => setTimeout(() => d(o), 100))).then((o) => {
373
372
  const d = document.createElement("canvas");
374
- d.width = e.$width, d.height = e.$height, d.getContext("2d").drawImage(o, 0, 0), Q(rt.from(d));
373
+ d.width = e.$width, d.height = e.$height, d.getContext("2d").drawImage(o, 0, 0), Q(ot.from(d));
375
374
  }).catch((o) => K.myTrace(`goTxt() = ${String(o)}`));
376
375
  }
377
376
  class c extends P {
378
377
  constructor(t, e, s) {
379
378
  super(), this.ctn = t, this.canFocus = e, this.sys = s, this.#e.classList.add("sn_tx"), this.#e.style.position = "absolute", c.#n.view.parentElement.appendChild(this.#e), this.addChild(this.#h), this.addChild(this.#p), this.#p.name = "grpDbgMasume";
380
- const i = j.debugLog ? ({ ch: a, rect: { x: n, y: l, width: h, height: r } }) => console.log(`🍌 masume ch:${a} x:${String(n)} y:${String(l)} w:${String(h)} h:${String(r)}`) : () => {
379
+ const i = T.debugLog ? ({ ch: a, rect: { x: n, y: l, width: h, height: r } }) => console.log(`🍌 masume ch:${a} x:${String(n)} y:${String(l)} w:${String(h)} h:${String(r)}`) : () => {
381
380
  };
382
381
  this.#g = c.#c.oCfg.debug.masume ? (a) => {
383
382
  i(a);
@@ -385,7 +384,7 @@ class c extends P {
385
384
  this.#p.beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(n, l, h, r).endFill();
386
385
  } : () => {
387
386
  }, this.noticeCompTxt = s.isApp && c.#c.oCfg.debug.dumpHtm ? () => {
388
- W.notifyEndProc(A);
387
+ I.notifyEndProc(A);
389
388
  const a = this.#e.innerHTML;
390
389
  if (a === "") return;
391
390
  const { fn: n, ln: l } = c.#a.nowScrFnLn(), h = `dumpHtm ${t.name.slice(0, -7).replaceAll(":", "=")}(fn=${n} line=${String(l)})`;
@@ -397,13 +396,14 @@ $1
397
396
  `).replaceAll(/<(br|\/span)>/g, `<$1>
398
397
  `)}`
399
398
  );
400
- } : () => W.notifyEndProc(A);
399
+ } : () => I.notifyEndProc(A);
401
400
  }
402
401
  static #c;
403
402
  static #n;
404
403
  static init(t, e) {
405
- c.#c = t, c.#n = e;
404
+ c.#c = t, c.#n = e, st.addGrp(c.grp);
406
405
  }
406
+ static grp = new pt();
407
407
  static #r;
408
408
  static #a;
409
409
  static setEvtMng(t, e) {
@@ -428,7 +428,7 @@ $1
428
428
  "margin-right": 0,
429
429
  "margin-top": 0
430
430
  };
431
- #l = new yt();
431
+ #l = new mt();
432
432
  noticeCompTxt = () => {
433
433
  };
434
434
  #g;
@@ -514,24 +514,24 @@ $1
514
514
  }
515
515
  #v = [];
516
516
  #y = 0;
517
- static #U = "<span class='sn_ch sn_ch_last'>&emsp;</span>";
517
+ static #G = "<span class='sn_ch sn_ch_last'>&emsp;</span>";
518
518
  #m(t, e) {
519
519
  c.#O.visible = !1;
520
520
  let s = this.#v.length, i = "";
521
521
  if (s === 0) {
522
- if (c.#c.oCfg.debug.masume && (j.debugLog && console.log(`🍌 masume ${this.name} v:${String(this.visible)} l:${String(this.x)} t:${String(this.y)} a:${String(this.alpha)} pl:${String(this.#t.pad_left)} pr:${String(this.#t.pad_right)} pt:${String(this.#t.pad_top)} pb:${String(this.#t.pad_bottom)} w:${String(this.#t.$width)} h:${String(this.#t.$height)}`), this.#p.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#t.pad_left, -this.#t.pad_top, this.#t.$width, this.#t.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
522
+ if (c.#c.oCfg.debug.masume && (T.debugLog && console.log(`🍌 masume ${this.name} v:${String(this.visible)} l:${String(this.x)} t:${String(this.y)} a:${String(this.alpha)} pl:${String(this.#t.pad_left)} pr:${String(this.#t.pad_right)} pt:${String(this.#t.pad_top)} pb:${String(this.#t.pad_bottom)} w:${String(this.#t.$width)} h:${String(this.#t.$height)}`), this.#p.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#t.pad_left, -this.#t.pad_top, this.#t.$width, this.#t.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
523
523
  0,
524
524
  0,
525
525
  this.#t.$width - this.#t.pad_left - this.#t.pad_right,
526
526
  this.#t.$height - this.#t.pad_top - this.#t.pad_bottom
527
- ).endFill()), this.#e.innerHTML = [...t].join("").replaceAll(/[\n\t]/g, "") + c.#U, !this.#l.break_fixed) {
527
+ ).endFill()), this.#e.innerHTML = [...t].join("").replaceAll(/[\n\t]/g, "") + c.#G, !this.#l.break_fixed) {
528
528
  const g = globalThis.getComputedStyle(this.#e), $ = parseFloat(g.fontSize);
529
529
  this.#f ? (this.#l.break_fixed_left = (this.#t.$width - this.#t.pad_left - this.#t.pad_right - $ * 1.5) * this.sys.cvsScale, this.#l.break_fixed_top = 0) : (this.#l.break_fixed_left = 0, this.#l.break_fixed_top = $ / 2 * this.sys.cvsScale);
530
530
  }
531
531
  } else
532
532
  i = this.#e.innerHTML, --s, this.#e.getElementsByClassName("sn_ch_last").item(0)?.remove(), this.#e.querySelectorAll(":scope > br").forEach((g) => g.remove()), this.#e.insertAdjacentHTML(
533
533
  "beforeend",
534
- t.slice(this.#y).join("").replaceAll(/[\n\t]/g, "") + c.#U
534
+ t.slice(this.#y).join("").replaceAll(/[\n\t]/g, "") + c.#G
535
535
  // 末尾改行削除挙動対策
536
536
  );
537
537
  this.#e.querySelectorAll(".sn_ch:has(> ruby)").forEach((g) => {
@@ -562,34 +562,34 @@ $1
562
562
  }
563
563
  const [b, y] = this.#l.hyph(this.#e, r, this.#f, s, i);
564
564
  this.#v = b;
565
- const w = dt.ease(this.#C);
565
+ const w = st.ease(this.#C);
566
566
  for (let g = s; g < y; ++g) {
567
567
  const $ = this.#v[g], { elm: { dataset: o, parentElement: d }, rect: u } = $, m = JSON.parse(o.arg ?? '{"delay": 0}'), v = JSON.parse(o.add ?? "{}"), _ = c.#$[v.ch_in_style];
568
568
  if (this.#g($), o.cmd === "grp") {
569
569
  const f = new P();
570
- this.#h.addChild(f), new I(m.pic, f, (p) => {
570
+ this.#h.addChild(f), new W(m.pic, f, (p) => {
571
571
  this.#B(f, m, v, u, w, _ ?? {}), f.parent || f.removeChild(p);
572
572
  });
573
573
  }
574
574
  if (o.lnk) {
575
575
  const f = d.closest("[data-arg]"), p = JSON.parse(f.dataset.arg ?? "{}");
576
576
  p.key = `lnk=[${String(g)}] ` + this.name;
577
- const E = new G();
577
+ const E = new q();
578
578
  this.#B(E, p, v, u, w, _ ?? {});
579
- const T = p.style ?? "", R = T + (p.style_hover ?? ""), J = T + (p.style_clicked ?? ""), O = p.r_style ?? "", nt = O + (p.r_style_hover ?? ""), at = O + (p.r_style_clicked ?? ""), Z = Array.from(f.getElementsByTagName("rt"));
579
+ const j = p.style ?? "", R = j + (p.style_hover ?? ""), J = j + (p.style_clicked ?? ""), O = p.r_style ?? "", at = O + (p.r_style_hover ?? ""), ht = O + (p.r_style_clicked ?? ""), Z = Array.from(f.getElementsByTagName("rt"));
580
580
  for (const z of Z) z.dataset.st_r_bk = z.style.cssText;
581
- const ht = f.style.cssText, D = (z, lt) => {
582
- f.style.cssText = ht + z;
583
- for (const L of Z) L.style.cssText = L.dataset.st_r_bk + lt;
581
+ const lt = f.style.cssText, D = (z, rt) => {
582
+ f.style.cssText = lt + z;
583
+ for (const L of Z) L.style.cssText = L.dataset.st_r_bk + rt;
584
584
  };
585
585
  F(p, "enabled", !0) ? c.#r.button(
586
586
  p,
587
587
  E,
588
- () => D(T, O),
589
- () => this.canFocus() ? (D(R, nt), !0) : !1,
590
- () => D(J, at)
588
+ () => D(j, O),
589
+ () => this.canFocus() ? (D(R, at), !0) : !1,
590
+ () => D(J, ht)
591
591
  ) : D(
592
- T + (p.style_disable ?? "color: gray;"),
592
+ j + (p.style_disable ?? "color: gray;"),
593
593
  O + (p.r_style_disable ?? "color: gray;")
594
594
  ), this.#h.addChild(E);
595
595
  }
@@ -633,13 +633,12 @@ $1
633
633
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
634
634
  n.y.startsWith("=") ? i.y + t.height * n.ny : n.ny
635
635
  ) : t.position.set(i.x, i.y);
636
- const l = {
637
- sp: t,
638
- tw: new pt(t).to({ alpha: 1, x: i.x, y: i.y, width: i.width, height: i.height, angle: 0 }, n.wait ?? 0).easing(a).delay((s.wait ?? 0) + (e.delay ?? 0)).onComplete(() => {
639
- l.tw = void 0;
640
- }).start()
641
- };
642
- this.#P.push(l);
636
+ const l = new ft(t).to({ alpha: 1, x: i.x, y: i.y, width: i.width, height: i.height, angle: 0 }, n.wait ?? 0).easing(a).delay((s.wait ?? 0) + (e.delay ?? 0)).onComplete(() => {
637
+ h.tw = void 0;
638
+ }).start();
639
+ c.grp.add(l);
640
+ const h = { sp: t, tw: l };
641
+ this.#P.push(h);
643
642
  }
644
643
  #P = [];
645
644
  skipChIn() {
@@ -722,11 +721,11 @@ $1
722
721
  };
723
722
  }
724
723
  static #O = new P();
725
- static #H = new I();
724
+ static #H = new W();
726
725
  dispBreak(t) {
727
726
  c.delBreak();
728
727
  const e = c.#O;
729
- e.visible = !1, this.addChild(e), c.#H.destroy(), c.#H = new I(t.pic, e, (s) => {
728
+ e.visible = !1, this.addChild(e), c.#H.destroy(), c.#H = new W(t.pic, e, (s) => {
730
729
  e.parent ? (s.x = S(t, "x", 0), s.y = S(t, "y", 0), s.width = S(t, "width", this.#t.fontsize), s.height = S(t, "height", this.#t.fontsize)) : e.removeChild(s);
731
730
  });
732
731
  }
@@ -810,8 +809,8 @@ $1
810
809
  }
811
810
  #d = void 0;
812
811
  snapshot(t, e) {
813
- mt((s) => {
814
- this.#d = G.from(s), this.#f && (this.#d.x += j.stageW - (this.#o + this.#t.$width)), this.#d.y -= this.#b, this.#d.texture.frame = new X(
812
+ bt((s) => {
813
+ this.#d = q.from(s), this.#f && (this.#d.x += T.stageW - (this.#o + this.#t.$width)), this.#d.y -= this.#b, this.#d.texture.frame = new X(
815
814
  0,
816
815
  0,
817
816
  Math.min(this.#d.width, this.#t.$width - this.#o),
@@ -846,7 +845,7 @@ class k extends tt {
846
845
  static #r;
847
846
  static #a;
848
847
  static init(t, e, s, i, a, n) {
849
- this.#c = t, c.init(t, n), this.#n = s, this.#a = i, this.#r = a, s.setDoRecProc((l) => this.chgDoRec(l)), e.autowc = (l) => this.#u(l), e.autowc({ enabled: !1, text: "", time: 0 }), e.ch_in_style = (l) => this.#e(l), e.ch_out_style = (l) => this.#h(l), c.initChStyle(), ot(), V(
848
+ this.#c = t, c.init(t, n), this.#n = s, this.#a = i, this.#r = a, s.setDoRecProc((l) => this.chgDoRec(l)), e.autowc = (l) => this.#u(l), e.autowc({ enabled: !1, text: "", time: 0 }), e.ch_in_style = (l) => this.#e(l), e.ch_out_style = (l) => this.#h(l), c.initChStyle(), ct(), V(
850
849
  t.matchPath(".+", et.FONT).flatMap((l) => Object.values(l).map((h) => `
851
850
  @font-face {
852
851
  font-family: '${String(h)}';
@@ -963,10 +962,10 @@ class k extends tt {
963
962
  // 背景画像無し(=単色塗り)
964
963
  // 文字表示
965
964
  #s = new c(this.ctn, () => this.canFocus(), k.#l);
966
- #v = new st();
965
+ #v = new it();
967
966
  #y = document.createElement("span");
968
967
  // cssチェック・保存用
969
- static #U = {
968
+ static #G = {
970
969
  "text-align": 0,
971
970
  "text-align-last": 0,
972
971
  height: 0,
@@ -978,7 +977,7 @@ class k extends tt {
978
977
  };
979
978
  #m = new P();
980
979
  constructor() {
981
- super(), this.ctn.addChild(this.#s), this.#v.init(this.#Y), this.ctn.addChild(this.#m), this.#m.name = "cntBtn", this.lay({ style: `width: ${String(j.stageW)}px; height: ${String(j.stageH)}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${String(16)}px;`, in_style: "default", out_style: "default", back_clear: "true" });
980
+ super(), this.ctn.addChild(this.#s), this.#v.init(this.#Y), this.ctn.addChild(this.#m), this.#m.name = "cntBtn", this.lay({ style: `width: ${String(T.stageW)}px; height: ${String(T.stageH)}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${String(16)}px;`, in_style: "default", out_style: "default", back_clear: "true" });
982
981
  }
983
982
  destroy() {
984
983
  this.#i && (this.ctn.removeChild(this.#i).destroy(), this.#i = void 0), k.#a.pagebreak(), this.#s.destroy();
@@ -1006,14 +1005,14 @@ class k extends tt {
1006
1005
  this.#s.lay({ y: t });
1007
1006
  }
1008
1007
  lay(t) {
1009
- if (super.lay(t), tt.setXY(this.ctn, t, this.ctn), t[":id_tag"] = this.name_.slice(0, -7), st.setting(t), this.#H(t), this.#s.lay(t), "r_align" in t && (this.#x = t.r_align ?? ""), this.#d = j.isSafari ? this.#s.tategaki ? (i, a) => `text-align: start; height: ${String(a)}em; padding-top: ${i}; padding-bottom: ${i};` : (i, a) => `text-align: start; width: ${String(a)}em; padding-left: ${i}; padding-right: ${i};` : this.#s.tategaki ? (i) => `text-align: justify; text-align-last: justify; padding-top: ${i}; padding-bottom: ${i};` : (i) => `text-align: justify; text-align-last: justify; padding-left: ${i}; padding-right: ${i};`, j.isFirefox && (this.#q = this.#Z), "r_style" in t)
1008
+ if (super.lay(t), tt.setXY(this.ctn, t, this.ctn), t[":id_tag"] = this.name_.slice(0, -7), it.setting(t), this.#H(t), this.#s.lay(t), "r_align" in t && (this.#x = t.r_align ?? ""), this.#d = T.isSafari ? this.#s.tategaki ? (i, a) => `text-align: start; height: ${String(a)}em; padding-top: ${i}; padding-bottom: ${i};` : (i, a) => `text-align: start; width: ${String(a)}em; padding-left: ${i}; padding-right: ${i};` : this.#s.tategaki ? (i) => `text-align: justify; text-align-last: justify; padding-top: ${i}; padding-bottom: ${i};` : (i) => `text-align: justify; text-align-last: justify; padding-left: ${i}; padding-right: ${i};`, T.isFirefox && (this.#U = this.#Z), "r_style" in t)
1010
1009
  if (t.r_style) {
1011
1010
  const i = document.createElement("span");
1012
1011
  i.style.cssText = t.r_style;
1013
1012
  const a = i.style.length, n = this.#y.style;
1014
1013
  for (let l = 0; l < a; ++l) {
1015
1014
  const h = i.style[l];
1016
- if (h in k.#U) {
1015
+ if (h in k.#G) {
1017
1016
  K.myTrace(`${String(h)}は指定できません`, "W");
1018
1017
  continue;
1019
1018
  }
@@ -1023,10 +1022,10 @@ class k extends tt {
1023
1022
  } else this.#y.style.cssText = "";
1024
1023
  if ("alpha" in t) for (const i of this.#m.children) i.alpha = this.ctn.alpha;
1025
1024
  this.#S(t), this.#$(t);
1026
- const e = W.procID + `TxtLayer lay name:${this.name_}`, s = this.#O(t, (i) => {
1027
- i && W.endProc(e);
1025
+ const e = I.procID + `TxtLayer lay name:${this.name_}`, s = this.#O(t, (i) => {
1026
+ i && I.endProc(e);
1028
1027
  });
1029
- return s && W.beginProc(e), s;
1028
+ return s && I.beginProc(e), s;
1030
1029
  }
1031
1030
  #S(t) {
1032
1031
  const { in_style: e } = t;
@@ -1050,7 +1049,7 @@ class k extends tt {
1050
1049
  this.#W = e;
1051
1050
  }
1052
1051
  #W = "";
1053
- #E = new I();
1052
+ #E = new W();
1054
1053
  #O(t, e) {
1055
1054
  if ("back_clear" in t)
1056
1055
  return F(t, "back_clear", !1) && (this.#_ = 0, this.#o = 0, this.#f = !1, this.#b = ""), e(!1), !1;
@@ -1058,10 +1057,10 @@ class k extends tt {
1058
1057
  const s = (this.#f ? 1 : Number(k.#n.getVal("sys:TextLayer.Back.Alpha"))) * this.#o;
1059
1058
  if (t.b_pic) {
1060
1059
  if (this.#b !== t.b_pic)
1061
- return this.#b = t.b_pic, this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#E = new I(this.#b, this.ctn, (i) => {
1060
+ return this.#b = t.b_pic, this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#E = new W(this.#b, this.ctn, (i) => {
1062
1061
  this.#i = i, i.name = "back(pic)", i.visible = s > 0, i.alpha = s, this.#s.setMySize(i.width, i.height), this.ctn.setChildIndex(i, 0), e(!0);
1063
1062
  }), this.#E.ret;
1064
- } else "b_color" in t && (this.#_ = ct(t, "b_color", 0), this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#b = "", this.ctn.addChildAt(
1063
+ } else "b_color" in t && (this.#_ = dt(t, "b_color", 0), this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#b = "", this.ctn.addChildAt(
1065
1064
  (this.#i = new B()).beginFill(this.#_, s).lineStyle(void 0).drawRect(0, 0, this.#s.getWidth, this.#s.getHeight).endFill(),
1066
1065
  0
1067
1066
  ), this.#i.name = "back(color)");
@@ -1089,7 +1088,7 @@ class k extends tt {
1089
1088
  static #F = (t) => t;
1090
1089
  isCur = !1;
1091
1090
  #d = () => "";
1092
- #q = (t, e, s, i = "") => {
1091
+ #U = (t, e, s, i = "") => {
1093
1092
  if (!s) return ` style='${i}'`;
1094
1093
  const a = t.length * 2;
1095
1094
  if (a - e.length < 0) return ` style='text-align: ${s}; ${i}'`;
@@ -1192,36 +1191,36 @@ class k extends tt {
1192
1191
  break;
1193
1192
  case "gotxt":
1194
1193
  this.#V(), this.#w ? (this.isCur && k.#a.recText(
1195
- this.#T.join("").replace(/^<ruby>&emsp;<rt>&emsp;<\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\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;'")
1196
- ), this.#s.goTxt(this.#T, this.#I === 0), this.#w = !1, this.#I = 0) : this.isCur && this.#s.noticeCompTxt();
1194
+ this.#j.join("").replace(/^<ruby>&emsp;<rt>&emsp;<\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\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;'")
1195
+ ), this.#s.goTxt(this.#j, this.#I === 0), this.#w = !1, this.#I = 0) : this.isCur && this.#s.noticeCompTxt();
1197
1196
  return;
1198
1197
  // breakではない
1199
1198
  case "add":
1200
1199
  {
1201
1200
  const r = JSON.parse(h), { style: b = "", wait: y = null } = r, { cl: w, sty: C } = this.#D(!0, y ? M(y) : null);
1202
- this.#T.push(`<span${w} style='${C} display: inline; ${b}'>`), delete r.style, this.#K(r);
1201
+ this.#j.push(`<span${w} style='${C} display: inline; ${b}'>`), delete r.style, this.#K(r);
1203
1202
  }
1204
1203
  return;
1205
1204
  // breakではない
1206
1205
  case "add_close":
1207
- this.#T.push("</span>"), this.#V();
1206
+ this.#j.push("</span>"), this.#V();
1208
1207
  return;
1209
1208
  // breakではない
1210
1209
  case "grp":
1211
1210
  this.#w = !0;
1212
1211
  {
1213
1212
  const r = JSON.parse(h);
1214
- if (r.id ??= String(this.#T.length), r.id === "break") {
1213
+ if (r.id ??= String(this.#j.length), r.id === "break") {
1215
1214
  this.#s.dispBreak(r);
1216
1215
  return;
1217
1216
  }
1218
1217
  this.#M = !1, r.delay = this.#I, r.r ??= "", r.style ??= "", r.r_style ??= "";
1219
1218
  const { r: b, wait: y = null, r_style: w } = r, { cl: C, sty: x, lnk: N } = this.#D(!0, y ? M(y) : null);
1220
- a = `<span${C} style='${x} ${r.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(r)}'${N} style='${x} display: inline;'>&emsp;</span><rt${N}${this.#q(
1219
+ a = `<span${C} style='${x} ${r.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(r)}'${N} style='${x} display: inline;'>&emsp;</span><rt${N}${this.#U(
1221
1220
  " ",
1222
1221
  b,
1223
1222
  this.#x,
1224
- this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "") + w
1223
+ this.#y.style.cssText + (this.#T.at(-1)?.o.r_style ?? "") + w
1225
1224
  )}>${r.r}</rt></ruby></span>`;
1226
1225
  }
1227
1226
  break;
@@ -1229,13 +1228,13 @@ class k extends tt {
1229
1228
  this.#M = !1, this.#w = !0;
1230
1229
  {
1231
1230
  const { t: r = "", r: b = "", wait: y = null, style: w = "", r_style: C = "" } = JSON.parse(h);
1232
- k.#n.doRecLog() && (this.#G += t + (s ? `《${s}》` : ""), this.#J += r);
1233
- const x = j.isSafari ? b.replaceAll(/[A-Za-z0-9]/g, (o) => String.fromCharCode(o.charCodeAt(0) + 65248)) : b, { cl: N, sty: g, lnk: $ } = this.#D(!0, y ? M(y) : null);
1234
- a = `<span${N} style='${g}${this.#R(r)} ${w}'><ruby><span${$} style='${g} display: inline; text-combine-upright: all;'>${r}</span><rt${$}${this.#q(
1231
+ k.#n.doRecLog() && (this.#q += t + (s ? `《${s}》` : ""), this.#J += r);
1232
+ const x = T.isSafari ? b.replaceAll(/[A-Za-z0-9]/g, (o) => String.fromCharCode(o.charCodeAt(0) + 65248)) : b, { cl: N, sty: g, lnk: $ } = this.#D(!0, y ? M(y) : null);
1233
+ a = `<span${N} style='${g}${this.#R(r)} ${w}'><ruby><span${$} style='${g} display: inline; text-combine-upright: all;'>${r}</span><rt${$}${this.#U(
1235
1234
  r,
1236
1235
  x,
1237
1236
  this.#x,
1238
- this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "") + C
1237
+ this.#y.style.cssText + (this.#T.at(-1)?.o.r_style ?? "") + C
1239
1238
  )}>${x}</rt></ruby></span>`;
1240
1239
  }
1241
1240
  break;
@@ -1253,12 +1252,12 @@ class k extends tt {
1253
1252
  const r = JSON.parse(h);
1254
1253
  r[":link"] = " data-lnk='@'";
1255
1254
  const { cl: b, sty: y, curpos: w } = this.#D(!1, r.wait ? M(r.wait) : null);
1256
- this.#T.push(`<span${b} style='${y} display: inline; ${r.style ?? ""}' ${w} data-arg='${h}'>`), delete r.style, this.#Q(r);
1255
+ this.#j.push(`<span${b} style='${y} display: inline; ${r.style ?? ""}' ${w} data-arg='${h}'>`), delete r.style, this.#Q(r);
1257
1256
  }
1258
1257
  return;
1259
1258
  // breakではない
1260
1259
  case "endlink":
1261
- this.#w = !0, this.#T.push("</span>"), this.#V();
1260
+ this.#w = !0, this.#j.push("</span>"), this.#V();
1262
1261
  return;
1263
1262
  // breakではない
1264
1263
  default:
@@ -1266,40 +1265,40 @@ class k extends tt {
1266
1265
  }
1267
1266
  break;
1268
1267
  }
1269
- this.#T.push(k.#F(a));
1268
+ this.#j.push(k.#F(a));
1270
1269
  };
1271
1270
  #X(t, e, s) {
1272
1271
  const i = t === " " ? "&nbsp;" : t === " " ? "&emsp;" : t;
1273
- k.#n.doRecLog() && (this.#G += i + (e ? `《${e}》` : ""), t !== " " && (this.#J += t));
1272
+ k.#n.doRecLog() && (this.#q += i + (e ? `《${e}》` : ""), t !== " " && (this.#J += t));
1274
1273
  const { cl: a, sty: n, lnk: l } = this.#D(!0, null, t);
1275
1274
  return e ? `<span${a} style='${n} ${this.#R(t)}'><ruby>${// 文字個別に出現させるため以下にも ${cl} が必要
1276
- Array.from(t).map((h, r) => `<span${a}${l} style='${r > 0 ? this.#D(!0, null, t).sty : n} display: inline;'>${h === " " ? "&nbsp;" : h === " " ? "&emsp;" : h}</span>`).join("")}<rt${l}${this.#q(
1275
+ Array.from(t).map((h, r) => `<span${a}${l} style='${r > 0 ? this.#D(!0, null, t).sty : n} display: inline;'>${h === " " ? "&nbsp;" : h === " " ? "&emsp;" : h}</span>`).join("")}<rt${l}${this.#U(
1277
1276
  t,
1278
1277
  e,
1279
1278
  s,
1280
- this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "")
1279
+ this.#y.style.cssText + (this.#T.at(-1)?.o.r_style ?? "")
1281
1280
  )}>${e}</rt></ruby></span>` : `<span${a} style='${n} ${this.#R(t)}'${l}>${i}</span>`;
1282
1281
  }
1283
1282
  #D(t, e, s = `
1284
1283
  `) {
1285
- const i = this.#P ? e ?? this.#j.at(0)?.o.wait ?? (k.#g ? k.#t[s.at(0) ?? ""] ?? 0 : k.msecChWait) : 0;
1284
+ const i = this.#P ? e ?? this.#T.at(0)?.o.wait ?? (k.#g ? k.#t[s.at(0) ?? ""] ?? 0 : k.msecChWait) : 0;
1286
1285
  k.#k.isSkipping ? this.#I = 0 : t && this.#P && (this.#I += M(i));
1287
1286
  const a = `data-add='{"ch_in_style":"${this.#B}", "ch_out_style":"${this.#W}"}'`;
1288
1287
  return {
1289
1288
  cl: ` class='sn_ch sn_ch_yet sn_ch_in_${this.#B}'`,
1290
1289
  // TxtStage.goTxt()はこれ単位で文字出現させる
1291
- sty: `animation-delay: ${String(this.#I)}ms;${this.#j.at(-1)?.o.style ?? ""}`,
1290
+ sty: `animation-delay: ${String(this.#I)}ms;${this.#T.at(-1)?.o.style ?? ""}`,
1292
1291
  // TxtStage.goTxt()はこれ単位で文字出現させる
1293
- lnk: (this.#j.at(0)?.o[":link"] ?? "") + " " + a,
1292
+ lnk: (this.#T.at(0)?.o[":link"] ?? "") + " " + a,
1294
1293
  curpos: a
1295
1294
  };
1296
1295
  }
1297
1296
  #I = 0;
1298
1297
  #M = !0;
1299
- #T = [];
1300
1298
  #j = [];
1299
+ #T = [];
1301
1300
  #K(t) {
1302
- this.#j.push({
1301
+ this.#T.push({
1303
1302
  o: t,
1304
1303
  r_align: this.#x,
1305
1304
  ch_in_style: this.#B,
@@ -1307,11 +1306,11 @@ class k extends tt {
1307
1306
  }), t.r_align && (this.#x = t.r_align), this.#S(t), this.#$(t);
1308
1307
  }
1309
1308
  #V() {
1310
- const t = this.#j.pop();
1309
+ const t = this.#T.pop();
1311
1310
  t && (this.#x = t.r_align, this.#S({ in_style: t.ch_in_style }), this.#$({ out_style: t.ch_out_style }));
1312
1311
  }
1313
1312
  #Q(t) {
1314
- const e = this.#j.at(-1);
1313
+ const e = this.#T.at(-1);
1315
1314
  if (!e) {
1316
1315
  this.#K(t);
1317
1316
  return;
@@ -1320,12 +1319,12 @@ class k extends tt {
1320
1319
  }
1321
1320
  click = () => !this.ctn.interactiveChildren || !this.ctn.visible ? !1 : this.#s.skipChIn();
1322
1321
  clearText() {
1323
- this.ctn.removeChild(this.#s), this.ctn.addChild(this.#s = this.#s.reNew()), this.#I = 0, this.#M = !0, this.#T = [], this.#G = "", this.#J = "", k.#a.pagebreak();
1322
+ this.ctn.removeChild(this.#s), this.ctn.addChild(this.#s = this.#s.reNew()), this.#I = 0, this.#M = !0, this.#j = [], this.#q = "", this.#J = "", k.#a.pagebreak();
1324
1323
  }
1325
- #G = "";
1324
+ #q = "";
1326
1325
  #J = "";
1327
1326
  get pageText() {
1328
- return this.#G.replace("《&emsp;》", "");
1327
+ return this.#q.replace("《&emsp;》", "");
1329
1328
  }
1330
1329
  get pagePlainText() {
1331
1330
  return this.#J;
@@ -1338,7 +1337,7 @@ class k extends tt {
1338
1337
  }
1339
1338
  addButton = (t) => new Promise((e) => {
1340
1339
  t.key = `btn=[${String(this.#m.children.length)}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), F(t, "hint_tate", this.#s.tategaki);
1341
- const s = new ft(t, k.#k, () => e(), () => this.canFocus());
1340
+ const s = new ut(t, k.#k, () => e(), () => this.canFocus());
1342
1341
  s.name = JSON.stringify(t).replaceAll('"', "'"), this.#m.addChild(s);
1343
1342
  });
1344
1343
  canFocus() {
@@ -1354,7 +1353,7 @@ class k extends tt {
1354
1353
  r_cssText: this.#y.style.cssText,
1355
1354
  r_align: this.#x,
1356
1355
  // バック
1357
- b_do: this.#i === void 0 ? void 0 : this.#i instanceof G ? "Sprite" : "Graphics",
1356
+ b_do: this.#i === void 0 ? void 0 : this.#i instanceof q ? "Sprite" : "Graphics",
1358
1357
  b_pic: this.#b,
1359
1358
  b_color: this.#_,
1360
1359
  b_alpha: this.#o,
@@ -1401,7 +1400,7 @@ class k extends tt {
1401
1400
  for (const t of this.#m.children) t.showDesignCast();
1402
1401
  }
1403
1402
  dump() {
1404
- return this.#Y("", "gotxt|"), super.dump() + `, "enabled":"${String(this.enabled)}", ${this.#s.dump()}, "b_pic":"${this.#b}", "b_color":"${String(this.#_)}", "b_alpha":${String(this.#o)}, "b_alpha_isfixed":"${String(this.#f)}", "width":${String(this.#s.getWidth)}, "height":${String(this.#s.getHeight)}, "pixi_obj":[${this.ctn.children.map((t) => `{"class":"${t instanceof G ? "Sprite" : t instanceof B ? "Graphics" : t instanceof P ? "Container" : "?"}", "name":"${t.name}", "alpha":${String(t.alpha)}, "x":${String(t.x)}, "y":${String(t.y)}, "visible":"${String(t.visible)}"}`).join(",")}], "button":[${this.#m.children.map((t) => t.children[0]?.name ?? "{}").join(",")}]`;
1403
+ return this.#Y("", "gotxt|"), super.dump() + `, "enabled":"${String(this.enabled)}", ${this.#s.dump()}, "b_pic":"${this.#b}", "b_color":"${String(this.#_)}", "b_alpha":${String(this.#o)}, "b_alpha_isfixed":"${String(this.#f)}", "width":${String(this.#s.getWidth)}, "height":${String(this.#s.getHeight)}, "pixi_obj":[${this.ctn.children.map((t) => `{"class":"${t instanceof q ? "Sprite" : t instanceof B ? "Graphics" : t instanceof P ? "Container" : "?"}", "name":"${t.name}", "alpha":${String(t.alpha)}, "x":${String(t.x)}, "y":${String(t.y)}, "visible":"${String(t.visible)}"}`).join(",")}], "button":[${this.#m.children.map((t) => t.children[0]?.name ?? "{}").join(",")}]`;
1405
1404
  }
1406
1405
  }
1407
1406
  const vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({