@famibee/skynovel 1.25.10 → 1.27.2

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/app.js CHANGED
@@ -65943,8 +65943,8 @@ class Button extends pixi_js_1.Container {
65943
65943
  this.getBtnBounds = () => __classPrivateFieldGet(this, _Button_rctBtnTxt, "f");
65944
65944
  _Button_rctBtnTxt.set(this, new pixi_js_1.Rectangle);
65945
65945
  _Button_idc.set(this, void 0);
65946
- _Button_sp_b_pic.set(this, null);
65947
- _Button_sp_pic.set(this, null);
65946
+ _Button_sp_b_pic.set(this, undefined);
65947
+ _Button_sp_pic.set(this, undefined);
65948
65948
  _Button_normal.set(this, () => { });
65949
65949
  _Button_hover.set(this, () => false);
65950
65950
  _Button_clicked.set(this, () => { });
@@ -66906,8 +66906,8 @@ class DesignCast {
66906
66906
  'height': 0,
66907
66907
  };
66908
66908
  this.fncLay = () => { };
66909
- this.mov = null;
66910
- this.div = null;
66909
+ this.mov = undefined;
66910
+ this.div = undefined;
66911
66911
  this.lx = 0;
66912
66912
  this.ly = 0;
66913
66913
  this.rect = pixi_js_1.Rectangle.EMPTY;
@@ -66969,9 +66969,9 @@ class DesignCast {
66969
66969
  s.height = `${CmnLib_1.CmnLib.stageH * CmnLib_1.CmnLib.cvsScale}px`;
66970
66970
  }
66971
66971
  destroy() {
66972
- this.div = null;
66972
+ this.div = undefined;
66973
66973
  this.mov?.destroy();
66974
- this.mov = null;
66974
+ this.mov = undefined;
66975
66975
  }
66976
66976
  gethArg() { return this.hArg; }
66977
66977
  sethArg(hArg) {
@@ -68518,12 +68518,12 @@ class FocusMng {
68518
68518
  }
68519
68519
  getFocus() {
68520
68520
  if (__classPrivateFieldGet(this, _FocusMng_idx, "f") < 0)
68521
- return null;
68521
+ return undefined;
68522
68522
  __classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this);
68523
68523
  if (__classPrivateFieldGet(this, _FocusMng_idx, "f") >= __classPrivateFieldGet(this, _FocusMng_aBtn, "f").length)
68524
68524
  __classPrivateFieldSet(this, _FocusMng_idx, 0, "f");
68525
68525
  const b = __classPrivateFieldGet(this, _FocusMng_aBtn, "f")[__classPrivateFieldGet(this, _FocusMng_idx, "f")];
68526
- return b.on() ? b.btn : null;
68526
+ return b.on() ? b.btn : undefined;
68527
68527
  }
68528
68528
  blur() { __classPrivateFieldGet(this, _FocusMng_instances, "m", _FocusMng_allOff).call(this); __classPrivateFieldSet(this, _FocusMng_idx, -1, "f"); globalThis.focus(); }
68529
68529
  }
@@ -68947,7 +68947,7 @@ function splitAmpersand(token) {
68947
68947
  return {
68948
68948
  name: equa[0].replaceAll('=', '==').replaceAll('≠', '!='),
68949
68949
  text: equa[1].replaceAll('=', '==').replaceAll('≠', '!='),
68950
- cast: ((cnt_equa === 3) ? equa[2].trim() : null)
68950
+ cast: ((cnt_equa === 3) ? equa[2].trim() : undefined)
68951
68951
  };
68952
68952
  }
68953
68953
  exports.splitAmpersand = splitAmpersand;
@@ -69089,7 +69089,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69089
69089
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
69090
69090
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69091
69091
  };
69092
- var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
69092
+ var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_appPixi, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_rtTsy, _GrpLayer_spTsy, _GrpLayer_fncRender, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
69093
69093
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69094
69094
  exports.GrpLayer = void 0;
69095
69095
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -69114,6 +69114,9 @@ class GrpLayer extends Layer_1.Layer {
69114
69114
  });
69115
69115
  _GrpLayer_width.set(this, 0);
69116
69116
  _GrpLayer_height.set(this, 0);
