@famibee/skynovel 1.37.0 → 1.37.1

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
@@ -17579,7 +17579,7 @@ const K1 = class {
17579
17579
  me.exports.regex(/-?(0|[1-9][0-9]*)/)
17580
17580
  ).map((m) => zt(m))
17581
17581
  ).map((m) => ["!num!", m]).desc("number"), u = me.exports.string("null").map(() => ["!str!", null]), l = me.exports.regex(/(true|false)/).map((m) => ["!bool!", m === "true"]).desc("boolean"), h = me.exports.regex(new RegExp(`(?:"(?:\\${e}["'#\\n]|[^"])*"|'(?:\\${e}["'#\\n]|[^'])*'|\\#(?:\\${e}["'#\\n]|[^#])*\\#)`)).map((m) => ["!str!", m.slice(1, -1).replaceAll(e, "")]).desc("string"), f = /\[[^\]]+\]/g, d = me.exports.regex(/-?(?:(?:tmp|sys|save|mp):)?[^\s!-\/:-@[-^`{-~]+(?:\.[^\s!-\/:-@[-^`{-~]+|\[[^\]]+\])*(?:@str)?/).map((m) => {
17582
- const _ = String(m).replace(
17582
+ const _ = String(m).replaceAll(
17583
17583
  f,
17584
17584
  (b) => "." + this.parse(b.slice(1, -1))
17585
17585
  );
@@ -17648,7 +17648,7 @@ ja = new WeakMap(), It = new WeakSet(), Rt = function(t) {
17648
17648
  throw Error("(PropParser)\u5F15\u6570\u3010" + e + "\u3011\u304C\u6570\u5024\u3067\u306F\u3042\u308A\u307E\u305B\u3093");
17649
17649
  return Number(e);
17650
17650
  }, wv = new WeakMap(), Ec = new WeakSet(), K_ = function(t) {
17651
- return t == null ? t : String(t).replace(c(this, wv), (e) => e.charAt(0) === "$" ? this.val.getVal(e.slice(1)) : this.parse(e.slice(2, -1)));
17651
+ return t == null ? t : String(t).replaceAll(c(this, wv), (e) => e.charAt(0) === "$" ? this.val.getVal(e.slice(1)) : this.parse(e.slice(2, -1)));
17652
17652
  }, Tv = new WeakMap(), Cv = new WeakSet(), ZC = function(t) {
17653
17653
  let e = 0, i = 0;
17654
17654
  for (; ; ) {
@@ -30424,7 +30424,7 @@ const Ot = class extends ve {
30424
30424
  }
30425
30425
  }
30426
30426
  const g = c(this, re).querySelectorAll("span.sn_ch");
30427
- if (I(this, Xn, () => (I(this, Xn, () => !1), g.forEach((B) => B.className = B.className.replace(/ go_ch_in_[^\s"]+/g, "")), c(Ot, cn).position.set(
30427
+ if (I(this, Xn, () => (I(this, Xn, () => !1), g.forEach((B) => B.className = B.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), c(Ot, cn).position.set(
30428
30428
  c(this, Er),
30429
30429
  c(this, wr)
30430
30430
  ), c(Ot, cn).visible = !0, c(Ot, Qa).noticeCompTxt(), !0)), g.length === 0) {
@@ -30432,7 +30432,7 @@ const Ot = class extends ve {
30432
30432
  c(this, Ai) ? (I(this, Er, (c(this, bt).$width - c(this, bt).pad_left - c(this, bt).pad_right - j * 1.5) * this.sys.cvsScale), I(this, wr, 0)) : (I(this, Er, 0), I(this, wr, j / 2 * this.sys.cvsScale)), c(this, Xn).call(this);
30433
30433
  return;
30434
30434
  }
30435
- g.forEach((B) => B.className = B.className.replace(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1"));
30435
+ g.forEach((B) => B.className = B.className.replaceAll(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1"));
30436
30436
  let _;
30437
30437
  for (let B = l - 1; B >= 0; --B) {
30438
30438
  const j = c(this, Vn)[B];
@@ -30569,9 +30569,9 @@ const Ot = class extends ve {
30569
30569
  const e = [], i = c(this, re).style, n = i.length;
30570
30570
  for (let s = 0; s < n; ++s) {
30571
30571
  const a = i[s];
30572
- e.push(`"${a}":"${i[a].replace(/(["\\])/g, "\\$1")}"`);
30572
+ e.push(`"${a}":"${i[a].replaceAll(/(["\\])/g, "\\$1")}"`);
30573
30573
  }
30574
- return `"txt":"${c(this, re).textContent.replace(/(["\\])/g, "\\$1")}", "style":{${e.join(",")}}`;
30574
+ return `"txt":"${c(this, re).textContent.replaceAll(/(["\\])/g, "\\$1")}", "style":{${e.join(",")}}`;
30575
30575
  }
30576
30576
  destroy() {
30577
30577
  Ot.delBreak(), c(this, re).parentElement.removeChild(c(this, re)), this.removeChild(c(this, hn)), this.removeChild(c(this, zn)), super.destroy();
@@ -30586,7 +30586,7 @@ Qu = new WeakMap(), Jc = new WeakMap(), Qa = new WeakMap(), re = new WeakMap(),
30586
30586
  I(this, nl, c(this, Ai) ? 0 : (n.slice(-2) === "px" ? parseFloat(n) : i * parseFloat(n) - i) / 2);
30587
30587
  }, Oi = new WeakMap(), Ai = new WeakMap(), Kc = new WeakMap(), el = new WeakMap(), l0 = new WeakSet(), lS = function(e, i = !0) {
30588
30588
  const n = {
30589
- escape: (m) => m.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1"),
30589
+ escape: (m) => m.replaceAll(/([.*+?^${}()|\[\]\/\\])/g, "\\$1"),
30590
30590
  mimeType: (m) => {
30591
30591
  const _ = l(m).toLowerCase();
30592
30592
  return s()[_] || "";
@@ -31064,9 +31064,9 @@ const Ft = class extends _r {
31064
31064
  I(this, ki, !1), I(this, qr, !0), s = R(this, vl, Bp).call(this, e, u, a);
31065
31065
  break;
31066
31066
  case "gotxt":
31067
- R(this, gl, kp).call(this), this.isCur && c(Ft, hl).recText(
31067
+ R(this, gl, kp).call(this), c(this, qr) ? (this.isCur && c(Ft, hl).recText(
31068
31068
  c(this, ci).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;'")
31069
- ), c(this, qr) ? (c(this, Qt).goTxt(c(this, ci)), I(this, qr, !1), I(this, Qn, 0)) : this.isCur && c(Ft, so).noticeCompTxt();
31069
+ ), c(this, Qt).goTxt(c(this, ci)), I(this, qr, !1), I(this, Qn, 0)) : this.isCur && c(Ft, so).noticeCompTxt();
31070
31070
  return;
31071
31071
  case "add":
31072
31072
  {
@@ -31587,7 +31587,7 @@ ml = new WeakMap(), po = new WeakMap(), d0 = new WeakSet(), fS = function(t) {
31587
31587
  }), p.load((v, g) => {
31588
31588
  var _;
31589
31589
  const m = document.getElementById(e);
31590
- c(this, po)[e] = m, c(this, _l)[e] = !1, m.srcdoc = String((_ = g[i]) == null ? void 0 : _.data).replace("sn_repRes();", "").replace(
31590
+ c(this, po)[e] = m, c(this, _l)[e] = !1, m.srcdoc = String((_ = g[i]) == null ? void 0 : _.data).replace("sn_repRes();", "").replaceAll(
31591
31591
  /\s(?:src|href)=(["'])(\S+)\1/g,
31592
31592
  (y, b, E) => E.slice(0, 3) === "../" ? this.sys.cur + E.slice(4) : y.replace(b, b + d.slice(0, d.lastIndexOf("/") + 1))
31593
31593
  ), m.onload = () => {
@@ -34737,7 +34737,7 @@ Mt = new WeakMap(), qt = new WeakMap(), _t = new WeakMap(), pe = new WeakMap(),
34737
34737
  }
34738
34738
  throw l ? "[let_ml]\u306E\u7D42\u7AEF\u30FB[endlet_ml]\u304C\u3042\u308A\u307E\u305B\u3093" : (jt.myTrace(`[jump\u7CFB] \u30E9\u30D9\u30EB\u3010${n}\u3011\u304C\u3042\u308A\u307E\u305B\u3093`, "ET"), "Dummy");
34739
34739
  }, Br = new WeakMap(), Eg = new WeakSet(), C2 = function(t) {
34740
- const e = c(this, qs).matchToken(t.replace(/(\r\n|\r)/g, `
34740
+ const e = c(this, qs).matchToken(t.replaceAll(/(\r\n|\r)/g, `
34741
34741
  `));
34742
34742
  for (let s = e.length - 1; s >= 0; --s) {
34743
34743
  const a = e[s];