index.js 250 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. System.register("chunks:///_virtual/Account.ts",["cc","./ECS.ts","./AccountModelComp.ts"],(function(t){var c,n,o;return{setters:[function(t){c=t.cclegacy},function(t){n=t.ecs},function(t){o=t.AccountModelComp}],execute:function(){var e;c._RF.push({},"33c06qSPa9MRbTUOf1u+7SR","Account",void 0);t("Account",n.register("Account")(e=class extends n.Entity{constructor(...t){super(...t),this.AccountModel=void 0}init(){this.addComponents(o)}})||e);c._RF.pop()}}}));
  2. System.register("chunks:///_virtual/AccountModelComp.ts",["cc","./ECS.ts"],(function(c){var e,t;return{setters:[function(c){e=c.cclegacy},function(c){t=c.ecs}],execute:function(){var o;e._RF.push({},"48e3172BRZA+ZLehWBTVmsA","AccountModelComp",void 0);c("AccountModelComp",t.register("AccountModel")(o=class extends t.Comp{constructor(...c){super(...c),this.AccountName=null}reset(){this.AccountName=null}})||o);e._RF.pop()}}}));
  3. System.register("chunks:///_virtual/Ambilight.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,r,s,a,o,n;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,s=t.CCInteger,a=t._decorator,o=t.Component,n=t.Sprite}],execute:function(){var p,c,l,m,h;r._RF.push({},"73c69GH9M9F2Ilsm0fvjTCX","Ambilight",void 0);const{ccclass:u,property:_}=a;t("Ambilight",(p=u("Ambilight"),c=_(s),p((h=e((m=class extends o{constructor(...t){super(...t),i(this,"_max",h,this),this._start=0,this._material=void 0}get max(){return this._max}set max(t){this._max=t}update(t){this._material=this.node.getComponent(n).getMaterial(0),this.node.active&&this._material&&this._setShaderTime(t)}_setShaderTime(t){let e=this._start;e>this.max&&(e=0),e+=.015,this._material.setProperty("speed",e),this._start=e}}).prototype,"_max",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),e(m.prototype,"max",[c],Object.getOwnPropertyDescriptor(m.prototype,"max"),m.prototype),l=m))||l));r._RF.pop()}}}));
  4. System.register("chunks:///_virtual/AnimatorAnimation.ts",["cc","./AnimatorBase.ts"],(function(t){var i,n,s,a;return{setters:[function(t){i=t.cclegacy,n=t.Animation,s=t._decorator},function(t){a=t.default}],execute:function(){var e;i._RF.push({},"64571Qy/TlCEZI/28RxIG+E","AnimatorAnimation",void 0);const{ccclass:o,property:h,requireComponent:m,disallowMultiple:r,menu:p,help:_}=s;t("default",o(e=r(e=m(n)(e=p("OopsFramework/Animator/AnimatorAnimation (动画状态机)")(e=_("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565")(e=class extends a{constructor(...t){super(...t),this._animation=null,this._animState=null,this._wrapModeMap=new Map}start(){this.PlayOnStart&&!this._hasInit&&(this._hasInit=!0,this._animation=this.getComponent(n),this._animation.on(n.EventType.FINISHED,this.onAnimFinished,this),this._animation.on(n.EventType.LASTFRAME,this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}onInit(...t){this.PlayOnStart||this._hasInit||(this._hasInit=!0,this.initArgs(...t),this._animation=this.getComponent(n),this._animation.on(n.EventType.FINISHED,this.onAnimFinished,this),this._animation.on(n.EventType.LASTFRAME,this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}playAnimation(t,i){t&&(this._animation.play(t),this._animState=this._animation.getState(t),this._animState&&(this._wrapModeMap.has(this._animState)||this._wrapModeMap.set(this._animState,this._animState.wrapMode),this._animState.wrapMode=i?2:this._wrapModeMap.get(this._animState)))}scaleTime(t){this._animState&&(this._animState.speed=t)}})||e)||e)||e)||e)||e);i._RF.pop()}}}));
  5. System.register("chunks:///_virtual/AnimatorBase.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AnimatorController.ts"],(function(t){var a,e,i,n,s,r,o;return{setters:[function(t){a=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.JsonAsset,s=t._decorator,r=t.Component},function(t){o=t.default}],execute:function(){var l,c,u,h,p,m,g,_,d,f;i._RF.push({},"7ff14NOug1NAIB1XgQlC9Gc","AnimatorBase",void 0);const{ccclass:y,property:A,executionOrder:b,menu:S}=s;t("default",(l=b(-1e3),c=S("animator/AnimatorBase"),u=A({type:n,tooltip:"状态机json文件"}),h=A({tooltip:"是否在start中自动启动状态机"}),p=A({tooltip:"是否在update中自动触发状态机逻辑更新"}),y(m=l(m=c((_=a((g=class extends r{constructor(...t){super(...t),e(this,"AssetRawUrl",_,this),e(this,"PlayOnStart",d,this),e(this,"AutoUpdate",f,this),this._hasInit=!1,this._ac=null,this._stateLogicMap=null,this._onStateChangeCall=null,this._animationPlayer=null}onFrameEvent(t){var a;null==(a=this._animationPlayer)||a.onFrameEventCallback(t,this)}get curStateName(){return this._ac.curState.name}get curStateMotion(){return this._ac.curState.motion}getState(t){return this._ac.states.get(t)}onInit(...t){}initArgs(...t){t.forEach((t=>{t&&("function"==typeof t?this._onStateChangeCall=t:"object"==typeof t&&(t instanceof Map?this._stateLogicMap=t:this._animationPlayer=t))}))}updateAnimator(){let t=this._ac.curState.speed;if(this._ac.curState.multi&&(t*=this._ac.params.getNumber(this._ac.curState.multi)??1),this.scaleTime(t),this._stateLogicMap){let t=this._stateLogicMap.get(this._ac.curState.name);t&&t.onUpdate()}this._ac.updateAnimator()}update(){this._hasInit&&this.AutoUpdate&&this.updateAnimator()}manualUpdate(){this._hasInit&&!this.AutoUpdate&&this.updateAnimator()}initJson(t){this._ac=new o(this,t)}onAnimFinished(){var t;this._ac.onAnimationComplete(),null==(t=this._animationPlayer)||t.onFinishedCallback(this)}playAnimation(t,a){}scaleTime(t){}onStateChange(t,a){this.playAnimation(a.motion,a.loop);let e=t?t.name:"";if(this._stateLogicMap){let t=this._stateLogicMap.get(e);t&&t.onExit();let i=this._stateLogicMap.get(a.name);i&&i.onEntry()}this._onStateChangeCall&&this._onStateChangeCall(e,a.name)}setBool(t,a){this._ac.params.setBool(t,a)}getBool(t){return 0!==this._ac.params.getBool(t)}setNumber(t,a){this._ac.params.setNumber(t,a)}getNumber(t){return this._ac.params.getNumber(t)}setTrigger(t){this._ac.params.setTrigger(t)}resetTrigger(t){this._ac.params.resetTrigger(t)}autoTrigger(t){this._ac.params.autoTrigger(t)}play(t){this._hasInit&&this._ac.play(t)}}).prototype,"AssetRawUrl",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=a(g.prototype,"PlayOnStart",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=a(g.prototype,"AutoUpdate",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m=g))||m)||m)||m));i._RF.pop()}}}));
  6. System.register("chunks:///_virtual/AnimatorCondition.ts",["cc"],(function(t){var a,e;return{setters:[function(t){a=t.error,e=t.cclegacy}],execute:function(){e._RF.push({},"8ade2h2C/ZA86thhI0NNuqu","AnimatorCondition",void 0);let r=t("ParamType",function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.BOOLEAN=1]="BOOLEAN",t[t.NUMBER=2]="NUMBER",t[t.TRIGGER=3]="TRIGGER",t[t.AUTO_TRIGGER=4]="AUTO_TRIGGER",t}({})),i=t("LogicType",function(t){return t[t.EQUAL=0]="EQUAL",t[t.NOTEQUAL=1]="NOTEQUAL",t[t.GREATER=2]="GREATER",t[t.LESS=3]="LESS",t[t.GREATER_EQUAL=4]="GREATER_EQUAL",t[t.LESS_EQUAL=5]="LESS_EQUAL",t}({}));t("default",class{constructor(t,a){this._ac=void 0,this._param="",this._value=0,this._logic=i.EQUAL,this._ac=a,this._param=t.param,this._value=t.value,this._logic=t.logic}getParamName(){return this._param}getParamType(){return this._ac.params.getParamType(this._param)}check(){let t=this.getParamType();if(t===r.BOOLEAN)return this._ac.params.getBool(this._param)===this._value;if(t!==r.NUMBER)return t===r.AUTO_TRIGGER?0!==this._ac.params.getAutoTrigger(this._param):t===r.TRIGGER?0!==this._ac.params.getTrigger(this._param):(a(`[AnimatorCondition.check] 错误的type: ${t}`),!1);{let t=this._ac.params.getNumber(this._param);switch(this._logic){case i.EQUAL:return t===this._value;case i.NOTEQUAL:return t!==this._value;case i.GREATER:return t>this._value;case i.LESS:return t<this._value;case i.GREATER_EQUAL:return t>=this._value;case i.LESS_EQUAL:return t<=this._value;default:return!1}}}}),e._RF.pop()}}}));
  7. System.register("chunks:///_virtual/AnimatorController.ts",["cc","./AnimatorParams.ts","./AnimatorState.ts"],(function(t){var e,a,s,n;return{setters:[function(t){e=t.error,a=t.cclegacy},function(t){s=t.default},function(t){n=t.default}],execute:function(){a._RF.push({},"01df9SMBjRCyYDE7SgbZxua","AnimatorController",void 0);t("default",class{get curState(){return this._curState}get params(){return this._params}get states(){return this._states}constructor(t,e){this._jsonData=null,this._animator=null,this._params=null,this._states=null,this._anyState=null,this._curState=null,this._changeCount=0,this.animCompleteState=null,this.animComplete=!1,this._animator=t,this._jsonData=e,this._states=new Map,this._params=new s(e.parameters),this.init(e)}init(t){if(t.states.length<=0)return void e("[AnimatorController.init] 状态机json错误");let a=t.defaultState;this._anyState=new n(t.anyState,this);for(let e=0;e<t.states.length;e++){let a=new n(t.states[e],this);this._states.set(a.name,a)}this.changeState(a)}updateState(){this._curState.checkAndTrans(),this._curState!==this._anyState&&null!==this._anyState&&this._anyState.checkAndTrans()}updateAnimator(){this._changeCount=0,this.updateState(),this.animComplete&&this.animCompleteState.loop&&(this.animComplete=!1),this.params.resetAllAutoTrigger()}onAnimationComplete(){this.animComplete=!0,this.animCompleteState=this._curState}play(t){this._states.has(t)&&this._curState.name!==t&&(this.animComplete=!1,this.changeState(t))}changeState(t){if(this._changeCount++,this._changeCount>1e3)e("[AnimatorController.changeState] error: 状态切换递归调用超过1000次,transition设置可能出错!");else if(!this._states.has(t)||null!==this._curState&&this._curState.name===t)e(`[AnimatorController.changeState] error state: ${t}`);else{let e=this._curState;this._curState=this._states.get(t),this._animator.onStateChange(e,this._curState),this.updateState()}}}),a._RF.pop()}}}));
  8. System.register("chunks:///_virtual/AnimatorCustomization.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AnimatorBase.ts"],(function(t){var i,e,a,n,s;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){a=t.cclegacy,n=t._decorator},function(t){s=t.default}],execute:function(){var o,r,l,c,u,m;a._RF.push({},"fe7aemTdvFBeJlAmC+6XphU","AnimatorCustomization",void 0);const{ccclass:p,property:h,disallowMultiple:d,menu:y,help:f}=n;t("default",(o=y("OopsFramework/Animator/AnimatorCustomization (自定义状态机)"),r=f("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565"),l=h({override:!0,visible:!1}),p(c=d(c=o(c=r((m=i((u=class extends s{constructor(...t){super(...t),e(this,"PlayOnStart",m,this)}onInit(...t){this._hasInit||(this._hasInit=!0,this.initArgs(...t),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}playAnimation(t,i){this._animationPlayer&&t&&this._animationPlayer.playAnimation(t,i)}scaleTime(t){this._animationPlayer&&this._animationPlayer.scaleTime(t)}}).prototype,"PlayOnStart",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=u))||c)||c)||c)||c));a._RF.pop()}}}));
  9. System.register("chunks:///_virtual/AnimatorDragonBones.ts",["cc","./AnimatorBase.ts"],(function(t){var s,n,i,e;return{setters:[function(t){s=t.cclegacy,n=t.dragonBones,i=t._decorator},function(t){e=t.default}],execute:function(){var o;s._RF.push({},"dc324J03ptB8b2JV9Ljduzh","AnimatorDragonBones",void 0);const{ccclass:a,property:r,requireComponent:h,disallowMultiple:l,menu:c,help:d}=i;t("default",a(o=l(o=h(n.ArmatureDisplay)(o=c("OopsFramework/Animator/AnimatorDragonBones (龙骨状态机)")(o=d("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565")(o=class extends e{constructor(...t){super(...t),this._dragonBones=null}start(){this.PlayOnStart&&!this._hasInit&&(this._hasInit=!0,this._dragonBones=this.getComponent(n.ArmatureDisplay),this._dragonBones.addEventListener("complete",this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}onInit(...t){this.PlayOnStart||this._hasInit||(this._hasInit=!0,this.initArgs(...t),this._dragonBones=this.getComponent(n.ArmatureDisplay),this._dragonBones.addEventListener("complete",this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}playAnimation(t,s){t&&this._dragonBones.playAnimation(t,s?0:-1)}scaleTime(t){t>0&&(this._dragonBones.timeScale=t)}})||o)||o)||o)||o)||o);s._RF.pop()}}}));
  10. System.register("chunks:///_virtual/AnimatorParams.ts",["cc","./AnimatorCondition.ts"],(function(t){var e,a;return{setters:[function(t){e=t.cclegacy},function(t){a=t.ParamType}],execute:function(){e._RF.push({},"13926xryDRPXJ50lCnLvy4J","AnimatorParams",void 0);t("default",class{constructor(t){this._paramMap=new Map,t.forEach((t=>{let e={type:t.type,value:t.init};this._paramMap.set(t.param,e)}))}getParamType(t){let e=this._paramMap.get(t);return e?e.type:null}setNumber(t,e){let r=this._paramMap.get(t);r&&r.type===a.NUMBER&&(r.value=e)}setBool(t,e){let r=this._paramMap.get(t);r&&r.type===a.BOOLEAN&&(r.value=e?1:0)}setTrigger(t){let e=this._paramMap.get(t);e&&e.type===a.TRIGGER&&(e.value=1)}resetTrigger(t){let e=this._paramMap.get(t);e&&e.type===a.TRIGGER&&(e.value=0)}autoTrigger(t){let e=this._paramMap.get(t);e&&e.type===a.AUTO_TRIGGER&&(e.value=1)}resetAutoTrigger(t){let e=this._paramMap.get(t);e&&e.type===a.AUTO_TRIGGER&&(e.value=0)}resetAllAutoTrigger(){this._paramMap.forEach(((t,e)=>{t.type===a.AUTO_TRIGGER&&(t.value=0)}))}getNumber(t){let e=this._paramMap.get(t);return e&&e.type===a.NUMBER?e.value:0}getBool(t){let e=this._paramMap.get(t);return e&&e.type===a.BOOLEAN?e.value:0}getTrigger(t){let e=this._paramMap.get(t);return e&&e.type===a.TRIGGER?e.value:0}getAutoTrigger(t){let e=this._paramMap.get(t);return e&&e.type===a.AUTO_TRIGGER?e.value:0}}),e._RF.pop()}}}));
  11. System.register("chunks:///_virtual/AnimatorSkeletal.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AnimatorAnimation.ts"],(function(t){var i,e,a,o,r,n,s,l;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){a=t.cclegacy,o=t.SkeletalAnimation,r=t.CCFloat,n=t._decorator,s=t.game},function(t){l=t.default}],execute:function(){var c,u,m,p,h,d,_;a._RF.push({},"8c545jBn4xF7LWXjl506avi","AnimatorSkeletal",void 0);const{ccclass:S,property:f,requireComponent:g,disallowMultiple:k,menu:w,help:y}=n;t("AnimatorSkeletal",(c=g(o),u=w("OopsFramework/Animator/AnimatorSkeletal (骨骼动画状态机)"),m=y("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565"),p=f({type:r,tooltip:"动画切换过度时间"}),S(h=k(h=c(h=u(h=m((_=i((d=class extends l{constructor(...t){super(...t),e(this,"duration",_,this),this.cross_duration=0,this.current_time=0}onLoad(){this.cross_duration=1e3*this.duration}playAnimation(t,i){t&&(s.totalTime-this.current_time>this.cross_duration?this._animation.crossFade(t,this.duration):this._animation.play(t),this.current_time=s.totalTime,this._animState=this._animation.getState(t),this._animState&&(this._wrapModeMap.has(this._animState)||this._wrapModeMap.set(this._animState,this._animState.wrapMode),this._animState.wrapMode=i?2:1))}}).prototype,"duration",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),h=d))||h)||h)||h)||h)||h));a._RF.pop()}}}));
  12. System.register("chunks:///_virtual/AnimatorSpine.ts",["cc","./AnimatorBase.ts"],(function(e){var t,i,s,n;return{setters:[function(e){t=e.cclegacy,i=e.sp,s=e._decorator},function(e){n=e.default}],execute:function(){var a;t._RF.push({},"7fde8yJEfxMMqzjg+V4UVkT","AnimatorSpine",void 0);const{ccclass:o,property:r,requireComponent:p,disallowMultiple:h,menu:l,help:c}=s;e("default",o(a=h(a=p(i.Skeleton)(a=l("OopsFramework/Animator/AnimatorSpine(Spine 状态机)")(a=c("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565")(a=class extends n{constructor(...e){super(...e),this._spine=null,this._completeListenerMap=new Map,this._secondaryListenerMap=new Map}start(){this.PlayOnStart&&!this._hasInit&&(this._hasInit=!0,this._spine=this.getComponent(i.Skeleton),this._spine.setEventListener(this.onSpineEvent.bind(this)),this._spine.setCompleteListener(this.onSpineComplete.bind(this)),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}onInit(...e){this.PlayOnStart||this._hasInit||(this._hasInit=!0,this.initArgs(...e),this._spine=this.getComponent(i.Skeleton),this._spine.setEventListener(this.onSpineEvent.bind(this)),this._spine.setCompleteListener(this.onSpineComplete.bind(this)),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}getBone(e){return this._spine.findBone(e)}onSpineEvent(e,t){var i;const s=e.animation?t.data.name:"";null==(i=this._animationPlayer)||i.onFrameEventCallback(s,this)}onSpineComplete(e){0===e.trackIndex&&this.onAnimFinished(),this._completeListenerMap.forEach(((t,i)=>{t?i.call(t,e):i(e)})),this._secondaryListenerMap.forEach(((t,i)=>{e.trackIndex===t.TrackIndex&&i.call(t,e)}))}playAnimation(e,t){e?this._spine.setAnimation(0,e,t):this._spine.clearTrack(0)}scaleTime(e){e>0&&(this._spine.timeScale=e)}addSecondaryListener(e,t){this._secondaryListenerMap.set(e,t)}addCompleteListener(e,t=null){this._completeListenerMap.has(e)||this._completeListenerMap.set(e,t)}removeCompleteListener(e){this._completeListenerMap.delete(e)}clearCompleteListener(){this._completeListenerMap.clear}})||a)||a)||a)||a)||a);t._RF.pop()}}}));
  13. System.register("chunks:///_virtual/AnimatorSpineSecondary.ts",["./rollupPluginModLoBabelHelpers.js","cc","./AnimatorSpine.ts","./AnimatorBase.ts"],(function(t){var i,n,e,s,o,r,a;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,s=t.sp,o=t._decorator},function(t){r=t.default},function(t){a=t.default}],execute:function(){var h,c,l,p,u,d,m;e._RF.push({},"e47112s9c9Kwo8XQQ4KSW0c","AnimatorSpineSecondary",void 0);const{ccclass:_,property:S,requireComponent:A,menu:f,help:k}=o;t("default",(h=A(s.Skeleton),c=f("OopsFramework/Animator/AnimatorSpine (Spine 次状态机)"),l=k("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12036279&doc_id=2873565"),p=S({tooltip:"动画播放的trackIndex,必须大于0"}),_(u=h(u=c(u=l((m=i((d=class extends a{constructor(...t){super(...t),n(this,"TrackIndex",m,this),this._main=null,this._spine=null}start(){this.PlayOnStart&&!this._hasInit&&(this._hasInit=!0,this._spine=this.getComponent(s.Skeleton),this._main=this.getComponent(r),this._main.addSecondaryListener(this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}onInit(...t){this.PlayOnStart||this._hasInit||(this._hasInit=!0,this.initArgs(...t),this._spine=this.getComponent(s.Skeleton),this._main=this.getComponent(r),this._main.addSecondaryListener(this.onAnimFinished,this),null!==this.AssetRawUrl&&this.initJson(this.AssetRawUrl.json))}playAnimation(t,i){t?this._spine.setAnimation(this.TrackIndex,t,i):this._spine.clearTrack(this.TrackIndex)}}).prototype,"TrackIndex",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),u=d))||u)||u)||u)||u));e._RF.pop()}}}));
  14. System.register("chunks:///_virtual/AnimatorState.ts",["cc","./AnimatorTransition.ts"],(function(t){var i,s;return{setters:[function(t){i=t.cclegacy},function(t){s=t.default}],execute:function(){i._RF.push({},"bd2d1/E71JL1Jj3HzsYH82H","AnimatorState",void 0);t("default",class{get name(){return this._name}get motion(){return this._motion}get loop(){return this._loop}get multi(){return this._multi}get speed(){return this._speed}set speed(t){this._speed=t}constructor(t,i){this._name="",this._motion="",this._loop=!1,this._speed=1,this._multi="",this._transitions=[],this._ac=null,this._name=t.state,this._motion=t.motion||"",this._loop=t.loop||!1,this._speed=t.speed||1,this._multi=t.multiplier||"",this._ac=i;for(let e=0;e<t.transitions.length;e++){let n=new s(t.transitions[e],i);n.isValid()&&this._transitions.push(n)}}checkAndTrans(){for(let t=0;t<this._transitions.length;t++){let i=this._transitions[t];if(i&&i.check())return void i.doTrans()}}}),i._RF.pop()}}}));
  15. System.register("chunks:///_virtual/AnimatorStateLogic.ts",["cc"],(function(t){var o;return{setters:[function(t){o=t.cclegacy}],execute:function(){o._RF.push({},"b06fbd3UdNKvooAUeDi9UTc","AnimatorStateLogic",void 0);t("AnimatorStateLogic",class{onEntry(){}onUpdate(){}onExit(){}}),o._RF.pop()}}}));
  16. System.register("chunks:///_virtual/AnimatorTransition.ts",["cc","./AnimatorCondition.ts"],(function(t){var i,e,s;return{setters:[function(t){i=t.cclegacy},function(t){e=t.default,s=t.ParamType}],execute:function(){i._RF.push({},"39224xRIkpEG7hvPJlKoGDy","AnimatorTransition",void 0);t("default",class{constructor(t,i){this._toStateName="",this._hasExitTime=!1,this._conditions=[],this._ac=null,this._toStateName=t.toState,this._hasExitTime=t.hasExitTime,this._ac=i;for(let s=0;s<t.conditions.length;s++){let a=new e(t.conditions[s],i);this._conditions.push(a)}}isValid(){return this._hasExitTime||this._conditions.length>0}check(){if(this._toStateName===this._ac.curState.name)return!1;if(this._hasExitTime&&(this._ac.curState!==this._ac.animCompleteState||!this._ac.animComplete))return!1;for(let t=0;t<this._conditions.length;t++)if(!this._conditions[t].check())return!1;return!0}doTrans(){this._hasExitTime&&(this._ac.animComplete=!1);for(let t=0;t<this._conditions.length;t++){let i=this._conditions[t].getParamType(),e=this._conditions[t].getParamName();i===s.TRIGGER?this._ac.params.resetTrigger(e):i===s.AUTO_TRIGGER&&this._ac.params.resetAutoTrigger(e)}this._ac.changeState(this._toStateName)}}),i._RF.pop()}}}));
  17. System.register("chunks:///_virtual/ArrayExt.ts",["cc"],(function(){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"2696fVV0U1BcotwtuSW7qe9","ArrayExt",void 0),!Array.prototype.__cc_extended&&Object.defineProperties(Array.prototype,{remove:{value:function(t){if("function"==typeof t)for(let e=this.length-1;e>-1;--e)t(this[e],e,this)&&this.splice(e,1);else for(let e=this.length-1;e>-1;--e)this[e]===t&&this.splice(e,1);return this}},removeOne:{value:function(t){if("function"==typeof t){for(let e=0;e<this.length;++e)if(t(this[e],e,this))return this.splice(e,1),this}else for(let e=0;e<this.length;++e)if(this[e]===t)return this.splice(e,1),this;return this}},random:{value:function(){return this[Math.floor(Math.random()*this.length)]}},fastRemoveAt:{value:function(t){const e=this.length;if(t<0||t>=e)return null;let n=this[t];return this[t]=this[e-1],this.length=e-1,n}},fastRemove:{value:function(t){const e=this.indexOf(t);return e>=0&&(this[e]=this[this.length-1],--this.length,!0)}},first:{value:function(){return this.length?this[0]:null}},last:{value:function(){return this.length?this[this.length-1]:null}},max:{value:function(t){if(!this.length)return null;if("function"==typeof t){let e=t(this[0],0,this);for(let n=1;n<this.length;++n){let i=t(this[n],n,this);e=i>e?i:e}return e}return this.reduce((function(t,e){return(n=t)>(i=e)?n:i;var n,i}))}},min:{value:function(t){if(!this.length)return null;if("function"==typeof t){let e=t(this[0],0,this);for(let n=1;n<this.length;++n){let i=t(this[n],n,this);e=i<e?i:e}return e}return this.reduce((function(t,e){return(n=t)<(i=e)?n:i;var n,i}))}},distinct:{value:function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))}},filterIndex:{value:function(t){let e=[];for(let n=0;n<this.length;++n)t(this[n],n,this)&&e.push(n);return e}},count:{value:function(t){let e=0;for(let n=0;n<this.length;++n)t(this[n],n,this)&&++e;return e}},sum:{value:function(t){let e=0;for(let n=0;n<this.length;++n)e+=t?t(this[n],n,this):this[n];return e}},average:{value:function(t){return this.sum(t)/this.length}},orderBy:{value:function(){let t=[];for(let e=0;e<arguments.length;e++)t[e]=arguments[e];return this.slice().sort((function(e,n){for(let i=0;i<t.length;++i){let r=t[i](e),u=t[i](n);if(r>u)return 1;if(r<u)return-1}return 0}))}},orderByDesc:{value:function(){let t=[];for(let e=0;e<arguments.length;e++)t[e]=arguments[e];return this.slice().sort((function(e,n){for(let i=0;i<t.length;++i){let r=t[i](e),u=t[i](n);if(r>u)return-1;if(r<u)return 1}return 0}))}},binarySearch:{value:function(t,e){let n=0,i=this.length-1;for(;n<=i;){let r=(i+n)/2|0,u=e?e(this[r]):this[r];if(t===u)return r;t>u?n=r+1:t<u&&(i=r-1)}return-1}},binaryInsert:{value:function(t,e,n){"boolean"==typeof e&&(n=e,e=void 0);let i=0,r=this.length-1,u=NaN,h=e?e(t):t;for(;i<=r;){u=(r+i)/2|0;let t=e?e(this[u]):this[u];if(h===t){if(n)return u;break}h>t?i=u+1:h<t&&(r=u-1)}let s=i>u?u+1:u;return this.splice(s,0,t),s}},binaryDistinct:{value:function(t){return this.filter((function(e,n,i){return i.binarySearch(e,t)===n}))}},findLast:{value:function(t){for(let e=this.length-1;e>-1;--e)if(t(this[e],e,this))return this[e]}},findLastIndex:{value:function(t){for(let e=this.length-1;e>-1;--e)if(t(this[e],e,this))return e;return-1}},groupBy:{value:function(t){let e=this.reduce((function(e,n){let i=t(n);return e[i]||(e[i]=[]),e[i].push(n),e}),{});return Object.keys(e).map((function(t){let n=e[t];return n.key=t,n}))}},__cc_extended:{value:!0}}),t._RF.pop()}}}));
  18. System.register("chunks:///_virtual/ArrayUtil.ts",["cc"],(function(t){var r;return{setters:[function(t){r=t.cclegacy}],execute:function(){r._RF.push({},"4613b2zY/dMSaGPBGo6eti3","ArrayUtil",void 0);t("ArrayUtil",class{static noRepeated(t){const r=[t[0]];for(let e=1;e<t.length;e++){let a=!1;for(let n=0;n<r.length;n++)if(t[e]==r[n]){a=!0;break}a||r.push(t[e])}return r}static copy2DArray(t){let r=[];for(let e=0;e<t.length;e++)r.push(t[e].concat());return r}static fisherYatesShuffle(t){let r=t.length;for(;r;){let e=Math.floor(Math.random()*r--),a=t[r];t[r]=t[e],t[e]=a}return t}static confound(t){return t.slice().sort((()=>Math.random()-.5))}static flattening(t){for(;t.some((t=>Array.isArray(t)));)t=[].concat.apply([],t);return t}static removeItem(t,r){const e=t.concat();for(let a=0;a<e.length;a++){if(r==e[a]){t.splice(a,1);break}}}static combineArrays(t,r){return[...t,...r]}static getRandomValueInArray(t){return t[Math.floor(Math.random()*t.length)]}}),r._RF.pop()}}}));
  19. System.register("chunks:///_virtual/AsyncQueue.ts",["cc"],(function(s){var e,i,n;return{setters:[function(s){e=s.cclegacy,i=s.warn,n=s.log}],execute:function(){e._RF.push({},"8c48bBN521JzIxhITJunFji","AsyncQueue",void 0);class t{constructor(){this._runningAsyncTask=null,this._queues=[],this._isProcessingTaskUUID=0,this._enable=!0,this.complete=null}get queues(){return this._queues}get enable(){return this._enable}set enable(s){this._enable!==s&&(this._enable=s,s&&this.size>0&&this.play())}push(s,e=null){let i=t._$uuid_count++;return this._queues.push({uuid:i,callbacks:[s],params:e}),i}pushMulti(s,...e){let i=t._$uuid_count++;return this._queues.push({uuid:i,callbacks:e,params:s}),i}remove(s){var e;if((null==(e=this._runningAsyncTask)?void 0:e.uuid)!==s){for(let e=0;e<this._queues.length;e++)if(this._queues[e].uuid===s){this._queues.splice(e,1);break}}else i("正在执行的任务不可以移除")}get size(){return this._queues.length}get isProcessing(){return this._isProcessingTaskUUID>0}get isStop(){return!(this._queues.length>0)&&!this.isProcessing}get runningParams(){return this._runningAsyncTask?this._runningAsyncTask.params:null}clear(){this._queues=[],this._isProcessingTaskUUID=0,this._runningAsyncTask=null}step(){this.isProcessing&&this.next(this._isProcessingTaskUUID)}play(s=null){if(this.isProcessing)return;if(!this._enable)return;let e=this._queues.shift();if(e){this._runningAsyncTask=e;let i=e.uuid;this._isProcessingTaskUUID=i;let n=e.callbacks;if(1==n.length){let t=(s=null)=>{this.next(i,s)};n[0](t,e.params,s)}else{let t=n.length,u=[],l=(s=null)=>{--t,u.push(s||null),0===t&&this.next(i,u)},r=t;for(let i=0;i<r;i++)n[i](l,e.params,s)}}else this._isProcessingTaskUUID=0,this._runningAsyncTask=null,this.complete&&this.complete(s)}yieldTime(s,e=null){this.push((function(i,n,t){let u=setTimeout((()=>{clearTimeout(u),e&&e(),i(t)}),s)}),{des:"AsyncQueue.yieldTime"})}next(s,e=null){this._isProcessingTaskUUID===s?(this._isProcessingTaskUUID=0,this._runningAsyncTask=null,this.play(e)):this._runningAsyncTask&&n(this._runningAsyncTask)}static excuteTimes(s,e=null){let i=s;return()=>{--i,0===i&&e&&e()}}}s("AsyncQueue",t),t._$uuid_count=1,e._RF.pop()}}}));
  20. System.register("chunks:///_virtual/AudioEffect.ts",["cc"],(function(t){var e,o,s;return{setters:[function(t){e=t.cclegacy,o=t.AudioSource,s=t._decorator}],execute:function(){var c;e._RF.push({},"e52d2ysY1BEbpcT2Cz0Wwss","AudioEffect",void 0);const{ccclass:n}=s;t("AudioEffect",n("AudioEffect")(c=class extends o{constructor(...t){super(...t),this.onComplete=null}start(){this.node.on(o.EventType.ENDED,this.onAudioEnded,this)}onAudioEnded(){this.onComplete&&this.onComplete()}})||c);e._RF.pop()}}}));
  21. System.register("chunks:///_virtual/AudioEffectPool.ts",["cc","./Oops.ts","./ResLoader.ts","./AudioEffect.ts"],(function(e){var t,s,o,i,c,h,f;return{setters:[function(e){t=e.cclegacy,s=e.NodePool,o=e.AudioClip,i=e.Node},function(e){c=e.oops},function(e){h=e.resLoader},function(e){f=e.AudioEffect}],execute:function(){t._RF.push({},"01278BDjrtCr4CBpmO5DZlN","AudioEffectPool",void 0);e("AudioEffectPool",class{constructor(){this._switch=!0,this._volume=1,this.pool=new s,this.effects=new Map,this.res=new Map,this._aeId=0}get switch(){return this._switch}set switch(e){this._switch=e,e&&this.stop()}get volume(){return this._volume}set volume(e){this._volume=e,this.effects.forEach((t=>{t.volume=e}))}getAeId(){return 3e4==this._aeId&&(this._aeId=1),this._aeId++,this._aeId}async load(e,t=h.defaultBundleName,s){return new Promise((async(n,u)=>{if(!this.switch)return n(-1);let l;if(e instanceof o?l=e:(l=h.get(e,o,t),l||(this.res.set(t,e),l=await h.loadAsync(t,e,o))),!l.isValid)return void n(-1);let a,r,d=this.getAeId();a=e instanceof o?e.uuid:`${t}_${e}`,a+="_"+d;let p=null;0==this.pool.size()?(p=new i,p.name="AudioEffect",p.parent=c.audio.node,r=p.addComponent(f)):(p=this.pool.get(),r=p.getComponent(f)),r.onComplete=()=>{this.put(d,e,t),s&&s()},this.effects.set(a,r),r.volume=this.volume,r.clip=l,r.play(),n(d)}))}put(e,t,s=h.defaultBundleName){let i;i=t instanceof o?t.uuid:`${s}_${t}`,i+="_"+e;let c=this.effects.get(i);c&&c.clip&&(this.effects.delete(i),c.stop(),this.pool.put(c.node))}release(){this.effects.forEach((e=>{e.node.destroy()})),this.effects.clear(),this.res.forEach(((e,t)=>{h.release(t,e)})),this.pool.clear()}stop(){this.effects.forEach((e=>{e.stop()}))}play(){this.switch&&this.effects.forEach((e=>{e.play()}))}pause(){this.switch&&this.effects.forEach((e=>{e.pause()}))}}),t._RF.pop()}}}));
  22. System.register("chunks:///_virtual/AudioManager.ts",["cc","./Oops.ts","./AudioEffectPool.ts","./AudioMusic.ts"],(function(t){var s,i,e,c,u;return{setters:[function(t){s=t.cclegacy,i=t.Component},function(t){e=t.oops},function(t){c=t.AudioEffectPool},function(t){u=t.AudioMusic}],execute:function(){s._RF.push({},"252f0z+vPNL8Y/jsLYmomtw","AudioManager",void 0);const h="game_audio";t("AudioManager",class extends i{constructor(...t){super(...t),this.music=null,this.effect=new c,this.local_data={}}setMusicComplete(t=null){this.music.onComplete=t}playMusic(t,s,i){this.music.switch&&(this.music.loop=!1,this.music.load(t,s,i).then())}playMusicLoop(t,s){this.music.switch&&(this.music.loop=!0,this.music.load(t,null,s).then())}stopMusic(){this.music.switch&&this.music.playing&&this.music.stop()}get progressMusic(){return this.music.progress}set progressMusic(t){this.music.progress=t}get volumeMusic(){return this.music.volume}set volumeMusic(t){this.music.volume=t,this.save()}get switchMusic(){return this.music.switch}set switchMusic(t){this.music.switch=t,t||this.music.stop(),this.save()}playEffect(t,s,i){return this.effect.load(t,s,i)}putEffect(t,s,i){this.effect.put(t,s,i)}get volumeEffect(){return this.effect.volume}set volumeEffect(t){this.effect.volume=t,this.save()}get switchEffect(){return this.effect.switch}set switchEffect(t){this.effect.switch=t,t||this.effect.stop(),this.save()}resumeAll(){!this.music.playing&&this.music.progress>0&&this.music.play(),this.effect.play()}pauseAll(){this.music.playing&&this.music.pause(),this.effect.pause()}stopAll(){this.music.stop(),this.effect.stop()}save(){this.local_data.volume_music=this.music.volume,this.local_data.volume_effect=this.effect.volume,this.local_data.switch_music=this.music.switch,this.local_data.switch_effect=this.effect.switch,e.storage.set(h,this.local_data)}load(){if(this.music=this.getComponent(u)||this.addComponent(u),this.local_data=e.storage.getJson(h),this.local_data)try{this.setState()}catch{this.setStateDefault()}else this.setStateDefault()}setState(){this.music.volume=this.local_data.volume_music,this.effect.volume=this.local_data.volume_effect,this.music.switch=this.local_data.switch_music,this.effect.switch=this.local_data.switch_effect}setStateDefault(){this.local_data={},this.music.volume=1,this.effect.volume=1,this.music.switch=!0,this.effect.switch=!0}}),s._RF.pop()}}}));
  23. System.register("chunks:///_virtual/AudioMusic.ts",["cc","./ResLoader.ts"],(function(t){var s,i,e,n,o;return{setters:[function(t){s=t.cclegacy,i=t.AudioSource,e=t.AudioClip,n=t._decorator},function(t){o=t.resLoader}],execute:function(){var r;s._RF.push({},"5c1f3kqGetBiIv48/CvuaQv","AudioMusic",void 0);const{ccclass:u,menu:h}=n;t("AudioMusic",u("AudioMusic")(r=class extends i{constructor(...t){super(...t),this.switch=!0,this.onComplete=null,this._progress=0,this._isLoading=!1,this._nextBundleName=null,this._nextUrl=null}start(){this.node.on(i.EventType.ENDED,this.onAudioEnded,this)}onAudioEnded(){this.onComplete&&this.onComplete()}get progress(){return this.duration>0&&(this._progress=this.currentTime/this.duration),this._progress}set progress(t){this._progress=t,this.currentTime=t*this.duration}async load(t,s,i=o.defaultBundleName){if(this._isLoading)return this._nextBundleName=i,void(this._nextUrl=t);this._isLoading=!0;var n=await o.loadAsync(i,t,e);n&&(this._isLoading=!1,null!=this._nextUrl?(this.load(this._nextUrl,s,this._nextBundleName),this._nextBundleName=this._nextUrl=null):(s&&s(),this.playing&&this.stop(),this.release(),this.clip=n,this.play()))}release(){this.clip&&(this.stop(),this.clip.decRef(),this.clip=null)}})||r);s._RF.pop()}}}));
  24. System.register("chunks:///_virtual/BehaviorTree.ts",["cc","./BTreeNode.ts"],(function(t){var e,r;return{setters:[function(t){e=t.cclegacy},function(t){r=t.BTreeNode}],execute:function(){e._RF.push({},"22a91RP3fNG/rWWAXlmM4BT","BehaviorTree",void 0);let s=0;class i{get started(){return this._started}constructor(t,e){this.title=void 0,this._root=void 0,this._current=void 0,this._started=!1,this._blackboard=void 0,s+=1,this.title=t.constructor.name+"(btree_"+s+")",this._root=t,this._blackboard=e}setObject(t){this._blackboard=t}run(){this._started&&console.error(`行为树【${this.title}】未调用步骤,在最后一次调用步骤时有一个任务未完成`),this._started=!0;const t=i.getNode(this._root);this._current=t,t.setControl(this),t.start(this._blackboard),t.run(this._blackboard)}running(t){this._started=!1}success(){this._current.end(this._blackboard),this._started=!1}fail(){this._current.end(this._blackboard),this._started=!1}static register(t,e){this._registeredNodes.set(t,e)}static getNode(t){const e=t instanceof r?t:this._registeredNodes.get(t);if(!e)throw new Error(`无法找到节点【${t}】,可能它没有注册过`);return e}}t("BehaviorTree",i),i._registeredNodes=new Map,e._RF.pop()}}}));
  25. System.register("chunks:///_virtual/BhvButtonGroup.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,n,e,r,o,a,l,s,u,p;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){e=t.cclegacy,r=t.Enum,o=t.Button,a=t.SpriteFrame,l=t.EventHandler,s=t._decorator,u=t.Component,p=t.color}],execute:function(){var c,h,b,f,m,d,v,E,y,C,g,T,S,z,L,R,w,D,I,N,_,H,O,B,P,x,G,M,k,A,F;e._RF.push({},"41df676L55LvJ52uxkQpfxJ","BhvButtonGroup",void 0);const{ccclass:X,property:J,menu:U}=s;var j=function(t){return t[t.CHILDREN_INDEX=0]="CHILDREN_INDEX",t[t.CHILDREN_NAME=1]="CHILDREN_NAME",t}(j||{});t("BhvButtonGroup",(c=U("OopsFramework/UI/Button Group (按钮组控制)"),h=J({type:r(o.Transition)}),b=J({visible:function(){return this.transition===o.Transition.COLOR}}),f=J({visible:function(){return this.transition===o.Transition.COLOR}}),m=J({visible:function(){return this.transition===o.Transition.COLOR}}),d=J({visible:function(){return this.transition===o.Transition.COLOR}}),v=J({type:a,visible:function(){return this.transition===o.Transition.SPRITE}}),E=J({type:a,visible:function(){return this.transition===o.Transition.SPRITE}}),y=J({type:a,visible:function(){return this.transition===o.Transition.SPRITE}}),C=J({type:a,visible:function(){return this.transition===o.Transition.SPRITE}}),g=J({visible:function(){return this.transition===o.Transition.SCALE||this.transition===o.Transition.COLOR}}),T=J({visible:function(){return this.transition===o.Transition.SCALE}}),S=J({type:r(j)}),z=J({type:[l]}),L=J({tooltip:"规避3.x引擎BUG,EventHandler.component位为空导致找不到触发事件的脚本名的问题",readonly:!0}),X(R=c((D=i((w=class extends u{constructor(...t){super(...t),n(this,"transition",D,this),n(this,"hoverColor",I,this),n(this,"normalColor",N,this),n(this,"pressedColor",_,this),n(this,"disabledColor",H,this),n(this,"normalSprite",O,this),n(this,"pressedSprite",B,this),n(this,"hoverSprite",P,this),n(this,"disabledSprite",x,this),n(this,"duration",G,this),n(this,"zoomScale",M,this),n(this,"paramType",k,this),n(this,"touchEvents",A,this),n(this,"EventHandler_component",F,this)}onLoad(){this.node.children.forEach(((t,i)=>{let n=t.getComponent(o);null==n&&(n=t.addComponent(o)),this.touchEvents.forEach((e=>{let r=new l;r.component=""==e.component?this.EventHandler_component:e.component,r.handler=e.handler,r.target=e.target,this.paramType===j.CHILDREN_INDEX?r.customEventData=i.toString():r.customEventData=t.name,n.clickEvents.push(r)}))}))}}).prototype,"transition",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.Transition.NONE}}),I=i(w.prototype,"hoverColor",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p(255,255,255)}}),N=i(w.prototype,"normalColor",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p(214,214,214)}}),_=i(w.prototype,"pressedColor",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p(211,211,211)}}),H=i(w.prototype,"disabledColor",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p(124,124,124)}}),O=i(w.prototype,"normalSprite",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(w.prototype,"pressedSprite",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=i(w.prototype,"hoverSprite",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=i(w.prototype,"disabledSprite",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=i(w.prototype,"duration",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),M=i(w.prototype,"zoomScale",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1.1}}),k=i(w.prototype,"paramType",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return j.CHILDREN_INDEX}}),A=i(w.prototype,"touchEvents",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),F=i(w.prototype,"EventHandler_component",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"VMModify"}}),R=w))||R)||R));e._RF.pop()}}}));
  26. System.register("chunks:///_virtual/BhvFrameIndex.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,i,n,s,o,p,a,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.Sprite,s=e.SpriteFrame,o=e.CCInteger,p=e._decorator,a=e.Component,l=e.error}],execute:function(){var u,d,c,m,h,x,F,f;i._RF.push({},"c238ewfJ2VJnZ8Gb8YQs5Ts","BhvFrameIndex",void 0);const{ccclass:y,property:g,executeInEditMode:b,requireComponent:I,menu:_}=p;e("BhvFrameIndex",(u=I(n),d=_("OopsFramework/UI/Frame Index (图片切换)"),c=g({type:[s],tooltip:"sprite将会用到帧图片"}),m=g({type:o,tooltip:"当前显示的帧图"}),y(h=b(h=u(h=d((F=t((x=class extends a{constructor(...e){super(...e),r(this,"spriteFrames",F,this),r(this,"_index",f,this)}get index(){return this._index}set index(e){if(e<0)return;this._index=e%this.spriteFrames.length,this.node.getComponent(n).spriteFrame=this.spriteFrames[this._index]}setName(e){let t=this.spriteFrames.findIndex((t=>t.name==e));t<0&&l("frameIndex 设置了不存在的name:",e),this.index=t||0}random(e,t){if(!this.spriteFrames)return;let r=this.spriteFrames.length;(null==e||e<0)&&(e=0),(null==t||t>r)&&(t=r),this.index=Math.floor(Math.random()*(t-e)+e)}next(){this.index++}previous(){this.index--}}).prototype,"spriteFrames",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[null]}}),t(x.prototype,"index",[m],Object.getOwnPropertyDescriptor(x.prototype,"index"),x.prototype),f=t(x.prototype,"_index",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=x))||h)||h)||h)||h));i._RF.pop()}}}));
  27. System.register("chunks:///_virtual/BhvRollNumber.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,r,l,a,o,s,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,l=t.Label,a=t.Enum,o=t._decorator,s=t.Component,u=t.lerp}],execute:function(){var n,h,p,c,b,g,m,E,f,y,d,T,v,M,S,R,V,w,F;r._RF.push({},"72d13dwmG9LS4gkJhSuAp3F","BhvRollNumber",void 0);const{ccclass:_,property:I,menu:N}=o;var C=function(t){return t[t.INTEGER=0]="INTEGER",t[t.FIXED_2=1]="FIXED_2",t[t.TIMER=2]="TIMER",t[t.PERCENTAGE=3]="PERCENTAGE",t[t.KMBT_FIXED2=4]="KMBT_FIXED2",t[t.CUSTOMER=5]="CUSTOMER",t}(C||{});t("BhvRollNumber",(n=N("OopsFramework/UI/Roll Number (滚动数字)"),h=I({type:l,tooltip:"需要滚动的 Label 组件,如果不进行设置,就会从自己的节点自动查找"}),p=I({tooltip:"当前的滚动值(开始的滚动值)"}),c=I({tooltip:"是否显示正负符号"}),b=I({tooltip:"滚动的目标值"}),g=I({tooltip:"滚动的线性差值",step:.01,max:1,min:0}),m=I({tooltip:"是否在开始时就播放"}),E=I({tooltip:"在滚动之前会等待几秒",step:.1,max:1,min:0}),f=I({type:a(C),tooltip:"是否在开始时就播放"}),_(y=n((T=e((d=class extends s{constructor(...t){super(...t),i(this,"label",T,this),i(this,"value",v,this),i(this,"showPlusSymbol",M,this),i(this,"_targetValue",S,this),i(this,"lerp",R,this),i(this,"playAtStart",V,this),i(this,"runWaitTimer",w,this),i(this,"valueType",F,this),this.onCustom=null,this.isScrolling=!1}get targetValue(){return this._targetValue}set targetValue(t){this._targetValue=t,this.scroll()}onLoad(){null==this.label&&(this.label=this.node.getComponent(l)),this.playAtStart&&(this.updateLabel(),this.scroll())}scroll(){this.isScrolling||(this.runWaitTimer>0?this.scheduleOnce((()=>{this.isScrolling=!0}),this.runWaitTimer):this.isScrolling=!0)}stop(){this.value=this.targetValue,this.isScrolling=!1,this.updateLabel()}init(t,e,i){this.targetValue=e||0,this.value=t||0,this.lerp=i||.1}scrollTo(t){null!=t&&(this.targetValue=t)}updateLabel(){let t=this.value,e="";switch(this.valueType){case C.INTEGER:e=Math.round(t)+"";break;case C.FIXED_2:e=t.toFixed(2);break;case C.TIMER:e=function(t=0,e=!0){let i=Math.floor(t),r=Math.floor(i/3600),l=Math.floor(i%3600/60),a=i%60,o=""+l,s=""+a;a<10&&(s="0"+a);return e?(l<10&&(o="0"+l),r+":"+o+":"+s):(o=""+(l+60*r),l<10&&(o="0"+l),o+":"+s)}(t);break;case C.PERCENTAGE:e=Math.round(100*t)+"%";break;case C.KMBT_FIXED2:e=t>=Number.MAX_VALUE?"MAX":t>1e12?(t/1e12).toFixed(2)+"T":t>1e9?(t/1e9).toFixed(2)+"B":t>1e6?(t/1e6).toFixed(2)+"M":t>1e3?(t/1e3).toFixed(2)+"K":Math.round(t).toString();break;case C.CUSTOMER:this.onCustom&&(e=this.onCustom(this.value,this.targetValue))}if(this.showPlusSymbol&&(t>0?e="+"+e:t<0&&(e="-"+e)),this.label){if(e===this.label.string)return;this.label.string=e}}update(t){if(0!=this.isScrolling)return this.value=u(this.value,this.targetValue,this.lerp),this.updateLabel(),Math.abs(this.value-this.targetValue)<=1e-4?(this.value=this.targetValue,void(this.isScrolling=!1)):void 0}}).prototype,"label",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(d.prototype,"value",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),M=e(d.prototype,"showPlusSymbol",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e(d.prototype,"targetValue",[b],Object.getOwnPropertyDescriptor(d.prototype,"targetValue"),d.prototype),S=e(d.prototype,"_targetValue",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),R=e(d.prototype,"lerp",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),V=e(d.prototype,"playAtStart",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),w=e(d.prototype,"runWaitTimer",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),F=e(d.prototype,"valueType",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return C.INTEGER}}),y=d))||y)||y));r._RF.pop()}}}));
  28. System.register("chunks:///_virtual/BhvSwitchPage.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMEnv.ts"],(function(e){var t,i,n,r,s,o,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,r=e.CCInteger,s=e._decorator,o=e.Component},function(e){h=e.VMEnv}],execute:function(){var a,d,c,p,u,g;n._RF.push({},"b3d083kncpDPqVztMtiq6DO","BhvSwitchPage",void 0);const{ccclass:l,property:x,executeInEditMode:P,menu:_}=s;e("BhvSwitchPage",(a=_("OopsFramework/UI/Switch Page (页面切换)"),d=x({type:r}),l(c=P(c=a((u=t((p=class extends o{constructor(...e){super(...e),i(this,"isLoopPage",u,this),i(this,"_index",g,this),this.preIndex=0,this._isChanging=!1}get index(){return this._index}set index(e){if(this.isChanging)return;e=Math.round(e);let t=this.node.children.length-1;this.isLoopPage?(e>t&&(e=0),e<0&&(e=t)):(e>t&&(e=t),e<0&&(e=0)),this.preIndex=this._index,this._index=e,h.editor?this._updateEditorPage(e):this._updatePage(e)}get isChanging(){return this._isChanging}onLoad(){this.preIndex=this.index}_updateEditorPage(e){if(!h.editor)return;let t=this.node.children;for(let i=0;i<t.length;i++){const n=t[i];n.active=i==e}}_updatePage(e){let t=this.node.children,i=this.preIndex,n=this.index;if(i===n)return;let r=t[i],s=t[n];r.active=!1,s.active=!0}next(){return!this.isChanging&&(this.index++,!0)}previous(){return!this.isChanging&&(this.index--,!0)}setEventIndex(e,t){return this.index>=0&&null!=this.index&&!1===this.isChanging&&(this.index=t,!0)}}).prototype,"isLoopPage",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=t(p.prototype,"_index",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),t(p.prototype,"index",[d],Object.getOwnPropertyDescriptor(p.prototype,"index"),p.prototype),c=p))||c)||c)||c));n._RF.pop()}}}));
  29. System.register("chunks:///_virtual/BranchNode.ts",["cc","./BehaviorTree.ts","./BTreeNode.ts"],(function(n){var t,i,s;return{setters:[function(n){t=n.cclegacy},function(n){i=n.BehaviorTree},function(n){s=n.BTreeNode}],execute:function(){t._RF.push({},"beafaDMsw9FCbGDpLVmMfa1","BranchNode",void 0);n("BranchNode",class extends s{constructor(n){super(),this.children=void 0,this._actualTask=void 0,this._runningNode=void 0,this._nodeRunning=void 0,this._blackboard=void 0,this.children=n||[]}start(){this._actualTask=0,super.start()}run(n){0==this.children.length?this._control.fail():(this._blackboard=n,this.start(),this._actualTask<this.children.length&&this._run()),this.end()}_run(n){var t=i.getNode(this.children[this._actualTask]);this._runningNode=t,t.setControl(this),t.start(this._blackboard),t.run(this._blackboard)}running(n){this._nodeRunning=n,this._control.running(n)}success(){this._nodeRunning=null,this._runningNode.end(this._blackboard)}fail(){this._nodeRunning=null,this._runningNode.end(this._blackboard)}}),t._RF.pop()}}}));
  30. System.register("chunks:///_virtual/BTreeNode.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"f0aeepAwndJP7wlpP6QKx06","BTreeNode",void 0);t("BTreeNode",class{constructor(){this._control=void 0,this.title=void 0,this.title=this.constructor.name}start(t){}end(t){}setControl(t){this._control=t}running(t){this._control.running(this)}success(){this._control.success()}fail(){this._control.fail()}}),e._RF.pop()}}}));
  31. System.register("chunks:///_virtual/BuildTimeConstants.ts",["cc","./env"],(function(t){var n,e;return{setters:[function(t){n=t.cclegacy},function(t){e=t}],execute:function(){n._RF.push({},"21a39/4HchJdJkSQKKKkLh9","BuildTimeConstants",void 0);const s=Object.keys(e).sort();t("BuildTimeConstants",class{constructor(){const t=s.reduce(((t,n)=>Math.max(t,n.length)),0),n=`${s.map((n=>{const s=e[n],c="boolean"==typeof s?s?"true":"false":s;return`\n${n.padStart(t," ")} : ${c}`}))}`;console.log(n)}}),n._RF.pop()}}}));
  32. System.register("chunks:///_virtual/ButtonEffect.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts","./ButtonSimple.ts"],(function(t){var e,n,o,i,s,a,r,c,u,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.initializerDefineProperty},function(t){o=t.cclegacy,i=t._decorator,s=t.Sprite,a=t.Animation,r=t.AnimationClip,c=t.Node},function(t){u=t.oops},function(t){l=t.default}],execute:function(){var d,p,f,h,m,y;o._RF.push({},"1be36hrGO5Oz6Eapg6ygW03","ButtonEffect",void 0);const{ccclass:g,property:_,menu:b}=i;t("default",(d=g("ButtonEffect"),p=b("OopsFramework/Button/ButtonEffect (有特效按钮)"),f=_({tooltip:"是否开启"}),d(h=p((y=e((m=class extends l{constructor(...t){super(...t),n(this,"disabledEffect",y,this),this.anim=void 0}get grayscale(){return this.node.getComponent(s).grayscale}set grayscale(t){this.node.getComponent(s)&&(this.node.getComponent(s).grayscale=t)}onLoad(){this.anim=this.node.addComponent(a);var t=u.res.get("common/anim/button_scale_start",r),e=u.res.get("common/anim/button_scale_end",r);this.anim.defaultClip=t,this.anim.createState(t,null==t?void 0:t.name),this.anim.createState(e,null==e?void 0:e.name),this.node.on(c.EventType.TOUCH_START,this.onTouchtStart,this),super.onLoad()}onTouchtStart(t){this.disabledEffect||this.anim.play("button_scale_start")}onTouchEnd(t){this.disabledEffect||this.anim.play("button_scale_end"),super.onTouchEnd(t)}onDestroy(){this.node.off(c.EventType.TOUCH_START,this.onTouchtStart,this),super.onDestroy()}}).prototype,"disabledEffect",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=m))||h)||h));o._RF.pop()}}}));
  33. System.register("chunks:///_virtual/ButtonSimple.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts"],(function(t){var e,o,i,n,r,s,u,c,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.AudioClip,r=t._decorator,s=t.Component,u=t.Node,c=t.game},function(t){p=t.oops}],execute:function(){var h,l,a,f,d,E,y,T,m,v;i._RF.push({},"8d645yObX1FvJfk2sbi0rxp","ButtonSimple",void 0);const{ccclass:C,property:b,menu:g}=r;t("default",(h=C("ButtonSimple"),l=g("OopsFramework/Button/ButtonSimple (节点按钮)"),a=b({tooltip:"是否只触发一次"}),f=b({tooltip:"每次触发间隔"}),d=b({tooltip:"触摸音效",type:n}),h(E=l((T=e((y=class extends s{constructor(...t){super(...t),o(this,"once",T,this),o(this,"interval",m,this),o(this,"effect",v,this),this.touchCount=0,this.touchtEndTime=0}onLoad(){this.node.on(u.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(u.EventType.TOUCH_CANCEL,this.onTouchEnd,this)}onTouchEnd(t){if(this.once){if(this.touchCount>0)return void(t.propagationStopped=!0);this.touchCount++}this.touchtEndTime&&c.totalTime-this.touchtEndTime<this.interval?t.propagationStopped=!0:(this.touchtEndTime=c.totalTime,this.playEffect())}async playEffect(){this.effect&&p.audio.playEffect(this.effect)}onDestroy(){this.node.off(u.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(u.EventType.TOUCH_CANCEL,this.onTouchEnd,this)}}).prototype,"once",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=e(y.prototype,"interval",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 500}}),v=e(y.prototype,"effect",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=y))||E)||E));i._RF.pop()}}}));
  34. System.register("chunks:///_virtual/ButtonTouchLong.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ButtonEffect.ts"],(function(t){var o,e,i,n,s,u;return{setters:[function(t){o=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.EventHandler,s=t._decorator},function(t){u=t.default}],execute:function(){var c,r,h,a,p,l,T,_;i._RF.push({},"da96en7WYpPTaPIkO1l/Nux","ButtonTouchLong",void 0);const{ccclass:g,property:m,menu:f}=s;t("ButtonTouchLong",(c=g("ButtonTouchLong"),r=f("OopsFramework/Button/ButtonTouchLong (长按按钮)"),h=m({tooltip:"长按时间(秒)"}),a=m({type:[n],tooltip:"长按时间(秒)"}),c(p=r((T=o((l=class extends u{constructor(...t){super(...t),e(this,"time",T,this),e(this,"clickEvents",_,this),this._passTime=0,this._isTouchLong=!0,this._event=null}onLoad(){this._isTouchLong=!1,super.onLoad()}onTouchtStart(t){this._event=t,this._passTime=0,super.onTouchtStart(t)}onTouchEnd(t){this._passTime>this.time&&(t.propagationStopped=!0),this._event=null,this._passTime=0,this._isTouchLong=!1,super.onTouchEnd(t)}removeTouchLong(){this._event=null,this._isTouchLong=!1}update(t){this._event&&!this._isTouchLong&&(this._passTime+=t,this._passTime>=this.time&&(this._isTouchLong=!0,this.clickEvents.forEach((t=>{t.emit([t.customEventData]),this.playEffect()})),this.removeTouchLong()))}}).prototype,"time",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_=o(l.prototype,"clickEvents",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=l))||p)||p));i._RF.pop()}}}));
  35. System.register("chunks:///_virtual/CameraUtil.ts",["cc"],(function(e){var t,r,i;return{setters:[function(e){t=e.cclegacy,r=e.Vec3,i=e.view}],execute:function(){t._RF.push({},"95c77QQpp1EjKj8UBFCCdKu","CameraUtil",void 0);e("CameraUtil",class{static isInView(e,t){const c=e.node.getWorldPosition(),n=e.worldToScreen(t),o=r.normalize(new r,t.subtract(c)),a=e.node.forward,s=r.dot(a,o),u=i.getViewportRect();return s>0&&n.x<=u.width&&n.x>=0&&n.y<=u.height&&n.y>=0}}),t._RF.pop()}}}));
  36. System.register("chunks:///_virtual/CCComp.ts",["cc","./GameComponent.ts"],(function(t){var o,c,e;return{setters:[function(t){o=t.cclegacy,c=t._decorator},function(t){e=t.GameComponent}],execute:function(){var n,s;o._RF.push({},"dd207fiyGJLf5r+bkiMgwdt","CCComp",void 0);const{ccclass:r,property:i}=c;t("CCComp",r("CCComp")(((s=class extends e{constructor(...t){super(...t),this.canRecycle=void 0,this.ent=void 0}}).tid=-1,s.compName=void 0,n=s))||n);o._RF.pop()}}}));
  37. System.register("chunks:///_virtual/CCVMParentComp.ts",["cc","./VMParent.ts"],(function(t){var e,c,o;return{setters:[function(t){e=t.cclegacy,c=t._decorator},function(t){o=t.default}],execute:function(){var n,r;e._RF.push({},"5908aTmM1lItpXgo7ROpQeQ","CCVMParentComp",void 0);const{ccclass:s,property:a}=c;t("CCVMParentComp",s("CCVMParentComp")(((r=class extends o{constructor(...t){super(...t),this.canRecycle=void 0,this.ent=void 0}}).tid=-1,r.compName=void 0,n=r))||n);e._RF.pop()}}}));
  38. System.register("chunks:///_virtual/Collection.ts",["cc"],(function(r){var t;return{setters:[function(r){t=r.cclegacy}],execute:function(){t._RF.push({},"1dcf5AtQQVK3KQ/2jHHD5gi","Collection",void 0);class e extends Map{constructor(...r){super(...r),this._array=[]}get array(){return this._array}set(r,t){if(this.has(r)){var e=this.get(r),s=this._array.indexOf(e);this._array[s]=t}else this._array.push(t);return super.set(r,t)}delete(r){const t=this.get(r);if(t){const e=this._array.indexOf(t);return e>-1&&this._array.splice(e,1),super.delete(r)}return!1}clear(){this._array.splice(0,this._array.length),super.clear()}}r("Collection",e),t._RF.pop()}}}));
  39. System.register("chunks:///_virtual/CommonPrompt.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageLabel.ts","./Oops.ts"],(function(t){var n,e,i,o,c,l,s;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t._decorator,c=t.Component},function(t){l=t.LanguageLabel},function(t){s=t.oops}],execute:function(){var a,r,u,h,f,b,p,g,d,m,_;i._RF.push({},"653bf8VPC5Fn49zFJFqXVgx","CommonPrompt",void 0);const{ccclass:y,property:C}=o;t("CommonPrompt",(a=y("CommonPrompt"),r=C(l),u=C(l),h=C(l),f=C(l),a((g=n((p=class extends c{constructor(...t){super(...t),e(this,"lab_title",g,this),e(this,"lab_content",d,this),e(this,"lab_ok",m,this),e(this,"lab_cancel",_,this),this.config={}}onAdded(t){return this.config=t||{},this.setTitle(),this.setContent(),this.setBtnOkLabel(),this.setBtnCancelLabel(),this.node.active=!0,!0}setTitle(){this.lab_title.dataID=this.config.title}setContent(){this.lab_content.dataID=this.config.content}setBtnOkLabel(){this.lab_ok.dataID=this.config.okWord}setBtnCancelLabel(){this.lab_cancel&&(this.lab_cancel.dataID=this.config.cancelWord,this.lab_cancel.node.parent.active=this.config.needCancel||!1)}onOk(){"function"==typeof this.config.okFunc&&this.config.okFunc(),this.close()}onClose(){"function"==typeof this.config.closeFunc&&this.config.closeFunc(),this.close()}onCancel(){"function"==typeof this.config.cancelFunc&&this.config.cancelFunc(),this.close()}close(){s.gui.removeByNode(this.node)}onDestroy(){this.config=null}}).prototype,"lab_title",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=n(p.prototype,"lab_content",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=n(p.prototype,"lab_ok",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=n(p.prototype,"lab_cancel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=p))||b));i._RF.pop()}}}));
  40. System.register("chunks:///_virtual/Config.ts",["cc"],(function(t){var c;return{setters:[function(t){c=t.cclegacy}],execute:function(){c._RF.push({},"5034dEezo5Frr6dhZGVgmTh","Config",void 0);t("Config",class{constructor(){this.game=void 0,this.query=void 0}}),c._RF.pop()}}}));
  41. System.register("chunks:///_virtual/DateExt.ts",["cc"],(function(){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"80ebbBz8etB5qijWdYrU2HH","DateExt",void 0),Date.prototype.format=function(t){const e=this.getFullYear(),r=this.getMonth()+1,c=this.getDate(),s=this.getHours(),i=this.getMinutes(),n=this.getSeconds();return t.replace("yy",e.toString()).replace("mm",(r<10?"0":"")+r).replace("dd",(c<10?"0":"")+c).replace("hh",(s<10?"0":"")+s).replace("mm",(i<10?"0":"")+i).replace("ss",(n<10?"0":"")+n)},t._RF.pop()}}}));
  42. System.register("chunks:///_virtual/Decorator.ts",["cc","./BehaviorTree.ts","./BTreeNode.ts"],(function(e){var t,o,r;return{setters:[function(e){t=e.cclegacy},function(e){o=e.BehaviorTree},function(e){r=e.BTreeNode}],execute:function(){t._RF.push({},"0455agxsbxHlYleJPDpJX3l","Decorator",void 0);e("Decorator",class extends r{constructor(e){super(),this.node=void 0,e&&(this.node=o.getNode(e))}setNode(e){this.node=o.getNode(e)}start(){this.node.setControl(this),this.node.start(),super.start()}end(){this.node.end()}run(e){this.node.run(e)}}),t._RF.pop()}}}));
  43. System.register("chunks:///_virtual/Defines.ts",["cc"],(function(s){var c;return{setters:[function(s){c=s.cclegacy}],execute:function(){c._RF.push({},"82d3a9c71JEkI95d3qscHm8","Defines",void 0);s("ViewParams",class{constructor(){this.config=null,this.params=null,this.callbacks=null,this.valid=!0,this.node=null}}),c._RF.pop()}}}));
  44. System.register("chunks:///_virtual/DelegateComponent.ts",["cc","./Oops.ts"],(function(e){var o,n,t,s;return{setters:[function(e){o=e.cclegacy,n=e.Component,t=e._decorator},function(e){s=e.oops}],execute:function(){var i;o._RF.push({},"d8f1fGRD7dBzIeBSkOpd/Py","DelegateComponent",void 0);const{ccclass:a}=t;e("DelegateComponent",a("DelegateComponent")(i=class extends n{constructor(...e){super(...e),this.vp=null,this.onCloseWindow=null}add(){return new Promise((async(e,o)=>{for(let o=0;o<this.node.components.length;o++){const n=this.node.components[o],t=n.onAdded;if(t&&0==await t.call(n,this.vp.params))return void e(!1)}"function"==typeof this.vp.callbacks.onAdded&&this.vp.callbacks.onAdded(this.node,this.vp.params),e(!0)}))}remove(e){this.vp.valid&&(this.applyComponentsFunction(this.node,"onBeforeRemove",this.vp.params),"function"==typeof this.vp.callbacks.onBeforeRemove?this.vp.callbacks.onBeforeRemove(this.node,this.onBeforeRemoveNext.bind(this,e)):this.removed(this.vp,e))}onBeforeRemoveNext(e){this.removed(this.vp,e)}removed(e,o){e.valid=!1,e.callbacks&&"function"==typeof e.callbacks.onRemoved&&e.callbacks.onRemoved(this.node,e.params),this.onCloseWindow&&this.onCloseWindow(e),o?(this.node.destroy(),s.res.release(e.config.prefab)):this.node.removeFromParent()}onDestroy(){this.applyComponentsFunction(this.node,"onRemoved",this.vp.params),this.vp=null}applyComponentsFunction(e,o,n){for(let t=0;t<e.components.length;t++){const s=e.components[t],i=s[o];i&&i.call(s,n)}}})||i);o._RF.pop()}}}));
  45. System.register("chunks:///_virtual/DemoViewComp.ts",["cc","./ECS.ts","./CCComp.ts"],(function(e){var o,t,s,c;return{setters:[function(e){o=e.cclegacy,t=e._decorator},function(e){s=e.ecs},function(e){c=e.CCComp}],execute:function(){var r;o._RF.push({},"78b5dVjj81IxoHGx2PAK8bT","DemoViewComp",void 0);const{ccclass:i,property:n}=t;e("DemoViewComp",i("DemoViewComp")(r=s.register("DemoView",!1)(r=class extends c{start(){}reset(){this.node.destroy()}})||r)||r);o._RF.pop()}}}));
  46. System.register("chunks:///_virtual/DeviceUtil.ts",["cc"],(function(t){var r,e;return{setters:[function(t){r=t.cclegacy,e=t.sys}],execute:function(){r._RF.push({},"287a3oHJD1OrKr6dp6idwn9","DeviceUtil",void 0);t("DeviceUtil",class{static getSafeAreaRect(){return e.getSafeAreaRect()}static get platform(){return e.platform}static get os(){return e.os}static get isNative(){return e.isNative}static get isBrowser(){return e.isBrowser}static get isMobile(){return e.isMobile}static get isAndroid(){return e.platform===e.Platform.ANDROID}static get isIPhone(){return e.platform===e.Platform.IOS}static get isMobileBrowser(){return e.platform===e.Platform.MOBILE_BROWSER}static get isDesktopBrowser(){return e.platform===e.Platform.DESKTOP_BROWSER}static get isWeChat(){return e.platform===e.Platform.WECHAT_GAME}static get isByteDance(){return e.platform===e.Platform.BYTEDANCE_MINI_GAME}static get isBaidu(){return e.platform===e.Platform.BAIDU_MINI_GAME}static get isVivo(){return e.platform===e.Platform.VIVO_MINI_GAME}static get isOPPO(){return e.platform===e.Platform.OPPO_MINI_GAME}static get isXiaomi(){return e.platform===e.Platform.XIAOMI_QUICK_GAME}static get isHuawei(){return e.platform===e.Platform.HUAWEI_QUICK_GAME}static get isAlipay(){return e.platform===e.Platform.ALIPAY_MINI_GAME}static get isOpenHarmony(){return e.platform===e.Platform.OPENHARMONY}}),r._RF.pop()}}}));
  47. System.register("chunks:///_virtual/DirectorExt.ts",["cc"],(function(){var e,t,c,i;return{setters:[function(o){e=o.cclegacy,t=o.Director,c=o.director,i=o.js}],execute:function(){if(e._RF.push({},"37f48DDLR1EXKhzn+7pLlWB","DirectorExt",void 0),!t.prototype["__$cc-director-speed-extension$__"]){t.prototype["__$cc-director-speed-extension$__"]=!0;let e=c.tick.bind(c);c.tick=function(t){t*=c.globalGameTimeScale,e(t)},i.mixin(t.prototype,{globalGameTimeScale:1})}e._RF.pop()}}}));
  48. System.register("chunks:///_virtual/ECS.ts",["cc","./ECSComp.ts","./ECSEntity.ts","./ECSMatcher.ts","./ECSModel.ts","./ECSSystem.ts"],(function(t){var e,n,i,o,r,c,s,u;return{setters:[function(t){e=t.cclegacy},function(t){n=t.ECSComp},function(t){i=t.ECSEntity},function(t){o=t.ECSMatcher},function(t){r=t.ECSModel},function(t){c=t.ECSSystem,s=t.ECSRootSystem,u=t.ECSComblockSystem}],execute:function(){let d;t("ecs",void 0),e._RF.push({},"be87fT76plLkaUKEYpkuV0n","ECS",void 0),function(t){const e=t.Entity=i;t.Comp=n,t.System=c,t.RootSystem=s,t.ComblockSystem=u;function l(t){return function(){let t=new e;return t.eid=r.eid++,r.eid2Entity.set(t.eid,t),t}().add(t)}t.register=function(t,e=!0){return function(n){if(n.s){var i=r.systems.get(t);null==i&&(i=new d.System,r.systems.set(t,i)),i.add(new n)}else if(null==n.tid)r.entityCtors.set(n,t);else{if(-1!==n.tid)throw new Error(`重复注册组件: ${t}.`);n.tid=r.compTid++,n.compName=t,e?(r.compCtors.push(n),r.compPools.set(n.tid,[])):r.compCtors.push(null),r.compAddOrRemove.set(n.tid,[])}}},t.getEntity=function(t){var e=r.entityCtors.get(t);null==e&&console.error(`${t.name} 实体没有注册`);var n=(r.entityPool.get(e)||[]).pop();return n||((n=new t).eid=r.eid++,n.name=e),n.init?(n.isValid=!0,n.init()):console.error(`${t.name} 实体缺少 init 方法初始化默认组件`),r.eid2Entity.set(n.eid,n),n},t.query=function(t){let e=r.groups.get(t.mid);return e||(e=r.createGroup(t),r.eid2Entity.forEach(e.onComponentAddOrRemove,e)),e.matchEntities},t.clear=function(){r.eid2Entity.forEach((t=>{t.destroy()})),r.groups.forEach((t=>{t.clear()})),r.compAddOrRemove.forEach((t=>{t.length=0})),r.eid2Entity.clear(),r.groups.clear()},t.getEntityByEid=function(t){return r.eid2Entity.get(t)},t.activeEntityCount=function(){return r.eid2Entity.size},t.allOf=function(...t){return(new o).allOf(...t)},t.anyOf=function(...t){return(new o).anyOf(...t)},t.onlyOf=function(...t){return(new o).onlyOf(...t)},t.excludeOf=function(...t){return(new o).excludeOf(...t)},t.getSingleton=function(t){if(!r.tid2comp.has(t.tid)){let e=l(t);r.tid2comp.set(t.tid,e)}return r.tid2comp.get(t.tid)},t.addSingleton=function(t){let e=t.constructor.tid;r.tid2comp.has(e)||r.tid2comp.set(e,t)}}(d||(d=t("ecs",{}))),e._RF.pop()}}}));
  49. System.register("chunks:///_virtual/ECSComp.ts",["cc"],(function(c){var t;return{setters:[function(c){t=c.cclegacy}],execute:function(){t._RF.push({},"3d017ZhAZRH4bPfpLr5++8F","ECSComp",void 0);class e{constructor(){this.ent=void 0,this.canRecycle=!0}}c("ECSComp",e),e.tid=-1,e.compName=void 0,t._RF.pop()}}}));
  50. System.register("chunks:///_virtual/ECSEntity.ts",["cc","./ECSMask.ts","./ECSModel.ts"],(function(t){var e,i,s;return{setters:[function(t){e=t.cclegacy},function(t){i=t.ECSMask},function(t){s=t.ECSModel}],execute:function(){function h(t,e){let i=s.compAddOrRemove.get(e);for(let e=i.length-1;e>=0;e--)i[e](t);s.tid2comp.has(e)&&s.tid2comp.delete(e)}e._RF.push({},"1fb62WC3PZPvLhjoZQfrREJ","ECSEntity",void 0);t("ECSEntity",class{constructor(){this.eid=-1,this.name="",this.isValid=!0,this.mask=new i,this.compTid2Ctor=new Map,this.compTid2Obj=new Map,this._parent=null,this._children=null}get parent(){return this._parent}set parent(t){this._parent=t}get children(){return null==this._children&&(this._children=new Map),this._children}addChild(t){t._parent=this,this.children.set(t.eid,t)}removeChild(t,e=!0){null!=this.children&&(t.parent=null,this.children.delete(t.eid),e&&t.destroy())}add(t,e=!1){if("function"==typeof t){let i,o=t.tid;if(-1===t.tid)throw Error(`【${this.name}】实体【${t.compName}】组件未注册`);if(this.compTid2Ctor.has(o)){if(!e)return console.log(`【${this.name}】实体【${t.compName}】组件已存在`),this[t.compName];this.remove(t)}return this.mask.set(o),this.compTid2Obj.has(o)?(i=this.compTid2Obj.get(o),this.compTid2Obj.delete(o)):i=function(t){const e=s.compCtors[t.tid];if(!e)throw Error(`没有找到该组件的构造函数,检查${t.compName}是否为不可构造的组件`);return s.compPools.get(t.tid).pop()||new e}(t),this[t.compName]=i,this.compTid2Ctor.set(o,t),i.ent=this,h(this,o),i}{let e=t.constructor,i=e.tid;if(-1===i||null==i)throw Error(`【${this.name}】实体【${e.name}】组件未注册`);if(this.compTid2Ctor.has(i))throw Error(`【${this.name}】实体【${e.name}】组件已经存在`);return this.mask.set(i),this[e.compName]=t,this.compTid2Ctor.set(i,e),t.ent=this,t.canRecycle=!1,h(this,i),this}}addComponents(...t){for(let e of t)this.add(e);return this}get(t){return this[t.compName]}has(t){return"number"==typeof t?this.mask.has(t):this.compTid2Ctor.has(t.tid)}remove(t,e=!0){let i=!1,o=t.tid,n=t.compName;if(this.mask.has(o)){i=!0;let h=this[t.compName];if(h.ent=null,e){if(h.reset(),h.canRecycle){s.compPools.get(o).push(h)}}else this.compTid2Obj.set(o,h)}i&&(this[n]=null,this.mask.delete(o),this.compTid2Ctor.delete(o),h(this,o))}destroy(){this.isValid=!1,this._parent&&(this._parent.removeChild(this,!1),this._parent=null),this._children&&(this._children.forEach((t=>{this.removeChild(t)})),this._children=null),this.compTid2Ctor.forEach(this._remove,this),function(t){if(s.eid2Entity.has(t.eid)){let e=s.entityPool.get(t.name);null==e&&(e=[],s.entityPool.set(t.name,e)),e.push(t),s.eid2Entity.delete(t.eid)}else console.warn("试图销毁不存在的实体")}(this),this.compTid2Obj.clear()}_remove(t){this.remove(t,!0)}}),e._RF.pop()}}}));
  51. System.register("chunks:///_virtual/ECSGroup.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"c21a23o9P5FNJamcMmoYWfs","ECSGroup",void 0);t("ECSGroup",class{get matchEntities(){return null===this._entitiesCache&&(this._entitiesCache=Array.from(this._matchEntities.values())),this._entitiesCache}get entity(){return this.matchEntities[0]}constructor(t){this.matcher=void 0,this._matchEntities=new Map,this._entitiesCache=null,this.count=0,this._enteredEntities=null,this._removedEntities=null,this.matcher=t}onComponentAddOrRemove(t){this.matcher.isMatch(t)?(this._matchEntities.set(t.eid,t),this._entitiesCache=null,this.count++,this._enteredEntities&&(this._enteredEntities.set(t.eid,t),this._removedEntities.delete(t.eid))):this._matchEntities.has(t.eid)&&(this._matchEntities.delete(t.eid),this._entitiesCache=null,this.count--,this._enteredEntities&&(this._enteredEntities.delete(t.eid),this._removedEntities.set(t.eid,t)))}watchEntityEnterAndRemove(t,e){this._enteredEntities=t,this._removedEntities=e}clear(){var t,e;this._matchEntities.clear(),this._entitiesCache=null,this.count=0,null==(t=this._enteredEntities)||t.clear(),null==(e=this._removedEntities)||e.clear()}}),e._RF.pop()}}}));
  52. System.register("chunks:///_virtual/ECSMask.ts",["cc","./ECSModel.ts"],(function(s){var t,e;return{setters:[function(s){t=s.cclegacy},function(s){e=s.ECSModel}],execute:function(){t._RF.push({},"d18694PPbtGs5Ipgo/vaJBX","ECSMask",void 0);s("ECSMask",class{constructor(){this.mask=void 0,this.size=0;let s=Math.ceil(e.compTid/31);this.mask=new Uint32Array(s),this.size=s}set(s){this.mask[s/31>>>0]|=1<<s%31}delete(s){this.mask[s/31>>>0]&=~(1<<s%31)}has(s){return!!(this.mask[s/31>>>0]&1<<s%31)}or(s){for(let t=0;t<this.size;t++)if(this.mask[t]&s.mask[t])return!0;return!1}and(s){for(let t=0;t<this.size;t++)if((this.mask[t]&s.mask[t])!=this.mask[t])return!1;return!0}clear(){for(let s=0;s<this.size;s++)this.mask[s]=0}}),t._RF.pop()}}}));
  53. System.register("chunks:///_virtual/ECSMatcher.ts",["cc","./ECSMask.ts","./ECSModel.ts"],(function(t){var s,i,e;return{setters:[function(t){s=t.cclegacy},function(t){i=t.ECSMask},function(t){e=t.ECSModel}],execute:function(){s._RF.push({},"37e8arlqPlN7amZYyHFvBIp","ECSMatcher",void 0);let h=1;class r{get key(){if(!this._key){let t="";for(let s=0;s<this.rules.length;s++)t+=this.rules[s].getKey(),s<this.rules.length-1&&(t+=" && ");this._key=t}return this._key}constructor(){this.rules=[],this._indices=null,this.isMatch=void 0,this.mid=-1,this._key=null,this.mid=h++}get indices(){return null===this._indices&&(this._indices=[],this.rules.forEach((t=>{Array.prototype.push.apply(this._indices,t.indices)}))),this._indices}anyOf(...t){return this.rules.push(new c(...t)),this.bindMatchMethod(),this}allOf(...t){return this.rules.push(new u(...t)),this.bindMatchMethod(),this}onlyOf(...t){this.rules.push(new u(...t));let s=[];for(let i of e.compCtors)t.indexOf(i)<0&&s.push(i);return this.rules.push(new l(...s)),this.bindMatchMethod(),this}excludeOf(...t){return this.rules.push(new l(...t)),this.bindMatchMethod(),this}bindMatchMethod(){1===this.rules.length?this.isMatch=this.isMatch1:2===this.rules.length?this.isMatch=this.isMatch2:this.isMatch=this.isMatchMore}isMatch1(t){return this.rules[0].isMatch(t)}isMatch2(t){return this.rules[0].isMatch(t)&&this.rules[1].isMatch(t)}isMatchMore(t){for(let s of this.rules)if(!s.isMatch(t))return!1;return!0}clone(){let t=new r;return t.mid=h++,this.rules.forEach((s=>t.rules.push(s))),t}}t("ECSMatcher",r);class n{constructor(...t){this.indices=[],this.mask=new i;let s=-1,e=t.length;for(let i=0;i<e;i++){if(s="number"==typeof t[i]?t[i]:t[i].tid,-1==s)throw Error("存在没有注册的组件!");this.mask.set(s),this.indices.indexOf(s)<0&&this.indices.push(s)}e>1&&this.indices.sort(((t,s)=>t-s))}toString(){return this.indices.join("-")}}class c extends n{isMatch(t){return this.mask.or(t.mask)}getKey(){return"anyOf:"+this.toString()}}class u extends n{isMatch(t){return this.mask.and(t.mask)}getKey(){return"allOf:"+this.toString()}}class l extends n{getKey(){return"excludeOf:"+this.toString()}isMatch(t){return!this.mask.or(t.mask)}}s._RF.pop()}}}));
  54. System.register("chunks:///_virtual/ECSModel.ts",["cc","./ECSGroup.ts"],(function(e){var t,o;return{setters:[function(e){t=e.cclegacy},function(e){o=e.ECSGroup}],execute:function(){t._RF.push({},"1d60egM6r9Gta4Op3VABSGM","ECSModel",void 0);class n{static createGroup(e){let t=n.groups.get(e.mid);if(!t){t=new o(e),n.groups.set(e.mid,t);let p=e.indices;for(let e=0;e<p.length;e++)n.compAddOrRemove.get(p[e]).push(t.onComponentAddOrRemove.bind(t))}return t}}e("ECSModel",n),n.eid=1,n.entityCtors=new Map,n.entityPool=new Map,n.eid2Entity=new Map,n.compTid=0,n.compPools=new Map,n.compCtors=[],n.compAddOrRemove=new Map,n.tid2comp=new Map,n.groups=new Map,n.systems=new Map,t._RF.pop()}}}));
  55. System.register("chunks:///_virtual/ECSSystem.ts",["cc","./ECSModel.ts"],(function(t){var e,s;return{setters:[function(t){e=t.cclegacy},function(t){s=t.ECSModel}],execute:function(){e._RF.push({},"9261fRWg2RBY5kxbFJsY1QC","ECSSystem",void 0);class i{constructor(){this.group=void 0,this.dt=0,this.enteredEntities=null,this.removedEntities=null,this.hasEntityEnter=!1,this.hasEntityRemove=!1,this.hasUpdate=!1,this.tmpExecute=null,this.execute=void 0;let t=Object.hasOwnProperty,e=Object.getPrototypeOf(this),i=t.call(e,"entityEnter"),h=t.call(e,"entityRemove"),o=t.call(e,"firstUpdate"),n=t.call(e,"update");this.hasEntityEnter=i,this.hasEntityRemove=h,this.hasUpdate=n,i||h?(this.enteredEntities=new Map,this.removedEntities=new Map,this.execute=this.execute1,this.group=s.createGroup(this.filter()),this.group.watchEntityEnterAndRemove(this.enteredEntities,this.removedEntities)):(this.execute=this.execute0,this.group=s.createGroup(this.filter())),o&&(this.tmpExecute=this.execute,this.execute=this.updateOnce)}init(){}onDestroy(){}hasEntity(){return this.group.count>0}updateOnce(t){if(0!==this.group.count){if(this.dt=t,this.enteredEntities.size>0){var e=this.enteredEntities.values();for(let t of e)this.entityEnter(t);this.enteredEntities.clear()}for(let t of this.group.matchEntities)this.firstUpdate(t);this.execute=this.tmpExecute,this.execute(t),this.tmpExecute=null}}execute0(t){if(0!==this.group.count&&(this.dt=t,this.hasUpdate))for(let t of this.group.matchEntities)this.update(t)}execute1(t){let e;if(this.removedEntities.size>0){if(this.hasEntityRemove){e=this.removedEntities.values();for(let t of e)this.entityRemove(t)}this.removedEntities.clear()}if(0!==this.group.count){if(this.dt=t,this.enteredEntities.size>0){if(this.hasEntityEnter){e=this.enteredEntities.values();for(let t of e)this.entityEnter(t)}this.enteredEntities.clear()}if(this.hasUpdate)for(let t of this.group.matchEntities)this.update(t)}}}t("ECSComblockSystem",i),i.s=!0;t("ECSRootSystem",class{constructor(){this.executeSystemFlows=[],this.systemCnt=0}add(t){return t instanceof h?Array.prototype.push.apply(this.executeSystemFlows,t.comblockSystems):this.executeSystemFlows.push(t),this.systemCnt=this.executeSystemFlows.length,this}init(){s.systems.forEach((t=>this.add(t))),this.executeSystemFlows.forEach((t=>t.init()))}execute(t){for(let e=0;e<this.systemCnt;e++)this.executeSystemFlows[e].execute(t)}clear(){this.executeSystemFlows.forEach((t=>t.onDestroy()))}});class h{constructor(){this._comblockSystems=[]}get comblockSystems(){return this._comblockSystems}add(t){return t instanceof h?(Array.prototype.push.apply(this._comblockSystems,t._comblockSystems),t._comblockSystems.length=0):this._comblockSystems.push(t),this}}t("ECSSystem",h),e._RF.pop()}}}));
  56. System.register("chunks:///_virtual/Effect2DFollow3D.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts","./MathUtil.ts"],(function(t){var e,o,i,s,n,r,a,l,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,s=t.Node,n=t._decorator,r=t.Component,a=t.Vec3},function(t){l=t.oops},function(t){c=t.MathUtil}],execute:function(){var u,h,p,d,f,m,b,w;i._RF.push({},"f04f92UNY1J34UPA0VrEIsH","Effect2DFollow3D",void 0);const{ccclass:D,property:y}=n;t("Effect2DFollow3D",(u=D("Effect2DFollow3D"),h=y({type:s}),p=y({type:s}),u((m=e((f=class extends r{constructor(...t){super(...t),o(this,"node3d",m,this),o(this,"nodeUi",b,this),o(this,"distance",w,this),this.camera=null,this.pos=new a}setTarget(t){this.node3d=t}start(){const t=this.zoom();this.node.setScale(t,t,1)}lateUpdate(t){let e=this.zoom();e=c.lerp(this.node.scale.x,e,.1),this.node.setScale(e,e,1)}zoom(){this.camera.convertToUINode(this.node3d.worldPosition,l.gui.game,this.pos),this.nodeUi.setPosition(this.pos),a.transformMat4(this.pos,this.node3d.worldPosition,this.camera._camera.matView);const t=this.distance/Math.abs(this.pos.z);return Math.floor(100*t)/100}}).prototype,"node3d",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=e(f.prototype,"nodeUi",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(f.prototype,"distance",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),d=f))||d));i._RF.pop()}}}));
  57. System.register("chunks:///_virtual/EffectDelayRelease.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EffectSingleCase.ts"],(function(e){var t,n,c,l,s,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.initializerDefineProperty},function(e){c=e.cclegacy,l=e._decorator,s=e.Component},function(e){a=e.EffectSingleCase}],execute:function(){var i,r,o;c._RF.push({},"01359fvxlFJZKx7BLUcTSWS","EffectDelayRelease",void 0);const{ccclass:f,property:u}=l;e("EffectDelayRelease",f("EffectDelayRelease")((o=t((r=class extends s{constructor(...e){super(...e),n(this,"delay",o,this)}onEnable(){this.scheduleOnce(this.onDelay,this.delay)}onDelay(){a.instance.put(this.node)}}).prototype,"delay",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),i=r))||i);c._RF.pop()}}}));
  58. System.register("chunks:///_virtual/EffectEvent.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"445875CzyRKaLiSXTYH66lm","EffectEvent",void 0);t("EffectEvent",function(t){return t.Put="EffectEvent_Put",t}({}));e._RF.pop()}}}));
  59. System.register("chunks:///_virtual/EffectFinishedRelease.ts",["cc","./EffectEvent.ts","./MessageManager.ts"],(function(e){var t,n,i,s,o,a,r,c;return{setters:[function(e){t=e.cclegacy,n=e.Component,i=e.sp,s=e.Animation,o=e.ParticleSystem,a=e._decorator},function(e){r=e.EffectEvent},function(e){c=e.message}],execute:function(){var h;t._RF.push({},"a751fmayL5JMYH0D4uJoK5H","EffectFinishedRelease",void 0);const{ccclass:l,property:u}=a;e("EffectFinishedRelease",l("EffectFinishedRelease")(h=class extends n{constructor(...e){super(...e),this.maxDuration=0}onEnable(){let e=this.getComponent(i.Skeleton);if(e){let t=e.skeletonData.skeletonJson.animations;for(let n in t){e.setCompleteListener(this.onRecovery.bind(this)),e.setAnimation(0,n,!1);break}}else{let e=this.node.getComponentsInChildren(s);if(e.length>0)e.forEach((e=>{var t;let n=null==(t=e.defaultClip)?void 0:t.name;if(n){let t=e.getState(n);if(t){let e=t.duration;this.maxDuration=e>this.maxDuration?e:this.maxDuration}}e.play()})),this.scheduleOnce(this.onRecovery.bind(this),this.maxDuration);else if(o){this.node.getComponentsInChildren(o).forEach((e=>{e.clear(),e.stop(),e.play();let t=e.duration;this.maxDuration=t>this.maxDuration?t:this.maxDuration})),this.scheduleOnce(this.onRecovery.bind(this),this.maxDuration)}}}onRecovery(){this.node.parent&&c.dispatchEvent(r.Put,this.node)}})||h);t._RF.pop()}}}));
  60. System.register("chunks:///_virtual/EffectSingleCase.ts",["cc","./MessageManager.ts","./ResLoader.ts","./ViewUtil.ts","./EffectEvent.ts","./EffectFinishedRelease.ts"],(function(e){var t,s,i,n,a,f,l,r,c,o,h;return{setters:[function(e){t=e.cclegacy,s=e.NodePool,i=e.Prefab,n=e.sp,a=e.Animation,f=e.ParticleSystem},function(e){l=e.message},function(e){r=e.resLoader},function(e){c=e.ViewUtil},function(e){o=e.EffectEvent},function(e){h=e.EffectFinishedRelease}],execute:function(){t._RF.push({},"bf338Z+oYxIUbd4bPREw9Ud","EffectSingleCase",void 0);class d{static get instance(){return null==this._instance&&(this._instance=new d),this._instance}get speed(){return this._speed}set speed(e){this._speed=e,this.effects_use.forEach(((e,t)=>{this.setSpeed(t)}))}constructor(){this._speed=1,this.effects=new Map,this.effects_use=new Map,this.res=new Map,l.on(o.Put,this.onPut,this)}onPut(e,t){this.put(t)}getCount(e){var t=this.effects.get(e);return t?t.size():0}preload(e,t,n=r.defaultBundleName){return new Promise((async(a,f)=>{let l=this.effects.get(t);null==l&&(l=new s,this.effects.set(t,l)),this.res.set(t,n),await r.loadAsync(n,t,i);for(let s=0;s<e;s++){let e=c.createPrefabNode(t);e.res_path=t,l.put(e)}a()}))}loadAndShow(e,t,s){return new Promise((async(n,a)=>{if(null==this.effects.get(e)){s&&s.bundleName?(this.res.set(e,s.bundleName),await r.loadAsync(s.bundleName,e,i)):(this.res.set(e,r.defaultBundleName),await r.loadAsync(e,i));n(this.show(e,t,s))}else{n(this.show(e,t,s))}}))}show(e,t,i){var n,a=this.effects.get(e);return null==a&&(a=new s,this.effects.set(e,a)),0==a.size()?((n=c.createPrefabNode(e)).res_path=e,i&&i.isPlayFinishedRelease&&n.addComponent(h)):n=a.get(),this.setSpeed(n),i&&(i.pos&&(n.position=i.pos),i.worldPos&&(n.worldPosition=i.worldPos)),t&&(n.parent=t),this.effects_use.set(n,!0),n}put(e){let t=e.res_path;if(t){let s=this.effects.get(t);s&&(this.effects_use.delete(e),s.put(e))}}clear(e){e?this.effects.get(e).clear():(this.effects.forEach((e=>{e.clear()})),this.effects.clear())}release(e){if(e){this.clear(e);const t=this.res.get(e);r.release(e,t),this.res.delete(e)}else this.clear(),this.res.forEach(((e,t)=>{r.release(t,e)})),this.res.clear()}setSpeed(e){let t=e.getComponent(n.Skeleton);if(t)t.timeScale=this.speed;else{const t=e.getComponentsInChildren(a);if(t.length>0)t.forEach((e=>{var t;let s=null==(t=e.defaultClip)?void 0:t.name;if(s){let t=e.getState(s);t&&(t.speed=this.speed)}}));else if(f){e.getComponentsInChildren(f).forEach((e=>{e.simulationSpeed=this.speed}))}}}}e("EffectSingleCase",d),d._instance=void 0,t._RF.pop()}}}));
  61. System.register("chunks:///_virtual/EncryptUtil.ts",["cc"],(function(){var t;return{setters:[function(c){t=c.cclegacy}],execute:function(){t._RF.push({},"46d12Bx4JdKnIYHhcvNk6S1","EncryptUtil",void 0),t._RF.pop()}}}));
  62. System.register("chunks:///_virtual/EventDispatcher.ts",["cc","./MessageManager.ts"],(function(s){var t,e;return{setters:[function(s){t=s.cclegacy},function(s){e=s.MessageEventData}],execute:function(){t._RF.push({},"c680af5iPNKeIO4cArf/90m","EventDispatcher",void 0);s("EventDispatcher",class{constructor(){this._msg=null}on(s,t,n){null==this._msg&&(this._msg=new e),this._msg.on(s,t,n)}off(s){this._msg&&this._msg.off(s)}dispatchEvent(s,...t){null==this._msg&&(this._msg=new e),this._msg.dispatchEvent(s,...t)}destroy(){this._msg&&this._msg.clear(),this._msg=null}}),t._RF.pop()}}}));
  63. System.register("chunks:///_virtual/EventMessage.ts",["cc"],(function(E){var e;return{setters:[function(E){e=E.cclegacy}],execute:function(){e._RF.push({},"beea7u9xnJD4rMj6ua/LTcF","EventMessage",void 0);E("EventMessage",function(E){return E.GAME_SHOW="GAME_ENTER",E.GAME_HIDE="GAME_EXIT",E.GAME_RESIZE="GAME_RESIZE",E.GAME_FULL_SCREEN="GAME_FULL_SCREEN",E.GAME_ORIENTATION="GAME_ORIENTATION",E}({}));e._RF.pop()}}}));
  64. System.register("chunks:///_virtual/FlashSpine.ts",["cc"],(function(t){var e,i,s,a,n;return{setters:[function(t){e=t.cclegacy,i=t.Component,s=t.sp,a=t.Material,n=t._decorator}],execute:function(){var h;e._RF.push({},"61de7pPhiNF5plXR5pVKfXu","FlashSpine",void 0);const{ccclass:o,property:r}=n;t("default",o("FlashSpine")(h=class extends i{constructor(...t){super(...t),this.duration=.5,this._median=0,this._time=0,this._material=null,this._skeleton=null}onLoad(){this._median=this.duration/2,this._skeleton=this.node.getComponent(s.Skeleton),this._material=this._skeleton.customMaterial,this._material.setProperty("u_rate",1)}update(t){if(this._time>0){this._time-=t,this._time=this._time<0?0:this._time;let e=2*Math.abs(this._time-this._median)/this.duration,i=new a;i.copy(this._material),this._skeleton.customMaterial=i,i.setProperty("u_rate",e)}}clickFlash(){this._time=this.duration}})||h);e._RF.pop()}}}));
  65. System.register("chunks:///_virtual/FlashSprite.ts",["cc"],(function(t){var i,e,s,a;return{setters:[function(t){i=t.cclegacy,e=t.Component,s=t.Sprite,a=t._decorator}],execute:function(){var r;i._RF.push({},"a7a9eXWbUpJ3rONqlgUYCY/","FlashSprite",void 0);const{ccclass:h,property:n}=a;t("default",h("FlashSprite")(r=class extends e{constructor(...t){super(...t),this.duration=.5,this._median=0,this._time=0,this._material=null}onLoad(){this._median=this.duration/2,this._material=this.node.getComponent(s).getMaterial(0),this._material.setProperty("u_rate",1)}update(t){if(this._time>0){this._time-=t,this._time=this._time<0?0:this._time;let i=2*Math.abs(this._time-this._median)/this.duration;this._material.setProperty("u_rate",i)}}clickFlash(){this._time=this.duration}})||r);i._RF.pop()}}}));
  66. System.register("chunks:///_virtual/FreeFlightCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,o,i,n,s,h,r,a,c,p,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.KeyCode,s=e.CCFloat,h=e._decorator,r=e.math,a=e.Component,c=e.input,p=e.Input,l=e.game}],execute:function(){var d,y,u,_,v,C,S,T,m,f,E,g;i._RF.push({},"6c841mU+4JNvqwHy5tJsJh0","FreeFlightCamera",void 0);const{ccclass:x,property:k,menu:w}=h,{Vec2:z,Vec3:F,Quat:U}=r,b=new z,A=new z,D=new F,O=new U,H="W".charCodeAt(0),K="S".charCodeAt(0),L="A".charCodeAt(0),M="D".charCodeAt(0),P="Q".charCodeAt(0),W="E".charCodeAt(0),N=n.SHIFT_LEFT;e("FreeFlightCamera",(d=x("FreeFlightCamera"),y=w("OopsFramework/Camera/FreeFlightCamera (自由飞行摄像机)"),u=k({type:s,tooltip:"移动速度"}),_=k({type:s,tooltip:"按Shift键后的速度"}),v=k({type:s,slide:!0,range:[.05,.5,.01],tooltip:"移动后惯性效果"}),C=k({type:s,tooltip:"旋转速度"}),d(S=y((m=t((T=class extends a{constructor(...e){super(...e),o(this,"moveSpeed",m,this),o(this,"moveSpeedShiftScale",f,this),o(this,"damp",E,this),o(this,"rotateSpeed",g,this),this._euler=new F,this._velocity=new F,this._position=new F,this._speedScale=1}onLoad(){c.on(p.EventType.MOUSE_WHEEL,this.onMouseWheel,this),c.on(p.EventType.KEY_DOWN,this.onKeyDown,this),c.on(p.EventType.KEY_UP,this.onKeyUp,this),c.on(p.EventType.TOUCH_START,this.onTouchStart,this),c.on(p.EventType.TOUCH_MOVE,this.onTouchMove,this),c.on(p.EventType.TOUCH_END,this.onTouchEnd,this),F.copy(this._euler,this.node.eulerAngles),F.copy(this._position,this.node.position)}onDestroy(){c.off(p.EventType.MOUSE_WHEEL,this.onMouseWheel,this),c.off(p.EventType.KEY_DOWN,this.onKeyDown,this),c.off(p.EventType.KEY_UP,this.onKeyUp,this),c.off(p.EventType.TOUCH_START,this.onTouchStart,this),c.off(p.EventType.TOUCH_MOVE,this.onTouchMove,this),c.off(p.EventType.TOUCH_END,this.onTouchEnd,this)}update(e){F.transformQuat(D,this._velocity,this.node.rotation),F.scaleAndAdd(this._position,this._position,D,this.moveSpeed*this._speedScale),F.lerp(D,this.node.position,this._position,e/this.damp),this.node.setPosition(D),U.fromEuler(O,this._euler.x,this._euler.y,this._euler.z),U.slerp(O,this.node.rotation,O,e/this.damp),this.node.setRotation(O)}onMouseWheel(e){const t=-e.getScrollY()*this.moveSpeed*.1;F.transformQuat(D,F.UNIT_Z,this.node.rotation),F.scaleAndAdd(this._position,this.node.position,D,t)}onKeyDown(e){const t=this._velocity;e.keyCode===N?this._speedScale=this.moveSpeedShiftScale:e.keyCode===H?0===t.z&&(t.z=-1):e.keyCode===K?0===t.z&&(t.z=1):e.keyCode===L?0===t.x&&(t.x=-1):e.keyCode===M?0===t.x&&(t.x=1):e.keyCode===P?0===t.y&&(t.y=-1):e.keyCode===W&&0===t.y&&(t.y=1)}onKeyUp(e){const t=this._velocity;e.keyCode===N?this._speedScale=1:e.keyCode===H?t.z<0&&(t.z=0):e.keyCode===K?t.z>0&&(t.z=0):e.keyCode===L?t.x<0&&(t.x=0):e.keyCode===M?t.x>0&&(t.x=0):e.keyCode===P?t.y<0&&(t.y=0):e.keyCode===W&&t.y>0&&(t.y=0)}onTouchStart(e){l.canvas.requestPointerLock()}onTouchMove(e){e.getStartLocation(b),b.x>.4*l.canvas.width?(e.getDelta(A),this._euler.y-=A.x*this.rotateSpeed*.1,this._euler.x+=A.y*this.rotateSpeed*.1):(e.getLocation(A),z.subtract(A,A,b),this._velocity.x=.01*A.x,this._velocity.z=.01*-A.y)}onTouchEnd(e){document.exitPointerLock&&document.exitPointerLock(),e.getStartLocation(b),b.x<.4*l.canvas.width&&(this._velocity.x=0,this._velocity.z=0)}}).prototype,"moveSpeed",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),f=t(T.prototype,"moveSpeedShiftScale",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),E=t(T.prototype,"damp",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),g=t(T.prototype,"rotateSpeed",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S=T))||S)||S));i._RF.pop()}}}));
  67. System.register("chunks:///_virtual/GameCollision.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){var o,t,e,n,l,r,s;return{setters:[function(i){o=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){e=i.cclegacy,n=i.ccenum,l=i._decorator,r=i.Component,s=i.Collider}],execute:function(){var c,a,h,g,p;e._RF.push({},"7fa3eqzDkpBUq8OUNr05VJh","GameCollision",void 0);const{ccclass:u,property:C}=l;let y=i("CollisionType",function(i){return i[i.Role=0]="Role",i[i.Ballistic=1]="Ballistic",i[i.Wall=2]="Wall",i}({}));n(y);const d="onTriggerEnter",T="onTriggerStay",E="onTriggerExit",f="onCollisionEnter",m="onCollisionStay",b="onCollisionExit";i("GameCollision",(c=u("GameCollision"),a=C({type:y,tooltip:"碰撞物体类型"}),c((p=o((g=class extends r{constructor(...i){super(...i),this.collider=null,t(this,"type",p,this)}onLoad(){this.collider=this.getComponent(s),this.collider.isTrigger?(this.collider.on(d,this.onTrigger,this),this.collider.on(T,this.onTrigger,this),this.collider.on(E,this.onTrigger,this)):(this.collider.on(f,this.onCollision,this),this.collider.on(m,this.onCollision,this),this.collider.on(b,this.onCollision,this))}onTrigger(i){switch(i.type){case d:this.onTriggerEnter(i);break;case T:this.onTriggerStay(i);break;case E:this.onTriggerExit(i)}}onTriggerEnter(i){}onTriggerStay(i){}onTriggerExit(i){}onCollision(i){switch(i.type){case f:this.onCollisionEnter(i);break;case m:this.onCollisionStay(i);break;case b:this.onCollisionExit(i)}}onCollisionEnter(i){}onCollisionStay(i){}onCollisionExit(i){}}).prototype,"type",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return y.Ballistic}}),h=g))||h));e._RF.pop()}}}));
  68. System.register("chunks:///_virtual/GameComponent.ts",["cc","./Oops.ts","./EventDispatcher.ts","./EventMessage.ts","./ResLoader.ts","./ViewUtil.ts"],(function(e){var t,s,n,o,i,a,r,h,d,l,c,u,f,p,E;return{setters:[function(e){t=e.cclegacy,s=e.Component,n=e.SpriteFrame,o=e.isValid,i=e.Node,a=e.Button,r=e.EventHandler,h=e.input,d=e.Input,l=e._decorator},function(e){c=e.oops},function(e){u=e.EventDispatcher},function(e){f=e.EventMessage},function(e){p=e.resLoader},function(e){E=e.ViewUtil}],execute:function(){var y;t._RF.push({},"62362nWbWZP653j6XL/zJDq","GameComponent",void 0);const{ccclass:m}=l;var v=function(e){return e[e.Load=0]="Load",e[e.LoadDir=1]="LoadDir",e[e.Audio=2]="Audio",e}(v||{});e("GameComponent",m("GameComponent")(y=class extends s{constructor(...e){super(...e),this._event=null,this.nodes=null,this.resPaths=null}get event(){return null==this._event&&(this._event=new u),this._event}on(e,t,s){this.event.on(e,t,s)}off(e){this.event.off(e)}dispatchEvent(e,...t){this.event.dispatchEvent(e,...t)}getNode(e){if(this.nodes)return this.nodes.get(e)}nodeTreeInfoLite(){this.nodes=new Map,E.nodeTreeInfoLite(this.node,this.nodes)}createPrefabNode(e,t=c.res.defaultBundleName){return E.createPrefabNode(e,t)}createPrefabNodeAsync(e,t=c.res.defaultBundleName){return E.createPrefabNodeAsync(e,t)}getRes(e,t,s){return c.res.get(e,t,s)}addPathToRecord(e,t,s,n){null==this.resPaths&&(this.resPaths=new Map);var o=this.resPaths.get(e);if(null==o&&(o=new Map,this.resPaths.set(e,o)),s instanceof Array){let e=t;for(let t=0;t<s.length;t++){let i=s[t],a=this.getResKey(e,i,n);o.has(a)||o.set(a,{path:i,bundle:e,resId:n})}}else if("string"==typeof s){let e=t,i=s,a=this.getResKey(e,i,n);o.has(a)||o.set(a,{path:i,bundle:e,resId:n})}else{let e=c.res.defaultBundleName,s=t,i=this.getResKey(e,s,n);o.has(i)||o.set(i,{path:s,bundle:e,resId:n})}}getResKey(e,t,s){let n=`${e}:${t}`;return null!=s&&(n+=":"+s),n}load(e,t,s,n,o){this.addPathToRecord(v.Load,e,t),c.res.load(e,t,s,n,o)}loadAsync(e,t,s){return this.addPathToRecord(v.Load,e,t),c.res.loadAsync(e,t,s)}loadDir(e,t,s,n,o){let i,a;"string"==typeof t?(i=t,a=e):(i=e,a=c.res.defaultBundleName),this.addPathToRecord(v.LoadDir,a,i),c.res.loadDir(e,t,s,n,o)}release(){if(this.resPaths){const e=this.resPaths.get(v.Load);e&&(e.forEach((e=>{c.res.release(e.path,e.bundle)})),e.clear())}}releaseDir(){if(this.resPaths){const e=this.resPaths.get(v.LoadDir);e&&e.forEach((e=>{c.res.releaseDir(e.path,e.bundle)}))}}releaseAudioEffect(){if(this.resPaths){const e=this.resPaths.get(v.Audio);e&&e.forEach((e=>{c.audio.putEffect(e.resId,e.path,e.bundle)}))}}async setSprite(e,t,s=p.defaultBundleName){const i=await this.loadAsync(s,t,n);if(i&&o(e))e.spriteFrame=i;else{const e=this.resPaths.get(v.Load);if(e){const n=this.getResKey(s,t);e.delete(n),c.res.release(t,s)}}}playMusic(e,t,s){c.audio.playMusic(e,t,s)}playMusicLoop(e,t){c.audio.stopMusic(),c.audio.playMusicLoop(e,t)}async playEffect(e,t){null==t&&(t=c.res.defaultBundleName),await c.audio.playEffect(e,t,(()=>{const s=this.resPaths.get(v.Audio);if(s){const n=this.getResKey(t,e);s.delete(n)}})),this.addPathToRecord(v.Audio,t,e)}setButton(e=!0){e&&this.node.on(i.EventType.TOUCH_END,(e=>{const t=this[e.target.name];t&&t.call(this,e)}),this);const t=/<([^>]+)>/;this.node.getComponentsInChildren(a).forEach((e=>{if(this[e.node.name]){const s=new r;s.target=this.node,s.handler=e.node.name,s.component=this.name.match(t)[1],e.clickEvents.push(s)}}))}setEvent(...e){const t=this;for(const s of e){const e=t[s];e?this.on(s,e,this):console.error(`名为【${s}】的全局事方法不存在`)}}setKeyboard(e){e?(h.on(d.EventType.KEY_DOWN,this.onKeyDown,this),h.on(d.EventType.KEY_UP,this.onKeyUp,this),h.on(d.EventType.KEY_PRESSING,this.onKeyPressing,this)):(h.off(d.EventType.KEY_DOWN,this.onKeyDown,this),h.off(d.EventType.KEY_UP,this.onKeyUp,this),h.off(d.EventType.KEY_PRESSING,this.onKeyPressing,this))}onKeyDown(e){}onKeyUp(e){}onKeyPressing(e){}setGameShow(){this.on(f.GAME_SHOW,this.onGameShow,this)}setGameHide(){this.on(f.GAME_HIDE,this.onGameHide,this)}setGameResize(){this.on(f.GAME_RESIZE,this.onGameResize,this)}setGameFullScreen(){this.on(f.GAME_FULL_SCREEN,this.onGameFullScreen,this)}setGameOrientation(){this.on(f.GAME_ORIENTATION,this.onGameOrientation,this)}onGameShow(){}onGameHide(){}onGameResize(){}onGameFullScreen(){}onGameOrientation(){}onDestroy(){this._event&&(this._event.destroy(),this._event=null),this.nodes&&(this.nodes.clear(),this.nodes=null),this.resPaths&&(this.releaseAudioEffect(),this.release(),this.releaseDir(),this.resPaths.clear(),this.resPaths=null)}})||y);t._RF.pop()}}}));
  69. System.register("chunks:///_virtual/GameConfig.ts",["cc","./Oops.ts"],(function(t){var e,a;return{setters:[function(t){e=t.cclegacy},function(t){a=t.oops}],execute:function(){e._RF.push({},"54585zBsmtGfZEDczLG3SH5","GameConfig",void 0);t("GameConfig",class{get version(){return this._data.config.version}get package(){return this._data.config.package}get frameRate(){return this._data.config.frameRate}get localDataKey(){return this._data.config.localDataKey}get localDataIv(){return this._data.config.localDataIv}get httpServer(){return this._data.config.httpServer}get httpTimeout(){return this._data.config.httpTimeout}get language(){return this._data.language.type||["zh"]}get languagePathJson(){return this._data.language.path.json||"language/json"}get languagePathTexture(){return this._data.language.path.texture||"language/texture"}get languageDefault(){return this._data.language.default||"zh"}get bundleEnable(){return this._data.bundle.enable}get bundleServer(){return this._data.bundle.server}get bundleDefault(){return this._data.bundle.default}get bundlePackages(){return this._data.bundle.packages}get loadingTimeoutGui(){return this._data.config.loadingTimeoutGui||1e3}get mobileSafeArea(){return this._data.config.mobileSafeArea||!1}get data(){return this._data}constructor(t){this._data=null,this._data=Object.freeze(t.json),a.log.logConfig(this._data,"游戏配置")}}),e._RF.pop()}}}));
  70. System.register("chunks:///_virtual/GameEvent.ts",["cc"],(function(e){var n;return{setters:[function(e){n=e.cclegacy}],execute:function(){n._RF.push({},"28ac0rWU79HGpJWrnyK01Gn","GameEvent",void 0);e("GameEvent",function(e){return e.GameServerConnected="GameServerConnected",e.LoginSuccess="LoginSuccess",e}({}));n._RF.pop()}}}));
  71. System.register("chunks:///_virtual/GameManager.ts",["cc"],(function(e){var a,t;return{setters:[function(e){a=e.cclegacy,t=e.director}],execute:function(){a._RF.push({},"73fa0CEfOhMdJUoZwoFIIZV","GameManager",void 0);e("GameManager",class{constructor(e){this.root=void 0,this.root=e}setTimeScale(e){t.globalGameTimeScale=e}getTimeScale(){return t.globalGameTimeScale}}),a._RF.pop()}}}));
  72. System.register("chunks:///_virtual/GameQueryConfig.ts",["cc","./Oops.ts","./StringUtil.ts"],(function(t){var e,n,r,i;return{setters:[function(t){e=t.cclegacy,n=t.sys},function(t){r=t.oops},function(t){i=t.StringUtil}],execute:function(){e._RF.push({},"d09acUxcU5Hg4kUjKxVEWLy","GameQueryConfig",void 0);t("GameQueryConfig",class{get debug(){return this._data.debug}get username(){return this._data.username}get lang(){return this._data.lang||"zh"}get data(){return this._data}constructor(){this._data=null,n.isBrowser?(this._data=this.parseUrl(),this._data.username||(this._data.username=i.guid()),r.log.logConfig(this._data,"查询参数")):this._data={}}parseUrl(){if("object"!=typeof window)return{};if(!window.document)return{};let t=window.document.location.href.toString().split("?");if("string"==typeof t[1]){t=t[1].split("&");let e={};for(let n=0,r=t.length;n<r;++n){let r=t[n],i=r.indexOf("=");if(i<0)continue;let s=r.substring(0,i),a=r.substring(i+1);e[decodeURIComponent(s)]=a&&decodeURIComponent(a)}return e}return{}}}),e._RF.pop()}}}));
  73. System.register("chunks:///_virtual/GameStorageConfig.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"a9e20POivtPKppEugdcVI1N","GameStorageConfig",void 0);e("GameStorageConfig",function(e){return e.AccountName="AccountName",e}({}));t._RF.pop()}}}));
  74. System.register("chunks:///_virtual/GameUIConfig.ts",["cc","./LayerManager.ts"],(function(e){var a,o;return{setters:[function(e){a=e.cclegacy},function(e){o=e.LayerType}],execute:function(){a._RF.push({},"14663z2+5JJIYupyDayZnc3","GameUIConfig",void 0);let r=e("UIID",function(e){return e[e.Loading=1]="Loading",e[e.Alert=2]="Alert",e[e.Confirm=3]="Confirm",e[e.Demo=4]="Demo",e}({}));e("UIConfigData",{[r.Loading]:{layer:o.UI,prefab:"gui/loading/loading"},[r.Alert]:{layer:o.Dialog,prefab:"common/prefab/alert"},[r.Confirm]:{layer:o.Dialog,prefab:"common/prefab/confirm"},[r.Demo]:{layer:o.UI,prefab:"gui/demo/demo"}});a._RF.pop()}}}));
  75. System.register("chunks:///_virtual/HttpRequest.ts",["cc"],(function(e){var t,r,s;return{setters:[function(e){t=e.cclegacy,r=e.error,s=e.warn}],execute:function(){t._RF.push({},"806e5t8UetFy4spn89dnuan","HttpRequest",void 0);var n={},u={};let a=e("HttpEvent",function(e){return e.NO_NETWORK="http_request_no_network",e.UNKNOWN_ERROR="http_request_unknown_error",e.TIMEOUT="http_request_timout",e}({}));class i{constructor(){this.isSucc=!1,this.res=void 0,this.err=void 0}}e("HttpReturn",i);e("HttpRequest",class{constructor(){this.server="http://127.0.0.1/",this.timeout=1e4,this.header=new Map}addHeader(e,t){this.header.set(e,t)}get(e,t,r=null){this.sendRequest(e,r,!1,t)}getAsync(e,t=null){return new Promise(((r,s)=>{this.sendRequest(e,t,!1,(e=>{r(e)}))}))}getByArraybuffer(e,t,r=null){this.sendRequest(e,r,!1,t,"arraybuffer",!1)}getAsyncByArraybuffer(e,t=null){return new Promise(((r,s)=>{this.sendRequest(e,t,!1,(e=>{r(e)}),"arraybuffer",!1)}))}post(e,t,r=null){this.sendRequest(e,r,!0,t)}postAsync(e,t=null){return new Promise(((r,s)=>{this.sendRequest(e,t,!0,(e=>{r(e)}))}))}abort(e){var t=n[this.server+e];t&&t.abort()}getParamString(e){var t="";for(var r in e){let n=e[r];if(n instanceof Object)for(var s in n)t+=`${s}=${n[s]}&`;else t+=`${r}=${n}&`}return t.substring(0,t.length-1)}sendRequest(e,t,o,c,h,l=!0){if(null!=e&&""!=e){var d,p,f="";if(d=0==e.toLocaleLowerCase().indexOf("http")?e:this.server+e,t?(f=this.getParamString(t),p=d.indexOf("?")>-1?d+"&"+f:d+"?"+f):p=d,null==n[p]||u[p]!=f){var R=new XMLHttpRequest;n[p]=R,u[p]=f,o?R.open("POST",d):R.open("GET",p);for(const[e,t]of this.header)R.setRequestHeader(e,t);var v={};v.url=d,v.params=t,l&&(R.timeout=this.timeout,R.ontimeout=()=>{this.deleteCache(p),y.isSucc=!1,y.err=a.TIMEOUT,c(v)});var y=new i;R.onloadend=()=>{500==R.status&&(this.deleteCache(p),y.isSucc=!1,y.err=a.NO_NETWORK,c(y))},R.onerror=()=>{this.deleteCache(p),y.isSucc=!1,0==R.readyState||1==R.readyState||0==R.status?y.err=a.NO_NETWORK:y.err=a.UNKNOWN_ERROR,c(y)},R.onreadystatechange=()=>{4==R.readyState&&(this.deleteCache(p),200==R.status&&c&&(y.isSucc=!0,"arraybuffer"==h?(R.responseType=h,y.res=R.response):y.res=JSON.parse(R.response),c(y)))},null==t||""==t?R.send():R.send(f)}else s(`地址【${d}】已正在请求中,不能重复请求`)}else r("请求地址不能为空")}deleteCache(e){delete n[e],delete u[e]}}),t._RF.pop()}}}));
  76. System.register("chunks:///_virtual/IControl.ts",["cc"],(function(){var t;return{setters:[function(c){t=c.cclegacy}],execute:function(){t._RF.push({},"58450TyE3JB069KO8P5+hl4","IControl",void 0),t._RF.pop()}}}));
  77. System.register("chunks:///_virtual/ImageUtil.ts",["cc"],(function(e){var t,n,a;return{setters:[function(e){t=e.cclegacy,n=e.Color,a=e.Texture2D}],execute:function(){t._RF.push({},"ebdf3rRnEdIYpKgGdW8gSmZ","ImageUtil",void 0);e("ImageUtil",class{static getPixelColor(e,t,a){var o;const r=document.createElement("canvas"),i=r.getContext("2d");r.width=e.width,r.height=e.height;const c=null==(o=e.image)?void 0:o.data;i.drawImage(c,0,0,e.width,e.height);const g=i.getImageData(0,0,e.width,e.height),s=(a-1)*e.width*4+4*(t-1),l=g.data.slice(s,s+4),m=new n(l[0],l[1],l[2],l[3]);return c.remove(),r.remove(),m}static imageToBase64(e,t){return new Promise((n=>{var a;let o=null==(a=/\.png|\.jpg|\.jpeg/.exec(e))?void 0:a[0];if([".png",".jpg",".jpeg"].includes(o)){const a=document.createElement("canvas"),r=a.getContext("2d"),i=new Image;i.src=e,i.onload=()=>{a.height=i.height,a.width=i.width,r.drawImage(i,0,0),o=".jpg"===o?"jpeg":o.replace(".","");const e=a.toDataURL(`image/${o}`);t&&t(e),n(e),i.remove(),a.remove()}}else console.warn("Not a jpg/jpeg or png resource!"),t&&t(""),n("")}))}static base64ToTexture(e){const t=document.createElement("img");t.src=e;const n=new a;return n.initWithElement(t),t.remove(),n}static base64ToBlob(e){const t=e.split(","),n=/image\/\w+|;/.exec(t[0])[0],a=window.atob(t[1]),o=new ArrayBuffer(a.length),r=new Uint8Array(o);for(let e=0;e<a.length;e++)r[e]=255&a.charCodeAt(e);return new Blob([r],{type:n})}}),t._RF.pop()}}}));
  78. System.register("chunks:///_virtual/index.ts",["cc","./BehaviorTree.ts","./BranchNode.ts","./Decorator.ts","./BTreeNode.ts","./Priority.ts","./Sequence.ts","./Task.ts","./Selector.ts"],(function(e){var t;return{setters:[function(e){t=e.cclegacy},function(t){e("BehaviorTree",t.BehaviorTree)},function(t){e("BranchNode",t.BranchNode)},function(t){e("Decorator",t.Decorator)},function(t){e("BTreeNode",t.BTreeNode)},function(t){e("Priority",t.Priority)},function(t){e("Sequence",t.Sequence)},function(t){e("Task",t.Task)},function(t){e("Selector",t.Selector)}],execute:function(){t._RF.push({},"96257XYurdITbWhyEf7Qlbn","index",void 0),t._RF.pop()}}}));
  79. System.register("chunks:///_virtual/Initialize.ts",["cc","./ECS.ts","./InitRes.ts"],(function(t){var i,e,n;return{setters:[function(t){i=t.cclegacy},function(t){e=t.ecs},function(t){n=t.InitResComp}],execute:function(){var s;i._RF.push({},"ffbceQs6Z9IoI5z6mt1avMw","Initialize",void 0);t("Initialize",e.register("Initialize")(s=class extends e.Entity{init(){this.add(n)}})||s);i._RF.pop()}}}));
  80. System.register("chunks:///_virtual/InitRes.ts",["cc","./Oops.ts","./AsyncQueue.ts","./ECS.ts","./ModuleUtil.ts","./GameUIConfig.ts","./LoadingViewComp.ts"],(function(e){var t,n,o,s,a,i,u;return{setters:[function(e){t=e.cclegacy},function(e){n=e.oops},function(e){o=e.AsyncQueue},function(e){s=e.ecs},function(e){a=e.ModuleUtil},function(e){i=e.UIID},function(e){u=e.LoadingViewComp}],execute:function(){var l,c;t._RF.push({},"2ee0c8+7R9EFKQb+OPn9mlk","InitRes",void 0);let g=e("InitResComp",s.register("InitRes")(l=class extends s.Comp{reset(){}})||l);e("InitResSystem",s.register("Initialize")(c=class extends s.ComblockSystem{filter(){return s.allOf(g)}entityEnter(e){var t=new o;this.loadCustom(t),this.loadLanguage(t),this.loadCommon(t),this.onComplete(t,e),t.play()}loadCustom(e){e.push((async(e,t,o)=>{n.res.load("language/font/"+n.language.current,e)}))}loadLanguage(e){e.push(((e,t,o)=>{let s=n.storage.get("language");null!=s&&""!=s||(s="zh",n.storage.set("language",s)),n.language.setLanguage(s,e)}))}loadCommon(e){e.push(((e,t,o)=>{n.res.loadDir("common",e)}))}onComplete(e,t){e.complete=async()=>{a.addViewUi(t,u,i.Loading),t.remove(g)}}})||c);t._RF.pop()}}}));
  81. System.register("chunks:///_virtual/JsonOb.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"000b00Lx19Ke4hAFc9/Qlnh","JsonOb",void 0);const r=Object.prototype,o="[object Object]",c="[object Array]",s=["push","pop","shift","unshift","sort","reverse","splice"];t("JsonOb",class{constructor(t,e){this._callback=void 0,r.toString.call(t)!==o&&r.toString.call(t)!==c&&console.error("请传入一个对象或数组"),this._callback=e,this.observe(t)}observe(t,e){r.toString.call(t)===c&&this.overrideArrayProto(t,e),Object.keys(t).forEach((s=>{let i=this,n=t[s],l=e&&e.slice();l?l.push(s):l=[s],Object.defineProperty(t,s,{get:function(){return n},set:function(t){if(n!==t){"[object Object]"===r.toString.call(t)&&i.observe(t,l);const e=n;n=t,i._callback(t,e,l)}}}),r.toString.call(t[s])!==o&&r.toString.call(t[s])!==c||this.observe(t[s],l)}),this)}overrideArrayProto(t,e){var r,o=Array.prototype,c=Object.create(Array.prototype),i=this;s.forEach((t=>{Object.defineProperty(c,t,{value:function(){var c=this.slice();return r=o[t].apply(this,arguments),i.observe(this,e),i._callback(this,c,e),r}})})),t.__proto__=c}}),e._RF.pop()}}}));
  82. System.register("chunks:///_virtual/JsonUtil.ts",["cc","./ResLoader.ts"],(function(e){var s,t,n;return{setters:[function(e){s=e.cclegacy,t=e.JsonAsset},function(e){n=e.resLoader}],execute:function(){s._RF.push({},"1a24ank4nRC46jfzaIfOmtQ","JsonUtil",void 0);const a="config/game/",o=new Map;e("JsonUtil",class{static get(e){if(o.has(e))return o.get(e)}static load(e,s){if(o.has(e))s(o.get(e));else{const r=a+e;n.load(r,t,((t,a)=>{t?(console.warn(t.message),s(null)):(o.set(e,a.json),n.release(r),s(a.json))}))}}static loadAsync(e){return new Promise(((s,r)=>{if(o.has(e))s(o.get(e));else{const r=a+e;n.load(r,t,((t,a)=>{t?(console.warn(t.message),s(null)):(o.set(e,a.json),n.release(r),s(a.json))}))}}))}static loadDirAsync(){return new Promise(((e,s)=>{n.loadDir(a,((s,t)=>{s?(console.warn(s.message),e(!1)):(t.forEach((e=>{o.set(e.name,e.json)})),n.releaseDir(a),e(!0))}))}))}static release(e){o.delete(e)}static clear(){o.clear()}}),s._RF.pop()}}}));
  83. System.register("chunks:///_virtual/LabelChange.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LabelNumber.ts"],(function(i){var t,e,s,n,a;return{setters:[function(i){t=i.applyDecoratedDescriptor,e=i.initializerDefineProperty},function(i){s=i.cclegacy,n=i._decorator},function(i){a=i.default}],execute:function(){var h,l,r;s._RF.push({},"fff0fLwVNhNe59VirWTCPFJ","LabelChange",void 0);const{ccclass:c,property:u,menu:o}=n;i("LabelChange",c("LabelChange")(h=o("OopsFramework/Label/LabelChange (数值变化动画标签)")((r=t((l=class extends a{constructor(...i){super(...i),e(this,"isInteger",r,this),this.duration=0,this.callback=void 0,this.isBegin=!1,this.speed=0,this.end=0}changeTo(i,t,e){0!=i?this.playAnim(i,this.num,t,e):e&&e()}changeBy(i,t,e){0!=i?this.playAnim(i,this.num,this.num+t,e):e&&e()}stop(i=!0){this.num=this.end,this.isBegin=!1,i&&this.callback&&this.callback()}playAnim(i,t,e,s){this.duration=i,this.end=e,this.callback=s,this.speed=(e-t)/i,this.num=t,this.isBegin=!0}isEnd(i){return this.speed>0?i>=this.end:i<=this.end}update(i){if(this.isBegin){if(this.num==this.end)return this.isBegin=!1,void(this.callback&&this.callback());let t=this.num+i*this.speed;this.isInteger&&(t=this.end<this.num?Math.floor(t):Math.ceil(t)),this.isEnd(t)&&(t=this.end,this.isBegin=!1,this.callback&&this.callback()),this.num=t}}}).prototype,"isInteger",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=l))||h)||h);s._RF.pop()}}}));
  84. System.register("chunks:///_virtual/LabelNumber.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,r,o,i,n;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){o=t.cclegacy,i=t._decorator,n=t.Label}],execute:function(){var u,s,l,a,p,c,b,m,h;o._RF.push({},"f7b43F70BhPlrz4IPhZGmsL","LabelNumber",void 0);const{ccclass:y,property:f,menu:L}=i;t("default",(u=y("LabelNumber"),s=L("OopsFramework/Label/LabelNumber (只显示数字的标签)"),l=f({tooltip:"数字"}),a=f({tooltip:"数字"}),p=f({tooltip:"货币符号"}),u(c=s((m=e((b=class extends n{constructor(...t){super(...t),r(this,"_num",m,this),r(this,"symbol",h,this)}get num(){return this._num}set num(t){this._num=t,this.updateLabel()}start(){this.updateLabel()}updateLabel(){this.string=this.num.toString()+this.symbol}}).prototype,"_num",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e(b.prototype,"num",[a],Object.getOwnPropertyDescriptor(b.prototype,"num"),b.prototype),h=e(b.prototype,"symbol",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=b))||c)||c));o._RF.pop()}}}));
  85. System.register("chunks:///_virtual/LabelTime.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts","./EventMessage.ts","./TimeUtils.ts"],(function(t){var e,i,s,o,n,r,a,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){s=t.cclegacy,o=t._decorator,n=t.Label},function(t){r=t.oops},function(t){a=t.EventMessage},function(t){h=t.TimeUtil}],execute:function(){var l,c,m,u,d,p,f,g,b,S,D,w;s._RF.push({},"57786GMN6RPbaAT9b9RmX18","LabelTime",void 0);const{ccclass:y,property:T,menu:_}=o;t("default",(l=y("LabelTime"),c=_("OopsFramework/Label/LabelTime (倒计时标签)"),m=T({tooltip:"到计时间总时间(单位秒)"}),u=T({tooltip:"天数数据格式化"}),d=T({tooltip:"时间格式化"}),p=T({tooltip:"是否有00"}),l(f=c((b=e((g=class extends n{constructor(...t){super(...t),i(this,"countDown",b,this),i(this,"dayFormat",S,this),i(this,"timeFormat",D,this),i(this,"zeroize",w,this),this.backStartTime=0,this.dateDisable=void 0,this.result=void 0,this.onSecond=null,this.onComplete=null}replace(t,...e){return t.replace(/\{(\d+)\}/g,(function(t,i){return e[i]}))}format(){let t=this.countDown,e=Math.floor(t/86400);t-=86400*e;let i=Math.floor(t/3600);t-=3600*i;let s=Math.floor(t/60);t-=60*s;let o=t;if(this.dateDisable=this.dateDisable||!1,0==e&&0==i&&0==s&&0==o)this.zeroize?this.result=this.replace(this.timeFormat,"00","00","00"):this.result=this.replace(this.timeFormat,"0","0","0");else if(e>0&&!this.dateDisable){let t=this.dayFormat,s=t.indexOf("{1}");0==i&&s>-1&&(t=t.substring(0,s-1));let o=t;e>1&&t.indexOf("days")<0&&(o=o.replace("day","days")),e<2&&(o=o.replace("days","day")),this.result=this.replace(o,e,i)}else i+=24*e,this.zeroize?this.result=this.replace(this.timeFormat,this.coverString(i),this.coverString(s),this.coverString(o)):this.result=this.replace(this.timeFormat,i,s,o);this.string=this.result}coverString(t){return t<10?"0"+t:t.toString()}setDateDisable(t){this.dateDisable=t}setTime(t){this.countDown=t,this.timing_end(),this.timing_start(),this.format()}setTimeStamp(t){this.countDown=h.secsBetween(r.timer.getServerTime(),t),this.timing_end(),this.timing_start(),this.format()}start(){r.message.on(a.GAME_SHOW,this.onGameShow,this),r.message.on(a.GAME_HIDE,this.onGameHide,this),this.timing_start(),this.format()}onDestroy(){r.message.off(a.GAME_SHOW,this.onGameShow,this),r.message.off(a.GAME_HIDE,this.onGameHide,this)}onGameShow(){const t=Math.floor((r.timer.getTime()-(this.backStartTime||r.timer.getTime()))/1e3);this.countDown-=t,this.countDown<0&&(this.countDown=0,this.onScheduleComplete())}onGameHide(){this.backStartTime=r.timer.getTime()}onScheduleSecond(){this.countDown--,this.format(),this.onSecond&&this.onSecond(this.node),0==this.countDown&&this.onScheduleComplete()}onScheduleComplete(){this.timing_end(),this.format(),this.onComplete&&this.onComplete(this.node)}timing_start(){this.schedule(this.onScheduleSecond,1)}timing_end(){this.unscheduleAllCallbacks()}}).prototype,"countDown",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1e3}}),S=e(g.prototype,"dayFormat",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"{0} day"}}),D=e(g.prototype,"timeFormat",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"{0}:{1}:{2}"}}),w=e(g.prototype,"zeroize",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=g))||f)||f));s._RF.pop()}}}));
  86. System.register("chunks:///_virtual/Language.ts",["cc","./Logger.ts","./LanguageData.ts","./LanguagePack.ts"],(function(a){var e,g,t,n,s;return{setters:[function(a){e=a.cclegacy,g=a.sys},function(a){t=a.Logger},function(a){n=a.LanguageData},function(a){s=a.LanguagePack}],execute:function(){e._RF.push({},"3757cxZqLZObIdvP/gQ6Yuj","Language",void 0);a("LanguageManager",class{constructor(){this._languages=[g.Language.CHINESE,g.Language.ENGLISH],this._languagePack=new s,this._defaultLanguage=g.Language.CHINESE}get languages(){return this._languages}set languages(a){this._languages=a}set default(a){this._defaultLanguage=a||g.Language.CHINESE}get current(){return n.current}get pack(){return this._languagePack}isExist(a){return this.languages.indexOf(a)>-1}getNextLang(){let a=this.languages,e=a.indexOf(n.current);return a[(e+1)%a.length]}setLanguage(a,e){a=null==a||""==a?this._defaultLanguage:a.toLowerCase(),this.languages.indexOf(a)<0&&(console.log(`当前不支持【${a}】语言,将自动切换到【${this._defaultLanguage}】语言`),a=this._defaultLanguage),a!==n.current?this.loadLanguageAssets(a,(g=>{t.instance.logConfig(`当前语言为【${a}】`);const s=n.current;n.current=a,this._languagePack.updateLanguage(a),this._languagePack.releaseLanguageAssets(s),e&&e(!0)})):e&&e(!1)}getLangByID(a){return n.getLangByID(a)}loadLanguageAssets(a,e){return a=a.toLowerCase(),this._languagePack.loadLanguageAssets(a,e)}releaseLanguageAssets(a){a=a.toLowerCase(),this._languagePack.releaseLanguageAssets(a)}}),e._RF.pop()}}}));
  87. System.register("chunks:///_virtual/LanguageData.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"27fb3sjD81JlIP2KFTSWUp4","LanguageData",void 0);class a{static getLangByID(e){const t=this.json[e];if(t)return t;if(this.excel){const t=this.excel[e];if(t)return t[this.current]}return e}}e("LanguageData",a),a.path_json="language/json",a.path_texture="language/texture",a.path_spine="language/spine",a.current="",a.json={},a.excel=null,a.font=null;e("LanguageType",["LanguageLabel","LanguageSprite","LanguageSpine"]);t._RF.pop()}}}));
  88. System.register("chunks:///_virtual/LanguageLabel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageData.ts"],(function(t){var e,a,i,n,r,s,o,p,l,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.CCString,r=t._decorator,s=t.Component,o=t.warn,p=t.Label,l=t.RichText},function(t){u=t.LanguageData}],execute:function(){var g,c,h,d,m,b,y,L,_,f,D,I,z,v;i._RF.push({},"110c8vEd5NEPL/N9meGQnaX","LanguageLabel",void 0);const{ccclass:w,property:U,menu:k}=r;let C=t("LangLabelParamsItem",w("LangLabelParamsItem")((h=e((c=class{constructor(){a(this,"key",h,this),a(this,"value",d,this)}}).prototype,"key",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=e(c.prototype,"value",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=c))||g);t("LanguageLabel",(m=w("LanguageLabel"),b=k("OopsFramework/Language/LanguageLabel (文本多语言)"),y=U({type:C,displayName:"params"}),L=U({type:C,displayName:"params"}),_=U({serializable:!0}),f=U({type:n,serializable:!0}),m(D=b((z=e((I=class extends s{constructor(...t){super(...t),a(this,"_params",z,this),a(this,"_dataID",v,this),this.initFontSize=0,this._needUpdate=!1}set params(t){this._params=t,this._needUpdate=!0}get params(){return this._params||[]}get dataID(){return this._dataID||""}set dataID(t){this._dataID=t,this._needUpdate=!0}get string(){let t=u.getLangByID(this._dataID);return t&&this._params.length>0&&this._params.forEach((e=>{t=t.replace(`%{${e.key}}`,e.value)})),t||(o("[LanguageLabel] 未找到语言标识,使用dataID替换"),t=this._dataID),t}language(){this._needUpdate=!0}onLoad(){this._needUpdate=!0}setVars(t,e){let a=!1;for(let i=0;i<this._params.length;i++){let n=this._params[i];n.key===t&&(n.value=e,a=!0)}if(!a){let a=new C;a.key=t,a.value=e,this._params.push(a)}this._needUpdate=!0}update(){this._needUpdate&&(this.updateContent(),this._needUpdate=!1)}updateContent(){const t=this.getComponent(p),e=this.getComponent(l),a=u.font;t?(a&&(t.font=a),t.string=this.string,this.initFontSize=t.fontSize):e?(a&&(e.font=a),e.string=this.string,this.initFontSize=e.fontSize):o("[LanguageLabel], 该节点没有cc.Label || cc.RichText组件")}}).prototype,"_params",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),e(I.prototype,"params",[L],Object.getOwnPropertyDescriptor(I.prototype,"params"),I.prototype),v=e(I.prototype,"_dataID",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),e(I.prototype,"dataID",[f],Object.getOwnPropertyDescriptor(I.prototype,"dataID"),I.prototype),D=I))||D)||D));i._RF.pop()}}}));
  89. System.register("chunks:///_virtual/LanguagePack.ts",["cc","./ResLoader.ts","./Logger.ts","./JsonUtil.ts","./LanguageData.ts"],(function(e){var n,a,t,o,s,l,i,r,g,u;return{setters:[function(e){n=e.cclegacy,a=e.director,t=e.error,o=e.JsonAsset,s=e.TTFFont},function(e){l=e.resLoader},function(e){i=e.Logger},function(e){r=e.JsonUtil},function(e){g=e.LanguageType,u=e.LanguageData}],execute:function(){n._RF.push({},"2ffebyj59xIc4v4BZty8SDm","LanguagePack",void 0);e("LanguagePack",class{updateLanguage(e){let n=a.getScene().children;for(let e=0;e<n.length;++e)g.forEach((a=>{let t=n[e].getComponentsInChildren(a);for(let e=0;e<t.length;e++)t[e].language()}))}async loadLanguageAssets(e,n){await this.loadTexture(e),await this.loadSpine(e),await this.loadJson(e),await this.loadTable(e),n(e)}loadTable(e){return new Promise((async(e,n)=>{u.excel=await r.loadAsync("Language"),u.excel&&i.instance.logConfig("config/game/Language","下载语言包 table 资源"),e(null)}))}loadTexture(e){return new Promise(((n,a)=>{const o=`${u.path_texture}/${e}`;l.loadDir(o,((e,a)=>{if(e)return t(e),void n(null);i.instance.logConfig(o,"下载语言包 textures 资源"),n(null)}))}))}loadJson(e){return new Promise((async(n,a)=>{const t=`${u.path_json}/${e}`,r=await l.loadAsync(t,o);r?(u.json=r.json,i.instance.logConfig(t,"下载语言包 json 资源"),l.load(t,s,((e,a)=>{null==e&&i.instance.logConfig(t,"下载语言包 ttf 资源"),u.font=a,n(null)}))):n(null)}))}loadSpine(e){return new Promise((async(n,a)=>{const o=`${u.path_spine}/${e}`;l.loadDir(o,((e,a)=>{if(e)return t(e),void n(null);i.instance.logConfig(o,"下载语言包 spine 资源"),n(null)}))}))}releaseLanguageAssets(e){let n=`${u.path_texture}/${e}`;l.releaseDir(n);let a=`${u.path_json}/${e}`,t=l.get(a,o);t&&t.decRef();let i=l.get(a,s);i&&i.decRef();let r=`${u.path_spine}/${e}`;l.release(r)}}),n._RF.pop()}}}));
  90. System.register("chunks:///_virtual/LanguageSpine.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResLoader.ts","./LanguageData.ts"],(function(e){var t,a,n,i,o,r,s,p,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){n=e.cclegacy,i=e.CCString,o=e._decorator,r=e.Component,s=e.sp},function(e){p=e.resLoader},function(e){u=e.LanguageData}],execute:function(){var l,g,c,d,D,h,S;n._RF.push({},"53e25hqV6VEJqayXfz6Qam2","LanguageSpine",void 0);const{ccclass:f,property:m,menu:L}=o;e("LanguageSpine",(l=f("LanguageSpine"),g=L("OopsFramework/Language/LanguageSpine (Spine 动画多语言)"),c=m({serializable:!0}),d=m({type:i,serializable:!0}),l(D=g((S=t((h=class extends r{constructor(...e){super(...e),a(this,"_dataID",S,this),this._defaultAnimation=""}get dataID(){return this._dataID||""}set dataID(e){this._dataID=e,this.updateSpine()}onLoad(){let e=this.getComponent(s.Skeleton);this._defaultAnimation=e.animation}start(){this.updateSpine()}language(){this.updateSpine()}updateSpine(){let e=`language/spine/${u.current}/${this.dataID}`,t=p.get(e,s.SkeletonData);if(t){let e=this.getComponent(s.Skeleton);e.skeletonData=t,e.setAnimation(0,this._defaultAnimation,!0)}else console.error("[LanguageSpine] 资源不存在 "+e)}}).prototype,"_dataID",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t(h.prototype,"dataID",[d],Object.getOwnPropertyDescriptor(h.prototype,"dataID"),h.prototype),D=h))||D)||D));n._RF.pop()}}}));
  91. System.register("chunks:///_virtual/LanguageSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResLoader.ts","./LanguageData.ts"],(function(e){var t,a,r,i,n,o,s,p,u,l,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,a=e.initializerDefineProperty},function(e){r=e.cclegacy,i=e.CCString,n=e._decorator,o=e.Component,s=e.SpriteFrame,p=e.Sprite,u=e.UITransform},function(e){l=e.resLoader},function(e){g=e.LanguageData}],execute:function(){var c,d,S,h,D,f,y,L,m;r._RF.push({},"11b96k/RIZF57Loehxyl6Hs","LanguageSprite",void 0);const{ccclass:b,property:I,menu:z}=n;e("LanguageSprite",(c=b("LanguageSprite"),d=z("OopsFramework/Language/LanguageSprite (图片多语言)"),S=I({serializable:!0}),h=I({type:i,serializable:!0}),D=I({tooltip:"是否设置为图片原始资源大小"}),c(f=d((L=t((y=class extends o{constructor(...e){super(...e),a(this,"_dataID",L,this),a(this,"isRawSize",m,this)}get dataID(){return this._dataID||""}set dataID(e){this._dataID=e,this.updateSprite()}start(){this.updateSprite()}language(){this.updateSprite()}updateSprite(){let e=`language/texture/${g.current}/${this.dataID}/spriteFrame`,t=l.get(e,s);if(t){let e=this.getComponent(p);if(e.spriteFrame=t,this.isRawSize){var a;let r=t._originalSize;null==(a=e.getComponent(u))||a.setContentSize(r)}}else console.error("[LanguageSprite] 资源不存在 "+e)}}).prototype,"_dataID",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t(y.prototype,"dataID",[h],Object.getOwnPropertyDescriptor(y.prototype,"dataID"),y.prototype),m=t(y.prototype,"isRawSize",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f=y))||f)||f));r._RF.pop()}}}));
  92. System.register("chunks:///_virtual/LayerDialog.ts",["cc","./Defines.ts","./LayerPopup.ts"],(function(s){var a,e,t;return{setters:[function(s){a=s.cclegacy},function(s){e=s.ViewParams},function(s){t=s.LayerPopUp}],execute:function(){a._RF.push({},"dcad5w8wHlEDJpIKJ4gUxEP","LayerDialog",void 0);s("LayerDialog",class extends t{constructor(...s){super(...s),this.params=[]}add(s,a,e){this.ui_nodes.size>0?this.params.push({config:s,params:a,callbacks:e}):(this.black.enabled=!0,this.show(s,a,e))}show(s,a,t){let i=this.ui_cache.get(s.prefab);null==i&&(i=new e,i.valid=!0,i.config=s),i.params=a||{},i.callbacks=t??{},this.ui_nodes.set(i.config.prefab,i),this.load(i,s.bundle)}onCloseWindow(s){super.onCloseWindow(s),setTimeout(this.next.bind(this),0)}setBlackDisable(){0==this.params.length&&(this.black.enabled=!1,this.closeVacancyRemove(),this.closeMask())}next(){if(this.params.length>0){let s=this.params.shift();this.show(s.config,s.params,s.callbacks)}}}),a._RF.pop()}}}));
  93. System.register("chunks:///_virtual/LayerManager.ts",["cc","./Oops.ts","./DelegateComponent.ts","./LayerDialog.ts","./LayerNotify.ts","./LayerPopup.ts","./LayerUI.ts"],(function(e){var i,t,s,a,o,n,r,h,p,l,c,d,g,u,y,f;return{setters:[function(e){i=e.cclegacy,t=e.Camera,s=e.view,a=e.screen,o=e.ResolutionPolicy,n=e.SafeArea,r=e.warn,h=e.Node,p=e.Layers,l=e.Widget},function(e){c=e.oops},function(e){d=e.DelegateComponent},function(e){g=e.LayerDialog},function(e){u=e.LayerNotify},function(e){y=e.LayerPopUp},function(e){f=e.LayerUI}],execute:function(){i._RF.push({},"7ba675xFGdHqIOykTysNzEu","LayerManager",void 0);e("ScreenAdapterType",function(e){return e[e.Auto=0]="Auto",e[e.Landscape=1]="Landscape",e[e.Portrait=2]="Portrait",e}({}));let m=e("LayerType",function(e){return e.Game="LayerGame",e.UI="LayerUI",e.PopUp="LayerPopUp",e.Dialog="LayerDialog",e.System="LayerSystem",e.Notify="LayerNotify",e.Guide="LayerGuide",e}({}));e("LayerManager",class{constructor(){this.root=void 0,this.camera=void 0,this.game=void 0,this.guide=void 0,this.windowAspectRatio=0,this.designAspectRatio=0,this.mobileSafeArea=!1,this.ui=void 0,this.popup=void 0,this.dialog=void 0,this.system=void 0,this.notify=void 0,this.configs={}}initLayer(e){this.root=e,this.initScreenAdapter(),this.camera=this.root.getComponentInChildren(t),this.game=this.create_node(m.Game),this.ui=new f(m.UI),this.popup=new y(m.PopUp),this.dialog=new g(m.Dialog),this.system=new g(m.System),this.notify=new u(m.Notify),this.guide=this.create_node(m.Guide),e.addChild(this.game),e.addChild(this.ui),e.addChild(this.popup),e.addChild(this.dialog),e.addChild(this.system),e.addChild(this.notify),e.addChild(this.guide)}initScreenAdapter(){const e=s.getDesignResolutionSize(),i=a.windowSize;this.windowAspectRatio=i.width/i.height,this.designAspectRatio=e.width/e.height;let t=0,r=0;this.windowAspectRatio>this.designAspectRatio?(r=e.height,t=r*i.width/i.height,c.log.logView("适配屏幕高度","【横屏】")):(t=e.width,r=t*i.height/i.width,c.log.logView("适配屏幕宽度","【竖屏】")),s.setDesignResolutionSize(t,r,o.UNKNOWN),this.mobileSafeArea&&(this.root.addComponent(n),c.log.logView("开启移动设备安全区域适配"))}init(e){this.configs=e}setOpenFailure(e){this.ui.onOpenFailure=this.popup.onOpenFailure=this.dialog.onOpenFailure=this.system.onOpenFailure=e}toast(e,i=!1){this.notify.toast(e,i)}waitOpen(){this.notify.waitOpen()}waitClose(){this.notify.waitClose()}setConfig(e,i){this.configs[e]=i}open(e,i=null,t){const s=this.configs[e];if(null!=s)switch(s.layer){case m.UI:this.ui.add(s,i,t);break;case m.PopUp:this.popup.add(s,i,t);break;case m.Dialog:this.dialog.add(s,i,t);break;case m.System:this.system.add(s,i,t)}else r(`打开编号为【${e}】的界面失败,配置信息不存在`)}async openAsync(e,i=null){return new Promise(((t,s)=>{const a={onAdded:(e,i)=>{t(e)},onLoadFailure:()=>{t(null)}};this.open(e,i,a)}))}replace(e,i,t=null){const s={onAdded:(i,t)=>{this.remove(e)}};this.open(i,t,s)}replaceAsync(e,i,t=null){return new Promise((async(s,a)=>{const o=await this.openAsync(i,t);o?(this.remove(e),s(o)):s(null)}))}has(e){const i=this.configs[e];if(null==i)return r(`编号为【${e}】的界面配置不存在,配置信息不存在`),!1;var t=!1;switch(i.layer){case m.UI:t=this.ui.has(i.prefab);break;case m.PopUp:t=this.popup.has(i.prefab);break;case m.Dialog:t=this.dialog.has(i.prefab);break;case m.System:t=this.system.has(i.prefab)}return t}get(e){const i=this.configs[e];if(null==i)return r(`编号为【${e}】的界面配置不存在,配置信息不存在`),null;let t=null;switch(i.layer){case m.UI:t=this.ui.get(i.prefab);break;case m.PopUp:t=this.popup.get(i.prefab);break;case m.Dialog:t=this.dialog.get(i.prefab);break;case m.System:t=this.system.get(i.prefab)}return t}remove(e,i){const t=this.configs[e];if(null!=t)switch(t.layer){case m.UI:this.ui.remove(t.prefab,i);break;case m.PopUp:this.popup.remove(t.prefab,i);break;case m.Dialog:this.dialog.remove(t.prefab,i);break;case m.System:this.system.remove(t.prefab,i)}else r(`删除编号为【${e}】的界面失败,配置信息不存在`)}removeByNode(e,i){if(e instanceof h){let t=e.getComponent(d);if(t&&t.vp){if(e.parent)e.parent.remove(t.vp.config.prefab,i);else if(i)switch(t.vp.config.layer){case m.UI:this.ui.removeCache(t.vp.config.prefab);break;case m.PopUp:this.popup.removeCache(t.vp.config.prefab);break;case m.Dialog:this.dialog.removeCache(t.vp.config.prefab);break;case m.System:this.system.removeCache(t.vp.config.prefab)}}else r("当前删除的node不是通过界面管理器添加到舞台上"),e.destroy()}}clear(e=!1){this.ui.clear(e),this.popup.clear(e),this.dialog.clear(e),this.system.clear(e)}create_node(e){const i=new h(e);i.layer=p.Enum.UI_2D;const t=i.addComponent(l);return t.isAlignLeft=t.isAlignRight=t.isAlignTop=t.isAlignBottom=!0,t.left=t.right=t.top=t.bottom=0,t.alignMode=2,t.enabled=!0,i}}),i._RF.pop()}}}));
  94. System.register("chunks:///_virtual/LayerNotify.ts",["cc","./ViewUtil.ts","./Notify.ts"],(function(t){var i,n,e,s,o,a,l,h;return{setters:[function(t){i=t.cclegacy,n=t.Node,e=t.Widget,s=t.Layers,o=t.BlockInputEvents,a=t.instantiate},function(t){l=t.ViewUtil},function(t){h=t.Notify}],execute:function(){i._RF.push({},"da14ax+B2xNsL2taQFOh7we","LayerNotify",void 0);t("LayerNotify",class extends n{constructor(t){super(t),this.black=void 0,this.wait=null,this.notify=null,this.notifyItem=null;const i=this.addComponent(e);i.isAlignLeft=i.isAlignRight=i.isAlignTop=i.isAlignBottom=!0,i.left=i.right=i.top=i.bottom=0,i.alignMode=2,i.enabled=!0,this.init()}init(){this.layer=s.Enum.UI_2D,this.black=this.addComponent(o),this.black.enabled=!1}waitOpen(){null==this.wait&&(this.wait=l.createPrefabNode("common/prefab/wait")),null==this.wait.parent&&(this.wait.parent=this,this.black.enabled=!0)}waitClose(){this.wait&&this.wait.parent&&(this.wait.parent=null,this.black.enabled=!1)}toast(t,i){null==this.notify&&(this.notify=l.createPrefabNode("common/prefab/notify"),this.notifyItem=this.notify.children[0],this.notifyItem.parent=null),this.notify.parent=this;let n=a(this.notifyItem),e=n.getChildByName("prompt").getComponent(h);n.parent=this.notify,e.onComplete=()=>{0==this.notify.children.length&&(this.notify.parent=null)},e.toast(t,i),this.notify.children.length>3&&this.notify.children[0].destroy()}}),i._RF.pop()}}}));
  95. System.register("chunks:///_virtual/LayerPopup.ts",["cc","./ViewUtil.ts","./LayerUI.ts"],(function(e){var s,t,i,n,a,o;return{setters:[function(e){s=e.cclegacy,t=e.Layers,i=e.BlockInputEvents,n=e.Node},function(e){a=e.ViewUtil},function(e){o=e.LayerUI}],execute:function(){s._RF.push({},"25d07BQBCFADaSsh/I3GrTX","LayerPopup",void 0);e("LayerPopUp",class extends o{constructor(e){super(e),this.black=void 0,this.mask=void 0,this.init()}init(){this.layer=t.Enum.UI_2D,this.black=this.addComponent(i),this.black.enabled=!1}async showUi(e){const s=await super.showUi(e);return s&&(this.openVacancyRemove(e.config),this.black.enabled=!0),s}onCloseWindow(e){super.onCloseWindow(e),this.setBlackDisable()}setBlackDisable(){0==this.ui_nodes.size&&(this.black.enabled=!1,this.closeVacancyRemove(),this.closeMask())}closeMask(){if(null==this.mask)return;let e=!0;for(let s of this.ui_nodes.values())if(s.config.mask){e=!1;break}e&&(this.mask.parent=null)}openVacancyRemove(e){this.hasEventListener(n.EventType.TOUCH_END,this.onTouchEnd,this)||this.on(n.EventType.TOUCH_END,this.onTouchEnd,this),null==this.mask&&(this.mask=a.createPrefabNode("common/prefab/mask")),e.mask&&(this.mask.parent=this,this.mask.setSiblingIndex(0))}closeVacancyRemove(){let e=!0;for(let s of this.ui_nodes.values())if(s.config.vacancy){e=!1;break}e&&this.hasEventListener(n.EventType.TOUCH_END,this.onTouchEnd,this)&&this.off(n.EventType.TOUCH_END,this.onTouchEnd,this)}onTouchEnd(e){e.target===this&&this.ui_nodes.forEach((e=>{e.valid&&e.config.vacancy&&this.remove(e.config.prefab,e.config.destroy)}))}clear(e){super.clear(e),this.black.enabled=!1,this.closeVacancyRemove(),this.closeMask()}}),s._RF.pop()}}}));
  96. System.register("chunks:///_virtual/LayerUI.ts",["cc","./Oops.ts","./Defines.ts","./DelegateComponent.ts"],(function(e){var i,o,n,t,s,a,c,d,r;return{setters:[function(e){i=e.cclegacy,o=e.Node,n=e.Widget,t=e.Prefab,s=e.instantiate,a=e.SafeArea},function(e){c=e.oops},function(e){d=e.ViewParams},function(e){r=e.DelegateComponent}],execute:function(){i._RF.push({},"bc8b86Br9dGeKxeLijkyJKE","LayerUI",void 0);e("LayerUI",class extends o{constructor(e){super(e),this.onOpenFailure=null,this.ui_nodes=new Map,this.ui_cache=new Map;const i=this.addComponent(n);i.isAlignLeft=i.isAlignRight=i.isAlignTop=i.isAlignBottom=!0,i.left=i.right=i.top=i.bottom=0,i.alignMode=2,i.enabled=!0}add(e,i,o){if(this.ui_nodes.has(e.prefab))return void console.warn(`路径为【${e.prefab}】的预制重复加载`);let n=this.ui_cache.get(e.prefab);null==n&&(n=new d,n.config=e),this.ui_nodes.set(e.prefab,n),n.params=i??{},n.callbacks=o??{},n.valid=!0,this.load(n,e.bundle)}async load(e,i){const o=setTimeout(this.onLoadingTimeoutGui,c.config.game.loadingTimeoutGui);if(e&&e.node)await this.showUi(e);else{i=i||c.res.defaultBundleName;const o=await c.res.loadAsync(i,e.config.prefab,t);if(o){e.node=s(o),e.config.safeArea&&e.node.addComponent(a);const i=e.node.addComponent(r);i.vp=e,i.onCloseWindow=this.onCloseWindow.bind(this),await this.showUi(e)}else console.warn(`路径为【${e.config.prefab}】的预制加载失败`),this.failure(e)}c.gui.waitClose(),clearTimeout(o)}onLoadingTimeoutGui(){c.gui.waitOpen()}onCloseWindow(e){this.ui_nodes.delete(e.config.prefab)}async showUi(e){const i=e.node.getComponent(r),o=await i.add();return o?(e.node.parent=this,e.valid=!0):(console.warn(`路径为【${e.config.prefab}】的自定义预处理逻辑异常.检查预制上绑定的组件中 onAdded 方法,返回true才能正确完成窗口显示流程`),this.failure(e)),o}failure(e){this.onCloseWindow(e),e.callbacks&&e.callbacks.onLoadFailure&&e.callbacks.onLoadFailure(),this.onOpenFailure&&this.onOpenFailure()}remove(e,i){let o;void 0!==i&&(o=i);const n=this.ui_nodes.get(e);if(n){void 0===o&&(o=void 0===n.config.destroy||n.config.destroy),!1===o&&this.ui_cache.set(n.config.prefab,n);n.node.getComponent(r).remove(o)}!0===o&&this.removeCache(e)}removeCache(e){let i=this.ui_cache.get(e);if(i){this.onCloseWindow(i),this.ui_cache.delete(e);i.node.destroy()}}get(e){const i=this.ui_nodes.get(e);return i?i.node:null}has(e){return this.ui_nodes.has(e)}clear(e){this.ui_nodes.forEach(((i,o)=>{this.remove(i.config.prefab,e),i.valid=!1})),this.ui_nodes.clear(),e&&this.ui_cache.forEach(((e,i)=>{this.removeCache(i)}))}}),i._RF.pop()}}}));
  97. System.register("chunks:///_virtual/LayerUtil.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"b7a864Zpb5N4Zm7onWE1i9D","LayerUtil",void 0);class a{get value(){return this._value}get name(){return this._name}get mask(){return 1<<this._value}constructor(e,t){this._value=void 0,this._name=void 0,this._value=e,this._name=t}}e("LayerItem",a);class n{static setNodeLayer(e,t){t.layer=e.mask,t.children.forEach((t=>{t.layer=e.mask,n.setNodeLayer(e,t)}))}}e("LayerUtil",n),n.MAP=new a(0,"MAP"),n.AVATAR=new a(1,"AVATAR"),n.IGNORE_RAYCAST=new a(20,"IGNORE_RAYCAST"),n.GIZMOS=new a(21,"GIZMOS"),n.EDITOR=new a(22,"EDITOR"),n.UI_3D=new a(23,"UI_3D"),n.SCENE_GIZMO=new a(24,"SCENE_GIZMO"),n.UI_2D=new a(25,"UI_2D"),n.PROFILTER=new a(28,"PROFILTER"),n.DEFAULT=new a(30,"DEFAULT"),t._RF.pop()}}}));
  98. System.register("chunks:///_virtual/List.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"f4d36IVkDZEFYGJyOy6wiZw","List",void 0);e("List",class{constructor(e=!0){this.element=void 0,this.only=!1,this.count=0,this.only=e,this.element=[]}push(e){if(this.only){if(this.element.indexOf(e)>=0)return!1}return this.element.push(e),this.count=this.element.length,!0}unshift(e){if(this.only){if(this.element.indexOf(e)>=0)return!1}return this.element.unshift(e),this.count=this.element.length,!0}pop(){if(this.element.length>0){const e=this.element.pop();return this.count=this.element.length,e}return null}shift(){if(this.element.length>0){const e=this.element.shift();return this.count=this.element.length,e}return null}removeAt(e){if(e>=this.element.length)throw new Error("删除索引超出范围!");const t=this.element[e];return this.element.splice(e,1),this.count=this.element.length,t}remove(e){let t=this.element.indexOf(e);if(t<0)throw new Error("要删除的内容不在列表中!"+e);this.element[t];this.element.splice(t,1),this.count=this.element.length}clear(){this.count=0,this.element.length=0}has(e){return this.find(e)>=0}find(e){return this.element.indexOf(e)}findIndex(e){return this.element.findIndex(e)}get(e){if(e>=this.element.length)throw new Error("超出索引范围:"+e+"/"+this.element.length);return this.element[e]}get elements(){return this.element}}),t._RF.pop()}}}));
  99. System.register("chunks:///_virtual/LoadingIndicator.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var o,i,e,n,r,a;return{setters:[function(t){o=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){e=t.cclegacy,n=t.Node,r=t._decorator,a=t.Component}],execute:function(){var c,l,s,d,u;e._RF.push({},"95143M/82NCOLKGzw14JlmS","LoadingIndicator",void 0);const{ccclass:g,property:p}=r;t("LoadingIndicator",(c=g("LoadingIndicator"),l=p(n),c((u=o((d=class extends a{constructor(...t){super(...t),i(this,"loading",u,this),this.loading_rotate=0}update(t){this.loading_rotate+=220*t,this.loading.setRotationFromEuler(0,0,-this.loading_rotate%360),this.loading_rotate>360&&(this.loading_rotate-=360)}}).prototype,"loading",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=d))||s));e._RF.pop()}}}));
  100. System.register("chunks:///_virtual/LoadingViewComp.ts",["cc","./Oops.ts","./ECS.ts","./CCVMParentComp.ts","./ModuleUtil.ts","./DemoViewComp.ts","./SingletonModuleComp.ts","./GameUIConfig.ts"],(function(t){var o,a,s,e,i,n,r,d,l;return{setters:[function(t){o=t.cclegacy,a=t._decorator},function(t){s=t.oops},function(t){e=t.ecs},function(t){i=t.CCVMParentComp},function(t){n=t.ModuleUtil},function(t){r=t.DemoViewComp},function(t){d=t.smc},function(t){l=t.UIID}],execute:function(){var c;o._RF.push({},"92429ykTnxFCrcGyW58JWjj","LoadingViewComp",void 0);const{ccclass:g,property:p}=a;t("LoadingViewComp",g("LoadingViewComp")(c=e.register("LoadingView",!1)(c=class t extends i{constructor(...t){super(...t),this.data={finished:0,total:0,progress:"0",prompt:""},this.progress=0}start(){this.enter()}enter(){this.loadRes()}async loadRes(){this.data.progress=0,await this.loadCustom(),this.loadGameRes()}loadCustom(){this.data.prompt=s.language.getLangByID("loading_load_json")}loadGameRes(){this.data.prompt=s.language.getLangByID("loading_load_game"),s.res.loadDir("game",this.onProgressCallback.bind(this),this.onCompleteCallback.bind(this))}onProgressCallback(t,o,a){this.data.finished=t,this.data.total=o;var s=t/o;s>this.progress&&(this.progress=s,this.data.progress=(100*s).toFixed(2))}async onCompleteCallback(){this.data.prompt=s.language.getLangByID("loading_load_player"),await n.addViewUiAsync(d.account,r,l.Demo),n.removeViewUi(this.ent,t,l.Loading)}reset(){}})||c)||c);o._RF.pop()}}}));
  101. System.register("chunks:///_virtual/Logger.ts",["cc"],(function(t){var e,s;return{setters:[function(t){e=t.cclegacy,s=t.log}],execute:function(){e._RF.push({},"479cdJANP5KaJgU+8z0DdSE","Logger",void 0);let n=t("LogType",function(t){return t[t.Net=1]="Net",t[t.Model=2]="Model",t[t.Business=4]="Business",t[t.View=8]="View",t[t.Config=16]="Config",t[t.Trace=32]="Trace",t}({}));var i={1:"网络日志",2:"数据日志",4:"业务日志",8:"视图日志",16:"配置日志",32:"标准日志"};class l{constructor(){this.tags=0,this.lc=null}static get instance(){return null==this._instance&&(this._instance=new l,this._instance.init()),this._instance}setLoggerConsole(t){this.lc=t}init(){this.tags=n.Net|n.Model|n.Business|n.View|n.Config|n.Trace}setTags(t=null){t&&(this.tags=t)}start(t="Time"){console.time(t)}end(t="Time"){console.timeEnd(t)}table(t,e){this.isOpen(n.Trace)&&console.table(t)}trace(t,e="#000000"){this.print(n.Trace,t,e)}logNet(t,e){this.orange(n.Net,t,e)}logModel(t,e){this.violet(n.Model,t,e)}logBusiness(t,e){this.blue(n.Business,t,e)}logView(t,e){this.green(n.View,t,e)}logConfig(t,e){this.gray(n.Config,t,e)}orange(t,e,s){this.print(t,e,"#ee7700",s)}violet(t,e,s){this.print(t,e,"#800080",s)}blue(t,e,s){this.print(t,e,"#3a5fcd",s)}green(t,e,s){this.print(t,e,"#008000",s)}gray(t,e,s){this.print(t,e,"#808080",s)}isOpen(t){return 0!=(this.tags&t)}print(t,e,n,l){if(!this.isOpen(t))return;const o=i[t];if(null==this.lc){const t=console.log||s;n="color:"+n+";",l?t.call(null,"%c%s%s%s:%s%o",n,this.getDateString(),"["+o+"]",this.stack(5),l,e):t.call(null,"%c%s%s%s:%o",n,this.getDateString(),"["+o+"]",this.stack(5),e)}else this.lc.trace(`${this.getDateString()}[${o}]${e}`,n)}stack(t){const e=(new Error).stack.split("\n"),s=[];e.forEach((t=>{var e=(t=t.substring(7)).split(" ");e.length<2?s.push(e[0]):s.push({[e[0]]:e[1]})}));let n=[],i=[];if(t<s.length-1){let e;for(let l in s[t])if(i=l.split("."),2==i.length)n=i.concat();else{e=s[t][l];const i=e.lastIndexOf("/"),o=e.lastIndexOf(".");if(i>-1&&o>-1){const t=e.substring(i+1,o);n.push(t)}else n.push(e)}}return 1==n.length?"["+n[0]+".ts]":2==n.length?"["+n[0]+".ts->"+n[1]+"]":""}getDateString(){let t=new Date,e=t.getHours().toString(),s="";return s+=(1==e.length?"0"+e:e)+":",e=t.getMinutes().toString(),s+=(1==e.length?"0"+e:e)+":",e=t.getSeconds().toString(),s+=(1==e.length?"0"+e:e)+":",e=t.getMilliseconds().toString(),1==e.length&&(e="00"+e),2==e.length&&(e="0"+e),s+=e,s="["+s+"]",s}}t("Logger",l),l._instance=void 0,e._RF.pop()}}}));
  102. System.register("chunks:///_virtual/main",["./Main.ts","./Account.ts","./AccountModelComp.ts","./DemoViewComp.ts","./SingletonModuleComp.ts","./GameEvent.ts","./GameStorageConfig.ts","./GameUIConfig.ts","./TableLanguage.ts","./TablePromptWindow.ts","./TipsManager.ts","./Initialize.ts","./InitRes.ts","./LoadingViewComp.ts","./Oops.ts","./Root.ts","./AudioEffect.ts","./AudioEffectPool.ts","./AudioManager.ts","./AudioMusic.ts","./EventDispatcher.ts","./EventMessage.ts","./MessageManager.ts","./ResLoader.ts","./Logger.ts","./RandomManager.ts","./SeedRandom.ts","./StorageManager.ts","./StorageSecurityCrypto.ts","./StorageSecuritySimple.ts","./Timer.ts","./TimerManager.ts","./GameManager.ts","./Defines.ts","./DelegateComponent.ts","./LayerDialog.ts","./LayerManager.ts","./LayerNotify.ts","./LayerPopup.ts","./LayerUI.ts","./CommonPrompt.ts","./LoadingIndicator.ts","./Notify.ts","./ArrayUtil.ts","./CameraUtil.ts","./DeviceUtil.ts","./EncryptUtil.ts","./ImageUtil.ts","./JsonUtil.ts","./LayerUtil.ts","./MathUtil.ts","./ObjectUtil.ts","./PhysicsUtil.ts","./PlatformUtil.ts","./RegexUtil.ts","./RotateUtil.ts","./StringUtil.ts","./TimeUtils.ts","./Vec3Util.ts","./ViewUtil.ts","./Ambilight.ts","./FlashSpine.ts","./FlashSprite.ts","./SpineFinishedRelease.ts","./Effect2DFollow3D.ts","./EffectDelayRelease.ts","./EffectEvent.ts","./EffectFinishedRelease.ts","./EffectSingleCase.ts","./MoveRigidBody.ts","./MoveTo.ts","./MoveTranslate.ts","./AnimatorAnimation.ts","./AnimatorCustomization.ts","./AnimatorDragonBones.ts","./AnimatorSkeletal.ts","./AnimatorSpine.ts","./AnimatorSpineSecondary.ts","./AnimatorBase.ts","./AnimatorCondition.ts","./AnimatorController.ts","./AnimatorParams.ts","./AnimatorState.ts","./AnimatorStateLogic.ts","./AnimatorTransition.ts","./BTreeNode.ts","./BehaviorTree.ts","./BranchNode.ts","./Decorator.ts","./IControl.ts","./Priority.ts","./Selector.ts","./Sequence.ts","./Task.ts","./index.ts","./FreeFlightCamera.ts","./OrbitCamera.ts","./AsyncQueue.ts","./Collection.ts","./List.ts","./ECS.ts","./ECSComp.ts","./ECSEntity.ts","./ECSGroup.ts","./ECSMask.ts","./ECSMatcher.ts","./ECSModel.ts","./ECSSystem.ts","./ArrayExt.ts","./DateExt.ts","./DirectorExt.ts","./NodeDragExt.ts","./NodeExt.ts","./ButtonEffect.ts","./ButtonSimple.ts","./ButtonTouchLong.ts","./UIButton.ts","./LabelChange.ts","./LabelNumber.ts","./LabelTime.ts","./Language.ts","./LanguageData.ts","./LanguageLabel.ts","./LanguagePack.ts","./LanguageSpine.ts","./LanguageSprite.ts","./JsonOb.ts","./StringFormat.ts","./VMBase.ts","./VMCompsEdit.ts","./VMCustom.ts","./VMEnv.ts","./VMEvent.ts","./VMLabel.ts","./VMModify.ts","./VMParent.ts","./VMProgress.ts","./VMState.ts","./ViewModel.ts","./BhvButtonGroup.ts","./BhvFrameIndex.ts","./BhvRollNumber.ts","./BhvSwitchPage.ts","./HttpRequest.ts","./NetInterface.ts","./NetManager.ts","./NetNode.ts","./NetProtocolPako.ts","./WebSock.ts","./RtToModel.ts","./RtToSprite.ts","./CCComp.ts","./CCVMParentComp.ts","./GameCollision.ts","./GameComponent.ts","./ModuleUtil.ts","./BuildTimeConstants.ts","./Config.ts","./GameConfig.ts","./GameQueryConfig.ts"],(function(){return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));
  103. System.register("chunks:///_virtual/Main.ts",["cc","./Oops.ts","./Root.ts","./ECS.ts","./Account.ts","./SingletonModuleComp.ts","./GameUIConfig.ts","./Initialize.ts"],(function(t){var n,i,o,c,s,e,u,a,r;return{setters:[function(t){n=t.cclegacy,i=t._decorator},function(t){o=t.oops},function(t){c=t.Root},function(t){s=t.ecs},function(t){e=t.Account},function(t){u=t.smc},function(t){a=t.UIConfigData},function(t){r=t.Initialize}],execute:function(){var f;n._RF.push({},"0eec0s4qrZF7onPlYBrD+y+","Main",void 0);const{ccclass:l,property:g}=i;t("Main",l("Main")(f=class extends c{start(){}run(){u.initialize=s.getEntity(r),u.account=s.getEntity(e)}initGui(){o.gui.init(a),console.log(">>>>>>>>>>>>>初始化游戏完成>>>>>>>>>>>>>>>>>")}})||f);n._RF.pop()}}}));
  104. System.register("chunks:///_virtual/MathUtil.ts",["cc"],(function(t){var r;return{setters:[function(t){r=t.cclegacy}],execute:function(){r._RF.push({},"8c615ZS4PRMPKPA9ZqKjiJC","MathUtil",void 0);class a{static sign(t){return t>0?1:t<0?-1:0}static progress(t,r,a){return t+(r-t)*a}static lerp(t,r,a){return a>1?a=1:a<0&&(a=0),t*(1-a)+r*a}static lerpAngle(t,r,e){const s=(r%=360)-(t%=360);return s>180?r=t-(360-s):s<-180&&(r=t+(360+s)),(a.lerp(t,r,e)%360+360)%360}static angleTowards(t,r,a){const e=(r%=360)-(t%=360);e>180?r=t-(360-e):e<-180&&(r=t+(360+e));const s=r-t;return a>Math.abs(s)?r:((t+a*Math.sign(s))%360+360)%360}static clamp(t,r,a){return t<r?r:t>a?a:t}static probability(t){return Math.random()<t}}t("MathUtil",a),a.deg2Rad=Math.PI/180,a.rad2Deg=180/Math.PI,r._RF.pop()}}}));
  105. System.register("chunks:///_virtual/MessageManager.ts",["cc"],(function(e){var t,s,n;return{setters:[function(e){t=e.cclegacy,s=e.warn,n=e.log}],execute:function(){t._RF.push({},"a401fY+wj9NsqOACoZ7Zy/R","MessageManager",void 0);class l{constructor(){this.event=void 0,this.listener=void 0,this.object=void 0}}e("MessageEventData",class{constructor(){this.events=new Map}on(e,t,s){let n=this.events.get(e);null==n&&(n=[],this.events.set(e,n));let o=new l;o.event=e,o.listener=t,o.object=s,n.push(o),i.on(e,t,s)}off(e){let t=this.events.get(e);if(t){for(let s of t)i.off(e,s.listener,s.object);this.events.delete(e)}}dispatchEvent(e,...t){i.dispatchEvent(e,...t)}clear(){const e=Array.from(this.events.keys());for(let t of e)this.off(t)}});class o{constructor(){this.events=new Map}on(e,t,n){if(!e||!t)return void s(`注册【${e}】事件的侦听器函数为空`);let o=this.events.get(e);null==o&&(o=[],this.events.set(e,o));let i=o.length;for(let l=0;l<i;l++){let i=o[l];i.listener==t&&i.object==n&&s(`名为【${e}】的事件重复注册侦听器`)}let c=new l;c.event=e,c.listener=t,c.object=n,o.push(c)}once(e,t,s){let n=(l,...o)=>{this.off(e,n,s),n=null,t.call(s,l,o)};this.on(e,n,s)}off(e,t,s){let l=this.events.get(e);if(!l)return void n(`名为【${e}】的事件不存在`);let o=l.length;for(let e=0;e<o;e++){let n=l[e];if(n.listener==t&&n.object==s){l.splice(e,1);break}}0==l.length&&this.events.delete(e)}dispatchEvent(e,...t){let s=this.events.get(e);if(null!=s){let n=s.concat(),l=n.length;for(let s=0;s<l;s++){let l=n[s];l.listener.call(l.object,e,...t)}}}}e("MessageManager",o);const i=e("message",new o);t._RF.pop()}}}));
  106. System.register("chunks:///_virtual/ModuleUtil.ts",["cc","./Oops.ts","./ViewUtil.ts"],(function(e){var t,n,o;return{setters:[function(e){t=e.cclegacy},function(e){n=e.oops},function(e){o=e.ViewUtil}],execute:function(){t._RF.push({},"52a6cdAO5tGxaeE1TprZ5VK","ModuleUtil",void 0);e("ModuleUtil",class{static addViewUi(e,t,o,i=null){const c={onAdded:(n,o)=>{const i=n.getComponent(t);e.has(t)||e.add(i)}};n.gui.open(o,i,c)}static addViewUiAsync(e,t,o,i=null){return new Promise(((c,d)=>{const s={onAdded:(n,o)=>{const i=n.getComponent(t);e.add(i),c(n)},onLoadFailure:()=>{c(null)}};n.gui.open(o,i,s)}))}static addView(e,t,n,i){const c=o.createPrefabNode(i),d=c.getComponent(t);e.add(d),c.parent=n}static removeViewUi(e,t,o,i=!0){i&&e.remove(t,i),n.gui.remove(o,i)}}),t._RF.pop()}}}));
  107. System.register("chunks:///_virtual/MoveRigidBody.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,r,s,o,a,n,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,s=t.Vec3,o=t._decorator,a=t.Component,n=t.RigidBody,p=t.EPSILON}],execute:function(){var l,d,h,y,c,g,u,_,v,m,b;r._RF.push({},"4e8cedkWeJDEZoUMtauac/M","MoveRigidBody",void 0);const{ccclass:B,property:f}=o,M=new s,w=new s;t("MoveRigidBody",(l=B("MoveRigidBody"),d=f({tooltip:"阻尼"}),h=f({tooltip:"重力"}),y=f({tooltip:"移动速度"}),c=f({tooltip:"速度比率"}),l((_=e((u=class extends a{constructor(...t){super(...t),i(this,"damping",_,this),i(this,"gravity",v,this),i(this,"_speed",m,this),i(this,"_ratio",b,this),this._rigidBody=null,this._grounded=!0,this._curMaxSpeed=0,this._prevAngleY=0,this._stateX=0,this._stateZ=0,this._velocity=new s}get speed(){return this._speed}set speed(t){this._speed=t,this._curMaxSpeed=t*this.ratio}get ratio(){return this._ratio}set ratio(t){this._ratio=t,this._curMaxSpeed=this.speed*t}get grounded(){return this._grounded}get velocity(){return this._velocity}set velocity(t){this._velocity=t;var e=t.x,i=t.z;(e>0&&this._stateX<0||e<0&&this._stateX>0||i>0&&this._stateZ<0||i<0&&this._stateZ>0)&&this._rigidBody.clearVelocity(),this._stateX=e,this._stateZ=i}start(){this._rigidBody=this.getComponent(n),this._prevAngleY=this.node.eulerAngles.y}stop(){this._stateX=0,this._stateZ=0,this._rigidBody.clearVelocity()}update(t){this.applyGravity(),this.applyDamping(t),this.grounded&&this.applyLinearVelocity(M,1)}applyGravity(){const t=this.gravity,e=this._rigidBody.mass;w.set(0,e*t,0),this._rigidBody.applyForce(w)}applyDamping(t){this._rigidBody.getLinearVelocity(w),w.lengthSqr()>p&&(w.multiplyScalar(Math.pow(1-this.damping,t)),this._rigidBody.setLinearVelocity(w))}applyLinearVelocity(t,e){if(this._stateX||this._stateZ){M.set(this._stateX,0,this._stateZ),M.normalize(),this._rigidBody.getLinearVelocity(w),s.scaleAndAdd(w,w,t,e);const i=this._curMaxSpeed;let r=1;w.lengthSqr()>i&&(Math.abs(this.node.eulerAngles.y-this._prevAngleY)>=10&&(r=2),this._prevAngleY=this.node.eulerAngles.y,w.normalize(),w.multiplyScalar(i/r)),this._rigidBody.setLinearVelocity(w)}}}).prototype,"damping",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),v=e(u.prototype,"gravity",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-10}}),m=e(u.prototype,"_speed",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),e(u.prototype,"speed",[y],Object.getOwnPropertyDescriptor(u.prototype,"speed"),u.prototype),b=e(u.prototype,"_ratio",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),e(u.prototype,"ratio",[c],Object.getOwnPropertyDescriptor(u.prototype,"ratio"),u.prototype),g=u))||g));r._RF.pop()}}}));
  108. System.register("chunks:///_virtual/MoveTo.ts",["cc","./Timer.ts","./Vec3Util.ts"],(function(t){var e,s,i,o,n,h,l;return{setters:[function(t){e=t.cclegacy,s=t.Component,i=t.Node,o=t.Vec3,n=t._decorator},function(t){h=t.Timer},function(t){l=t.Vec3Util}],execute:function(){var d;e._RF.push({},"5e22a+qWUpI6ZHSVRRj2DYT","MoveTo",void 0);const{ccclass:r,property:a}=n;t("MoveTo",r("MoveTo")(d=class extends s{constructor(...t){super(...t),this.target=null,this.velocity=l.zero,this.speed=0,this.hasYAxis=!0,this.ns=i.NodeSpace.LOCAL,this.offset=0,this.offsetVector=null,this.onStart=null,this.onComplete=null,this.onChange=null,this.timer=new h,this.end=null}onLoad(){this.enabled=!1}move(){this.enabled=!0}update(t){let e;if(console.assert(this.speed>0,"移动速度必须要大于零"),e=this.target instanceof i?this.ns==i.NodeSpace.WORLD?this.target.worldPosition:this.target.position:this.target,null!=e){if(null==this.end||!this.end.strictEquals(e)){var s;let t=e.clone();this.offsetVector&&(t=t.add(this.offsetVector)),0==this.hasYAxis&&(t.y=0);let h=this.ns==i.NodeSpace.WORLD?this.node.worldPosition:this.node.position;this.velocity=l.sub(t,h).normalize();let d=o.distance(h,t)-this.offset;if(null==(s=this.onChange)||s.call(this),d<=0)return void this.exit();var n;null==(n=this.onStart)||n.call(this),this.timer.step=d/this.speed,this.end=e.clone()}if(this.speed>0){let e=l.mul(this.velocity,this.speed*t);this.ns==i.NodeSpace.WORLD?this.node.worldPosition=l.add(this.node.worldPosition,e):this.node.position=l.add(this.node.position,e)}this.timer.update(t)&&(0==this.offset&&(this.ns==i.NodeSpace.WORLD?this.node.worldPosition=this.end:this.node.position=this.end),this.exit())}else this.exit()}exit(){var t;null==(t=this.onComplete)||t.call(this),this.enabled=!1,this.target=null,this.velocity=l.zero,this.speed=0,this.hasYAxis=!0,this.ns=i.NodeSpace.LOCAL,this.offset=0,this.offsetVector=null,this.onStart=null,this.onComplete=null,this.onChange=null,this.timer.reset(),this.end=null}})||d);e._RF.pop()}}}));
  109. System.register("chunks:///_virtual/MoveTranslate.ts",["cc","./Vec3Util.ts"],(function(e){var t,s,c,o,r,n;return{setters:[function(e){t=e.cclegacy,s=e.Component,c=e.Vec3,o=e.Node,r=e._decorator},function(e){n=e.Vec3Util}],execute:function(){var a;t._RF.push({},"e626612zClLO4OZDEWvT+fr","MoveTranslate",void 0);const{ccclass:i,property:l}=r;e("MoveTranslate",i("MoveTranslate")(a=class extends s{constructor(...e){super(...e),this.velocity=n.zero,this.speed=0,this.vector=new c}update(e){this.speed>0&&(c.multiplyScalar(this.vector,this.velocity,this.speed*e),this.node.translate(this.vector,o.NodeSpace.WORLD))}})||a);t._RF.pop()}}}));
  110. System.register("chunks:///_virtual/NetInterface.ts",["cc"],(function(){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"d9f8b+CV69FyKwnUdCjOtad","NetInterface",void 0),e._RF.pop()}}}));
  111. System.register("chunks:///_virtual/NetManager.ts",["cc"],(function(e){var n;return{setters:[function(e){n=e.cclegacy}],execute:function(){n._RF.push({},"d8cd5el6GBGTYTW+N8b8EuJ","NetManager",void 0);class t{constructor(){this._channels={}}static getInstance(){return this._instance||(this._instance=new t),this._instance}setNetNode(e,n=0){this._channels[n]=e}removeNetNode(e){delete this._channels[e]}connect(e,n=0){return!!this._channels[n]&&this._channels[n].connect(e)}send(e,n=!1,t=0){let s=this._channels[t];return s?s.send(e,n):-1}request(e,n,t=!0,s=!1,c=0){let i=this._channels[c];i&&i.request(e,n,t,s)}requestUnique(e,n,t=!0,s=!1,c=0){let i=this._channels[c];return!!i&&i.requestUnique(e,n,t,s)}close(e,n,t=0){if(this._channels[t])return this._channels[t].closeSocket(e,n)}}e("NetManager",t),t._instance=void 0,n._RF.pop()}}}));
  112. System.register("chunks:///_virtual/NetNode.ts",["cc","./Logger.ts"],(function(e){var t,s,i,n;return{setters:[function(e){t=e.cclegacy,s=e.error,i=e.warn},function(e){n=e.Logger}],execute:function(){t._RF.push({},"57f0fB90kNBUJ98yyu+jxjx","NetNode",void 0);var r=["已关闭","连接中","验证中","可传输数据"];let o=e("NetTipsType",function(e){return e[e.Connecting=0]="Connecting",e[e.ReConnecting=1]="ReConnecting",e[e.Requesting=2]="Requesting",e}({})),c=e("NetNodeState",function(e){return e[e.Closed=0]="Closed",e[e.Connecting=1]="Connecting",e[e.Checking=2]="Checking",e[e.Working=3]="Working",e}({}));e("NetNode",class{constructor(){this._connectOptions=null,this._autoReconnect=0,this._isSocketInit=!1,this._isSocketOpen=!1,this._state=c.Closed,this._socket=null,this._networkTips=null,this._protocolHelper=null,this._connectedCallback=null,this._disconnectCallback=null,this._callbackExecuter=null,this._keepAliveTimer=null,this._receiveMsgTimer=null,this._reconnectTimer=null,this._heartTime=1e4,this._receiveTime=6e6,this._reconnetTimeOut=8e6,this._requests=Array(),this._listener={}}init(e,t,s=null,i=null){n.logNet("网络初始化"),this._socket=e,this._protocolHelper=t,this._networkTips=s,this._callbackExecuter=i||((e,t)=>{e.callback.call(e.target,t)})}connect(e){return!(!this._socket||this._state!=c.Closed)&&(this._isSocketInit||this.initSocket(),this._state=c.Connecting,this._socket.connect(e)?(null==this._connectOptions&&"number"==typeof e.autoReconnect&&(this._autoReconnect=e.autoReconnect),this._connectOptions=e,this.updateNetTips(o.Connecting,!0),!0):(this.updateNetTips(o.Connecting,!1),!1))}initSocket(){this._socket&&(this._socket.onConnected=e=>{this.onConnected(e)},this._socket.onMessage=e=>{this.onMessage(e)},this._socket.onError=e=>{this.onError(e)},this._socket.onClosed=e=>{this.onClosed(e)},this._isSocketInit=!0)}updateNetTips(e,t){this._networkTips&&(e==o.Requesting?this._networkTips.requestTips(t):e==o.Connecting?this._networkTips.connectTips(t):e==o.ReConnecting&&this._networkTips.reconnectTips(t))}onConnected(e){n.logNet("网络已连接"),this._isSocketOpen=!0,null!==this._connectedCallback?(this._state=c.Checking,this._connectedCallback((()=>{this.onChecked()}))):this.onChecked(),n.logNet(`网络已连接当前状态为【${r[this._state]}】`)}onChecked(){n.logNet("连接验证成功,进入工作状态"),this._state=c.Working,this.updateNetTips(o.Connecting,!1),this.updateNetTips(o.ReConnecting,!1);var e=this._requests.concat();if(e.length>0){n.logNet(`请求【${this._requests.length}】个待发送的信息`);for(var t=0;t<e.length;){let s=e[t];this._socket.send(s.buffer),null==s.rspObject||""!=s.rspCmd?e.splice(t,1):++t}this.updateNetTips(o.Requesting,this._requests.length>0)}}onMessage(e){var t=JSON.parse(e);if(!this._protocolHelper.checkResponsePackage(t))return void s("校验接受消息数据异常");this._protocolHelper.handlerResponsePackage(t)||this._networkTips&&this._networkTips.responseErrorCode(t.code),this.resetReceiveMsgTimer(),this.resetHearbeatTimer();let i=this._protocolHelper.getPackageId(t);if(n.logNet(`接受到命令【${i}】的消息`),this._requests.length>0){for(let e in this._requests){let s=this._requests[e];if(s.rspCmd==i&&s.rspObject){n.logNet(`触发请求命令【${i}】的回调`),this._callbackExecuter(s.rspObject,t.data),this._requests.splice(parseInt(e),1);break}}0==this._requests.length?this.updateNetTips(o.Requesting,!1):n.logNet(`请求队列中还有【${this._requests.length}】个请求在等待`)}let r=this._listener[i];if(null!=r)for(const e of r)n.logNet(`触发监听命令【${i}】的回调`),this._callbackExecuter(e,t.data)}onError(e){s(e)}onClosed(e){this.clearTimer(),!this._disconnectCallback||this._disconnectCallback()?this.isAutoReconnect()?(this.updateNetTips(o.ReConnecting,!0),this._reconnectTimer=setTimeout((()=>{this._socket.close(),this._state=c.Closed,this.connect(this._connectOptions),this._autoReconnect>0&&(this._autoReconnect-=1)}),this._reconnetTimeOut)):this._state=c.Closed:n.logNet("断开连接")}close(e,t){this.clearTimer(),this._listener={},this._requests.length=0,this._networkTips&&(this._networkTips.connectTips(!1),this._networkTips.reconnectTips(!1),this._networkTips.requestTips(!1)),this._socket?this._socket.close(e,t):this._state=c.Closed}closeSocket(e,t){this._socket&&this._socket.close(e,t)}send(e,t=!1){return this._state==c.Working||t?this._socket.send(e):this._state==c.Checking||this._state==c.Connecting?(this._requests.push({buffer:e,rspCmd:"",rspObject:null}),n.logNet(`当前状态为【${r[this._state]}】,繁忙并缓冲发送数据`),0):(s(`当前状态为【${r[this._state]}】,请求错误`),-1)}request(e,t,s=!0,i=!1){var n=this._protocolHelper.handlerRequestPackage(e);this.base_request(e,n,t,s,i)}requestUnique(e,t,s=!0,i=!1){var r=this._protocolHelper.handlerRequestPackage(e);for(let e=0;e<this._requests.length;++e)if(this._requests[e].rspCmd==r)return n.logNet(`命令【${r}】重复请求`),!1;return this.base_request(e,r,t,s,i),!0}base_request(e,t,s,i=!0,r=!1){var l=JSON.stringify(e);(this._state==c.Working||r)&&this._socket.send(l),n.logNet(`队列命令为【${t}】的请求,等待请求数据的回调`),this._requests.push({buffer:l,rspCmd:t,rspObject:s}),i&&this.updateNetTips(o.Requesting,!0)}setResponeHandler(e,t,i){return null==t?(s(`命令为【${e}】设置响应处理程序错误`),!1):(this._listener[e]=[{target:i,callback:t}],!0)}addResponeHandler(e,t,i){if(null==t)return s(`命令为【${e}】添加响应处理程序错误`),!1;let n={target:i,callback:t};if(null==this._listener[e])this._listener[e]=[n];else{-1==this.getNetListenersIndex(e,n)&&this._listener[e].push(n)}return!0}removeResponeHandler(e,t,s){if(null!=this._listener[e]&&null!=t){let i=this.getNetListenersIndex(e,{target:s,callback:t});-1!=i&&this._listener[e].splice(i,1)}}cleanListeners(e=""){""==e?this._listener={}:delete this._listener[e]}getNetListenersIndex(e,t){let s=-1;for(let i=0;i<this._listener[e].length;i++){let n=this._listener[e][i];if(n.callback==t.callback&&n.target==t.target){s=i;break}}return s}resetReceiveMsgTimer(){null!==this._receiveMsgTimer&&clearTimeout(this._receiveMsgTimer),this._receiveMsgTimer=setTimeout((()=>{i("接收消息定时器关闭网络连接"),this._socket.close()}),this._receiveTime)}resetHearbeatTimer(){null!==this._keepAliveTimer&&clearTimeout(this._keepAliveTimer),this._keepAliveTimer=setTimeout((()=>{n.logNet("网络节点保持活跃发送心跳信息"),this.send(this._protocolHelper.getHearbeat())}),this._heartTime)}clearTimer(){null!==this._receiveMsgTimer&&clearTimeout(this._receiveMsgTimer),null!==this._keepAliveTimer&&clearTimeout(this._keepAliveTimer),null!==this._reconnectTimer&&clearTimeout(this._reconnectTimer)}isAutoReconnect(){return 0!=this._autoReconnect}rejectReconnect(){this._autoReconnect=0,this.clearTimer()}}),t._RF.pop()}}}));
  113. System.register("chunks:///_virtual/NetProtocolPako.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"88ae0lIg5BFWb1O1E8/Etwi","NetProtocolPako",void 0);e("NetProtocolPako",class{getHeadlen(){return 0}getHearbeat(){return""}getPackageLen(e){return e.toString().length}checkResponsePackage(e){return!0}handlerResponsePackage(e){return 1==e.code&&(e.isCompress&&(e.data=function(e){let t=e.split("").map((function(e){return e.charCodeAt(0)})),a=new Uint8Array(t);return pako.inflate(a,{to:"string"})}(e.data)),e.data=JSON.parse(e.data),!0)}handlerRequestPackage(e){var t,a=e.cmd;return e.callback=a,e.isCompress&&(e.data=(t=e.data,pako.gzip(t,{to:"string"}))),a}getPackageId(e){return e.callback}}),t._RF.pop()}}}));
  114. System.register("chunks:///_virtual/NodeDragExt.ts",["cc"],(function(){var t,i,n,e,o;return{setters:[function(s){t=s.cclegacy,i=s.Node,n=s.js,e=s.Vec2,o=s.v3}],execute:function(){if(t._RF.push({},"1a072/udu9MtbdbyL5xB8iR","NodeDragExt",void 0),!i.prototype.__$NodeDragExt$__){i.prototype.__$NodeDragExt$__=!0;let t={DRAG_START:"drag_start",DRAG_MOVE:"drag_move",DRAG_END:"drag_end"};n.mixin(i,{DragEvent:t}),n.mixin(i.prototype,{_draggable:!1,_dragging:!1,_dragTesting:!1,_dragStartPoint:null,initDrag:function(){this._draggable?(this.on(i.EventType.TOUCH_START,this.onTouchBegin_0,this),this.on(i.EventType.TOUCH_MOVE,this.onTouchMove_0,this),this.on(i.EventType.TOUCH_END,this.onTouchEnd_0,this),this.on(i.EventType.TOUCH_CANCEL,this.onTouchCancel_0,this)):(this.off(i.EventType.TOUCH_START,this.onTouchBegin_0,this),this.off(i.EventType.TOUCH_MOVE,this.onTouchMove_0,this),this.off(i.EventType.TOUCH_END,this.onTouchEnd_0,this),this.off(i.EventType.TOUCH_CANCEL,this.onTouchCancel_0,this))},onTouchBegin_0:function(t){null==this._dragStartPoint&&(this._dragStartPoint=new e);let i=t.getUILocation();this._dragStartPoint.set(i),this._dragTesting=!0},onTouchMove_0:function(t){if(!this._dragging&&this._draggable&&this._dragTesting){let n=10,e=t.getUILocation();if(Math.abs(this._dragStartPoint.x-e.x)<n&&Math.abs(this._dragStartPoint.y-e.y)<n)return;this._dragging=!0,this._dragTesting=!1,this.emit(i.DragEvent.DRAG_START,t)}if(this._dragging){let n=t.getUIDelta(),e=o(n.x,n.y,0).add(this.position);this.position=e,this.emit(i.DragEvent.DRAG_MOVE,t)}},onTouchEnd_0:function(t){this._dragging&&(this._dragging=!1,this.emit(i.DragEvent.DRAG_END,t))},onTouchCancel_0:function(t){this._dragging&&(this._dragging=!1,this.emit(i.DragEvent.DRAG_END,t))},startDrag:function(){this.activeInHierarchy&&this.dragBegin()},dragBegin:function(){this._dragging=!0,this._dragTesting=!0,this.on(i.EventType.TOUCH_MOVE,this.onTouchMove_0,this),this.on(i.EventType.TOUCH_END,this.onTouchEnd_0,this),this.on(i.EventType.TOUCH_CANCEL,this.onTouchCancel_0,this)},dragEnd:function(){this._dragging&&(this._dragTesting=!1,this._dragging=!1)},stopDrag:function(){this.dragEnd()},removeDragEvent:function(){this.off(i.EventType.TOUCH_START,this.onTouchBegin_0,this),this.off(i.EventType.TOUCH_MOVE,this.onTouchMove_0,this),this.off(i.EventType.TOUCH_END,this.onTouchEnd_0,this),this.off(i.EventType.TOUCH_CANCEL,this.onTouchCancel_0,this)}}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!=t&&(this._draggable=t,this.initDrag())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragTesting",{get:function(){return this._dragTesting},set:function(t){this._dragTesting!=t&&(this._dragTesting=t)},enumerable:!0,configurable:!0})}t._RF.pop()}}}));
  115. System.register("chunks:///_virtual/NodeExt.ts",["cc"],(function(){var t,e,o,n,i,r,p,c,s,u,f,g,l,y,h,a,d,m,C,P,b,O,j;return{setters:[function(_){t=_.cclegacy,e=_.Node,o=_.Graphics,n=_.Label,i=_.RichText,r=_.Sprite,p=_.Button,c=_.Canvas,s=_.EditBox,u=_.Layout,f=_.PageView,g=_.ProgressBar,l=_.ScrollView,y=_.Slider,h=_.Toggle,a=_.Widget,d=_.UIOpacity,m=_.UITransform,C=_.Mask,P=_.Size,b=_.UIRenderer,O=_.Color,j=_.v3}],execute:function(){t._RF.push({},"493a6vtAsNCi7/drbKHIAaL","NodeExt",void 0),Object.defineProperty(e.prototype,"uiGraphics",{get:function(){return this.getComponent(o)},set:function(t){}}),Object.defineProperty(e.prototype,"uiLabel",{get:function(){return this.getComponent(n)},set:function(t){}}),Object.defineProperty(e.prototype,"uiRichText",{get:function(){return this.getComponent(i)},set:function(t){}}),Object.defineProperty(e.prototype,"uiSprite",{get:function(){return this.getComponent(r)},set:function(t){}}),Object.defineProperty(e.prototype,"uiButton",{get:function(){return this.getComponent(p)},set:function(t){}}),Object.defineProperty(e.prototype,"uiCanvas",{get:function(){return this.getComponent(c)},set:function(t){}}),Object.defineProperty(e.prototype,"uiEditBox",{get:function(){return this.getComponent(s)},set:function(t){}}),Object.defineProperty(e.prototype,"uiLayout",{get:function(){return this.getComponent(u)},set:function(t){}}),Object.defineProperty(e.prototype,"uiPageView",{get:function(){return this.getComponent(f)},set:function(t){}}),Object.defineProperty(e.prototype,"uiProgressBar",{get:function(){return this.getComponent(g)},set:function(t){}}),Object.defineProperty(e.prototype,"uiScrollView",{get:function(){return this.getComponent(l)},set:function(t){}}),Object.defineProperty(e.prototype,"uiSlider",{get:function(){return this.getComponent(y)},set:function(t){}}),Object.defineProperty(e.prototype,"uiToggle",{get:function(){return this.getComponent(h)},set:function(t){}}),Object.defineProperty(e.prototype,"uiWidget",{get:function(){return this.getComponent(a)},set:function(t){}}),Object.defineProperty(e.prototype,"uiOpacity",{get:function(){return this.getComponent(d)},set:function(t){}}),Object.defineProperty(e.prototype,"uiTransform",{get:function(){return this.getComponent(m)},set:function(t){}}),Object.defineProperty(e.prototype,"uiMask",{get:function(){return this.getComponent(C)},set:function(t){}}),Object.defineProperty(e.prototype,"x",{get:function(){return this.position.x},set:function(t){this.setPosition(t,this.position.y)}}),Object.defineProperty(e.prototype,"y",{get:function(){return this.position.y},set:function(t){this.setPosition(this.position.x,t)}}),Object.defineProperty(e.prototype,"z",{get:function(){return this.position.z},set:function(t){let e=this;e.setPosition(e.position.x,e.position.y,t)}}),Object.defineProperty(e.prototype,"w",{configurable:!0,get:function(){var t;return(null==(t=this.getComponent(m))?void 0:t.width)??0},set:function(t){(this.getComponent(m)||this.addComponent(m)).width=t}}),Object.defineProperty(e.prototype,"h",{configurable:!0,get:function(){var t;return(null==(t=this.getComponent(m))?void 0:t.height)??0},set:function(t){(this.getComponent(m)||this.addComponent(m)).height=t}}),Object.defineProperty(e.prototype,"size",{get:function(){let t=this.getComponent(m);return new P(t.width,t.height)},set:function(t){let e=this.getComponent(m)||this.addComponent(m);e.width=t.width,e.height=t.height}}),Object.defineProperty(e.prototype,"opacity",{get:function(){let t=this.getComponent(d);if(null!=t)return t.opacity;let e=this.getComponent(b);return e?e.color.a:255},set:function(t){let e=this,o=e.getComponent(d);if(null!=o)return void(o.opacity=t);let n=e.getComponent(b);n?(this.$__color__?this.$__color__.a=t:this.$__color__=new O(n.color.r,n.color.g,n.color.b,t),n.color=this.$__color__):e.addComponent(d).opacity=t}}),Object.defineProperty(e.prototype,"color",{get:function(){var t;return null==(t=this.getComponent(b))?void 0:t.color},set:function(t){let e=this.getComponent(b);e&&(e.color=t)}}),Object.defineProperty(e.prototype,"scale_x",{get:function(){return this.scale.x},set:function(t){let e=this;e.scale=j(t,e.scale.y,e.scale.z)}}),Object.defineProperty(e.prototype,"scale_y",{get:function(){return this.scale.y},set:function(t){let e=this;e.scale=j(e.scale.x,t,e.scale.z)}}),Object.defineProperty(e.prototype,"scale_z",{get:function(){return this.scale.z},set:function(t){let e=this;e.scale=j(e.scale.x,e.scale.y,t)}}),Object.defineProperty(e.prototype,"anchor_x",{get:function(){var t;return(null==(t=this.getComponent(m))?void 0:t.anchorX)??.5},set:function(t){(this.getComponent(m)||this.addComponent(m)).anchorX=t}}),Object.defineProperty(e.prototype,"anchor_y",{get:function(){var t;return(null==(t=this.getComponent(m))?void 0:t.anchorY)??.5},set:function(t){(this.getComponent(m)||this.addComponent(m)).anchorY=t}}),Object.defineProperty(e.prototype,"angle_x",{get:function(){return this.eulerAngles.x},set:function(t){let e=this;e.setRotationFromEuler(t,e.eulerAngles.y,e.eulerAngles.z)}}),Object.defineProperty(e.prototype,"angle_y",{get:function(){return this.eulerAngles.y},set:function(t){let e=this;e.setRotationFromEuler(e.eulerAngles.x,t,e.eulerAngles.z)}}),Object.defineProperty(e.prototype,"angle_z",{get:function(){return this.eulerAngles.y},set:function(t){let e=this;e.setRotationFromEuler(e.eulerAngles.x,e.eulerAngles.y,t)}}),t._RF.pop()}}}));
  116. System.register("chunks:///_virtual/Notify.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageLabel.ts"],(function(t){var n,e,i,o,a,l,r,s;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.initializerDefineProperty},function(t){i=t.cclegacy,o=t.Label,a=t.Animation,l=t._decorator,r=t.Component},function(t){s=t.LanguageLabel}],execute:function(){var c,u,p,h,b,f,m;i._RF.push({},"01391Mp6X1Gn554rkzavN4K","Notify",void 0);const{ccclass:d,property:y}=l;t("Notify",(c=d("Notify"),u=y(o),p=y(a),c((f=n((b=class extends r{constructor(...t){super(...t),e(this,"lab_content",f,this),e(this,"animation",m,this),this.onComplete=null}onLoad(){this.animation&&this.animation.on(a.EventType.FINISHED,this.onFinished,this)}onFinished(){this.node.parent.destroy(),this.onComplete&&this.onComplete(),this.onComplete=null}toast(t,n){let e=this.lab_content.getComponent(s);n?(e.enabled=!0,e.dataID=t):(e.enabled=!1,this.lab_content.string=t)}}).prototype,"lab_content",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=n(b.prototype,"animation",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=b))||h));i._RF.pop()}}}));
  117. System.register("chunks:///_virtual/ObjectUtil.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"86827QLFSRM7Zojsx0WqWuQ","ObjectUtil",void 0);t("ObjectUtil",class{static isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}static deepCopy(t){if(null==t||"object"!=typeof t)return t;let e=null;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(t instanceof Array){e=[];for(let n=0,c=t.length;n<c;n++)e[n]=this.deepCopy(t[n]);return e}if(t instanceof Object){e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=this.deepCopy(t[n]));return e}console.warn(`不支持的类型:${e}`)}static copy(t){return JSON.parse(JSON.stringify(t))}}),e._RF.pop()}}}));
  118. System.register("chunks:///_virtual/Oops.ts",["cc","./EffectSingleCase.ts","./ECS.ts","./Language.ts","./ViewModel.ts","./HttpRequest.ts","./NetManager.ts","./Config.ts","./Logger.ts","./RandomManager.ts"],(function(e){var n,t,o,s,i,a,c,g,u,f;return{setters:[function(e){n=e.cclegacy},function(e){t=e.EffectSingleCase},function(e){o=e.ecs},function(e){s=e.LanguageManager},function(e){i=e.VM},function(e){a=e.HttpRequest},function(e){c=e.NetManager},function(e){g=e.Config},function(e){u=e.Logger},function(e){f=e.RandomManager}],execute:function(){n._RF.push({},"cbae5wzfSZGzZMuyeAetSfg","Oops",void 0);e("version","2.0.0.20250127");class r{}e("oops",r),r.log=u.instance,r.config=new g,r.storage=void 0,r.res=void 0,r.message=void 0,r.random=f.instance,r.timer=void 0,r.audio=void 0,r.gui=void 0,r.game=void 0,r.language=new s,r.http=new a,r.tcp=new c,r.ecs=new o.RootSystem,r.mvvm=i,r.pool=t.instance,n._RF.pop()}}}));
  119. System.register("chunks:///_virtual/OrbitCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,o,r,a,n,s,l,h,u,p,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,r=t.Vec3,a=t.Quat,n=t.Node,s=t._decorator,l=t.Component,h=t.input,u=t.Input,p=t.lerp,c=t.Vec2}],execute:function(){var g,R,d,_,b,f,y,m,w,S,T,x,z,O,E,C,v,D,M,P,Y,A,U,j,F,H,W,k,Q,N,V,B;o._RF.push({},"4e454G/OQ1NB7tjzAUf269U","OrbitCamera",void 0);const{ccclass:L,property:X,menu:G}=s;let I=new r,q=new r,J=new a;t("OrbitCamera",(g=L("OrbitCamera"),R=G("OopsFramework/Camera/OrbitCamera (轨道摄影机)"),d=X({tooltip:"是否启动触摸控制"}),_=X({tooltip:"是否开启启用缩放半径(鼠标滚轮控制摄像机与目标距离)"}),b=X({tooltip:"摄像机与目标的半径缩放速度",visible:function(){return!0===this.enableScaleRadius}}),f=X({tooltip:"摄像机与目标的半径最小值",visible:function(){return!0===this.enableScaleRadius}}),y=X({tooltip:"摄像机与目标的半径最大值",visible:function(){return!0===this.enableScaleRadius}}),m=X({tooltip:"自动旋转是否开启"}),w=X({tooltip:"自动旋转速度",visible:function(){return!0===this.autoRotate}}),S=X({tooltip:"旋转速度"}),T=X({tooltip:"跟随速度"}),x=X({tooltip:"X轴旋转范围(人物上下看的角度控制)"}),z=X({tooltip:"摄像机与目标的距离(以玩家为中心环绕球半径)"}),O=X({type:n,tooltip:"跟随目标"}),E=X({type:r,tooltip:"目标旋转偏移量(初始旋转向量)"}),C=X({tooltip:"是否跟随目标 Y 轴旋转"}),g(v=R((M=e((D=class extends l{constructor(...t){super(...t),i(this,"enableTouch",M,this),i(this,"enableScaleRadius",P,this),i(this,"radiusScaleSpeed",Y,this),i(this,"minRadius",A,this),i(this,"maxRadius",U,this),i(this,"autoRotate",j,this),i(this,"autoRotateSpeed",F,this),i(this,"rotateSpeed",H,this),i(this,"followSpeed",W,this),i(this,"xRotationRange",k,this),i(this,"_targetRadius",Q,this),i(this,"_target",N,this),i(this,"_startRotation",V,this),i(this,"followTargetRotationY",B,this),this._center=new r,this._targetCenter=new r,this._touched=!1,this._targetRotation=new r,this._rotation=new a,this._radius=10}get radius(){return this._targetRadius}set radius(t){this._targetRadius=t}get target(){return this._target}set target(t){this._target=t,this._targetRotation.set(this._startRotation),this._targetCenter.set(t.worldPosition)}get targetRotation(){return this._startRotation.set(this._targetRotation),this._startRotation}set targetRotation(t){this._targetRotation.set(t),this._startRotation.set(t)}start(){this.enableTouch&&(h.on(u.EventType.TOUCH_START,this.onTouchStart,this),h.on(u.EventType.TOUCH_MOVE,this.onTouchMove,this),h.on(u.EventType.TOUCH_END,this.onTouchEnd,this)),this.enableScaleRadius&&h.on(u.EventType.MOUSE_WHEEL,this.onMouseWheel,this),this.target&&this.resetTargetRotation(),a.fromEuler(this._rotation,this._targetRotation.x,this._targetRotation.y,this._targetRotation.z),this.target&&(this._targetCenter.set(this.target.worldPosition),this._center.set(this._targetCenter)),this._radius=this.radius,this.limitRotation()}resetTargetRotation(){let t=this._targetRotation.set(this._startRotation);this.followTargetRotationY&&(t=q.set(t),a.toEuler(I,this.target.worldRotation),t.add(I))}limitRotation(){let t=this._targetRotation;t.x<this.xRotationRange.x?t.x=this.xRotationRange.x:t.x>this.xRotationRange.y&&(t.x=this.xRotationRange.y),t.z=0}onTouchStart(){this._touched=!0}onTouchMove(t){if(!this._touched)return;let e=t.touch.getDelta();a.fromEuler(J,this._targetRotation.x,this._targetRotation.y,this._targetRotation.z),a.rotateX(J,J,.005*-e.y),a.rotateY(J,J,.005*-e.x),a.toEuler(this._targetRotation,J),this.limitRotation()}onTouchEnd(){this._touched=!1}onMouseWheel(t){let e=t.getScrollY();this._targetRadius+=this.radiusScaleSpeed*-Math.sign(e),this._targetRadius=Math.min(this.maxRadius,Math.max(this.minRadius,this._targetRadius))}update(t){let e=this._targetRotation;this.autoRotate&&!this._touched&&(e.y+=this.autoRotateSpeed*t),this.target&&(this._targetCenter.set(this.target.worldPosition),this.followTargetRotationY&&(e=q.set(e),a.toEuler(I,this.target.worldRotation),e.y+=I.y)),a.fromEuler(J,e.x,e.y,e.z),a.slerp(this._rotation,this._rotation,J,7*t*this.rotateSpeed),r.lerp(this._center,this._center,this._targetCenter,5*t*this.followSpeed),this._radius=p(this._radius,this._targetRadius,5*t),r.transformQuat(I,r.FORWARD,this._rotation),r.multiplyScalar(I,I,this._radius),I.add(this._center),this.node.position=I,this.node.lookAt(this._center)}follow(){let t=this._targetRotation;this.target&&(this._targetCenter.set(this.target.worldPosition),this.followTargetRotationY&&(t=q.set(t),a.toEuler(I,this.target.worldRotation),t.y+=I.y)),a.fromEuler(J,t.x,t.y,t.z),this._rotation=J,this._center=this._targetCenter,this._radius=this._targetRadius,r.transformQuat(I,r.FORWARD,this._rotation),r.multiplyScalar(I,I,this._radius),I.add(this._center),this.node.position=I,this.node.lookAt(this._center)}}).prototype,"enableTouch",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),P=e(D.prototype,"enableScaleRadius",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Y=e(D.prototype,"radiusScaleSpeed",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),A=e(D.prototype,"minRadius",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),U=e(D.prototype,"maxRadius",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),j=e(D.prototype,"autoRotate",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=e(D.prototype,"autoRotateSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 90}}),H=e(D.prototype,"rotateSpeed",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),W=e(D.prototype,"followSpeed",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),k=e(D.prototype,"xRotationRange",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new c(5,70)}}),Q=e(D.prototype,"_targetRadius",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),e(D.prototype,"radius",[z],Object.getOwnPropertyDescriptor(D.prototype,"radius"),D.prototype),N=e(D.prototype,"_target",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e(D.prototype,"target",[O],Object.getOwnPropertyDescriptor(D.prototype,"target"),D.prototype),V=e(D.prototype,"_startRotation",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new r}}),e(D.prototype,"targetRotation",[E],Object.getOwnPropertyDescriptor(D.prototype,"targetRotation"),D.prototype),B=e(D.prototype,"followTargetRotationY",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=D))||v)||v));o._RF.pop()}}}));
  120. System.register("chunks:///_virtual/PhysicsUtil.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"c1584nuvI9HtJ5IHcmFEBzR","PhysicsUtil",void 0);class s{get value(){return this._value}get name(){return this._name}get mask(){return 1<<this._value}constructor(e,t){this._value=void 0,this._name=void 0,this._value=e,this._name=t}}e("GroupItem",s);class a{static setNodeLayer(e,t){t.layer=e.mask,t.children.forEach((t=>{t.layer=e.mask,a.setNodeLayer(e,t)}))}}e("PhysicsUtil",a),a.DEFAULT=new s(0,"DEFAULT"),a.GAME_OBJECT_SELECT=new s(1,"GAME_OBJECT_SELECT"),a.GAME_OWNER=new s(2,"GAME_OWNER"),t._RF.pop()}}}));
  121. System.register("chunks:///_virtual/PlatformUtil.ts",["cc"],(function(t){var e,r,o;return{setters:[function(t){e=t.cclegacy,r=t.sys,o=t.native}],execute:function(){e._RF.push({},"c08229jnmdPP5vR721N6GG9","PlatformUtil",void 0);t("PlatformUtil",class{getNetworkType(){return r.getNetworkType()}getBatteryLevel(){return r.getBatteryLevel()}openURL(t){r.openURL(t)}copyText(t){o.copyTextToClipboard(t)}}),e._RF.pop()}}}));
  122. System.register("chunks:///_virtual/Priority.ts",["cc","./BranchNode.ts"],(function(s){var t,c;return{setters:[function(s){t=s.cclegacy},function(s){c=s.BranchNode}],execute:function(){t._RF.push({},"f7555DSpj9LbYpRDi8/UKdN","Priority",void 0);s("Priority",class extends c{success(){super.success(),this._control.success()}fail(){super.fail(),this._actualTask+=1,this._actualTask<this.children.length?this._run(this._blackboard):this._control.fail()}}),t._RF.pop()}}}));
  123. System.register("chunks:///_virtual/RandomManager.ts",["cc"],(function(t){var n;return{setters:[function(t){n=t.cclegacy}],execute:function(){n._RF.push({},"3e09eJBwfZBsLPqFszZLvMS","RandomManager",void 0);class e{constructor(){this.random=null}static get instance(){return null==this._instance&&(this._instance=new e,this._instance.setRandom(Math.random)),this._instance}setRandom(t){this.random=t}getRandom(){return this.random()}getRandomFloat(t=0,n=1){return this.getRandom()*(n-t)+t}getRandomInt(t,n,e=2){switch(t=Math.ceil(t),n=Math.floor(n),e){case 1:return Math.floor(this.getRandom()*(n-t))+t;case 2:return Math.floor(this.getRandom()*(n-t+1))+t;case 3:return Math.floor(this.getRandom()*(n-t-1))+t+1}return 0}getRandomByMinMaxList(t,n,e){var a=[];for(let s=0;s<e;s++)a.push(this.getRandomInt(t,n));return a}getRandomByObjectList(t,n){var e=t.slice(),a=[];for(let t=0;t<n;t++){let t=this.getRandomInt(0,e.length,1);a.push(e.splice(t,1)[0])}return a}getRandomBySumList(t,n){let e=n,a=0;const s=[];for(let n=0;n<t;n++)a=this.getRandomInt(0,e,3),n==t-1?a=e:e-=a,s.push(a);return s}}t("RandomManager",e),e._instance=void 0,n._RF.pop()}}}));
  124. System.register("chunks:///_virtual/RegexUtil.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"dec9bVPigFCmKy5NVk+0y7h","RegexUtil",void 0);e("RegexUtil",class{static isDoubleWord(e){return/[^\x00-\xff]/.test(e)}}),t._RF.pop()}}}));
  125. System.register("chunks:///_virtual/ResLoader.ts",["cc"],(function(e){var s,r,t,l,a,n,o;return{setters:[function(e){s=e.cclegacy,r=e.assetManager,t=e.error,l=e.warn,a=e.Asset,n=e.js,o=e.resources}],execute:function(){s._RF.push({},"1a2e4jFffpHrYjrpxbnC760","ResLoader",void 0);class d{constructor(){this.defaultBundleName="resources",this.cdn=!1,this.bundles=new Map}get maxConcurrency(){return r.downloader.maxConcurrency}set maxConcurrency(e){r.downloader.maxConcurrency=e}get maxRequestsPerFrame(){return r.downloader.maxRequestsPerFrame}set maxRequestsPerFrame(e){r.downloader.maxRequestsPerFrame=e}get maxRetryCount(){return r.downloader.maxRetryCount}set maxRetryCount(e){r.downloader.maxRetryCount=e}get retryInterval(){return r.downloader.retryInterval}set retryInterval(e){r.downloader.retryInterval=e}init(e){this.cdn=e.enable;for(let s in e.packages)this.bundles.set(s,e.packages[s])}loadRemote(e,...s){let t=null,l=null;2==s.length?(t=s[0],l=s[1]):l=s[0],r.loadRemote(e,t,l)}loadBundle(e,s){return new Promise(((l,a)=>{r.loadBundle(e,{version:s},((e,s)=>{if(e)return t(e);l(s)}))}))}removeBundle(e){let s=r.bundles.get(e);s&&(s.releaseAll(),r.removeBundle(s))}preload(e,s,r,t,l){let a=null;"string"==typeof s||s instanceof Array?(a=this.parseLoadResArgs(s,r,t,l),a.bundle=e):(a=this.parseLoadResArgs(e,s,r,t),a.bundle=this.defaultBundleName),a.preload=!0,this.loadByArgs(a)}preloadAsync(e,s,r){return new Promise(((t,a)=>{this.preload(e,s,r,((e,s)=>{e&&l(e.message),t(s)}))}))}preloadDir(e,s,r,t,l){let a=null;"string"==typeof s?(a=this.parseLoadResArgs(s,r,t,l),a.bundle=e):(a=this.parseLoadResArgs(e,s,r,t),a.bundle=this.defaultBundleName),a.dir=a.paths,a.preload=!0,this.loadByArgs(a)}load(e,s,r,t,l){let a=null;"string"==typeof s||s instanceof Array?(a=this.parseLoadResArgs(s,r,t,l),a.bundle=e):(a=this.parseLoadResArgs(e,s,r,t),a.bundle=this.defaultBundleName),this.loadByArgs(a)}loadAsync(e,s,r){return new Promise(((t,a)=>{this.load(e,s,r,((e,s)=>{e&&l(e.message),t(s)}))}))}loadDir(e,s,r,t,l){let a=null;"string"==typeof s?(a=this.parseLoadResArgs(s,r,t,l),a.bundle=e):(a=this.parseLoadResArgs(e,s,r,t),a.bundle=this.defaultBundleName),a.dir=a.paths,this.loadByArgs(a)}release(e,s=this.defaultBundleName){const t=r.getBundle(s);if(t){const s=t.get(e);s&&this.releasePrefabtDepsRecursively(s)}}releaseDir(e,s=this.defaultBundleName){const t=r.getBundle(s);if(t){var l=t.getDirWithPath(e);l&&l.map((e=>{this.releasePrefabtDepsRecursively(e.uuid)})),""==e&&"resources"!=s&&r.removeBundle(t)}}releasePrefabtDepsRecursively(e){if(e instanceof a)e.decRef();else{const s=r.assets.get(e);s&&s.decRef()}}get(e,s,t=this.defaultBundleName){return r.getBundle(t).get(e,s)}parseLoadResArgs(e,s,r,t){let l=e,o=s,d=r,u=t;if(void 0===t){const e=n.isChildClassOf(s,a);r?(u=r,e&&(d=null)):void 0!==r||e||(u=s,d=null,o=null),void 0===r||e||(d=s,o=null)}return{paths:l,type:o,onProgress:d,onComplete:u}}loadByBundleAndArgs(e,s){s.dir?s.preload?e.preloadDir(s.paths,s.type,s.onProgress,s.onComplete):e.loadDir(s.paths,s.type,s.onProgress,s.onComplete):s.preload?e.preload(s.paths,s.type,s.onProgress,s.onComplete):e.load(s.paths,s.type,s.onProgress,s.onComplete)}async loadByArgs(e){if(e.bundle){let s=r.bundles.get(e.bundle);if(s)this.loadByBundleAndArgs(s,e);else{const r=this.cdn?this.bundles.get(e.bundle):"";s=await this.loadBundle(e.bundle,r),s&&this.loadByBundleAndArgs(s,e)}}else this.loadByBundleAndArgs(o,e)}dump(){r.assets.forEach(((e,s)=>{console.log(r.assets.get(s))})),console.log(`当前资源总数:${r.assets.count}`)}}e("ResLoader",d);e("resLoader",new d);s._RF.pop()}}}));
  126. System.register("chunks:///_virtual/Root.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GameConfig.ts","./GameQueryConfig.ts","./Oops.ts","./AudioManager.ts","./EventMessage.ts","./MessageManager.ts","./ResLoader.ts","./StorageManager.ts","./StorageSecuritySimple.ts","./TimerManager.ts","./GameManager.ts","./LayerManager.ts"],(function(e){var t,i,n,s,a,o,r,u,g,c,l,m,p,d,f,h,E,y,S,M,v,w,b,A,G;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,s=e.Node,a=e._decorator,o=e.Component,r=e.director,u=e.JsonAsset,g=e.game,c=e.Game,l=e.sys,m=e.screen},function(e){p=e.GameConfig},function(e){d=e.GameQueryConfig},function(e){f=e.version,h=e.oops},function(e){E=e.AudioManager},function(e){y=e.EventMessage},function(e){S=e.message},function(e){M=e.resLoader},function(e){v=e.StorageManager},function(e){w=e.StorageSecuritySimple},function(e){b=e.TimerManager},function(e){A=e.GameManager},function(e){G=e.LayerManager}],execute:function(){var C,R,_,L,N;n._RF.push({},"90b9cOmlmBCnpCpEpgvdrQr","Root",void 0);const{property:O}=a;let H=!1;e("Root",(C=O({type:s,tooltip:"游戏层"}),R=O({type:s,tooltip:"界面层"}),L=t((_=class extends o{constructor(...e){super(...e),i(this,"game",L,this),i(this,"gui",N,this),this.persist=null}onLoad(){H||(H=!0,console.log(`Oops Framework v${f}`),this.enabled=!1,this.iniStart(),this.loadConfig().then())}async loadConfig(){this.persist=new s("OopsFrameworkPersistNode"),r.addPersistRootNode(this.persist),h.res=M;const e="config",t=await h.res.loadAsync(e,u);t?(h.config.query=new d,h.config.game=new p(t),h.res.defaultBundleName=h.config.game.bundleDefault,h.res.init(h.config.game.data.bundle),h.storage=new v,h.storage.init(new w),h.message=S,h.audio=this.persist.addComponent(E),h.audio.load(),h.timer=this.persist.addComponent(b),h.game=new A(this.game),h.gui=new G,h.gui.mobileSafeArea=h.config.game.mobileSafeArea,h.gui.initLayer(this.gui),h.http.server=h.config.game.httpServer,h.http.timeout=h.config.game.httpTimeout,g.frameRate=h.config.game.frameRate,this.enabled=!0,this.init(),this.run(),h.res.release(e)):this.loadConfig().then()}update(e){h.ecs.execute(e)}iniStart(){}initGui(){}initEcsSystem(){}run(){}init(){this.initGui(),this.initEcsSystem(),h.ecs.init(),g.on(c.EVENT_SHOW,this.onShow,this),g.on(c.EVENT_HIDE,this.onHide,this),l.isMobile||(m.on("window-resize",(()=>{h.message.dispatchEvent(y.GAME_RESIZE)}),this),m.on("fullscreen-change",(()=>{h.message.dispatchEvent(y.GAME_FULL_SCREEN)}),this)),m.on("orientation-change",(()=>{h.message.dispatchEvent(y.GAME_ORIENTATION)}),this)}onShow(){h.timer.load(),h.audio.resumeAll(),r.resume(),g.resume(),h.message.dispatchEvent(y.GAME_SHOW)}onHide(){h.timer.save(),h.audio.pauseAll(),r.pause(),g.pause(),h.message.dispatchEvent(y.GAME_HIDE)}}).prototype,"game",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=t(_.prototype,"gui",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_));n._RF.pop()}}}));
  127. System.register("chunks:///_virtual/RotateUtil.ts",["cc","./Vec3Util.ts"],(function(t){var o,n,e,r,i;return{setters:[function(t){o=t.cclegacy,n=t.Quat,e=t.Vec3,r=t.toRadian},function(t){i=t.Vec3Util}],execute:function(){o._RF.push({},"103324kr75Hi5d7RZCcRt3P","RotateUtil",void 0);t("RotateUtil",class{static rotateAround(t,o,e){const r=new n;n.rotateAround(r,t.getRotation(),o.normalize(),e),t.setRotation(r)}static rotateAroundTarget(t,o,r,i){const a=t.worldPosition,s=o.worldPosition,c=new n,l=new e;n.fromAxisAngle(c,r,i),e.subtract(l,s,a),e.transformQuat(l,l,c),e.add(l,a,l),o.setWorldPosition(l),n.rotateAround(c,o.worldRotation,r,i),n.normalize(c,c),o.setWorldRotation(c)}static circularEdgePosition(t,o,a){const s=i.z.multiplyScalar(o),c=i.sub(s,t),l=new e,u=new n;return n.fromAxisAngle(u,e.UP,r(a)),e.transformQuat(l,c,u),e.add(l,t,l),l}}),o._RF.pop()}}}));
  128. System.register("chunks:///_virtual/RtToModel.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,i,o,n,s,a,l,c,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.Camera,n=e.MeshRenderer,s=e._decorator,a=e.Component,l=e.RenderTexture,c=e.view,u=e.gfx}],execute:function(){var h,d,p,m,f,g,y;i._RF.push({},"dbd7dMQYutDs7I7uj+3zIiU","RtToModel",void 0);const{ccclass:b,property:w}=s;e("RtToModel",(h=b("RtToModel"),d=w(o),p=w(n),h((g=t((f=class extends a{constructor(...e){super(...e),r(this,"camara",g,this),r(this,"model",y,this),this.rt=new l}start(){const e=c.getVisibleSize(),t=new u.ColorAttachment,r=new u.DepthStencilAttachment,i=new u.RenderPassInfo([t],r);this.rt.reset({width:e.width,height:e.height,passInfo:i}),this.camara.targetTexture=this.rt;this.model.material.setProperty("mainTexture",this.rt)}onDestroy(){this.rt.destroy()}}).prototype,"camara",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(f.prototype,"model",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=f))||m));i._RF.pop()}}}));
  129. System.register("chunks:///_virtual/RtToSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,o,r,n,s,h,p,a,c,u,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){o=t.cclegacy,r=t.Camera,n=t.Sprite,s=t.Node,h=t._decorator,p=t.Component,a=t.RenderTexture,c=t.UITransform,u=t.gfx,l=t.SpriteFrame}],execute:function(){var T,d,f,m,y,E,g,b,v,C,R;o._RF.push({},"f608cdDWBNEKLILVNBcQYvf","RtToSprite",void 0);const{ccclass:S,property:_}=h;t("RtToSprite",(T=S("RtToSprite"),d=_({type:r,tooltip:"渲染模型的三维摄像机"}),f=_({type:n,tooltip:"显示模型的二维精灵组件"}),m=_({tooltip:"是否触摸控制旋转"}),y=_({type:s,tooltip:"三维模型",visible:function(){return!0===this.rotation}}),T((b=e((g=class extends p{constructor(...t){super(...t),i(this,"camera",b,this),i(this,"sprite",v,this),i(this,"rotation",C,this),i(this,"model",R,this),this.rt=new a,this.touched=!1}start(){let t=this.sprite.getComponent(c);this.refreshRenderTexture(t.width,t.height),this.rotation&&(this.sprite.node.on(s.EventType.TOUCH_START,this.onTouchStart,this),this.sprite.node.on(s.EventType.TOUCH_MOVE,this.onTouchMove,this),this.sprite.node.on(s.EventType.TOUCH_END,this.onTouchEnd,this),this.sprite.node.on(s.EventType.TOUCH_CANCEL,this.onTouchEnd,this))}onTouchStart(t){this.touched=!0}onTouchMove(t){if(this.touched){let e=this.model.eulerAngles,i=t.touch.getDelta().x;e.y+=-i,this.model.eulerAngles=e}}onTouchEnd(t){this.touched=!1}refreshRenderTexture(t,e){const i=new u.ColorAttachment,o=new u.DepthStencilAttachment,r=new u.RenderPassInfo([i],o);this.rt.reset({width:t,height:e,passInfo:r});let n=this.sprite.spriteFrame,s=new l;s.reset({originalSize:n.originalSize,rect:n.rect,offset:n.offset,isRotate:n.rotated,borderTop:n.insetTop,borderLeft:n.insetLeft,borderBottom:n.insetBottom,borderRight:n.insetRight}),this.camera.targetTexture=this.rt,s.texture=this.rt,this.sprite.spriteFrame=s}onDestroy(){this.rotation&&(this.sprite.node.off(s.EventType.TOUCH_START,this.onTouchStart,this),this.sprite.node.off(s.EventType.TOUCH_MOVE,this.onTouchMove,this),this.sprite.node.off(s.EventType.TOUCH_END,this.onTouchEnd,this),this.sprite.node.off(s.EventType.TOUCH_CANCEL,this.onTouchEnd,this)),this.rt.destroy()}}).prototype,"camera",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(g.prototype,"sprite",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(g.prototype,"rotation",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=e(g.prototype,"model",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=g))||E));o._RF.pop()}}}));
  130. System.register("chunks:///_virtual/SeedRandom.ts",["cc","./RandomManager.ts"],(function(t){var n,s;return{setters:[function(t){n=t.cclegacy},function(t){s=t.RandomManager}],execute:function(){n._RF.push({},"9b02bnNwwZEWq9Ft59BRCIB","SeedRandom",void 0);t("SeedRandom",class{get random(){return this.rm}constructor(t){this.rm=void 0,this.sr=void 0,this.sr=new Math.seedrandom(t),this.rm=new s,this.rm.setRandom(this.sr)}destroy(){this.rm=null,this.sr=null}}),n._RF.pop()}}}));
  131. System.register("chunks:///_virtual/Selector.ts",["cc","./BranchNode.ts"],(function(s){var t,c;return{setters:[function(s){t=s.cclegacy},function(s){c=s.BranchNode}],execute:function(){t._RF.push({},"90470XqT/FGHo/PRQktLcYy","Selector",void 0);s("Selector",class extends c{success(){super.success(),this._control.success()}fail(){super.fail(),this._actualTask+=1,this._actualTask<this.children.length?this._run(this._blackboard):this._control.fail()}_run(s){this._nodeRunning?this._nodeRunning.run(this._blackboard):super._run()}}),t._RF.pop()}}}));
  132. System.register("chunks:///_virtual/Sequence.ts",["cc","./BranchNode.ts"],(function(s){var e,n;return{setters:[function(s){e=s.cclegacy},function(s){n=s.BranchNode}],execute:function(){e._RF.push({},"1ef80bgYZBPXqCDIpzHpbBJ","Sequence",void 0);s("Sequence",class extends n{constructor(s){super(s)}success(){super.success(),this._actualTask+=1,this._actualTask<this.children.length?this._run(this._blackboard):this._control.success()}fail(){super.fail(),this._control.fail()}_run(s){this._nodeRunning?this._nodeRunning.run(this._blackboard):super._run()}}),e._RF.pop()}}}));
  133. System.register("chunks:///_virtual/SingletonModuleComp.ts",["cc","./ECS.ts"],(function(e){var t,n;return{setters:[function(e){t=e.cclegacy},function(e){n=e.ecs}],execute:function(){var o;t._RF.push({},"17a56vOVQFMMarANxr6JvP7","SingletonModuleComp",void 0);let i=e("SingletonModuleComp",n.register("SingletonModule")(o=class extends n.Comp{constructor(...e){super(...e),this.initialize=null,this.account=null}reset(){}})||o);e("smc",n.getSingleton(i));t._RF.pop()}}}));
  134. System.register("chunks:///_virtual/SpineFinishedRelease.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts"],(function(e){var t,s,i,n,o,r,a;return{setters:[function(e){t=e.applyDecoratedDescriptor,s=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e._decorator,o=e.Component,r=e.sp},function(e){a=e.oops}],execute:function(){var p,h,l;i._RF.push({},"9589eKB/RZKXpxoYhz5SyC7","SpineFinishedRelease",void 0);const{ccclass:c,property:u}=n;e("SpineFinishedRelease",c("SpineFinishedRelease")((l=t((h=class extends o{constructor(...e){super(...e),s(this,"isDestroy",l,this),this.spine=void 0,this.resPath=null}setResPath(e){this.resPath=e}onLoad(){this.spine=this.getComponent(r.Skeleton),this.spine.setCompleteListener(this.onSpineComplete.bind(this)),this.resPath?a.res.load(this.resPath,r.SkeletonData,((e,t)=>{e?console.error(`加载【${this.resPath}】的 SPINE 资源不存在`):(this.spine.skeletonData=t,this.spine.setAnimation(0,"animation",!1))})):this.spine.setAnimation(0,"animation",!1)}onSpineComplete(){this.isDestroy?this.node.destroy():this.node.removeFromParent()}}).prototype,"isDestroy",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),p=h))||p);i._RF.pop()}}}));
  135. System.register("chunks:///_virtual/StorageManager.ts",["cc","./env"],(function(e){var t,r,s;return{setters:[function(e){t=e.cclegacy,r=e.sys},function(e){s=e.PREVIEW}],execute:function(){t._RF.push({},"ed226gLF85Oyr+WhA9TJZLX","StorageManager",void 0);e("StorageManager",class{constructor(){this.id=null,this.iss=null}get encrypted(){return!s}init(e){this.iss=e}setUser(e){this.id=e}set(e,t){let s=this.getKey(e);if(null!=e){if(this.encrypted&&(s=this.iss.encryptKey(s)),null==t)return console.warn("存储的值为空,则直接移除该存储"),void this.remove(e);if("function"!=typeof t){if("object"==typeof t)try{t=JSON.stringify(t)}catch(e){return void console.error(`解析失败,str = ${t}`)}else"number"==typeof t?t+="":"boolean"==typeof t&&(t=String(t));this.encrypted&&(t=this.iss.encrypt(t)),r.localStorage.setItem(s,t)}else console.error("储存的值不能为方法")}else console.error("存储的key不能为空")}get(e,t=""){if(null==e)return console.error("存储的key不能为空"),null;e=this.getKey(e),this.encrypted&&(e=this.iss.encryptKey(e));let s=r.localStorage.getItem(e);return null!=s&&""!==s&&this.encrypted&&(s=this.iss.decrypt(s)),null===s?t:s}getNumber(e,t=0){const r=this.get(e);return"0"==r?Number(r):Number(r)||t}getBoolean(e){return"true"===this.get(e).toLowerCase()}getJson(e,t){const r=this.get(e);return r&&JSON.parse(r)||t}remove(e){if(null==e)return void console.error("存储的key不能为空");let t=this.getKey(e);this.encrypted&&(t=this.iss.encryptKey(t)),r.localStorage.removeItem(t)}clear(){r.localStorage.clear()}getKey(e){return null==this.id||""==this.id?e:`${this.id}_${e}`}}),t._RF.pop()}}}));
  136. System.register("chunks:///_virtual/StorageSecurityCrypto.ts",["cc"],(function(){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"fbbbdioMCNOmI7KMEU46FfN","StorageSecurityCrypto",void 0),t._RF.pop()}}}));
  137. System.register("chunks:///_virtual/StorageSecuritySimple.ts",["cc","./Oops.ts"],(function(e){var t,r;return{setters:[function(e){t=e.cclegacy},function(e){r=e.oops}],execute:function(){t._RF.push({},"386e3+fu+RJB5VSgow0kwS4","StorageSecuritySimple",void 0);e("StorageSecuritySimple",class{constructor(){this.secretkey=null;const e=r.config.game.localDataKey,t=r.config.game.localDataIv;this.secretkey=e+t}encrypt(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e.charCodeAt(r)^this.secretkey.charCodeAt(r%this.secretkey.length));return t}decrypt(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e.charCodeAt(r)^this.secretkey.charCodeAt(r%this.secretkey.length));return t}encryptKey(e){return this.encrypt(e)}}),t._RF.pop()}}}));
  138. System.register("chunks:///_virtual/StringFormat.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"85fe8Gc6h5Ava+JsdbBs8cR","StringFormat",void 0);t("StringFormatFunction",new class{deal(t,e){if(""===e)return t;let r=(e=e.toLowerCase().trim()).match(/^[a-z|A-Z]+/gi),i=e.match(/\d+$/gi),n="",s=0,a="";if(r&&(n=r[0]),i&&(s=parseInt(i[0])),"number"==typeof t)switch(n){case"int":a=this.int(t);break;case"fix":a=this.fix(t,s);break;case"kmbt":a=this.KMBT(t);break;case"per":a=this.per(t,s);break;case"sep":a=this.sep(t)}else{switch(n){case"limit":a=this.limit(t,s)}a=t}return a}sep(t){return Math.round(t).toString().replace(new RegExp("(\\d)(?=(\\d{3})+$)","ig"),"$1,")}time_m(t){}time_s(t){}time_ms(t){}timeStamp(t){return new Date(t).toString()}per(t,e){return Math.round(100*t).toFixed(e)}int(t){return Math.round(t)}fix(t,e){return t.toFixed(e)}limit(t,e){return t.substring(0,e)}KMBT(t,e="en"){return this.compressUnit(t,[1e3,1e6,1e9,1e12],["","K","M","B","T"],2)}compressUnit(t,e,r,i=2){let n,s=e,a=r,c="";for(n=0;n<s.length;n++){if(t<s[n]){c=n>0?(t/s[n-1]).toFixed(i):t.toFixed(0);break}}return c+a[n]}});e._RF.pop()}}}));
  139. System.register("chunks:///_virtual/StringUtil.ts",["cc"],(function(t){var r;return{setters:[function(t){r=t.cclegacy}],execute:function(){r._RF.push({},"aa8435LSBtAR5HPsje6IJ2w","StringUtil",void 0);t("StringUtil",class{static guid(){let t="";for(let r=1;r<=32;r++){t+=Math.floor(16*Math.random()).toString(16),8!=r&&12!=r&&16!=r&&20!=r||(t+="-")}return t}static numberTotPermil(t){return t.toLocaleString()}static numberToThousand(t,r=2){const e=1e3,n=["","K","M","G"];if(t<e)return t.toString();{const s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toFixed(r)+n[s]}}static numberToTenThousand(t,r=2){const e=1e4,n=["","万","亿","万亿"];if(t<e)return t.toString();{const s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toFixed(r)+n[s]}}static stringToArray1(t){return""==t?[]:t.split(",")}static stringToArray2(t){return""==t?[]:t.split("|")}static stringToArray3(t){return""==t?[]:t.split(":")}static stringToArray4(t){return""==t?[]:t.split(";")}static sub(t,r,e=!1){const n=/[^\x00-\xff]/g;if(t.replace(n,"mm").length<=r)return t;for(let s=Math.floor(r/2);s<t.length;s++)if(t.substr(0,s).replace(n,"mm").length>=r)return e?t.substr(0,s)+"...":t.substr(0,s);return t}static stringLen(t){let r=0,e=t.length,n=-1;for(let s=0;s<e;s++)n=t.charCodeAt(s),r+=n>=0&&n<=128?1:2;return r}static IsEmpty(t){return null==t||null==t||0==t.length}static substitute(t,...r){if(null==t)return"";let e,n=r.length;1==n&&r[0]instanceof Array?(e=r[0],n=e.length):e=r;for(let r=0;r<n;r++)t=t.replace(new RegExp("\\{"+r+"\\}","g"),e[r]);return t}}),r._RF.pop()}}}));
  140. System.register("chunks:///_virtual/TableLanguage.ts",["cc","./JsonUtil.ts"],(function(t){var a,e;return{setters:[function(t){a=t.cclegacy},function(t){e=t.JsonUtil}],execute:function(){a._RF.push({},"74f4fgFfZxHnqCfURfaciMV","TableLanguage",void 0);class n{constructor(){this.data=void 0,this.id=0}init(t){var a=e.get(n.TableName);this.data=a[t],this.id=t}get zh(){return this.data.zh}get en(){return this.data.en}}t("TableLanguage",n),n.TableName="Language",a._RF.pop()}}}));
  141. System.register("chunks:///_virtual/TablePromptWindow.ts",["cc","./JsonUtil.ts"],(function(t){var i,e;return{setters:[function(t){i=t.cclegacy},function(t){e=t.JsonUtil}],execute:function(){i._RF.push({},"1e3d7uann5MRokAL2wULm9y","TablePromptWindow",void 0);class a{constructor(){this.data=void 0,this.id=0,this.id1=0,this.id2=0}init(t,i,r){var s=e.get(a.TableName);this.data=s[t][i][r],this.id=t,this.id1=i,this.id2=r}get title(){return this.data.title}get describe(){return this.data.describe}get array(){return this.data.array}get hp(){return this.data.hp}}t("TablePromptWindow",a),a.TableName="PromptWindow",i._RF.pop()}}}));
  142. System.register("chunks:///_virtual/Task.ts",["cc","./BTreeNode.ts"],(function(e){var s,t;return{setters:[function(e){s=e.cclegacy},function(e){t=e.BTreeNode}],execute:function(){s._RF.push({},"95087QhEU1G1LWnM2D7haTQ","Task",void 0);e("Task",class extends t{run(e){}}),s._RF.pop()}}}));
  143. System.register("chunks:///_virtual/Timer.ts",["cc"],(function(e){var s;return{setters:[function(e){s=e.cclegacy}],execute:function(){s._RF.push({},"6021fct1uhJsImEuhdFWC0f","Timer",void 0);e("Timer",class{get elapsedTime(){return this._elapsedTime}get step(){return this._step}set step(e){this._step=e,this._elapsedTime=0}get progress(){return this._elapsedTime/this._step}constructor(e=0){this.callback=null,this._elapsedTime=0,this._step=-1,this.step=e}update(e){return!(this.step<=0)&&(this._elapsedTime+=e,this._elapsedTime>=this._step&&(this._elapsedTime-=this._step,null==(s=this.callback)||s.call(this),!0));var s}reset(){this._elapsedTime=0}stop(){this._elapsedTime=0,this.step=-1}}),s._RF.pop()}}}));
  144. System.register("chunks:///_virtual/TimerManager.ts",["cc","./StringUtil.ts","./Timer.ts"],(function(e){var t,i,s,r,n;return{setters:[function(e){t=e.cclegacy,i=e.Component,s=e.game},function(e){r=e.StringUtil},function(e){n=e.Timer}],execute:function(){t._RF.push({},"73600VLsIBLOKhOhd7td4P8","TimerManager",void 0);e("TimerManager",class extends i{constructor(...e){super(...e),this.times={},this.date_s=new Date,this.date_s_start=new Date,this.polymeric_s=0,this.date_c=new Date}update(e){for(let t in this.times){let i=this.times[t];i.timer.update(e)&&i.object[i.field]>0&&(i.object[i.field]--,0==i.object[i.field]?this.onTimerComplete(i):i.onSecond&&i.onSecond.call(i.object))}}onTimerComplete(e){e.onComplete&&e.onComplete.call(e.object),e.event&&this.node.dispatchEvent(e.event),delete this.times[e.id]}register(e,t,i,s){const m=new n;m.step=1;let o={};return o.id=r.guid(),o.timer=m,o.object=e,o.field=t,o.onSecond=i,o.onComplete=s,this.times[o.id]=o,o.id}unRegister(e){this.times[e]&&delete this.times[e]}setServerTime(e){this.polymeric_s=this.getTime(),this.date_s_start.setTime(e)}getServerTime(){return this.date_s_start.getTime()+this.getTime()-this.polymeric_s}getServerDate(){return this.date_s.setTime(this.getServerTime()),this.date_s}getClientTime(){return Date.now()}getClientDate(){return this.date_c.setTime(this.getClientTime()),this.date_c}getTime(){return s.totalTime}save(){for(let e in this.times)this.times[e].startTime=this.getTime()}load(){for(let e in this.times){let t=Math.floor((this.getTime()-(this.times[e].startTime||this.getTime()))/1e3),i=this.times[e];i.object[i.field]=i.object[i.field]-t,i.object[i.field]<=0?(i.object[i.field]=0,this.onTimerComplete(i)):this.times[e].startTime=null}}}),t._RF.pop()}}}));
  145. System.register("chunks:///_virtual/TimeUtils.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"c2070jsq0FDcaTrFhyA8yzm","TimeUtils",void 0);e("TimeUtil",class{static daysBetween(e,t){null==t&&(t=+new Date);let a=new Date(e).toLocaleDateString(),s=new Date(t).toLocaleDateString(),n=new Date(a).getTime(),i=new Date(s).getTime();return Math.abs(n-i)/864e5}static secsBetween(e,t){let a=Math.abs(t-e)/1e3;return a=Math.floor(a)+1,a}static async sleep(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}}),t._RF.pop()}}}));
  146. System.register("chunks:///_virtual/TipsManager.ts",["cc","./Oops.ts","./GameUIConfig.ts"],(function(e){var o,n,t,c,r;return{setters:[function(e){o=e.cclegacy,n=e.tween,t=e.Vec3},function(e){c=e.oops},function(e){r=e.UIID}],execute:function(){o._RF.push({},"9748eriEcJOp6OSdnZ/qhs5","TipsManager",void 0);var m=e("tips",new class{alert(e,o,n,t){let i={title:n||"common_prompt_title",content:e,okWord:t||"common_prompt_ok",okFunc:o,needCancel:!1};c.gui.open(r.Alert,i,m.getPopCommonEffect())}confirm(e,o,n,t,i){let l={title:t||"common_prompt_title",content:e,okWord:i||"common_prompt_ok",cancelWord:"common_prompt_cancal",okFunc:o,cancelFunc:n,needCancel:!0};c.gui.open(r.Confirm,l,m.getPopCommonEffect())}getPopCommonEffect(e){let o={onAdded:(e,o)=>{e.setScale(.1,.1,.1),n(e).to(.2,{scale:new t(1,1,1)}).start()},onBeforeRemove:(e,o)=>{n(e).to(.2,{scale:new t(.1,.1,.1)}).call(o).start()}};if(e){if(e&&e.onAdded){let n=e.onAdded;e.onAdded=(e,t)=>{n(e,t),o.onAdded(e,t)}}if(e&&e.onBeforeRemove){let n=e.onBeforeRemove;e.onBeforeRemove=(e,t)=>{n(e,t),o.onBeforeRemove(e,t)}}return e}return o}});o._RF.pop()}}}));
  147. System.register("chunks:///_virtual/UIButton.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Oops.ts"],(function(t){var e,o,i,n,r,u,c,s;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){i=t.cclegacy,n=t.AudioClip,r=t._decorator,u=t.Button,c=t.game},function(t){s=t.oops}],execute:function(){var a,l,p,f,h,d,m,y,_,E;i._RF.push({},"86cefAWukVE77lEwgfFdYeD","UIButton",void 0);const{ccclass:b,property:g,menu:v}=r;t("default",(a=b("UIButton"),l=v("OopsFramework/Button/UIButton (通用按钮)"),p=g({tooltip:"每次触发间隔"}),f=g({tooltip:"是否只触发一次"}),h=g({tooltip:"触摸音效",type:n}),a(d=l((y=e((m=class extends u{constructor(...t){super(...t),o(this,"interval",y,this),o(this,"once",_,this),o(this,"effect",E,this),this._touchCount=0,this._touchEndTime=0}_onTouchEnded(t){if(this.once){if(this._touchCount>0)return void(t.propagationStopped=!0);this._touchCount++}this._touchEndTime&&c.totalTime-this._touchEndTime<this.interval?t.propagationStopped=!0:(this._touchEndTime=c.totalTime,super._onTouchEnded(t),this.playEffect())}async playEffect(){this.effect&&s.audio.playEffect(this.effect)}}).prototype,"interval",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 500}}),_=e(m.prototype,"once",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=e(m.prototype,"effect",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=m))||d)||d));i._RF.pop()}}}));
  148. System.register("chunks:///_virtual/Vec3Util.ts",["cc","./MathUtil.ts"],(function(t){var e,r,n,a;return{setters:[function(t){e=t.cclegacy,r=t.Vec3,n=t.Mat4},function(t){a=t.MathUtil}],execute:function(){e._RF.push({},"38947ih8d5EQ7HG4buug+SR","Vec3Util",void 0);class c{static get x(){return new r(1,0,0)}static get y(){return new r(0,1,0)}static get z(){return new r(0,0,1)}static get left(){return new r(-1,0,0)}static get right(){return new r(1,0,0)}static get up(){return new r(0,1,0)}static get down(){return new r(0,-1,0)}static get forward(){return new r(0,0,1)}static get back(){return new r(0,0,-1)}static get one(){return new r(1,1,1)}static get zero(){return new r(0,0,0)}static progress(t,e,n){const c=new r;return c.x=a.progress(t.x,e.x,n),c.y=a.progress(t.y,e.y,n),c.z=a.progress(t.z,e.z,n),c}static add(t,e){const n=new r;return r.add(n,t,e),n}static sub(t,e){const n=new r;return r.subtract(n,t,e),n}static mul(t,e){const n=new r;return r.multiplyScalar(n,t,e),n}static div(t,e){const n=new r;return n.x=t.x/e,n.y=t.y/e,n.z=t.z/e,n}static equals(t,e){return t.x==e.x&&t.y==e.y&&t.z==e.z}static magnitude(t){return t.length()}static normalize(t){return new r(t.x,t.y,t.z).normalize()}static direction(t,e){const n=new r;return r.subtract(n,e,t),n.normalize()}static distance(t,e){return r.distance(t,e)}static lerp(t,e,r){return this.bezierOne(r,t,e)}static slerp(t,e,n){if(n<=0)return t;if(n>=1)return e;var a=this.rotateTo(t,e,r.angle(t,e)/Math.PI*180*n),c=e.length()*n+t.length()*(1-n);return a.normalize().multiplyScalar(c)}static rotateTo(t,e,a){if(0==r.angle(t,e))return e;const c=new r;r.cross(c,t,e),c.normalize();const i=a*Math.PI/180,l=new n;return l.rotate(i,c),new r(t.x*l.m00+t.y*l.m04+t.z*l.m08,t.x*l.m01+t.y*l.m05+t.z*l.m09,t.x*l.m02+t.y*l.m06+t.z*l.m10)}static bezierOne(t,e,r){t>1?t=1:t<0&&(t=0);var n=e.clone(),a=r.clone();return n.multiplyScalar(1-t).add(a.multiplyScalar(t))}static bezierTwo(t,e,n,a){t>1?t=1:t<0&&(t=0);const c=1-t,i=t*t,l=e.clone(),s=new r,u=n.clone(),o=a.clone();return s.add(l.multiplyScalar(c*c)),s.add(u.multiplyScalar(2*c*t)),s.add(o.multiplyScalar(i)),s}static bezierThree(t,e,r,n,a){t>1?t=1:t<0&&(t=0);const c=1-t,i=c*c,l=i*c,s=t*t,u=s*t,o=e.clone(),d=e.clone(),m=r.clone(),y=n.clone(),z=a.clone();return d.add(o.multiplyScalar(l)),d.add(m.multiplyScalar(3*i*t)),d.add(y.multiplyScalar(3*c*s)),d.add(z.multiplyScalar(u)),d}static dot(t,e){const r=t,n=e;return r.x*n.x+r.y*n.y+r.z*n.z}static cross(t,e){const n=new r(1,0,0),a=new r(0,1,0),c=new r(0,0,1),i=new r(t.x,t.y,t.z),l=new r(e.x,e.y,e.z),s=n.multiplyScalar(i.y*l.z-l.y*i.z),u=a.multiplyScalar(l.x*i.z-i.x*l.z),o=c.multiplyScalar(i.x*l.y-l.x*i.y);return s.add(u).add(o)}static angle(t,e){const r=this.dot(t.clone().normalize(),e.clone().normalize());return Math.acos(r)/Math.PI*180*Math.sign(r)}static dirAngle(t,e){const r=c.cross(t,e);return c.angle(t,e)*Math.sign(c.dot(r.normalize(),c.cross(e.normalize(),t.normalize())))}}t("Vec3Util",c),e._RF.pop()}}}));
  149. System.register("chunks:///_virtual/ViewModel.ts",["cc","./JsonOb.ts"],(function(t){var e,i,n;return{setters:[function(t){e=t.cclegacy,i=t.director},function(t){n=t.JsonOb}],execute:function(){e._RF.push({},"54f75k4X+RP0qaXOzrfZysL","ViewModel",void 0);const o="VC:";function r(t,e,i,n=""){let o=e.split(".");for(let r=0;r<o.length;r++){const s=o[r];if(s in t==!1){console.error("["+s+"] not find in "+n+"."+e);break}r==o.length-1?t[s]=i:t=t[s]}}function s(t,e,i,n=""){let o=e.split(".");for(let r=0;r<o.length;r++){const s=o[r];if(s in t==!1)return console.error("["+s+"] not find in "+n+"."+e),i;t=t[s]}return null==t&&(t=i),t}class a{constructor(t,e){this.$data=void 0,this._tag=null,this.active=!0,this.emitToRootPath=!1,new n(t,this._callback.bind(this)),this.$data=t,this._tag=e}_callback(t,e,n){if(1==this.active){let r=o+this._tag+"."+n.join(".");if(i.emit(r,t,e,[this._tag].concat(n)),this.emitToRootPath&&i.emit(o+this._tag,t,e,n),n.length>=2)for(let t=0;t<n.length-1;t++){n[t]}}}setValue(t,e){r(this.$data,t,e,this._tag)}getValue(t,e){return s(this.$data,t,e,this._tag)}}t("VM",new class{constructor(){this._mvs=new Map,this.setObjValue=r,this.getObjValue=s}add(t,e="global",i=!1){let n=new a(t,e),o=this._mvs.get(e);e.includes(".")?console.error("cant write . in tag:",e):o?console.error("already set VM tag:"+e):(n.emitToRootPath=i,this._mvs.set(e,n))}remove(t){this._mvs.delete(t)}get(t){return this._mvs.get(t)}addValue(t,e){let i=(t=t.trim()).split(".");i.length<2&&console.error("Cant find path:"+t);let n=this.get(i[0]);if(!n)return void console.error("Cant Set VM:"+i[0]);let o=i.slice(1).join(".");n.setValue(o,n.getValue(o)+e)}getValue(t,e){let i=(t=t.trim()).split(".");if(i.length<2)return void console.error("Get Value Cant find path:"+t);let n=this.get(i[0]);if(n)return n.getValue(i.slice(1).join("."),e);console.error("Cant Get VM:"+i[0])}setValue(t,e){let i=(t=t.trim()).split(".");if(i.length<2)return void console.error("Set Value Cant find path:"+t);let n=this.get(i[0]);n?n.setValue(i.slice(1).join("."),e):console.error("Cant Set VM:"+i[0])}bindPath(t,e,n,r){""!=(t=t.trim())?"*"!==t.split(".")[0]?i.on(o+t,e,n,r):console.error(t,"路径不合法,可能错误覆盖了 VMParent 的onLoad 方法, 或者父节点并未挂载 VMParent 相关的组件脚本"):console.error(n.node.name,"节点绑定的路径为空")}unbindPath(t,e,n){"*"!==(t=t.trim()).split(".")[0]?i.off(o+t,e,n):console.error(t,"路径不合法,可能错误覆盖了 VMParent 的onLoad 方法, 或者父节点并未挂载 VMParent 相关的组件脚本")}inactive(){this._mvs.forEach((t=>{t.active=!1}))}active(){this._mvs.forEach((t=>{t.active=!1}))}});e._RF.pop()}}}));
  150. System.register("chunks:///_virtual/ViewUtil.ts",["cc","./ResLoader.ts"],(function(e){var t,n,a,o,r,c,i,l,s;return{setters:[function(e){t=e.cclegacy,n=e.UITransform,a=e.v3,o=e.Size,r=e.Prefab,c=e.instantiate,i=e.Animation,l=e.AnimationClip},function(e){s=e.resLoader}],execute:function(){t._RF.push({},"f607cCjAEZHVKVZ/FyRs5bA","ViewUtil",void 0);class d{static nodeTreeInfoLite(e,t){let n=t||new Map,a=e.children;for(let e=0;e<a.length;e++){let t=a[e];t.name.indexOf(" ")<0&&n.set(t.name,t),d.nodeTreeInfoLite(t,n)}return n}static findNodes(e,t,n){let a=n||[],o=t.children;for(let t=0;t<o.length;t++){let n=o[t].name;e.test(n)&&a.push(o[t]),d.findNodes(e,o[t],a)}return a}static calculateASpaceToBSpacePos(e,t,a){const o=e.getComponent(n).convertToWorldSpaceAR(a);return t.getComponent(n).convertToNodeSpaceAR(o)}static calculateScreenPosToSpacePos(e,t){const o=e.getUILocation(),r=a(o.x,o.y);return t.getComponent(n).convertToNodeSpaceAR(r)}static uniformScale(e,t,n,a){const r=n/e,c=a/t;let i;return i=r<c?r:c,new o(Math.floor(e*i),Math.floor(t*i))}static createPrefabNode(e,t=s.defaultBundleName){const n=s.get(e,r,t);return n?c(n):null}static createPrefabNodeAsync(e,t=s.defaultBundleName){return new Promise((async(n,a)=>{const o=await s.loadAsync(t,e,r);o?n(c(o)):(console.error(`名为【${e}】的资源加载失败`),n(null))}))}static addNodeAnimation(e,t,n=!0,a=!1){if(!t||!t.isValid)return;let o=t.getComponent(i);null==o&&(o=t.addComponent(i));const r=s.get(e,l);if(r&&!(n&&o.getState(r.name)&&o.getState(r.name).isPlaying)){if(a)return o.defaultClip=r,void o.play();o.once(i.EventType.FINISHED,(()=>{o.defaultClip&&o.play()}),this),o.getState(r.name)||o.createState(r,r.name),o.play(r.name)}}}e("ViewUtil",d),t._RF.pop()}}}));
  151. System.register("chunks:///_virtual/VMBase.ts",["cc","./ViewModel.ts","./VMEnv.ts"],(function(t){var e,h,i,n,a,s;return{setters:[function(t){e=t.cclegacy,h=t.Component,i=t.log,n=t._decorator},function(t){a=t.VM},function(t){s=t.VMEnv}],execute:function(){var o;e._RF.push({},"2f6f36IvUdPO7xynnVTPgzb","VMBase",void 0);const{ccclass:r,help:l}=n;t("VMBase",r(o=l("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037631&doc_id=2873565")(o=class extends h{constructor(...t){super(...t),this.VM=a,this.watchPath="",this.templateMode=!1,this.watchPathArr=[],this.templateValueArr=[]}onLoad(){if(s.editor)return;let t=this.watchPath.split(".");for(let e=1;e<t.length;e++){if("*"==t[e]){let h=this.node.parent.children.findIndex((t=>t===this.node));h<=0&&(h=0),t[e]=h.toString();break}}this.watchPath=t.join(".");let e=this.watchPathArr;if(e.length>=1)for(let t=0;t<e.length;t++){let h=e[t].split(".");for(let t=1;t<h.length;t++){if("*"==h[t]){let e=this.node.parent.children.findIndex((t=>t===this.node));e<=0&&(e=0),h[t]=e.toString();break}}this.watchPathArr[t]=h.join(".")}""==this.watchPath&&""==this.watchPathArr.join("")&&i("可能未设置路径的节点:",this.node.parent.name+"."+this.node.name)}onEnable(){s.editor||(this.templateMode?this.setMultPathEvent(!0):""!=this.watchPath&&this.VM.bindPath(this.watchPath,this.onValueChanged,this),this.onValueInit())}onDisable(){s.editor||(this.templateMode?this.setMultPathEvent(!1):""!=this.watchPath&&this.VM.unbindPath(this.watchPath,this.onValueChanged,this))}setMultPathEvent(t=!0){if(s.editor)return;let e=this.watchPathArr;for(let h=0;h<e.length;h++){const i=e[h];t?this.VM.bindPath(i,this.onValueChanged,this):this.VM.unbindPath(i,this.onValueChanged,this)}}onValueInit(){}onValueChanged(t,e,h){}})||o)||o);e._RF.pop()}}}));
  152. System.register("chunks:///_virtual/VMCompsEdit.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMEnv.ts"],(function(e){var t,r,i,o,n,a,s,l,p,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,o=e.CCString,n=e.Enum,a=e.Node,s=e._decorator,l=e.Component,p=e.log},function(e){c=e.VMEnv}],execute:function(){var h,g,u,_,d,E,T,f,b,P,C,y,N,O,m,A,w,M,v,L,H,D,k;i._RF.push({},"2359eFXKF5HFYS74K7Y17/U","VMCompsEdit",void 0);const{ccclass:R,property:j,executeInEditMode:S,menu:V,help:z}=s;var F=function(e){return e[e.SEARCH_COMPONENT=0]="SEARCH_COMPONENT",e[e.ENABLE_COMPONENT=1]="ENABLE_COMPONENT",e[e.REPLACE_WATCH_PATH=2]="REPLACE_WATCH_PATH",e[e.DELETE_COMPONENT=3]="DELETE_COMPONENT",e}(F||{});e("default",(h=V("OopsFramework/Mvvm/Edit-Comps (快速组件操作)"),g=z("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037632&doc_id=2873565"),u=j({type:[o]}),_=j({type:n(F)}),d=j({tooltip:"勾选后,会自动查找 find list 中填写的组件",visible:function(){return this.actionType===F.SEARCH_COMPONENT}}),E=j({tooltip:"勾选后,会批量激活 find list 中填写的组件",visible:function(){return this.actionType===F.ENABLE_COMPONENT}}),T=j({tooltip:"勾选后,会批量关闭 find list 中填写的组件",visible:function(){return this.actionType===F.ENABLE_COMPONENT}}),f=j({tooltip:"允许删除节点的组件,确定需要移除请勾选,防止误操作",visible:function(){return this.actionType===F.DELETE_COMPONENT}}),b=j({tooltip:"勾选后,会批量删除 find list 中填写的组件",displayName:"[ X DELETE X ]",visible:function(){return this.allowDelete&&this.actionType===F.DELETE_COMPONENT}}),P=j({tooltip:"勾选后,会批量替换掉指定的路径",visible:function(){return this.actionType===F.REPLACE_WATCH_PATH}}),C=j({tooltip:"匹配的路径,匹配规则: 搜索开头为 game的路径",visible:function(){return this.actionType===F.REPLACE_WATCH_PATH}}),y=j({tooltip:"替换的路径,将匹配到的路径替换",visible:function(){return this.actionType===F.REPLACE_WATCH_PATH}}),N=j({tooltip:"是否搜集绑定VM组件的节点?",visible:function(){return this.actionType===F.SEARCH_COMPONENT}}),O=j({type:[a],readonly:!0,tooltip:"收集到绑定了VM组件相关的节点,可以自己跳转过去",visible:function(){return this.canCollectNodes&&this.actionType===F.SEARCH_COMPONENT}}),R(m=S(m=h(m=g((w=t((A=class extends l{constructor(...e){super(...e),r(this,"findList",w,this),r(this,"actionType",M,this),r(this,"allowDelete",v,this),r(this,"targetPath",L,this),r(this,"replacePath",H,this),r(this,"canCollectNodes",D,this),r(this,"collectNodes",k,this)}get findTrigger(){return!1}set findTrigger(e){this.setComponents(0)}get enableTrigger(){return!1}set enableTrigger(e){this.setComponents(1)}get disableTrigger(){return!1}set disableTrigger(e){this.setComponents(2)}get deleteTrigger(){return!1}set deleteTrigger(e){this.setComponents(3)}get replaceTrigger(){return!1}set replaceTrigger(e){this.setComponents(4)}onLoad(){if(c.editor)return;let e=this.getNodePath(this.node);console.error("you forget delete MVEditFinder,[path]",e)}setComponents(e){let t=this.findList,r="搜索到当前节点下面的组件";switch(e){case 0:r="搜索到当前节点下面的组件";break;case 1:r="激活以下节点的组件";break;case 2:r="关闭以下节点的组件";break;case 3:r="删除以下节点的组件";break;case 4:r="替换以下节点的路径"}p(r),p("______________________"),t.forEach((t=>{this.searchComponent(t,e)})),p("______________________")}searchComponent(e,t=0){this.collectNodes=[];let r=this.node.getComponentsInChildren(e);null==r||r.length<1||(p("["+e+"]:"),r.forEach((e=>{let r="";switch(t<=3&&(r=!0===e.templateMode?e.watchPathArr?":[Path:"+e.watchPathArr.join("|")+"]":"":e.watchPath?":[Path:"+e.watchPath+"]":""),p(this.getNodePath(e.node)+r),t){case 0:this.canCollectNodes&&-1===this.collectNodes.indexOf(e.node)&&this.collectNodes.push(e.node);break;case 1:e.enabled=!0;break;case 2:e.enabled=!1;break;case 3:e.node.removeComponent(e);break;case 4:let t=this.targetPath,r=this.replacePath;if(!0===e.templateMode)for(let i=0;i<e.watchPathArr.length;i++){const o=e.watchPathArr[i];e.watchPathArr[i]=this.replaceNodePath(o,t,r)}else e.watchPath=this.replaceNodePath(e.watchPath,t,r)}})))}replaceNodePath(e,t,r){let i=e.split("."),o=t.split("."),n=r.split("."),a=!0;for(let e=0;e<o.length;e++)if(i[e]!==o[e]){a=!1;break}if(!0===a){for(let e=0;e<n.length;e++)i[e]=n[e];p(" 路径更新:",e,">>>",i.join("."))}return i.join(".")}getNodePath(e){let t=e,r=[];for(;t;){let e=t.getParent();if(!e)break;r.push(t.name),t=e}return r.reverse().join("/")}}).prototype,"findList",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return["VMBase","VMParent"]}}),M=t(A.prototype,"actionType",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return F.SEARCH_COMPONENT}}),t(A.prototype,"findTrigger",[d],Object.getOwnPropertyDescriptor(A.prototype,"findTrigger"),A.prototype),t(A.prototype,"enableTrigger",[E],Object.getOwnPropertyDescriptor(A.prototype,"enableTrigger"),A.prototype),t(A.prototype,"disableTrigger",[T],Object.getOwnPropertyDescriptor(A.prototype,"disableTrigger"),A.prototype),v=t(A.prototype,"allowDelete",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t(A.prototype,"deleteTrigger",[b],Object.getOwnPropertyDescriptor(A.prototype,"deleteTrigger"),A.prototype),t(A.prototype,"replaceTrigger",[P],Object.getOwnPropertyDescriptor(A.prototype,"replaceTrigger"),A.prototype),L=t(A.prototype,"targetPath",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"game"}}),H=t(A.prototype,"replacePath",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"*"}}),D=t(A.prototype,"canCollectNodes",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=t(A.prototype,"collectNodes",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=A))||m)||m)||m)||m));i._RF.pop()}}}));
  153. System.register("chunks:///_virtual/VMCustom.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMBase.ts","./VMEnv.ts"],(function(t){var e,o,n,r,i,s,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.initializerDefineProperty},function(t){n=t.cclegacy,r=t._decorator,i=t.Toggle},function(t){s=t.VMBase},function(t){c=t.VMEnv}],execute:function(){var a,h,l,p,u,m,d,g,C,f,V,_,b,w;n._RF.push({},"ce662fwsSVPLKpmHx+KocFu","VMCustom",void 0);const{ccclass:y,property:P,executeInEditMode:M,menu:k,help:v}=r,x=[["BhvFrameIndex","index",!1],["BhvGroupToggle","index",!1],["BhvRollNumber","targetValue",!1],["cc.Label","string",!1],["cc.RichText","string",!1],["cc.EditBox","string",!0],["cc.Slider","progress",!0],["cc.ProgressBar","progress",!1],["cc.Toggle","isChecked",!0]];t("VMCustom",(a=k("OopsFramework/Mvvm/VM-Custom (自定义)"),h=v("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037634&doc_id=2873565"),l=P({tooltip:"激活controller,以开启双向绑定,否则只能接收消息"}),p=P({tooltip:"监视对象路径"}),u=P({tooltip:"绑定组件的名字"}),m=P({tooltip:"组件上需要监听的属性"}),d=P({tooltip:"刷新间隔频率(只影响脏检查的频率)",step:.01,range:[0,1],visible:function(){return!0===this.controller}}),y(g=M(g=a(g=h((f=e((C=class extends s{constructor(...t){super(...t),o(this,"controller",f,this),o(this,"watchPath",V,this),o(this,"componentName",_,this),o(this,"componentProperty",b,this),o(this,"refreshRate",w,this),this._timer=0,this._watchComponent=null,this._canWatchComponent=!1,this._oldValue=null}onLoad(){super.onLoad(),this.checkEditorComponent(),c.editor||(this._watchComponent=this.node.getComponent(this.componentName),this.checkComponentState())}onRestore(){this.checkEditorComponent()}start(){this.onValueInit()}checkEditorComponent(){if(c.editor)return;let t=x;for(let e=0;e<t.length;e++){const o=t[e];if(this.node.getComponent(o[0])){""==this.componentName&&(this.componentName=o[0]),""==this.componentProperty&&(this.componentProperty=o[1]),null!==o[2]&&(this.controller=o[2]);break}}}checkComponentState(){this._canWatchComponent=!1,this._watchComponent?this.componentProperty?this.componentProperty in this._watchComponent!=!1?this._canWatchComponent=!0:console.error("需要监听的组件的属性不存在"):console.error("未设置需要监听的组件 的属性"):console.error("未设置需要监听的组件")}getComponentValue(){return this._watchComponent[this.componentProperty]}setComponentValue(t){"cc.Toggle"==this.componentName?this.node.getComponent(i).isChecked=t:this._watchComponent[this.componentProperty]=t}onValueInit(){c.editor||this.setComponentValue(this.VM.getValue(this.watchPath))}onValueController(t,e){this.VM.setValue(this.watchPath,t)}onValueChanged(t,e,o){this.setComponentValue(t)}update(t){if(c.editor)return;if(!this.controller)return;if(!this._canWatchComponent||!1===this._watchComponent.enabled)return;if(this._timer+=t,this._timer<this.refreshRate)return;this._timer=0;let e=this._oldValue,o=this.getComponentValue();this._oldValue!==o&&(this._oldValue=this.getComponentValue(),this.onValueController(o,e))}}).prototype,"controller",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V=e(C.prototype,"watchPath",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_=e(C.prototype,"componentName",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=e(C.prototype,"componentProperty",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=e(C.prototype,"refreshRate",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),g=C))||g)||g)||g)||g));n._RF.pop()}}}));
  154. System.register("chunks:///_virtual/VMEnv.ts",["cc","./env"],(function(t){var n,e;return{setters:[function(t){n=t.cclegacy},function(t){e=t.EDITOR}],execute:function(){n._RF.push({},"fdf72Q91PdCXpPQ+62s1ufi","VMEnv",void 0);t("VMEnv",class{static get editor(){return e}}),n._RF.pop()}}}));
  155. System.register("chunks:///_virtual/VMEvent.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMBase.ts"],(function(e){var t,r,i,n,a,o,c,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty},function(e){i=e.cclegacy,n=e.CCString,a=e.Enum,o=e.EventHandler,c=e._decorator},function(e){l=e.VMBase}],execute:function(){var s,u,h,p,f,b,d,g,m,v,y,M,w,k,E,V,z,P;i._RF.push({},"a9ce7kf8XZJeLPlT2iWn2zD","VMEvent",void 0);const{ccclass:C,property:_,executeInEditMode:A,menu:D,help:O}=c;var x=function(e){return e[e.none=0]="none",e[e["=="]=1]="==",e[e["!="]=2]="!=",e[e[">"]=3]=">",e[e[">="]=4]=">=",e[e["<"]=5]="<",e[e["<="]=6]="<=",e}(x||{});e("default",(s=D("OopsFramework/Mvvm/VM-EventCall (调用函数)"),u=O("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037640&doc_id=2873565"),h=_({tooltip:"使用模板模式,可以使用多路径监听"}),p=_({tooltip:"监听获取值的路径",visible:function(){return!1===this.templateMode}}),f=_({tooltip:"触发一次后会自动关闭该事件"}),b=_({tooltip:"监听获取值的多条路径,这些值的改变都会通过这个函数回调,请使用 pathArr 区分获取的值 ",type:[n],visible:function(){return!0===this.templateMode}}),d=_({tooltip:"过滤模式,会根据条件过滤掉时间的触发",type:a(x)}),g=_({visible:function(){return this.filterMode!==x.none}}),m=_([o]),C(v=A(v=s(v=u((M=t((y=class extends l{constructor(...e){super(...e),r(this,"templateMode",M,this),r(this,"watchPath",w,this),r(this,"triggerOnce",k,this),r(this,"watchPathArr",E,this),r(this,"filterMode",V,this),r(this,"compareValue",z,this),r(this,"changeEvents",P,this)}onValueInit(){}onValueChanged(e,t,r){this.conditionCheck(e,this.compareValue)&&(Array.isArray(this.changeEvents)&&this.changeEvents.forEach((i=>{i.emit([e,t,r])})),!0===this.triggerOnce&&(this.enabled=!1))}conditionCheck(e,t){let r=x;switch(this.filterMode){case r.none:return!0;case r["=="]:if(e==t)return!0;break;case r["!="]:if(e!=t)return!0;break;case r["<"]:if(e<t)return!0;break;case r[">"]:if(e>t)return!0;break;case r[">="]:if(e>=t)return!0;break;case r["<"]:if(e<t)return!0;break;case r["<="]:if(e<=t)return!0}return!1}}).prototype,"templateMode",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=t(y.prototype,"watchPath",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),k=t(y.prototype,"triggerOnce",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=t(y.prototype,"watchPathArr",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=t(y.prototype,"filterMode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return x.none}}),z=t(y.prototype,"compareValue",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),P=t(y.prototype,"changeEvents",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=y))||v)||v)||v)||v));i._RF.pop()}}}));
  156. System.register("chunks:///_virtual/VMLabel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./StringFormat.ts","./VMBase.ts","./VMEnv.ts"],(function(t){var e,i,r,a,l,n,s,o,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.initializerDefineProperty},function(t){r=t.cclegacy,a=t.CCString,l=t._decorator,n=t.error},function(t){s=t.StringFormatFunction},function(t){o=t.VMBase},function(t){h=t.VMEnv}],execute:function(){var c,u,p,m,g,b,d,f,V,M,L,T;r._RF.push({},"545c05XsG9GDJispEGWKvYv","VMLabel",void 0);const{ccclass:y,property:w,menu:x,executeInEditMode:F,help:v}=l,A="cc.Label";t("default",(c=x("OopsFramework/Mvvm/VM-Label (标签)"),u=v("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037641&doc_id=2873565"),p=w({tooltip:"是否启用模板代码,只能在运行时之前设置,\n将会动态解析模板语法 {{0}},并且自动设置监听的路径"}),m=w({visible(){return!1===this.templateMode}}),g=w({readonly:!0}),b=w({type:[a],visible(){return!0===this.templateMode}}),y(d=F(d=c(d=u((V=e((f=class extends o{constructor(...t){super(...t),i(this,"templateMode",V,this),i(this,"watchPath",M,this),i(this,"labelType",L,this),i(this,"watchPathArr",T,this),this.templateValueArr=[],this.templateFormatArr=[],this.originText=null}onRestore(){this.checkLabel()}onLoad(){super.onLoad(),this.checkLabel(),h.editor||this.templateMode&&(this.originText=this.getLabelValue(),this.parseTemplate())}start(){h.editor||this.onValueInit()}parseTemplate(){let t=/\{\{(.+?)\}\}/,e=this.originText.match(/\{\{(.+?)\}\}/g);if(null!=e)for(let i=0;i<e.length;i++){let r=e[i].match(t)[1].split(":")[1]||"";this.templateFormatArr[i]=r}}getReplaceText(){if(!this.originText)return"";let t=/\{\{(.+?)\}\}/,e=this.originText.match(/\{\{(.+?)\}\}/g);if(null==e)return"";let i=this.originText;for(let r=0;r<e.length;r++){const a=e[r];let l,n=a.match(t),s=parseInt(n[1]||"0")||0,o=this.templateFormatArr[r];l=this.templateValueArr[s],i=i.replace(a,this.getValueFromFormat(l,o))}return i}getValueFromFormat(t,e){return s.deal(t,e)}onValueInit(){if(!1===this.templateMode)this.setLabelValue(this.VM.getValue(this.watchPath));else{let t=this.watchPathArr.length;for(let e=0;e<t;e++)this.templateValueArr[e]=this.VM.getValue(this.watchPathArr[e],"?");this.setLabelValue(this.getReplaceText())}}onValueChanged(t,e,i){if(!1===this.templateMode)this.setLabelValue(t);else{let e=i.join("."),r=this.watchPathArr.findIndex((t=>t===e));r>=0&&(this.templateValueArr[r]=t,this.setLabelValue(this.getReplaceText()))}}setLabelValue(t){this.getComponent(this.labelType).string=t+""}getLabelValue(){return this.getComponent(this.labelType).string}checkLabel(){let t=["cc.Label","cc.RichText","cc.EditBox"];for(let e=0;e<t.length;e++){const i=t[e];if(this.node.getComponent(i))return this.labelType=i,!0}return n("没有挂载任何label组件"),!1}}).prototype,"templateMode",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=e(f.prototype,"watchPath",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),L=e(f.prototype,"labelType",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return A}}),T=e(f.prototype,"watchPathArr",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=f))||d)||d)||d)||d));r._RF.pop()}}}));
  157. System.register("chunks:///_virtual/VMModify.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMBase.ts"],(function(t){var e,a,i,l,s,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.initializerDefineProperty},function(t){i=t.cclegacy,l=t.Enum,s=t._decorator},function(t){u=t.VMBase}],execute:function(){var r,h,n,o,c,M,p,v,m,V,d,b,f,w;i._RF.push({},"7d2a4voaOJJGJZRWFPG6Bk7","VMModify",void 0);const{ccclass:g,property:P,menu:y,help:I}=s;var A=function(t){return t[t.MIN=0]="MIN",t[t.MAX=1]="MAX",t[t.MIN_MAX=2]="MIN_MAX",t}(A||{});t("default",(r=y("OopsFramework/Mvvm/VM-Modify (修改数据)"),h=I("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037642&doc_id=2873565"),n=P({tooltip:"监视对象路径"}),o=P({tooltip:"是不启用取值范围限制"}),c=P({type:l(A),visible:function(){return!0===this.valueClamp}}),M=P({visible:function(){return!0===this.valueClamp&&this.valueClampMode!==A.MAX}}),p=P({visible:function(){return!0===this.valueClamp&&this.valueClampMode!==A.MIN}}),g(v=r(v=h((V=e((m=class extends u{constructor(...t){super(...t),a(this,"watchPath",V,this),a(this,"valueClamp",d,this),a(this,"valueClampMode",b,this),a(this,"valueMin",f,this),a(this,"valueMax",w,this)}clampValue(t){let e=this.valueMin,a=this.valueMax;if(0==this.valueClamp)return t;switch(this.valueClampMode){case A.MIN_MAX:t>a&&(t=a),t<e&&(t=e);break;case A.MIN:t<e&&(t=e);break;case A.MAX:t>a&&(t=a)}return t}vAddInt(t,e){this.vAdd(t,e,!0)}vSubInt(t,e){this.vSub(t,e,!0)}vMulInt(t,e){this.vMul(t,e,!0)}vDivInt(t,e){this.vDiv(t,e,!0)}vAdd(t,e,a=!1){let i=parseFloat(e),l=this.VM.getValue(this.watchPath,0)+i;a&&(l=Math.round(l)),this.VM.setValue(this.watchPath,this.clampValue(l))}vSub(t,e,a=!1){let i=parseFloat(e),l=this.VM.getValue(this.watchPath,0)-i;a&&(l=Math.round(l)),this.VM.setValue(this.watchPath,this.clampValue(l))}vMul(t,e,a=!1){let i=parseFloat(e),l=this.VM.getValue(this.watchPath,0)*i;a&&(l=Math.round(l)),this.VM.setValue(this.watchPath,this.clampValue(l))}vDiv(t,e,a=!1){let i=parseFloat(e),l=this.VM.getValue(this.watchPath,0)/i;a&&(l=Math.round(l)),this.VM.setValue(this.watchPath,this.clampValue(l))}vString(t,e){let a=e;this.VM.setValue(this.watchPath,a)}vNumberInt(t,e){this.vNumber(t,e,!0)}vNumber(t,e,a=!1){let i=parseFloat(e);a&&(i=Math.round(i)),this.VM.setValue(this.watchPath,this.clampValue(i))}}).prototype,"watchPath",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=e(m.prototype,"valueClamp",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=e(m.prototype,"valueClampMode",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return A.MIN_MAX}}),f=e(m.prototype,"valueMin",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),w=e(m.prototype,"valueMax",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),v=m))||v)||v)||v));i._RF.pop()}}}));
  158. System.register("chunks:///_virtual/VMParent.ts",["cc","./GameComponent.ts","./ViewModel.ts"],(function(t){var e,n,s,o;return{setters:[function(t){e=t.cclegacy,n=t._decorator},function(t){s=t.GameComponent},function(t){o=t.VM}],execute:function(){var i;e._RF.push({},"15ccciO+ZRH476sPKD/LvB7","VMParent",void 0);const{ccclass:a,help:r,executionOrder:c}=n;t("default",a(i=c(-1)(i=r("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037729&doc_id=2873565")(i=class extends s{constructor(...t){super(...t),this.tag="_temp",this.data={},this.VM=o}onLoad(){if(null==this.data)return;this.tag="_temp<"+this.node.uuid.replace(".","")+">",o.add(this.data,this.tag);let t=this.getVMComponents();for(let e=0;e<t.length;e++){const n=t[e];this.replaceVMPath(n,this.tag)}this.onBind()}onBind(){}onUnBind(){}replaceVMPath(t,e){let n=t.watchPath;if(1==t.templateMode){let n=t.watchPathArr;if(n)for(let t=0;t<n.length;t++){const s=n[t];n[t]=s.replace("*",e)}}else"*"===n.split(".")[0]&&(t.watchPath=n.replace("*",e))}getVMComponents(){let t=this.node.getComponentsInChildren("VMBase"),e=this.node.getComponentsInChildren("VMParent").filter((t=>t.uuid!==this.uuid)),n=[];return e.forEach((t=>{n=n.concat(t.getComponentsInChildren("VMBase"))})),t=t.filter((t=>n.indexOf(t)<0)),t}onDestroy(){this.onUnBind(),o.remove(this.tag),this.data=null,super.onDestroy()}})||i)||i)||i);e._RF.pop()}}}));
  159. System.register("chunks:///_virtual/VMProgress.ts",["./rollupPluginModLoBabelHelpers.js","cc","./StringFormat.ts","./VMCustom.ts","./VMEnv.ts"],(function(t){var e,r,i,a,o,s,n,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.initializerDefineProperty},function(t){i=t.cclegacy,a=t.CCString,o=t._decorator},function(t){s=t.StringFormatFunction},function(t){n=t.VMCustom},function(t){l=t.VMEnv}],execute:function(){var h,u,c,p,m,V,g,d,f,w;i._RF.push({},"2a50eqI7JZNV5Sh0y/Qd9C6","VMProgress",void 0);const{ccclass:P,property:A,menu:M,help:b}=o;t("default",(h=M("OopsFramework/Mvvm/VM-Progress (进度条)"),u=b("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037843&doc_id=2873565"),c=A({visible:!1,override:!0}),p=A({type:[a],tooltip:"第一个值是min 值,第二个值 是 max 值,会计算出两者的比例"}),m=A({visible:function(){return"string"===this.componentProperty},tooltip:"字符串格式化,和 VMLabel 的字段一样,需要填入对应的格式化字符串"}),P(V=h(V=u((d=e((g=class extends n{constructor(...t){super(...t),r(this,"watchPath",d,this),r(this,"watchPathArr",f,this),this.templateMode=!0,r(this,"stringFormat",w,this)}onLoad(){(this.watchPathArr.length<2||"[min]"==this.watchPathArr[0]||"[max]"==this.watchPathArr[1])&&console.error("VMProgress must have two values!"),super.onLoad()}start(){l.editor||this.onValueInit()}onValueInit(){let t=this.watchPathArr.length;for(let e=0;e<t;e++)this.templateValueArr[e]=this.VM.getValue(this.watchPathArr[e]);let e=this.templateValueArr[0]/this.templateValueArr[1];this.setComponentValue(e)}setComponentValue(t){if(""!==this.stringFormat){let e=s.deal(t,this.stringFormat);super.setComponentValue(e)}else super.setComponentValue(t)}onValueController(t,e){let r=Math.round(t*this.templateValueArr[1]);Number.isNaN(r)&&(r=0),this.VM.setValue(this.watchPathArr[0],r)}onValueChanged(t,e,r){if(!1===this.templateMode)return;let i=r.join("."),a=this.watchPathArr.findIndex((t=>t===i));a>=0&&(this.templateValueArr[a]=t);let o=this.templateValueArr[0]/this.templateValueArr[1];o>1&&(o=1),(o<0||Number.isNaN(o))&&(o=0),this.setComponentValue(o)}}).prototype,"watchPath",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=e(g.prototype,"watchPathArr",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return["[min]","[max]"]}}),w=e(g.prototype,"stringFormat",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),V=g))||V)||V)||V));i._RF.pop()}}}));
  160. System.register("chunks:///_virtual/VMState.ts",["./rollupPluginModLoBabelHelpers.js","cc","./VMBase.ts","./ViewModel.ts"],(function(e){var t,i,n,o,a,r,l,u,c,s,h,p,N,f;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.initializerDefineProperty},function(e){n=e.cclegacy,o=e.Enum,a=e.CCInteger,r=e.Node,l=e._decorator,u=e.Button,c=e.Sprite,s=e.UIRenderer,h=e.color,p=e.UIOpacity},function(e){N=e.VMBase},function(e){f=e.VM}],execute:function(){var C,d,b,O,m,E,v,A,y,T,_,g,D,w,M,V,I,S,k,P,L,R,B,z,U,Y,F,X,x,G,j;n._RF.push({},"47052uw/Y5O1LXaLObj4ARx","VMState",void 0);const{ccclass:H,property:q,menu:J,help:K}=l;var Q=function(e){return e[e["=="]=0]="==",e[e["!="]=1]="!=",e[e[">"]=2]=">",e[e[">="]=3]=">=",e[e["<"]=4]="<",e[e["<="]=5]="<=",e[e.range=6]="range",e}(Q||{}),W=function(e){return e[e.NODE_ACTIVE=0]="NODE_ACTIVE",e[e.NODE_VISIBLE=1]="NODE_VISIBLE",e[e.NODE_OPACITY=2]="NODE_OPACITY",e[e.NODE_COLOR=3]="NODE_COLOR",e[e.COMPONENT_CUSTOM=4]="COMPONENT_CUSTOM",e[e.SPRITE_GRAYSCALE=5]="SPRITE_GRAYSCALE",e[e.BUTTON_INTERACTABLE=6]="BUTTON_INTERACTABLE",e}(W||{}),Z=function(e){return e[e.NODE_INDEX=0]="NODE_INDEX",e[e.NODE_NAME=1]="NODE_NAME",e}(Z||{});e("default",(C=J("OopsFramework/Mvvm/VM-State (状态控制)"),d=K("https://gitee.com/dgflash/oops-framework/wikis/pages?sort_id=12037846&doc_id=2873565"),b=q({tooltip:"遍历子节点,根据子节点的名字或名字转换为值,判断值满足条件 来激活"}),O=q({type:o(Q)}),m=q({type:o(Z),tooltip:"遍历子节点,根据子节点的名字转换为值,判断值满足条件 来激活",visible:function(){return!0===this.foreachChildMode}}),E=q({displayName:"Value: a",visible:function(){return!1===this.foreachChildMode}}),v=q({displayName:"Value: b",visible:function(){return!1===this.foreachChildMode&&this.condition===Q.range}}),A=q({type:o(W),tooltip:"一旦满足条件就对节点执行操作"}),y=q({visible:function(){return this.valueAction===W.NODE_OPACITY},range:[0,255],type:a,displayName:"Action Opacity"}),T=q({visible:function(){return this.valueAction===W.NODE_COLOR},displayName:"Action Color"}),_=q({visible:function(){return this.valueAction===W.COMPONENT_CUSTOM},displayName:"Component Name"}),g=q({visible:function(){return this.valueAction===W.COMPONENT_CUSTOM},displayName:"Component Property"}),D=q({visible:function(){return this.valueAction===W.COMPONENT_CUSTOM},displayName:"Default Value"}),w=q({visible:function(){return this.valueAction===W.COMPONENT_CUSTOM},displayName:"Action Value"}),M=q({type:[r],tooltip:"需要执行条件的节点,如果不填写则默认会执行本节点以及本节点的所有子节点 的状态"}),H(V=C(V=d((S=t((I=class extends N{constructor(...e){super(...e),i(this,"watchPath",S,this),i(this,"foreachChildMode",k,this),i(this,"condition",P,this),i(this,"foreachChildType",L,this),i(this,"valueA",R,this),i(this,"valueB",B,this),i(this,"valueAction",z,this),i(this,"valueActionOpacity",U,this),i(this,"valueActionColor",Y,this),i(this,"valueComponentName",F,this),i(this,"valueComponentProperty",X,this),i(this,"valueComponentDefaultValue",x,this),i(this,"valueComponentActionValue",G,this),i(this,"watchNodes",j,this)}onLoad(){super.onLoad(),0==this.watchNodes.length&&(this.valueAction!==W.NODE_ACTIVE&&!1===this.foreachChildMode&&this.watchNodes.push(this.node),this.watchNodes=this.watchNodes.concat(this.node.children))}start(){this.enabled&&this.onValueInit()}onValueInit(){let e=f.getValue(this.watchPath);this.checkNodeFromValue(e)}onValueChanged(e,t,i){this.checkNodeFromValue(e)}checkNodeFromValue(e){if(this.foreachChildMode)this.watchNodes.forEach(((t,i)=>{let n=this.foreachChildType===Z.NODE_INDEX?i:t.name,o=this.conditionCheck(e,n);this.setNodeState(t,o)}));else{let t=this.conditionCheck(e,this.valueA,this.valueB);this.setNodesStates(t)}}setNodesStates(e){let t=this.watchNodes,i=e;t.forEach((e=>{this.setNodeState(e,i)}))}setNodeState(e,t){let i=t;switch(this.valueAction){case W.NODE_ACTIVE:e.active=!!i;break;case W.NODE_VISIBLE:{let t=e.getComponent(p);null==t&&(t=e.addComponent(p)),t&&(t.opacity=i?255:0);break}case W.NODE_OPACITY:{let t=e.getComponent(p);null==t&&(t=e.addComponent(p)),t&&(t.opacity=i?this.valueActionOpacity:255);break}case W.NODE_COLOR:{let t=e.getComponent(s);t&&(t.color=i?this.valueActionColor:h(255,255,255));break}case W.COMPONENT_CUSTOM:let t=e.getComponent(this.valueComponentName);if(null==t)return;this.valueComponentProperty in t&&(t[this.valueComponentProperty]=i?this.valueComponentActionValue:this.valueComponentDefaultValue);break;case W.SPRITE_GRAYSCALE:{let t=e.getComponent(c);t&&(t.grayscale=i);break}case W.BUTTON_INTERACTABLE:{let t=e.getComponent(u);t&&(t.interactable=i);break}}}conditionCheck(e,t,i){let n=Q;switch(this.condition){case n["=="]:if(e==t)return!0;break;case n["!="]:if(e!=t)return!0;break;case n["<"]:if(e<t)return!0;break;case n[">"]:if(e>t)return!0;break;case n[">="]:if(e>=t)return!0;break;case n["<"]:if(e<t)return!0;break;case n["<="]:if(e<=t)return!0;break;case n.range:if(e>=t&&e<=i)return!0}return!1}}).prototype,"watchPath",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),k=t(I.prototype,"foreachChildMode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P=t(I.prototype,"condition",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Q["=="]}}),L=t(I.prototype,"foreachChildType",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Z.NODE_INDEX}}),R=t(I.prototype,"valueA",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),B=t(I.prototype,"valueB",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),z=t(I.prototype,"valueAction",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return W.NODE_ACTIVE}}),U=t(I.prototype,"valueActionOpacity",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Y=t(I.prototype,"valueActionColor",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return h(155,155,155)}}),F=t(I.prototype,"valueComponentName",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),X=t(I.prototype,"valueComponentProperty",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),x=t(I.prototype,"valueComponentDefaultValue",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),G=t(I.prototype,"valueComponentActionValue",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),j=t(I.prototype,"watchNodes",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),V=I))||V)||V)||V));n._RF.pop()}}}));
  161. System.register("chunks:///_virtual/WebSock.ts",["cc","./Logger.ts"],(function(e){var s,t;return{setters:[function(e){s=e.cclegacy},function(e){t=e.Logger}],execute:function(){s._RF.push({},"70df2VbIU9B66Fr+op8FKJp","WebSock",void 0);e("WebSock",class{constructor(){this._ws=null,this.onConnected=null,this.onMessage=null,this.onError=null,this.onClosed=null}connect(e){if(this._ws&&this._ws.readyState===WebSocket.CONNECTING)return t.logNet("websocket connecting, wait for a moment..."),!1;let s=null;if(e.url)s=e.url;else{let t=e.ip,o=e.port;s=`${e.protocol}://${t}:${o}`}return this._ws=new WebSocket(s),this._ws.binaryType=e.binaryType?e.binaryType:"arraybuffer",this._ws.onmessage=e=>{(0,this.onMessage)(e.data)},this._ws.onopen=this.onConnected,this._ws.onerror=this.onError,this._ws.onclose=this.onClosed,!0}send(e){return this._ws&&this._ws.readyState==WebSocket.OPEN?(this._ws.send(e),1):-1}close(e,s){this._ws&&this._ws.close(e,s)}}),s._RF.pop()}}}));
  162. (function(r) {
  163. r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
  164. })(function(mid, cid) {
  165. System.register(mid, [cid], function (_export, _context) {
  166. return {
  167. setters: [function(_m) {
  168. var _exportObj = {};
  169. for (var _key in _m) {
  170. if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
  171. }
  172. _export(_exportObj);
  173. }],
  174. execute: function () { }
  175. };
  176. });
  177. });