69117
+ _GrpLayer_rtTsy.set(this, void 0);
69118
+ _GrpLayer_spTsy.set(this, void 0);
69119
+ _GrpLayer_fncRender.set(this, () => { });
69117
69120
  this.record = () => Object.assign(super.record(), {
69118
69121
  sBkFn: __classPrivateFieldGet(this, _GrpLayer_sBkFn, "f"),
69119
69122
  sBkFace: __classPrivateFieldGet(this, _GrpLayer_sBkFace, "f"),
@@ -69125,9 +69128,10 @@ class GrpLayer extends Layer_1.Layer {
69125
69128
  this.cvsResize = () => { super.cvsResize(); __classPrivateFieldGet(this, _GrpLayer_idc, "f").cvsResize(); };
69126
69129
  }
69127
69130
  }
69128
- static init(main, cfg, sys, sndMng) {
69131
+ static init(main, cfg, appPixi, sys, sndMng) {
69129
69132
  __classPrivateFieldSet(GrpLayer, _a, main, "f", _GrpLayer_main);
69130
69133
  __classPrivateFieldSet(GrpLayer, _a, cfg, "f", _GrpLayer_cfg);
69134
+ __classPrivateFieldSet(GrpLayer, _a, appPixi, "f", _GrpLayer_appPixi);
69131
69135
  __classPrivateFieldSet(GrpLayer, _a, sys, "f", _GrpLayer_sys);
69132
69136
  const fnc = () => {
69133
69137
  const vol = __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_glbVol) * __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_movVol);
@@ -69240,6 +69244,7 @@ class GrpLayer extends Layer_1.Layer {
69240
69244
  const fncLoaded = (hRes) => {
69241
69245
  for (const v of aComp) {
69242
69246
  const sp = __classPrivateFieldGet(GrpLayer, _a, "m", _GrpLayer_mkSprite).call(GrpLayer, v.fn, hRes);
69247
+ sp.name = v.fn;
69243
69248
  parent?.addChild(sp);
69244
69249
  v.fnc(sp);
69245
69250
  }
@@ -69276,6 +69281,40 @@ class GrpLayer extends Layer_1.Layer {
69276
69281
  hve.addEventListener('ended', fnc, { once: true, passive: true });
69277
69282
  return __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_evtMng).waitEvent(() => { hve.pause(); fnc(); }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
69278
69283
  }
69284
+ renderStart() {
69285
+ __classPrivateFieldSet(this, _GrpLayer_rtTsy, pixi_js_1.RenderTexture.create({
69286
+ width: CmnLib_1.CmnLib.stageW,
69287
+ height: CmnLib_1.CmnLib.stageH,
69288
+ }), "f");
69289
+ __classPrivateFieldSet(this, _GrpLayer_spTsy, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _GrpLayer_rtTsy, "f")), "f");
69290
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
69291
+ this.spLay.addChildAt(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"), 0);
69292
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").position.set(-this.spLay.x, -this.spLay.y);
69293
+ let fncRenderFore = () => {
69294
+ const a = this.spLay.alpha;
69295
+ this.spLay.alpha = 1;
69296
+ this.spLay.children.forEach(s => s.visible = true);
69297
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = false;
69298
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).renderer.render(this.spLay, { renderTexture: __classPrivateFieldGet(this, _GrpLayer_rtTsy, "f") });
69299
+ this.spLay.alpha = a;
69300
+ this.spLay.children.forEach(s => s.visible = false);
69301
+ };
69302
+ if (!this.containMovement) {
69303
+ let oldFnc = fncRenderFore;
69304
+ fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
69305
+ }
69306
+ __classPrivateFieldSet(this, _GrpLayer_fncRender, () => {
69307
+ fncRenderFore();
69308
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").visible = true;
69309
+ }, "f");
69310
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.add(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
69311
+ }
69312
+ renderEnd() {
69313
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_appPixi).ticker.remove(__classPrivateFieldGet(this, _GrpLayer_fncRender, "f"));
69314
+ this.spLay.removeChild(__classPrivateFieldGet(this, _GrpLayer_spTsy, "f"));
69315
+ this.spLay.children.forEach(s => s.visible = true);
69316
+ __classPrivateFieldGet(this, _GrpLayer_spTsy, "f").destroy(true);
69317
+ }
69279
69318
  static loadPic2Img(src, img, onload) {
69280
69319
  const oUrl = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[src];
69281
69320
  if (oUrl) {
@@ -69330,7 +69369,7 @@ class GrpLayer extends Layer_1.Layer {
69330
69369
  throw '一つのname(' + name + ')に対して同じ画像を複数割り当てられません';
69331
69370
  const fn = hArg.fn ?? name;
69332
69371
  __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_hFace)[name] = {
69333
- fn: fn,
69372
+ fn,
69334
69373
  dx: (0, CmnLib_1.argChk_Num)(hArg, 'dx', 0) * CmnLib_1.CmnLib.retinaRate,
69335
69374
  dy: (0, CmnLib_1.argChk_Num)(hArg, 'dy', 0) * CmnLib_1.CmnLib.retinaRate,
69336
69375
  blendmode: Layer_1.Layer.getBlendmodeNum(hArg.blendmode || '')
@@ -69371,7 +69410,7 @@ class GrpLayer extends Layer_1.Layer {
69371
69410
  showDesignCast() { __classPrivateFieldGet(this, _GrpLayer_idc, "f").visible = true; }
69372
69411
  }
69373
69412
  exports.GrpLayer = GrpLayer;
69374
- _a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
69413
+ _a = GrpLayer, _GrpLayer_idc = new WeakMap(), _GrpLayer_csvFn = new WeakMap(), _GrpLayer_sBkFn = new WeakMap(), _GrpLayer_sBkFace = new WeakMap(), _GrpLayer_width = new WeakMap(), _GrpLayer_height = new WeakMap(), _GrpLayer_rtTsy = new WeakMap(), _GrpLayer_spTsy = new WeakMap(), _GrpLayer_fncRender = new WeakMap(), _GrpLayer_sortAFrameName = function _GrpLayer_sortAFrameName(aFn) {
69375
69414
  const a_base_name = /([^\d]+)\d+\.(\w+)/.exec(aFn[0]);
69376
69415
  if (!a_base_name)
69377
69416
  return;
@@ -69453,6 +69492,7 @@ _GrpLayer_elc = { value: new EventListenerCtn_1.EventListenerCtn };
69453
69492
  _GrpLayer_hFace = { value: {} };
69454
69493
  _GrpLayer_main = { value: void 0 };
69455
69494
  _GrpLayer_cfg = { value: void 0 };
69495
+ _GrpLayer_appPixi = { value: void 0 };
69456
69496
  _GrpLayer_sys = { value: void 0 };
69457
69497
  _GrpLayer_glbVol = { value: 1 };
69458
69498
  _GrpLayer_movVol = { value: 1 };
@@ -69560,6 +69600,8 @@ class Layer {
69560
69600
  throw `${bm_name} はサポートされない blendmode です`;
69561
69601
  }
69562
69602
  get containMovement() { return false; }
69603
+ renderStart() { }
69604
+ renderEnd() { }
69563
69605
  clearLay(hArg) {
69564
69606
  this.spLay.alpha = 1;
69565
69607
  this.spLay.blendMode = pixi_js_1.BLEND_MODES.NORMAL;
@@ -69697,10 +69739,10 @@ class Layer {
69697
69739
  static setXYByPos(base, pos, ret) {
69698
69740
  if (pos === 'stay')
69699
69741
  return;
69700
- if (base === null)
69701
- throw 'setXYByPos base === null';
69702
- if (ret === null)
69703
- throw 'setXYByPos result === null';
69742
+ if (base === undefined)
69743
+ throw 'setXYByPos base === undefined';
69744
+ if (ret === undefined)
69745
+ throw 'setXYByPos result === undefined';
69704
69746
  const rct_base = base.getBounds();
69705
69747
  const r_absclX = (ret.scale.x < 0) ? -ret.scale.x : ret.scale.x;
69706
69748
  const b_width = (r_absclX === 1) ? rct_base.width : rct_base.width * r_absclX;
@@ -69818,7 +69860,7 @@ class LayerMng {
69818
69860
  _LayerMng_modeLn.set(this, '');
69819
69861
  _LayerMng_modeLnSub.set(this, '');
69820
69862
  this.getFrmDisabled = (id) => __classPrivateFieldGet(this, _LayerMng_frmMng, "f").getFrmDisabled(id);
69821
- _LayerMng_grpCover.set(this, null);
69863
+ _LayerMng_grpCover.set(this, undefined);
69822
69864
  _LayerMng_evtMng.set(this, void 0);
69823
69865
  _LayerMng_cmdTxt.set(this, (cmd, tl = this.currentTxtlayForeNeedErr, _record = true) => tl.tagCh('| 《' + cmd + '》'));
69824
69866
  this.goTxt = () => { };
@@ -69876,7 +69918,7 @@ void main(void) {
69876
69918
  }));
69877
69919
  _LayerMng_spTransFore.set(this, new pixi_js_1.Sprite(__classPrivateFieldGet(this, _LayerMng_rtTransFore, "f")));
69878
69920
  _LayerMng_aBackTransAfter.set(this, []);
69879
- _LayerMng_tiTrans.set(this, { tw: null, resume: false });
69921
+ _LayerMng_tiTrans.set(this, { tw: undefined, resume: false });
69880
69922
  _LayerMng_hTwInf.set(this, {});
69881
69923
  _LayerMng_getTxtLayer.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
69882
69924
  _LayerMng_current.set(this, (_hArg) => { __classPrivateFieldGet(this, _LayerMng_chkTxtLay, "f").call(this); throw 0; });
@@ -69909,7 +69951,7 @@ void main(void) {
69909
69951
  }
69910
69952
  CmnLib_1.CmnLib.cvsResize(cvs);
69911
69953
  TxtLayer_1.TxtLayer.init(cfg, hTag, val, (txt) => this.recText(txt), (me) => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[me.layname].fore === me);
69912
- GrpLayer_1.GrpLayer.init(main, cfg, sys, sndMng);
69954
+ GrpLayer_1.GrpLayer.init(main, cfg, appPixi, sys, sndMng);
69913
69955
  Button_1.Button.init(cfg);
69914
69956
  __classPrivateFieldSet(this, _LayerMng_frmMng, new FrameMng_1.FrameMng(this.cfg, this.hTag, this.appPixi, this.val, main, this.sys, __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")), "f");
69915
69957
  sys.hFactoryCls.grp = () => new GrpLayer_1.GrpLayer;
@@ -69995,7 +70037,7 @@ void main(void) {
69995
70037
  if (__classPrivateFieldGet(this, _LayerMng_grpCover, "f")) {
69996
70038
  __classPrivateFieldGet(this, _LayerMng_stage, "f").removeChild(__classPrivateFieldGet(this, _LayerMng_grpCover, "f"));
69997
70039
  __classPrivateFieldGet(this, _LayerMng_grpCover, "f").destroy();
69998
- __classPrivateFieldSet(this, _LayerMng_grpCover, null, "f");
70040
+ __classPrivateFieldSet(this, _LayerMng_grpCover, undefined, "f");
69999
70041
  }
70000
70042
  if (visible)
70001
70043
  __classPrivateFieldGet(this, _LayerMng_stage, "f").addChild((__classPrivateFieldSet(this, _LayerMng_grpCover, new pixi_js_1.Graphics, "f"))
@@ -70174,7 +70216,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70174
70216
  }));
70175
70217
  else
70176
70218
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
70177
- Promise.all(a).then(async () => {
70219
+ Promise.allSettled(a).then(async () => {
70178
70220
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
70179
70221
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
70180
70222
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -70325,12 +70367,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70325
70367
  });
70326
70368
  __classPrivateFieldGet(this, _LayerMng_back, "f").visible = false;
70327
70369
  };
70328
- if (!aBack.some(lay => lay.containMovement))
70329
- fncRenderBack = () => {
70330
- let oldFnc = fncRenderBack;
70331
- fncRenderBack = () => { };
70332
- oldFnc();
70333
- };
70370
+ if (!aBack.some(lay => lay.containMovement)) {
70371
+ let oldFnc = fncRenderBack;
70372
+ fncRenderBack = () => { fncRenderBack = () => { }; oldFnc(); };
70373
+ }
70334
70374
  __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f").resize(CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
70335
70375
  this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
70336
70376
  let fncRenderFore = () => {
@@ -70338,12 +70378,10 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70338
70378
  this.appPixi.renderer.render(__classPrivateFieldGet(this, _LayerMng_fore, "f"), { renderTexture: __classPrivateFieldGet(this, _LayerMng_rtTransFore, "f") });
70339
70379
  __classPrivateFieldGet(this, _LayerMng_fore, "f").visible = false;
70340
70380
  };
70341
- if (!aFore.some(lay => lay.containMovement))
70342
- fncRenderFore = () => {
70343
- let oldFnc = fncRenderFore;
70344
- fncRenderFore = () => { };
70345
- oldFnc();
70346
- };
70381
+ if (!aFore.some(lay => lay.containMovement)) {
70382
+ let oldFnc = fncRenderFore;
70383
+ fncRenderFore = () => { fncRenderFore = () => { }; oldFnc(); };
70384
+ }
70347
70385
  const fncRender = () => {
70348
70386
  fncRenderBack();
70349
70387
  __classPrivateFieldGet(this, _LayerMng_spTransBack, "f").visible = true;
@@ -70377,9 +70415,9 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70377
70415
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
70378
70416
  if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
70379
70417
  this.main.resume();
70380
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
70418
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
70381
70419
  };
70382
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
70420
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
70383
70421
  const time = (0, CmnLib_1.argChk_Num)(hArg, 'time', 0);
70384
70422
  if (time === 0 || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) {
70385
70423
  comp();
@@ -70415,7 +70453,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70415
70453
  }
70416
70454
  if (!hArg.rule)
70417
70455
  throw 'ruleが指定されていません';
70418
- GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule, null, sp => {
70456
+ GrpLayer_1.GrpLayer.csv2Sprites(hArg.rule, undefined, sp => {
70419
70457
  flt.uniforms.rule = sp.texture;
70420
70458
  sp.destroy();
70421
70459
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.start();
@@ -70472,7 +70510,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70472
70510
  };
70473
70511
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").visible = true;
70474
70512
  __classPrivateFieldGet(this, _LayerMng_spTransFore, "f").alpha = 1;
70475
- const ease = CmnTween_1.CmnTween.ease(hArg.ease);
70476
70513
  const h = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'hmax', 10));
70477
70514
  const v = (0, CmnLib_1.uint)((0, CmnLib_1.argChk_Num)(hArg, 'vmax', 10));
70478
70515
  const fncH = (h === 0)
@@ -70486,7 +70523,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70486
70523
  const tw = new tween_js_1.Tween(__classPrivateFieldGet(this, _LayerMng_spTransFore, "f"))
70487
70524
  .to({ x: 0, y: 0 }, time)
70488
70525
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
70489
- .easing(ease)
70526
+ .easing(CmnTween_1.CmnTween.ease(hArg.ease))
70490
70527
  .onUpdate(() => { fncH(); fncV(); })
70491
70528
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
70492
70529
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
@@ -70499,23 +70536,28 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70499
70536
  __classPrivateFieldGet(this, _LayerMng_tiTrans, "f").tw?.stop();
70500
70537
  if (__classPrivateFieldGet(this, _LayerMng_tiTrans, "f").resume)
70501
70538
  this.main.resume();
70502
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: null, resume: false }, "f");
70539
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: undefined, resume: false }, "f");
70503
70540
  })
70504
70541
  .start();
70505
- __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw: tw, resume: false }, "f");
70542
+ __classPrivateFieldSet(this, _LayerMng_tiTrans, { tw, resume: false }, "f");
70506
70543
  this.appPixi.ticker.add(fncRender);
70507
70544
  return false;
70508
70545
  }, _LayerMng_tsy = function _LayerMng_tsy(hArg) {
70509
70546
  if (!hArg.layer)
70510
70547
  throw 'layerは必須です';
70511
70548
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg);
70512
- const foreLay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore;
70549
+ let foreLay = __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore;
70550
+ let finishBlendLayer = () => { };
70551
+ const isSkip = __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown();
70552
+ if (!isSkip && 'render' in hArg) {
70553
+ foreLay.renderStart();
70554
+ finishBlendLayer = () => foreLay.renderEnd();
70555
+ }
70513
70556
  const hTo = (0, CmnLib_1.cnvTweenArg)(hArg, foreLay);
70514
70557
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
70515
70558
  const tw_nm = hArg.name ?? hArg.layer;
70516
70559
  const tw = new tween_js_1.Tween(foreLay)
70517
- .to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled')
70518
- || __classPrivateFieldGet(this, _LayerMng_evtMng, "f").isSkippingByKeyDown()) ? 0 : 1))
70560
+ .to(hTo, (0, CmnLib_1.argChk_Num)(hArg, 'time', NaN) * (Boolean(this.val.getVal('tmp:sn.skip.enabled') || isSkip) ? 0 : 1))
70519
70561
  .delay((0, CmnLib_1.argChk_Num)(hArg, 'delay', 0))
