@famibee/skynovel 2.0.2 → 2.0.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.
Files changed (121) hide show
  1. package/dist/Button.js +36 -34
  2. package/dist/Button.js.map +1 -1
  3. package/dist/CallStack.js +11 -6
  4. package/dist/CallStack.js.map +1 -1
  5. package/dist/CmnInterface.js +13 -11
  6. package/dist/CmnInterface.js.map +1 -1
  7. package/dist/CmnLib.js +58 -56
  8. package/dist/CmnLib.js.map +1 -1
  9. package/dist/Config.js +9 -7
  10. package/dist/Config.js.map +1 -1
  11. package/dist/ConfigBase.js +52 -49
  12. package/dist/ConfigBase.js.map +1 -1
  13. package/dist/DebugMng.js +9 -6
  14. package/dist/DebugMng.js.map +1 -1
  15. package/dist/EventListenerCtn.js +6 -4
  16. package/dist/EventListenerCtn.js.map +1 -1
  17. package/dist/EventMng.js +522 -417
  18. package/dist/EventMng.js.map +1 -1
  19. package/dist/Grammar.js +22 -20
  20. package/dist/Grammar.js.map +1 -1
  21. package/dist/GrpLayer.js +58 -57
  22. package/dist/GrpLayer.js.map +1 -1
  23. package/dist/Layer.js +66 -64
  24. package/dist/Layer.js.map +1 -1
  25. package/dist/LayerMng.js +461 -441
  26. package/dist/LayerMng.js.map +1 -1
  27. package/dist/Main.js +69 -67
  28. package/dist/Main.js.map +1 -1
  29. package/dist/PropParser.js +23 -19
  30. package/dist/PropParser.js.map +1 -1
  31. package/dist/Reading.js +422 -418
  32. package/dist/Reading.js.map +1 -1
  33. package/dist/RubySpliter.js +4 -2
  34. package/dist/RubySpliter.js.map +1 -1
  35. package/dist/ScriptIterator.js +374 -370
  36. package/dist/ScriptIterator.js.map +1 -1
  37. package/dist/SndBuf.js +643 -622
  38. package/dist/SndBuf.js.map +1 -1
  39. package/dist/SoundMng.js +59 -60
  40. package/dist/SoundMng.js.map +1 -1
  41. package/dist/SpritesMng.js +135 -129
  42. package/dist/SpritesMng.js.map +1 -1
  43. package/dist/SysBase.js +985 -950
  44. package/dist/SysBase.js.map +1 -1
  45. package/dist/TxtLayer.js +558 -551
  46. package/dist/TxtLayer.js.map +1 -1
  47. package/dist/Variable.js +47 -45
  48. package/dist/Variable.js.map +1 -1
  49. package/dist/chunk.js +11 -9
  50. package/dist/gamepad.js +396 -660
  51. package/dist/gamepad.js.map +1 -1
  52. package/dist/pixi.js +2631 -2593
  53. package/dist/pixi.js.map +1 -1
  54. package/dist/platform.js +6 -4
  55. package/dist/platform.js.map +1 -1
  56. package/dist/rolldown-runtime.js +20 -0
  57. package/dist/web.js +418 -418
  58. package/dist/web.js.map +1 -1
  59. package/dist_app/Button.js +36 -34
  60. package/dist_app/Button.js.map +1 -1
  61. package/dist_app/CallStack.js +11 -6
  62. package/dist_app/CallStack.js.map +1 -1
  63. package/dist_app/CmnInterface.js +13 -11
  64. package/dist_app/CmnInterface.js.map +1 -1
  65. package/dist_app/CmnLib.js +58 -56
  66. package/dist_app/CmnLib.js.map +1 -1
  67. package/dist_app/Config.js +9 -7
  68. package/dist_app/Config.js.map +1 -1
  69. package/dist_app/ConfigBase.js +52 -49
  70. package/dist_app/ConfigBase.js.map +1 -1
  71. package/dist_app/DebugMng.js +9 -6
  72. package/dist_app/DebugMng.js.map +1 -1
  73. package/dist_app/EventListenerCtn.js +6 -4
  74. package/dist_app/EventListenerCtn.js.map +1 -1
  75. package/dist_app/EventMng.js +522 -417
  76. package/dist_app/EventMng.js.map +1 -1
  77. package/dist_app/Grammar.js +22 -20
  78. package/dist_app/Grammar.js.map +1 -1
  79. package/dist_app/GrpLayer.js +58 -57
  80. package/dist_app/GrpLayer.js.map +1 -1
  81. package/dist_app/Layer.js +66 -64
  82. package/dist_app/Layer.js.map +1 -1
  83. package/dist_app/LayerMng.js +461 -441
  84. package/dist_app/LayerMng.js.map +1 -1
  85. package/dist_app/Main.js +69 -67
  86. package/dist_app/Main.js.map +1 -1
  87. package/dist_app/PropParser.js +23 -19
  88. package/dist_app/PropParser.js.map +1 -1
  89. package/dist_app/Reading.js +422 -418
  90. package/dist_app/Reading.js.map +1 -1
  91. package/dist_app/RubySpliter.js +4 -2
  92. package/dist_app/RubySpliter.js.map +1 -1
  93. package/dist_app/ScriptIterator.js +374 -370
  94. package/dist_app/ScriptIterator.js.map +1 -1
  95. package/dist_app/SndBuf.js +643 -622
  96. package/dist_app/SndBuf.js.map +1 -1
  97. package/dist_app/SoundMng.js +59 -60
  98. package/dist_app/SoundMng.js.map +1 -1
  99. package/dist_app/SpritesMng.js +135 -129
  100. package/dist_app/SpritesMng.js.map +1 -1
  101. package/dist_app/SysBase.js +985 -950
  102. package/dist_app/SysBase.js.map +1 -1
  103. package/dist_app/TxtLayer.js +558 -551
  104. package/dist_app/TxtLayer.js.map +1 -1
  105. package/dist_app/Variable.js +47 -45
  106. package/dist_app/Variable.js.map +1 -1
  107. package/dist_app/app.js +62 -63
  108. package/dist_app/app.js.map +1 -1
  109. package/dist_app/appMain.js +11 -11
  110. package/dist_app/appMain.js.map +1 -1
  111. package/dist_app/chunk.js +11 -9
  112. package/dist_app/gamepad.js +396 -660
  113. package/dist_app/gamepad.js.map +1 -1
  114. package/dist_app/pixi.js +2028 -1990
  115. package/dist_app/pixi.js.map +1 -1
  116. package/dist_app/platform.js +6 -4
  117. package/dist_app/platform.js.map +1 -1
  118. package/dist_app/preload.js +1 -1
  119. package/dist_app/preload.js.map +1 -1
  120. package/dist_app/rolldown-runtime.js +20 -0
  121. package/package.json +20 -21
