@shimotsuki/core 3.0.41 → 3.0.43

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.
@@ -1,16 +1,16 @@
1
1
  import e from "@babel/runtime-corejs3/core-js/global-this";
2
2
 
3
- import { AudioSource as t, _decorator as i, AudioClip as n, error as o, Node as s, director as r, log as a, Component as l, Prefab as c, instantiate as h, isValid as u, Layers as d, view as p, Widget as f, v3 as m, tween as _, Enum as y, game as g, Label as b, UIOpacity as v, Tween as C, BlockInputEvents as E, Button as S, Game as w, Director as A, assetManager as I, warn as O, AsyncDelegate as T, Asset as k, resources as R, sys as M, SpriteFrame as N, Sprite as U } from "cc";
3
+ import { AudioSource as t, _decorator as i, AudioClip as n, error as o, Node as s, director as r, log as a, Component as l, Prefab as c, instantiate as h, isValid as u, Layers as d, view as p, Widget as f, v3 as m, tween as _, Enum as g, game as y, Label as b, UIOpacity as v, Tween as C, BlockInputEvents as E, Button as S, Game as w, Director as A, assetManager as I, warn as O, AsyncDelegate as T, Asset as k, resources as R, sys as M, SpriteFrame as U, Sprite as N } from "cc";
4
4
 
5
5
  import D from "@babel/runtime-corejs3/core-js-stable/reflect/get";
6
6
 
7
- import F from "@babel/runtime-corejs3/core-js-stable/reflect/set";
7
+ import x from "@babel/runtime-corejs3/core-js-stable/reflect/set";
8
8
 
9
- import L from "@babel/runtime-corejs3/core-js-stable/object/assign";
9
+ import j from "@babel/runtime-corejs3/core-js-stable/object/assign";
10
10
 
11
- import x from "@babel/runtime-corejs3/core-js-stable/promise";
11
+ import F from "@babel/runtime-corejs3/core-js-stable/promise";
12
12
 
13
- import j from "eventemitter3";
13
+ import L from "eventemitter3";
14
14
 
15
15
  import B from "@babel/runtime-corejs3/core-js-stable/instance/includes";
16
16
 
@@ -36,17 +36,17 @@ import Z from "@babel/runtime-corejs3/core-js-stable/instance/map";
36
36
 
37
37
  import Y from "@babel/runtime-corejs3/core-js-stable/array/from";
38
38
 
39
- import ee from "@babel/runtime-corejs3/core-js-stable/date/now";
39
+ import ee from "@babel/runtime-corejs3/core-js-stable/instance/every";
40
40
 
41
- import te from "@babel/runtime-corejs3/core-js-stable/instance/every";
41
+ import { SocketConnectStatus as te } from "pitayaclient";
42
42
 
43
- import { SocketConnectStatus as ie } from "pitayaclient";
43
+ import { DEBUG as ie, WECHAT as ne, PREVIEW as oe } from "cc/env";
44
44
 
45
- import { DEBUG as ne, WECHAT as oe, PREVIEW as se } from "cc/env";
45
+ import { SocialGameClient as se } from "sgc";
46
46
 
47
- import { SocialGameClient as re } from "sgc";
47
+ import re from "crypto-es";
48
48
 
49
- import ae from "crypto-es";
49
+ import ae from "@babel/runtime-corejs3/core-js-stable/date/now";
50
50
 
51
51
  import le from "@babel/runtime-corejs3/core-js-stable/set-interval";
52
52
 