70520
70562
  .easing(CmnTween_1.CmnTween.ease(hArg.ease))
70521
70563
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
@@ -70524,6 +70566,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70524
70566
  const ti = __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
70525
70567
  if (!ti)
70526
70568
  return;
70569
+ finishBlendLayer();
70527
70570
  delete __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm];
70528
70571
  ti.tw?.stop();
70529
70572
  if (ti.resume)
@@ -70541,7 +70584,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70541
70584
  tw.start();
70542
70585
  const arrive = (0, CmnLib_1.argChk_Boolean)(hArg, 'arrive', false);
70543
70586
  const backlay = (0, CmnLib_1.argChk_Boolean)(hArg, 'backlay', false);
70544
- __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw: tw, resume: false, onEnd: () => {
70587
+ __classPrivateFieldGet(this, _LayerMng_hTwInf, "f")[tw_nm] = { tw, resume: false, onEnd: () => {
70545
70588
  if (arrive)
70546
70589
  Object.assign(foreLay, hTo);
70547
70590
  if (backlay) {
@@ -70587,7 +70630,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70587
70630
  hArg.wait = 0;
70588
70631
  else if ('wait' in hArg)
70589
70632
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
70590
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
70591
70633
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
70592
70634
  const doRecLog = this.val.doRecLog();
70593
70635
  if (!record)
@@ -70595,7 +70637,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70595
70637
  tl.tagCh(txt.replaceAll('[r]', '\n'));
70596
70638
  if (!record)
70597
70639
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
70598
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
70599
70640
  return false;
70600
70641
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
70601
70642
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -70679,7 +70720,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70679
70720
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
70680
70721
  if (!hArg.t)
70681
70722
  throw '[tcy] tは必須です';
70682
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70723
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70683
70724
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
70684
70725
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
70685
70726
  console.group('🥟 [dump_lay]');
@@ -70878,7 +70919,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
70878
70919
  }
70879
70920
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
70880
70921
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
70881
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70922
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70882
70923
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
70883
70924
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
70884
70925
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -71482,14 +71523,14 @@ const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng
71482
71523
  ;
71483
71524
  var BreakState;
71484
71525
  (function (BreakState) {
71485
- BreakState[BreakState["running"] = 0] = "running";
71486
- BreakState[BreakState["wait"] = 1] = "wait";
71487
- BreakState[BreakState["break"] = 2] = "break";
71488
- BreakState[BreakState["breaking"] = 3] = "breaking";
71489
- BreakState[BreakState["step"] = 4] = "step";
71490
- BreakState[BreakState["stepping"] = 5] = "stepping";
71491
- BreakState[BreakState["stepouting"] = 6] = "stepouting";
71492
- BreakState[BreakState["stepout"] = 7] = "stepout";
71526
+ BreakState[BreakState["Running"] = 0] = "Running";
71527
+ BreakState[BreakState["Wait"] = 1] = "Wait";
71528
+ BreakState[BreakState["Break"] = 2] = "Break";
71529
+ BreakState[BreakState["Breaking"] = 3] = "Breaking";
71530
+ BreakState[BreakState["Step"] = 4] = "Step";
71531
+ BreakState[BreakState["Stepping"] = 5] = "Stepping";
71532
+ BreakState[BreakState["StepOuting"] = 6] = "StepOuting";
71533
+ BreakState[BreakState["StepOut"] = 7] = "StepOut";
71493
71534
  })(BreakState || (BreakState = {}));
71494
71535
  ;
71495
71536
  class ScriptIterator {
@@ -71518,14 +71559,14 @@ class ScriptIterator {
71518
71559
  __classPrivateFieldSet(ScriptIterator, _a, {}, "f", _ScriptIterator_hFuncBP);
71519
71560
  this.isBreak = () => false;
71520
71561
  __classPrivateFieldGet(this, _ScriptIterator_hHook, "f").continue({});
71521
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.running, "f");
71562
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
71522
71563
  },
71523
71564
  restart: () => this.isBreak = () => false,
71524
71565
  add_break: o => __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_regBreakPoint).call(this, o.fn, o.o),
71525
71566
  data_break: o => {
71526
- if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.running)
71567
+ if (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f") !== BreakState.Running)
71527
71568
  return;
71528
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.wait, "f");
71569
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Wait, "f");
71529
71570
  this.main.setLoop(false, `変数 ${o.dataId}【${o.old_v}】→【${o.new_v}】データブレーク`);
71530
71571
  this.sys.callHook('stopOnDataBreakpoint', {});
71531
71572
  this.sys.send2Dbg('stopOnDataBreakpoint', {});
@@ -71541,7 +71582,7 @@ class ScriptIterator {
71541
71582
  if (__classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_isIdxOverLast).call(this))
71542
71583
  return;
71543
71584
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
71544
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.breaking, "f");
71585
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Breaking, "f");
71545
71586
  this.main.setLoop(true);