@@ -1,7 +1,8 @@
1
- import { i as EVNM_KEY, l as argChk_Num, r as EVNM_CLICK, s as argChk_Boolean, t as CmnLib } from "./CmnLib.js";
2
- import { m as Container } from "./pixi.js";
3
- import { t as EventListenerCtn } from "./EventListenerCtn.js";
4
- var Easing = Object.freeze({
1
+ import { i as e, l as t, r as n, s as r, t as i } from "./CmnLib.js";
2
+ import { m as a } from "./pixi.js";
3
+ import { t as o } from "./EventListenerCtn.js";
4
+ //#region node_modules/@tweenjs/tween.js/dist/tween.esm.js
5
+ var s = Object.freeze({
5
6
  Linear: Object.freeze({
6
7
  None: function(e) {
7
8
  return e;
@@ -106,126 +107,126 @@ var Easing = Object.freeze({
106
107
  }),
107
108
  Back: Object.freeze({
108
109
  In: function(e) {
109
- var s = 1.70158;
110
- return e === 1 ? 1 : e * e * ((s + 1) * e - s);
110
+ var t = 1.70158;
111
+ return e === 1 ? 1 : e * e * ((t + 1) * e - t);
111
112
  },
112
113
  Out: function(e) {
113
- var s = 1.70158;
114
- return e === 0 ? 0 : --e * e * ((s + 1) * e + s) + 1;
114
+ var t = 1.70158;
115
+ return e === 0 ? 0 : --e * e * ((t + 1) * e + t) + 1;
115
116
  },
116
117
  InOut: function(e) {
117
- var s = 1.70158 * 1.525;
118
- return (e *= 2) < 1 ? .5 * (e * e * ((s + 1) * e - s)) : .5 * ((e -= 2) * e * ((s + 1) * e + s) + 2);
118
+ var t = 1.70158 * 1.525;
119
+ return (e *= 2) < 1 ? .5 * (e * e * ((t + 1) * e - t)) : .5 * ((e -= 2) * e * ((t + 1) * e + t) + 2);
119
120
  }
120
121
  }),
121
122
  Bounce: Object.freeze({
122
123
  In: function(e) {
123
- return 1 - Easing.Bounce.Out(1 - e);
124
+ return 1 - s.Bounce.Out(1 - e);
124
125
  },
125
126
  Out: function(e) {
126
127
  return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + .75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + .9375 : 7.5625 * (e -= 2.625 / 2.75) * e + .984375;
127
128
  },
128
129
  InOut: function(e) {
129
- return e < .5 ? Easing.Bounce.In(e * 2) * .5 : Easing.Bounce.Out(e * 2 - 1) * .5 + .5;
130
+ return e < .5 ? s.Bounce.In(e * 2) * .5 : s.Bounce.Out(e * 2 - 1) * .5 + .5;
130
131
  }
131
132
  }),
132
133
  generatePow: function(e) {
133
134
  return e === void 0 && (e = 4), e = e < 2 ** -52 ? 2 ** -52 : e, e = e > 1e4 ? 1e4 : e, {
134
- In: function(s) {
135
- return s ** +e;
135
+ In: function(t) {
136
+ return t ** +e;
136
137
  },
137
- Out: function(s) {
138
- return 1 - (1 - s) ** e;
138
+ Out: function(t) {
139
+ return 1 - (1 - t) ** e;
139
140
  },
140
- InOut: function(s) {
141
- return s < .5 ? (s * 2) ** e / 2 : (1 - (2 - s * 2) ** e) / 2 + .5;
141
+ InOut: function(t) {
142
+ return t < .5 ? (t * 2) ** e / 2 : (1 - (2 - t * 2) ** e) / 2 + .5;
142
143
  }
143
144
  };
144
145
  }
145
- }), now = function() {
146
+ }), c = function() {
146
147
  return performance.now();
147
- }, Group = function() {
148
+ }, l = function() {
148
149
  function e() {
149
150
  var e = [...arguments];
150
151
  this._tweens = {}, this._tweensAddedDuringUpdate = {}, this.add.apply(this, e);
151
152
  }
152
153
  return e.prototype.getAll = function() {
153
154
  var e = this;
154
- return Object.keys(this._tweens).map(function(s) {
155
- return e._tweens[s];
155
+ return Object.keys(this._tweens).map(function(t) {
156
+ return e._tweens[t];
156
157
  });
157
158
  }, e.prototype.removeAll = function() {
158
159
  this._tweens = {};
159
160
  }, e.prototype.add = function() {
160
- for (var e, s = [], c = 0; c < arguments.length; c++) s[c] = arguments[c];
161
- for (var l = 0, u = s; l < u.length; l++) {
162
- var d = u[l];
163
- (e = d._group) == null || e.remove(d), d._group = this, this._tweens[d.getId()] = d, this._tweensAddedDuringUpdate[d.getId()] = d;
161
+ for (var e, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
162
+ for (var r = 0, i = t; r < i.length; r++) {
163
+ var a = i[r];
164
+ (e = a._group) == null || e.remove(a), a._group = this, this._tweens[a.getId()] = a, this._tweensAddedDuringUpdate[a.getId()] = a;
164
165
  }
165
166
  }, e.prototype.remove = function() {
166
- for (var e = [...arguments], s = 0, c = e; s < c.length; s++) {
167
- var l = c[s];
168
- l._group = void 0, delete this._tweens[l.getId()], delete this._tweensAddedDuringUpdate[l.getId()];
167
+ for (var e = [...arguments], t = 0, n = e; t < n.length; t++) {
168
+ var r = n[t];
169
+ r._group = void 0, delete this._tweens[r.getId()], delete this._tweensAddedDuringUpdate[r.getId()];
169
170
  }
170
171
  }, e.prototype.allStopped = function() {
171
172
  return this.getAll().every(function(e) {
172
173
  return !e.isPlaying();
173
174
  });
174
- }, e.prototype.update = function(e, s) {
175
- e === void 0 && (e = now()), s === void 0 && (s = !0);
176
- var c = Object.keys(this._tweens);
177
- if (c.length !== 0) for (; c.length > 0;) {
175
+ }, e.prototype.update = function(e, t) {
176
+ e === void 0 && (e = c()), t === void 0 && (t = !0);
177
+ var n = Object.keys(this._tweens);
178
+ if (n.length !== 0) for (; n.length > 0;) {
178
179
  this._tweensAddedDuringUpdate = {};
179
- for (var l = 0; l < c.length; l++) {
180
- var u = this._tweens[c[l]], d = !s;
181
- u && u.update(e, d) === !1 && !s && this.remove(u);
180
+ for (var r = 0; r < n.length; r++) {
181
+ var i = this._tweens[n[r]], a = !t;
182
+ i && i.update(e, a) === !1 && !t && this.remove(i);
182
183
  }
183
- c = Object.keys(this._tweensAddedDuringUpdate);
184
+ n = Object.keys(this._tweensAddedDuringUpdate);
184
185
  }
185
186
  }, e;
186
- }(), Interpolation = {
187
- Linear: function(e, s) {
188
- var c = e.length - 1, l = c * s, u = Math.floor(l), d = Interpolation.Utils.Linear;
189
- return s < 0 ? d(e[0], e[1], l) : s > 1 ? d(e[c], e[c - 1], c - l) : d(e[u], e[u + 1 > c ? c : u + 1], l - u);
187
+ }(), u = {
188
+ Linear: function(e, t) {
189
+ var n = e.length - 1, r = n * t, i = Math.floor(r), a = u.Utils.Linear;
190
+ return t < 0 ? a(e[0], e[1], r) : t > 1 ? a(e[n], e[n - 1], n - r) : a(e[i], e[i + 1 > n ? n : i + 1], r - i);
190
191
  },
191
- Bezier: function(e, s) {
192
- for (var c = 0, l = e.length - 1, u = Math.pow, d = Interpolation.Utils.Bernstein, f = 0; f <= l; f++) c += u(1 - s, l - f) * u(s, f) * e[f] * d(l, f);
193
- return c;
192
+ Bezier: function(e, t) {
193
+ for (var n = 0, r = e.length - 1, i = Math.pow, a = u.Utils.Bernstein, o = 0; o <= r; o++) n += i(1 - t, r - o) * i(t, o) * e[o] * a(r, o);
194
+ return n;
194
195
  },
195
- CatmullRom: function(e, s) {
196
- var c = e.length - 1, l = c * s, u = Math.floor(l), d = Interpolation.Utils.CatmullRom;
197
- return e[0] === e[c] ? (s < 0 && (u = Math.floor(l = c * (1 + s))), d(e[(u - 1 + c) % c], e[u], e[(u + 1) % c], e[(u + 2) % c], l - u)) : s < 0 ? e[0] - (d(e[0], e[0], e[1], e[1], -l) - e[0]) : s > 1 ? e[c] - (d(e[c], e[c], e[c - 1], e[c - 1], l - c) - e[c]) : d(e[u ? u - 1 : 0], e[u], e[c < u + 1 ? c : u + 1], e[c < u + 2 ? c : u + 2], l - u);
196
+ CatmullRom: function(e, t) {
197
+ var n = e.length - 1, r = n * t, i = Math.floor(r), a = u.Utils.CatmullRom;
198
+ return e[0] === e[n] ? (t < 0 && (i = Math.floor(r = n * (1 + t))), a(e[(i - 1 + n) % n], e[i], e[(i + 1) % n], e[(i + 2) % n], r - i)) : t < 0 ? e[0] - (a(e[0], e[0], e[1], e[1], -r) - e[0]) : t > 1 ? e[n] - (a(e[n], e[n], e[n - 1], e[n - 1], r - n) - e[n]) : a(e[i ? i - 1 : 0], e[i], e[n < i + 1 ? n : i + 1], e[n < i + 2 ? n : i + 2], r - i);
198
199
  },
199
200
  Utils: {
200
- Linear: function(e, s, c) {
201
- return (s - e) * c + e;
201
+ Linear: function(e, t, n) {
202
+ return (t - e) * n + e;
202
203
  },
203
- Bernstein: function(e, s) {
204
- var c = Interpolation.Utils.Factorial;
205
- return c(e) / c(s) / c(e - s);
204
+ Bernstein: function(e, t) {
205
+ var n = u.Utils.Factorial;
206
+ return n(e) / n(t) / n(e - t);
206
207
  },
207
208
  Factorial: (function() {
208
209
  var e = [1];
209
- return function(s) {
210
- var c = 1;
211
- if (e[s]) return e[s];
212
- for (var l = s; l > 1; l--) c *= l;
213
- return e[s] = c, c;
210
+ return function(t) {
211
+ var n = 1;
212
+ if (e[t]) return e[t];
213
+ for (var r = t; r > 1; r--) n *= r;
214
+ return e[t] = n, n;
214
215
  };
215
216
  })(),
216
- CatmullRom: function(e, s, c, l, u) {
217
- var d = (c - e) * .5, f = (l - s) * .5, p = u * u, m = u * p;
218
- return (2 * s - 2 * c + d + f) * m + (-3 * s + 3 * c - 2 * d - f) * p + d * u + s;
217
+ CatmullRom: function(e, t, n, r, i) {
218
+ var a = (n - e) * .5, o = (r - t) * .5, s = i * i, c = i * s;
219
+ return (2 * t - 2 * n + a + o) * c + (-3 * t + 3 * n - 2 * a - o) * s + a * i + t;
219
220
  }
220
221
  }
221
- }, Sequence = function() {
222
+ }, d = function() {
222
223
  function e() {}
223
224
  return e.nextId = function() {
224
225
  return e._nextId++;
225
226
  }, e._nextId = 0, e;
226
- }(), mainGroup = new Group(), Tween = function() {
227
- function e(e, s) {
228
- this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Easing.Linear.None, this._interpolationFunction = Interpolation.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Sequence.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = e, typeof s == "object" ? (this._group = s, s.add(this)) : s === !0 && (this._group = mainGroup, mainGroup.add(this));
227
+ }(), f = new l(), p = function() {
228
+ function e(e, t) {
229
+ this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = s.Linear.None, this._interpolationFunction = u.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = d.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = e, typeof t == "object" ? (this._group = t, t.add(this)) : t === !0 && (this._group = f, f.add(this));
229
230
  }
230
231
  return e.prototype.getId = function() {
231
232
  return this._id;
@@ -235,57 +236,57 @@ var Easing = Object.freeze({
235
236
  return this._isPaused;
236
237
  }, e.prototype.getDuration = function() {
237
238
  return this._duration;
238
- }, e.prototype.to = function(e, s) {
239
- if (s === void 0 && (s = 1e3), this._isPlaying) throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
240
- return this._valuesEnd = e, this._propertiesAreSetUp = !1, this._duration = s < 0 ? 0 : s, this;
239
+ }, e.prototype.to = function(e, t) {
240
+ if (t === void 0 && (t = 1e3), this._isPlaying) throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
241
+ return this._valuesEnd = e, this._propertiesAreSetUp = !1, this._duration = t < 0 ? 0 : t, this;
241
242
  }, e.prototype.duration = function(e) {
242
243
  return e === void 0 && (e = 1e3), this._duration = e < 0 ? 0 : e, this;
243
244
  }, e.prototype.dynamic = function(e) {
244
245
  return e === void 0 && (e = !1), this._isDynamic = e, this;
245
- }, e.prototype.start = function(e, s) {
246
- if (e === void 0 && (e = now()), s === void 0 && (s = !1), this._isPlaying) return this;
247
- if (this._repeat = this._initialRepeat, this._reversed) for (var c in this._reversed = !1, this._valuesStartRepeat) this._swapEndStartRepeatValues(c), this._valuesStart[c] = this._valuesStartRepeat[c];
248
- if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || s) {
246
+ }, e.prototype.start = function(e, t) {
247
+ if (e === void 0 && (e = c()), t === void 0 && (t = !1), this._isPlaying) return this;
248
+ if (this._repeat = this._initialRepeat, this._reversed) for (var n in this._reversed = !1, this._valuesStartRepeat) this._swapEndStartRepeatValues(n), this._valuesStart[n] = this._valuesStartRepeat[n];
249
+ if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || t) {
249
250
  if (this._propertiesAreSetUp = !0, !this._isDynamic) {
250
- var l = {};
251
- for (var u in this._valuesEnd) l[u] = this._valuesEnd[u];
252
- this._valuesEnd = l;
251
+ var r = {};
252
+ for (var i in this._valuesEnd) r[i] = this._valuesEnd[i];
253
+ this._valuesEnd = r;
253
254
  }
254
- this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, s);
255
+ this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, t);
255
256
  }
256
257
  return this;
257
258
  }, e.prototype.startFromCurrentValues = function(e) {
258
259
  return this.start(e, !0);
259
- }, e.prototype._setupProperties = function(e, s, c, l, u) {
260
- for (var d in c) {
261
- var f = e[d], p = Array.isArray(f), m = p ? "array" : typeof f, h = !p && Array.isArray(c[d]);
262
- if (!(m === "undefined" || m === "function")) {
263
- if (h) {
264
- var g = c[d];
265
- if (g.length === 0) continue;
266
- for (var _ = [f], v = 0, y = g.length; v < y; v += 1) {
267
- var b = this._handleRelativeValue(f, g[v]);
268
- if (isNaN(b)) {
269
- h = !1, console.warn("Found invalid interpolation list. Skipping.");
260
+ }, e.prototype._setupProperties = function(e, t, n, r, i) {
261
+ for (var a in n) {
262
+ var o = e[a], s = Array.isArray(o), c = s ? "array" : typeof o, l = !s && Array.isArray(n[a]);
263
+ if (!(c === "undefined" || c === "function")) {
264
+ if (l) {
265
+ var u = n[a];
266
+ if (u.length === 0) continue;
267
+ for (var d = [o], f = 0, p = u.length; f < p; f += 1) {
268
+ var m = this._handleRelativeValue(o, u[f]);
269
+ if (isNaN(m)) {
270
+ l = !1, console.warn("Found invalid interpolation list. Skipping.");
270
271
  break;
271
272
  }
272
- _.push(b);
273
+ d.push(m);
273
274
  }
274
- h && (c[d] = _);
275
+ l && (n[a] = d);
275
276
  }
276
- if ((m === "object" || p) && f && !h) {
277
- s[d] = p ? [] : {};
278
- var x = f;
279
- for (var S in x) s[d][S] = x[S];
280
- l[d] = p ? [] : {};
281
- var g = c[d];
277
+ if ((c === "object" || s) && o && !l) {
278
+ t[a] = s ? [] : {};
279
+ var h = o;
280
+ for (var g in h) t[a][g] = h[g];
281
+ r[a] = s ? [] : {};
282
+ var u = n[a];
282
283
  if (!this._isDynamic) {
283
- var C = {};
284
- for (var S in g) C[S] = g[S];
285
- c[d] = g = C;
284
+ var _ = {};
285
+ for (var g in u) _[g] = u[g];
286
+ n[a] = u = _;
286
287
  }
287
- this._setupProperties(x, s[d], g, l[d], u);
288
- } else (s[d] === void 0 || u) && (s[d] = f), p || (s[d] *= 1), h ? l[d] = c[d].slice().reverse() : l[d] = s[d] || 0;
288
+ this._setupProperties(h, t[a], u, r[a], i);
289
+ } else (t[a] === void 0 || i) && (t[a] = o), s || (t[a] *= 1), l ? r[a] = n[a].slice().reverse() : r[a] = t[a] || 0;
289
290
  }
290
291
  }
291
292
  }, e.prototype.stop = function() {
@@ -293,11 +294,11 @@ var Easing = Object.freeze({
293
294
  }, e.prototype.end = function() {
294
295
  return this._goToEnd = !0, this.update(this._startTime + this._duration), this;
295
296
  }, e.prototype.pause = function(e) {
296
- return e === void 0 && (e = now()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this);
297
+ return e === void 0 && (e = c()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this);
297
298
  }, e.prototype.resume = function(e) {
298
- return e === void 0 && (e = now()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this);
299
+ return e === void 0 && (e = c()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this);
299
300
  }, e.prototype.stopChainedTweens = function() {
300
- for (var e = 0, s = this._chainedTweens.length; e < s; e++) this._chainedTweens[e].stop();
301
+ for (var e = 0, t = this._chainedTweens.length; e < t; e++) this._chainedTweens[e].stop();
301
302
  return this;
302
303
  }, e.prototype.group = function(e) {
303
304
  return e ? (e.add(this), this) : (console.warn("tween.group() without args has been removed, use group.add(tween) instead."), this);
@@ -313,11 +314,12 @@ var Easing = Object.freeze({
313
314
  }, e.prototype.yoyo = function(e) {
314
315
  return e === void 0 && (e = !1), this._yoyo = e, this;
315
316
  }, e.prototype.easing = function(e) {
316
- return e === void 0 && (e = Easing.Linear.None), this._easingFunction = e, this;
317
+ return e === void 0 && (e = s.Linear.None), this._easingFunction = e, this;
317
318
  }, e.prototype.interpolation = function(e) {
318
- return e === void 0 && (e = Interpolation.Linear), this._interpolationFunction = e, this;
319
+ return e === void 0 && (e = u.Linear), this._interpolationFunction = e, this;
319
320
  }, e.prototype.chain = function() {
320
- return this._chainedTweens = [...arguments], this;
321
+ var e = [...arguments];
322
+ return this._chainedTweens = e, this;
321
323
  }, e.prototype.onStart = function(e) {
322
324
  return this._onStartCallback = e, this;
323
325
  }, e.prototype.onEveryStart = function(e) {
@@ -330,111 +332,112 @@ var Easing = Object.freeze({
330
332
  return this._onCompleteCallback = e, this;
331
333
  }, e.prototype.onStop = function(e) {
332
334
  return this._onStopCallback = e, this;
333
- }, e.prototype.update = function(s, c) {
334
- var l = this;
335
- if (s === void 0 && (s = now()), c === void 0 && (c = e.autoStartOnUpdate), this._isPaused) return !0;
336
- var u;
337
- if (!this._goToEnd && !this._isPlaying) if (c) this.start(s, !0);
335
+ }, e.prototype.update = function(t, n) {
336
+ var r = this;
337
+ if (t === void 0 && (t = c()), n === void 0 && (n = e.autoStartOnUpdate), this._isPaused) return !0;
338
+ var i;
339
+ if (!this._goToEnd && !this._isPlaying) if (n) this.start(t, !0);
338
340
  else return !1;
339
- if (this._goToEnd = !1, s < this._startTime) return !0;
341
+ if (this._goToEnd = !1, t < this._startTime) return !0;
340
342
  this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0);
341
- var d = s - this._startTime, f = this._duration + (this._repeatDelayTime ?? this._delayTime), p = this._duration + this._repeat * f, h = function() {
342
- if (l._duration === 0 || d > p) return 1;
343
- var e = d - Math.trunc(d / f) * f, s = Math.min(e / l._duration, 1);
344
- return s === 0 && d === l._duration ? 1 : s;
345
- }(), g = this._easingFunction(h);
346
- if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, g), this._onUpdateCallback && this._onUpdateCallback(this._object, h), this._duration === 0 || d >= this._duration) if (this._repeat > 0) {
347
- var _ = Math.min(Math.trunc((d - this._duration) / f) + 1, this._repeat);
348
- for (u in isFinite(this._repeat) && (this._repeat -= _), this._valuesStartRepeat) !this._yoyo && typeof this._valuesEnd[u] == "string" && (this._valuesStartRepeat[u] = this._valuesStartRepeat[u] + parseFloat(this._valuesEnd[u])), this._yoyo && this._swapEndStartRepeatValues(u), this._valuesStart[u] = this._valuesStartRepeat[u];
349
- return this._yoyo && (this._reversed = !this._reversed), this._startTime += f * _, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
343
+ var a = t - this._startTime, o = this._duration + (this._repeatDelayTime ?? this._delayTime), s = this._duration + this._repeat * o, l = function() {
344
+ if (r._duration === 0 || a > s) return 1;
345
+ var e = a - Math.trunc(a / o) * o, t = Math.min(e / r._duration, 1);
346
+ return t === 0 && a === r._duration ? 1 : t;
347
+ }(), u = this._easingFunction(l);
348
+ if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, u), this._onUpdateCallback && this._onUpdateCallback(this._object, l), this._duration === 0 || a >= this._duration) if (this._repeat > 0) {
349
+ var d = Math.min(Math.trunc((a - this._duration) / o) + 1, this._repeat);
350
+ for (i in isFinite(this._repeat) && (this._repeat -= d), this._valuesStartRepeat) !this._yoyo && typeof this._valuesEnd[i] == "string" && (this._valuesStartRepeat[i] = this._valuesStartRepeat[i] + parseFloat(this._valuesEnd[i])), this._yoyo && this._swapEndStartRepeatValues(i), this._valuesStart[i] = this._valuesStartRepeat[i];
351
+ return this._yoyo && (this._reversed = !this._reversed), this._startTime += o * d, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
350
352
  } else {
351
353
  this._onCompleteCallback && this._onCompleteCallback(this._object);
352
- for (var v = 0, y = this._chainedTweens.length; v < y; v++) this._chainedTweens[v].start(this._startTime + this._duration, !1);
354
+ for (var f = 0, p = this._chainedTweens.length; f < p; f++) this._chainedTweens[f].start(this._startTime + this._duration, !1);
353
355
  return this._isPlaying = !1, !1;
354
356
  }
355
357
  return !0;
356
- }, e.prototype._updateProperties = function(e, s, c, l) {
357
- for (var u in c) if (s[u] !== void 0) {
358
- var d = s[u] || 0, f = c[u];
359
- !Array.isArray(e[u]) && Array.isArray(f) ? e[u] = this._interpolationFunction(f, l) : typeof f == "object" && f ? this._updateProperties(e[u], d, f, l) : (f = this._handleRelativeValue(d, f), typeof f == "number" && (e[u] = d + (f - d) * l));
358
+ }, e.prototype._updateProperties = function(e, t, n, r) {
359
+ for (var i in n) if (t[i] !== void 0) {
360
+ var a = t[i] || 0, o = n[i];
361
+ !Array.isArray(e[i]) && Array.isArray(o) ? e[i] = this._interpolationFunction(o, r) : typeof o == "object" && o ? this._updateProperties(e[i], a, o, r) : (o = this._handleRelativeValue(a, o), typeof o == "number" && (e[i] = a + (o - a) * r));
360
362
  }
361
- }, e.prototype._handleRelativeValue = function(e, s) {
362
- return typeof s == "string" ? s.charAt(0) === "+" || s.charAt(0) === "-" ? e + parseFloat(s) : parseFloat(s) : s;
363
+ }, e.prototype._handleRelativeValue = function(e, t) {
364
+ return typeof t == "string" ? t.charAt(0) === "+" || t.charAt(0) === "-" ? e + parseFloat(t) : parseFloat(t) : t;
363
365
  }, e.prototype._swapEndStartRepeatValues = function(e) {
364
- var s = this._valuesStartRepeat[e], c = this._valuesEnd[e];
365
- typeof c == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(c) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = s;
366
+ var t = this._valuesStartRepeat[e], n = this._valuesEnd[e];
367
+ typeof n == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(n) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = t;
366
368
  }, e.autoStartOnUpdate = !1, e;
367
369
  }();
368
- Sequence.nextId;
369
- var TWEEN = mainGroup;
370
- TWEEN.getAll.bind(TWEEN), TWEEN.removeAll.bind(TWEEN), TWEEN.add.bind(TWEEN), TWEEN.remove.bind(TWEEN), TWEEN.update.bind(TWEEN);
371
- const TW_NM_TRANS = "trans\n";
372
- var PID_HD_TW = "tsy nm:", CmnTween = class e {
370
+ d.nextId;
371
+ var m = f;
372
+ m.getAll.bind(m), m.removeAll.bind(m), m.add.bind(m), m.remove.bind(m), m.update.bind(m);
373
+ //#endregion
374
+ //#region src/sn/CmnTween.ts
375
+ var h = "trans\n", g = "tsy nm:", _ = class e {
373
376
  static #e = {};
374
377
  static #t;
375
- static init(s) {
376
- e.#e = {}, e.#t = s, e.addGrp(e.#r);
377
- function c(s) {
378
- for (let c of e.#i) c.update(s);
379
- e.#n(c);
378
+ static init(t) {
379
+ e.#e = {}, e.#t = t, e.addGrp(e.#r);
380
+ function n(t) {
381
+ for (let n of e.#i) n.update(t);
382
+ e.#n(n);
380
383
  }
381
- e.#n = (e) => requestAnimationFrame(e), e.#n(c);
384
+ e.#n = (e) => requestAnimationFrame(e), e.#n(n);
382
385
  }
383
386
  static #n;
384
- static #r = new Group();
387
+ static #r = new l();
385
388
  static #i = [];
386
- static addGrp(s) {
387
- e.#i.push(s);
389
+ static addGrp(t) {
390
+ e.#i.push(t);
388
391
  }
389
392
  static destroy() {
390
393
  e.#r.removeAll(), e.#n = () => 0, e.stopAllTw(), e.#i = [];
391
394
  }
392
395
  static stopAllTw() {
393
396
  e.#e = {};
394
- for (let s of e.#i) s.removeAll();
397
+ for (let t of e.#i) t.removeAll();
395
398
  }
396
- static setTwProp(e, c) {
397
- let u = argChk_Num(c, "repeat", 1);
398
- return e.delay(argChk_Num(c, "delay", 0)).easing(this.ease(c.ease)).repeat(u > 0 ? u - 1 : Infinity).yoyo(argChk_Boolean(c, "yoyo", !1));
399
+ static setTwProp(e, n) {
400
+ let i = t(n, "repeat", 1);
401
+ return e.delay(t(n, "delay", 0)).easing(this.ease(n.ease)).repeat(i > 0 ? i - 1 : Infinity).yoyo(r(n, "yoyo", !1));
399
402
  }
400
403
  static #a = {
401
- "Back.In": (e) => Easing.Back.In(e),
402
- "Back.InOut": (e) => Easing.Back.InOut(e),
403
- "Back.Out": (e) => Easing.Back.Out(e),
404
- "Bounce.In": (e) => Easing.Bounce.In(e),
405
- "Bounce.InOut": (e) => Easing.Bounce.InOut(e),
406
- "Bounce.Out": (e) => Easing.Bounce.Out(e),
407
- "Circular.In": (e) => Easing.Circular.In(e),
408
- "Circular.InOut": (e) => Easing.Circular.InOut(e),
409
- "Circular.Out": (e) => Easing.Circular.Out(e),
410
- "Cubic.In": (e) => Easing.Cubic.In(e),
411
- "Cubic.InOut": (e) => Easing.Cubic.InOut(e),
412
- "Cubic.Out": (e) => Easing.Cubic.Out(e),
413
- "Elastic.In": (e) => Easing.Elastic.In(e),
414
- "Elastic.InOut": (e) => Easing.Elastic.InOut(e),
415
- "Elastic.Out": (e) => Easing.Elastic.Out(e),
416
- "Exponential.In": (e) => Easing.Exponential.In(e),
417
- "Exponential.InOut": (e) => Easing.Exponential.InOut(e),
418
- "Exponential.Out": (e) => Easing.Exponential.Out(e),
419
- "Linear.None": (e) => Easing.Linear.None(e),
420
- "Quadratic.In": (e) => Easing.Quadratic.In(e),
421
- "Quadratic.InOut": (e) => Easing.Quadratic.InOut(e),
422
- "Quadratic.Out": (e) => Easing.Quadratic.Out(e),
423
- "Quartic.In": (e) => Easing.Quartic.In(e),
424
- "Quartic.InOut": (e) => Easing.Quartic.InOut(e),
425
- "Quartic.Out": (e) => Easing.Quartic.Out(e),
426
- "Quintic.In": (e) => Easing.Quintic.In(e),
427
- "Quintic.InOut": (e) => Easing.Quintic.InOut(e),
428
- "Quintic.Out": (e) => Easing.Quintic.Out(e),
429
- "Sinusoidal.In": (e) => Easing.Sinusoidal.In(e),
430
- "Sinusoidal.InOut": (e) => Easing.Sinusoidal.InOut(e),
431
- "Sinusoidal.Out": (e) => Easing.Sinusoidal.Out(e)
404
+ "Back.In": (e) => s.Back.In(e),
405
+ "Back.InOut": (e) => s.Back.InOut(e),
406
+ "Back.Out": (e) => s.Back.Out(e),
407
+ "Bounce.In": (e) => s.Bounce.In(e),
408
+ "Bounce.InOut": (e) => s.Bounce.InOut(e),
409
+ "Bounce.Out": (e) => s.Bounce.Out(e),
410
+ "Circular.In": (e) => s.Circular.In(e),
411
+ "Circular.InOut": (e) => s.Circular.InOut(e),
412
+ "Circular.Out": (e) => s.Circular.Out(e),
413
+ "Cubic.In": (e) => s.Cubic.In(e),
414
+ "Cubic.InOut": (e) => s.Cubic.InOut(e),
415
+ "Cubic.Out": (e) => s.Cubic.Out(e),
416
+ "Elastic.In": (e) => s.Elastic.In(e),
417
+ "Elastic.InOut": (e) => s.Elastic.InOut(e),
418
+ "Elastic.Out": (e) => s.Elastic.Out(e),
419
+ "Exponential.In": (e) => s.Exponential.In(e),
420
+ "Exponential.InOut": (e) => s.Exponential.InOut(e),
421
+ "Exponential.Out": (e) => s.Exponential.Out(e),
422
+ "Linear.None": (e) => s.Linear.None(e),
423
+ "Quadratic.In": (e) => s.Quadratic.In(e),
424
+ "Quadratic.InOut": (e) => s.Quadratic.InOut(e),
425
+ "Quadratic.Out": (e) => s.Quadratic.Out(e),
426
+ "Quartic.In": (e) => s.Quartic.In(e),
427
+ "Quartic.InOut": (e) => s.Quartic.InOut(e),
428
+ "Quartic.Out": (e) => s.Quartic.Out(e),
429
+ "Quintic.In": (e) => s.Quintic.In(e),
430
+ "Quintic.InOut": (e) => s.Quintic.InOut(e),
431
+ "Quintic.Out": (e) => s.Quintic.Out(e),
432
+ "Sinusoidal.In": (e) => s.Sinusoidal.In(e),
433
+ "Sinusoidal.InOut": (e) => s.Sinusoidal.InOut(e),
434
+ "Sinusoidal.Out": (e) => s.Sinusoidal.Out(e)
432
435
  };
433
436
  static ease(e) {
434
- if (!e) return (e) => Easing.Linear.None(e);
435
- let s = this.#a[e];
436
- if (!s) throw "異常なease指定です";
437
- return s;
437
+ if (!e) return (e) => s.Linear.None(e);
438
+ let t = this.#a[e];
439
+ if (!t) throw "異常なease指定です";
440
+ return t;
438
441
  }
439
442
  static aLayerPrpNm = [
440
443
  "alpha",
@@ -448,98 +451,98 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
448
451
  "x",
449
452
  "y"
450
453
  ];
451
- static cnvTweenArg(s, c) {
452
- let l = {};
453
- for (let u of e.aLayerPrpNm) {
454
- let e = s[u];
454
+ static cnvTweenArg(t, n) {
455
+ let r = {};
456
+ for (let i of e.aLayerPrpNm) {
457
+ let e = t[i];
455
458
  if (!e) continue;
456
- let d = String(e), f = d.startsWith("="), p = f ? d.slice(1) : d;
457
- if (!p) continue;
458
- let [m = "0", h] = p.split(","), g = l[u] = parseFloat(m);
459
- h && (l[u] += Math.round(Math.random() * (parseFloat(h) - g + 1))), f && (l[u] += parseFloat(c[u]));
460
- }
461
- return l;
462
- }
463
- static tween(c, l, d, f, p, m, h, g = !0) {
464
- let _ = this.#t.isSkipping ? 0 : argChk_Num(l, "time", NaN), v = new Tween(d).to(f, _).onUpdate((e) => p(e));
465
- this.setTwProp(v, l), this.#e[c] = {
466
- tw: v,
467
- onEnd: h
468
- }, e.#r.add(v);
469
- let { path: b } = l, x = v;
470
- if (b) {
471
- CmnLib.debugLog && console.group(`🍝 [${l[":タグ名"] ?? ""}] path=${b}= start(${String(d.x)},${String(d.y)},${String(d.alpha)})`);
472
- for (let { groups: e } of b.matchAll(this.#o)) {
473
- let { x: s, x2: c, y: f, y2: p, o: m, o2: h, json: g } = e, v = {};
474
- if (g) try {
475
- v = JSON.parse(g);
459
+ let a = String(e), o = a.startsWith("="), s = o ? a.slice(1) : a;
460
+ if (!s) continue;
461
+ let [c = "0", l] = s.split(","), u = r[i] = parseFloat(c);
462
+ l && (r[i] += Math.round(Math.random() * (parseFloat(l) - u + 1))), o && (r[i] += parseFloat(n[i]));
463
+ }
464
+ return r;
465
+ }
466
+ static tween(n, r, a, o, s, c, l, u = !0) {
467
+ let d = this.#t.isSkipping ? 0 : t(r, "time", NaN), f = new p(a).to(o, d).onUpdate((e) => s(e));
468
+ this.setTwProp(f, r), this.#e[n] = {
469
+ tw: f,
470
+ onEnd: l
471
+ }, e.#r.add(f);
472
+ let { path: m } = r, h = f;
473
+ if (m) {
474
+ i.debugLog && console.group(`🍝 [${r[":タグ名"] ?? ""}] path=${m}= start(${String(a.x)},${String(a.y)},${String(a.alpha)})`);
475
+ for (let { groups: e } of m.matchAll(this.#o)) {
476
+ let { x: t, x2: n, y: o, y2: s, o: c, o2: l, json: u } = e, f = {};
477
+ if (u) try {
478
+ f = JSON.parse(u);
476
479
  } catch (e) {
477
- console.error(`🍝 json=${g} ` + String(e));
480
+ console.error(`🍝 json=${u} ` + String(e));
478
481
  continue;
479
482
  }
480
483
  else {
481
- let e = s ?? c;
482
- e && (v.x = e);
483
- let l = f ?? p;
484
- l && (v.y = l);
485
- let u = m ?? h;
486
- u && (v.alpha = Number(u));
484
+ let e = t ?? n;
485
+ e && (f.x = e);
486
+ let r = o ?? s;
487
+ r && (f.y = r);
488
+ let i = c ?? l;
489
+ i && (f.alpha = Number(i));
487
490
  }
488
- let b = this.cnvTweenArg(v, d);
489
- CmnLib.debugLog && console.info(`🍝 ${g ?? `{x:${String(s)} y:${String(f)} o:${String(m)}}`} => hTo:${JSON.stringify(b)}`);
490
- let S = new Tween(d).to(b, _);
491
- this.setTwProp(S, l), x.chain(S), x = S;
491
+ let m = this.cnvTweenArg(f, a);
492
+ i.debugLog && console.info(`🍝 ${u ?? `{x:${String(t)} y:${String(o)} o:${String(c)}}`} => hTo:${JSON.stringify(m)}`);
493
+ let g = new p(a).to(m, d);
494
+ this.setTwProp(g, r), h.chain(g), h = g;
492
495
  }
493
- CmnLib.debugLog && console.groupEnd();
496
+ i.debugLog && console.groupEnd();
494
497
  }
495
- x.onComplete(() => {
496
- let e = this.#e[c];
497
- e?.tw && (delete this.#e[c], e.tw = void 0, v.stop(), e.onEnd?.(), m(), Reading.notifyEndProc(PID_HD_TW + c));
498
+ h.onComplete(() => {
499
+ let e = this.#e[n];
500
+ e?.tw && (delete this.#e[n], e.tw = void 0, f.stop(), e.onEnd?.(), c(), C.notifyEndProc(g + n));
498
501
  });
499
- let { chain: C } = l;
500
- if (C) {
501
- let e = this.#e[C];
502
- if (!e?.tw) throw `${C}は存在しない・または終了したトゥイーンです`;
503
- delete e.onEnd, e.tw.chain(v);
504
- } else g && v.start();
505
- return v;
502
+ let { chain: _ } = r;
503
+ if (_) {
504
+ let e = this.#e[_];
505
+ if (!e?.tw) throw `${_}は存在しない・または終了したトゥイーンです`;
506
+ delete e.onEnd, e.tw.chain(f);
507
+ } else u && f.start();
508
+ return f;
506
509
  }
507
510
  static #o = /\(\s*(?:(?<x>[-=\d.]+)|(['"])(?<x2>.*?)\2)?(?:\s*,\s*(?:(?<y>[-=\d.]+)|(['"])(?<y2>.*?)\5)?(?:\s*,\s*(?:(?<o>[-=\d.]+)|(['"])(?<o2>.*?)\8))?)?|(?<json>\{[^{}]*})/g;
508
511
  static wt(e) {
509
512
  if (!this.#e["trans\n"]?.tw) return !1;
510
- let s = () => this.stopEndTrans();
511
- return Reading.beginProc(TW_NM_TRANS, s, !0, argChk_Boolean(e, "canskip", !0) ? s : void 0), !0;
513
+ let t = () => this.stopEndTrans();
514
+ return C.beginProc(h, t, !0, r(e, "canskip", !0) ? t : void 0), !0;
512
515
  }
513
516
  static stopEndTrans() {
514
- this.#e[TW_NM_TRANS]?.tw?.stop().end();
517
+ this.#e[h]?.tw?.stop().end();
515
518
  }
516
519
  static wait_tsy(e) {
517
- let s = this.#s(e), c = this.#e[s]?.tw;
518
- if (!c) return !1;
519
- let u = () => c.end();
520
- return Reading.beginProc(PID_HD_TW + s, u, !0, argChk_Boolean(e, "canskip", !0) ? u : void 0), new ReadingState_wait4Tag(e), !0;
520
+ let t = this.#s(e), n = this.#e[t]?.tw;
521
+ if (!n) return !1;
522
+ let i = () => n.end();
523
+ return C.beginProc(g + t, i, !0, r(e, "canskip", !0) ? i : void 0), new x(e), !0;
521
524
  }
522
525
  static #s(e) {
523
- let { layer: s = "", id: c, name: l } = e, u = c ? `frm\n${c}` : l ?? s;
524
- if (!u) throw "トゥイーンが指定されていません";
525
- return u;
526
+ let { layer: t = "", id: n, name: r } = e, i = n ? `frm\n${n}` : r ?? t;
527
+ if (!i) throw "トゥイーンが指定されていません";
528
+ return i;
526
529
  }
527
530
  static stop_tsy(e) {
528
- let s = this.#s(e);
529
- return this.#e[s]?.tw?.stop().end(), !1;
531
+ let t = this.#s(e);
532
+ return this.#e[t]?.tw?.stop().end(), !1;
530
533
  }
531
534
  static pause_tsy(e) {
532
- let s = this.#s(e);
533
- return this.#e[s]?.tw?.pause(), !1;
535
+ let t = this.#s(e);
536
+ return this.#e[t]?.tw?.pause(), !1;
534
537
  }
535
538
  static resume_tsy(e) {
536
- let s = this.#s(e);
537
- return this.#e[s]?.tw?.resume(), !1;
539
+ let t = this.#s(e);
540
+ return this.#e[t]?.tw?.resume(), !1;
538
541
  }
539
- }, ReadingState = class e {
540
- static #e = new Group();
542
+ }, v = class e {
543
+ static #e = new l();
541
544
  static init() {
542
- CmnTween.addGrp(e.#e);
545
+ _.addGrp(e.#e);
543
546
  }
544
547
  static #t;
545
548
  static get rs() {
@@ -550,14 +553,14 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
550
553
  }
551
554
  static #n = {};
552
555
  static #r = {};
553
- static setEvt2Fnc(e, s, c) {
554
- e ? this.#r[s] = c : this.#n[s] = c;
556
+ static setEvt2Fnc(e, t, n) {
557
+ e ? this.#r[t] = n : this.#n[t] = n;
555
558
  }
556
559
  static getEvt2Fnc = (e) => this.#n[e] ?? this.#r[e];
557
- static clear_eventer(e, s, c) {
560
+ static clear_eventer(e, t, n) {
558
561
  if (!e.startsWith("dom=")) return;
559
- let l = s ? this.#r[c] : this.#n[c];
560
- l && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", l)), s ? delete this.#r[c] : delete this.#n[c];
562
+ let r = t ? this.#r[n] : this.#n[n];
563
+ r && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", r)), t ? delete this.#r[n] : delete this.#n[n];
561
564
  }
562
565
  static popLocalEvts() {
563
566
  let e = this.#n;
@@ -567,32 +570,32 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
567
570
  this.#n = e;
568
571
  }
569
572
  static clear_event(e) {
570
- let s = argChk_Boolean(e, "global", !1), c = s ? this.#r : this.#n;
571
- for (let [e, s] of Object.entries(c)) e.startsWith("dom=") && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", s));
572
- return s ? this.#r = {} : this.#n = {}, !1;
573
+ let t = r(e, "global", !1), n = t ? this.#r : this.#n;
574
+ for (let [e, t] of Object.entries(n)) e.startsWith("dom=") && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", t));
575
+ return t ? this.#r = {} : this.#n = {}, !1;
573
576
  }
574
577
  static getHtmlElmList(e) {
575
- let s = e.indexOf(":"), c = "";
576
- if (s >= 0) {
577
- let l = e.slice(4, s), u = `const.sn.frm.${l}`;
578
- if (!Reading.val.getVal(`tmp:${u}`, 0)) throw `HTML【${l}】が読み込まれていません`;
579
- let d = document.getElementById(l);
580
- if (!d) throw `HTML【${l}】の要素(id=${l})がありません`;
581
- let f = d.contentWindow;
582
- return c = e.slice(s + 1), {
583
- el: f.document.querySelectorAll(c),
584
- id: l,
585
- sel: c
578
+ let t = e.indexOf(":"), n = "";
579
+ if (t >= 0) {
580
+ let r = e.slice(4, t), i = `const.sn.frm.${r}`;
581
+ if (!C.val.getVal(`tmp:${i}`, 0)) throw `HTML【${r}】が読み込まれていません`;
582
+ let a = document.getElementById(r);
583
+ if (!a) throw `HTML【${r}】の要素(id=${r})がありません`;
584
+ let o = a.contentWindow;
585
+ return n = e.slice(t + 1), {
586
+ el: o.document.querySelectorAll(n),
587
+ id: r,
588
+ sel: n
586
589
  };
587
590
  }
588
- return c = e.slice(4), {
589
- el: document.querySelectorAll(c),
591
+ return n = e.slice(4), {
592
+ el: document.querySelectorAll(n),
590
593
  id: "",
591
- sel: c
594
+ sel: n
592
595
  };
593
596
  }
594
- static waitRsvEvent(e, s) {
595
- Reading.val.saveKidoku(), s ? this.#n.click = this.#n.enter = this.#n.arrowdown = this.#n["wheel.y>0"] = () => s() : (delete this.#n.click, delete this.#n.enter, delete this.#n.arrowdown, delete this.#n["wheel.y>0"]), this.getEvt2Fnc = e ? (e) => this.#n[e] ?? this.#r[e] : (e) => this.#n[e], Reading.scrItr.noticeWait(), CmnLib.debugLog && console.log("🎍 wait event... %o", {
597
+ static waitRsvEvent(e, t) {
598
+ C.val.saveKidoku(), t ? this.#n.click = this.#n.enter = this.#n.arrowdown = this.#n["wheel.y>0"] = () => t() : (delete this.#n.click, delete this.#n.enter, delete this.#n.arrowdown, delete this.#n["wheel.y>0"]), this.getEvt2Fnc = e ? (e) => this.#n[e] ?? this.#r[e] : (e) => this.#n[e], C.scrItr.noticeWait(), i.debugLog && console.log("🎍 wait event... %o", {
596
599
  local: Object.keys(this.#n),
597
600
  global: Object.keys(this.#r)
598
601
  });
@@ -603,38 +606,38 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
603
606
  return;
604
607
  }
605
608
  let e = {};
606
- for (let s of this.aKeysAtPaging) {
607
- let c = this.#r[s];
608
- c && (e[s] = c);
609
+ for (let t of this.aKeysAtPaging) {
610
+ let n = this.#r[t];
611
+ n && (e[t] = n);
609
612
  }
610
- this.getEvt2Fnc = (s) => this.#n[s] ?? e[s];
613
+ this.getEvt2Fnc = (t) => this.#n[t] ?? e[t];
611
614
  }
612
- fire(s, l) {
613
- let u = e.#i.exec(s)?.[0] ?? "", f = s.toLowerCase();
614
- switch (u) {
615
+ fire(t, r) {
616
+ let i = e.#i.exec(t)?.[0] ?? "", o = t.toLowerCase();
617
+ switch (i) {
615
618
  case "click":
616
619
  case "rightclick":
617
620
  case "middleclick":
618
621
  case "enter":
619
622
  case "arrowdown":
620
623
  case "btn":
621
- if (Reading.evtMng.isSkipping) break;
624
+ if (C.evtMng.isSkipping) break;
622
625
  if (!e.isFirstFire()) return;
623
626
  break;
624
627
  }
625
- if (u === "enter") {
626
- let e = Reading.fcs.getFocus();
627
- if (e instanceof Container) {
628
- e.emit(EVNM_CLICK, new PointerEvent(EVNM_CLICK));
628
+ if (i === "enter") {
629
+ let e = C.fcs.getFocus();
630
+ if (e instanceof a) {
631
+ e.emit(n, new PointerEvent(n));
629
632
  return;
630
633
  }
631
634
  }
632
- let p = e.getEvt2Fnc(f);
633
- p && (l.stopImmediatePropagation?.(), !(!f.startsWith("dom=") && Reading.layMng.clickTxtLay()) && p(l));
635
+ let s = e.getEvt2Fnc(o);
636
+ s && (r.stopImmediatePropagation?.(), !(!o.startsWith("dom=") && C.layMng.clickTxtLay()) && s(r));
634
637
  }
635
638
  static #i = /btn|\w+$/;
636
639
  get skip_enabled() {
637
- return Reading.skip_enabled;
640
+ return C.skip_enabled;
638
641
  }
639
642
  isWait = !1;
640
643
  static #a = !1;
@@ -651,117 +654,117 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
651
654
  static INI_STYPAGE = "color: yellow; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;";
652
655
  static aKeysAtPaging = [];
653
656
  static recodePage(e = !1) {
654
- if (!Reading.val.getVal("save:sn.doRecLog")) return;
655
- let { fn: s, idx: c } = Reading.scrItr.nowScrIdx(), l = `${String(c - 1)}:` + s;
656
- if (this.aPage.findIndex((e) => e.key === l) > -1) return;
657
- CmnLib.debugLog && console.log(`📜 %crecodePage === week:${String(e)} lenPage:${String(this.lenPage)} len:${String(this.aPage.length)} POP:${String(this.aPage.at(-1)?.week)}`, "color:#3B0;"), this.aPage.at(-1)?.week && this.aPage.pop();
658
- let { max_len: d } = Reading.cfg.oCfg.log, f = Reading.scrItr.nowMark();
659
- f.hSave["const.sn.sLog"] = "[]", this.aPage.push({
660
- key: l,
657
+ if (!C.val.getVal("save:sn.doRecLog")) return;
658
+ let { fn: t, idx: n } = C.scrItr.nowScrIdx(), r = `${String(n - 1)}:` + t;
659
+ if (this.aPage.findIndex((e) => e.key === r) > -1) return;
660
+ i.debugLog && console.log(`📜 %crecodePage === week:${String(e)} lenPage:${String(this.lenPage)} len:${String(this.aPage.length)} POP:${String(this.aPage.at(-1)?.week)}`, "color:#3B0;"), this.aPage.at(-1)?.week && this.aPage.pop();
661
+ let { max_len: a } = C.cfg.oCfg.log, o = C.scrItr.nowMark();
662
+ o.hSave["const.sn.sLog"] = "[]", this.aPage.push({
663
+ key: r,
661
664
  week: e,
662
- fn: Reading.val.getVal("save:const.sn.scriptFn", s),
663
- index: Reading.val.getVal("save:const.sn.scriptIdx", 0),
664
- mark: f
665
- }) > d && (this.aPage = this.aPage.slice(-d)), this.lenPage = this.aPage.length, CmnLib.debugLog && (console.log(` %clenPage:${String(this.lenPage)} (base=${f.hPages.base.fore.sBkFn} 0=${f.hPages[0].fore.sBkFn} mes=${String(/color: \w+;/.exec((f.hPages.mes?.fore).txs.cssText))})%c mark:%o`, "color:#3B0;", "", f), console.table(this.aPage)), Reading.val.setVal_Nochk("sys", "const.sn.aPageLog", JSON.stringify(this.aPage));
665
+ fn: C.val.getVal("save:const.sn.scriptFn", t),
666
+ index: C.val.getVal("save:const.sn.scriptIdx", 0),
667
+ mark: o
668
+ }) > a && (this.aPage = this.aPage.slice(-a)), this.lenPage = this.aPage.length, i.debugLog && (console.log(` %clenPage:${String(this.lenPage)} (base=${o.hPages.base.fore.sBkFn} 0=${o.hPages[0].fore.sBkFn} mes=${String(/color: \w+;/.exec((o.hPages.mes?.fore).txs.cssText))})%c mark:%o`, "color:#3B0;", "", o), console.table(this.aPage)), C.val.setVal_Nochk("sys", "const.sn.aPageLog", JSON.stringify(this.aPage));
666
669
  }
667
- static playbackPage(e, s) {
668
- this.aPage = JSON.parse(e), this.lenPage = this.aPage.length, this.posPage >= this.lenPage && (this.posPage = this.lenPage - 1), this.styPaging = s;
670
+ static playbackPage(e, t) {
671
+ this.aPage = JSON.parse(e), this.lenPage = this.aPage.length, this.posPage >= this.lenPage && (this.posPage = this.lenPage - 1), this.styPaging = t;
669
672
  }
670
673
  beginProc() {
671
- new ReadingState_proc();
674
+ new b();
672
675
  }
673
676
  endProc() {
674
- new ReadingState_go();
677
+ new y();
675
678
  }
676
- l(s) {
677
- if (!Reading.tagL_enabled) return !1;
678
- if (e.recodePage(!0), Reading.auto_enabled) return s.time = Number(Reading.val.getVal(`sys:sn.auto.msecLineWait${Reading.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(s);
679
- if (Reading.skip_enabled) {
680
- if (!Reading.skip_all && !Reading.scrItr.isNextKidoku) Reading.cancelAutoSkip();
681
- else if ("ps".includes(String(Reading.val.getVal("sys:sn.skip.mode")))) return s.time = 50, this.wait(s);
679
+ l(t) {
680
+ if (!C.tagL_enabled) return !1;
681
+ if (e.recodePage(!0), C.auto_enabled) return t.time = Number(C.val.getVal(`sys:sn.auto.msecLineWait${C.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(t);
682
+ if (C.skip_enabled) {
683
+ if (!C.skip_all && !C.scrItr.isNextKidoku) C.cancelAutoSkip();
684
+ else if ("ps".includes(String(C.val.getVal("sys:sn.skip.mode")))) return t.time = 50, this.wait(t);
682
685
  }
683
- return argChk_Boolean(s, "visible", !0) && (Reading.layMng.breakLine(s), Reading.goTxt()), new ReadingState_wait4Tag(s), !0;
686
+ return r(t, "visible", !0) && (C.layMng.breakLine(t), C.goTxt()), new x(t), !0;
684
687
  }
685
- p(s) {
686
- if (e.recodePage(), Reading.auto_enabled) return s.time = Number(Reading.val.getVal(`sys:sn.auto.msecPageWait${Reading.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(s);
687
- if (Reading.skip_enabled) {
688
- if (!Reading.skip_all && !Reading.scrItr.isNextKidoku) Reading.cancelAutoSkip();
689
- else if (String(Reading.val.getVal("sys:sn.skip.mode")) === "s") return s.time = 50, this.wait(s);
688
+ p(t) {
689
+ if (e.recodePage(), C.auto_enabled) return t.time = Number(C.val.getVal(`sys:sn.auto.msecPageWait${C.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(t);
690
+ if (C.skip_enabled) {
691
+ if (!C.skip_all && !C.scrItr.isNextKidoku) C.cancelAutoSkip();
692
+ else if (String(C.val.getVal("sys:sn.skip.mode")) === "s") return t.time = 50, this.wait(t);
690
693
  }
691
- return argChk_Boolean(s, "visible", !0) && (Reading.layMng.breakPage(s), Reading.goTxt()), new ReadingState_wait4Tag(s), !0;
694
+ return r(t, "visible", !0) && (C.layMng.breakPage(t), C.goTxt()), new x(t), !0;
692
695
  }
693
- s(s) {
694
- return e.recodePage(), Reading.cancelAutoSkip(), new ReadingState_wait4Tag(s), !0;
696
+ s(t) {
697
+ return e.recodePage(), C.cancelAutoSkip(), new x(t), !0;
695
698
  }
696
- wait(c) {
697
- let u = argChk_Num(c, "time", NaN);
698
- if (Reading.skip_enabled) return !Reading.skip_all && !Reading.scrItr.isNextKidoku && Reading.cancelAutoSkip(), !1;
699
- let d = new Tween({}), f = "wait", p = () => {
700
- e.#e.remove(d), Reading.notifyEndProc(f);
699
+ wait(n) {
700
+ let i = t(n, "time", NaN);
701
+ if (C.skip_enabled) return !C.skip_all && !C.scrItr.isNextKidoku && C.cancelAutoSkip(), !1;
702
+ let a = new p({}), o = "wait", s = () => {
703
+ e.#e.remove(a), C.notifyEndProc(o);
701
704
  };
702
- d.to({}, u).onComplete(p).start(), e.#e.add(d);
703
- let m = argChk_Boolean(c, "canskip", !0);
704
- return Reading.beginProc(f, p, !0, m ? p : void 0), !0;
705
+ a.to({}, i).onComplete(s).start(), e.#e.add(a);
706
+ let c = r(n, "canskip", !0);
707
+ return C.beginProc(o, s, !0, c ? s : void 0), !0;
705
708
  }
706
- page(s) {
707
- if (!("clear" in s || "to" in s || "style" in s)) throw "clear,style,to いずれかは必須です";
708
- let { key: c, style: u } = s;
709
- return c && (e.aKeysAtPaging = c.split(",")), u ? (e.styPaging = u, Reading.val.setVal_Nochk("save", "const.sn.styPaging", u), !1) : argChk_Boolean(s, "clear", !1) ? (e.aPage = [], e.lenPage = 0, e.posPage = 0, Reading.val.setVal_Nochk("sys", "const.sn.aPageLog", "[]"), Reading.val.setVal_Nochk("save", "const.sn.styPaging", e.INI_STYPAGE), !1) : !1;
709
+ page(t) {
710
+ if (!("clear" in t || "to" in t || "style" in t)) throw "clear,style,to いずれかは必須です";
711
+ let { key: n, style: i } = t;
712
+ return n && (e.aKeysAtPaging = n.split(",")), i ? (e.styPaging = i, C.val.setVal_Nochk("save", "const.sn.styPaging", i), !1) : r(t, "clear", !1) ? (e.aPage = [], e.lenPage = 0, e.posPage = 0, C.val.setVal_Nochk("sys", "const.sn.aPageLog", "[]"), C.val.setVal_Nochk("save", "const.sn.styPaging", e.INI_STYPAGE), !1) : !1;
710
713
  }
711
714
  static destroy() {
712
715
  e.#e.removeAll(), this.#n = {}, this.#r = {}, this.aPage = [], this.lenPage = 0, this.posPage = 0;
713
716
  }
714
- }, ReadingState_go = class extends ReadingState {
717
+ }, y = class extends v {
715
718
  constructor() {
716
- super(), CmnLib.debugLog && console.log("📖 => %cReadingState_go", "color:#3B0;"), Reading.main.resume();
719
+ super(), i.debugLog && console.log("📖 => %cReadingState_go", "color:#3B0;"), C.main.resume();
717
720
  }
718
- fire(e, s) {}
719
- }, ReadingState_proc = class extends ReadingState {
721
+ fire(e, t) {}
722
+ }, b = class extends v {
720
723
  constructor() {
721
- super(), CmnLib.debugLog && console.log("📖 => %cReadingState_proc", "color:#3B0;");
724
+ super(), i.debugLog && console.log("📖 => %cReadingState_proc", "color:#3B0;");
722
725
  }
723
- fire(e, s) {}
724
- }, ReadingState_wait4Tag = class extends ReadingState {
726
+ fire(e, t) {}
727
+ }, x = class extends v {
725
728
  constructor(e) {
726
- super(), CmnLib.debugLog && console.log("📖 => %cReadingState_wait", "color:#3B0;");
727
- let s = () => {}, c = argChk_Boolean(e, "global", !0);
729
+ super(), i.debugLog && console.log("📖 => %cReadingState_wait", "color:#3B0;");
730
+ let t = () => {}, n = r(e, "global", !0);
728
731
  switch (e[":タグ名"]) {
729
732
  case "wait": return;
730
733
  case "s":
731
- ReadingState.waitRsvEvent(c);
734
+ v.waitRsvEvent(n);
732
735
  return;
733
736
  case "p":
734
- s = () => {
735
- argChk_Boolean(e, "er", !1) && Reading.hTag.er(e), new ReadingState_go();
737
+ t = () => {
738
+ r(e, "er", !1) && C.hTag.er(e), new y();
736
739
  };
737
740
  break;
738
- default: s = () => new ReadingState_go();
741
+ default: t = () => new y();
739
742
  }
740
- ReadingState.waitRsvEvent(c, s);
743
+ v.waitRsvEvent(n, t);
741
744
  }
742
745
  isWait = !0;
743
746
  page(e) {
744
- let s = super.page(e), { to: c } = e;
745
- if (!c) return s;
746
- if (ReadingState.lenPage < 2) return !1;
747
- switch (c) {
747
+ let t = super.page(e), { to: n } = e;
748
+ if (!n) return t;
749
+ if (v.lenPage < 2) return !1;
750
+ switch (n) {
748
751
  case "oldest":
749
- e.to = "prev", ReadingState.posPage = 1;
752
+ e.to = "prev", v.posPage = 1;
750
753
  break;
751
754
  case "newest":
752
755
  case "prev":
753
- e.to = "prev", ReadingState.posPage = ReadingState.lenPage - 1;
756
+ e.to = "prev", v.posPage = v.lenPage - 1;
754
757
  break;
755
758
  default: return !1;
756
759
  }
757
- return ReadingState_page.go(e);
760
+ return S.go(e);
758
761
  }
759
- }, ReadingState_page = class e extends ReadingState {
762
+ }, S = class e extends v {
760
763
  constructor() {
761
- super(), CmnLib.debugLog && console.log("📖 => %cReadingState_page", "color:#3B0;"), Reading.val.setVal_Nochk("tmp", "const.sn.isPaging", !0);
764
+ super(), i.debugLog && console.log("📖 => %cReadingState_page", "color:#3B0;"), C.val.setVal_Nochk("tmp", "const.sn.isPaging", !0);
762
765
  }
763
- static go(s) {
764
- return new e().page(s);
766
+ static go(t) {
767
+ return new e().page(t);
765
768
  }
766
769
  #e = !0;
767
770
  get skip_enabled() {
@@ -769,110 +772,110 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
769
772
  }
770
773
  isWait = !1;
771
774
  beginProc() {
772
- Reading.main.stop();
775
+ C.main.stop();
773
776
  }
774
777
  endProc() {
775
- Reading.main.resume();
778
+ C.main.resume();
776
779
  }
777
780
  l(e) {
778
- return this.#e ? ReadingState.posPage === ReadingState.lenPage - 1 ? (this.#t(), new ReadingState_go().l(e)) : (argChk_Boolean(e, "visible", !0) && Reading.layMng.breakLine(e), Reading.layMng.setAllStyle2TxtLay(ReadingState.styPaging), Reading.goTxt(), ReadingState.aPage[ReadingState.posPage]?.week ? (ReadingState.waitRsvEvent4Paging(), !0) : !1) : super.l(e);
781
+ return this.#e ? v.posPage === v.lenPage - 1 ? (this.#t(), new y().l(e)) : (r(e, "visible", !0) && C.layMng.breakLine(e), C.layMng.setAllStyle2TxtLay(v.styPaging), C.goTxt(), v.aPage[v.posPage]?.week ? (v.waitRsvEvent4Paging(), !0) : !1) : super.l(e);
779
782
  }
780
783
  p(e) {
781
- return this.#e ? ReadingState.posPage === ReadingState.lenPage - 1 ? (this.#t(), new ReadingState_go().p(e)) : (argChk_Boolean(e, "visible", !0) && Reading.layMng.breakPage(e), Reading.layMng.setAllStyle2TxtLay(ReadingState.styPaging), Reading.goTxt(), ReadingState.waitRsvEvent4Paging(), !0) : super.p(e);
784
+ return this.#e ? v.posPage === v.lenPage - 1 ? (this.#t(), new y().p(e)) : (r(e, "visible", !0) && C.layMng.breakPage(e), C.layMng.setAllStyle2TxtLay(v.styPaging), C.goTxt(), v.waitRsvEvent4Paging(), !0) : super.p(e);
782
785
  }
783
786
  s(e) {
784
- return new ReadingState_wait4Tag(e), !0;
787
+ return new x(e), !0;
785
788
  }
786
789
  wait() {
787
790
  return !1;
788
791
  }
789
792
  page(e) {
790
- let { to: s, style: c, clear: l } = e;
791
- if (c || l) return !1;
792
- switch (CmnLib.debugLog && console.log(`📜 %cpage() pos:${String(ReadingState.posPage)}%c len:${String(ReadingState.lenPage)} to:${String(s)}`, "color:#3B0;", ""), s) {
793
+ let { to: t, style: n, clear: r } = e;
794
+ if (n || r) return !1;
795
+ switch (i.debugLog && console.log(`📜 %cpage() pos:${String(v.posPage)}%c len:${String(v.lenPage)} to:${String(t)}`, "color:#3B0;", ""), t) {
793
796
  case "oldest":
794
- if (ReadingState.posPage === 0) return !1;
795
- ReadingState.posPage = 0;
797
+ if (v.posPage === 0) return !1;
798
+ v.posPage = 0;
796
799
  break;
797
800
  case "prev":
798
- if (ReadingState.posPage === 0) return !1;
799
- --ReadingState.posPage;
801
+ if (v.posPage === 0) return !1;
802
+ --v.posPage;
800
803
  break;
801
804
  case "next":
802
- if (ReadingState.posPage === ReadingState.lenPage - 1) return !1;
803
- ++ReadingState.posPage;
805
+ if (v.posPage === v.lenPage - 1) return !1;
806
+ ++v.posPage;
804
807
  break;
805
808
  case "newest":
806
- if (ReadingState.posPage === ReadingState.lenPage - 1) return !1;
807
- ReadingState.posPage = ReadingState.lenPage - 1;
809
+ if (v.posPage === v.lenPage - 1) return !1;
810
+ v.posPage = v.lenPage - 1;
808
811
  break;
809
812
  case "exit":
810
- ReadingState.posPage = ReadingState.lenPage - 1;
813
+ v.posPage = v.lenPage - 1;
811
814
  break;
812
815
  case "load":
813
- ReadingState.lenPage = ReadingState.posPage + 1, ReadingState.aPage = ReadingState.aPage.slice(0, ReadingState.lenPage), this.#t();
816
+ v.lenPage = v.posPage + 1, v.aPage = v.aPage.slice(0, v.lenPage), this.#t();
814
817
  break;
815
- default: throw `属性to「${String(s)}」は異常です`;
818
+ default: throw `属性to「${String(t)}」は異常です`;
816
819
  }
817
- ReadingState.posPage === ReadingState.lenPage - 1 && this.#t();
818
- let d = ReadingState.aPage[ReadingState.posPage];
819
- if (!d) throw `posPage異常:${String(ReadingState.posPage)}`;
820
- let { fn: f, index: p, mark: m } = d;
821
- if (CmnLib.debugLog) {
822
- let e = Reading.scrItr.nowMark(), { week: s } = ReadingState.aPage[ReadingState.posPage] ?? { week: !1 };
823
- console.log(` -- fn:${f} i:${String(p)} pos:${String(ReadingState.posPage)} (base=%c${(e.hPages.base?.fore).sBkFn}%c 0=%c${(e.hPages[0]?.fore).sBkFn}%c mes=%c${String(/color: \w+;/.exec((e.hPages.mes?.fore).txs.cssText))}%c) week:${String(s)} A:${String(ReadingState.posPage === ReadingState.lenPage - 1)}\n styPaging=%c${ReadingState.styPaging}%c\n mark:%o`, "background-color:#3B0; color:#000;", "", "background-color:#B4F; color:#000;", "", "color:#B68;", "", ReadingState.styPaging, "", m);
820
+ v.posPage === v.lenPage - 1 && this.#t();
821
+ let a = v.aPage[v.posPage];
822
+ if (!a) throw `posPage異常:${String(v.posPage)}`;
823
+ let { fn: o, index: s, mark: c } = a;
824
+ if (i.debugLog) {
825
+ let e = C.scrItr.nowMark(), { week: t } = v.aPage[v.posPage] ?? { week: !1 };
826
+ console.log(` -- fn:${o} i:${String(s)} pos:${String(v.posPage)} (base=%c${(e.hPages.base?.fore).sBkFn}%c 0=%c${(e.hPages[0]?.fore).sBkFn}%c mes=%c${String(/color: \w+;/.exec((e.hPages.mes?.fore).txs.cssText))}%c) week:${String(t)} A:${String(v.posPage === v.lenPage - 1)}\n styPaging=%c${v.styPaging}%c\n mark:%o`, "background-color:#3B0; color:#000;", "", "background-color:#B4F; color:#000;", "", "color:#B68;", "", v.styPaging, "", c);
824
827
  }
825
- return Reading.scrItr.loadFromMark({
826
- fn: f,
827
- index: p
828
- }, m);
828
+ return C.scrItr.loadFromMark({
829
+ fn: o,
830
+ index: s
831
+ }, c);
829
832
  }
830
833
  #t() {
831
- Reading.val.setVal_Nochk("tmp", "const.sn.isPaging", !1), this.#e = !1;
834
+ C.val.setVal_Nochk("tmp", "const.sn.isPaging", !1), this.#e = !1;
832
835
  }
833
- }, Reading = class {
834
- static beginProc(s, l, d = !0, f) {
835
- if (CmnLib.debugLog && console.log(`📖.beginProc id:%c${s}%c onNotify:${String(l)} endProc:${String(d)} onClickSkip:${String(f)}`, "color:#3B0;", ""), this.#e(), this.#r = s, l) {
836
- let { promise: e, resolve: s } = Promise.withResolvers();
836
+ }, C = class {
837
+ static beginProc(t, r, a = !0, o) {
838
+ if (i.debugLog && console.log(`📖.beginProc id:%c${t}%c onNotify:${String(r)} endProc:${String(a)} onClickSkip:${String(o)}`, "color:#3B0;", ""), this.#e(), this.#r = t, r) {
839
+ let { promise: e, resolve: t } = Promise.withResolvers();
837
840
  e.then((e) => {
838
- CmnLib.debugLog && console.log(`📖.callBack id:%c${e}%c`, "color:#3B0;", ""), l(), d ? this.endProc(e) : this.#e();
839
- }), this.#n = s;
841
+ i.debugLog && console.log(`📖.callBack id:%c${e}%c`, "color:#3B0;", ""), r(), a ? this.endProc(e) : this.#e();
842
+ }), this.#n = t;
840
843
  }
841
- if (f) {
842
- let l = () => {
843
- this.cancelAutoSkip(), f(), d && this.endProc(s);
844
+ if (o) {
845
+ let r = () => {
846
+ this.cancelAutoSkip(), o(), a && this.endProc(t);
844
847
  };
845
- this.#t.add(this.main.cvs, EVNM_CLICK, (e) => {
846
- e.stopPropagation(), l();
847
- }), this.#t.add(document, EVNM_KEY, (e) => {
848
- e.isComposing || (e.stopPropagation(), l());
849
- }), this.procWheel4wle(this.#t, l);
848
+ this.#t.add(this.main.cvs, n, (e) => {
849
+ e.stopPropagation(), r();
850
+ }), this.#t.add(document, e, (e) => {
851
+ e.isComposing || (e.stopPropagation(), r());
852
+ }), this.procWheel4wle(this.#t, r);
850
853
  }
851
- ReadingState.rs.beginProc();
854
+ v.rs.beginProc();
852
855
  }
853
856
  static #e() {
854
857
  this.#r = "", this.#n = () => {}, this.#t.clear();
855
858
  }
856
- static #t = new EventListenerCtn();
859
+ static #t = new o();
857
860
  static #n = () => {};
858
861
  static notifyEndProc(e) {
859
- CmnLib.debugLog && console.log(`📖.notifyEndProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && this.#n(e);
862
+ i.debugLog && console.log(`📖.notifyEndProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && this.#n(e);
860
863
  }
861
864
  static endProc(e) {
862
- CmnLib.debugLog && console.log(`📖.endProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && (ReadingState.rs.endProc(), this.#e());
865
+ i.debugLog && console.log(`📖.endProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && (v.rs.endProc(), this.#e());
863
866
  }
864
867
  static #r = "";
865
868
  static get procID() {
866
869
  return `RP_${this.scrItr.scriptFn}:${String(this.scrItr.idxToken)}_`;
867
870
  }
868
- static fire(e, s, c = !1) {
869
- c && this.cancelAutoSkip(), ReadingState.rs.fire(e, s);
871
+ static fire(e, t, n = !1) {
872
+ n && this.cancelAutoSkip(), v.rs.fire(e, t);
870
873
  }
871
874
  static get isSkipping() {
872
- return ReadingState.rs.skip_enabled;
875
+ return v.rs.skip_enabled;
873
876
  }
874
877
  static get isWait() {
875
- return ReadingState.rs.isWait;
878
+ return v.rs.isWait;
876
879
  }
877
880
  static tagL_enabled = !0;
878
881
  static skip_all = !1;
@@ -892,27 +895,28 @@ var PID_HD_TW = "tsy nm:", CmnTween = class e {
892
895
  static sndMng;
893
896
  static procWheel4wle;
894
897
  static fcs;
895
- static init(e, s, c, l, u, d, f, p, m) {
896
- this.cfg = e, this.hTag = s, this.main = c, this.val = l, this.scrItr = u, this.layMng = d, this.goTxt = () => d.goTxt(), this.evtMng = f, this.sndMng = p, this.procWheel4wle = m, l.defTmp("sn.tagL.enabled", () => this.tagL_enabled), l.defValTrg("tmp:sn.tagL.enabled", (e, s) => {
897
- this.tagL_enabled = String(s) !== "false";
898
- }), l.defTmp("sn.skip.all", () => this.skip_all), l.defValTrg("tmp:sn.skip.all", (e, s) => {
899
- this.skip_all = String(s) !== "false";
900
- }), l.defTmp("sn.skip.enabled", () => this.skip_enabled), l.defValTrg("tmp:sn.skip.enabled", (e, s) => {
901
- this.skip_enabled = String(s) !== "false";
902
- }), l.defTmp("sn.auto.enabled", () => this.auto_enabled), l.defValTrg("tmp:sn.auto.enabled", (e, s) => {
903
- this.auto_enabled = String(s) !== "false";
904
- }), s.l = (e) => ReadingState.rs.l(e), s.p = (e) => ReadingState.rs.p(e), s.s = (e) => ReadingState.rs.s(e), s.wait = (e) => ReadingState.rs.wait(e), s.waitclick = (e) => ReadingState.rs.s(e), s.page = (e) => ReadingState.rs.page(e), ReadingState.init(), new ReadingState_proc(), s.jump({ fn: "main" });
898
+ static init(e, t, n, r, i, a, o, s, c) {
899
+ this.cfg = e, this.hTag = t, this.main = n, this.val = r, this.scrItr = i, this.layMng = a, this.goTxt = () => a.goTxt(), this.evtMng = o, this.sndMng = s, this.procWheel4wle = c, r.defTmp("sn.tagL.enabled", () => this.tagL_enabled), r.defValTrg("tmp:sn.tagL.enabled", (e, t) => {
900
+ this.tagL_enabled = String(t) !== "false";
901
+ }), r.defTmp("sn.skip.all", () => this.skip_all), r.defValTrg("tmp:sn.skip.all", (e, t) => {
902
+ this.skip_all = String(t) !== "false";
903
+ }), r.defTmp("sn.skip.enabled", () => this.skip_enabled), r.defValTrg("tmp:sn.skip.enabled", (e, t) => {
904
+ this.skip_enabled = String(t) !== "false";
905
+ }), r.defTmp("sn.auto.enabled", () => this.auto_enabled), r.defValTrg("tmp:sn.auto.enabled", (e, t) => {
906
+ this.auto_enabled = String(t) !== "false";
907
+ }), t.l = (e) => v.rs.l(e), t.p = (e) => v.rs.p(e), t.s = (e) => v.rs.s(e), t.wait = (e) => v.rs.wait(e), t.waitclick = (e) => v.rs.s(e), t.page = (e) => v.rs.page(e), v.init(), new b(), t.jump({ fn: "main" });
905
908
  }
906
909
  static setFcs(e) {
907
910
  this.fcs = e;
908
911
  }
909
912
  static destroy() {
910
- ReadingState.destroy();
913
+ v.destroy();
911
914
  }
912
915
  static cancelAutoSkip() {
913
916
  this.tagL_enabled || (this.tagL_enabled = !0, this.val.setVal_Nochk("tmp", "sn.tagL.enabled", !0)), this.skip_enabled && (this.skip_enabled = !1, this.val.setVal_Nochk("tmp", "sn.skip.enabled", !1)), this.auto_enabled && (this.auto_enabled = !1, this.val.setVal_Nochk("tmp", "sn.auto.enabled", !1));
914
917
  }
915
918
  };
916
- export { Group as a, TW_NM_TRANS as i, ReadingState as n, Tween as o, CmnTween as r, Reading as t };
919
+ //#endregion
920
+ export { l as a, h as i, v as n, p as o, _ as r, C as t };
917
921
 
918
922
  //# sourceMappingURL=Reading.js.map