@@ -67,7 +67,7 @@ const {ccclass: ue, menu: de} = i;
67
67
  let pe = class AudioEffect extends CommonAudio {
68
68
  effects=(() => new G)();
69
69
  load(e, t) {
70
- return new x((i, o) => {
70
+ return new F((i, o) => {
71
71
  let s = null;
72
72
  let r;
73
73
  if (t !== undefined) {
@@ -111,7 +111,7 @@ class AudioMusic extends CommonAudio {
111
111
  this.currentTime = e * this.duration;
112
112
  }
113
113
  load(e, t) {
114
- return new x((i, s) => {
114
+ return new F((i, s) => {
115
115
  let r = null;
116
116
  let a;
117
117
  if (t !== undefined) {
@@ -334,13 +334,13 @@ class AudioManager extends BaseManager {
334
334
  }
335
335
  }
336
336
 
337
- function ye(e, t, i, n) {
337
+ function ge(e, t, i, n) {
338
338
  var o = arguments.length, s = o < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, i) : n, r;
339
339
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") s = Reflect.decorate(e, t, i, n); else for (var a = e.length - 1; a >= 0; a--) if (r = e[a]) s = (o < 3 ? r(s) : o > 3 ? r(t, i, s) : r(t, i)) || s;
340
340
  return o > 3 && s && Object.defineProperty(t, i, s), s;
341
341
  }
342
342
 
343
- function ge(e, t) {
343
+ function ye(e, t) {
344
344
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(e, t);
345
345
  }
346
346
 
@@ -479,12 +479,12 @@ class BaseComponent extends l {
479
479
  }
480
480
  setUpdateData(e) {
481
481
  if (!this.data) return;
482
- e && L(this.data, this.toPlainObject(e));
482
+ e && j(this.data, this.toPlainObject(e));
483
483
  return this;
484
484
  }
485
485
  setUpdateProps(e) {
486
486
  if (!this.props) return;
487
- e && L(this.props, this.toPlainObject(e));
487
+ e && j(this.props, this.toPlainObject(e));
488
488
  return this;
489
489
  }
490
490
  toPlainObject(e) {
@@ -625,7 +625,7 @@ class UILayer extends BaseComponent {
625
625
  }, o);
626
626
  }
627
627
  deftween(e, t, i, n) {
628
- return new x((i, n) => {
628
+ return new F((i, n) => {
629
629
  _(this.node).to(e, t).call(() => {
630
630
  i();
631
631
  }).start();
@@ -670,7 +670,7 @@ class AudioSourceBaseComponent extends BaseComponent {
670
670
  }
671
671
  playAudio() {
672
672
  const {switchEffect: e, switchMusic: t} = this.cat.audio;
673
- if (!this.audioSource.playing && (this.type === Se.BGM ? t : e) && !g._paused) this.audioSource.play();
673
+ if (!this.audioSource.playing && (this.type === Se.BGM ? t : e) && !y._paused) this.audioSource.play();
674
674
  }
675
675
  onPlayEffectHandler() {}
676
676
  onStopEffectHandler() {
@@ -686,27 +686,27 @@ class AudioSourceBaseComponent extends BaseComponent {
686
686
  }
687
687
  }
688
688
 
689
- ye([ Ee({
689
+ ge([ Ee({
690
690
  tooltip: `类型:\n EFFECT 音效\n BGM 音乐`,
691
- type: y(Se)
692
- }), ge("design:type", Number) ], AudioSourceBaseComponent.prototype, "type", void 0);
691
+ type: g(Se)
692
+ }), ye("design:type", Number) ], AudioSourceBaseComponent.prototype, "type", void 0);
693
693
 
694
- ye([ Ee({
694
+ ge([ Ee({
695
695
  tooltip: "音源",
696
696
  type: n
697
- }), ge("design:type", typeof (ve = typeof n !== "undefined" && n) === "function" ? ve : Object) ], AudioSourceBaseComponent.prototype, "clip", void 0);
697
+ }), ye("design:type", typeof (ve = typeof n !== "undefined" && n) === "function" ? ve : Object) ], AudioSourceBaseComponent.prototype, "clip", void 0);
698
698
 
699
- ye([ Ee({
699
+ ge([ Ee({
700
700
  tooltip: "循环"
701
- }), ge("design:type", Boolean) ], AudioSourceBaseComponent.prototype, "loop", void 0);
701
+ }), ye("design:type", Boolean) ], AudioSourceBaseComponent.prototype, "loop", void 0);
702
702
 
703
- ye([ Ee({
703
+ ge([ Ee({
704
704
  tooltip: "音量"
705
- }), ge("design:type", Number) ], AudioSourceBaseComponent.prototype, "volume", void 0);
705
+ }), ye("design:type", Number) ], AudioSourceBaseComponent.prototype, "volume", void 0);
706
706
 
707
- ye([ Ee({
707
+ ge([ Ee({
708
708
  tooltip: "是否启用自动播放"
709
- }), ge("design:type", Boolean) ], AudioSourceBaseComponent.prototype, "playOnAwake", void 0);
709
+ }), ye("design:type", Boolean) ], AudioSourceBaseComponent.prototype, "playOnAwake", void 0);
710
710
 
711
711
  var we;
712
712
 
@@ -737,7 +737,7 @@ class AudioSourceUILayer extends UILayer {
737
737
  }
738
738
  playAudio() {
739
739
  const {switchEffect: e, switchMusic: t} = this.cat.audio;
740
- if (!this.audioSource.playing && (this.type === Se.BGM ? t : e) && !g._paused) this.audioSource.play();
740
+ if (!this.audioSource.playing && (this.type === Se.BGM ? t : e) && !y._paused) this.audioSource.play();
741
741
  }
742
742
  onPlayEffectHandler() {}
743
743
  onStopEffectHandler() {
@@ -753,31 +753,31 @@ class AudioSourceUILayer extends UILayer {
753
753
  }
754
754
  }
755
755
 
756
- ye([ Ie({
756
+ ge([ Ie({
757
757
  tooltip: `类型:\n EFFECT 音效\n BGM 音乐`,
758
- type: y(Se)
759
- }), ge("design:type", Number) ], AudioSourceUILayer.prototype, "type", void 0);
758
+ type: g(Se)
759
+ }), ye("design:type", Number) ], AudioSourceUILayer.prototype, "type", void 0);
760
760
 
761
- ye([ Ie({
761
+ ge([ Ie({
762
762
  tooltip: "音源",
763
763
  type: n
764
- }), ge("design:type", typeof (we = typeof n !== "undefined" && n) === "function" ? we : Object) ], AudioSourceUILayer.prototype, "clip", void 0);
764
+ }), ye("design:type", typeof (we = typeof n !== "undefined" && n) === "function" ? we : Object) ], AudioSourceUILayer.prototype, "clip", void 0);
765
765
 
766
- ye([ Ie({
766
+ ge([ Ie({
767
767
  tooltip: "循环"
768
- }), ge("design:type", Boolean) ], AudioSourceUILayer.prototype, "loop", void 0);
768
+ }), ye("design:type", Boolean) ], AudioSourceUILayer.prototype, "loop", void 0);
769
769
 
770
- ye([ Ie({
770
+ ge([ Ie({
771
771
  tooltip: "音量"
772
- }), ge("design:type", Number) ], AudioSourceUILayer.prototype, "volume", void 0);
772
+ }), ye("design:type", Number) ], AudioSourceUILayer.prototype, "volume", void 0);
773
773
 
774
- ye([ Ie({
774
+ ge([ Ie({
775
775
  tooltip: "是否启用自动播放"
776
- }), ge("design:type", Boolean) ], AudioSourceUILayer.prototype, "playOnAwake", void 0);
776
+ }), ye("design:type", Boolean) ], AudioSourceUILayer.prototype, "playOnAwake", void 0);
777
777
 
778
778
  var Oe, Te, ke, Re;
779
779
 
780
- const {ccclass: Me, property: Ne, menu: Ue} = i;
780
+ const {ccclass: Me, property: Ue, menu: Ne} = i;
781
781
 
782
782
  var De;
783
783
 
@@ -786,7 +786,7 @@ var De;
786
786
  e[e["SLIDE"] = 1] = "SLIDE";
787
787
  })(De || (De = {}));
788
788
 
789
- let Fe = class CoreToast extends BaseComponent {
789
+ let xe = class CoreToast extends BaseComponent {
790
790
  fixed_node;
791
791
  slide_node;
792
792
  fixed_label;
@@ -798,7 +798,7 @@ let Fe = class CoreToast extends BaseComponent {
798
798
  this.show();
799
799
  }
800
800
  async show() {
801
- return new x(async (e, t) => {
801
+ return new F(async (e, t) => {
802
802
  const {title: i, type: n, fixed_time: o} = this.props;
803
803
  if (n == De.FIXED) {
804
804
  this.fixed_node.active = true;
@@ -817,7 +817,7 @@ let Fe = class CoreToast extends BaseComponent {
817
817
  });
818
818
  }
819
819
  playAnim(e) {
820
- return new x((t, i) => {
820
+ return new F((t, i) => {
821
821
  const n = 1.2;
822
822
  const o = .5;
823
823
  const s = this.node.getComponent(v);
@@ -841,29 +841,29 @@ let Fe = class CoreToast extends BaseComponent {
841
841
  }
842
842
  };
843
843
 
844
- ye([ Ne({
844
+ ge([ Ue({
845
845
  type: s,
846
846
  tooltip: "固定节点"
847
- }), ge("design:type", typeof (Oe = typeof s !== "undefined" && s) === "function" ? Oe : Object) ], Fe.prototype, "fixed_node", void 0);
847
+ }), ye("design:type", typeof (Oe = typeof s !== "undefined" && s) === "function" ? Oe : Object) ], xe.prototype, "fixed_node", void 0);
848
848
 
849
- ye([ Ne({
849
+ ge([ Ue({
850
850
  type: s,
851
851
  tooltip: "滑动节点"
852
- }), ge("design:type", typeof (Te = typeof s !== "undefined" && s) === "function" ? Te : Object) ], Fe.prototype, "slide_node", void 0);
852
+ }), ye("design:type", typeof (Te = typeof s !== "undefined" && s) === "function" ? Te : Object) ], xe.prototype, "slide_node", void 0);
853
853
 
854
- ye([ Ne({
854
+ ge([ Ue({
855
855
  type: b,
856
856
  tooltip: "固定标签节点"
857
- }), ge("design:type", typeof (ke = typeof b !== "undefined" && b) === "function" ? ke : Object) ], Fe.prototype, "fixed_label", void 0);
857
+ }), ye("design:type", typeof (ke = typeof b !== "undefined" && b) === "function" ? ke : Object) ], xe.prototype, "fixed_label", void 0);
858
858
 
859
- ye([ Ne({
859
+ ge([ Ue({
860
860
  type: b,
861
861
  tooltip: "滑动标签节点"
862
- }), ge("design:type", typeof (Re = typeof b !== "undefined" && b) === "function" ? Re : Object) ], Fe.prototype, "slide_label", void 0);
862
+ }), ye("design:type", typeof (Re = typeof b !== "undefined" && b) === "function" ? Re : Object) ], xe.prototype, "slide_label", void 0);
863
863
 
864
- Fe = ye([ Me("CoreToast"), Ue("CATCORE/CoreToast") ], Fe);
864
+ xe = ge([ Me("CoreToast"), Ne("CATCORE/CoreToast") ], xe);
865
865
 
866
- var Le;
866
+ var je;
867
867
 
868
868
  (function(e) {
869
869
  e["EVENT_SHOW"] = "GlobalEventConstant/EVENT_SHOW";
@@ -874,22 +874,22 @@ var Le;
874
874
  e["OFFLINE"] = "GlobalEventConstant/OFFLINE";
875
875
  e["ROOT_MASK_UPDATE"] = "GlobalEventConstant/ROOT_MASK_UPDATE";
876
876
  e["ROOT_MASK_CHANGE"] = "GlobalEventConstant/ROOT_MASK_CHANGE";
877
- })(Le || (Le = {}));
877
+ })(je || (je = {}));
878
878
 
879
- var xe;
879
+ var Fe;
880
880
 
881
- const {ccclass: je, property: Be, menu: Pe} = i;
881
+ const {ccclass: Le, property: Be, menu: Pe} = i;
882
882
 
883
883
  let Ge = class CoreBlackMask extends BaseComponent {
884
884
  tween;
885
885
  };
886
886
 
887
- ye([ Be({
887
+ ge([ Be({
888
888
  type: s,
889
889
  tooltip: "动画节点"
890
- }), ge("design:type", typeof (xe = typeof s !== "undefined" && s) === "function" ? xe : Object) ], Ge.prototype, "tween", void 0);
890
+ }), ye("design:type", typeof (Fe = typeof s !== "undefined" && s) === "function" ? Fe : Object) ], Ge.prototype, "tween", void 0);
891
891
 
892
- Ge = ye([ je("CoreBlackMask"), Pe("CATCORE/CoreBlackMask") ], Ge);
892
+ Ge = ge([ Le("CoreBlackMask"), Pe("CATCORE/CoreBlackMask") ], Ge);
893
893
 
894
894
  var He, $e;
895
895
 
@@ -912,7 +912,7 @@ let ze = class CoreUIContainer extends UILayer {
912
912
  return this.scene_mask.tween.children;
913
913
  }
914
914
  onEventListener() {
915
- this.cat.event.on(Le.ROOT_MASK_CHANGE, this.uiMaskChanged, this);
915
+ this.cat.event.on(je.ROOT_MASK_CHANGE, this.uiMaskChanged, this);
916
916
  }
917
917
  addMask() {
918
918
  const e = this.brother[this.brother.length - 1];
@@ -951,15 +951,15 @@ let ze = class CoreUIContainer extends UILayer {
951
951
  }
952
952
  };
953
953
 
954
- ye([ We({
954
+ ge([ We({
955
955
  type: s
956
- }), ge("design:type", typeof (He = typeof s !== "undefined" && s) === "function" ? He : Object) ], ze.prototype, "scene_mask_node", void 0);
956
+ }), ye("design:type", typeof (He = typeof s !== "undefined" && s) === "function" ? He : Object) ], ze.prototype, "scene_mask_node", void 0);
957
957
 
958
- ye([ We({
958
+ ge([ We({
959
959
  type: s
960
- }), ge("design:type", typeof ($e = typeof s !== "undefined" && s) === "function" ? $e : Object) ], ze.prototype, "ui_container", void 0);
960
+ }), ye("design:type", typeof ($e = typeof s !== "undefined" && s) === "function" ? $e : Object) ], ze.prototype, "ui_container", void 0);
961
961
 
962
- ze = ye([ Ke("CoreUIContainer"), Ve("CATCORE/CoreUIContainer") ], ze);
962
+ ze = ge([ Ke("CoreUIContainer"), Ve("CATCORE/CoreUIContainer") ], ze);
963
963
 
964
964
  class RootUILayer extends UILayer {
965
965
  onEnable() {
@@ -971,7 +971,7 @@ class RootUILayer extends UILayer {
971
971
  this.updateMask();
972
972
  }
973
973
  updateMask() {
974
- this.cat.event.emit(Le.ROOT_MASK_UPDATE);
974
+ this.cat.event.emit(je.ROOT_MASK_UPDATE);
975
975
  }
976
976
  }
977
977
 
@@ -1002,17 +1002,17 @@ let Ye = class CoreShowLoading extends RootUILayer {
1002
1002
  }
1003
1003
  };
1004
1004
 
1005
- ye([ Xe({
1005
+ ge([ Xe({
1006
1006
  type: b,
1007
1007
  tooltip: "标题"
1008
- }), ge("design:type", typeof (qe = typeof b !== "undefined" && b) === "function" ? qe : Object) ], Ye.prototype, "title", void 0);
1008
+ }), ye("design:type", typeof (qe = typeof b !== "undefined" && b) === "function" ? qe : Object) ], Ye.prototype, "title", void 0);
1009
1009
 
1010
- ye([ Xe({
1010
+ ge([ Xe({
1011
1011
  type: s,
1012
1012
  tooltip: "动画"
1013
- }), ge("design:type", typeof (Qe = typeof s !== "undefined" && s) === "function" ? Qe : Object) ], Ye.prototype, "loadingTween", void 0);
1013
+ }), ye("design:type", typeof (Qe = typeof s !== "undefined" && s) === "function" ? Qe : Object) ], Ye.prototype, "loadingTween", void 0);
1014
1014
 
1015
- Ye = ye([ Je("CoreShowLoading"), Ze("CATCORE/CoreShowLoading") ], Ye);
1015
+ Ye = ge([ Je("CoreShowLoading"), Ze("CATCORE/CoreShowLoading") ], Ye);
1016
1016
 
1017
1017
  var et;
1018
1018
 
@@ -1074,22 +1074,22 @@ let at = class CoreReconnection extends RootUILayer {
1074
1074
  }
1075
1075
  };
1076
1076
 
1077
- ye([ st({
1077
+ ge([ st({
1078
1078
  type: b,
1079
1079
  tooltip: "通用提示文本"
1080
- }), ge("design:type", typeof (tt = typeof b !== "undefined" && b) === "function" ? tt : Object) ], at.prototype, "common_prompt_text", void 0);
1080
+ }), ye("design:type", typeof (tt = typeof b !== "undefined" && b) === "function" ? tt : Object) ], at.prototype, "common_prompt_text", void 0);
1081
1081
 
1082
- ye([ st({
1082
+ ge([ st({
1083
1083
  type: S,
1084
1084
  tooltip: "确定按钮"
1085
- }), ge("design:type", typeof (it = typeof S !== "undefined" && S) === "function" ? it : Object) ], at.prototype, "btn_confirm", void 0);
1085
+ }), ye("design:type", typeof (it = typeof S !== "undefined" && S) === "function" ? it : Object) ], at.prototype, "btn_confirm", void 0);
1086
1086
 
1087
- ye([ st({
1087
+ ge([ st({
1088
1088
  type: S,
1089
1089
  tooltip: "关闭按钮"
1090
- }), ge("design:type", typeof (nt = typeof S !== "undefined" && S) === "function" ? nt : Object) ], at.prototype, "btn_close", void 0);
1090
+ }), ye("design:type", typeof (nt = typeof S !== "undefined" && S) === "function" ? nt : Object) ], at.prototype, "btn_close", void 0);
1091
1091
 
1092
- at = ye([ ot("CoreReconnection"), rt("CATCORE/CoreReconnection") ], at);
1092
+ at = ge([ ot("CoreReconnection"), rt("CATCORE/CoreReconnection") ], at);
1093
1093
 
1094
1094
  var lt, ct, ht;
1095
1095
 
@@ -1119,28 +1119,28 @@ let ft = class CoreNotice extends RootUILayer {
1119
1119
  }
1120
1120
  };
1121
1121
 
1122
- ye([ dt({
1122
+ ge([ dt({
1123
1123
  type: b,
1124
1124
  tooltip: "提示文本"
1125
- }), ge("design:type", typeof (lt = typeof b !== "undefined" && b) === "function" ? lt : Object) ], ft.prototype, "text", void 0);
1125
+ }), ye("design:type", typeof (lt = typeof b !== "undefined" && b) === "function" ? lt : Object) ], ft.prototype, "text", void 0);
1126
1126
 
1127
- ye([ dt({
1127
+ ge([ dt({
1128
1128
  type: S,
1129
1129
  tooltip: "确定按钮"
1130
- }), ge("design:type", typeof (ct = typeof S !== "undefined" && S) === "function" ? ct : Object) ], ft.prototype, "btn_confirm", void 0);
1130
+ }), ye("design:type", typeof (ct = typeof S !== "undefined" && S) === "function" ? ct : Object) ], ft.prototype, "btn_confirm", void 0);
1131
1131
 
1132
- ye([ dt({
1132
+ ge([ dt({
1133
1133
  type: S,
1134
1134
  tooltip: "关闭按钮"
1135
- }), ge("design:type", typeof (ht = typeof S !== "undefined" && S) === "function" ? ht : Object) ], ft.prototype, "btn_close", void 0);
1135
+ }), ye("design:type", typeof (ht = typeof S !== "undefined" && S) === "function" ? ht : Object) ], ft.prototype, "btn_close", void 0);
1136
1136
 
1137
- ft = ye([ ut("CoreNotice"), pt("CATCORE/CoreNotice") ], ft);
1137
+ ft = ge([ ut("CoreNotice"), pt("CATCORE/CoreNotice") ], ft);
1138
1138
 
1139
1139
  class SceneLayer extends BaseComponent {
1140
1140
  isReload;
1141
1141
  }
1142
1142
 
1143
- var mt, _t, yt, gt, bt, vt, Ct, Et;
1143
+ var mt, _t, gt, yt, bt, vt, Ct, Et;
1144
1144
 
1145
1145
  const {ccclass: St, property: wt, menu: At} = i;
1146
1146
 
@@ -1171,7 +1171,7 @@ let Ot = class Gui extends BaseComponent {
1171
1171
  currentScene;
1172
1172
  currentSceneUUID;
1173
1173
  onEventListener() {
1174
- this.cat.event.on(Le.ROOT_MASK_UPDATE, this.onRootUpdate, this);
1174
+ this.cat.event.on(je.ROOT_MASK_UPDATE, this.onRootUpdate, this);
1175
1175
  }
1176
1176
  initedScene=false;
1177
1177
  engineReady=false;
@@ -1179,7 +1179,7 @@ let Ot = class Gui extends BaseComponent {
1179
1179
  _scene=null;
1180
1180
  init(e) {
1181
1181
  this.cat = e;
1182
- g.once(w.EVENT_ENGINE_INITED, () => {
1182
+ y.once(w.EVENT_ENGINE_INITED, () => {
1183
1183
  this.engineReady = true;
1184
1184
  this.tryInit();
1185
1185
  });
@@ -1218,7 +1218,7 @@ let Ot = class Gui extends BaseComponent {
1218
1218
  const e = this.toastQueue.shift();
1219
1219
  const t = () => {
1220
1220
  const t = h(this.toast_ui_prefab);
1221
- const i = t.getComponent(Fe);
1221
+ const i = t.getComponent(xe);
1222
1222
  i.addToParent(this.root_toast, {
1223
1223
  props: e
1224
1224
  });
@@ -1236,7 +1236,7 @@ let Ot = class Gui extends BaseComponent {
1236
1236
  if (this.root_toast) {
1237
1237
  var e;
1238
1238
  H(e = this.root_toast.children).call(e, e => {
1239
- e.getComponent(Fe)?.removeAndDestroy();
1239
+ e.getComponent(xe)?.removeAndDestroy();
1240
1240
  });
1241
1241
  }
1242
1242
  this.toastQueue = [];
@@ -1335,12 +1335,9 @@ let Ot = class Gui extends BaseComponent {
1335
1335
  for (const e of h) {
1336
1336
  if (typeof e === "boolean") l = e; else if (typeof e === "function") c = e; else if (e && typeof e === "object") s = e;
1337
1337
  }
1338
- r.off(A.EVENT_BEFORE_SCENE_LAUNCH);
1339
1338
  r.once(A.EVENT_BEFORE_SCENE_LAUNCH, e => {
1340
- a("监听场景事件", e);
1341
1339
  this.changeScene(e, s ?? {}, l);
1342
1340
  });
1343
- r.off(A.EVENT_AFTER_SCENE_LAUNCH);
1344
1341
  r.once(A.EVENT_AFTER_SCENE_LAUNCH, () => {
1345
1342
  c?.();
1346
1343
  });
@@ -1387,8 +1384,13 @@ let Ot = class Gui extends BaseComponent {
1387
1384
  this.ui_container_component?.removeAndDestroy();
1388
1385
  this.ui_container_component = null;
1389
1386
  const t = h(this.ui_prefab);
1390
- this.ui_container_component = t.getComponent(ze);
1391
- this.ui_container_component?.setGui(this).addToParent(e, this.node.getSiblingIndex());
1387
+ console.log("node", u(t), t.uuid, t);
1388
+ console.log("isValid(this.node)", u(this.node), this.node.uuid, this.node);
1389
+ if (u(this.node)) {
1390
+ this.ui_container_component = t.getComponent(ze);
1391
+ this.ui_container_component?.setGui(this).addToParent(e, this.node.getSiblingIndex());
1392
+ }
1393
+ console.log("this.ui_container_component", this.ui_container_component);
1392
1394
  }
1393
1395
  reloadScene() {
1394
1396
  let e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
@@ -1463,51 +1465,51 @@ let Ot = class Gui extends BaseComponent {
1463
1465
  const i = t.getSiblingIndex() - 1;
1464
1466
  this.root_mask.setSiblingIndex(i < 0 ? 0 : i);
1465
1467
  }
1466
- this.cat.event.emit(Le.ROOT_MASK_CHANGE);
1468
+ this.cat.event.emit(je.ROOT_MASK_CHANGE);
1467
1469
  }
1468
1470
  };
1469
1471
 
1470
- ye([ wt({
1472
+ ge([ wt({
1471
1473
  type: c,
1472
1474
  tooltip: "断线重连UI预制体"
1473
- }), ge("design:type", typeof (mt = typeof c !== "undefined" && c) === "function" ? mt : Object) ], Ot.prototype, "reconnection_ui_prefab", void 0);
1475
+ }), ye("design:type", typeof (mt = typeof c !== "undefined" && c) === "function" ? mt : Object) ], Ot.prototype, "reconnection_ui_prefab", void 0);
1474
1476
 
1475
- ye([ wt({
1477
+ ge([ wt({
1476
1478
  type: c,
1477
1479
  tooltip: "提示UI预制体"
1478
- }), ge("design:type", typeof (_t = typeof c !== "undefined" && c) === "function" ? _t : Object) ], Ot.prototype, "toast_ui_prefab", void 0);
1480
+ }), ye("design:type", typeof (_t = typeof c !== "undefined" && c) === "function" ? _t : Object) ], Ot.prototype, "toast_ui_prefab", void 0);
1479
1481
 
1480
- ye([ wt({
1482
+ ge([ wt({
1481
1483
  type: c,
1482
1484
  tooltip: "加载UI预制体"
1483
- }), ge("design:type", typeof (yt = typeof c !== "undefined" && c) === "function" ? yt : Object) ], Ot.prototype, "loading_ui_prefab", void 0);
1485
+ }), ye("design:type", typeof (gt = typeof c !== "undefined" && c) === "function" ? gt : Object) ], Ot.prototype, "loading_ui_prefab", void 0);
1484
1486
 
1485
- ye([ wt({
1487
+ ge([ wt({
1486
1488
  type: c,
1487
1489
  tooltip: "公告UI预制体"
1488
- }), ge("design:type", typeof (gt = typeof c !== "undefined" && c) === "function" ? gt : Object) ], Ot.prototype, "notice_ui_prefab", void 0);
1490
+ }), ye("design:type", typeof (yt = typeof c !== "undefined" && c) === "function" ? yt : Object) ], Ot.prototype, "notice_ui_prefab", void 0);
1489
1491
 
1490
- ye([ wt({
1492
+ ge([ wt({
1491
1493
  type: c,
1492
1494
  tooltip: "UI层预制体"
1493
- }), ge("design:type", typeof (bt = typeof c !== "undefined" && c) === "function" ? bt : Object) ], Ot.prototype, "ui_prefab", void 0);
1495
+ }), ye("design:type", typeof (bt = typeof c !== "undefined" && c) === "function" ? bt : Object) ], Ot.prototype, "ui_prefab", void 0);
1494
1496
 
1495
- ye([ wt({
1497
+ ge([ wt({
1496
1498
  type: s,
1497
1499
  tooltip: "root-UI层"
1498
- }), ge("design:type", typeof (vt = typeof s !== "undefined" && s) === "function" ? vt : Object) ], Ot.prototype, "root_ui", void 0);
1500
+ }), ye("design:type", typeof (vt = typeof s !== "undefined" && s) === "function" ? vt : Object) ], Ot.prototype, "root_ui", void 0);
1499
1501
 
1500
- ye([ wt({
1502
+ ge([ wt({
1501
1503
  type: s,
1502
1504
  tooltip: "root-组件层"
1503
- }), ge("design:type", typeof (Ct = typeof s !== "undefined" && s) === "function" ? Ct : Object) ], Ot.prototype, "root_toast", void 0);
1505
+ }), ye("design:type", typeof (Ct = typeof s !== "undefined" && s) === "function" ? Ct : Object) ], Ot.prototype, "root_toast", void 0);
1504
1506
 
1505
- ye([ wt({
1507
+ ge([ wt({
1506
1508
  type: s,
1507
1509
  tooltip: "root-mask"
1508
- }), ge("design:type", typeof (Et = typeof s !== "undefined" && s) === "function" ? Et : Object) ], Ot.prototype, "root_mask", void 0);
1510
+ }), ye("design:type", typeof (Et = typeof s !== "undefined" && s) === "function" ? Et : Object) ], Ot.prototype, "root_mask", void 0);
1509
1511
 
1510
- Ot = ye([ St("Gui"), At("CATCORE/Gui") ], Ot);
1512
+ Ot = ge([ St("Gui"), At("CATCORE/Gui") ], Ot);
1511
1513
 
1512
1514
  var Tt;
1513
1515
 
@@ -1523,7 +1525,7 @@ var Tt;
1523
1525
  class GuiManager extends BaseManager {
1524
1526
  gui;
1525
1527
  #e="core";
1526
- getGuiPrefabByType=(e, t) => new x((i, n) => {
1528
+ getGuiPrefabByType=(e, t) => new F((i, n) => {
1527
1529
  a(e, `${t}`);
1528
1530
  this.cat.res.load(e, t, (e, t) => {
1529
1531
  if (e) {
@@ -1543,7 +1545,7 @@ class GuiManager extends BaseManager {
1543
1545
  }
1544
1546
  }
1545
1547
 
1546
- class WrapperSocialGameClient extends re {
1548
+ class WrapperSocialGameClient extends se {
1547
1549
  showRequestErrInfo=false;
1548
1550
  logBlackList=[];
1549
1551
  ignore=e => {
@@ -1560,12 +1562,12 @@ class WrapperSocialGameClient extends re {
1560
1562
  }
1561
1563
  async GameRequest(t, i, n) {
1562
1564
  let {forwardReq: s = false, forwardResp: r = false} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1563
- return new x((l, c) => {
1565
+ return new F((l, c) => {
1564
1566
  super.GameRequest(t, i, n, {
1565
1567
  forwardReq: s,
1566
1568
  forwardResp: r
1567
1569
  }).then(e => {
1568
- if (ne) {
1570
+ if (ie) {
1569
1571
  a(`%c ws服务端消息 %c [Response][${new Date}] %c ${t} %c`, "background:#ff00ff ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff", "background:#3d7daa ; padding: 1px; color: #fff", "background:#ff00ff ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff", "background:transparent", i);
1570
1572
  }
1571
1573
  l(e);
@@ -1580,7 +1582,7 @@ class WrapperSocialGameClient extends re {
1580
1582
  }
1581
1583
  subscribe(t, i, n) {
1582
1584
  super.subscribe(t, i, i => {
1583
- if (ne && !this.ignore(t)) {
1585
+ if (ie && !this.ignore(t)) {
1584
1586
  a(`%c ws服务端消息:[subscribe][${new Date}] %c ${t} %c`, "background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff", "background:#410083 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff", "background:transparent", i);
1585
1587
  }
1586
1588
  e._cat.event.emit(t, i);
@@ -1628,11 +1630,11 @@ class SocialGameClientManager extends BaseManager {
1628
1630
  t.destroy();
1629
1631
  a(`清理旧的 ${e} 客户端`);
1630
1632
  }
1631
- const o = new WrapperSocialGameClient(e, i, n, L({
1633
+ const o = new WrapperSocialGameClient(e, i, n, j({
1632
1634
  reconnectMaxAttempts: Infinity
1633
1635
  }, {
1634
1636
  isAutoConnect: false,
1635
- isArrayBuffer: oe,
1637
+ isArrayBuffer: ne,
1636
1638
  ...t
1637
1639
  }));
1638
1640
  this.register(o);
@@ -1651,8 +1653,8 @@ class SocialGameClientManager extends BaseManager {
1651
1653
  this.managedClients.delete(e.name);
1652
1654
  }
1653
1655
  initGlobalListeners() {
1654
- this.cat.event.on(Le.ONLINE, () => this.handleGlobalStateChange("online"), this).on(Le.OFFLINE, () => this.handleGlobalStateChange("offline"), this);
1655
- if (oe) {
1656
+ this.cat.event.on(je.ONLINE, () => this.handleGlobalStateChange("online"), this).on(je.OFFLINE, () => this.handleGlobalStateChange("offline"), this);
1657
+ if (ne) {
1656
1658
  wx.onShow(e => {
1657
1659
  this.handleGlobalStateChange("show", e);
1658
1660
  });
@@ -1660,8 +1662,8 @@ class SocialGameClientManager extends BaseManager {
1660
1662
  this.handleGlobalStateChange("hide", e);
1661
1663
  });
1662
1664
  } else {
1663
- g.on(w.EVENT_SHOW, () => this.handleGlobalStateChange("show"));
1664
- g.on(w.EVENT_HIDE, () => this.handleGlobalStateChange("hide"));
1665
+ y.on(w.EVENT_SHOW, () => this.handleGlobalStateChange("show"));
1666
+ y.on(w.EVENT_HIDE, () => this.handleGlobalStateChange("hide"));
1665
1667
  }
1666
1668
  }
1667
1669
  async handleGlobalStateChange(e, t) {
@@ -1698,7 +1700,6 @@ class SocialGameClientManager extends BaseManager {
1698
1700
  }
1699
1701
  }
1700
1702
  async safeTriggerReconnectAll() {
1701
- ee();
1702
1703
  if (this.reconnecting || !this.isGlobalOnline || this.isInBackground || this.managedClients.size === 0) {
1703
1704
  console.log("[safeTriggerReconnectAll] 没有需要重连的客户端,直接 dispatch");
1704
1705
  await this.dispatchReloadAndShow();
@@ -1729,14 +1730,14 @@ class SocialGameClientManager extends BaseManager {
1729
1730
  });
1730
1731
  try {
1731
1732
  var e, t;
1732
- await x.allSettled(Z(e = this.activeClients).call(e, async e => {
1733
+ await F.allSettled(Z(e = this.activeClients).call(e, async e => {
1733
1734
  try {
1734
1735
  await e.reconnectPromise();
1735
1736
  } catch (t) {
1736
1737
  o(`${e.name}服重连失败`, t);
1737
1738
  }
1738
1739
  }));
1739
- const i = $(t = this.activeClients).call(t, e => e.socketConnectStatus !== ie.CONNECTED);
1740
+ const i = $(t = this.activeClients).call(t, e => e.socketConnectStatus !== te.CONNECTED);
1740
1741
  if (i.length > 0) {
1741
1742
  Z(i).call(i, e => {
1742
1743
  console.error("部分WS重连失败:", e);
@@ -1754,7 +1755,7 @@ class SocialGameClientManager extends BaseManager {
1754
1755
  }
1755
1756
  disconnectAll(e) {
1756
1757
  var t, i;
1757
- if (te(t = this.activeClients).call(t, e => e.socket?.readyState !== WebSocket.OPEN)) return;
1758
+ if (ee(t = this.activeClients).call(t, e => e.socket?.readyState !== WebSocket.OPEN)) return;
1758
1759
  H(i = this.managedClients).call(i, t => {
1759
1760
  a("断开连接", t.name, e, t.socket);
1760
1761
  t.disconnect(e);
@@ -1768,10 +1769,10 @@ class SocialGameClientManager extends BaseManager {
1768
1769
  };
1769
1770
  handleSingleReconnect=async () => {
1770
1771
  var e;
1771
- if (te(e = this.activeClients).call(e, e => e.socketConnectStatus === ie.CONNECTED)) {
1772
+ if (ee(e = this.activeClients).call(e, e => e.socketConnectStatus === te.CONNECTED)) {
1772
1773
  var t;
1773
1774
  a("单个WS重连成功回调===", this.managedClients);
1774
- await x.allSettled(Z(t = this.activeClients).call(t, async e => {
1775
+ await F.allSettled(Z(t = this.activeClients).call(t, async e => {
1775
1776
  try {
1776
1777
  await e.connectRequest();
1777
1778
  } catch (t) {
@@ -1897,7 +1898,7 @@ class ResLoader {
1897
1898
  ...t
1898
1899
  }, i);
1899
1900
  }
1900
- loadBundle=(e, t) => new x((i, n) => {
1901
+ loadBundle=(e, t) => new F((i, n) => {
1901
1902
  const o = (e, t) => {
1902
1903
  if (e) {
1903
1904
  return n(e);
@@ -1955,7 +1956,7 @@ class ResLoader {
1955
1956
  a(`当前资源总数:${I.assets.count}`);
1956
1957
  };
1957
1958
  loadAssetsWithProgress(e, t) {
1958
- return new x((i, n) => {
1959
+ return new F((i, n) => {
1959
1960
  const o = e.getDirWithPath("");
1960
1961
  const s = o.length;
1961
1962
  let r = 0;
@@ -1992,29 +1993,29 @@ class CoreStore extends BaseManager {}
1992
1993
 
1993
1994
  let kt = null;
1994
1995
 
1995
- const Rt = e => ae.MD5(e).toString();
1996
+ const Rt = e => re.MD5(e).toString();
1996
1997
 
1997
1998
  const Mt = (e, t) => {
1998
- kt = ae.enc.Hex.parse(t);
1999
+ kt = re.enc.Hex.parse(t);
1999
2000
  };
2000
2001
 
2001
- const Nt = (e, t, i) => ae.AES.encrypt(e, t, {
2002
+ const Ut = (e, t, i) => re.AES.encrypt(e, t, {
2002
2003
  iv: kt,
2003
2004
  format: Dt
2004
2005
  }).toString();
2005
2006
 
2006
- const Ut = (e, t, i) => {
2007
- const n = ae.AES.decrypt(e, t, {
2007
+ const Nt = (e, t, i) => {
2008
+ const n = re.AES.decrypt(e, t, {
2008
2009
  iv: kt,
2009
2010
  format: Dt
2010
2011
  });
2011
- return n.toString(ae.enc.Utf8);
2012
+ return n.toString(re.enc.Utf8);
2012
2013
  };
2013
2014
 
2014
2015
  const Dt = {
2015
2016
  stringify: e => {
2016
2017
  const t = {
2017
- ct: e.ciphertext.toString(ae.enc.Base64)
2018
+ ct: e.ciphertext.toString(re.enc.Base64)
2018
2019
  };
2019
2020
  if (e.iv) {
2020
2021
  t.iv = e.iv.toString();
@@ -2026,30 +2027,30 @@ const Dt = {
2026
2027
  },
2027
2028
  parse: e => {
2028
2029
  const t = JSON.parse(e);
2029
- const i = ae.lib.CipherParams.create({
2030
- ciphertext: ae.enc.Base64.parse(t.ct)
2030
+ const i = re.lib.CipherParams.create({
2031
+ ciphertext: re.enc.Base64.parse(t.ct)
2031
2032
  });
2032
2033
  if (t.iv) {
2033
- i.iv = ae.enc.Hex.parse(t.iv);
2034
+ i.iv = re.enc.Hex.parse(t.iv);
2034
2035
  }
2035
2036
  if (t.s) {
2036
- i.salt = ae.enc.Hex.parse(t.s);
2037
+ i.salt = re.enc.Hex.parse(t.s);
2037
2038
  }
2038
2039
  return i;
2039
2040
  }
2040
2041
  };
2041
2042
 
2042
- var Ft = Object.freeze({
2043
+ var xt = Object.freeze({
2043
2044
  __proto__: null,
2044
2045
  JsonFormatter: Dt,
2045
- aesDecrypt: Ut,
2046
- aesEncrypt: Nt,
2046
+ aesDecrypt: Nt,
2047
+ aesEncrypt: Ut,
2047
2048
  initCrypto: Mt,
2048
2049
  md5: Rt
2049
2050
  });
2050
2051
 
2051
2052
  class CoreUtil extends BaseManager {
2052
- encryptUtil=(() => Ft)();
2053
+ encryptUtil=(() => xt)();
2053
2054
  }
2054
2055
 
2055
2056
  class StorageManager extends BaseManager {
@@ -2070,7 +2071,7 @@ class StorageManager extends BaseManager {
2070
2071
  console.error("存储的key不能为空");
2071
2072
  return;
2072
2073
  }
2073
- if (!se) {
2074
+ if (!oe) {
2074
2075
  e = this.cat.util.encryptUtil.md5(e);
2075
2076
  }
2076
2077
  if (null == t) {
@@ -2092,7 +2093,7 @@ class StorageManager extends BaseManager {
2092
2093
  } else if (typeof t === "number") {
2093
2094
  t = t + "";
2094
2095
  }
2095
- if (!se && null != this._key && null != this._iv) {
2096
+ if (!oe && null != this._key && null != this._iv) {
2096
2097
  t = this.cat.util.encryptUtil.aesEncrypt(`${t}`, this._key, this._iv);
2097
2098
  }
2098
2099
  M.localStorage.setItem(e, t);
@@ -2103,11 +2104,11 @@ class StorageManager extends BaseManager {
2103
2104
  return null;
2104
2105
  }
2105
2106
  e = `${e}_${this._id}`;
2106
- if (!se) {
2107
+ if (!oe) {
2107
2108
  e = this.cat.util.encryptUtil.md5(e);
2108
2109
  }
2109
2110
  let i = M.localStorage.getItem(e);
2110
- if (null != i && "" !== i && !se && null != this._key && null != this._iv) {
2111
+ if (null != i && "" !== i && !oe && null != this._key && null != this._iv) {
2111
2112
  i = this.cat.util.encryptUtil.aesDecrypt(i, this._key, this._iv);
2112
2113
  }
2113
2114
  if (null === i) {
@@ -2134,7 +2135,7 @@ class StorageManager extends BaseManager {
2134
2135
  return;
2135
2136
  }
2136
2137
  e = `${e}_${this._id}`;
2137
- if (!se) {
2138
+ if (!oe) {
2138
2139
  e = this.cat.util.encryptUtil.md5(e);
2139
2140
  }
2140
2141
  M.localStorage.removeItem(e);
@@ -2218,7 +2219,7 @@ class Manager {
2218
2219
  this.#a = new ResLoader;
2219
2220
  this.#l = new CoreUtil(this);
2220
2221
  this.#r = new StorageManager(this);
2221
- this.#o = new j;
2222
+ this.#o = new L;
2222
2223
  this.#n = new AudioManager(this);
2223
2224
  this.#c = new SocialGameClientManager(this);
2224
2225
  this.#s = (await new GuiManager(this).init()).gui;
@@ -2234,14 +2235,14 @@ class Manager {
2234
2235
  throw new Error(`merge方法第一个参数应该为string类型`);
2235
2236
  }
2236
2237
  if (!D(this, e)) {
2237
- F(this, e, t);
2238
+ x(this, e, t);
2238
2239
  }
2239
- L(D(this, e), t);
2240
+ j(D(this, e), t);
2240
2241
  return this;
2241
2242
  }
2242
2243
  appendPlugInInitDelegate(e) {
2243
2244
  if (this.#i) {
2244
- x.resolve().then(e).catch(e => {
2245
+ F.resolve().then(e).catch(e => {
2245
2246
  console.error("[CAT] appendPlugInInitDelegate 回调执行失败:", e);
2246
2247
  });
2247
2248
  } else {
@@ -2251,7 +2252,7 @@ class Manager {
2251
2252
  }
2252
2253
  }
2253
2254
 
2254
- var Lt, xt, jt, Bt, Pt, Gt, Ht, $t, Kt;
2255
+ var jt, Ft, Lt, Bt, Pt, Gt, Ht, $t, Kt;
2255
2256
 
2256
2257
  const {ccclass: Wt, property: Vt, menu: zt} = i;
2257
2258
 
@@ -2281,7 +2282,7 @@ let qt = class CoreUIModal extends UILayer {
2281
2282
  this.title.spriteFrame = this.props?.title || this.default_title;
2282
2283
  }, () => {
2283
2284
  if (this.props.content) {
2284
- if (this.props.content instanceof N) {
2285
+ if (this.props.content instanceof U) {
2285
2286
  this.prompt_content_spriteFrame.spriteFrame = this.props.content;
2286
2287
  } else if (typeof this.props.content === "string") {
2287
2288
  this.prompt_content_str.string = this.props.content;
@@ -2294,13 +2295,13 @@ let qt = class CoreUIModal extends UILayer {
2294
2295
  this.btn_confirm.node.active = false;
2295
2296
  } else {
2296
2297
  this.btn_confirm.node.active = true;
2297
- this.btn_confirm.getComponent(U).spriteFrame = this.props.style?.confirm || this.confirm_spriteFrame;
2298
+ this.btn_confirm.getComponent(N).spriteFrame = this.props.style?.confirm || this.confirm_spriteFrame;
2298
2299
  }
2299
2300
  if (this.props?.style?.cancel === null) {
2300
2301
  this.btn_cancel.node.active = false;
2301
2302
  } else {
2302
2303
  this.btn_cancel.node.active = true;
2303
- this.btn_cancel.getComponent(U).spriteFrame = this.props.style?.cancel || this.cancel_spriteFrame;
2304
+ this.btn_cancel.getComponent(N).spriteFrame = this.props.style?.cancel || this.cancel_spriteFrame;
2304
2305
  }
2305
2306
  } ]);
2306
2307
  }
@@ -2322,52 +2323,52 @@ let qt = class CoreUIModal extends UILayer {
2322
2323
  }
2323
2324
  };
2324
2325
 
2325
- ye([ Vt({
2326
- type: N,
2326
+ ge([ Vt({
2327
+ type: U,
2327
2328
  tooltip: "默认标题"
2328
- }), ge("design:type", typeof (Lt = typeof N !== "undefined" && N) === "function" ? Lt : Object) ], qt.prototype, "default_title", void 0);
2329
+ }), ye("design:type", typeof (jt = typeof U !== "undefined" && U) === "function" ? jt : Object) ], qt.prototype, "default_title", void 0);
2329
2330
 
2330
- ye([ Vt({
2331
- type: U,
2331
+ ge([ Vt({
2332
+ type: N,
2332
2333
  tooltip: "标题节点"
2333
- }), ge("design:type", typeof (xt = typeof U !== "undefined" && U) === "function" ? xt : Object) ], qt.prototype, "title", void 0);
2334
+ }), ye("design:type", typeof (Ft = typeof N !== "undefined" && N) === "function" ? Ft : Object) ], qt.prototype, "title", void 0);
2334
2335
 
2335
- ye([ Vt({
2336
+ ge([ Vt({
2336
2337
  type: b,
2337
2338
  tooltip: "字符串内容按钮"
2338
- }), ge("design:type", typeof (jt = typeof b !== "undefined" && b) === "function" ? jt : Object) ], qt.prototype, "prompt_content_str", void 0);
2339
+ }), ye("design:type", typeof (Lt = typeof b !== "undefined" && b) === "function" ? Lt : Object) ], qt.prototype, "prompt_content_str", void 0);
2339
2340
 
2340
- ye([ Vt({
2341
- type: U,
2341
+ ge([ Vt({
2342
+ type: N,
2342
2343
  tooltip: "图片精灵内容按钮"
2343
- }), ge("design:type", typeof (Bt = typeof U !== "undefined" && U) === "function" ? Bt : Object) ], qt.prototype, "prompt_content_spriteFrame", void 0);
2344
+ }), ye("design:type", typeof (Bt = typeof N !== "undefined" && N) === "function" ? Bt : Object) ], qt.prototype, "prompt_content_spriteFrame", void 0);
2344
2345
 
2345
- ye([ Vt({
2346
+ ge([ Vt({
2346
2347
  type: S,
2347
2348
  tooltip: "确认按钮"
2348
- }), ge("design:type", typeof (Pt = typeof S !== "undefined" && S) === "function" ? Pt : Object) ], qt.prototype, "btn_confirm", void 0);
2349
+ }), ye("design:type", typeof (Pt = typeof S !== "undefined" && S) === "function" ? Pt : Object) ], qt.prototype, "btn_confirm", void 0);
2349
2350
 
2350
- ye([ Vt({
2351
- type: N,
2351
+ ge([ Vt({
2352
+ type: U,
2352
2353
  tooltip: "确认按钮精灵图"
2353
- }), ge("design:type", typeof (Gt = typeof N !== "undefined" && N) === "function" ? Gt : Object) ], qt.prototype, "confirm_spriteFrame", void 0);
2354
+ }), ye("design:type", typeof (Gt = typeof U !== "undefined" && U) === "function" ? Gt : Object) ], qt.prototype, "confirm_spriteFrame", void 0);
2354
2355
 
2355
- ye([ Vt({
2356
+ ge([ Vt({
2356
2357
  type: S,
2357
2358
  tooltip: "取消按钮"
2358
- }), ge("design:type", typeof (Ht = typeof S !== "undefined" && S) === "function" ? Ht : Object) ], qt.prototype, "btn_cancel", void 0);
2359
+ }), ye("design:type", typeof (Ht = typeof S !== "undefined" && S) === "function" ? Ht : Object) ], qt.prototype, "btn_cancel", void 0);
2359
2360
 
2360
- ye([ Vt({
2361
- type: N,
2361
+ ge([ Vt({
2362
+ type: U,
2362
2363
  tooltip: "取消按钮精灵图"
2363
- }), ge("design:type", typeof ($t = typeof N !== "undefined" && N) === "function" ? $t : Object) ], qt.prototype, "cancel_spriteFrame", void 0);
2364
+ }), ye("design:type", typeof ($t = typeof U !== "undefined" && U) === "function" ? $t : Object) ], qt.prototype, "cancel_spriteFrame", void 0);
2364
2365
 
2365
- ye([ Vt({
2366
+ ge([ Vt({
2366
2367
  type: S,
2367
2368
  tooltip: "关闭按钮"
2368
- }), ge("design:type", typeof (Kt = typeof S !== "undefined" && S) === "function" ? Kt : Object) ], qt.prototype, "btn_close", void 0);
2369
+ }), ye("design:type", typeof (Kt = typeof S !== "undefined" && S) === "function" ? Kt : Object) ], qt.prototype, "btn_close", void 0);
2369
2370
 
2370
- qt = ye([ Wt("CoreUIModal"), zt("CATCORE/CoreUIModal") ], qt);
2371
+ qt = ge([ Wt("CoreUIModal"), zt("CATCORE/CoreUIModal") ], qt);
2371
2372
 
2372
2373
  var Qt;
2373
2374
 
@@ -2394,19 +2395,19 @@ class TimerEntry {
2394
2395
 
2395
2396
  class TimerManager extends BaseManager {
2396
2397
  timers=(() => new G)();
2397
- lastUpdateTime=(() => ee())();
2398
+ lastUpdateTime=(() => ae())();
2398
2399
  constructor(e) {
2399
2400
  var t;
2400
2401
  super(e);
2401
- e.event.on(Le.EVENT_HIDE, this.onHandleAppBackground, this);
2402
- e.event.on(Le.EVENT_SHOW, this.onHandleAppForeground, this);
2402
+ e.event.on(je.EVENT_HIDE, this.onHandleAppBackground, this);
2403
+ e.event.on(je.EVENT_SHOW, this.onHandleAppForeground, this);
2403
2404
  le(V(t = this.update).call(t, this), 1e3);
2404
2405
  }
2405
2406
  onHandleAppBackground() {
2406
- this.lastUpdateTime = ee();
2407
+ this.lastUpdateTime = ae();
2407
2408
  }
2408
2409
  onHandleAppForeground() {
2409
- const e = ee();
2410
+ const e = ae();
2410
2411
  const t = e - this.lastUpdateTime;
2411
2412
  a("elapsedTime", t);
2412
2413
  for (const e of ce(i = this.timers).call(i)) {
@@ -2511,7 +2512,7 @@ const Xt = function() {
2511
2512
 
2512
2513
  const Zt = e._cat ??= Manager.instance;
2513
2514
 
2514
- g.onPostProjectInitDelegate.add(async () => {
2515
+ y.onPostProjectInitDelegate.add(async () => {
2515
2516
  console.time("[Init App]");
2516
2517
  try {
2517
2518
  await Zt.boot();
@@ -2525,4 +2526,4 @@ g.onPostProjectInitDelegate.add(async () => {
2525
2526
  }
2526
2527
  });
2527
2528
 
2528
- export { Jt as AudioEffect, _e as AudioEventConstant, AudioManager, AudioSourceBaseComponent, AudioSourceUILayer, Se as AudioTypeEnum, BaseComponent, BaseManager, Tt as BasePrefab, BaseStore, Xt as ButtonLock, Ge as CoreBlackMask, ft as CoreNotice, at as CoreReconnection, Ye as CoreShowLoading, CoreStore, Fe as CoreToast, ze as CoreUIContainer, qt as CoreUIModal, CoreUtil, Le as GlobalEventConstant, Ot as Gui, GuiManager, It as LayerType, Manager, et as ReconnectPrompt, RootUILayer, SceneLayer, TimerManager, De as ToastType, UILayer, WrapperSocialGameClient, Zt as cat };
2529
+ export { Jt as AudioEffect, _e as AudioEventConstant, AudioManager, AudioSourceBaseComponent, AudioSourceUILayer, Se as AudioTypeEnum, BaseComponent, BaseManager, Tt as BasePrefab, BaseStore, Xt as ButtonLock, Ge as CoreBlackMask, ft as CoreNotice, at as CoreReconnection, Ye as CoreShowLoading, CoreStore, xe as CoreToast, ze as CoreUIContainer, qt as CoreUIModal, CoreUtil, je as GlobalEventConstant, Ot as Gui, GuiManager, It as LayerType, Manager, et as ReconnectPrompt, RootUILayer, SceneLayer, TimerManager, De as ToastType, UILayer, WrapperSocialGameClient, Zt as cat };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shimotsuki/core",
3
- "version": "3.0.41",
3
+ "version": "3.0.43",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "dist/shimotsuki_core.js",