71546
71587
  this.main.resume();
71547
71588
  },
@@ -71552,9 +71593,9 @@ class ScriptIterator {
71552
71593
  const tkn = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get)];
71553
71594
  this.sys.callHook(`stopOnStep${__classPrivateFieldGet(this, _ScriptIterator_REGSTEPIN, "f").test(tkn) ? 'In' : ''}`, {});
71554
71595
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
71555
- __classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.wait
71556
- ? BreakState.step
71557
- : BreakState.stepping, "f");
71596
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Wait
71597
+ ? BreakState.Step
71598
+ : BreakState.Stepping, "f");
71558
71599
  this.main.setLoop(true);
71559
71600
  this.main.resume();
71560
71601
  },
@@ -71567,12 +71608,12 @@ class ScriptIterator {
71567
71608
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_go_stepover).call(this, o);
71568
71609
  },
71569
71610
  pause: () => {
71570
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
71611
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
71571
71612
  this.main.setLoop(false, '一時停止');
71572
71613
  this.sys.send2Dbg('stopOnStep', {});
71573
71614
  },
71574
71615
  stopOnEntry: () => {
71575
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
71616
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
71576
71617
  this.main.setLoop(false, '一時停止');
71577
71618
  this.sys.send2Dbg('stopOnEntry', {});
71578
71619
  },
@@ -71582,7 +71623,7 @@ class ScriptIterator {
71582
71623
  .replace(__classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_REG4CODE_FN), `$1/prj/$2/${__classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f")}$3`));
71583
71624
  this.cnvPath4Dbg = (fn) => this.sys.pathBaseCnvSnPath4Dbg + fn.replace('/crypto_prj/', '/prj/');
71584
71625
  _ScriptIterator_csDepth_macro_esc.set(this, 0);
71585
- _ScriptIterator_breakState.set(this, BreakState.running);
71626
+ _ScriptIterator_breakState.set(this, BreakState.Running);
71586
71627
  this.isBreak = (_token) => false;
71587
71628
  _ScriptIterator_procDebugtag.set(this, (_tag_name) => { });
71588
71629
  _ScriptIterator_evtMng.set(this, void 0);
@@ -71913,12 +71954,12 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
71913
71954
  this.sys.callHook(`stopOnStep${out ? 'Out' : ''}`, {});
71914
71955
  __classPrivateFieldSet(this, _ScriptIterator_csDepth_macro_esc, __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length - (out ? 1 : 0), "f");
71915
71956
  __classPrivateFieldSet(this, _ScriptIterator_idxToken, __classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - __classPrivateFieldGet(this, _ScriptIterator_instances, "a", _ScriptIterator_idxDx4Dbg_get), "f");
71916
- __classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.stepout : BreakState.stepouting, "f");
71957
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, out ? BreakState.StepOut : BreakState.StepOuting, "f");
71917
71958
  this.main.setLoop(true);
71918
71959
  this.main.resume();
71919
71960
  }, _ScriptIterator_idxDx4Dbg_get = function _ScriptIterator_idxDx4Dbg_get() {
71920
- return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.break
71921
- || __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.step ? 1 : 0;
71961
+ return __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Break
71962
+ || __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Step ? 1 : 0;
71922
71963
  }, _ScriptIterator_isIdxOverLast = function _ScriptIterator_isIdxOverLast() {
71923
71964
  if (__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") < __classPrivateFieldGet(this, _ScriptIterator_script, "f").len)
71924
71965
  return false;
@@ -71927,34 +71968,34 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
71927
71968
  return true;
71928
71969
  }, _ScriptIterator_isBreak_base = function _ScriptIterator_isBreak_base(token) {
71929
71970
  switch (__classPrivateFieldGet(this, _ScriptIterator_breakState, "f")) {
71930
- case BreakState.stepouting:
71971
+ case BreakState.StepOuting:
71931
71972
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
71932
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.stepout, "f");
71973
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.StepOut, "f");
71933
71974
  break;
71934
- case BreakState.stepout:
71975
+ case BreakState.StepOut:
71935
71976
  if (__classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f").length !== __classPrivateFieldGet(this, _ScriptIterator_csDepth_macro_esc, "f"))
71936
71977
  break;
71937
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
71978
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
71938
71979
  this.main.setLoop(false, 'ステップ実行');
71939
71980
  this.sys.send2Dbg('stopOnStep', {});
71940
71981
  return true;
71941
- case BreakState.stepping:
71982
+ case BreakState.Stepping:
71942
71983
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
71943
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.step, "f");
71984
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Step, "f");
71944
71985
  break;
71945
- case BreakState.step:
71986
+ case BreakState.Step:
71946
71987
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
71947
71988
  this.main.setLoop(false, 'ステップ実行');
71948
71989
  this.sys.send2Dbg('stopOnStep', {});
71949
71990
  return true;
71950
- case BreakState.breaking:
71991
+ case BreakState.Breaking:
71951
71992
  __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_subHitCondition).call(this);
71952
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.running, "f");
71993
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Running, "f");
71953
71994
  break;
71954
71995
  default:
71955
71996
  {
71956
71997
  if ((0, Grammar_1.tagToken2Name)(token) in __classPrivateFieldGet(ScriptIterator, _a, "f", _ScriptIterator_hFuncBP)) {
71957
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.break, "f");
71998
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
71958
71999
  this.main.setLoop(false, `関数 ${token} ブレーク`);
71959
72000
  this.sys.callHook('stopOnBreakpoint', {});
71960
72001
  this.sys.send2Dbg('stopOnBreakpoint', {});
@@ -71974,8 +72015,8 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
71974
72015
  }
71975
72016
  else if (('hitCondition' in o) && --o.hitCondition > 0)
71976
72017
  break;
71977
- const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.running;
71978
- __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.break, "f");
72018
+ const isBreak = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Running;
72019
+ __classPrivateFieldSet(this, _ScriptIterator_breakState, BreakState.Break, "f");
71979
72020
  this.main.setLoop(false, isBreak ? ((o.condition ? '条件' : 'ヒットカウント') + 'ブレーク') : 'ステップ実行');
71980
72021
  const type = isBreak ? 'stopOnBreakpoint' : 'stopOnStep';
71981
72022
  this.sys.callHook(type, {});
@@ -71989,7 +72030,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
71989
72030
  if (o?.hitCondition)
71990
72031
  --o.hitCondition;
71991
72032
  }, _ScriptIterator_aStack = function _ScriptIterator_aStack() {
71992
- const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.breaking ? 1 : 0;
72033
+ const idx_n = __classPrivateFieldGet(this, _ScriptIterator_breakState, "f") === BreakState.Breaking ? 1 : 0;
71993
72034
  const tkn0 = __classPrivateFieldGet(this, _ScriptIterator_script, "f").aToken[__classPrivateFieldGet(this, _ScriptIterator_idxToken, "f") - 1 + idx_n];
71994
72035
  const fn0 = __classPrivateFieldGet(this, _ScriptIterator_cnvSnPath4Dbg, "f").call(this, __classPrivateFieldGet(this, _ScriptIterator_scriptFn, "f"));
71995
72036
  const tag_name0 = (0, Grammar_1.tagToken2Name)(tkn0);
@@ -72050,7 +72091,7 @@ _a = ScriptIterator, _ScriptIterator_script = new WeakMap(), _ScriptIterator_scr
72050
72091
  for (let i = len - 1; i >= 0; --i) {
72051
72092
  const cs = __classPrivateFieldGet(this, _ScriptIterator_aCallStk, "f")[i];
72052
72093
  const hMp = cs.csArg[':hMp'];
72053
- const from_macro_nm = hMp ? hMp[':タグ名'] : null;
72094
+ const from_macro_nm = hMp ? hMp[':タグ名'] : undefined;
72054
72095
  const call_nm = cs.csArg[':タグ名'] ?? '';
72055
72096
  const lc = __classPrivateFieldGet(this, _ScriptIterator_instances, "m", _ScriptIterator_cnvIdx2lineCol).call(this, __classPrivateFieldGet(this, _ScriptIterator_hScript, "f")[cs.fn], cs.idx);
72056
72097
  console.info(`${len - i}つ前のコール元 fn:${cs.fn} line:${lc.ln} col:${lc.col_s + 1}` + (from_macro_nm ? '([' + from_macro_nm + ']マクロ内)' : ' ') +
@@ -72704,7 +72745,7 @@ class SoundMng {
72704
72745
  [hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
72705
72746
  if (!fn || sound_1.sound.exists(fn))
72706
72747
  return;
72707
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
72748
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
72708
72749
  });
72709
72750
  }
72710
72751
  playLoopFromSaveObj() {
@@ -72784,12 +72825,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72784
72825
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg);
72785
72826
  return false;
72786
72827
  }
72787
- const ease = CmnTween_1.CmnTween.ease(hArg.ease);
72788
72828
  const repeat = (0, CmnLib_1.argChk_Num)(hArg, 'repeat', 1);
72789
72829
  oSb.twFade = new tween_js_1.Tween({ v: oSb.snd.volume })
72790
72830
  .to({ v: vol }, time)
72791
72831
  .delay(delay)
72792
- .easing(ease)
72832
+ .easing(CmnTween_1.CmnTween.ease(hArg.ease))
72793
72833
  .repeat(repeat === 0 ? Infinity : (repeat - 1))
72794
72834
  .yoyo((0, CmnLib_1.argChk_Boolean)(hArg, 'yoyo', false))
72795
72835
  .onUpdate(o => { if (oSb.playing())
@@ -72816,7 +72856,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72816
72856
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
72817
72857
  const fn = hArg.fn;
72818
72858
  if (!fn)
72819
- throw '[playse] fnは必須です(buf=' + buf + ')';
72859
+ throw `[playse] fnは必須です buf:${buf}`;
72820
72860
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
72821
72861
  && __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
72822
72862
  return false;
@@ -72847,11 +72887,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72847
72887
  const snd = sound_1.sound.find(fn);
72848
72888
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
72849
72889
  now_buf: buf,
72850
- snd: snd,
72851
- loop: loop,
72852
- start_ms: start_ms,
72853
- end_ms: end_ms,
72854
- ret_ms: ret_ms,
72890
+ snd,
72891
+ loop,
72892
+ start_ms,
72893
+ end_ms,
72894
+ ret_ms,
72855
72895
  resume: false,
72856
72896
  playing: () => true,
72857
72897
  onend: () => {
@@ -72866,7 +72906,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72866
72906
  },
72867
72907
  };
72868
72908
  const o = {
72869
- loop: loop,
72909
+ loop,
72870
72910
  volume: vol,
72871
72911
  speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
72872
72912
  sprites: {},
@@ -72951,14 +72991,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72951
72991
  }
72952
72992
  if (o2s.start >= d)
72953
72993
  throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
72954
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
72994
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
72955
72995
  };
72956
72996
  }
72957
72997
  __classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
72958
72998
  if (snd) {
72959
72999
  snd.volume = vol;
72960
73000
  if (sp_nm)
72961
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
73001
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
72962
73002
  else if (snd.isPlayable) {
72963
73003
  const ab = snd.options.source;
72964
73004
  if (!(ab instanceof ArrayBuffer)
@@ -72978,13 +73018,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72978
73018
  const old = o.loaded;
72979
73019
  o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
72980
73020
  }
72981
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
73021
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
72982
73022
  return join;
72983
- }, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
73023
+ }, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
72984
73024
  const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
72985
73025
  if (url.slice(-4) !== '.bin') {
72986
73026
  o.url = url;
72987
73027
  const snd = sound_1.Sound.from(o);
73028
+ if (buf)
73029
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
72988
73030
  if (!o.loop)
72989
73031
  sound_1.sound.add(fn, snd);
72990
73032
  return;
@@ -72998,6 +73040,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72998
73040
  .load((_ldr, hRes) => {
72999
73041
  o.source = hRes[fn]?.data;
73000
73042
  const snd = sound_1.Sound.from(o);
73043
+ if (buf)
73044
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
73001
73045
  if (!o.loop)
73002
73046
  sound_1.sound.add(fn, snd);
73003
73047
  });
@@ -73009,9 +73053,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73009
73053
  return false;
73010
73054
  }, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
73011
73055
  const buf = hArg.buf ?? 'SE';
73012
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
73013
73056
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
73014
- __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.snd?.stop();
73057
+ const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
73058
+ if (oSb) {
73059
+ oSb.snd?.stop();
73060
+ oSb.onend();
73061
+ }
73015
73062
  return false;
73016
73063
  }, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
73017
73064
  const buf = hArg.buf ?? 'SE';
@@ -73108,7 +73155,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
73108
73155
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
73109
73156
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
73110
73157
  };
73111
- var _SysApp_hInfo, _SysApp_main;
73158
+ var _SysApp_instances, _SysApp_hInfo, _SysApp_main, _SysApp_dl_app;
73112
73159
  Object.defineProperty(exports, "__esModule", ({ value: true }));
73113
73160
  exports.SysApp = void 0;
73114
73161
  const SysNode_1 = __webpack_require__(/*! ./SysNode */ "./core/src/sn/SysNode.ts");
@@ -73120,6 +73167,7 @@ const { to_app } = window;
73120
73167
  class SysApp extends SysNode_1.SysNode {
73121
73168
  constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
73122
73169
  super(hPlg, arg);
73170
+ _SysApp_instances.add(this);
73123
73171
  _SysApp_hInfo.set(this, {
73124
73172
  getAppPath: '',
73125
73173
  isPackaged: false,
@@ -73127,6 +73175,8 @@ class SysApp extends SysNode_1.SysNode {
73127
73175
  userData: '',
73128
73176
  getVersion: '',
73129
73177
  env: {},
73178
+ platform: '',
73179
+ arch: '',
73130
73180
  screenResolutionX: 0,
73131
73181
  screenResolutionY: 0,
73132
73182
  });
@@ -73267,19 +73317,31 @@ class SysApp extends SysNode_1.SysNode {
73267
73317
  if (CmnLib_1.CmnLib.debugLog)
73268
73318
  DebugMng_1.DebugMng.myTrace(`[update_check] url=${url}`, 'D');
73269
73319
  (async () => {
73270
- const res = await this.fetch(url + `latest${CmnLib_1.CmnLib.isMac ? '-mac' : ''}.yml`);
73271
- if (!res.ok) {
73320
+ let oIdx = {};
73321
+ let sYml = '';
73322
+ let netver = '';
73323
+ const resIdxJS = await this.fetch(url + '_index.json');
73324
+ if (resIdxJS.ok) {
73272
73325
  if (CmnLib_1.CmnLib.debugLog)
73273
- DebugMng_1.DebugMng.myTrace(`[update_check] [update_check] .ymlが見つかりません`);
73274
- return;
73326
+ DebugMng_1.DebugMng.myTrace(`[update_check] _index.jsonを取得しました`, 'D');
73327
+ oIdx = await resIdxJS.json();
73328
+ netver = oIdx.version;
73329
+ }
73330
+ else {
73331
+ const resYml = await this.fetch(url + `latest${CmnLib_1.CmnLib.isMac ? '-mac' : ''}.yml`);
73332
+ if (!resYml.ok) {
73333
+ if (CmnLib_1.CmnLib.debugLog)
73334
+ DebugMng_1.DebugMng.myTrace(`[update_check] [update_check] .ymlが見つかりません`);
73335
+ return;
73336
+ }
73337
+ if (CmnLib_1.CmnLib.debugLog)
73338
+ DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
73339
+ sYml = await resYml.text();
73340
+ const mv = /version: (.+)/.exec(sYml);
73341
+ if (!mv)
73342
+ throw `[update_check] .yml に version が見つかりません`;
73343
+ netver = mv[1];
73275
73344
  }
73276
- if (CmnLib_1.CmnLib.debugLog)
73277
- DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
73278
- const txtYml = await res.text();
73279
- const mv = /version: (.+)/.exec(txtYml);
73280
- if (!mv)
73281
- throw `[update_check] .yml に version が見つかりません`;
73282
- const netver = mv[1];
73283
73345
  const appver = __classPrivateFieldGet(this, _SysApp_hInfo, "f").getVersion;
73284
73346
  if (CmnLib_1.CmnLib.debugLog)
73285
73347
  DebugMng_1.DebugMng.myTrace(`[update_check] 現在ver=${appver} 新規ver=${netver}`, 'D');
@@ -73288,39 +73350,65 @@ class SysApp extends SysNode_1.SysNode {
73288
73350
  DebugMng_1.DebugMng.myTrace(`[update_check] バージョン更新なし`, 'I');
73289
73351
  return;
73290
73352
  }
73353
+ const mbo = {
73354
+ title: 'アプリ更新',
73355
+ icon: (__classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath + '/app/icon.png'),
73356
+ buttons: ['OK', 'Cancel'],
73357
+ defaultId: 0,
73358
+ cancelId: 1,
73359
+ message: `アプリ【${this.cfg.oCfg.book.title}】に更新があります。\nダウンロードしますか?`,
73360
+ detail: `現在 NOW ver ${appver}\n新規 NEW ver ${netver}`,
73361
+ };
73362
+ const di = await to_app.showMessageBox(mbo);
73363
+ if (di.response > 0)
73364
+ return;
73291
73365
  if (CmnLib_1.CmnLib.debugLog)
73292
73366
  DebugMng_1.DebugMng.myTrace(`[update_check] アプリダウンロード開始`, 'D');
73293
- const mp = /path: (.+)/.exec(txtYml);
73294
- if (!mp)
73295
- throw `[update_check] .yml に path が見つかりません`;
73296
- const path = mp[1];
73297
- if (CmnLib_1.CmnLib.debugLog)
73298
- DebugMng_1.DebugMng.myTrace(`[update_check] path=${path}`, 'D');
73299
- const mc = /sha512: (.+)/.exec(txtYml);
73300
- if (!mc)
73301
- throw `[update_check] .yml sha512 が見つかりません`;
73302
- const sha = mc[1];
73303
- if (CmnLib_1.CmnLib.debugLog)
73304
- DebugMng_1.DebugMng.myTrace(`[update_check] sha=${sha}=`, 'D');
73305
- const res_dl = await this.fetch(url + path);
73306
- if (!res_dl.ok) {
73367
+ if (resIdxJS.ok) {
73368
+ const key = __classPrivateFieldGet(this, _SysApp_hInfo, "f").platform + '_' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").arch;
73369
+ let pa = oIdx[key];
73370
+ if (pa)
73371
+ await __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, url, key + '-' + pa.cn, pa.path);
73372
+ else {
73373
+ let d = '';
73374
+ const aApp = [];
73375
+ const regOldSameKey = new RegExp('^' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").platform + '_');
73376
+ for (const k in oIdx) {
73377
+ if (!regOldSameKey.test(k))
73378
+ continue;
73379
+ const ap = oIdx[k];
73380
+ d += '\n- ' + ap.path;
73381
+ aApp.push({ url, urlApp: k + '-' + ap.cn, fn: String(ap.path) });
73382
+ }
73383
+ mbo.message = `CPU = ${__classPrivateFieldGet(this, _SysApp_hInfo, "f").arch}\nに対応するファイルが見つかりません。同じOSのファイルをすべてダウンロードしますか?`;
73384
+ mbo.detail = aApp.length + ' 個ファイルがあります' + d;
73385
+ const di = await to_app.showMessageBox(mbo);
73386
+ if (di.response > 0)
73387
+ return;
73388
+ await Promise.allSettled(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
73389
+ }
73390
+ }
73391
+ else {
73392
+ const mp = /path: (.+)/.exec(sYml);
73393
+ if (!mp)
73394
+ throw `[update_check] path が見つかりません`;
73395
+ const path = mp[1];
73307
73396
  if (CmnLib_1.CmnLib.debugLog)
73308
- DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルが見つかりません url=${url + path}`);
73309
- return;
73397
+ DebugMng_1.DebugMng.myTrace(`[update_check] path=${path}`, 'D');
73398
+ const mc = /sha512: (.+)/.exec(sYml);
73399
+ if (!mc)
73400
+ throw `[update_check] sha512 が見つかりません`;
73401
+ const sha = mc[1];
73402
+ if (CmnLib_1.CmnLib.debugLog)
73403
+ DebugMng_1.DebugMng.myTrace(`[update_check] sha=${sha}=`, 'D');
73404
+ const mm = /(.+)(\.\w+)/.exec(path) ?? ['', '', ''];
73405
+ await __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, url, mm[1] + '-' + __classPrivateFieldGet(this, _SysApp_hInfo, "f").arch + mm[2], path);
73310
73406
  }
73311
- const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + path;
73312
- if (CmnLib_1.CmnLib.debugLog)
73313
- DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
73314
- const b = await res_dl.blob();
73315
- const url2 = URL.createObjectURL(b);
73316
- const a = document.createElement('a');
73317
- document.body.appendChild(a);
73318
- a.download = path;
73319
- a.href = url2;
73320
- a.click();
73321
- a.remove();
73322
73407
  if (CmnLib_1.CmnLib.debugLog)
73323
73408
  DebugMng_1.DebugMng.myTrace(`アプリファイルを保存しました`, 'D');
73409
+ mbo.buttons.pop();
73410
+ mbo.message = `アプリ【${this.cfg.oCfg.book.title}】の更新パッケージを\nダウンロードしました`;
73411
+ to_app.showMessageBox(mbo);
73324
73412
  })();
73325
73413
  return false;
73326
73414
  };
@@ -73403,7 +73491,21 @@ class SysApp extends SysNode_1.SysNode {
73403
73491
  titleSub(title) { to_app.win_setTitle(title); }
73404
73492
  }
73405
73493
  exports.SysApp = SysApp;
73406
- _SysApp_hInfo = new WeakMap(), _SysApp_main = new WeakMap();
73494
+ _SysApp_hInfo = new WeakMap(), _SysApp_main = new WeakMap(), _SysApp_instances = new WeakSet(), _SysApp_dl_app = async function _SysApp_dl_app(url, urlApp, fn) {
73495
+ if (CmnLib_1.CmnLib.debugLog)
73496
+ DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルDL試行... url=${url + urlApp}`, 'D');
73497
+ const res = await this.fetch(url + urlApp);
73498
+ if (!res.ok) {
73499
+ if (CmnLib_1.CmnLib.debugLog)
73500
+ DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルが見つかりません url=${url + fn}`);
73501
+ return;
73502
+ }
73503
+ const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + fn;
73504
+ if (CmnLib_1.CmnLib.debugLog)
73505
+ DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
73506
+ const ab = await res.arrayBuffer();
73507
+ await this.writeFileSync(pathDL, new DataView(ab));
73508
+ };
73407
73509
 
73408
73510
 
73409
73511
  /***/ }),
@@ -73442,7 +73544,7 @@ class SysBase {
73442
73544
  this.reso4frame = 1;
73443
73545
  this.data = { sys: {}, mark: {}, kidoku: {} };
73444
73546
  this.extPort = 3776;
73445
- _SysBase_sk.set(this, null);
73547
+ _SysBase_sk.set(this, undefined);
73446
73548
  _SysBase_hHook.set(this, {
73447
73549
  auth: o => {
73448
73550
  if (o.t !== this.cfg.oCfg.debuger_token) {
@@ -73648,7 +73750,7 @@ class SysBase {
73648
73750
  }
73649
73751
  end() {
73650
73752
  __classPrivateFieldGet(this, _SysBase_sk, "f")?.disconnect();
73651
- __classPrivateFieldSet(this, _SysBase_sk, null, "f");
73753
+ __classPrivateFieldSet(this, _SysBase_sk, undefined, "f");
73652
73754
  }
73653
73755
  toast(nm) {
73654
73756
  const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
@@ -73815,7 +73917,7 @@ class TxtLayer extends Layer_1.Layer {
73815
73917
  _TxtLayer_b_color.set(this, 0x000000);
73816
73918
  _TxtLayer_b_alpha.set(this, 0);
73817
73919
  _TxtLayer_b_alpha_isfixed.set(this, false);
73818
- _TxtLayer_b_do.set(this, null);
73920
+ _TxtLayer_b_do.set(this, undefined);
73819
73921
  _TxtLayer_b_pic.set(this, '');
73820
73922
  _TxtLayer_txs.set(this, new TxtStage_1.TxtStage(this.spLay, () => this.canFocus()));
73821
73923
  _TxtLayer_rbSpl.set(this, new RubySpliter_1.RubySpliter);
@@ -74071,7 +74173,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74071
74173
  _TxtLayer_cumDelay.set(this, 0);
74072
74174
  _TxtLayer_firstCh.set(this, true);
74073
74175
  _TxtLayer_aSpan.set(this, []);
74074
- _TxtLayer_aSpan_bk.set(this, null);
74176
+ _TxtLayer_aSpan_bk.set(this, undefined);
74075
74177
  _TxtLayer_aSpan_link.set(this, '');
74076
74178
  _TxtLayer_hSpanBk.set(this, {
74077
74179
  ch_in_style: '',
@@ -74095,8 +74197,8 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74095
74197
  this.record = () => Object.assign(super.record(), {
74096
74198
  enabled: this.enabled,
74097
74199
  r_align: __classPrivateFieldGet(this, _TxtLayer_r_align, "f"),
74098
- b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") === null)
74099
- ? null
74200
+ b_do: (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") === undefined)
74201
+ ? undefined
74100
74202
  : (__classPrivateFieldGet(this, _TxtLayer_b_do, "f") instanceof pixi_js_1.Sprite ? 'Sprite' : 'Graphics'),
74101
74203
  b_pic: __classPrivateFieldGet(this, _TxtLayer_b_pic, "f"),
74102
74204
  b_color: __classPrivateFieldGet(this, _TxtLayer_b_color, "f"),
@@ -74184,7 +74286,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74184
74286
  destroy() {
74185
74287
  if (__classPrivateFieldGet(this, _TxtLayer_b_do, "f")) {
74186
74288
  this.spLay.removeChild(__classPrivateFieldGet(this, _TxtLayer_b_do, "f")).destroy();
74187
- __classPrivateFieldSet(this, _TxtLayer_b_do, null, "f");
74289
+ __classPrivateFieldSet(this, _TxtLayer_b_do, undefined, "f");
74188
74290
  }
74189
74291
  this.clearText();
74190
74292
  __classPrivateFieldGet(this, _TxtLayer_txs, "f").destroy();
@@ -74281,7 +74383,7 @@ ${__classPrivateFieldGet(this, _TxtLayer_fncFFSStyle, "f").call(this, tx)}`;
74281
74383
  __classPrivateFieldSet(this, _TxtLayer_cumDelay, 0, "f");
74282
74384
  __classPrivateFieldSet(this, _TxtLayer_firstCh, true, "f");
74283
74385
  __classPrivateFieldSet(this, _TxtLayer_aSpan, [], "f");
74284
- __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, null, "f");
74386
+ __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
74285
74387
  __classPrivateFieldSet(this, _TxtLayer_page_text, '', "f");
74286
74388
  __classPrivateFieldGet(TxtLayer, _a, "f", _TxtLayer_recText).call(TxtLayer, '', true);
74287
74389
  }
@@ -74572,7 +74674,7 @@ _a = TxtLayer, _TxtLayer_b_color = new WeakMap(), _TxtLayer_b_alpha = new WeakMa
74572
74674
  return;
74573
74675
  __classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f").push(__classPrivateFieldGet(this, _TxtLayer_aSpan, "f"), '</span>');
74574
74676
  __classPrivateFieldSet(this, _TxtLayer_aSpan, Array.prototype.concat.apply([], __classPrivateFieldGet(this, _TxtLayer_aSpan_bk, "f")), "f");
74575
- __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, null, "f");
74677
+ __classPrivateFieldSet(this, _TxtLayer_aSpan_bk, undefined, "f");
74576
74678
  __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_in).call(this, { in_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_in_style });
74577
74679
  __classPrivateFieldGet(this, _TxtLayer_instances, "m", _TxtLayer_set_ch_out).call(this, { out_style: __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").ch_out_style });
74578
74680
  __classPrivateFieldSet(this, _TxtLayer_r_align, __classPrivateFieldGet(this, _TxtLayer_hSpanBk, "f").r_align, "f");
@@ -74648,18 +74750,18 @@ class TxtStage extends pixi_js_1.Container {
74648
74750
  _TxtStage_isTategaki.set(this, false);
74649
74751
  _TxtStage_padTx4x.set(this, 0);
74650
74752
  _TxtStage_padTx4y.set(this, 0);
74651
- _TxtStage_ch_filter.set(this, void 0);
74753
+ _TxtStage_ch_filter.set(this, undefined);
74652
74754
  _TxtStage_aSpTw.set(this, []);
74653
74755
  _TxtStage_aRect.set(this, []);
74654
74756
  _TxtStage_lenHtmTxt.set(this, 0);
74655
- _TxtStage_beforeHTMLElm.set(this, null);
74757
+ _TxtStage_beforeHTMLElm.set(this, undefined);
74656
74758
  _TxtStage_REGDS.set(this, /animation\-duration: (?<ms>\d+)ms;/);
74657
74759
  _TxtStage_fncEndChIn.set(this, () => { });
74658
74760
  _TxtStage_isChInIng.set(this, false);
74659
74761
  _TxtStage_lh_half.set(this, 0);
74660
74762
  _TxtStage_fi_easing.set(this, 'Quadratic.Out');
74661
74763
  _TxtStage_fo_easing.set(this, 'Quadratic.Out');
74662
- _TxtStage_sss.set(this, null);
74764
+ _TxtStage_sss.set(this, undefined);
74663
74765
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").classList.add('sn_tx');
74664
74766
  __classPrivateFieldGet(this, _TxtStage_htmTxt, "f").style.position = 'absolute';
74665
74767
  __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_cvs).parentElement.appendChild(__classPrivateFieldGet(this, _TxtStage_htmTxt, "f"));
@@ -74948,7 +75050,7 @@ class TxtStage extends pixi_js_1.Container {
74948
75050
  __classPrivateFieldGet(this, _TxtStage_fncEndChIn, "f").call(this);
74949
75051
  return;
74950
75052
  }
74951
- let le = null;
75053
+ let le = undefined;
74952
75054
  for (let i = len_chs - 1; i >= 0; --i) {
74953
75055
  const v = chs[i];
74954
75056
  if (v.className === 'sn_ch')
@@ -75120,7 +75222,7 @@ class TxtStage extends pixi_js_1.Container {
75120
75222
  snapshot_end() {
75121
75223
  if (__classPrivateFieldGet(this, _TxtStage_sss, "f")) {
75122
75224
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").removeChild(__classPrivateFieldGet(this, _TxtStage_sss, "f"));
75123
- __classPrivateFieldSet(this, _TxtStage_sss, null, "f");
75225
+ __classPrivateFieldSet(this, _TxtStage_sss, undefined, "f");
75124
75226
  }
75125
75227
  }
75126
75228
  makeDesignCast(gdc) {
@@ -75323,7 +75425,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75323
75425
  };
75324
75426
  function resolveAll() {
75325
75427
  return readAll()
75326
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
75428
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
75327
75429
  .then(cssStrings => cssStrings.join('\n'));
75328
75430
  }
75329
75431
  function readAll() {
@@ -75427,7 +75529,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75427
75529
  .easing(ease)
75428
75530
  .delay((add.wait ?? 0) + (arg.delay ?? 0))
75429
75531
  .onComplete(() => {
75430
- st.tw = null;
75532
+ st.tw = undefined;
75431
75533
  })
75432
75534
  .start(),
75433
75535
  };