123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- System.register("chunks:///_virtual/Action.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var n,i;return{setters:[function(t){n=t.createClass},function(t){i=t.cclegacy}],execute:function(){t("default",(function(){return new r})),i._RF.push({},"24a1fbkvW9AQJ+cc5f2eMnl","Action",void 0);var r=function(){function t(){this._list=[],this._current=void 0}var i=t.prototype;return i.add=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this._list.push(t.apply(void 0,i))},i.check_entry=function(){var t;if(null==(t=this._current)||!t.check()){for(var n=0;n<this._list.length;n++)if(this._current!=this._list[n]&&this._list[n].check())return this._current=this._list[n],void this._current.entry();this._current=null}},i.do=function(t){this._current&&this._current.do(t)},i.clean=function(){for(var t=0;t<this._list.length;t++)this._list[t].dispose();this._list.length=0,this._current=null},n(t,[{key:"isAction",get:function(){return null!=this._current}}]),t}();i._RF.pop()}}}));
- System.register("chunks:///_virtual/ArrayUtil.ts",["cc"],(function(r){var n;return{setters:[function(r){n=r.cclegacy}],execute:function(){n._RF.push({},"83341COeitPRIHcw18VS7g3","ArrayUtil",void 0);r("default",function(){function r(){}return r.shuffleArray=function(r){for(var n,t,e=r.length;0!==e;)t=Math.floor(Math.random()*e),n=r[--e],r[e]=r[t],r[t]=n;return r},r.shuffleArray2=function(r){for(var n=r.length-1;n>0;n--){var t=Math.floor(Math.random()*(n+1)),e=[r[t],r[n]];r[n]=e[0],r[t]=e[1]}return r},r.MergeAndRemoveDuplicates=function(r,n){var t=[].concat(r,n);return Array.from(new Set(t))},r.ExcludeElements=function(r,n){var t=new Set(n);return r.filter((function(r){return!t.has(r)}))},r.checkSequentialCombination=function(r){for(var n=r.slice().sort((function(r,n){return r-n})),t=0;t<n.length-1;t++)if(n[t]+1!==n[t+1])return[];return n},r.findSequentialCombinations=function(r){var n=[];r.sort((function(r,n){return r-n}));for(var t=[],e=0;e<r.length;e++)0===t.length||r[e]===t[t.length-1]+1?t.push(r[e]):(t.length>1&&n.push(t),t=[r[e]]);return t.length>1&&n.push(t),n},r.DeleteOneItem=function(r,n){for(var t=r.length,e=0;e<t;e++)if(n(r[e]))return r.splice(e,1)[0];return null},r.InsertionSort=function(r){var n=r.length;if(!(n<=1))for(var t,e,o=1;o<n;o++){t=r[o];var i=void 0;for(i=o;i>0&&t.sortValue>(e=r[i-1]).sortValue;i--)r[i]=e;r[i]=t}},r.reorder=function(r,n){for(var t=r.length-1,e=0;e<t;){for(;e<t&&!n(r[e]);)e++;for(;e<t&&n(r[t]);)t--;if(e<t){var o=[r[t],r[e]];r[e]=o[0],r[t]=o[1]}}},r.CommonSort=function(r,n){var t=!0;do{t=!1;for(var e=0;e<r.length-1;e++)if(n(r[e],r[e+1])){var o=r[e];r[e]=r[e+1],r[e+1]=o,t=!0}}while(t)},r.MergeSort=function(r,n,t){if(!(t-n<2)){var e=n+t>>1;this.MergeSort(r,n,e),this.MergeSort(r,e,t),this.merge(r,n,e,t)}},r.merge=function(r,n,t,e){for(var o=r.slice(n,e),i=t-n,u=new Array(i),f=0;f<i;u[f]=o[f++]);for(var a=e-t,l=r.slice(t,e),c=(f=0,0),h=0;c<i;)h<a&&l[h]<u[c]&&(o[f++]=l[h++]),(a<=h||u[c]<=l[h])&&(o[f++]=u[c++]);for(f=0;f<o.length;r[n+f]=o[f++]);u.length=0,l.length=0,o.length=0},r}());n._RF.pop()}}}));
- System.register("chunks:///_virtual/audio.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,s,i,o,_,c,u;return{setters:[function(e){t=e.createClass},function(e){s=e.cclegacy,i=e.AudioSource,o=e.assetManager,_=e.AudioClip,c=e.Node,u=e.director}],execute:function(){s._RF.push({},"e1803S2AupKB5LQvJ7w31/E","audio",void 0);var n=chsdk.log,l=chsdk.storage,f=e("loadType",function(e){return e[e.none=0]="none",e[e.bundle=1]="bundle",e[e.remote=2]="remote",e}({}));e("default",function(){function e(){this._volume_music=1,this._volume_effect=1,this._switch_music=!0,this._switch_effect=!0,this._effect_max=5,this._effect_index=0,this._effect_source_pool=[],this._music_source=void 0,this._load_type=f.none,this._bundle_name=void 0,this._remote_url=void 0,this._playing_sound=new Set;var e=new c;e.name="__ch_audio__",u.getScene().addChild(e),u.addPersistRootNode(e),this._music_source=this._create(e);for(var t=0;t<this._effect_max;t++)this._effect_source_pool.push(this._create(e));this.load()}e.getInstance=function(){return this._instance||(this._instance=new e),this._instance};var s=e.prototype;return s._create=function(e){var t=e.addComponent(i);return t.loop=!1,t.playOnAwake=!1,t.volume=.5,t},s.init=function(e,t,s){this._load_type=e,this._bundle_name=t,this._remote_url=s},s.set_bundle_name=function(e){this._bundle_name=e},s.release=function(e){if(this._load_type==f.none)n.warn("音频模块未初始化");else if(this._load_type==f.bundle){var t=o.getBundle(this._bundle_name);e?t.release(e,_):t.releaseAll()}},s.save=function(){var e={};e.volume_music=this._volume_music,e.volume_effect=this._volume_effect,e.switch_music=this._switch_music,e.switch_effect=this._switch_effect,l.set("ch_audio",e)},s.load=function(){var e=l.getObject("ch_audio");if(e)try{this.setState(e)}catch(e){this.setStateDefault()}else this.setStateDefault()},s.setState=function(e){this.volumeMusic=e.volume_music,this.volumeEffect=e.volume_effect,this.switchMusic=e.switch_music,this.switchEffect=e.switch_effect},s.setStateDefault=function(){this.volumeMusic=.8,this.volumeEffect=.8,this.switchMusic=!0,this.switchEffect=!0},s.playOneShot=function(e,t,s){var i=this;if(void 0===t&&(t=0),void 0===s&&(s=".mp3"),this._switch_effect)if(e instanceof _)this.doPlayOneShot(e,t);else if(this._load_type==f.none)n.warn("音频模块未初始化");else if(this._load_type==f.bundle){var c=o.getBundle(this._bundle_name);c?c.load(e,(function(e,s){e?n.error(e):i.doPlayOneShot(s,t)})):n.warn("请确保 bundle"+this._bundle_name+" 已加载")}else this._load_type==f.remote&&o.loadRemote(this._remote_url+e+s,(function(e,s){e?n.error(e):i.doPlayOneShot(s,t)}))},s.doPlayOneShot=function(e,t){var s=this,i=e.name;if(t>0){if(this._playing_sound.has(i))return;this._playing_sound.add(i);var o=t<=1?e.getDuration()*t*1e3:t;setTimeout((function(){s._playing_sound.delete(i)}),o),this.getNextEffectSource().playOneShot(e,this._volume_effect)}else this.getNextEffectSource().playOneShot(e,this._volume_effect)},s.getNextEffectSource=function(){var e=this._effect_source_pool[this._effect_index];return this._effect_index=(this._effect_index+1)%this._effect_max,e},s.play=function(e,t){var s=this;if(void 0===t&&(t=".mp3"),this._switch_music)if(e instanceof _)this._music_source.loop=!0,this._music_source.stop(),this._music_source.clip=e,this._music_source.play(),this._music_source.volume=this._volume_music;else if(this._load_type==f.none)n.warn("音频模块未初始化");else if(this._load_type==f.bundle){var i=o.getBundle(this._bundle_name);i?i.load(e,(function(e,t){e?n.error(e):(s._music_source.loop=!0,s._music_source.stop(),s._music_source.clip=t,s._music_source.play(),s._music_source.volume=s._volume_music)})):n.warn("请确保 bundle"+this._bundle_name+" 已加载")}else this._load_type==f.remote&&o.loadRemote(this._remote_url+e+t,(function(e,t){e?n.error(e):(s._music_source.loop=!0,s._music_source.stop(),s._music_source.clip=t,s._music_source.play(),s._music_source.volume=s._volume_music)}))},s.stop=function(){this._music_source.stop();for(var e=0;e<this._effect_source_pool.length;e++)this._effect_source_pool[e].stop()},s.clean=function(){var e;this._music_source.stop(),null==(e=this._music_source.clip)||e.name,this._music_source.clip=null;for(var t=0;t<this._effect_source_pool.length;t++)this._effect_source_pool[t].stop(),this._effect_source_pool[t].clip=null},s.pause=function(){this._music_source.pause()},s.resume=function(){this._switch_music&&this._music_source.play()},s.replay_music=function(){this._music_source.stop(),this._music_source.play()},t(e,[{key:"volumeMusic",get:function(){return this._volume_music},set:function(e){this._volume_music=e,this._music_source.volume=e}},{key:"switchMusic",get:function(){return this._switch_music},set:function(e){this._switch_music=e,0==e&&this._music_source.stop()}},{key:"volumeEffect",get:function(){return this._volume_effect},set:function(e){this._volume_effect=e;for(var t=0;t<this._effect_source_pool.length;t++)this._effect_source_pool[t].volume=this._volume_effect}},{key:"switchEffect",get:function(){return this._switch_effect},set:function(e){if(this._switch_effect=e,0==e)for(var t=0;t<this._effect_source_pool.length;t++)this._effect_source_pool[t].stop()}}]),e}())._instance=void 0,s._RF.pop()}}}));
- System.register("chunks:///_virtual/ch_pvp.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch_util.ts"],(function(e){var t,n,r;return{setters:[function(e){t=e.asyncToGenerator},function(e){n=e.cclegacy},function(e){r=e.default}],execute:function(){n._RF.push({},"8b658c6Uk1Jq4HkHx1ctH2P","ch_pvp",void 0);var s=function(){function e(){this._set_url="/user/setPvpSceneData",this._match_url="/user/startPvpMatch",this._finish_url="/user/pvpFinishAction",this._record_url="/user/pvpChallengeRecord",this._own=void 0,this._cache_records=null,this._cache_time=void 0}e.getInstance=function(){return this._instance||(this._instance=new e),this._instance};var n=e.prototype;return n.setSceneData=function(){var e=t((function*(e){var t=chsdk.check_req_time("setSceneData");if(t)return t;var n={extends:r.stringify(e)},s=yield chsdk.makePostTokenRequest(chsdk.getUrl(this._set_url),n);return s.code!=chsdk.code.success?chsdk.log.warn(s):(chsdk.log.log("PVP擂台数据上报成功"),this._own?this._own.extends=e:yield this.getOwn()),s}));return function(t){return e.apply(this,arguments)}}(),n.startMatch=function(){var e=t((function*(e){if(chsdk.check_req_time("startMatch"))return null;var t=yield chsdk.makePostTokenRequest(chsdk.getUrl(this._match_url),{uid:e?e.toString():""});if(t.code!=chsdk.code.success)return chsdk.log.warn(t),null;var n=t.data.data;return n.other.uid=Number.parseInt(n.other.uid),n.other.hid=Number.parseInt(n.other.hid),n.other.province=chsdk.provinceCode2Name(n.other.hid),n.own.uid=Number.parseInt(n.own.uid),n.own.hid=Number.parseInt(n.own.hid),n.own.province=chsdk.provinceCode2Name(n.own.hid),{extends:r.parse(n.extends),other:n.other,own:n.own}}));return function(t){return e.apply(this,arguments)}}(),n.startMatchRecord=function(){var e=t((function*(e){if(chsdk.check_req_time("startMatch"))return null;var t=yield this.startMatch(e.other.uid);return t?(t.extends=e.extends,t.pvpId=e.pvpId,t):null}));return function(t){return e.apply(this,arguments)}}(),n.finish=function(){var e=t((function*(e,t,n,s,i){if(chsdk.check_req_time("finish"))return null;var c={otherUid:e.toString(),status:t,extends:r.stringify(n),serverData:r.stringify(s),pvpId:i},o=yield chsdk.makePostTokenRequest(chsdk.getUrl(this._finish_url),c);if(o.code!=chsdk.code.success)return chsdk.log.warn(o),null;var u=o.data.data;return chsdk.log.log("pvp结果数据上报成功,结算:",u),u}));return function(t,n,r,s,i){return e.apply(this,arguments)}}(),n.getOwn=function(){var e=t((function*(){return this._own||(yield this.getRecords(3,!1)),this._own}));return function(){return e.apply(this,arguments)}}(),n.get_cache_records=function(){return chsdk.date.now()-this._cache_time>6e4?null:this._cache_records},n.getRecords=function(){var e=t((function*(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!0),t){var n=this.get_cache_records();if(n)return n}if(chsdk.check_req_time("getRecords"))return null;var s=yield chsdk.makePostTokenRequest(chsdk.getUrl(this._record_url),{typeId:e});if(s.code!=chsdk.code.success)return chsdk.log.warn(s),null;var i=s.data.data;if(i.own){var c=i.own;c.extends=r.parse(c.extends),c.own.uid=Number.parseInt(c.own.uid),c.own.hid=Number.parseInt(c.own.hid),c.own.province=chsdk.provinceCode2Name(c.own.hid)}else i.own=null;i.list||(i.list=[]);for(var o=0;o<i.list.length;o++){var u=i.list[o];u.extends=r.parse(u.extends),u.own.uid=Number.parseInt(u.own.uid),u.own.hid=Number.parseInt(u.own.hid),u.own.province=chsdk.provinceCode2Name(u.own.hid),u.other.uid=Number.parseInt(u.other.uid),u.other.hid=Number.parseInt(u.other.hid),u.other.province=chsdk.provinceCode2Name(u.other.hid)}return this._own=i.own,this._cache_records=i,this._cache_time=chsdk.date.now(),i}));return function(t,n){return e.apply(this,arguments)}}(),n.getRank=function(){var e=t((function*(){var e=yield chsdk.loadRankData("pvp",1,100,!0);return{list:e.data.list,ower:e.data.own}}));return function(){return e.apply(this,arguments)}}(),n.sharePvp=function(){var e=t((function*(e,t,n,s){chsdk.shareAppMessage(n,"",s,r.stringify({type:"pvp",player:e,extends:t}))}));return function(t,n,r,s){return e.apply(this,arguments)}}(),n.getSharePvpExtends=function(){var e=chsdk.getQuery();if(!e)return null;var t=e.message;if(!t)return null;var n=r.parse(t);return n?"pvp"!=n.type?null:(e.message=null,{player:n.player,extend:n.extends}):null},e}();s._instance=void 0;e("default",s.getInstance());n._RF.pop()}}}));
- System.register("chunks:///_virtual/ch_sdk_comp.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,c,o,s,i;return{setters:[function(e){t=e.inheritsLoose},function(e){n=e.cclegacy,c=e._decorator,o=e.game,s=e.Game,i=e.Component}],execute:function(){var r;n._RF.push({},"9a64dfa1IRPk5UQTCy9WxRi","ch_sdk_comp",void 0);var d=c.ccclass;c.property,e("ch_sdk_comp",d("ch_sdk_comp")(r=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.onLoad=function(){o.on(s.EVENT_SHOW,(function(){chsdk.sdk_event.emit(chsdk.sdk_event.key.show)}),this),o.on(s.EVENT_HIDE,(function(){chsdk.sdk_event.emit(chsdk.sdk_event.key.hide)}),this)},n}(i))||r);n._RF.pop()}}}));
- System.register("chunks:///_virtual/ch_start_pack.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch.ts","./audio.ts","./ch_sdk_comp.ts"],(function(t){var i,e,r,o,n,p,s,d,a,u,l,c,_,h,y;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,r=t.initializerDefineProperty,o=t.assertThisInitialized,n=t.createClass,p=t.asyncToGenerator},function(t){s=t.cclegacy,d=t._decorator,a=t.Enum,u=t.Component,l=t.Node,c=t.director},function(t){_=t.ch},function(t){h=t.loadType},function(t){y=t.ch_sdk_comp}],execute:function(){var f,g,b,m,v,w,k,O,x,P,N,z,D,I,j,T,C,L,B,F,H,R,U,E,G,J,S,q,A,M,V,X,K,Q,W,Y,Z,$,tt,it,et,rt,ot,nt,pt,st,dt,at,ut,lt,ct,_t,ht,yt,ft;s._RF.push({},"4aa63NubuJJqLakcBFHXiHV","ch_start_pack",void 0);var gt=d.ccclass,bt=d.property,mt=t("pack",function(t){return t[t.id0=0]="id0",t[t.id1=1]="id1",t[t.id2=2]="id2",t[t.id3=3]="id3",t[t.id4=4]="id4",t[t.id5=5]="id5",t[t.id6=6]="id6",t[t.id7=7]="id7",t[t.id8=8]="id8",t[t.id9=9]="id9",t}({}));t("ch_start_pack",(f=gt("ch_start_pack"),g=bt({visible:!1}),b=bt({visible:!1}),m=bt({visible:!1}),v=bt({visible:!1}),w=bt({visible:!1}),k=bt({visible:!1}),O=bt({visible:!1}),x=bt({visible:!1}),P=bt({visible:!1}),N=bt({visible:!1}),z=bt({visible:!1}),D=bt({visible:!1}),I=bt({visible:!1}),j=bt({visible:!1}),T=bt({type:a(mt),displayName:"包id",group:{name:"选包",id:"pack",displayOrder:0}}),C=bt({displayName:"游戏名",group:{name:"选包",id:"pack",displayOrder:0}}),L=bt({displayName:"游戏id",group:{name:"选包",id:"pack",displayOrder:0}}),B=bt({displayName:"是否单机",group:{name:"ch.sdk模块",id:"sdk",displayOrder:0}}),F=bt({type:a(chsdk.serverType),displayName:"服务器地址",visible:function(){return!this.is_local},group:{name:"ch.sdk模块",id:"sdk",displayOrder:0},tooltip:"local 局域网 \n dev 测试服 \n online 正式服"}),H=bt({displayName:"本地服测试ip",visible:function(){return this.server==chsdk.serverType.test},group:{name:"ch.sdk模块",id:"sdk",displayOrder:0}}),R=bt({type:a(chsdk.reportType),displayName:"上报类型",group:{name:"基本参数",id:"sdk",displayOrder:0},tooltip:"off 不上报 \n ch 使用ch服务器(需要在ch后台配置事件) \n platform 使用微信/抖音平台(需要在平台后台设置事件)\nch__platflorm所有平台自定义事件都上报"}),U=bt({type:a(chsdk.loglevel),displayName:"日志等级",group:{name:"基本参数",id:"sdk",displayOrder:0}}),E=bt({displayName:"抖音奖励广告id",group:{name:"基本参数",id:"sdk",displayOrder:0}}),G=bt({displayName:"抖音插屏广告id",group:{name:"基本参数",id:"sdk",displayOrder:0}}),J=bt({displayName:"抖音订阅id(,隔开)",group:{name:"基本参数",id:"sdk",displayOrder:0}}),S=bt({displayName:"微信奖励广告id",group:{name:"基本参数",id:"sdk",displayOrder:0}}),q=bt({displayName:"微信插屏广告id",group:{name:"基本参数",id:"sdk",displayOrder:0}}),A=bt({displayName:"微信订阅id(,隔开)",group:{name:"基本参数",id:"sdk",displayOrder:0}}),M=bt({visible:!1}),V=bt({type:a(h),visible:!1}),X=bt({displayName:"是否使用ch.audio模块",group:{name:"ch.audio模块",id:"audio",displayOrder:1}}),K=bt({type:a(h),displayName:"音频资源加载模式",group:{name:"ch.audio模块",id:"audio",displayOrder:1},visible:function(){return this._use_ch_audio}}),Q=bt({displayName:"音频资源默认bundle名",group:{name:"ch.audio模块",id:"audio",displayOrder:1},visible:function(){return this._use_ch_audio&&this._ch_audio_type==h.bundle}}),W=bt({displayName:"音频资源远程地址",group:{name:"ch.audio模块",id:"audio",displayOrder:1},visible:function(){return this._use_ch_audio&&this._ch_audio_type==h.remote}}),f(($=i((Z=function(t){function i(){for(var i,e=arguments.length,n=new Array(e),p=0;p<e;p++)n[p]=arguments[p];return i=t.call.apply(t,[this].concat(n))||this,r(i,"_gname",$,o(i)),r(i,"_gid",tt,o(i)),r(i,"_is_local",it,o(i)),r(i,"_server",et,o(i)),r(i,"_report",rt,o(i)),r(i,"_log",ot,o(i)),r(i,"_ttad",nt,o(i)),r(i,"_ttiad",pt,o(i)),r(i,"_tttmpid",st,o(i)),r(i,"_wxad",dt,o(i)),r(i,"_wxiad",at,o(i)),r(i,"_wxtmpid",ut,o(i)),r(i,"_serverIP",lt,o(i)),r(i,"_pid",ct,o(i)),r(i,"_use_ch_audio",_t,o(i)),r(i,"_ch_audio_type",ht,o(i)),r(i,"sound_bundle",yt,o(i)),r(i,"sound_url",ft,o(i)),i}e(i,t);var s=i.prototype;return s.onLoad=function(){console.log("包Id:"+this.pid,"游戏名:"+this.gname,"游戏Id:"+this.gid,"单机:"+this.is_local,"服务器:"+chsdk.serverType[this.server])},s.init=function(){var t=p((function*(){chsdk.setConf(chsdk.pf.tt,{adUnitId:this.ttad,multiton:!1,inster_unitId:this.ttiad,tmplIds:this.tttmpid?this.tttmpid.split(","):null}),chsdk.setConf(chsdk.pf.wx,{adUnitId:this.wxad,multiton:!1,inster_unitId:this.wxiad,tmplIds:this.wxtmpid?this.wxtmpid.split(","):null});var t=yield chsdk.init_inside(this.gid,this.log,this.server==chsdk.serverType.test?this.serverIP:this.server,this.is_local,this.report);if(t.code==chsdk.code.success){if(this.use_ch_audio&&_.audio.init(this.sount_load_type,this.sound_bundle,this.sound_url),chsdk.get_pf()===chsdk.pf.web){var i=new l;i.name="__ch_sdk__",i.addComponent(y),c.getScene().addChild(i),c.addPersistRootNode(i)}return!0}return chsdk.log.error(t.err),!1}));return function(){return t.apply(this,arguments)}}(),s.try_init=function(){var t=p((function*(t,i){if(void 0===t&&(t=5),void 0===i&&(i=2e3),!(yield this.init()))return--t<0?(this.is_local=!0,void(yield this.init())):(yield new Promise((function(t){return setTimeout(t,i)})),this.try_init(t,i))}));return function(i,e){return t.apply(this,arguments)}}(),n(i,[{key:"pid",get:function(){return this._pid},set:function(t){this._pid=t;for(var i=0;i<=this._pid;i++){var e,r,o,n,p,s,d,a,u,l,c,_,h,y,f,g,b,m,v,w,k,O,x,P,N,z,D,I,j,T,C;null!=(e=this._gname)[r=i]||(e[r]=""),null!=(o=this._is_local)[n=i]||(o[n]=null==(p=this._is_local[i-1])||p),null!=(s=this._gid)[d=i]||(s[d]=null!=(a=this._gid[i-1])?a:"0"),null!=(u=this._server)[l=i]||(u[l]=null!=(c=this._server[i-1])?c:chsdk.serverType.online),null!=(_=this._report)[h=i]||(_[h]=null!=(y=this._report[i-1])?y:chsdk.reportType.off),null!=(f=this._log)[g=i]||(f[g]=null!=(b=this._log[i-1])?b:chsdk.loglevel.DEBUG),null!=(m=this._ttad)[v=i]||(m[v]=""),null!=(w=this._ttiad)[k=i]||(w[k]=""),null!=(O=this._tttmpid)[x=i]||(O[x]=""),null!=(P=this._wxad)[N=i]||(P[N]=""),null!=(z=this._wxiad)[D=i]||(z[D]=""),null!=(I=this._wxtmpid)[j=i]||(I[j]=""),null!=(T=this._serverIP)[C=i]||(T[C]="http://192.168.1.120:8787/v1")}}},{key:"gname",get:function(){var t;return null!=(t=this._gname[this._pid])?t:""},set:function(t){this._gname[this._pid]=t}},{key:"gid",get:function(){return this._gid[this._pid]},set:function(t){this._gid[this._pid]=t}},{key:"is_local",get:function(){return this._is_local[this._pid]},set:function(t){this._is_local[this._pid]=t}},{key:"server",get:function(){return this._server[this._pid]},set:function(t){this._server[this._pid]=t}},{key:"serverIP",get:function(){return this._serverIP[this._pid]},set:function(t){this._serverIP[this._pid]=t}},{key:"report",get:function(){return this._report[this._pid]},set:function(t){this._report[this._pid]=t}},{key:"log",get:function(){return this._log[this._pid]},set:function(t){this._log[this._pid]=t}},{key:"ttad",get:function(){return this._ttad[this._pid]},set:function(t){this._ttad[this._pid]=t}},{key:"ttiad",get:function(){return this._ttiad[this._pid]},set:function(t){this._ttiad[this._pid]=t}},{key:"tttmpid",get:function(){return this._tttmpid[this._pid]},set:function(t){this._tttmpid[this._pid]=t}},{key:"wxad",get:function(){return this._wxad[this._pid]},set:function(t){this._wxad[this._pid]=t}},{key:"wxiad",get:function(){return this._wxiad[this._pid]},set:function(t){this._wxiad[this._pid]=t}},{key:"wxtmpid",get:function(){return this._wxtmpid[this._pid]},set:function(t){this._wxtmpid[this._pid]=t}},{key:"use_ch_audio",get:function(){return this._use_ch_audio},set:function(t){this._use_ch_audio=t}},{key:"sount_load_type",get:function(){return this._ch_audio_type},set:function(t){this._ch_audio_type=t}}]),i}(u)).prototype,"_gname",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),tt=i(Z.prototype,"_gid",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),it=i(Z.prototype,"_is_local",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),et=i(Z.prototype,"_server",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[chsdk.serverType.dev]}}),rt=i(Z.prototype,"_report",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[chsdk.reportType.off]}}),ot=i(Z.prototype,"_log",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),nt=i(Z.prototype,"_ttad",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),pt=i(Z.prototype,"_ttiad",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),st=i(Z.prototype,"_tttmpid",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),dt=i(Z.prototype,"_wxad",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),at=i(Z.prototype,"_wxiad",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ut=i(Z.prototype,"_wxtmpid",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),lt=i(Z.prototype,"_serverIP",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ct=i(Z.prototype,"_pid",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return mt.id0}}),i(Z.prototype,"pid",[T],Object.getOwnPropertyDescriptor(Z.prototype,"pid"),Z.prototype),i(Z.prototype,"gname",[C],Object.getOwnPropertyDescriptor(Z.prototype,"gname"),Z.prototype),i(Z.prototype,"gid",[L],Object.getOwnPropertyDescriptor(Z.prototype,"gid"),Z.prototype),i(Z.prototype,"is_local",[B],Object.getOwnPropertyDescriptor(Z.prototype,"is_local"),Z.prototype),i(Z.prototype,"server",[F],Object.getOwnPropertyDescriptor(Z.prototype,"server"),Z.prototype),i(Z.prototype,"serverIP",[H],Object.getOwnPropertyDescriptor(Z.prototype,"serverIP"),Z.prototype),i(Z.prototype,"report",[R],Object.getOwnPropertyDescriptor(Z.prototype,"report"),Z.prototype),i(Z.prototype,"log",[U],Object.getOwnPropertyDescriptor(Z.prototype,"log"),Z.prototype),i(Z.prototype,"ttad",[E],Object.getOwnPropertyDescriptor(Z.prototype,"ttad"),Z.prototype),i(Z.prototype,"ttiad",[G],Object.getOwnPropertyDescriptor(Z.prototype,"ttiad"),Z.prototype),i(Z.prototype,"tttmpid",[J],Object.getOwnPropertyDescriptor(Z.prototype,"tttmpid"),Z.prototype),i(Z.prototype,"wxad",[S],Object.getOwnPropertyDescriptor(Z.prototype,"wxad"),Z.prototype),i(Z.prototype,"wxiad",[q],Object.getOwnPropertyDescriptor(Z.prototype,"wxiad"),Z.prototype),i(Z.prototype,"wxtmpid",[A],Object.getOwnPropertyDescriptor(Z.prototype,"wxtmpid"),Z.prototype),_t=i(Z.prototype,"_use_ch_audio",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ht=i(Z.prototype,"_ch_audio_type",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return h.bundle}}),i(Z.prototype,"use_ch_audio",[X],Object.getOwnPropertyDescriptor(Z.prototype,"use_ch_audio"),Z.prototype),i(Z.prototype,"sount_load_type",[K],Object.getOwnPropertyDescriptor(Z.prototype,"sount_load_type"),Z.prototype),yt=i(Z.prototype,"sound_bundle",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"res"}}),ft=i(Z.prototype,"sound_url",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Y=Z))||Y));s._RF.pop()}}}));
- System.register("chunks:///_virtual/ch_util.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,r,i,o,u,a,s,c,l,h;return{setters:[function(t){e=t.asyncToGenerator},function(t){n=t.cclegacy,r=t.sys,i=t.UITransform,o=t.size,u=t.screen,a=t.view,s=t.assetManager,c=t.SpriteFrame,l=t.Texture2D,h=t.ImageAsset}],execute:function(){n._RF.push({},"1badftMxAdA7p5/bxrvSF8o","ch_util",void 0);var f=function(){function t(){this._k=1e3,this._k_sizes_en=["","K","M","G","T","P","E"],this._k_sizes_cn=["","千","百万","十亿","万亿","拍(千万亿)","艾(十亿亿)"],this._w=1e4,this._w_sizes_en=["","W","M","B","T"],this._w_sizes_cn=["","万","亿","万亿"],this._url_data=null}t.getInstance=function(){return this._instance||(this._instance=new t),this._instance};var n=t.prototype;return n.getRandom=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=1),null==t&&(t=0),null==e&&(e=1),t===e?t:t+Math.random()*(e-t)},n.getRandomInt=function(t,e){return t=Math.ceil(t),e=Math.ceil(e),Math.floor(Math.random()*(e-t))+t},n.getRandomDir=function(){return 0===Math.floor(2*Math.random())?-1:1},n.getRandomDiffValueFromArr=function(t,e){var n=new Array,r=new Array;if(!t||t.length<=0||e<=0)return r;for(var i=0;i<t.length;i++)n.push(t[i]);if(e>=n.length)return n;e=Math.min(e,n.length-1);for(var o=0;o<e;o++){var u=this.getRandomInt(0,n.length-1);r.push(n.splice(u,1)[0])}return r},n.numberToDecimal=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},n.parse=function(t,e){try{return JSON.parse(t,e)}catch(t){return null}},n.stringify=function(t,e,n){try{return JSON.stringify(t,e,n)}catch(t){return null}},n.str_isDoubleWord=function(t){return/[^\x00-\xff]/.test(t)},n.str_isEmpty=function(t){return null==t||null==t||0==t.length},n.numberTotPermil=function(t){return t.toLocaleString()},n.convertNumber=function(t,e,n,r){if(t<e)return t.toString();var i=Math.floor(Math.log(t)/Math.log(e)),o=t/Math.pow(e,i);return i>=n.length?t.toString():""+o.toFixed(r)+n[i]},n.numberToThousand=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!0);var r=n?this._k_sizes_en:this._k_sizes_cn;return this.convertNumber(t,this._k,r,e)},n.numberToTenThousand=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var r=n?this._w_sizes_en:this._w_sizes_cn;return this.convertNumber(t,this._w,r,e)},n.guid=function(){var t=Math.random().toString(36).substring(2);return t},n.obj_sort=function(t){for(var e=Object.keys(t).sort(),n={},r=0;r<e.length;r++){var i=e[r],o=t[i],u=this.obj_get_value_type(o);n[i]="object"==u?this.obj_sort(o):o}return n},n.obj_get_value_type=function(t){var e;return"object"===(e=null===t?"null":typeof t)&&Array.isArray(t)&&(e="array"),e},n.valueIsObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},n.obj_clone=function(t,e){var n;switch(void 0===e&&(e=new Set),typeof t){case"object":if(Array.isArray(t)){if(e.has(t))return t;e.add(t),n=[];for(var r=0;r<t.length;++r)n.push(this.obj_clone(t[r],e))}else if(null===t)n=null;else if(t.constructor===RegExp)n=t;else{if(e.has(t))return t;for(var i in e.add(t),n={},t)n[i]=this.obj_clone(t[i],e)}break;case"function":n=t.bind({});break;default:n=t}return n},n.copy=function(t){return this.parse(this.stringify(t))},n.getReqId=function(){return Date.now()+"_"+Math.ceil(1e3*Math.random())},n.getUrlData=function(t){this._url_data||(this._url_data=this.parseUrl());var e=this._url_data[t];if(void 0===e)return null;if("string"==typeof e){var n=parseFloat(e);return isNaN(n)?e:n}return null},n.parseUrl=function(){if(!r.isBrowser||"object"!=typeof window||!window.document)return{};var t=window.document.location.href.split("?")[1];return t?t.split("&").reduce((function(t,e){var n=e.split("="),r=n[0],i=n[1];return r&&(t[decodeURIComponent(r)]=i?decodeURIComponent(i):""),t}),{}):{}},n.getBtnOp=function(t){var e=t.getComponent(i),n=o(e.width+0,e.height+0),r=u.windowSize.height/u.devicePixelRatio,s=e.getBoundingBoxToWorld(),c=u.devicePixelRatio,l=a.getScaleX()/c,h=r-(s.y+s.height)*l-0;return{left:s.x*l+0,top:h,width:n.width*l,height:n.height*l}},n.loadImage=function(){var t=e((function*(t){if(chsdk.get_pf()==chsdk.pf.web)return yield this.loadRemoteSprite(t);var e=yield chsdk.loadImage(t);return this.getSpriteFrame(e)}));return function(e){return t.apply(this,arguments)}}(),n.loadRemoteSprite=function(t,e){return void 0===e&&(e=".png"),new Promise((function(n){s.loadRemote(t,{ext:e},(function(t,e){var r=new c,i=new l;i.image=e,r.texture=i,n(r)}))}))},n.getSpriteFrame=function(t){if(!t)return null;try{var e=new c,n=new l;return n.image=t instanceof h?t:new h(t),e.texture=n,e}catch(t){return null}},t}();f._instance=void 0;t("default",f.getInstance());n._RF.pop()}}}));
- System.register("chunks:///_virtual/ch.ts",["cc","./audio.ts","./ch_pvp.ts","./ch_util.ts","./sign.ts","./net.ts","./NetPlayer.ts","./NetRoom.ts"],(function(t){var e,n,c,u,o,s;return{setters:[function(t){e=t.cclegacy},function(t){n=t.default},function(t){c=t.default},function(t){u=t.default},function(t){o=t.default},function(t){s=t.ch_net},function(e){t("NetPlayer",e.NetPlayer)},function(e){t("NetRoom",e.NetRoom)}],execute:function(){e._RF.push({},"16801Kyc0VO+7VDvNW2CiaJ","ch",void 0);t("ch",{sdk:chsdk,log:chsdk.log,storage:chsdk.storage,date:chsdk.date,get_new_event:function(){return chsdk.get_new_event()},pvp:c,get_new_net:function(){return new s},util:u,get sign(){return o.getInstance()},get audio(){return n.getInstance()}});e._RF.pop()}}}));
- System.register("chunks:///_virtual/ClickPenetrate.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,o,i,a,r,c,h,l,s,u;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,o=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){a=t.cclegacy,r=t._decorator,c=t.EventHandler,h=t.Vec2,l=t.Button,s=t.Input,u=t.Component}],execute:function(){var p,_,d,b,v,m,f,g,y,T,w;a._RF.push({},"739bfHpcHtB3IXOkilm3JV7","ClickPenetrate",void 0);var C=r.ccclass,E=r.property;t("ClickPenetrate",(p=C("ClickPenetrate"),_=E({tooltip:"滑动会关闭 end 触摸事件"}),d=E({tooltip:"触摸开始",type:c}),b=E({tooltip:"触摸移动",type:c}),v=E({tooltip:"触摸结束",type:c}),p((g=e((f=function(t){function e(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a))||this,o(e,"move_began_end",g,i(e)),o(e,"on_touch_began",y,i(e)),o(e,"on_touch_move",T,i(e)),o(e,"on_touch_end",w,i(e)),e.has_began=!1,e.comp_btn=null,e.is_move=null,e.delta=new h(0,0),e}n(e,t);var a=e.prototype;return a.onLoad=function(){this.comp_btn=this.node.getComponent(l)||this.node.addComponent(l),this.comp_btn.node.on(s.EventType.TOUCH_START,this.onTouchBegan,this),this.comp_btn.node.on(s.EventType.TOUCH_MOVE,this.onTouchMoved,this),this.comp_btn.node.on(s.EventType.TOUCH_END,this.onTouchEnded,this),this.comp_btn.node.on(s.EventType.TOUCH_CANCEL,this.onTouchCancelled,this)},a.onTouchBegan=function(t,e){var n=this;t.preventSwallow=!0,this.has_began=!0,this.is_move=!1,this.delta=new h(0,0),this.on_touch_began.forEach((function(t,e){t.emit([n.comp_btn])}))},a.onTouchMoved=function(t,e){var n=this;if(t.preventSwallow=!0,this.has_began){this.on_touch_move.forEach((function(t,e){t.emit([n.comp_btn])}));var o=t.getDelta();this.delta.x+=o.x,this.delta.y+=o.y,this.delta.length()>=20&&(this.is_move=!0)}},a.onTouchEnded=function(t,e){var n=this;t.preventSwallow=!0,this.has_began&&(this.move_began_end&&this.is_move||(this.on_touch_end.forEach((function(t,e){t.emit([n.comp_btn])})),this.has_began=!1,this.is_move=!1))},a.onTouchCancelled=function(t,e){t.preventSwallow=!0},e}(u)).prototype,"move_began_end",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=e(f.prototype,"on_touch_began",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T=e(f.prototype,"on_touch_move",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=e(f.prototype,"on_touch_end",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=f))||m));a._RF.pop()}}}));
- System.register("chunks:///_virtual/Container.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e;return{setters:[function(t){i=t.createClass},function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"7b367Ns5DhICaZLmc2yobWd","Container",void 0);t("Container",function(){function t(){this._itemList=null,this._itemList=new Array}var e=t.prototype;return e.addCount=function(t,i){return this.addItem({type:t,count:i})},e.useCount=function(t,i){for(var e=0;e<this._itemList.length;e++)if(this._itemList[e].type==t&&this._itemList[e].count>=i)return this._itemList[e].count-=i,this._itemList[e];return null},e.addItem=function(t){for(var i=0;i<this._itemList.length;i++)if(this._itemList[i].type==t.type)return this._itemList[i].count+=t.count,this._itemList[i];return this._itemList.push(t),t},e.getCount=function(t){for(var i=0;i<this._itemList.length;i++)if(this._itemList[i].type==t)return this._itemList[i].count;return 0},e.serialize=function(){for(var t=[],i=0;i<this._itemList.length;i++){var e=this._itemList[i];t.push({type:e.type,count:e.count})}return{list:t}},e.unserialize=function(t){if(t){var i=t.list;this._itemList=[];for(var e=0;e<i.length;e++)this._itemList.push({type:i[e].type,count:i[e].count})}},i(t,[{key:"itemList",get:function(){return this._itemList},set:function(t){this._itemList=t}}]),t}());e._RF.pop()}}}));
- System.register("chunks:///_virtual/DataTimeUtil.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"6aa3eXS6PhBSro7Xyyel0Vs","DataTimeUtil",void 0),t("default",function(){function t(){}return t.currentTimeMillis=function(){return(new Date).getTime()+this.offset},t.currentTimeSeconds=function(){return Math.floor(((new Date).getTime()+this.offset)/1e3)},t.currentDate=function(){return new Date(this.currentTimeMillis())},t.timestampToStartOfDay=function(t){var e=new Date(t);return e.setHours(0,0,0,0),e.getTime()},t.timestampSecondsToStartOfDay=function(t){var e=new Date(1e3*t);return e.setHours(0,0,0,0),Math.floor(e.getTime()/1e3)},t.longToTomorrow=function(){var t=this.currentDate(),e=new Date(t);return e.setDate(t.getDate()+1),e.setHours(0,0,0,0),e.getTime()-t.getTime()},t.currentMonth=function(){return this.currentDate().getMonth()+1},t.daysInCurrentMonth=function(){var t=this.currentDate().getFullYear(),e=new Date(t,this.currentMonth(),0).getDate();return e},t.timeMillisToDate=function(t){return new Date(t)},t.stringToStamp=function(t){return Date.parse(t)-60*(new Date).getTimezoneOffset()*1e3},t.stringToDate=function(t){return new Date(t)},t.dateToString=function(t){var e=t.getFullYear(),r=t.getMonth()+1,n=t.getDate(),o=t.getHours(),a=t.getMinutes(),i=t.getSeconds();return e+"-"+r.toString().padStart(2,"0")+"-"+n.toString().padStart(2,"0")+" "+o.toString().padStart(2,"0")+":"+a.toString().padStart(2,"0")+":"+i.toString().padStart(2,"0")},t.mondayTimestamp=function(){var t=this.currentDate(),e=t.getDay(),r=0===e?6:e-1;return t.getTime()-24*r*60*60*1e3},t.getTickCount=function(){return window&&window.performance?window.performance.now():(new Date).getTime()},t.getFormatBySecond=function(t,e){void 0===e&&(e=1);var r="";switch(e){case 1:r=this.getFormatBySecond1(t);break;case 2:r=this.getFormatBySecond2(t);break;case 3:r=this.getFormatBySecond3(t);break;case 4:r=this.getFormatBySecond4(t);break;case 5:r=this.getFormatBySecond5(t);break;case 6:r=this.getFormatBySecond6(t)}return r},t.getFormatBySecond1=function(t){void 0===t&&(t=0);var e,r=Math.floor(t/3600);e=0==r?"00":r<10?"0"+r:""+r;var n=Math.floor((t-3600*r)/60),o=Math.floor((t-3600*r)%60);return e+":"+(0==n?"00":n<10?"0"+n:""+n)+":"+(0==o?"00":o<10?"0"+o:""+o)},t.getFormatBySecond3=function(t){void 0===t&&(t=0);var e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60),n=Math.floor((t-3600*e)%60);return(0==r?"00":r<10?"0"+r:""+r)+":"+(0==n?"00":n<10?"0"+n:""+n)},t.getFormatBySecond2=function(t){var e=new Date(1e3*t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()},t.getFormatBySecond4=function(t){var e=Math.floor(t/3600);return e>0?e>24?Math.floor(e/24)+"天前":e+"小时前":Math.floor(t/60)+"分钟前"},t.getFormatBySecond5=function(t){var e=3600,r=Math.floor(t/86400),n=Math.floor(t%86400/e),o=Math.floor((t-n*e)/60),a=Math.floor((t-n*e)%60);return t>0?0==r?("",0==n?("",0==o?("",0==a?"":a<10?"0"+a+"秒":a+"秒"):o+"分"+(0==a?"":a<10?"0"+a+"秒":a+"秒")):0==o?("",0==a?"":a<10?"0"+a+"秒":a+"秒"):n+"小时"+(o<10?"0"+o+"分":o+"分")):r+"天"+(0==n?"":n<10?"0"+n+"小时":n+"小时"):""},t.getFormatBySecond6=function(t){void 0===t&&(t=0);var e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60);return(0==e?"00":e<10?"0"+e:""+e)+":"+(0==r?"00":r<10?"0"+r:""+r)},t.getDay=function(t){return new Date(t).getDay()},t.isSameDate=function(t,e){var r=new Date(t),n=new Date(e);return r.getFullYear()==n.getFullYear()&&r.getMonth()==n.getMonth()&&r.getDate()==n.getDate()},t.format=function(t,e){void 0===e&&(e="yyyy-MM-dd hh:mm:ss");var r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length)));return e},t.getDayCountSeconds=function(t,e){var r=Math.abs(e-t);return Math.floor(r/86400)},t.dateDifference=function(t,e){var r=Math.abs(e-t);return Math.ceil(r/864e5)},t}()).offset=0,e._RF.pop()}}}));
- System.register("chunks:///_virtual/Delay.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){e("default",(function(){return new s})),t._RF.push({},"8e7b9WCurJPu4fjNX9PZbRY","Delay",void 0);var s=function(){function e(){this.delays=[],this.paused=!1}var t=e.prototype;return t.start=function(e){var t=this,s=e;return new Promise((function(e){t.delays.push({duration:s,elapsed:0,resolve:e})}))},t.pause=function(){this.paused=!0},t.resume=function(){this.paused=!1},t.update=function(e){if(!this.paused)for(var t=this.delays.length-1;t>=0;t--){var s=this.delays[t];s.elapsed+=e,s.elapsed>=s.duration&&(s.resolve&&(s.resolve(),s.resolve=null),this.delays.splice(t,1))}},t.cancelAll=function(){this.delays.forEach((function(e){e.resolve=null})),this.delays=[]},t.isActive=function(){return this.delays.length>0},e}();t._RF.pop()}}}));
- System.register("chunks:///_virtual/DirectorUtil.ts",["cc"],(function(e){var a,t,s,n,i,c,u,r;return{setters:[function(e){a=e.cclegacy,t=e.director,s=e.AnimationManager,n=e.sp,i=e.TweenSystem,c=e.PhysicsSystem2D,u=e.PhysicsSystem,r=e.Animation}],execute:function(){a._RF.push({},"0dd04xSWM1G07cwb9c87Tja","DirectorUtil",void 0),e("default",function(){function e(){}return e.pause=function(e){var a=this;if(!this.pause_data.state_b){this.pause_data.scheduler_as=t.getScheduler().pauseAllTargets();var r,_=t.getSystem(s.ID);if((r=this.pause_data.anim_as).splice.apply(r,[0,this.pause_data.anim_as.length].concat(_._anims.array)),this.pause_data.anim_as.forEach((function(e){e.pause()})),this.pause_data.spine_as=t.getScene().getComponentsInChildren(n.Skeleton),this.pause_data.spine_as.forEach((function(e){e.timeScale=0})),this.pause_data.tween_target_as=i.instance.ActionManager.pauseAllRunningActions(),c&&c.instance.enable&&(this.pause_data.physics_2d_b=c.instance.enable,c.instance.enable=!1),u&&u.instance.enable&&(this.pause_data.physics_3d_b=u.instance.enable,u.instance.enable=!1),e){var o,p=[];p.push.apply(p,e.exclude_as),null==(o=e.recu_exclude_as)||o.forEach((function(e){p.push.apply(p,a.recu_node_list(e))})),p.forEach((function(e){a.resume_node(e)}))}this.pause_data.state_b=!0}},e.recu_node_list=function(e,a){var t=this;return void 0===a&&(a=[]),e?(a.push(e),e.children.forEach((function(e){a.push(e),t.recu_node_list(e)})),a):a},e.resume=function(){t.getScheduler().resumeTargets(this.pause_data.scheduler_as),this.pause_data.anim_as.forEach((function(e){e.isPlaying&&e.isPaused&&e.play()})),this.pause_data.spine_as.forEach((function(e){e.timeScale=1})),i.instance.ActionManager.resumeTargets(this.pause_data.tween_target_as),this.pause_data.physics_2d_b&&(c.instance.enable=this.pause_data.physics_2d_b),this.pause_data.physics_3d_b&&(u.instance.enable=this.pause_data.physics_3d_b),this.pause_data.state_b=!1},e.pause_node=function(e){(Array.isArray(e)?e:[e]).forEach((function(e){var a;t.getScheduler().pauseTarget(e),null==(a=e.getComponent(r))||a.pause(),e.getComponent(n.Skeleton)&&(e.getComponent(n.Skeleton).timeScale=0),i.instance.ActionManager.pauseTarget(e)}))},e.resume_node=function(e){(Array.isArray(e)?e:[e]).forEach((function(e){var a;t.getScheduler().resumeTarget(e),null==(a=e.getComponent(r))||a.resume(),e.getComponent(n.Skeleton)&&(e.getComponent(n.Skeleton).timeScale=1),i.instance.ActionManager.resumeTarget(e)}))},e}()).pause_data={state_b:!1,physics_2d_b:!1,physics_3d_b:!1,scheduler_as:[],anim_as:[],tween_target_as:[],spine_as:[]},a._RF.pop()}}}));
- System.register("chunks:///_virtual/FMS.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var n,e;return{setters:[function(t){n=t.createClass},function(t){e=t.cclegacy}],execute:function(){t({FMSRegister:function(t){return function(n){var e=new n;e.type=t,r.IFMS.set(t,e)}},default:function(){return new r}}),e._RF.push({},"bbc25Bst09Pm7REKGq+Wn2J","FMS",void 0);var r=function(){function t(){this._current=void 0}var e=t.prototype;return e.Init=function(t){this.Change(t)},e.Change=function(n){this._current&&this._current.onExit(),this._current=t.IFMS.get(n),this._current&&this._current.onEntry()},n(t,[{key:"Current",get:function(){return this._current}},{key:"CurrentTaype",get:function(){return this._current?null:this._current.type}}]),t}();r.IFMS=new Map,e._RF.pop()}}}));
- System.register("chunks:///_virtual/Game.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Delay.ts","./FMS.ts","./TimeJobCenter.ts","./Random.ts","./PrefabPool.ts","./DirectorUtil.ts"],(function(t){var e,n,u,a,o,s,i,c,r,f;return{setters:[function(t){e=t.inheritsLoose,n=t.createClass},function(t){u=t.cclegacy,a=t.Component},function(t){o=t.default},function(t){s=t.default},function(t){i=t.default},function(t){c=t.default},function(t){r=t.default},function(t){f=t.default}],execute:function(){u._RF.push({},"c8af7nfrdRHqaACOmm328nQ","Game",void 0),t("Game",function(t){function u(){for(var e,n=arguments.length,u=new Array(n),a=0;a<n;a++)u[a]=arguments[a];return(e=t.call.apply(t,[this].concat(u))||this).FMS=s(),e.job=i(),e.delay=o(),e.ranodm=c((new Date).getTime()),e.prefabPool=r(),e._paused=!1,e}e(u,t),u.getInst=function(){return this.instance};var a=u.prototype;return a.onLoad=function(){u.instance=this},a.pause=function(){this._paused=!0,f.pause()},a.resume=function(){this._paused=!1,f.resume()},a.update=function(t){this.delay.update(t),this._paused||this.job.Run(t)},n(u,[{key:"is_paused",get:function(){return this._paused}}]),u}(a)).instance=void 0,u._RF.pop()}}}));
- System.register("chunks:///_virtual/GameData.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch.ts","./PeriodData.ts"],(function(t){var i,e,a,n,r,s;return{setters:[function(t){i=t.createClass,e=t.asyncToGenerator},function(t){a=t.cclegacy},function(t){n=t.ch},function(t){r=t.default,s=t.PeriodDataUpdate}],execute:function(){a._RF.push({},"c88bd5RDxxIJ7YUSwv6V1cm","GameData",void 0);t("default",function(){function t(t,i,e,a,n,o,d){this._key=void 0,this._uid=void 0,this._gid=void 0,this._save_time=void 0,this._ver=void 0,this._data=void 0,this._day_data=void 0,this._week_data=void 0,this._month_data=void 0,this._dirty=!1,this._key=e,this._gid=t,this._uid=i,this._data=new r(s.none,a),this._day_data=new r(s.day,n),this._week_data=new r(s.week,o),this._month_data=new r(s.month,d)}var a=t.prototype;return a.checkNewDay=function(){var t,i,e,a=n.date.now();null==(t=this._day_data)||t.check(a),null==(i=this._week_data)||i.check(a),null==(e=this._month_data)||e.check(a)},a.compareVersion=function(t,i){for(var e=t.replace(/^V/,""),a=i.replace(/^V/,""),n=e.split(".").map(Number),r=a.split(".").map(Number),s=0;s<Math.max(n.length,r.length);s++){var o=n[s]||0,d=r[s]||0;if(o<d)return-1;if(o>d)return 1}return 0},a.loadGameDataWithRetry=function(){var t=e((function*(t,i){void 0===t&&(t=3),void 0===i&&(i=1e3);for(var e=0;e<t;){var a=yield this.load_data();if(null!=a)return null!=a?a:null;e++,yield new Promise((function(t){return setTimeout(t,i)}))}return null}));return function(i,e){return t.apply(this,arguments)}}(),a.saveGameDataWithRetry=function(){var t=e((function*(t,i,e){void 0===i&&(i=3),void 0===e&&(e=1e3);for(var a=0;a<i;){if(yield this.save_data(t))return!0;a++,yield new Promise((function(t){return setTimeout(t,e)}))}return!1}));return function(i,e,a){return t.apply(this,arguments)}}(),a.load=function(){var t=e((function*(t){this.on_load(0);var i=n.storage.getObject(this._key,this._gid);(i&&n.sdk.get_inited()&&i.uid!=this._uid&&(i=null),i)||(i=yield this.loadGameDataWithRetry());i?this.unserialize(i):this.on_init(),this.checkVer(t),this.checkNewDay(),this.on_load(1)}));return function(i){return t.apply(this,arguments)}}(),a.save=function(){var t=e((function*(t){if(void 0===t&&(t=!1),this.on_save(0),t)this.setDirty();else if(!this._dirty)return this.on_save(1),!1;var i=yield this.saveGameDataWithRetry(this.serialize());return this.on_save(1),i&&(this._dirty=!1),i}));return function(i){return t.apply(this,arguments)}}(),a.setDirty=function(){this._dirty=!0,n.storage.set(this._key,this.serialize(),this._gid)},a.checkVer=function(t){if(t){this._ver||this.on_ver(!0,this._ver,t);var i=this.compareVersion(this._ver,t);this.on_ver(i<0,this._ver,t),this._ver=t}},a.serialize=function(){var t={};return this._data&&(t.data=this._data.serialize()),this._day_data&&(t.day_data=this._day_data.serialize()),this._week_data&&(t.week_data=this._week_data.serialize()),this._month_data&&(t.month_data=this._month_data.serialize()),t.uid=this._uid,t.gid=this._gid,this._save_time=n.date.now(),t.save_time=this._save_time,this._ver&&(t.ver=this._ver),this.on_serialize(t),t},a.unserialize=function(t){var i,e,a,r,s,o,d;t&&(null==(i=this._data)||i.unserialize(t.data),null==(e=this._day_data)||e.unserialize(t.day_data),null==(a=this._week_data)||a.unserialize(t.week_data),null==(r=this._month_data)||r.unserialize(t.month_data),this._uid=null!=(s=t.uid)?s:this._uid,this._gid=null!=(o=t.gid)?o:this._gid,this._save_time=null!=(d=t.save_time)?d:n.date.now(),t.ver&&(this._ver=t.ver),this.on_unserialize(t))},a.on_init=function(){},a.on_check=function(t,i){return!0},a.on_ver=function(t,i,e){},a.on_serialize=function(t){},a.on_unserialize=function(t){},a.on_save=function(t){},a.on_load=function(t){},a.load_data=function(){var t=e((function*(){var t=yield n.sdk.loadGameData(this._key);return 0===t.code?t.data:(n.log.warn("尝试加载数据失败,错误代码: "+t.code+" "+t.err),null)}));return function(){return t.apply(this,arguments)}}(),a.save_data=function(){var t=e((function*(t){var i=yield n.sdk.saveGameData(this._key,t);return 0==i.code||(n.log.warn("尝试保存数据失败,错误代码: "+i.code+" "+i.err),!1)}));return function(i){return t.apply(this,arguments)}}(),i(t,[{key:"data",get:function(){return this._data}},{key:"day_data",get:function(){return this._day_data}},{key:"week_data",get:function(){return this._week_data}},{key:"month_data",get:function(){return this._month_data}},{key:"uid",get:function(){return this._uid}}]),t}());a._RF.pop()}}}));
- System.register("chunks:///_virtual/HeadIcon.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch.ts"],(function(t){var e,n,i;return{setters:[function(t){e=t.asyncToGenerator},function(t){n=t.cclegacy},function(t){i=t.ch}],execute:function(){t("default",(function(){return new r})),n._RF.push({},"e8ef1bG3LhBg7/PvloyUrDD","HeadIcon",void 0);var r=function(){function t(){this._map=new Map,this._map_uid=new Map}var n=t.prototype;return n.showIcon=function(){var t=e((function*(t,e,n,r){if(void 0===n&&(n=null),e&&"image"!=e){if(this._map.has(t)){var a=this._map.get(t);return n&&(n.spriteFrame=a),a}var u=this._map,s=this._map_uid;n&&n.isValid&&s.set(n,t);var c=yield i.util.loadImage(e);return n&&n.isValid&&s.get(n)==t&&(n.spriteFrame=c),u.set(t,c),c}n&&(n.spriteFrame=r)}));return function(e,n,i,r){return t.apply(this,arguments)}}(),n.clean=function(){this._map.clear(),this._map_uid.clear()},t}();n._RF.pop()}}}));
- System.register("chunks:///_virtual/Instance.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(n){var t,e;return{setters:[function(n){t=n.construct},function(n){e=n.cclegacy}],execute:function(){e._RF.push({},"f298auxhOZIcJjqKwn1kGP+","Instance",void 0);n("default",function(){function n(){}return n.get=function(n){for(var e=arguments.length,c=new Array(e>1?e-1:0),a=1;a<e;a++)c[a-1]=arguments[a];return null==n.__Instance__&&(n.__Instance__=t(n,c)),n.__Instance__},n}());var c=n("Singleton",function(){function n(){if(!this.constructor._instantiateByGetInstance)throw new Error("Singleton class can't be instantiated more than once.")}return n.getInstance=function(){var n=this;return n._instance||(n._instantiateByGetInstance=!0,n._instance=new n,n._instantiateByGetInstance=!1),n._instance},n}());c._instance=void 0,c._instantiateByGetInstance=!1,e._RF.pop()}}}));
- System.register("chunks:///_virtual/Line2DMove.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,r;return{setters:[function(e){t=e.createClass},function(e){n=e.cclegacy,r=e.Vec2}],execute:function(){n._RF.push({},"24592yMfD9O6qsVldhDD3Pb","Line2DMove",void 0);e("Line2DMove",function(){function e(e,t,n,i,s,c){this._s=void 0,this._e=void 0,this._percentSpeed=void 0,this._percentAddSpeed=void 0,this._percent=void 0,this._current=void 0,this._currentDir=void 0,this._ab=new r,this._s=new r(e,t),this._e=new r(n,i),this._current=new r(e,t),this._currentDir=new r(this._e.x-this._s.x,this._e.y-this._s.y).normalize();var _=new r(n,i).subtract2f(e,t).length();_<=0?(this._percent=1,this._percentSpeed=0,this._percentAddSpeed=0):(this._percent=0,this._percentSpeed=s/_,this._percentAddSpeed=c/_)}var n=e.prototype;return n.MoveTo=function(e,t){if(void 0===t&&(t=null),0==this._percentSpeed&&0==this._percentAddSpeed)return this._current;this._percentSpeed+=this._percentAddSpeed*e,this._percent+=this._percentSpeed*e;var n=this.getPos(this._percent,this._s,null==t?this._e:t);return this._current.x=n.x,this._current.y=n.y,this._current},n.getPos=function(e,t,n){return r.lerp(this._ab,t,n,e),this._ab},t(e,[{key:"target_pos_x",get:function(){return this._e.x}},{key:"target_pos_y",get:function(){return this._e.y}},{key:"current_dir",get:function(){return this._currentDir}},{key:"isEnd",get:function(){return this._percent>=1}},{key:"percent",get:function(){return this._percent}}]),e}());n._RF.pop()}}}));
- System.register("chunks:///_virtual/List.ts",["./rollupPluginModLoBabelHelpers.js","cc","./env","./ListItem.ts"],(function(t){var e,i,s,o,n,a,l,r,c,h,_,d,u,m,p,g,f,v,I,y,T,S,w,z,D,N,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,s=t.initializerDefineProperty,o=t.assertThisInitialized,n=t.createClass},function(t){a=t.cclegacy,l=t._decorator,r=t.ScrollView,c=t.Enum,h=t.Node,_=t.Prefab,d=t.CCFloat,u=t.EventHandler,m=t.CCBoolean,p=t.CCInteger,g=t.isValid,f=t.UITransform,v=t.Layout,I=t.instantiate,y=t.NodePool,T=t.Vec3,S=t.Size,w=t.Widget,z=t.tween,D=t.Component},function(t){N=t.DEV},function(t){b=t.default}],execute:function(){var E,P,L,G,C,O,R,U,A,B,k,M,x,V,H,F,X,Y,Z,W,j,q,J,K,Q,$,tt,et,it,st,ot,nt,at,lt,rt,ct,ht,_t,dt,ut,mt,pt,gt;a._RF.push({},"30e50g9bStDgYX3Y3vvH6ye","List",void 0);var ft=l.ccclass,vt=l.property,It=l.disallowMultiple,yt=l.menu,Tt=l.executionOrder,St=l.requireComponent,wt=function(t){return t[t.NODE=1]="NODE",t[t.PREFAB=2]="PREFAB",t}(wt||{}),zt=function(t){return t[t.NORMAL=1]="NORMAL",t[t.ADHERING=2]="ADHERING",t[t.PAGE=3]="PAGE",t}(zt||{}),Dt=function(t){return t[t.NONE=0]="NONE",t[t.SINGLE=1]="SINGLE",t[t.MULT=2]="MULT",t}(Dt||{});t("default",(E=It(),P=yt("List"),L=St(r),G=Tt(-5e3),C=vt({type:c(wt),tooltip:N}),O=vt({type:h,tooltip:N,visible:function(){return this.templateType==wt.NODE}}),R=vt({type:_,tooltip:N,visible:function(){return this.templateType==wt.PREFAB}}),U=vt({}),A=vt({type:c(zt),tooltip:N}),B=vt({type:d,range:[0,1,.1],tooltip:N,slide:!0,visible:function(){return this._slideMode==zt.PAGE}}),k=vt({type:u,tooltip:N,visible:function(){return this._slideMode==zt.PAGE}}),M=vt({}),x=vt({type:m,tooltip:N}),V=vt({tooltip:N,visible:function(){var t=this.slideMode==zt.NORMAL;return t||(this.cyclic=!1),t}}),H=vt({tooltip:N,visible:function(){return this.virtual}}),F=vt({tooltip:N,visible:function(){var t=this.virtual&&!this.lackCenter;return t||(this.lackSlide=!1),t}}),X=vt({type:p}),Y=vt({type:p,range:[0,6,1],tooltip:N,slide:!0}),Z=vt({type:p,range:[0,12,1],tooltip:N,slide:!0}),W=vt({type:u,tooltip:N}),j=vt({type:c(Dt),tooltip:N}),q=vt({type:u,tooltip:N,visible:function(){return this.selectedMode>Dt.NONE}}),J=vt({tooltip:N,visible:function(){return this.selectedMode==Dt.SINGLE}}),K=vt({serializable:!1}),ft(Q=E(Q=P(Q=L(Q=G((tt=e(($=function(t){function e(){for(var e,i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return e=t.call.apply(t,[this].concat(n))||this,s(e,"templateType",tt,o(e)),s(e,"tmpNode",et,o(e)),s(e,"tmpPrefab",it,o(e)),s(e,"_slideMode",st,o(e)),s(e,"pageDistance",ot,o(e)),s(e,"pageChangeEvent",nt,o(e)),s(e,"_virtual",at,o(e)),s(e,"cyclic",lt,o(e)),s(e,"lackCenter",rt,o(e)),s(e,"lackSlide",ct,o(e)),s(e,"_updateRate",ht,o(e)),s(e,"frameByFrameRenderNum",_t,o(e)),s(e,"renderEvent",dt,o(e)),s(e,"selectedMode",ut,o(e)),s(e,"selectedEvent",mt,o(e)),s(e,"repeatEventSingle",pt,o(e)),e._selectedId=-1,e._lastSelectedId=void 0,e.multSelected=void 0,e._forceUpdate=!1,e._align=void 0,e._horizontalDir=void 0,e._verticalDir=void 0,e._startAxis=void 0,e._alignCalcType=void 0,e.content=void 0,e._contentUt=void 0,e.firstListId=void 0,e.displayItemNum=void 0,e._updateDone=!0,e._updateCounter=void 0,e._actualNumItems=void 0,e._cyclicNum=void 0,e._cyclicPos1=void 0,e._cyclicPos2=void 0,s(e,"_numItems",gt,o(e)),e._inited=!1,e._scrollView=void 0,e._layout=void 0,e._resizeMode=void 0,e._topGap=void 0,e._rightGap=void 0,e._bottomGap=void 0,e._leftGap=void 0,e._columnGap=void 0,e._lineGap=void 0,e._colLineNum=void 0,e._lastDisplayData=void 0,e.displayData=void 0,e._pool=void 0,e._itemTmp=void 0,e._itemTmpUt=void 0,e._needUpdateWidget=!1,e._itemSize=void 0,e._sizeType=void 0,e._customSize=void 0,e.frameCount=void 0,e._aniDelRuning=!1,e._aniDelCB=void 0,e._aniDelItem=void 0,e._aniDelBeforePos=void 0,e._aniDelBeforeScale=void 0,e.viewTop=void 0,e.viewRight=void 0,e.viewBottom=void 0,e.viewLeft=void 0,e._doneAfterUpdate=!1,e.elasticTop=void 0,e.elasticRight=void 0,e.elasticBottom=void 0,e.elasticLeft=void 0,e.scrollToListId=void 0,e.adhering=!1,e._adheringBarrier=!1,e.nearestListId=void 0,e.curPageNum=0,e._beganPos=void 0,e._scrollPos=void 0,e._curScrollIsTouch=void 0,e._scrollToListId=void 0,e._scrollToEndTime=void 0,e._scrollToSo=void 0,e._lack=void 0,e._allItemSize=void 0,e._allItemSizeNoEdge=void 0,e._scrollItem=void 0,e._thisNodeUt=void 0,e}i(e,t);var a=e.prototype;return a.onLoad=function(){this._init()},a.onDestroy=function(){var t=this;g(t._itemTmp)&&t._itemTmp.destroy(),g(t.tmpNode)&&t.tmpNode.destroy(),t._pool&&t._pool.clear()},a.onEnable=function(){this._registerEvent(),this._init(),this._aniDelRuning&&(this._aniDelRuning=!1,this._aniDelItem&&(this._aniDelBeforePos&&(this._aniDelItem.position=this._aniDelBeforePos,delete this._aniDelBeforePos),this._aniDelBeforeScale&&(this._aniDelItem.scale=this._aniDelBeforeScale,delete this._aniDelBeforeScale),delete this._aniDelItem),this._aniDelCB&&(this._aniDelCB(),delete this._aniDelCB))},a.onDisable=function(){this._unregisterEvent()},a._registerEvent=function(){var t=this;t.node.on(h.EventType.TOUCH_START,t._onTouchStart,t),t.node.on("touch-up",t._onTouchUp,t),t.node.on(h.EventType.TOUCH_CANCEL,t._onTouchCancelled,t),t.node.on("scroll-began",t._onScrollBegan,t),t.node.on("scroll-ended",t._onScrollEnded,t),t.node.on("scrolling",t._onScrolling,t),t.node.on(h.EventType.SIZE_CHANGED,t._onSizeChanged,t)},a._unregisterEvent=function(){var t=this;t.node.off(h.EventType.TOUCH_START,t._onTouchStart,t),t.node.off("touch-up",t._onTouchUp,t),t.node.off(h.EventType.TOUCH_CANCEL,t._onTouchCancelled,t),t.node.off("scroll-began",t._onScrollBegan,t),t.node.off("scroll-ended",t._onScrollEnded,t),t.node.off("scrolling",t._onScrolling,t),t.node.off(h.EventType.SIZE_CHANGED,t._onSizeChanged,t)},a._init=function(){var t=this;if(!t._inited)if(t._thisNodeUt=t.node.getComponent(f),t._scrollView=t.node.getComponent(r),t.content=t._scrollView.content,t._contentUt=t.content.getComponent(f),t.content){switch(t._layout=t.content.getComponent(v),t._align=t._layout.type,t._resizeMode=t._layout.resizeMode,t._startAxis=t._layout.startAxis,t._topGap=t._layout.paddingTop,t._rightGap=t._layout.paddingRight,t._bottomGap=t._layout.paddingBottom,t._leftGap=t._layout.paddingLeft,t._columnGap=t._layout.spacingX,t._lineGap=t._layout.spacingY,t._colLineNum,t._verticalDir=t._layout.verticalDirection,t._horizontalDir=t._layout.horizontalDirection,t.setTemplateItem(I(t.templateType==wt.PREFAB?t.tmpPrefab:t.tmpNode)),t._slideMode!=zt.ADHERING&&t._slideMode!=zt.PAGE||(t._scrollView.inertia=!1,t._scrollView._onMouseWheel=function(){}),t.virtual||(t.lackCenter=!1),t._lastDisplayData=[],t.displayData=[],t._pool=new y,t._forceUpdate=!1,t._updateCounter=0,t._updateDone=!0,t.curPageNum=0,t.cyclic&&(t._scrollView._processAutoScrolling=this._processAutoScrolling.bind(t),t._scrollView._startBounceBackIfNeeded=function(){return!1}),t._align){case v.Type.HORIZONTAL:switch(t._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:t._alignCalcType=1;break;case v.HorizontalDirection.RIGHT_TO_LEFT:t._alignCalcType=2}break;case v.Type.VERTICAL:switch(t._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:t._alignCalcType=3;break;case v.VerticalDirection.BOTTOM_TO_TOP:t._alignCalcType=4}break;case v.Type.GRID:switch(t._startAxis){case v.AxisDirection.HORIZONTAL:switch(t._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:t._alignCalcType=3;break;case v.VerticalDirection.BOTTOM_TO_TOP:t._alignCalcType=4}break;case v.AxisDirection.VERTICAL:switch(t._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:t._alignCalcType=1;break;case v.HorizontalDirection.RIGHT_TO_LEFT:t._alignCalcType=2}}}t.content.removeAllChildren(),t._inited=!0}else console.error(t.node.name+"'s ScrollView unset content!")},a._processAutoScrolling=function(t){var e=1e-4,i=new T,s=this._scrollView,o=s._isNecessaryAutoScrollBrake(),n=o?.05:1;s._autoScrollAccumulatedTime+=t*(1/n);var a,l=Math.min(1,s._autoScrollAccumulatedTime/s._autoScrollTotalTime);s._autoScrollAttenuate&&(a=l,l=(a-=1)*a*a*a*a+1);var c=s._autoScrollTargetDelta.clone();c.multiplyScalar(l);var h=s._autoScrollStartPosition.clone();h.add(c);var _=Math.abs(l-1)<=e;if(Math.abs(l-1)<=s.getScrollEndedEventTiming()&&!s._isScrollEndedWithThresholdEventFired&&(s._dispatchEvent(r.EventType.SCROLL_ENG_WITH_THRESHOLD),s._isScrollEndedWithThresholdEventFired=!0),s.elastic){var d=h.clone();d.subtract(s._autoScrollBrakingStartPosition),o&&d.multiplyScalar(n),h.set(s._autoScrollBrakingStartPosition),h.add(d)}else{var u=h.clone();u.subtract(s._getContentPosition());var m=s._getHowMuchOutOfBoundary(u);m.equals(i,e)||(h.add(m),_=!0)}_&&(s._autoScrolling=!1);var p=new T(h);p.subtract(s._getContentPosition()),s._clampDelta(p),s._moveContent(p,_),s._dispatchEvent(r.EventType.SCROLLING),s._autoScrolling||(s._isBouncing=!1,s._scrolling=!1,s._dispatchEvent(r.EventType.SCROLL_ENDED))},a.setTemplateItem=function(t){if(t){var e=this;if(e._itemTmp=t,e._itemTmpUt=t.getComponent(f),e._resizeMode==v.ResizeMode.CHILDREN)e._itemSize=e._layout.cellSize;else{var i=t.getComponent(f);e._itemSize=new S(i.width,i.height)}var s=t.getComponent(b),o=!1;switch(s||(o=!0),o&&(e.selectedMode=Dt.NONE),(s=t.getComponent(w))&&s.enabled&&(e._needUpdateWidget=!0),e.selectedMode==Dt.MULT&&(e.multSelected=[]),e._align){case v.Type.HORIZONTAL:e._colLineNum=1,e._sizeType=!1;break;case v.Type.VERTICAL:e._colLineNum=1,e._sizeType=!0;break;case v.Type.GRID:switch(e._startAxis){case v.AxisDirection.HORIZONTAL:var n=e._contentUt.width-e._leftGap-e._rightGap;e._colLineNum=Math.floor((n+e._columnGap)/(e._itemSize.width+e._columnGap)),e._sizeType=!0;break;case v.AxisDirection.VERTICAL:var a=e._contentUt.height-e._topGap-e._bottomGap;e._colLineNum=Math.floor((a+e._lineGap)/(e._itemSize.height+e._lineGap)),e._sizeType=!1}}}},a.checkInited=function(t){return void 0===t&&(t=!0),!!this._inited||(t&&console.error("List initialization not completed!"),!1)},a._resizeContent=function(){var t,e=this;switch(e._align){case v.Type.HORIZONTAL:if(e._customSize){var i=e._getFixedSize(null);t=e._leftGap+i.val+e._itemSize.width*(e._numItems-i.count)+e._columnGap*(e._numItems-1)+e._rightGap}else t=e._leftGap+e._itemSize.width*e._numItems+e._columnGap*(e._numItems-1)+e._rightGap;break;case v.Type.VERTICAL:if(e._customSize){var s=e._getFixedSize(null);t=e._topGap+s.val+e._itemSize.height*(e._numItems-s.count)+e._lineGap*(e._numItems-1)+e._bottomGap}else t=e._topGap+e._itemSize.height*e._numItems+e._lineGap*(e._numItems-1)+e._bottomGap;break;case v.Type.GRID:switch(e.lackCenter&&(e.lackCenter=!1),e._startAxis){case v.AxisDirection.HORIZONTAL:var o=Math.ceil(e._numItems/e._colLineNum);t=e._topGap+e._itemSize.height*o+e._lineGap*(o-1)+e._bottomGap;break;case v.AxisDirection.VERTICAL:var n=Math.ceil(e._numItems/e._colLineNum);t=e._leftGap+e._itemSize.width*n+e._columnGap*(n-1)+e._rightGap}}var a=e.content.getComponent(v);if(a&&(a.enabled=!1),e._allItemSize=t,e._allItemSizeNoEdge=e._allItemSize-(e._sizeType?e._topGap+e._bottomGap:e._leftGap+e._rightGap),e.cyclic){var l=e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width;e._cyclicPos1=0,l-=e._cyclicPos1,e._cyclicNum=Math.ceil(l/e._allItemSizeNoEdge)+1;var r=e._sizeType?e._lineGap:e._columnGap;e._cyclicPos2=e._cyclicPos1+e._allItemSizeNoEdge+r,e._cyclicAllItemSize=e._allItemSize+e._allItemSizeNoEdge*(e._cyclicNum-1)+r*(e._cyclicNum-1),e._cycilcAllItemSizeNoEdge=e._allItemSizeNoEdge*e._cyclicNum,e._cycilcAllItemSizeNoEdge+=r*(e._cyclicNum-1)}e._lack=!e.cyclic&&e._allItemSize<(e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width);var c=e._lack&&e.lackCenter||!e.lackSlide?.1:0,h=e._lack?(e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width)-c:e.cyclic?e._cyclicAllItemSize:e._allItemSize;h<0&&(h=0),e._sizeType?e._contentUt.height=h:e._contentUt.width=h},a._onScrolling=function(t){if(void 0===t&&(t=null),null==this.frameCount&&(this.frameCount=this._updateRate),!this._forceUpdate&&t&&"scroll-ended"!=t.type&&this.frameCount>0)this.frameCount--;else if(this.frameCount=this._updateRate,!this._aniDelRuning){if(this.cyclic){var e=this.content.getPosition();e=this._sizeType?e.y:e.x;var i=this._allItemSizeNoEdge+(this._sizeType?this._lineGap:this._columnGap),s=this._sizeType?new T(0,i,0):new T(i,0,0),o=this.content.getPosition();switch(this._alignCalcType){case 1:e>-this._cyclicPos1?(o.set(-this._cyclicPos2,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s))):e<-this._cyclicPos2&&(o.set(-this._cyclicPos1,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s)));break;case 2:e<this._cyclicPos1?(o.set(this._cyclicPos2,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s))):e>this._cyclicPos2&&(o.set(this._cyclicPos1,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s)));break;case 3:e<this._cyclicPos1?(o.set(o.x,this._cyclicPos2,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s))):e>this._cyclicPos2&&(o.set(o.x,this._cyclicPos1,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s)));break;case 4:e>-this._cyclicPos1?(o.set(o.x,-this._cyclicPos2,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s))):e<-this._cyclicPos2&&(o.set(o.x,-this._cyclicPos1,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s)))}}var n,a,l,r;if(this._calcViewPos(),this._sizeType?(n=this.viewTop,l=this.viewBottom):(a=this.viewRight,r=this.viewLeft),this._virtual){var c;this.displayData=[];var h=0,_=this._numItems-1;if(this._customSize)for(var d=!1;h<=_&&!d;h++)switch(c=this._calcItemPos(h),this._align){case v.Type.HORIZONTAL:c.right>=r&&c.left<=a?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.Type.VERTICAL:c.bottom<=n&&c.top>=l?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.Type.GRID:switch(this._startAxis){case v.AxisDirection.HORIZONTAL:c.bottom<=n&&c.top>=l?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.AxisDirection.VERTICAL:c.right>=r&&c.left<=a?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0)}}else{var u=this._itemSize.width+this._columnGap,m=this._itemSize.height+this._lineGap;switch(this._alignCalcType){case 1:h=(r-this._leftGap)/u,_=(a-this._leftGap)/u;break;case 2:h=(-a-this._rightGap)/u,_=(-r-this._rightGap)/u;break;case 3:h=(-n-this._topGap)/m,_=(-l-this._topGap)/m;break;case 4:h=(l-this._bottomGap)/m,_=(n-this._bottomGap)/m}for(h=Math.floor(h)*this._colLineNum,_=Math.ceil(_)*this._colLineNum,h<0&&(h=0),--_>=this._numItems&&(_=this._numItems-1);h<=_;h++)this.displayData.push(this._calcItemPos(h))}if(this._delRedundantItem(),this.displayData.length<=0||!this._numItems)return void(this._lastDisplayData=[]);this.firstListId=this.displayData[0].id,this.displayItemNum=this.displayData.length;var p=this._lastDisplayData.length,g=this.displayItemNum!=p;if(g&&(this.frameByFrameRenderNum>0&&this._lastDisplayData.sort((function(t,e){return t-e})),g=this.firstListId!=this._lastDisplayData[0]||this.displayData[this.displayItemNum-1].id!=this._lastDisplayData[p-1]),this._forceUpdate||g)if(this.frameByFrameRenderNum>0)this._numItems>0?(this._updateDone?this._updateCounter=0:this._doneAfterUpdate=!0,this._updateDone=!1):(this._updateCounter=0,this._updateDone=!0);else{this._lastDisplayData=[];for(var f=0;f<this.displayItemNum;f++)this._createOrUpdateItem(this.displayData[f]);this._forceUpdate=!1}this._calcNearestItem()}}},a._calcViewPos=function(){var t=this.content.getPosition();switch(this._alignCalcType){case 1:this.elasticLeft=t.x>0?t.x:0,this.viewLeft=(t.x<0?-t.x:0)-this.elasticLeft,this.viewRight=this.viewLeft+this._thisNodeUt.width,this.elasticRight=this.viewRight>this._contentUt.width?Math.abs(this.viewRight-this._contentUt.width):0,this.viewRight+=this.elasticRight;break;case 2:this.elasticRight=t.x<0?-t.x:0,this.viewRight=(t.x>0?-t.x:0)+this.elasticRight,this.viewLeft=this.viewRight-this._thisNodeUt.width,this.elasticLeft=this.viewLeft<-this._contentUt.width?Math.abs(this.viewLeft+this._contentUt.width):0,this.viewLeft-=this.elasticLeft;break;case 3:this.elasticTop=t.y<0?Math.abs(t.y):0,this.viewTop=(t.y>0?-t.y:0)+this.elasticTop,this.viewBottom=this.viewTop-this._thisNodeUt.height,this.elasticBottom=this.viewBottom<-this._contentUt.height?Math.abs(this.viewBottom+this._contentUt.height):0,this.viewBottom+=this.elasticBottom;break;case 4:this.elasticBottom=t.y>0?Math.abs(t.y):0,this.viewBottom=(t.y<0?-t.y:0)-this.elasticBottom,this.viewTop=this.viewBottom+this._thisNodeUt.height,this.elasticTop=this.viewTop>this._contentUt.height?Math.abs(this.viewTop-this._contentUt.height):0,this.viewTop-=this.elasticTop}},a._calcItemPos=function(t){var e,i,s,o,n,a,l,r;switch(this._align){case v.Type.HORIZONTAL:switch(this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:if(this._customSize){var c=this._getFixedSize(t);n=this._leftGap+(this._itemSize.width+this._columnGap)*(t-c.count)+(c.val+this._columnGap*c.count);var h=this._customSize[t];e=h>0?h:this._itemSize.width}else n=this._leftGap+(this._itemSize.width+this._columnGap)*t,e=this._itemSize.width;if(this.lackCenter)n-=this._leftGap,n+=this._contentUt.width/2-this._allItemSizeNoEdge/2;return{id:t,left:n,right:a=n+e,x:n+this._itemTmpUt.anchorX*e,y:this._itemTmp.y};case v.HorizontalDirection.RIGHT_TO_LEFT:if(this._customSize){var _=this._getFixedSize(t);a=-this._rightGap-(this._itemSize.width+this._columnGap)*(t-_.count)-(_.val+this._columnGap*_.count);var d=this._customSize[t];e=d>0?d:this._itemSize.width}else a=-this._rightGap-(this._itemSize.width+this._columnGap)*t,e=this._itemSize.width;if(this.lackCenter)a+=this._rightGap,a-=this._contentUt.width/2-this._allItemSizeNoEdge/2;return{id:t,right:a,left:n=a-e,x:n+this._itemTmpUt.anchorX*e,y:this._itemTmp.y}}break;case v.Type.VERTICAL:switch(this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:if(this._customSize){var u=this._getFixedSize(t);s=-this._topGap-(this._itemSize.height+this._lineGap)*(t-u.count)-(u.val+this._lineGap*u.count);var m=this._customSize[t];i=m>0?m:this._itemSize.height}else s=-this._topGap-(this._itemSize.height+this._lineGap)*t,i=this._itemSize.height;if(this.lackCenter)s+=this._topGap,s-=this._contentUt.height/2-this._allItemSizeNoEdge/2;return{id:t,top:s,bottom:o=s-i,x:this._itemTmp.x,y:o+this._itemTmpUt.anchorY*i};case v.VerticalDirection.BOTTOM_TO_TOP:if(this._customSize){var p=this._getFixedSize(t);o=this._bottomGap+(this._itemSize.height+this._lineGap)*(t-p.count)+(p.val+this._lineGap*p.count);var g=this._customSize[t];i=g>0?g:this._itemSize.height}else o=this._bottomGap+(this._itemSize.height+this._lineGap)*t,i=this._itemSize.height;if(this.lackCenter)o-=this._bottomGap,o+=this._contentUt.height/2-this._allItemSizeNoEdge/2;return{id:t,top:s=o+i,bottom:o,x:this._itemTmp.x,y:o+this._itemTmpUt.anchorY*i}}case v.Type.GRID:var f=Math.floor(t/this._colLineNum);switch(this._startAxis){case v.AxisDirection.HORIZONTAL:switch(this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:r=(o=(s=-this._topGap-(this._itemSize.height+this._lineGap)*f)-this._itemSize.height)+this._itemTmpUt.anchorY*this._itemSize.height;break;case v.VerticalDirection.BOTTOM_TO_TOP:s=(o=this._bottomGap+(this._itemSize.height+this._lineGap)*f)+this._itemSize.height,r=o+this._itemTmpUt.anchorY*this._itemSize.height}switch(l=this._leftGap+t%this._colLineNum*(this._itemSize.width+this._columnGap),this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:l+=this._itemTmpUt.anchorX*this._itemSize.width,l-=this._contentUt.anchorX*this._contentUt.width;break;case v.HorizontalDirection.RIGHT_TO_LEFT:l+=(1-this._itemTmpUt.anchorX)*this._itemSize.width,l-=(1-this._contentUt.anchorX)*this._contentUt.width,l*=-1}return{id:t,top:s,bottom:o,x:l,y:r};case v.AxisDirection.VERTICAL:switch(this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:a=(n=this._leftGap+(this._itemSize.width+this._columnGap)*f)+this._itemSize.width,l=n+this._itemTmpUt.anchorX*this._itemSize.width,l-=this._contentUt.anchorX*this._contentUt.width;break;case v.HorizontalDirection.RIGHT_TO_LEFT:l=(n=(a=-this._rightGap-(this._itemSize.width+this._columnGap)*f)-this._itemSize.width)+this._itemTmpUt.anchorX*this._itemSize.width,l+=(1-this._contentUt.anchorX)*this._contentUt.width}switch(r=-this._topGap-t%this._colLineNum*(this._itemSize.height+this._lineGap),this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:r-=(1-this._itemTmpUt.anchorY)*this._itemSize.height,r+=(1-this._contentUt.anchorY)*this._contentUt.height;break;case v.VerticalDirection.BOTTOM_TO_TOP:r-=this._itemTmpUt.anchorY*this._itemSize.height,r+=this._contentUt.anchorY*this._contentUt.height,r*=-1}return{id:t,left:n,right:a,x:l,y:r}}}},a._calcExistItemPos=function(t){var e=this.getItemByListId(t);if(!e)return null;var i=e.getComponent(f),s=e.getPosition(),o={id:t,x:s.x,y:s.y};return this._sizeType?(o.top=s.y+i.height*(1-i.anchorY),o.bottom=s.y-i.height*i.anchorY):(o.left=s.x-i.width*i.anchorX,o.right=s.x+i.width*(1-i.anchorX)),o},a.getItemPos=function(t){return this._virtual||this.frameByFrameRenderNum?this._calcItemPos(t):this._calcExistItemPos(t)},a._getFixedSize=function(t){if(!this._customSize)return null;null==t&&(t=this._numItems);var e=0,i=0;for(var s in this._customSize)parseInt(s)<t&&(e+=this._customSize[s],i++);return{val:e,count:i}},a._onScrollBegan=function(){this._beganPos=this._sizeType?this.viewTop:this.viewLeft},a._onScrollEnded=function(){var t=this;if(t._curScrollIsTouch=!1,null!=t.scrollToListId){var e=t.getItemByListId(t.scrollToListId);t.scrollToListId=null,e&&z(e).to(.1,{scale:1.06}).to(.1,{scale:1}).start()}t._onScrolling(),t._slideMode!=zt.ADHERING||t.adhering?t._slideMode==zt.PAGE&&(null!=t._beganPos&&t._curScrollIsTouch?this._pageAdhere():t.adhere()):t.adhere()},a._onTouchStart=function(t,e){if(!this._scrollView._hasNestedViewGroup(t,e)&&(this._curScrollIsTouch=!0,!(2===t.eventPhase&&t.target===this.node))){for(var i=t.target;null==i._listId&&i.parent;)i=i.parent;this._scrollItem=null!=i._listId?i:t.target}},a._onTouchUp=function(){var t=this;t._scrollPos=null,t._slideMode==zt.ADHERING?(this.adhering&&(this._adheringBarrier=!0),t.adhere()):t._slideMode==zt.PAGE&&(null!=t._beganPos?this._pageAdhere():t.adhere()),this._scrollItem=null},a._onTouchCancelled=function(t,e){var i=this;i._scrollView._hasNestedViewGroup(t,e)||t.simulate||(i._scrollPos=null,i._slideMode==zt.ADHERING?(i.adhering&&(i._adheringBarrier=!0),i.adhere()):i._slideMode==zt.PAGE&&(null!=i._beganPos?i._pageAdhere():i.adhere()),this._scrollItem=null)},a._onSizeChanged=function(){this.checkInited(!1)&&this._onScrolling()},a._onItemAdaptive=function(t){var e=t.getComponent(f);if(!this._sizeType&&e.width!=this._itemSize.width||this._sizeType&&e.height!=this._itemSize.height){this._customSize||(this._customSize={});var i=this._sizeType?e.height:e.width;this._customSize[t._listId]!=i&&(this._customSize[t._listId]=i,this._resizeContent(),this.updateAll(),null!=this._scrollToListId&&(this._scrollPos=null,this.unschedule(this._scrollToSo),this.scrollTo(this._scrollToListId,Math.max(0,this._scrollToEndTime-(new Date).getTime()/1e3))))}},a._pageAdhere=function(){var t=this;if(t.cyclic||!(t.elasticTop>0||t.elasticRight>0||t.elasticBottom>0||t.elasticLeft>0)){var e=t._sizeType?t.viewTop:t.viewLeft,i=(t._sizeType?t._thisNodeUt.height:t._thisNodeUt.width)*t.pageDistance;if(Math.abs(t._beganPos-e)>i){var s=.5;switch(t._alignCalcType){case 1:case 4:t._beganPos>e?t.prePage(s):t.nextPage(s);break;case 2:case 3:t._beganPos<e?t.prePage(s):t.nextPage(s)}}else t.elasticTop<=0&&t.elasticRight<=0&&t.elasticBottom<=0&&t.elasticLeft<=0&&t.adhere();t._beganPos=null}},a.adhere=function(){var t=this;if(t.checkInited()&&!(t.elasticTop>0||t.elasticRight>0||t.elasticBottom>0||t.elasticLeft>0)){t.adhering=!0,t._calcNearestItem();var e=(t._sizeType?t._topGap:t._leftGap)/(t._sizeType?t._thisNodeUt.height:t._thisNodeUt.width);t.scrollTo(t.nearestListId,.7,e)}},a.update=function(){if(!(this.frameByFrameRenderNum<=0||this._updateDone))if(this._virtual){for(var t=this._updateCounter+this.frameByFrameRenderNum>this.displayItemNum?this.displayItemNum:this._updateCounter+this.frameByFrameRenderNum,e=this._updateCounter;e<t;e++){var i=this.displayData[e];i&&this._createOrUpdateItem(i)}this._updateCounter>=this.displayItemNum-1?this._doneAfterUpdate?(this._updateCounter=0,this._updateDone=!1,this._doneAfterUpdate=!1):(this._updateDone=!0,this._delRedundantItem(),this._forceUpdate=!1,this._calcNearestItem(),this.slideMode==zt.PAGE&&(this.curPageNum=this.nearestListId)):this._updateCounter+=this.frameByFrameRenderNum}else if(this._updateCounter<this._numItems){for(var s=this._updateCounter+this.frameByFrameRenderNum>this._numItems?this._numItems:this._updateCounter+this.frameByFrameRenderNum,o=this._updateCounter;o<s;o++)this._createOrUpdateItem2(o);this._updateCounter+=this.frameByFrameRenderNum}else this._updateDone=!0,this._calcNearestItem(),this.slideMode==zt.PAGE&&(this.curPageNum=this.nearestListId)},a._createOrUpdateItem=function(t){var e=this.getItemByListId(t.id);if(e)this._forceUpdate&&this.renderEvent&&(e.setPosition(new T(t.x,t.y,0)),this._resetItemSize(e),this.renderEvent&&u.emitEvents([this.renderEvent],e,t.id%this._actualNumItems));else{var i=this._pool.size()>0;if(e=i?this._pool.get():I(this._itemTmp),i&&g(e)||(e=I(this._itemTmp),i=!1),e._listId!=t.id)e._listId=t.id,e.getComponent(f).setContentSize(this._itemSize);if(e.setPosition(new T(t.x,t.y,0)),this._resetItemSize(e),this.content.addChild(e),i&&this._needUpdateWidget){var s=e.getComponent(w);s&&s.updateAlignment()}e.setSiblingIndex(this.content.children.length-1);var o=e.getComponent(b);e.listItem=o,o&&(o.listId=t.id,o.list=this,o._registerEvent()),this.renderEvent&&u.emitEvents([this.renderEvent],e,t.id%this._actualNumItems)}this._resetItemSize(e),this._updateListItem(e.listItem),this._lastDisplayData.indexOf(t.id)<0&&this._lastDisplayData.push(t.id)},a._createOrUpdateItem2=function(t){var e,i=this.content.children[t];i?this._forceUpdate&&this.renderEvent&&(i._listId=t,e&&(e.listId=t),this.renderEvent&&u.emitEvents([this.renderEvent],i,t%this._actualNumItems)):((i=I(this._itemTmp))._listId=t,this.content.addChild(i),e=i.getComponent(b),i.listItem=e,e&&(e.listId=t,e.list=this,e._registerEvent()),this.renderEvent&&u.emitEvents([this.renderEvent],i,t%this._actualNumItems)),this._updateListItem(e),this._lastDisplayData.indexOf(t)<0&&this._lastDisplayData.push(t)},a._updateListItem=function(t){if(t&&this.selectedMode>Dt.NONE){var e=t.node;switch(this.selectedMode){case Dt.SINGLE:t.selected=this.selectedId==e._listId;break;case Dt.MULT:t.selected=this.multSelected.indexOf(e._listId)>=0}}},a._resetItemSize=function(t){},a._updateItemPos=function(t){var e=isNaN(t)?t:this.getItemByListId(t),i=this.getItemPos(e._listId);e.setPosition(i.x,i.y)},a.setMultSelected=function(t,e){var i=this;if(i.checkInited()){var s,o;if(Array.isArray(t)||(t=[t]),null==e)i.multSelected=t;else if(e)for(var n=t.length-1;n>=0;n--)s=t[n],(o=i.multSelected.indexOf(s))<0&&i.multSelected.push(s);else for(var a=t.length-1;a>=0;a--)s=t[a],(o=i.multSelected.indexOf(s))>=0&&i.multSelected.splice(o,1);i._forceUpdate=!0,i._onScrolling()}},a.getMultSelected=function(){return this.multSelected},a.hasMultSelected=function(t){return this.multSelected&&this.multSelected.indexOf(t)>=0},a.updateItem=function(t){if(this.checkInited()){Array.isArray(t)||(t=[t]);for(var e=0,i=t.length;e<i;e++){var s=t[e],o=this.getItemByListId(s);o&&u.emitEvents([this.renderEvent],o,s%this._actualNumItems)}}},a.updateAll=function(){this.checkInited()&&(this.numItems=this.numItems)},a.getItemByListId=function(t){if(this.content)for(var e=this.content.children.length-1;e>=0;e--){var i=this.content.children[e];if(i._listId==t)return i}},a._getOutsideItem=function(){for(var t,e=[],i=this.content.children.length-1;i>=0;i--)t=this.content.children[i],this.displayData.find((function(e){return e.id==t._listId}))||e.push(t);return e},a._delRedundantItem=function(){if(this._virtual)for(var t=this._getOutsideItem(),e=t.length-1;e>=0;e--){var i=t[e];if(!this._scrollItem||i._listId!=this._scrollItem._listId){i.isCached=!0,this._pool.put(i);for(var s=this._lastDisplayData.length-1;s>=0;s--)if(this._lastDisplayData[s]==i._listId){this._lastDisplayData.splice(s,1);break}}}else for(;this.content.children.length>this._numItems;)this._delSingleItem(this.content.children[this.content.children.length-1])},a._delSingleItem=function(t){t.removeFromParent(),t.destroy&&t.destroy(),t=null},a.aniDelItem=function(t,e,i){var s=this;if(!s.checkInited()||s.cyclic||!s._virtual)return console.error("This function is not allowed to be called!");if(!e)return console.error("CallFunc are not allowed to be NULL, You need to delete the corresponding index in the data array in the CallFunc!");if(s._aniDelRuning)return console.warn("Please wait for the current deletion to finish!");var o,n=s.getItemByListId(t);if(n){o=n.getComponent(b),s._aniDelRuning=!0,s._aniDelCB=e,s._aniDelItem=n,s._aniDelBeforePos=n.position,s._aniDelBeforeScale=n.scale;var a=s.displayData[s.displayData.length-1].id,l=o.selected;o.showAni(i,(function(){var i;if(a<s._numItems-2&&(i=a+1),null!=i){var o=s._calcItemPos(i);s.displayData.push(o),s._virtual?s._createOrUpdateItem(o):s._createOrUpdateItem2(i)}else s._numItems--;if(s.selectedMode==Dt.SINGLE)l?s._selectedId=-1:s._selectedId-1>=0&&s._selectedId--;else if(s.selectedMode==Dt.MULT&&s.multSelected.length){var r=s.multSelected.indexOf(t);r>=0&&s.multSelected.splice(r,1);for(var c=s.multSelected.length-1;c>=0;c--){s.multSelected[c]>=t&&s.multSelected[c]--}}if(s._customSize){s._customSize[t]&&delete s._customSize[t];var h,_={};for(var d in s._customSize){h=s._customSize[d];var u=parseInt(d);_[u-(u>=t?1:0)]=h}s._customSize=_}for(var m,p,g=null!=i?i:a;g>=t+1;g--)if(n=s.getItemByListId(g)){var f=s._calcItemPos(g-1);m=z(n).to(.2333,{position:new T(f.x,f.y,0)}),g<=t+1&&(p=!0,m.call((function(){s._aniDelRuning=!1,e(t),delete s._aniDelCB}))),m.start()}p||(s._aniDelRuning=!1,e(t),s._aniDelCB=null)}),!0)}else e(t)},a.scrollTo=function(t,e,i,s){void 0===e&&(e=.5),void 0===i&&(i=null),void 0===s&&(s=!1);var o=this;if(o.checkInited(!1)){null==e?e=.5:e<0&&(e=0),t<0?t=0:t>=o._numItems&&(t=o._numItems-1),!o._virtual&&o._layout&&o._layout.enabled&&o._layout.updateLayout();var n,a,l=o.getItemPos(t);if(!l)return N;switch(o._alignCalcType){case 1:n=l.left,n-=null!=i?o._thisNodeUt.width*i:o._leftGap,l=new T(n,0,0);break;case 2:n=l.right-o._thisNodeUt.width,n+=null!=i?o._thisNodeUt.width*i:o._rightGap,l=new T(n+o._contentUt.width,0,0);break;case 3:a=l.top,a+=null!=i?o._thisNodeUt.height*i:o._topGap,l=new T(0,-a,0);break;case 4:a=l.bottom+o._thisNodeUt.height,a-=null!=i?o._thisNodeUt.height*i:o._bottomGap,l=new T(0,-a+o._contentUt.height,0)}var r=o.content.getPosition();r=Math.abs(o._sizeType?r.y:r.x);var c=o._sizeType?l.y:l.x;Math.abs((null!=o._scrollPos?o._scrollPos:r)-c)>.5&&(o._scrollView.scrollToOffset(l,e),o._scrollToListId=t,o._scrollToEndTime=(new Date).getTime()/1e3+e,o._scrollToSo=o.scheduleOnce((function(){if(o._adheringBarrier||(o.adhering=o._adheringBarrier=!1),o._scrollPos=o._scrollToListId=o._scrollToEndTime=o._scrollToSo=null,s){var e=o.getItemByListId(t);e&&z(e).to(.1,{scale:1.05}).to(.1,{scale:1}).start()}}),e+.1),e<=0&&o._onScrolling())}},a._calcNearestItem=function(){var t,e,i,s,o,n,a=this;a.nearestListId=null,a._virtual&&a._calcViewPos(),i=a.viewTop,s=a.viewRight,o=a.viewBottom,n=a.viewLeft;for(var l=!1,r=0;r<a.content.children.length&&!l;r+=a._colLineNum)if(t=a._virtual?a.displayData[r]:a._calcExistItemPos(r))switch(e=a._sizeType?(t.top+t.bottom)/2:e=(t.left+t.right)/2,a._alignCalcType){case 1:t.right>=n&&(a.nearestListId=t.id,n>e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 2:t.left<=s&&(a.nearestListId=t.id,s<e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 3:t.bottom<=i&&(a.nearestListId=t.id,i<e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 4:t.top>=o&&(a.nearestListId=t.id,o>e&&(a.nearestListId+=a._colLineNum),l=!0)}if((t=a._virtual?a.displayData[a.displayItemNum-1]:a._calcExistItemPos(a._numItems-1))&&t.id==a._numItems-1)switch(e=a._sizeType?(t.top+t.bottom)/2:e=(t.left+t.right)/2,a._alignCalcType){case 1:s>e&&(a.nearestListId=t.id);break;case 2:n<e&&(a.nearestListId=t.id);break;case 3:o<e&&(a.nearestListId=t.id);break;case 4:i>e&&(a.nearestListId=t.id)}},a.prePage=function(t){void 0===t&&(t=.5),this.checkInited()&&this.skipPage(this.curPageNum-1,t)},a.nextPage=function(t){void 0===t&&(t=.5),this.checkInited()&&this.skipPage(this.curPageNum+1,t)},a.skipPage=function(t,e){var i=this;if(i.checkInited())return i._slideMode!=zt.PAGE?console.error("This function is not allowed to be called, Must SlideMode = PAGE!"):void(t<0||t>=i._numItems||i.curPageNum!=t&&(i.curPageNum=t,i.pageChangeEvent&&u.emitEvents([i.pageChangeEvent],t),i.scrollTo(t,e)))},a.calcCustomSize=function(t){var e=this;if(e.checkInited()){if(!e._itemTmp)return console.error("Unset template item!");if(!e.renderEvent)return console.error("Unset Render-Event!");e._customSize={};var i=I(e._itemTmp),s=i.getComponent(f);e.content.addChild(i);for(var o=0;o<t;o++)u.emitEvents([e.renderEvent],i,o),s.height==e._itemSize.height&&s.width==e._itemSize.width||(e._customSize[o]=e._sizeType?s.height:s.width);return Object.keys(e._customSize).length||(e._customSize=null),i.removeFromParent(),i.destroy&&i.destroy(),e._customSize}},n(e,[{key:"slideMode",get:function(){return this._slideMode},set:function(t){this._slideMode=t}},{key:"virtual",get:function(){return this._virtual},set:function(t){null!=t&&(this._virtual=t),0!=this._numItems&&this._onScrolling()}},{key:"updateRate",get:function(){return this._updateRate},set:function(t){t>=0&&t<=6&&(this._updateRate=t)}},{key:"selectedId",get:function(){return this._selectedId},set:function(t){var e,i=this;switch(i.selectedMode){case Dt.SINGLE:if(!i.repeatEventSingle&&t==i._selectedId)return;if(e=i.getItemByListId(t),i._selectedId>=0?i._lastSelectedId=i._selectedId:i._lastSelectedId=null,i._selectedId=t,e&&(e.getComponent(b).selected=!0),i._lastSelectedId>=0&&i._lastSelectedId!=i._selectedId){var s=i.getItemByListId(i._lastSelectedId);s&&(s.getComponent(b).selected=!1)}i.selectedEvent&&u.emitEvents([i.selectedEvent],e,t%this._actualNumItems,null==i._lastSelectedId?null:i._lastSelectedId%this._actualNumItems);break;case Dt.MULT:if(!(e=i.getItemByListId(t)))return;var o=e.getComponent(b);i._selectedId>=0&&(i._lastSelectedId=i._selectedId),i._selectedId=t;var n=!o.selected;o.selected=n;var a=i.multSelected.indexOf(t);n&&a<0?i.multSelected.push(t):!n&&a>=0&&i.multSelected.splice(a,1),i.selectedEvent&&u.emitEvents([i.selectedEvent],e,t%this._actualNumItems,null==i._lastSelectedId?null:i._lastSelectedId%this._actualNumItems,n)}}},{key:"numItems",get:function(){return this._actualNumItems},set:function(t){var e=this;if(e.checkInited(!1))if(null==t||t<0)console.error("numItems set the wrong::",t);else if(e._actualNumItems=e._numItems=t,e._forceUpdate=!0,e._virtual)e._resizeContent(),e.cyclic&&(e._numItems=e._cyclicNum*e._numItems),e._onScrolling(),e.frameByFrameRenderNum||e.slideMode!=zt.PAGE||(e.curPageNum=e.nearestListId);else{e.cyclic&&(e._resizeContent(),e._numItems=e._cyclicNum*e._numItems);var i=e.content.getComponent(v);if(i&&(i.enabled=!0),e._delRedundantItem(),e.firstListId=0,e.frameByFrameRenderNum>0){for(var s=e.frameByFrameRenderNum>e._numItems?e._numItems:e.frameByFrameRenderNum,o=0;o<s;o++)e._createOrUpdateItem2(o);e.frameByFrameRenderNum<e._numItems&&(e._updateCounter=e.frameByFrameRenderNum,e._updateDone=!1)}else{for(var n=0;n<e._numItems;n++)e._createOrUpdateItem2(n);e.displayItemNum=e._numItems}}}},{key:"scrollView",get:function(){return this._scrollView}}]),e}(D)).prototype,"templateType",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return wt.NODE}}),et=e($.prototype,"tmpNode",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e($.prototype,"tmpPrefab",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),st=e($.prototype,"_slideMode",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return zt.NORMAL}}),e($.prototype,"slideMode",[A],Object.getOwnPropertyDescriptor($.prototype,"slideMode"),$.prototype),ot=e($.prototype,"pageDistance",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),nt=e($.prototype,"pageChangeEvent",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),at=e($.prototype,"_virtual",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e($.prototype,"virtual",[x],Object.getOwnPropertyDescriptor($.prototype,"virtual"),$.prototype),lt=e($.prototype,"cyclic",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),rt=e($.prototype,"lackCenter",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ct=e($.prototype,"lackSlide",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ht=e($.prototype,"_updateRate",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e($.prototype,"updateRate",[Y],Object.getOwnPropertyDescriptor($.prototype,"updateRate"),$.prototype),_t=e($.prototype,"frameByFrameRenderNum",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dt=e($.prototype,"renderEvent",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),ut=e($.prototype,"selectedMode",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Dt.NONE}}),mt=e($.prototype,"selectedEvent",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),pt=e($.prototype,"repeatEventSingle",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gt=e($.prototype,"_numItems",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Q=$))||Q)||Q)||Q)||Q)||Q));a._RF.pop()}}}));
- System.register("chunks:///_virtual/ListItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./env"],(function(e){var t,i,n,o,r,s,l,a,c,d,u,p,h,f,m,b,g,v;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,o=e.assertThisInitialized,r=e.createClass},function(e){s=e.cclegacy,l=e._decorator,a=e.Sprite,c=e.Node,d=e.Enum,u=e.SpriteFrame,p=e.EventHandler,h=e.UITransform,f=e.tween,m=e.Vec3,b=e.Button,g=e.Component},function(e){v=e.DEV}],execute:function(){var y,C,w,_,S,E,I,F,z,N,T,k,D,H,L,M,G;s._RF.push({},"d2ed4KwTq5JtZePzUbNaDYC","ListItem",void 0);var O=l.ccclass,A=l.property,R=l.disallowMultiple,W=l.menu,P=l.executionOrder,V=function(e){return e[e.NONE=0]="NONE",e[e.TOGGLE=1]="TOGGLE",e[e.SWITCH=2]="SWITCH",e}(V||{});e("default",(y=R(),C=W("List Item"),w=P(-5001),_=A({type:a,tooltip:v}),S=A({type:c,tooltip:v}),E=A({type:d(V),tooltip:v}),I=A({type:c,tooltip:v,visible:function(){return this.selectedMode>V.NONE}}),F=A({type:u,tooltip:v,visible:function(){return this.selectedMode==V.SWITCH}}),z=A({tooltip:v}),O(N=y(N=C(N=w((k=t((T=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return t=e.call.apply(e,[this].concat(r))||this,n(t,"icon",k,o(t)),n(t,"title",D,o(t)),n(t,"selectedMode",H,o(t)),n(t,"selectedFlag",L,o(t)),n(t,"selectedSpriteFrame",M,o(t)),t._unselectedSpriteFrame=null,n(t,"adaptiveSize",G,o(t)),t._selected=!1,t._btnCom=void 0,t.list=void 0,t._eventReg=!1,t.listId=void 0,t}i(t,e);var s=t.prototype;return s.onLoad=function(){if(this.selectedMode==V.SWITCH){var e=this.selectedFlag.getComponent(a);this._unselectedSpriteFrame=e.spriteFrame}},s.onDestroy=function(){this.node.off(c.EventType.SIZE_CHANGED,this._onSizeChange,this)},s._registerEvent=function(){this._eventReg||(this.btnCom&&this.list.selectedMode>0&&this.btnCom.clickEvents.unshift(this.createEvt(this,"onClickThis")),this.adaptiveSize&&this.node.on(c.EventType.SIZE_CHANGED,this._onSizeChange,this),this._eventReg=!0)},s._onSizeChange=function(){this.list._onItemAdaptive(this.node)},s.createEvt=function(e,t,i){if(void 0===i&&(i=null),e.isValid){e.comName=e.comName||e.name.match(/\<(.*?)\>/g).pop().replace(/\<|>/g,"");var n=new p;return n.target=i||e.node,n.component=e.comName,n.handler=t,n}},s.showAni=function(e,t,i){var n,o=this,r=o.node.getComponent(h);switch(e){case 0:n=f(o.node).to(.2,{scale:new m(.7,.7)}).by(.3,{position:new m(0,2*r.height)});break;case 1:n=f(o.node).to(.2,{scale:new m(.7,.7)}).by(.3,{position:new m(2*r.width,0)});break;case 2:n=f(o.node).to(.2,{scale:new m(.7,.7)}).by(.3,{position:new m(0,-2*r.height)});break;case 3:n=f(o.node).to(.2,{scale:new m(.7,.7)}).by(.3,{position:new m(-2*r.width,0)});break;default:n=f(o.node).to(.3,{scale:new m(.1,.1)})}(t||i)&&n.call((function(){if(i){o.list._delSingleItem(o.node);for(var e=o.list.displayData.length-1;e>=0;e--)if(o.list.displayData[e].id==o.listId){o.list.displayData.splice(e,1);break}}t()})),n.start()},s.onClickThis=function(){this.list.selectedId=this.listId},r(t,[{key:"selected",get:function(){return this._selected},set:function(e){if(this._selected=e,this.selectedFlag)switch(this.selectedMode){case V.TOGGLE:this.selectedFlag.active=e;break;case V.SWITCH:var t=this.selectedFlag.getComponent(a);t&&(t.spriteFrame=e?this.selectedSpriteFrame:this._unselectedSpriteFrame)}}},{key:"btnCom",get:function(){return this._btnCom||(this._btnCom=this.node.getComponent(b)),this._btnCom}}]),t}(g)).prototype,"icon",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(T.prototype,"title",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=t(T.prototype,"selectedMode",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return V.NONE}}),L=t(T.prototype,"selectedFlag",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=t(T.prototype,"selectedSpriteFrame",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=t(T.prototype,"adaptiveSize",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N=T))||N)||N)||N)||N));s._RF.pop()}}}));
- System.register("chunks:///_virtual/LocalStorageUtil.ts",["cc"],(function(t){var e,r;return{setters:[function(t){e=t.cclegacy,r=t.sys}],execute:function(){e._RF.push({},"d8e88J+Q9RPtY3fFaop4Z7i","LocalStorageUtil",void 0),t("LocalStorageUtil",function(){function t(){this.temporary=void 0,this._user_id=void 0,this.temporary=new Map}t.getInstance=function(){return this._inst||(this._inst=new t),this._inst};var e=t.prototype;return e.setUserId=function(t){this._user_id=t},e.set=function(t,e){if("object"==typeof e)try{e=JSON.stringify(e)}catch(t){return void console.error("解析失败,str = "+e)}else"number"==typeof e&&(e+="");return this._user_id?r.localStorage.setItem(this._user_id+"_"+t,e):r.localStorage.setItem(t,e),e},e.get=function(t){return null==t?(console.error("存储的key不能为空"),null):(e=this._user_id?r.localStorage.getItem(this._user_id+"_"+t):r.localStorage.getItem(t))?e:void 0;var e},e.getNumber=function(t,e){void 0===e&&(e=0);var r=this.get(t);return"0"==r?Number(r):Number(r)||e},e.getBoolean=function(t){var e=this.get(t);return Boolean(e)||!1},e.getJson=function(t,e){var r=this.get(t);return r&&JSON.parse(r)||e},e.getObject=function(t){var e=this.get(t);try{return JSON.parse(e)}catch(t){return e}},e.removeNormalObject=function(t){r.localStorage.removeItem(t)},e.setNormalObject=function(t,e){return r.localStorage.setItem(t,JSON.stringify(e)),e},e.getNormalObject=function(t){var e;if(e=r.localStorage.getItem(t))try{return JSON.parse(e)}catch(t){return e}},e.removeObject=function(t){r.localStorage.removeItem(t)},e.setTempObject=function(t,e){this.temporary.set(t,e)},e.getTempObject=function(t){return this.temporary.get(t)},e.removeTempObject=function(t){this.temporary.delete(t)},t}())._inst=void 0,e._RF.pop()}}}));
- System.register("chunks:///_virtual/main",["./ModuleDef.ts","./SceneDef.ts","./audio.ts","./ch.ts","./ch_util.ts","./NetBase.ts","./NetPlayer.ts","./NetRoom.ts","./NetTeam.ts","./WsClient.ts","./net.ts","./ch_pvp.ts","./sign.ts","./ch_sdk_comp.ts","./ch_start_pack.ts","./ui.ts","./ui_ResolutionAutoFit.ts","./ui_base.ts","./ArrayUtil.ts","./DataTimeUtil.ts","./DirectorUtil.ts","./Instance.ts","./LocalStorageUtil.ts","./MathUtil.ts","./PathUtil.ts","./ProjectileMathUtil.ts","./ResUtil.ts","./StringUtil.ts","./TableLoadUtil.ts","./UrlUtil.ts","./Utils.ts","./Action.ts","./Container.ts","./Delay.ts","./FMS.ts","./GameData.ts","./HeadIcon.ts","./Line2DMove.ts","./PeriodData.ts","./PrefabPool.ts","./Queue.ts","./Random.ts","./SafeNumber.ts","./Shake.ts","./State.ts","./TimeJobCenter.ts","./Timer.ts","./Toast.ts","./Wait.ts","./ClickPenetrate.ts","./Game.ts","./List.ts","./ListItem.ts","./MotionTrail.ts","./MovieClip.ts","./RewardFly.ts","./SpineView.ts","./UISpineMovie.ts","./Start.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],execute:function(){}}}));
- System.register("chunks:///_virtual/MathUtil.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(n){var t,e,r,i,a;return{setters:[function(n){t=n.createClass},function(n){e=n.cclegacy,r=n.Vec3,i=n.Vec2,a=n.misc}],execute:function(){e._RF.push({},"5df23qNkJ5Jco4b72bZLJJf","MathUtil",void 0);var o=new r,x=180/Math.PI,y=Math.PI/180;n("MathUtil",function(){function n(){}return n.radiansToDegrees=function(n){return n*x},n.degreesToRadians=function(n){return n*y},n.Clamp=function(n,t,e){return n<t?n=t:n>e&&(n=e),n},n.Clamp01=function(n){return this.Clamp(n,0,1)},n.PingPong=function(n,t){return n=this.Repeat(n,2*t),t-Math.abs(n-t)},n.Repeat=function(n,t){return n-Math.floor(n/t)*t},n.Round=function(n){return Math.floor(n+.5)},n.Sign=function(n){return n=n>0?1:n<0?-1:0},n.InverseLerp=function(n,t,e){return n<t?e<n?0:e>t?1:(e-=n,e/=t-n):n<=t?0:e<t?1:e>n?0:1-(e-t)/(n-t)},n.Lerp=function(n,t,e){return n+(t-n)*this.Clamp01(e)},n.LerpUnclamped=function(n,t,e){return n+(t-n)*e},n.DeltaAngle=function(n,t){var e=this.Repeat(t-n,360);return e>180&&(e-=360),e},n.LerpAngle=function(n,t,e){var r=this.Repeat(t-n,360);return r>180&&(r-=360),n+r*this.Clamp01(e)},n.smoothStep=function(n,t,e){return t*(e=-2*(e=this.Clamp01(e))*e*e+3*e*e)+n*(1-e)},n.smoothDamp=function(n,t,e,r,i,a){void 0===a&&(a=Number.POSITIVE_INFINITY);var o=2/(r=Math.max(1e-4,r)),x=o*i,y=1/(1+x+.47999998927116394*x*x+.23499999940395355*x*x*x),u=n-t,s=t,c=a*r,M=this.Clamp(u,-c,c),h=(e+o*M)*i,f=(e-o*h)*y,l=(t=n-M)+(M+h)*y;return s-n>0==l>s&&(f=((l=s)-s)/i),{value:l,velocity:f}},n.getPerpendicular=function(n){return new i(-n.y,n.x).normalize()},n.angleToVector=function(n){return this.zore.clone().rotate(-a.degreesToRadians(n))},n.vectorToAngle=function(n){return-a.radiansToDegrees(n.signAngle(this.zore))},n.angle_to_vector=function(n){var t=this.degreesToRadians(n),e=Math.cos(t),r=Math.sin(t);return new i(e,r).normalize()},n.vector_to_angle=function(n){var t=n.signAngle(this.zore);return-this.radiansToDegrees(t)},n.vector_to_radian=function(n){return n.signAngle(this.zore)},n.RotationMatrix=function(n,t,e){var r=this.degreesToRadians(e),a=Math.sin(r),o=Math.cos(r);return new i(n*o+t*a,n*-a+t*o)},n.RotationDir=function(n,t){var e=this.radiansToDegrees(t),r=Math.sin(e),i=Math.cos(e),a=n.x*i+n.y*r,o=n.x*-r+n.y*i;return n.x=a,n.y=o,n},n.CheckInView=function(n,t,e,r,a){if(i.distance(n,e)<r){if(a>=360)return!0;var o=e.subtract(n).normalize();if(this.radiansToDegrees(i.angle(t,o))<=.5*a)return!0}return!1},n.InConvexQuad=function(n,t,e,r,i){var a,o;return a.x=e.x-t.x,a.y=e.y-t.y,o.x=n.x-t.x,o.y=n.y-t.y,!this.cross2DPoint(o.x,o.y,a.x,a.y)&&(a.x=r.x-e.x,a.y=r.y-e.y,o.x=n.x-e.x,o.y=n.y-e.y,!this.cross2DPoint(o.x,o.y,a.x,a.y)&&(a.x=i.x-r.x,a.y=i.y-r.y,o.x=n.x-r.x,o.y=n.y-r.y,!this.cross2DPoint(o.x,o.y,a.x,a.y)&&(a.x=t.x-i.x,a.y=t.y-i.y,o.x=n.x-i.x,o.y=n.y-i.y,!this.cross2DPoint(o.x,o.y,a.x,a.y))))},n.cross2DPoint=function(n,t,e,r){return n*r-e*t},n.AABBAABB2D=function(n,t,e,r,i,a,o,x){return!(Math.abs(n-i)>e+o)&&!(Math.abs(t-a)>r+x)},n.AABBAABB3D=function(n,t,e,r,i,a,o,x,y,u,s,c){return!(Math.abs(n-o)>r+u)&&(!(Math.abs(t-x)>i+s)&&!(Math.abs(e-y)>a+c))},n.pointPoint=function(n,t){return n.x==t.x&&n.y==t.y},n.onSegement=function(n,t,e){var r,i,a,o;return r=t.x>e.x?t.x:e.x,i=t.x>e.x?e.x:t.x,a=t.y>e.y?t.y:e.y,o=t.y>e.y?e.y:t.y,(n.x-t.x)*(e.y-t.y)==(e.x-t.x)*(n.y-t.y)&&n.x>=i&&n.x<=r&&n.y>=o&&n.y<=a},n.pointInCircle=function(n,t,e){return i.squaredDistance(n,t)<=e*e},n.pointInRect=function(n,t){return n.x>=t.x&&n.x<=t.x+t.width&&n.y>=t.y&&n.y<=t.y+t.height},n.lineInRect=function(n,t,e){var r=n.y-t.y,i=t.x-n.x,a=n.x*t.y-t.x-n.y;return(r*e.xMin+i*e.yMin+a>=0&&r*e.xMax+i*e.yMax+a<=0||r*e.xMin+i*e.yMin+a<=0&&r*e.xMax+i*e.yMax+a>=0||r*e.xMin+i*e.yMax+a>=0&&r*e.xMax+i*e.yMin+a<=0||r*e.xMin+i*e.yMax+a<=0&&r*e.xMax+i*e.yMin+a>=0)&&!(n.x<e.xMin&&t.x<e.xMin||n.x>e.xMax&&t.x>e.xMax||n.y>e.yMin&&t.y>e.yMin||n.y<e.yMax&&t.y<e.yMax)},n.collisionRectWithRect=function(n,t){var e=Math.max(n.xMin,t.xMin),r=Math.max(n.yMin,t.yMin),i=Math.min(n.xMax,t.xMax),a=Math.min(n.yMax,t.yMax);return!(e>i||r>a)},n.collisionRectWithCircle=function(n,t,e){var r=n.xMin,a=n.yMin,o=n.xMax,x=n.yMax,y=i.distance(t,new i(r,a)),u=i.distance(t,new i(r,x)),s=i.distance(t,new i(o,a)),c=i.distance(t,new i(o,x));return y<e||u<e||s<e||c<e||(t.x>r-e&&t.x<o+e&&t.y>a&&t.y<x||t.x>r&&t.x<o&&t.y>a-e&&t.y<x+e)},n.projectOnPlane=function(n,t){var e=r.dot(n,t),i=o.set(t).multiplyScalar(e);return r.subtract(new r,n,i)},n.signedAngle=function(n,t,e){var i=this.projectOnPlane(n,e),a=this.projectOnPlane(t,e),o=i.normalize(),x=a.normalize(),y=r.cross(new r,o,x).normalize(),u=r.dot(y,e);return Math.acos(r.dot(o,x))*u*this.rad2Deg},n.GetYDir=function(n,t){var e=t.subtract(n);return e.y=n.y,e.normalize()},n.RotateAroundAxisY=function(n,t){n=n.clone();var e=this.degreesToRadians(t),r=Math.cos(e),i=Math.sin(e);return n.x=n.x*r+n.z*i,n.z=n.x*-i+n.z*r,n},n.RotateAroundAxisX=function(n,t){n=n.clone();var e=this.degreesToRadians(t),r=Math.cos(e),i=Math.sin(e);return n.y=n.y*r-n.z*i,n.z=n.y*i+n.z*r,n},n.RotateAroundAxisZ=function(n,t){n=n.clone();var e=this.degreesToRadians(t),r=Math.cos(e),i=Math.sin(e);return n.x=n.x*r-n.y*i,n.y=n.x*i+n.y*r,n},n.LineRectIntersection=function(n,t,e,r,i,a){var o=t;n.x<=t.x&&(o=n);var x=n;n.x<=t.x&&(x=t);var y=t;n.y<=t.y&&(y=n);var u=n;if(n.y<=t.y&&(u=t),o.x<=e&&e<=x.x){var s=(x.y-o.y)/(x.x-o.x),c=(e-o.x)*s+o.y;if(y.y<=c&&c<=u.y&&i<=c&&c<=a)return!0}if(o.x<=r&&r<=x.x){var M=(x.y-o.y)/(x.x-o.x),h=(r-o.x)*M+o.y;if(y.y<=h&&h<=u.y&&i<=h&&h<=a)return!0}if(y.y<=a&&a<=u.y){var f=(u.x-y.x)/(u.y-y.y),l=(a-y.y)*f+y.x;if(o.x<=l&&l<=x.x&&e<=l&&l<=r)return!0}if(y.y<=i&&i<=u.y){var d=(u.x-y.x)/(u.y-y.y),g=(i-y.y)*d+y.x;if(o.x<=g&&g<=x.x&&e<=g&&g<=r)return!0}return!1},t(n,null,[{key:"rad2Deg",get:function(){return x}},{key:"deg2Rad",get:function(){return y}}]),n}()).zore=new i(1,0),e._RF.pop()}}}));
- System.register("chunks:///_virtual/ModuleDef.ts",["cc"],(function(e){var u;return{setters:[function(e){u=e.cclegacy}],execute:function(){u._RF.push({},"755bdpf6lRIfLHpmBltN1fn","ModuleDef",void 0);var t=e("ModuleDef",(function(){}));t.BASIC="module_basic",t.EXTRA="module_extra",t.GAME="module_game",u._RF.pop()}}}));
- System.register("chunks:///_virtual/MotionTrail.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,i,o,a,n,s,l,u,p,d,h,c,f,y,g,v;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.inheritsLoose,i=e.initializerDefineProperty,o=e.assertThisInitialized,a=e.createClass},function(e){n=e.cclegacy,s=e._decorator,l=e.SpriteFrame,u=e.CCInteger,p=e.CurveRange,d=e.GradientRange,h=e.UITransform,c=e.director,f=e.Director,y=e.UIRenderer,g=e.v2,v=e.DynamicAtlasManager}],execute:function(){var m,D,_,b,C,R,x,w,F,O,S,z,M,W,k,P,T,X,N;n._RF.push({},"bb8ffN3AwpEqJr3cZDOVdXJ","MotionTrail",void 0);var V=function(){this.x=0,this.y=0,this.dis=0,this.cos=0,this.sin=0},Y=s.ccclass,B=s.property,E=s.executeInEditMode,j=s.menu,A=(e("default",(m=j("Comp/MotionTrail"),D=E(),_=B({visible:!1}),b=B({type:l,displayName:"SpriteFrame"}),C=B({displayName:"世界坐标",tooltip:"顶点坐标是世界坐标还是本地坐标"}),R=B({displayName:"偏移"}),x=B({type:u,displayName:"拖尾长度"}),w=B({type:p,displayName:"宽度变化",range:[0,1]}),F=B({type:p,displayName:"宽度变化",range:[0,1]}),O=B({type:d,displayName:"颜色变化"}),S=B({type:d,displayName:"颜色变化"}),Y(z=m(z=D((t((M=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,i(t,"_spriteFrame",W,o(t)),i(t,"_isWorldXY",k,o(t)),i(t,"offset",P,o(t)),i(t,"_length",T,o(t)),t.trailData=[],i(t,"_sizeCurveRange",X,o(t)),i(t,"_colorCurveRange",N,o(t)),t._useVertexOpacity=!0,t}r(t,e);var n=t.prototype;return n._render=function(e){e.commitComp(this,this.renderData,this._spriteFrame,this._assembler,null)},n._flushAssembler=function(){this._assembler=A,this._renderData||(this._renderData=this.requestRenderData(),this._renderData.material=this.getRenderMaterial(0),this.freshBuffer(),this.markForUpdateRenderData(),this._spriteFrame&&this._assembler.updateUVs(this),this._updateColor())},n.freshBuffer=function(){var e=4+2*(this.length-2);this._renderData.dataLength=e,this._renderData.resize(e,3*(e-2))},n.updateLength=function(){var e=this.length,t=e-this.trailData.length;if(t>0)for(var r=0;r<t;++r)this.trailData.push(new V);else t<0&&this.trailData.splice(e)},n.updateWidth=function(){for(var e=this.trailData,t=this.length,r=this.getComponent(h).width/2,i=0;i<t;++i)e[i].dis=this.sizeCurveRange.evaluate(i/(t-1),0)*r},n.resetPos=function(){var e=this.trailData,t=this.offset.x,r=this.offset.y;this.isWorldXY?(t+=this.node.worldPosition.x,r+=this.node.worldPosition.y):(t+=this.node.position.x,r+=this.node.position.y);for(var i=0,o=this.length;i<o;i++)e[i].x=t,e[i].y=r},n.onLoad=function(){this.length=this._length},n.onEnable=function(){e.prototype.onEnable.call(this),c.once(f.EVENT_BEFORE_DRAW,this.resetPos,this)},a(t,[{key:"color",get:function(){return this._color}},{key:"spriteFrame",get:function(){return this._spriteFrame},set:function(e){this._spriteFrame=e}},{key:"isWorldXY",get:function(){return this._isWorldXY},set:function(e){this._isWorldXY=e}},{key:"length",get:function(){return this._length},set:function(e){this._length=Math.max(e,0),this.updateLength(),this.updateWidth(),this.resetPos(),this.freshBuffer()}},{key:"sizeCurveRange",get:function(){return this._sizeCurveRange},set:function(e){this._sizeCurveRange=e,this.updateWidth()}},{key:"colorCurveRange",get:function(){return this._colorCurveRange},set:function(e){this._colorCurveRange=e,this._updateColor()}}]),t}(y)).prototype,"color",[_],Object.getOwnPropertyDescriptor(M.prototype,"color"),M.prototype),W=t(M.prototype,"_spriteFrame",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),t(M.prototype,"spriteFrame",[b],Object.getOwnPropertyDescriptor(M.prototype,"spriteFrame"),M.prototype),k=t(M.prototype,"_isWorldXY",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),t(M.prototype,"isWorldXY",[C],Object.getOwnPropertyDescriptor(M.prototype,"isWorldXY"),M.prototype),P=t(M.prototype,"offset",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g(0,0)}}),T=t(M.prototype,"_length",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 20}}),t(M.prototype,"length",[x],Object.getOwnPropertyDescriptor(M.prototype,"length"),M.prototype),X=t(M.prototype,"_sizeCurveRange",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new p}}),t(M.prototype,"sizeCurveRange",[F],Object.getOwnPropertyDescriptor(M.prototype,"sizeCurveRange"),M.prototype),N=t(M.prototype,"_colorCurveRange",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new d}}),t(M.prototype,"colorCurveRange",[S],Object.getOwnPropertyDescriptor(M.prototype,"colorCurveRange"),M.prototype),z=M))||z)||z)||z)),{updateRenderData:function(e){var t=e.spriteFrame;v.instance.packToDynamicAtlas(e,t),this.updateUVs(e);var r=e.renderData;r&&t&&(r.vertDirty&&this.updateVertexData(e),r.updateRenderData(e,t))},updateWorldVerts:function(e){var t=e.renderData,r=t.chunk.vb,i=e.length;if(!(i<1)){var o=0,a=0,n=e.trailData;e.isWorldXY||(o=e.node.position.x,a=e.node.position.y);for(var s=0,l=0,u=0,p=null,d=null,h=0;h<i;++h){p=n[h];for(var c=h;c<i&&((d=n[c]).x==p.x&&d.y==p.y);++c);if((c-=1)==h)s=p.x-o,l=p.y-a,r[u]=s+p.dis*p.sin,r[u+1]=l-p.dis*p.cos,r[u+2]=0,r[u+=t.floatStride]=s-p.dis*p.sin,r[u+1]=l+p.dis*p.cos,r[u+2]=0,u+=t.floatStride;else for(s=(p=n[c]).x-o,l=p.y-a,r[u]=s+p.dis*p.sin,r[u+1]=l-p.dis*p.cos,r[u+2]=0,r[u+=t.floatStride]=s-p.dis*p.sin,r[u+1]=l+p.dis*p.cos,r[u+2]=0,u+=t.floatStride;h<c;++h)r[u]=r[u-2*t.floatStride],r[u+1]=r[u-2*t.floatStride+1],r[u+2]=0,r[u+=t.floatStride]=r[u-2*t.floatStride],r[u+1]=r[u-2*t.floatStride+1],r[u+2]=0,u+=t.floatStride}}},fillBuffers:function(e){if(null!=e.spriteFrame){var t=e.renderData.chunk;this.update(e),this.updateWorldVerts(e,t);for(var r=t.vertexOffset,i=t.meshBuffer,o=t.meshBuffer.iData,a=i.indexOffset,n=r,s=e.length-1,l=0;l<s;l++)o[a++]=n+0,o[a++]=n+1,o[a++]=n+2,o[a++]=n+1,o[a++]=n+3,o[a++]=n+2,n+=2;i.indexOffset+=6*s}},updateVertexData:function(e){e.renderData.vertDirty=!0},updateUVs:function(e){if(null!=e.spriteFrame){for(var t=e.renderData,r=t.chunk.vb,i=e.spriteFrame.uv,o=e.length-1,a=0==o?0:1/o,n=3,s=i[7]-i[1],l=0;l<o;l++)r[n]=i[0],r[n+1]=i[1]+s*l*a,r[n+=t.floatStride]=i[0],r[n+1]=i[3]+s*l*a,n+=t.floatStride;r[n]=i[0],r[n+1]=i[7],r[n+=t.floatStride]=i[0],r[n+1]=i[5],n+=t.floatStride}},updateColor:function(e){for(var t,r,i=e.renderData,o=i.chunk.vb,a=4+2*(e.length-2),n=e.length,s=-1,l=5,u=0;u<a;u++)u%2==0&&(r=e.colorCurveRange.mode===d.Mode.TwoGradients||e.colorCurveRange.mode===d.Mode.TwoColors?Math.random():0,t=e.colorCurveRange.evaluate(s/n,r),s++),o[l]=t.r/255,o[l+1]=t.g/255,o[l+2]=t.b/255,o[l+3]=t.a/255,l+=i.floatStride},update:function(e){if(0!==e.length){for(var t=e.trailData,r=e.length-1;r>0;--r){var i=t[r],o=t[r-1];i.x=o.x,i.y=o.y,i.sin=o.sin,i.cos=o.cos}var a=null;a=e.isWorldXY?e.node.worldPosition:e.node.position;var n=t[0];n.x=e.offset.x+a.x,n.y=e.offset.y+a.y;var s=t[1],l=Math.atan2(s.y-n.y,s.x-n.x);n.sin=Math.sin(l),n.cos=Math.cos(l)}},updateOpacity:function(e,t){for(var r,i,o=e.renderData,a=o.chunk.vb,n=4+2*(e.length-2),s=e.length,l=-1,u=5,p=0;p<n;p++)p%2==0&&(i=e.colorCurveRange.mode===d.Mode.TwoGradients||e.colorCurveRange.mode===d.Mode.TwoColors?Math.random():0,r=e.colorCurveRange.evaluate(l/s,i),l++),a[u+3]=r.a/255*t,u+=o.floatStride}});n._RF.pop()}}}));
- System.register("chunks:///_virtual/MovieClip.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,r,n,s,o,a,h,l,p,u,c,m,d,y,f,b;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,r=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){s=t.cclegacy,o=t._decorator,a=t.CCFloat,h=t.Texture2D,l=t.CCInteger,p=t.CCBoolean,u=t.Sprite,c=t.SpriteFrame,m=t.Rect,d=t.Vec2,y=t.Size,f=t.UITransform,b=t.Component}],execute:function(){var _,g,w,x,I,T,v,z,A,F,C,D,H,L,P,S,W,M,B,O,R,N,V,Y,j;s._RF.push({},"008df+Vqs9NT7+AfYBNY6bw","MovieClip",void 0);var k=o.ccclass,q=o.property;t("default",(_=k("MovieClip"),g=q({type:a}),w=q({type:h}),x=q({type:l}),I=q({type:l}),T=q({type:l}),v=q({type:l}),z=q(p),A=q(p),F=q(p),C=q(a),D=q(a),_((P=i((L=function(t){function i(){for(var i,e=arguments.length,s=new Array(e),o=0;o<e;o++)s[o]=arguments[o];return(i=t.call.apply(t,[this].concat(s))||this).m_sprite=null,i.timer=.1,r(i,"interval",P,n(i)),r(i,"texture",S,n(i)),r(i,"playTimes",W,n(i)),r(i,"row",M,n(i)),r(i,"col",B,n(i)),r(i,"rowIndex",O,n(i)),r(i,"isAll",R,n(i)),r(i,"autoPlayOnLoad",N,n(i)),r(i,"autoDestroy",V,n(i)),r(i,"begin",Y,n(i)),r(i,"end",j,n(i)),i.totalFrame=8,i.currentFrame=0,i.currentTimes=0,i.running=!0,i._playIndex=0,i._pieceWidth=0,i._pieceHeight=0,i._bitmapArr=[],i}e(i,t);var s=i.prototype;return s.onLoad=function(){0==this.end&&(this.end=this.col),this.rowIndex=this.clamp(this.rowIndex,0,this.row-1),this._pieceWidth=this.texture.width/this.col,this._pieceHeight=this.texture.height/this.row,this.m_sprite=this.getComponent(u),this.m_sprite||(this.m_sprite=this.addComponent(u));for(var t=0;t<this.row;t++){this._bitmapArr[t]=[];for(var i=0;i<this.col;i++){var e=new c;e.texture=this.texture,e.rect=new m(i*this._pieceWidth,t*this._pieceHeight,this._pieceWidth,this._pieceHeight),e.rotated=!1,e.offset=new d(0,0),e.originalSize=new y(this._pieceWidth,this._pieceHeight),this._bitmapArr[t][i]=e}}this.m_sprite.spriteFrame=this._bitmapArr[this.rowIndex][0],this.m_sprite.spriteFrame.width;var r=this.getComponent(f);r&&(r.width=this._pieceWidth,r.height=this._pieceHeight),this.timer=0,this.running=this.autoPlayOnLoad},s.update=function(t){this.running&&(0==this.playTimes||this.currentTimes!=this.playTimes?(this.timer-=t,this.timer<=0&&(this.timer=this.interval,this.currentFrame=this.currentFrame%this.col,this.playAction(),this.currentFrame++,this.currentFrame==this.col&&(this.isAll?(this.rowIndex++,this.rowIndex==this.row&&(this.currentTimes++,this.node.emit("completeTimes"),0!=this.playTimes&&this.currentTimes==this.playTimes&&(this.node.emit("complete"),this.autoDestroy&&this.node.destroy())),this.rowIndex%=this.row):(this.currentTimes++,this.node.emit("completeTimes"),0!=this.playTimes&&this.currentTimes==this.playTimes&&(this.node.emit("complete"),this.autoDestroy&&this.node.destroy()))))):this.running=!1)},s.playAction=function(){this.rowIndex=this.clamp(this.rowIndex,0,this.row-1),this._playIndex=this._playIndex%(this.end-this.begin)+this.begin,this.m_sprite.spriteFrame=this._bitmapArr[this.rowIndex][this._playIndex],this._playIndex++},s.play=function(){this.running=!0},s.stop=function(){this.running=!1},s.gotoAndPlay=function(t){this.running=!0,this._playIndex=t,this._playIndex=this.clamp(this._playIndex,0,this.col-1)},s.gotoAndStop=function(t){this.running=!1,this._playIndex=t,this._playIndex=this.clamp(this._playIndex,0,this.col-1),this.m_sprite.spriteFrame=this._bitmapArr[this.rowIndex][this._playIndex]},s.clamp=function(t,i,e){return t<i?i:t>e?e:t},i}(b)).prototype,"interval",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),S=i(L.prototype,"texture",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=i(L.prototype,"playTimes",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),M=i(L.prototype,"row",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 4}}),B=i(L.prototype,"col",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 4}}),O=i(L.prototype,"rowIndex",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),R=i(L.prototype,"isAll",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N=i(L.prototype,"autoPlayOnLoad",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),V=i(L.prototype,"autoDestroy",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Y=i(L.prototype,"begin",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),j=i(L.prototype,"end",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),H=L))||H));s._RF.pop()}}}));
- System.register("chunks:///_virtual/net.ts",["./rollupPluginModLoBabelHelpers.js","cc","./NetRoom.ts","./NetTeam.ts","./WsClient.ts"],(function(t){var e,n,s,a,i,o;return{setters:[function(t){e=t.createClass,n=t.asyncToGenerator},function(t){s=t.cclegacy},function(t){a=t.NetRoom},function(t){i=t.NetTeam},function(t){o=t.WsClient}],execute:function(){s._RF.push({},"3f10au8XnFG2b0ZjXy1nl0i","net",void 0);var r="pong",c="c2s_update_user_gameData",h="c2s_message",_="c2s_talk";t("ch_net",function(){var t=s.prototype;function s(){this.state=chsdk.get_new_event(),this._ws=null,this._url=void 0,this._ca=void 0,this.reconnection=void 0,this.reconnectCount=void 0,this.reconnectInterval=void 0,this.timeoutInterval=void 0,this.gameDataInterval=void 0,this.gameEvtInterval=void 0,this.timeout=null,this.json=!1,this.heartbeatInterval=null,this.dirtyDataCheckInterval=null,this.evtCheckInterval=null,this._currentReconnectCount=0,this._pingTime=0,this._ping=0,this._callbacks={},this._waitSends=[],this._lv={LowerRank:0,Rank:0,Star:0},this._team=void 0,this._room=void 0,this._waitSends=[],this._callbacks={}}return t._new_resolve=function(t){var e=this;return new Promise((function(n){return e._callbacks[t]=n}))},t._do_resolve=function(t,e){var n=this._callbacks[t];return!!n&&(n(e),delete this._callbacks[t],!0)},t.init=function(t,e){var n,s,a,i,r,c,h,_;this._url=t,this._url=this._url+(null!=e&&null!=(n=e.query)&&n.length?"?"+e.query:""),this._ca=null==e?void 0:e.ca,this.reconnection=null==(s=null==e?void 0:e.reconnection)||s,this.reconnectCount=null!=(a=null==e?void 0:e.reconnectCount)?a:10,this.reconnectInterval=null!=(i=null==e?void 0:e.reconnectInterval)?i:2e3,this.timeoutInterval=null!=(r=null==e?void 0:e.timeoutInterval)?r:3e4,this.gameDataInterval=null!=(c=null==e?void 0:e.gameDataInterval)?c:200,this.gameEvtInterval=null!=(h=null==e?void 0:e.gameEvtInterval)?h:66,this.json=null!=(_=null==e?void 0:e.json)&&_,this._ws=new o(this._url,this._ca),this._ws.onConnected=this._onConnected.bind(this),this._ws.onError=this._onError.bind(this),this._ws.onClosing=this._onClosing.bind(this),this._ws.onClosed=this._onClosed.bind(this),this._ws.onMessage=this._onMessage.bind(this);var l="undefined"!=typeof ArrayBuffer;console.log("ch_net 初始化 ver:","0.1.8",l,this.json,this._url),chsdk.sdk_event.on("hide",this.on_hide,this),chsdk.sdk_event.on("show",this.on_show,this)},t.dispose=function(){this.state.clearAll(),this._clear_team(),this._clear_room(),this._callbacks={},this._waitSends.length=0,this._ws.close(5e3,"client disconnect"),chsdk.sdk_event.off("hide",this.on_hide,this),chsdk.sdk_event.off("show",this.on_show,this)},t.on_hide=function(){this.inRoom&&this.send_data("c2s_to_backed")},t.on_show=function(){this.inRoom&&this.send_data("c2s_backed_return")},t.encode=function(t){return this.json?JSON.stringify(t):msgpack.encode(t)},t.decode=function(t){return function(t){try{return t instanceof ArrayBuffer}catch(t){return!1}}(t)?msgpack.decode(new Uint8Array(t)):JSON.parse(t)},t.send_data=function(t,e){this._send(this.encode(e?{type:t,data:e}:{type:t}))},t.connect=function(){var t=n((function*(){return this._ws?this._ws.connect()?(this.state.emit(this.state.key.Connecting),this._new_resolve("connect")):"no netconnect":(chsdk.log.error("not init"),"not init")}));return function(){return t.apply(this,arguments)}}(),t.reconnect=function(){if(!this._ws)return chsdk.log.error("not init"),"not init";this._currentReconnectCount=1,this.do_reconnect()},t.do_reconnect=function(){this._ws.connect()&&this.state.emit(this.state.key.Reconnecting,this._currentReconnectCount)},t.creat_team=function(){var t=n((function*(t){return void 0===t&&(t=4),this._ws?this.inTeam?null:(this.send_data("c2s_set_team",t),this._new_resolve("creat_team")):"no netconnect"}));return function(e){return t.apply(this,arguments)}}(),t.join_team=function(){var t=n((function*(t){return this._ws?this.inTeam?null:(this.send_data("c2s_join_team",{password:t}),this._new_resolve("join_team")):"no netconnect"}));return function(e){return t.apply(this,arguments)}}(),t.exit_team=function(){var t=n((function*(){return this._ws?this.inTeam?this.inRoom?"in game":(this.send_data("c2s_exit_team"),this._new_resolve("exit_team")):"not in team":"no netconnect"}));return function(){return t.apply(this,arguments)}}(),t.close_room=function(){this._ws&&this.inRoom&&this.room.isHost&&this.send_data("c2s_close_room")},t.exit_room=function(){var t=n((function*(){return this._ws?this.inRoom?(this.send_data("c2s_room_exit"),this._new_resolve("exit_room")):"not in room":"no netconnect"}));return function(){return t.apply(this,arguments)}}(),t._clear_team=function(){var t;null==(t=this._team)||t.dispose(),this._team=null},t._clear_room=function(){var t;this._room&&(null==(t=this._room)||t.dispose(),this._room=null)},t._send=function(t){this._ws&&(this._ws.isActive?this._ws.send(t):this._waitSends.push(t))},t._updatePlayerStatus=function(t,e){this.inTeam&&this._team.updatePlayerStatus(t,e),this.inRoom&&this._room.updatePlayerStatus(t,e)},t._onMessage=function(t){this.resetHeartbeat();try{var e=t.data,n=this.decode(e);switch(n.type!==r&&chsdk.log.log("receive",JSON.stringify(n)),n.type){case r:this._ping=chsdk.date.now()-this._pingTime,chsdk.date.updateServerTime(n.data);break;case"s2c_login_success":for(this._lv=n.data,this._do_resolve("connect",null)?this.state.emit(this.state.key.Connected):this.state.emit(this.state.key.Reconnected),this._callbacks={},this.startHeartbeat();this._waitSends.length&&this._ws;){var s=this._waitSends.shift();s&&this._ws.send(s)}break;case"s2c_team_success":this._team&&this._clear_team(),this._team=new i(n.data,this.send_data.bind(this)),this._do_resolve("creat_team",null)||this._do_resolve("join_team",null);break;case"s2c_join_team_fail":this._do_resolve("join_team",n.data);break;case"s2c_team_user_join":var o=n.data;o.status=!0,this._team.addPlayer({key:o.userKey,data:o},!0);break;case"s2c_team_user_exit":var c=n.data;c===this._team.own.Id?(this._team.closed(),this._clear_team(),this._do_resolve("exit_team",null)):this._team.removePlayer(c);break;case"s2c_team_change_host":this._team.changeHost(n.data);break;case"s2c_room_change_host":this._room.changeHost(n.data);break;case"s2c_user_reconnect":this._updatePlayerStatus(n.data,!0);break;case"s2c_user_disconnect":this._updatePlayerStatus(n.data,!1);break;case"s2c_match":this._team.match_start();break;case"s2c_match_cancel":this._team.match_cancel();break;case"s2c_not_ready":this._team.not_ready();break;case"s2c_ready":this._team.updatePlayerReady(n.data,!0);break;case"s2c_match_success":this._clear_room();var _=n.data.roomData,l=n.data.playerData;this._room=new a(_,l),this._team&&this._team.match_success();break;case"s2c_room_gameData_change":this._room.server_change(n.data);break;case"s2c_user_gameData_change":var u=this._room.getPlayer(n.data.userKey);if(!u)break;u.server_change(n.data.data);break;case"s2c_room_closed":if(this._room.closed(n.data),this.inTeam)for(var d=this.room.all,m=0;m<d.length;m++){var v=d[m];if(!v.isAI){var f=this.team.getPlayer(v.Id);f&&f.set_level(v.level,v.rank,v.score,v.totalRank)}}this._do_resolve("exit_room",null);break;case"s2c_talk":this.inRoom?this._room.onChat(n.data.userKey,n.data.msg):this.inTeam&&this._team.onChat(n.data.userKey,n.data.msg);break;case"s2c_finish":this._room.finish(n.data.userKey,n.data.rank);break;case"s2c_settlement":this._room.settlement(n.data);break;case h:if(Array.isArray(n.data))for(var g=0;g<n.data.length;g++){var k=n.data[g];this._room._onEvt(k.type,k.data)}else chsdk.log.log("no def type:",n.data)}}catch(t){chsdk.log.warn(t),this.state.emit(this.state.key.Error,t)}},t._onConnected=function(t){var e=this;this.timeout&&clearTimeout(this.timeout),this._currentReconnectCount=0,this.timeout=setTimeout((function(){e._ws.close(),chsdk.log.error("Closing connection.")}),3e3)},t._onError=function(t){chsdk.log.log("err",t),this.state.emit(this.state.key.Error,t)},t._onClosing=function(){chsdk.log.log("closing"),this.state.emit(this.state.key.Connecting)},t._onClosed=function(t){var e=this;if(chsdk.log.log("WebSocket connection closed",t),this.stopHeartbeat(),!this.reconnection||t.reason&&t.code>4e3)return this.state.emit(this.state.key.Closed,t),this._do_resolve("connect",t),void chsdk.log.log("WebSocket connection closed",t);this._currentReconnectCount<this.reconnectCount?(this._currentReconnectCount+=1,chsdk.log.log("Reconnecting... Attempt "+this._currentReconnectCount),setTimeout((function(){e.do_reconnect()}),this.reconnectInterval)):(chsdk.log.error("Max reconnect attempts reached. Giving up."),this.state.emit(this.state.key.Closed,t),this._do_resolve("connect",t))},t.startHeartbeat=function(){var t=this;this.heartbeatInterval=setInterval((function(){t.sendHeartbeat()}),1e3),this.dirtyDataCheckInterval=setInterval((function(){t.dirtyDataCheck()}),this.gameDataInterval),this.evtCheckInterval=setInterval((function(){t.evtCheck()}),this.gameEvtInterval)},t.resetHeartbeat=function(){var t=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){chsdk.log.error("Heartbeat timeout. Closing connection."),t._ws.close()}),this.timeoutInterval)},t.sendHeartbeat=function(){this._pingTime=chsdk.date.now(),this.send_data("ping",this._ping)},t.stopHeartbeat=function(){this.heartbeatInterval&&clearInterval(this.heartbeatInterval),this.timeout&&clearTimeout(this.timeout),this.dirtyDataCheckInterval&&clearInterval(this.dirtyDataCheckInterval),this.evtCheckInterval&&clearInterval(this.evtCheckInterval)},t.evtCheck=function(){var t=this;if(this.inRoom){this.room.doSendChat((function(e){e&&t.send_data(_,e)})),this.room.doSendMode((function(e,n,s){e.length>0&&t.send_data(h,e),n.length>0&&t.send_data("c2s_message_to_host",n),s.length>0&&t.send_data("c2s_message_without_self",s)}));for(var e=this.room.all,n=function(){var n=e[s];n.doFinishGame((function(){t.send_data("c2s_finish",n.Id)}))},s=0;s<e.length;s++)n()}else this.inTeam&&this.team.doSendChat((function(e){e&&t.send_data(_,e)}))},t.dirtyDataCheck=function(){var t=this;if(this.inRoom&&(this.room.own.doDirtyData((function(e){t.send_data(c,{userKey:t.room.own.Id,data:e})})),this.room.isHost)){this._room.doDirtyData((function(e){t.send_data("c2s_update_room_gameData",e)}));for(var e=this.room.all,n=function(){var n=e[s];n.doDirtyData((function(e){t.send_data(c,{userKey:n.Id,data:e})}))},s=0;s<e.length;s++)n()}},t.shareNetTeam=function(t,e,n){this.inTeam&&chsdk.shareAppMessage(t,"",e,JSON.stringify({type:"NetTeam",pw:this.team.Password,extends:n}))},t.getShareNetTeam=function(){var t=chsdk.getQuery();if(!t)return null;var e=t.message;if(!e)return null;var n=JSON.parse(e);return n?"NetTeam"!=n.type?null:(t.message=null,{password:n.pw,extend:n.extends}):null},e(s,[{key:"ownLevel",get:function(){return this._lv}},{key:"dataInterval",get:function(){return.001*this.gameDataInterval}},{key:"evtInterval",get:function(){return.001*this.gameEvtInterval}},{key:"isActive",get:function(){return this._ws&&this._ws.isActive}},{key:"team",get:function(){return this._team}},{key:"inTeam",get:function(){return null!=this._team&&null!=this._team.own}},{key:"room",get:function(){return this._room}},{key:"inRoom",get:function(){return null!=this._room&&!this._room.cloosed}}]),s}());s._RF.pop()}}}));
- System.register("chunks:///_virtual/NetBase.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e;return{setters:[function(t){i=t.createClass},function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"ee4ceP8Y6tOb7rdImpQdJVo","NetBase",void 0);t("NetBase",function(){function t(t){this._id=void 0,this.dataMap={},this.dirtyMap={},this._id=t,this.dataMap={}}var e=t.prototype;return e.initValue=function(t){this.dataMap=null!=t?t:{}},e.setValue=function(t,i){this.dataMap[t]=i},e.setValueDirty=function(t,i){this.dirtyMap[t]=i},e.getValue=function(t){return this.dataMap[t]},e.doDirtyData=function(t){if(0===Object.keys(this.dirtyMap).length)return null;t(this.dirtyMap),this.dirtyMap={}},e.dispose=function(){this.dataMap={},this.dirtyMap={}},i(t,[{key:"Id",get:function(){return this._id}}]),t}());e._RF.pop()}}}));
- System.register("chunks:///_virtual/NetPlayer.ts",["./rollupPluginModLoBabelHelpers.js","cc","./NetBase.ts"],(function(t){var e,i,n,s;return{setters:[function(t){e=t.inheritsLoose,i=t.createClass},function(t){n=t.cclegacy},function(t){s=t.NetBase}],execute:function(){n._RF.push({},"6fc05FzfGNCnJsa3eEcsw94","NetPlayer",void 0);t("NetPlayer",function(t){function n(){for(var e,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(e=t.call.apply(t,[this].concat(n))||this).evt=chsdk.get_new_event(),e._location=0,e._online=!0,e._ready=!1,e._score=0,e._rank=0,e._totalRank=0,e._ishost=!0,e._userData=void 0,e._rankInfo=void 0,e._canAI=!1,e._finsh_tag=!1,e}e(n,t);var s=n.prototype;return s.init=function(t){var e;this._location=t.location,this._online=null==(e=t.status)||e,this._ready=t.teamReady,this._score=t.score,this._rank=t.rank,this._totalRank=t.TotalRank,this._userData=t.userData,this._userData.hid=Number.parseInt(t.userData.hid),this._userData.loginTime=Number.parseInt(t.userData.loginTime),this._userData.registerTime=Number.parseInt(t.userData.registerTime),this._userData.userId=Number.parseInt(t.userData.userId),this._rankInfo=t.userRank,t.gameData&&this.initValue(t.gameData)},s.set_level=function(t,e,i,n){this._rankInfo=t,this._rank=e,this._totalRank=n,this._score=i},s.set_host=function(t,e){this._ishost=t,this._canAI=this.isAI&&e},s.change_online=function(t){this._online=t,this.evt._emit("online",this._online)},s.change_ready=function(t){this._ready=t,this.evt._emit("ready",this._ready)},s.setValue=function(e,i){if(this.isPermission){var n=t.prototype.getValue.call(this,e);if(n)if("object"==typeof n);else if(i===n)return;t.prototype.setValue.call(this,e,i),t.prototype.setValueDirty.call(this,e,i),this.evt._emit(e,i,n)}},s.getValue=function(e){return t.prototype.getValue.call(this,e)},s.server_change=function(e){var i=this;this.isPermission||Object.keys(e).forEach((function(n){var s=t.prototype.getValue.call(i,n);t.prototype.setValue.call(i,n,e[n]),i.evt._emit(n,e[n],s)}))},s.setFinish=function(t){this._rank=t,this.evt._emit("finish",this._rank)},s.finishGame=function(){this.isPermission&&(this._finsh_tag=!0)},s.doFinishGame=function(t){this._finsh_tag&&t(this.Id),this._finsh_tag=!1},s.dispose=function(){t.prototype.dispose.call(this),this.evt.clearAll()},i(n,[{key:"score",get:function(){return this._score}},{key:"rank",get:function(){return this._rank}},{key:"totalRank",get:function(){return this._totalRank}},{key:"location",get:function(){return this._location}},{key:"gid",get:function(){return this._userData.gid}},{key:"head",get:function(){return this._userData.head}},{key:"hid",get:function(){return this._userData.hid}},{key:"province",get:function(){var t;return null!=(t=chsdk.provinceCode2Name(this._userData.hid))?t:"其它"}},{key:"ip",get:function(){return this._userData.ip}},{key:"loginTime",get:function(){return this._userData.loginTime}},{key:"nickName",get:function(){return this._userData.nickName||"玩家"+this._userData.userId}},{key:"openId",get:function(){return this._userData.openId}},{key:"option",get:function(){return this._userData.option}},{key:"pf",get:function(){return this._userData.pf}},{key:"userId",get:function(){return this._userData.userId}},{key:"registerTime",get:function(){return this._userData.registerTime}},{key:"isHost",get:function(){return this._ishost}},{key:"ready",get:function(){return this._ready}},{key:"online",get:function(){return this._online}},{key:"canMatch",get:function(){return this.online&&this.ready}},{key:"level",get:function(){return this._rankInfo}},{key:"isOwn",get:function(){return chsdk.get_uid()===this.userId}},{key:"isAI",get:function(){return this._userData.userId<8888}},{key:"canAI",get:function(){return this._canAI}},{key:"isPermission",get:function(){return this.isOwn||this._canAI}}]),n}(s));n._RF.pop()}}}));
- System.register("chunks:///_virtual/NetRoom.ts",["./rollupPluginModLoBabelHelpers.js","cc","./NetBase.ts","./NetPlayer.ts"],(function(t){var e,i,s,n,r;return{setters:[function(t){e=t.inheritsLoose,i=t.createClass},function(t){s=t.cclegacy},function(t){n=t.NetBase},function(t){r=t.NetPlayer}],execute:function(){s._RF.push({},"577dcgqDHFNgZms65V5Rprz","NetRoom",void 0);t("NetRoom",function(t){function s(e,i){var s;(s=t.call(this,e.roomId)||this).evt=chsdk.get_new_event(),s._hostId=void 0,s._status=!0,s._own_id=void 0,s._players=new Map,s._waitSends_mode0=[],s._waitSends_mode1=[],s._waitSends_mode2=[],s._results=[],s._chat_msg=null,s._last_chat_time=0,s._status=e.status,s._hostId=e.hostInfo;for(var n=Object.keys(i).map((function(t){return{key:t,data:i[t]}})),r=0;r<n.length;r++)s.addPlayer(n[r]);return s._players.forEach((function(t,e){t.set_host(t.Id===s._hostId,s.isHost)})),s.initValue(e.gameData),s}e(s,t);var n=s.prototype;return n.addPlayer=function(t){var e=t.key,i=t.data,s=this._players.get(e);s||(s=new r(e),this._players.set(e,s)),s.init(i),s.isOwn&&(this._own_id=e)},n.updatePlayerStatus=function(t,e){var i=this.getPlayer(t);if(i){i.change_online(e);var s=i.location,n=i.nickName;this.evt._emit("r_online",t,e,s,n)}},n.changeHost=function(t){var e=this;this._hostId=t,this._players.forEach((function(t,i){t.set_host(t.Id===e._hostId,e.isHost)}));var i=this.getPlayer(this._hostId);this.evt._emit("r_host",t,i.location,i.nickName)},n.getAllPlayer=function(){return Array.from(this._players.values())},n.getAllPlayersAtLocations=function(t){var e=Array(t).fill(null);return this._players.forEach((function(i){i.location>=0&&i.location<t&&(e[i.location]=i)})),e},n.getPlayer=function(t){return this._players.get(t)},n.getExPlayer=function(t){return Array.from(this._players.values()).filter((function(e){return e.Id!=t}))},n.getOnlinePlayer=function(t){return t?this.onlines:this.outlines},n.canAiPlayer=function(t){return!!this._status&&(!!this.isHost&&!(!t||!t.isAI))},n.canAiPlayerId=function(t){if(!this._status)return null;if(!this.isHost)return null;var e=this._players.get(t);return e&&e.isAI?e:null},n.hasPermission=function(t){return t.isOwn||this.canAiPlayer(t)},n.creatObj=function(e){var i;if(this._status&&this.isHost){var s=null!=(i=t.prototype.getValue.call(this,"oid"))?i:0,n="obj_"+ ++s;return t.prototype.setValue.call(this,"oid",s),t.prototype.setValueDirty.call(this,"oid",s),t.prototype.setValue.call(this,n,e),t.prototype.setValueDirty.call(this,n,e),this.evt._emit("r_obj",n,e),n}},n.getObj=function(e){return t.prototype.getValue.call(this,e)},n.changeObj=function(e,i){if(this.isHost){var s=t.prototype.getValue.call(this,e);s&&(t.prototype.setValue.call(this,e,i),t.prototype.setValueDirty.call(this,e,i),this.evt._emit("r_obj",e,i,s))}},n.deleteObj=function(e){this.isHost&&(t.prototype.setValue.call(this,e,null),t.prototype.setValueDirty.call(this,e,null))},n.setValue=function(e,i){if(this._status&&this.isHost){var s=t.prototype.getValue.call(this,e);if(s)if("object"==typeof i);else if(i===s)return;t.prototype.setValue.call(this,e,i),t.prototype.setValueDirty.call(this,e,i),this.evt._emit(e,i,s)}},n.getValue=function(e){return t.prototype.getValue.call(this,e)},n.server_change=function(t){var e=this;this._status&&(this.isHost||Object.keys(t).forEach((function(i){e.change(i,t[i])})))},n.change=function(e,i){var s=t.prototype.getValue.call(this,e);t.prototype.setValue.call(this,e,i),"object"!=typeof i&&i===s||"oid"!==e&&(e.startsWith("obj_")?this.evt._emit("r_obj",e,i,s):this.evt._emit(e,i,s))},n.closed=function(t){this._status=!1,this._results.length=0;for(var e=Object.keys(t).map((function(e){return{key:e,data:t[e]}})),i=0;i<e.length;i++){var s=e[i].key,n=e[i].data;n.Id=s;var r=this.getPlayer(s);r.set_level(n.Level,n.Rank,n.Score,n.TotalRank),n.UserData={gid:r.gid,head:r.head,hid:r.hid,ip:r.ip,loginTime:r.loginTime,nickName:r.nickName,openId:r.openId,option:r.option,pf:r.pf,registerTime:r.registerTime,userId:r.userId,province:r.province};var o=n.Elements;if(o)for(var a=0;a<o.length;a++){var l,u=o[a];u.nickName=u.nickName||"玩家"+u.userId,u.hid=Number.parseInt(u.hid),u.loginTime=Number.parseInt(u.loginTime),u.registerTime=Number.parseInt(u.registerTime),u.userId=Number.parseInt(u.userId),u.province=null!=(l=chsdk.provinceCode2Name(u.hid))?l:"其它"}this._results.push(n)}this._results.length>1&&this._results.sort((function(t,e){return 0===t.Rank&&0===e.Rank?0:0===t.Rank?1:0===e.Rank?-1:t.Rank-e.Rank})),this.evt._emit("r_closed")},n.finish=function(t,e){var i=this.getPlayer(t);i&&(i.setFinish(e),this.evt._emit("r_finish",t,e))},n.sendEvt=function(t){if(this._status){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];this._waitSends_mode0.push({type:t,data:i})}},n.sendToHost=function(t){if(this._status){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];this._waitSends_mode1.push({type:t,data:i})}},n.sendToOther=function(t){if(this._status){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];this._waitSends_mode2.push({type:t,data:i})}},n.doSendMode=function(t){t(this._waitSends_mode0,this._waitSends_mode1,this._waitSends_mode2),this._waitSends_mode0.length=0,this._waitSends_mode1.length=0,this._waitSends_mode2.length=0},n.chat=function(t){var e=chsdk.date.now();return!(e-this._last_chat_time<1e3)&&(this._last_chat_time=e,this._chat_msg=t,!0)},n.onChat=function(t,e){var i=this.getPlayer(t);this.evt._emit("r_chat",t,e,i.location,i.nickName)},n.doSendChat=function(t){t(this._chat_msg),this._chat_msg=null},n._onEvt=function(t,e){var i;(i=this.evt)._emit.apply(i,[t].concat(e))},n.dispose=function(){t.prototype.dispose.call(this),this._players.forEach((function(t,e){t.dispose()})),this._players.clear(),this._status=!1,this.evt.clearAll()},i(s,[{key:"HostId",get:function(){return this._hostId}},{key:"cloosed",get:function(){return!this._status}},{key:"isHost",get:function(){return this._own_id===this._hostId}},{key:"own",get:function(){return this._players.get(this._own_id)}},{key:"others",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.isOwn}))}},{key:"ais",get:function(){return Array.from(this._players.values()).filter((function(t){return t.isAI}))}},{key:"all",get:function(){return this.getAllPlayer()}},{key:"onlines",get:function(){return Array.from(this._players.values()).filter((function(t){return t.online}))}},{key:"outlines",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.online}))}},{key:"results",get:function(){return this._results}},{key:"own_results_addScore",get:function(){var t=this.results;if(!t)return 0;for(var e=0;e<t.length;e++)if(t[e].Id===this._own_id)return t[e].AddScore;return 0}}]),s}(n));s._RF.pop()}}}));
- System.register("chunks:///_virtual/NetTeam.ts",["./rollupPluginModLoBabelHelpers.js","cc","./NetPlayer.ts"],(function(t){var e,i,n;return{setters:[function(t){e=t.createClass},function(t){i=t.cclegacy},function(t){n=t.NetPlayer}],execute:function(){i._RF.push({},"33caeCu1CZJPaCD2lrLn4Gv","NetTeam",void 0);var s="c2s_kick_out";t("NetTeam",function(){function t(t,e){this.evt=chsdk.get_new_event(),this._status=!0,this._hostId=void 0,this._password=void 0,this._limit=void 0,this._id=void 0,this._inCollect=!1,this._own_id=void 0,this._players=new Map,this._send=void 0,this._chat_msg=null,this._last_chat_time=0;var i=t.teamData,n=t.playerData;this._hostId=i.hostInfo,this._status=i.status,this._inCollect=i.inCollect,this._password=i.password,this._limit=i.limit,this._id=i.roomId,this._players.clear();for(var s=Object.keys(n).map((function(t){return{key:t,data:n[t]}})),r=0;r<s.length;r++)this.addPlayer(s[r]);this._send=e}var i=t.prototype;return i.match=function(){this.isHost&&this._send("c2s_match")},i.exit_match=function(){this.isHost&&this._send("c2s_match_cancel")},i.kick_out=function(t){if(this.isHost)if("string"==typeof t)this._send(s,t);else if("number"==typeof t){var e=this.all.find((function(e){return e.location===t}));e&&this._send(s,e.Id)}},i.kick_out_no_readys=function(){if(this.isHost)for(var t=this.notreadys,e=0;e<t.length;e++)this._send(s,t[e].Id)},i.kick_out_outlines=function(){if(this.isHost)for(var t=this.outlines,e=0;e<t.length;e++)this._send(s,t[e].Id)},i.kick_out_badplayers=function(){if(this.isHost)for(var t=this.badplayers,e=0;e<t.length;e++)this._send(s,t[e].Id)},i.ready=function(){this._send("c2s_ready")},i.addPlayer=function(t,e){void 0===e&&(e=!1);var i=t.key,s=t.data,r=this._players.get(i);r||(r=new n(i),this._players.set(i,r)),r.init(s),r.set_host(r.Id===this._hostId),r.isOwn&&(this._own_id=i),e&&this.evt._emit("t_entry",i,r.location,r.nickName)},i.removePlayer=function(t){var e=this._players.get(t);if(e){var i=e.location,n=e.nickName;this._players.delete(t),this.evt._emit("t_exit",t,i,n)}},i.closed=function(){this.evt._emit("t_closed")},i.updatePlayerStatus=function(t,e){var i=this.getPlayer(t);if(i){i.change_online(e);var n=i.location,s=i.nickName;this.evt._emit("t_online",t,e,n,s)}},i.updatePlayerReady=function(t,e){var i=this.getPlayer(t);if(i){i.change_ready(e);var n=i.location,s=i.nickName;this.evt._emit("t_ready",t,e,n,s)}},i.match_start=function(){this._inCollect=!0,this.evt._emit("t_matchStart")},i.match_cancel=function(){this._inCollect=!1,this.evt._emit("t_matchCancel")},i.match_success=function(){this._inCollect=!1,this.evt._emit("t_matchSuccess");for(var t=this.getAllPlayer(),e=0;e<t.length;e++)t[e].change_ready(!1)},i.not_ready=function(){this.evt._emit("t_no_ready")},i.changeHost=function(t){var e=this;this._hostId=t,this._players.forEach((function(t,i){t.set_host(t.Id===e._hostId)}));var i=this.getPlayer(this._hostId);this.evt._emit("t_host",t,i.location,i.nickName)},i.chat=function(t){var e=chsdk.date.now();return!(e-this._last_chat_time<1e3)&&(this._last_chat_time=e,this._chat_msg=t,!0)},i.onChat=function(t,e){var i=this.getPlayer(t);this.evt._emit("t_chat",t,e,i.location,i.nickName)},i.doSendChat=function(t){t(this._chat_msg),this._chat_msg=null},i.getPlayer=function(t){return this._players.get(t)},i.getAllPlayer=function(){return this.all},i.getAllPlayersAtLocations=function(t){var e=Array(t).fill(null);return this._players.forEach((function(i){i.location>=0&&i.location<t&&(e[i.location]=i)})),e},i.getExPlayer=function(t){return Array.from(this._players.values()).filter((function(e){return e.Id!=t}))},i.getOnlinePlayer=function(t){return t?this.onlines:this.outlines},i.getReadyPlayer=function(t){return t?this.readys:this.notreadys},i.dispose=function(){this._send=null,this._players.forEach((function(t,e){t.dispose()})),this._players.clear()},e(t,[{key:"status",get:function(){return this._status}},{key:"HostId",get:function(){return this._hostId}},{key:"Password",get:function(){return this._password}},{key:"Limit",get:function(){return this._limit}},{key:"Id",get:function(){return this._id}},{key:"inCollect",get:function(){return this._inCollect}},{key:"isHost",get:function(){return this._own_id===this._hostId}},{key:"own",get:function(){return this._players.get(this._own_id)}},{key:"all",get:function(){return Array.from(this._players.values())}},{key:"others",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.isOwn}))}},{key:"onlines",get:function(){return Array.from(this._players.values()).filter((function(t){return t.online}))}},{key:"outlines",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.online}))}},{key:"badplayers",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.ready||!t.online}))}},{key:"readys",get:function(){return Array.from(this._players.values()).filter((function(t){return t.ready}))}},{key:"notreadys",get:function(){return Array.from(this._players.values()).filter((function(t){return!t.ready}))}}]),t}());i._RF.pop()}}}));
- System.register("chunks:///_virtual/PathUtil.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){t._RF.push({},"599009CYiRPSbP+6MJkFWLY","PathUtil",void 0);e("default",function(){function e(){}return e.extname=function(e){var t=/(\.[^\.\/\?\\]*)(\?.*)?$/.exec(e);return t?t[1]:""},e.basename=function(e,t){var n=e.indexOf("?");n>0&&(e=e.substring(0,n));var r=/(\/|\\)([^\/\\]+)$/g.exec(e.replace(/(\/|\\)$/,""));if(!r)return e;var u=r[2];return t&&e.substring(e.length-t.length).toLowerCase()===t.toLowerCase()?u.substring(0,u.length-t.length):u},e.dirname=function(e){var t=/((.*)(\/|\\|\\\\))?(.*?\..*$)?/.exec(e);return t?t[2]:""},e}());t._RF.pop()}}}));
- System.register("chunks:///_virtual/PeriodData.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,a;return{setters:[function(t){e=t.createForOfIteratorHelperLoose},function(t){a=t.cclegacy}],execute:function(){a._RF.push({},"6e040Hgcc1C2r4oXdDQnwvy","PeriodData",void 0);var n=t("PeriodDataUpdate",function(t){return t[t.none=0]="none",t[t.day=1]="day",t[t.week=2]="week",t[t.month=3]="month",t}({}));t("default",function(){function t(t,e){var a=this;this._data=new Map,this._data_Array=new Map,this._last=0,this._update=void 0,this._update=t,e&&e.forEach((function(t,e){var n;a._data.set(e,{v:null!=(n=t.min)?n:0,min:t.min,max:t.max})}),this)}var a=t.prototype;return a.serialize=function(){var t={};this._data.forEach((function(e,a){t[String(a)]=e.v}));var e={};return this._data_Array.forEach((function(t,a){e[String(a)]=t})),{last:this._last,data:t,data_Array:e}},a.unserialize=function(t){var e;if(t){this._last=null!=(e=t.last)?e:0;var a=t.data;if(a)for(var n in a){var r=a[n];this._get(n).v=r}var i=t.data_Array;if(i)for(var s in i){var u=i[s];this.set_Array(s,u)}}},a._get=function(t){var e=this._data.get(t);return e||(e={v:0,min:0,max:null},this._data.set(t,e)),e},a._get_Array=function(t){var e=this._data_Array.get(t);return e||(e=new Array(7).fill(!1),this._data_Array.set(t,e)),e},a.set=function(t,e,a,n){var r=this._get(t);r.v=e,r.min=a,r.max=n},a.get=function(t){return this._get(t).v},a.set_Array=function(t,e){this._data_Array.set(t,e)},a.get_Array=function(t){return this._get_Array(t)},a.get_available=function(t){var e=this._get(t);return e.max?e.max-e.v:e.v},a.isEnble=function(t){return this._get(t).v>0},a.enble=function(t){this._get(t).v=1},a.disEnble=function(t){this._get(t).v=0},a.add=function(t,e){return void 0===e&&(e=1),this.change(t,e)},a.sub=function(t,e){return void 0===e&&(e=1),this.change(t,-e)},a.change=function(t,e){var a=this._get(t);return a?(a.v+=e,a.min&&a.v<a.min&&(a.v=a.min),a.max&&a.v>a.max&&(a.v=a.max),a.v):null},a.change_big=function(t,e){var a=this._get(t);return a&&e>a.v?(a.v=e,a.min&&a.v<a.min&&(a.v=a.min),a.max&&a.v>a.max&&(a.v=a.max),a.v):null},a.change_sm=function(t,e){var a=this._get(t);return a&&e<a.v?(a.v=e,a.min&&a.v<a.min&&(a.v=a.min),a.max&&a.v>a.max&&(a.v=a.max),a.v):null},a.check=function(t){return this._update!=n.none&&(this._update!=n.day||this.isSameDate(t,this._last)?this._update!=n.week||this.areDatesInSameWeek(t,this._last)?this._update==n.month&&!this.areDatesInSameMonth(t,this._last)&&(this._last=t,this.reset(),!0):(this._last=t,this.reset(),this._data_Array=new Map,!0):(this._last=t,this.reset(),!0))},a.reset=function(){for(var t,a=e(this._data.keys());!(t=a()).done;){var n,r=t.value,i=this._get(r);i.v=null!=(n=i.min)?n:0}},a.isSameDate=function(t,e){var a=new Date(t),n=new Date(e);return a.getFullYear()==n.getFullYear()&&a.getMonth()==n.getMonth()&&a.getDate()==n.getDate()},a.areDatesInSameWeek=function(t,e){var a=this.getStartOfWeek(new Date(t)),n=this.getStartOfWeek(new Date(e));return a.getTime()===n.getTime()},a.getStartOfWeek=function(t){var e=new Date(t),a=e.getDay(),n=e.getDate()-a;return e.setDate(n),e.setHours(0,0,0,0),e},a.areDatesInSameMonth=function(t,e){var a=new Date(t),n=new Date(e);return a.getFullYear()===n.getFullYear()&&a.getMonth()===n.getMonth()},t}());a._RF.pop()}}}));
- System.register("chunks:///_virtual/PrefabPool.ts",["cc"],(function(e){var t,o,n,i;return{setters:[function(e){t=e.cclegacy,o=e.Node,n=e.NodePool,i=e.instantiate}],execute:function(){e("default",(function(){return new r})),t._RF.push({},"12f30kX+ltO4JZlGRue34gE","PrefabPool",void 0);var r=function(){function e(){this._pools=new Map,this._node=void 0,null==this._node&&(this._node=new o,this._node.active=!1)}var t=e.prototype;return t.getPool=function(e){var t=this._pools.get(e);return null==t&&(t=new n,this._pools.set(e,t)),t},t.GetNode=function(e){var t=this.getPool(e.name).get();return t||((t=i(e)).name=e.name),t},t.RecNode=function(e){e.parent=this._node,this.getPool(e.name).put(e)},t.InitPool=function(e,t){void 0===t&&(t=10);for(var o=this.getPool(e.name),n=0;n<t;n++){var r=i(e);r.name=e.name,r.parent=this._node,o.put(r)}},t.Clear=function(){this._node&&(this._node.removeAllChildren(),this._pools.forEach((function(e,t){e.clear()})),this._pools.clear())},t.getAllPoolNames=function(){return Object.keys(this._pools)},t.getPoolSize=function(e){var t=this._pools[e];return t?t.size():0},e}();t._RF.pop()}}}));
- System.register("chunks:///_virtual/ProjectileMathUtil.ts",["cc"],(function(t){var a;return{setters:[function(t){a=t.cclegacy}],execute:function(){a._RF.push({},"16ac3tSOM5FwpZe8CFKhU2G","ProjectileMathUtil",void 0);var n=180/Math.PI,e=Math.PI/180;t("default",function(){function t(){}return t.calculateTotalTime=function(t,a,n){var c=a*e;return t/(n*Math.cos(c))},t.calculateAngleAtMoment=function(t,a,c,r,h){void 0===h&&(h=!1);var i=r,o=t*e,M=a*Math.cos(o),l=a*Math.sin(o)-i*c,u=Math.atan(l/M);return h?u:u*n},t.calculateDisplacementAtMoment=function(t,a,n,c){var r=n,h=t*e;return{x:a*Math.cos(h)*c,y:a*Math.sin(h)*c-.5*r*Math.pow(c,2)}},t.calculateWithAngle=function(t,a,n,c){var r=Math.abs(n),h=c*e,i=2*t*Math.sin(h)*Math.cos(h)-2*a*Math.pow(Math.cos(h),2);return i<0?NaN:Math.sqrt(r*Math.pow(t,2)/i)},t.calculateWithVelocity=function(t,a,e,c){var r=c,h=e,i=Math.pow(h,2),o=Math.pow(h,4)-r*(r*Math.pow(t,2)+2*a*i);if(o<0)return{angle1:NaN,angle2:NaN};var M=Math.sqrt(o),l=Math.atan((-i+M)/(-r*t)),u=Math.atan((-i-M)/(-r*t));return{angle1:l*n,angle2:u*n}},t.calculateWithMaxHeight=function(t,a,e,c){var r=c,h=e;if(h<0||h-a<0)return{angle:NaN,velocity:NaN,time:NaN};var i=Math.sqrt(2*r*h),o=Math.sqrt(2*r*(h-a)),M=(-i+o)/-r,l=(-i-o)/-r,u=Math.max(M,l),s=Math.atan(i*u/t),v=i/Math.sin(s);return{angle:s*n,velocity:v,time:u}},t}());a._RF.pop()}}}));
- System.register("chunks:///_virtual/Queue.ts",["cc"],(function(t){var i;return{setters:[function(t){i=t.cclegacy}],execute:function(){i._RF.push({},"16900mmPzlPkZiuO57PxvRs","Queue",void 0);t("default",function(){function t(){this.count=void 0,this.lowestCount=void 0,this.items=void 0,this.count=0,this.lowestCount=0,this.items={}}var i=t.prototype;return i.enqueue=function(t){this.items[this.count]=t,this.count++},i.dequeue=function(){if(!this.isEmpty()){var t=this.items[this.lowestCount];return delete this.items[this.lowestCount],this.lowestCount++,t}},i.isEmpty=function(){return this.count-this.lowestCount==0},i.peek=function(){if(!this.isEmpty())return this.items[this.lowestCount]},i.size=function(){return this.count-this.lowestCount},i.clear=function(){this.count=0,this.lowestCount=0,this.items={}},i.toString=function(){if(this.isEmpty())return"";for(var t=""+this.items[this.lowestCount],i=this.lowestCount+1;i<this.count;i++)t=t+","+this.items[i];return t},t}()),t("Deque",function(){function t(){this.items=void 0,this.lowestCount=void 0,this.count=void 0,this.items={},this.lowestCount=0,this.count=0}var i=t.prototype;return i.addTail=function(t){return this.items[this.count++]=t,this.size()},i.addHead=function(t){if(0===this.count)this.addTail(t);else if(this.lowestCount>0)this.items[--this.lowestCount]=t;else{for(var i=this.count;i>this.lowestCount;i--)this.items[i]=this.items[i-1];this.count++,this.items[0]=t}return this.size()},i.getTail=function(){if(!this.isEmpty()){this.count--;var t=this.items[this.count];return delete this.items[this.count],t}},i.getHead=function(){if(!this.isEmpty()){var t=this.items[this.lowestCount];return delete this.items[this.lowestCount],this.lowestCount++,t}},i.peekHead=function(){if(!this.isEmpty())return this.items[this.lowestCount]},i.peekTail=function(){if(!this.isEmpty())return this.items[this.count-1]},i.size=function(){return this.count-this.lowestCount},i.isEmpty=function(){return 0===this.size()},i.clear=function(){this.items={},this.count=this.lowestCount=0},i.toString=function(){if(this.isEmpty())return"";for(var t=this.items[this.lowestCount].toString(),i=this.lowestCount+1;i<this.count;i++)t=t+", "+this.items[i].toString();return t},t}());i._RF.pop()}}}));
- System.register("chunks:///_virtual/Random.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n;return{setters:[function(t){e=t.createClass},function(t){n=t.cclegacy}],execute:function(){t("default",(function(t){return new r(t)})),n._RF.push({},"0df919aG5RLDb2SUzCkvbif","Random",void 0);var r=function(){function t(t){this._seed=void 0,this._start_seed=void 0,this.set_seed(t)}var n=t.prototype;return n.set_seed=function(t){this._seed=t,this._start_seed=t},n._nextSeed=function(){this._seed=(9301*this._seed+49297)%233280},n._nextFloat=function(){return this._nextSeed(),this._seed/233280},n._nextInt=function(t){return t=Math.floor(t),this._nextSeed(),this._seed%t},n.float=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=1),this._nextFloat()*(e-t)+t},n.int=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=100),this._nextInt(e-t)+Math.ceil(t)},n.dir=function(){return 0===Math.floor(2*this.float())?-1:1},n.getDiffValueFromArr=function(t,e){var n=new Array,r=new Array;if(!t||t.length<=0||e<=0)return r;for(var i=0;i<t.length;i++)n.push(t[i]);if(e>=n.length)return n;e=Math.min(e,n.length-1);for(var s=0;s<e;s++){var o=this.int(0,n.length-1);r.push(n.splice(o,1)[0])}return r},n.int_type=function(t,e,n){switch(t=Math.ceil(t),e=Math.floor(e),n){case 1:return Math.floor(this._nextFloat()*(e-t))+t;case 2:return Math.floor(this._nextFloat()*(e-t+1))+t;case 3:return Math.floor(this._nextFloat()*(e-t-1))+t+1}return 0},e(t,[{key:"seed",get:function(){return this._seed}},{key:"start_seed",get:function(){return this._start_seed}}]),t}();n._RF.pop()}}}));
- System.register("chunks:///_virtual/ResUtil.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(n){var e,t,r,o,i,l,u,s;return{setters:[function(n){e=n.asyncToGenerator},function(n){t=n.cclegacy,r=n.assetManager,o=n.resources,i=n.AssetManager,l=n.director,u=n.Texture2D,s=n.ImageAsset}],execute:function(){n("ResUtil",void 0),t._RF.push({},"fdca4buPvxCtqd20MSvpC7T","ResUtil",void 0);var a,c=n("headImgExt",".head");!function(n){function t(n){return new Promise((function(e,t){r.loadBundle(n,(function(n,t){e&&e(n?null:t)}))}))}function a(n){return null==n||""===n?o:r.getBundle(n)}function f(){return(f=e((function*(n,e){var r;e||(e=""),"string"==typeof e?(r=a(e))||(r=yield t(e)):e instanceof i.Bundle&&(r=e);var o=r.get(n);return null!=o?Promise.resolve(o):new Promise((function(e,t){r.load(n,(function(n,t){e(n?null:t)}))}))}))).apply(this,arguments)}function d(){return(d=e((function*(n,e,r){var o;return e||(e=""),"string"==typeof e?(o=a(e))||(o=yield t(e)):e instanceof i.Bundle&&(o=e),new Promise((function(e,t){o.loadDir(n,(function(n,e,t){null==r||r(n,e)}),(function(n,t){e(n?null:t)}))}))}))).apply(this,arguments)}function p(){return(p=e((function*(n,e,r){var o;return e||(e=""),"string"==typeof e?(o=a(e))||(o=yield t(e)):e instanceof i.Bundle&&(o=e),new Promise((function(e,t){o.load(n,(function(n,e,t){null==r||r(n,e)}),(function(n,t){e(n?null:t)}))}))}))).apply(this,arguments)}function v(){return(v=e((function*(n,e,r){var o;return void 0===r&&(r=!1),e||(e=""),"string"==typeof e?(o=a(e))||(o=yield t(e)):e instanceof i.Bundle&&(o=e),new Promise((function(e,t){o.loadScene(n,(function(t,o){e(t?null:o),r&&l.loadScene(n)}))}))}))).apply(this,arguments)}function g(n,e,t,r){var o=null,i=null;try{o=new u;var l=new s(e);o.image=l}catch(n){i=n}r&&r(i,o)}function y(n,e,t){var r=new Image;function o(){r.removeEventListener("load",o),r.removeEventListener("error",i),t&&t(null,r)}function i(){r.removeEventListener("load",o),r.removeEventListener("error",i),t&&t(new Error(n))}return"file:"!==window.location.protocol&&(r.crossOrigin="anonymous"),r.addEventListener("load",o),r.addEventListener("error",i),r.src=n,r}n.loadRemote=function(n,e){return new Promise((function(t,o){r.loadRemote(n,e,(function(n,e){t&&t(n?null:e)}))}))},n.loadBundle=t,n.getBundle=a,n.loadAsset=function(n,e){return f.apply(this,arguments)},n.loadDir=function(n,e,t){return d.apply(this,arguments)},n.loadAssets=function(n,e,t){return p.apply(this,arguments)},n.loadScene=function(n,e,t){return v.apply(this,arguments)},n.releaseAll=function(){r.releaseAll()},n.releaseAsset=function(n){r.releaseAsset(n)},n.release=function(n,e){var t,r,o;e||(e=""),"string"==typeof e?t=a(e):e instanceof i.Bundle&&(t=e),n&&""!=n?null==(r=t)||r.release(n):null==(o=t)||o.releaseAll()},n.registerHeadImgLoader=function(){r.downloader.register(c,(function(n,e,t){t(null,n)})),r.parser.register(c,y),r.factory.register(c,g)}}(a||(a=n("ResUtil",{}))),t._RF.pop()}}}));
- System.register("chunks:///_virtual/RewardFly.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,o,i,a,r,s,c,d,l,h,f,g;return{setters:[function(t){e=t.inheritsLoose},function(t){n=t.cclegacy,o=t._decorator,i=t.UITransform,a=t.Node,r=t.Vec3,s=t.instantiate,c=t.Widget,d=t.v3,l=t.UIOpacity,h=t.tween,f=t.easing,g=t.Component}],execute:function(){var p;n._RF.push({},"9d999oa7ZtO/Jhnk1+iN63E","RewardFly",void 0);var u=o.ccclass,y=o.requireComponent;t("RewardFly",u("RewardFly")(p=y(i)(p=function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var o=n.prototype;return o.onLoad=function(){},o.onDisable=function(){this.node.destroyAllChildren()},o.convertToNodeSpaceAR=function(t){return t instanceof a?this.node.getComponent(i).convertToNodeSpaceAR(t.getComponent(i).convertToWorldSpaceAR(r.ZERO)):this.node.getComponent(i).convertToNodeSpaceAR(t)},o.add=function(t){var e=this,n=this.convertToNodeSpaceAR(t.start),o=this.convertToNodeSpaceAR(t.end);t.endOffset&&o.add3f(t.endOffset[0],t.endOffset[1],0);var i=null;if(t.highlight)if(t.highlightOffset&&o.add3f(t.highlightOffset[0],t.highlightOffset[1],0),t.highlightArea){var r,g=this.convertToNodeSpaceAR(t.highlightArea);t.highlightOffset&&g.add3f(t.highlightOffset[0],t.highlightOffset[1],0),null==(r=(i=s(t.highlightArea)).getComponent(c))||r.destroy(),i.setParent(this.node),i.setPosition(g)}else if(a.isNode(t.end)){var p;null==(p=(i=s(t.end)).getComponent(c))||p.destroy(),i.setParent(this.node),i.setPosition(o)}for(var u=function(a){var r=s(t.item);r.setPosition(n),r.setParent(e.node);var c=d(n.x,n.y,0);c.x+=(2*Math.random()-1)*(t.startRange?t.startRange[0]:100),c.y+=(2*Math.random()-1)*(t.startRange?t.startRange[1]:100),(r.getComponent(l)||r.addComponent(l)).opacity=0,h(r).delay(.025*a).call((function(){r.getComponent(l).opacity=200,h(r.getComponent(l)).to(.4,{opacity:255},{easing:f.expoOut}).start()})).to(.4,{position:c},{easing:f.expoOut}).call((function(){h(r.getComponent(l)).delay(.5).to(.1,{opacity:70}).start()})).to(.6,{position:o},{easing:f.expoIn}).call((function(){if(0===a){if(i){var e=d(i.scale);h(i).to(.1,{scale:d(1.3*e.x,1.3*e.y)}).delay(.025*Math.max(t.count,4)).to(.1,{scale:e}).call((function(){var t=i.getComponent(l)||i.addComponent(l);h(t).to(.1,{opacity:.3*t.opacity}).call((function(){return i.destroy()})).start()})).start()}t.onBegin&&t.onBegin(i)}t.onContact&&t.onContact(i)})).delay(.01).call((function(){r.destroy(),a===t.count-1&&t.onFinish&&t.onFinish(i)})).start()},y=0;y<t.count;y++)u(y)},n}(g))||p)||p);n._RF.pop()}}}));
- System.register("chunks:///_virtual/SafeNumber.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e;return{setters:[function(t){i=t.createClass},function(t){e=t.cclegacy}],execute:function(){t({get_new_safe_const_number:function(t){return new a(t)},get_new_safe_number:function(t){return new s(t)}}),e._RF.push({},"7e0d8kg6FBL46wNVfNiK7eE","SafeNumber",void 0);var s=function(){function t(t){void 0===t&&(t=0),this.cache=0,this.scale=2,this.map={},this.idx=0,this.value=t}var e=t.prototype;return e.valueOf=function(){return this.value},e.toString=function(){return this.value.toString()},e.clone=function(){return new t(this.value)},i(t,[{key:"value",get:function(){return Math.abs(this.map[this.idx]*this.scale-this.cache)>1e-6&&(this.map[this.idx]=this.cache/this.scale),this.map[this.idx]},set:function(t){delete this.map[this.idx],this.idx=Math.floor(256*Math.random()),this.map[this.idx]=t,this.scale=Math.floor(2*Math.random())+2,this.cache=t*this.scale}}]),t}(),a=function(){function t(t){void 0===t&&(t=0),this.cache=0,this.scale=2,this.map={},this.idx=0,this.idx=Math.floor(256*Math.random()),this.map[this.idx]=t,this.scale=Math.floor(2*Math.random())+2,this.cache=t*this.scale}var e=t.prototype;return e.valueOf=function(){return this.value},e.toString=function(){return this.value.toString()},e.clone=function(){return new t(this.value)},i(t,[{key:"value",get:function(){var t=this.map[this.idx];return Math.abs(t*this.scale-this.cache)>1e-6&&(t=this.cache/this.scale),delete this.map[this.idx],this.idx=Math.floor(256*Math.random()),this.map[this.idx]=t,this.map[this.idx]}}]),t}();e._RF.pop()}}}));
- System.register("chunks:///_virtual/SceneDef.ts",["cc"],(function(e){var c;return{setters:[function(e){c=e.cclegacy}],execute:function(){c._RF.push({},"01aa7QePwpMF4PE+VsC8QVh","SceneDef",void 0);var t=e("SceneDef",(function(){}));t.START="start",t.GAME="game",t.Hall="hall",c._RF.pop()}}}));
- System.register("chunks:///_virtual/Shake.ts",["cc"],(function(t){var s,i;return{setters:[function(t){s=t.Vec3,i=t.cclegacy}],execute:function(){t("default",(function(t){void 0===t&&(t=new s(0,0,0));return new n(t)})),i._RF.push({},"88adahxArtIPKhtXnEB29+o","Shake",void 0);var n=function(){function t(t){void 0===t&&(t=new s(0,0,0)),this.intensity=void 0,this.duration=void 0,this.shakePos=new s(0,0,0),this.startPos=t,this.duration=0,this.intensity=0}var i=t.prototype;return i.setStartPos=function(t,s){this.startPos.x=t,this.startPos.y=s},i.start=function(t,s){void 0===t&&(t=.3),void 0===s&&(s=3.8),this.duration=t,this.intensity=s},i.stop=function(){return this.shakePos.x=this.startPos.x,this.shakePos.y=this.startPos.y,this.duration=0,this.shakePos},i.getShakePos=function(){return this.shakePos},i.action=function(t){if(this.duration>0){if(this.duration-=t,this.duration<=0)return this.stop();var s=Math.random()*this.intensity-.5*this.intensity,i=Math.random()*this.intensity-.5*this.intensity;return this.shakePos.x=this.startPos.x+s,this.shakePos.y=this.startPos.y+i,this.shakePos}return null},t}();i._RF.pop()}}}));
- System.register("chunks:///_virtual/sign.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,n;return{setters:[function(t){i=t.createClass},function(t){n=t.cclegacy}],execute:function(){n._RF.push({},"6d031yryKRLYaiOHaXKh4Av","sign",void 0),t("default",function(){function t(){this._sign_data=new Set,this._max=7,this._creat_date=0,this._sign_count=0,this._mode=1}t.getInstance=function(){return this._instance||(this._instance=new t),this._instance};var n=t.prototype;return n.getCreatDayCount=function(){return 0==this._creat_date?(chsdk.log.warn("签到模块没有初始化"),0):chsdk.date.getDiffDayNum(this._creat_date,chsdk.date.now())+1},n.init=function(t,i,n){var s,e;if(void 0===n&&(n=7),this._mode=t,1==this._mode)if(i){for(var a,_,r=null!=(a=(i=i).sign_list)?a:[],h=null!=(_=i.creat_date)?_:chsdk.date.now(),c=0;c<r.length;c++)this._sign_data.add(r[c]);this._sign_count=this._sign_data.size,this._creat_date=h}else this._sign_count=0,this._sign_data.clear(),this._creat_date=chsdk.date.now();else i?(i=i,this._sign_count=null!=(s=i.sign_count)?s:0,this._creat_date=null!=(e=i.last_date)?e:0):(this._sign_count=0,this._creat_date=0);this._max=n},n.getSignData=function(){return 1==this._mode?{sign_list:Array.from(this._sign_data.keys()),creat_date:this._creat_date}:2==this._mode?{sign_count:this._sign_count,last_date:this._creat_date}:void 0},n.checkSigineState=function(t){if(1==this._mode){if(t<1||t>this._max)return 0;if(this._sign_data.has(t))return 1;var i=this.getCreatDayCount();if(i<=0)return 0;if(t<i)return 2}else if(2==this._mode&&t<=this._sign_count)return 1;return 0},n.checkSigin=function(){if(1==this._mode){var t=this.getCreatDayCount();return!(t<=0||t>this._max)&&!this._sign_data.has(t)}return 2==this._mode&&(!(this._sign_count>=this._max)&&!chsdk.date.isSameDate(this._creat_date,chsdk.date.now()))},n.checkSiginComplete=function(){return this._sign_count>=this._max},n.checkReSigin=function(){if(1!=this._mode)return 0;var t=this.getCreatDayCount()-1;if(t<=0)return 0;t>this._max&&(t=this._max);for(var i=1;i<=t;i++)if(!this._sign_data.has(i))return i;return 0},n.signIn=function(){if(!this.checkSigin())return 0;if(1==this._mode){var t=this.getCreatDayCount();return this._sign_data.add(t),this._sign_count=this._sign_data.size,t}return 2==this._mode?(this._sign_count++,this._creat_date=chsdk.date.now(),this._sign_count):0},n.reSignIn=function(){if(1!=this._mode)return 0;var t=this.checkReSigin();return t<=0||t>this._max?0:(this._sign_data.add(t),this._sign_count=this._sign_data.size,t)},i(t,[{key:"max_day",get:function(){return this._max}}]),t}())._instance=void 0,n._RF.pop()}}}));
- System.register("chunks:///_virtual/SpineView.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var n,t,i,o,s,r,a,l,h,c;return{setters:[function(e){n=e.applyDecoratedDescriptor,t=e.inheritsLoose,i=e.initializerDefineProperty,o=e.assertThisInitialized},function(e){s=e.cclegacy,r=e._decorator,a=e.sp,l=e.Color,h=e.sys,c=e.Component}],execute:function(){var u,p,C,f,d,g,m;s._RF.push({},"ce889T62SpI8ot39/O0nFrT","SpineView",void 0);var v=r.ccclass,A=r.property;e("default",(u=v("SpineView"),p=A({displayName:"待机"}),C=A({type:a.Skeleton,tooltip:"角色动画"}),u((g=n((d=function(e){function n(){for(var n,t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return(n=e.call.apply(e,[this].concat(s))||this).skin="default",i(n,"idle",g,o(n)),i(n,"spine",m,o(n)),n.cur=null,n.OnComp=void 0,n.resetColor=l.WHITE,n}t(n,e);var s=n.prototype;return s.onLoad=function(){h.isNative&&(this.spine.setAnimationCacheMode(a.AnimationCacheMode.REALTIME),this.spine.clearTracks())},s.start=function(){this.DoAnimation(this.idle,!0),this.spine.setCompleteListener(function(){this.OnComp&&this.OnComp()}.bind(this))},s.onBeforeRemove=function(){this.spine.setCompleteListener(null)},s.Dispos=function(){this.ResetColor(),this.OnComp=null},s.SetSkin=function(e){this.spine.setSkin(e)},s.DoAnimation=function(e,n,t,i){void 0===n&&(n=!0),void 0===t&&(t=0),void 0===i&&(i=!1),(i||this.cur!=e)&&this.spine.setAnimation(t,e,n)},s.SetPaused=function(e){this.spine.paused=e},s.GetPaused=function(){return this.spine.paused},s.CheckPaused=function(e){this.spine.paused!=e&&(this.spine.paused=e)},s.Flash=function(e,n){var t=this;this.spine.color!=e&&(this.spine.color=e,this.unscheduleAllCallbacks(),this.scheduleOnce((function(){t.spine.color=t.resetColor}),n))},s.ChangeMagenta=function(){this.ChangeColor(l.MAGENTA)},s.ChangeGreen=function(){this.ChangeColor(l.GREEN)},s.ChangeGray=function(){this.ChangeColor(l.GRAY)},s.ChangeRed=function(){this.ChangeColor(l.RED)},s.ChangeCyan=function(){this.ChangeColor(l.CYAN)},s.ChangeBlack=function(){this.ChangeColor(l.BLACK)},s.ChangeBule=function(){this.ChangeColor(l.BLUE)},s.ChangeYellow=function(){this.ChangeColor(l.YELLOW)},s.ChangeColor=function(e){this.resetColor=e,this.spine.color!=this.resetColor&&(this.spine.color=this.resetColor)},s.ResetColor=function(){this.resetColor=l.WHITE,this.spine.color!=this.resetColor&&(this.spine.color=this.resetColor)},s.scaleTime=function(e){e>0&&(this.spine.timeScale=e)},s.getBone=function(e){return this.spine.findBone(e)},s.changeEquipment=function(e,n){void 0===n&&(n=null);var t=this.spine.findSlot(e);if(t)if(n){var i=this.spine.getAttachment(e,n);t.setAttachment(i)}else t.setAttachment(null)},s.changeSlot=function(e,n,t){var i=this.spine.skeletonData.getRuntimeData(),o=i.findSkin(e),s=i.findSlotIndex(n),r=o.getAttachment(s,t),a=this.spine.findSlot(n);a&&a.setAttachment(r)},n}(c)).prototype,"idle",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m=n(d.prototype,"spine",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=d))||f));s._RF.pop()}}}));
- System.register("chunks:///_virtual/Start.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ch.ts","./ui.ts","./ch_start_pack.ts","./ResUtil.ts","./ModuleDef.ts","./SceneDef.ts"],(function(e){var t,n,i,r,o,a,u,l,s,d,c,p,f,h,g,_;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,i=e.initializerDefineProperty,r=e.assertThisInitialized,o=e.asyncToGenerator},function(e){a=e.cclegacy,u=e._decorator,l=e.ProgressBar,s=e.Prefab,d=e.game},function(e){c=e.ch},function(e){p=e.gui},function(e){f=e.ch_start_pack},function(e){h=e.ResUtil},function(e){g=e.ModuleDef},function(e){_=e.SceneDef}],execute:function(){var y,b,m,v,B,R,S,L;a._RF.push({},"66e163GxmdDp7kaguqDvTVl","Start",void 0);var C=u.ccclass,A=u.property,I=[g.BASIC,g.EXTRA,g.GAME],D=[{bundle:g.BASIC,url:"ui_alert/UI_Alert"},{bundle:g.BASIC,url:"ui_waiting/UI_Waiting"},{bundle:g.BASIC,url:"ui_notify/UI_Notify"}],k=I.length+D.length+1;e("Start",(y=C("Start"),b=A(l),m=A({type:s,displayName:"ui初始预制体"}),y(((L=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o))||this,i(t,"loadingBar",R,r(t)),t._percent="1",t._numCurrentLoaded=0,i(t,"ui_prefab",S,r(t)),t}n(t,e);var a=t.prototype;return a.onLoad=function(){t.packId=this.pid},a.start=function(){var e=o((function*(){console.log("Start"),p.init(this.ui_prefab),d.frameRate=61,1==this.pid||(yield this.try_init(3),this.preloadBundle(0))}));return function(){return e.apply(this,arguments)}}(),a.onResLoaded=function(){this._numCurrentLoaded++,console.log(this._numCurrentLoaded)},a.preloadBundle=function(){var e=o((function*(e){yield h.loadBundle(I[e]),c.log.info("module:<"+I[e]+">loaded."),e++,this.onResLoaded(),e<I.length?this.preloadBundle(e):this.preloadRes(0)}));return function(t){return e.apply(this,arguments)}}(),a.preloadRes=function(){var e=o((function*(e){var t=D[e];yield h.loadAsset(t.url,t.bundle),e++,this.onResLoaded(),e<D.length?this.preloadRes(e):this.onPreloadingComplete()}));return function(t){return e.apply(this,arguments)}}(),a.onPreloadingComplete=function(){var e=o((function*(){yield h.loadScene(_.Hall,g.GAME,!0),this.onResLoaded()}));return function(){return e.apply(this,arguments)}}(),a.update=function(e){if(this._percent){var t=this._numCurrentLoaded/k;this.loadingBar.progress=t>=1?t:this._numCurrentLoaded/k}},t}(f)).packId=void 0,R=t((B=L).prototype,"loadingBar",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=t(B.prototype,"ui_prefab",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=B))||v));a._RF.pop()}}}));
- System.register("chunks:///_virtual/State.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){t("default",(function(){return new n})),e._RF.push({},"d9db0FDjAhNuLA9MVTSVAgv","State",void 0);var n=function(){function t(){this._state=0}var e=t.prototype;return e.Init=function(){this._state=0},e.Meet=function(e){return t.Has(this._state,e)},e.MeetAny=function(e){var n=this._state&e;return n===e||0!=n&&t.Has(e,n)},e.MeetAll=function(){for(var e=0,n=0;n<arguments.length;n++)e|=n<0||arguments.length<=n?void 0:arguments[n];return this.Meet(t.CombieState(e))},e.MeetAnyOne=function(){for(var t=0;t<arguments.length;t++)if(this.Meet(t<0||arguments.length<=t?void 0:arguments[t]))return!0;return!1},e.Add=function(t){this._state|=t},e.Delete=function(t){this.Meet(t)&&(this._state^=t)},t.ToState=function(t){return 1<<t},t.CombieState=function(){for(var t=0,e=0;e<arguments.length;e++)t|=e<0||arguments.length<=e?void 0:arguments[e];return t},t.Has=function(t,e){return(t&e)===e},t}();e._RF.pop()}}}));
- System.register("chunks:///_virtual/StringUtil.ts",["cc"],(function(t){var n;return{setters:[function(t){n=t.cclegacy}],execute:function(){n._RF.push({},"77722BYjyNHJpJ4DuMACErZ","StringUtil",void 0);t("StringUtil",function(){function t(){}t.ToFixed=function(t,n){return t.toFixed(n).toString()},t.ToTimeString=function(t){t=Math.floor(t);var n=Math.floor(t/60);t-=60*n;var r=n.toString();return r.length<=1&&(r="0".concat(r)),t<10?r+":"+"0".concat(t.toString()):r+":"+t},t.ToSce=function(t,n){return void 0===n&&(n="s"),""+(t=Math.floor(t))+n},t.ToMoneyString=function(t){if(t>1e6){var n=Math.floor(1e-6*t);return(t-=1e6*n)>1e3?n+"M"+Math.floor(.001*t)+"K":n+"M"}if(t>1e3){var r=Math.floor(.001*t);return(t-=1e3*r)>100?r+"K"+(t=Math.floor(.01*t)):r+"K"}return t.toString()},t.MS2S=function(t){return(.001*t).toFixed(1)};var n=t.prototype;return n.trimSpace=function(t){return t.replace(/^\s*(.*?)[\s\n]*$/g,"$1")},n.getStringLength=function(t){for(var n=t.split(""),r=0,e=0;e<n.length;e++){var o=n[e];this.isChinese(o)?r+=2:r+=1}return r},n.isChinese=function(t){return/^.*[\u4E00-\u9FA5]+.*$/.test(t)},n.format=function(t){for(var n=0,r=arguments.length<=1?0:arguments.length-1;n<r;n++){var e=new RegExp("({)"+n+"(})","g");t=t.replace(e,n+1<1||arguments.length<=n+1?void 0:arguments[n+1])}return t},t}());n._RF.pop()}}}));
- System.register("chunks:///_virtual/TableLoadUtil.ts",["cc"],(function(n){var e,t,o;return{setters:[function(n){e=n.cclegacy,t=n.assetManager,o=n.JsonAsset}],execute:function(){e._RF.push({},"0d2abQaWYVLPptXiFU69SYv","TableLoadUtil",void 0);n("default",function(){function n(){}return n.preloadAll=function(n,e,l,a){var i=this;t.loadBundle(n,(function(n,t){n?console.log(n):t.loadDir(e,o,function(n,e){if(n)console.log(n);else{for(var t=0;t<e.length;t++)null==a||a(e[t].name,e[t].json);l(e)}}.bind(i))}))},n}());e._RF.pop()}}}));
- System.register("chunks:///_virtual/TimeJobCenter.ts",["cc"],(function(t){var i;return{setters:[function(t){i=t.cclegacy}],execute:function(){t("default",(function(){return new n})),i._RF.push({},"29a956DSGFLW6G8399hAoz8","TimeJobCenter",void 0);var e=function(t,i,e,s,n){this.tid=void 0,this.destTime=void 0,this.callback=void 0,this.count=void 0,this.delay=void 0,this.doDelete=!1,this.tid=t,this.callback=i,this.destTime=e,this.delay=s,this.count=n},s=t("TimeUnit",function(t){return t[t.Millisecond=0]="Millisecond",t[t.Second=1]="Second",t[t.Hour=2]="Hour",t[t.Day=3]="Day",t}({})),n=function(){function t(){this.tid=0,this.tempList=new Array,this.taskList=new Array,this.nowTime=0,this._index=void 0,this._count=void 0,this._tt=void 0}var i=t.prototype;return i.Dispose=function(){this.taskList.length=0,this.tempList.length=0,this.nowTime=0},i.getTid=function(){if(this.tid==Number.MAX_VALUE){for(var t=0;;){for(var i=!1,e=0;e<this.taskList.length;e++)if(this.taskList[e].tid==t){i=!0;break}if(!i)break;t++}return t}return this.tid+=1,this.tid},i.delay=function(t){var i=this;return new Promise((function(e){return i.AddTimeTask(e,t,1,s.Millisecond)}))},i.delay_second=function(t){var i=this;return new Promise((function(e){return i.AddTimeTask(e,t,1,s.Second)}))},i.AddTimeTask=function(t,i,e,n){void 0===e&&(e=1),void 0===n&&(n=s.Second);var h=this.getTid();return this.tempList.push(this.CreatNewTimeTask(h,t,i,e,n)),h},i.CreatNewTimeTask=function(t,i,n,h,o){if(void 0===h&&(h=1),void 0===o&&(o=s.Second),o!=s.Second)switch(o){case s.Millisecond:n*=.001;break;case s.Hour:n*=360;break;case s.Day:n*=8640;break;default:console.error("Add Task TimeUnit Type Error...")}return new e(t,i,this.nowTime+n,n,h)},i.DeleteTimeTask=function(t){for(var i=!1,e=0;e<this.tempList.length;e++)if(this.tempList[e].tid==t){this.tempList[e].doDelete=!0,i=!0;break}if(!i)for(var s=0;s<this.taskList.length;s++)if(this.taskList[s].tid==t){this.taskList[s].doDelete=!0,i=!0;break}return i},i.Run=function(t){if(this.nowTime+=t,this._count=this.tempList.length,this._count>0){for(this._index=0;this._index<this._count;this._index++)this.tempList[this._index].doDelete||this.taskList.push(this.tempList[this._index]);this.tempList.length=0}if(this._count=this.taskList.length,this._count>0)for(this._index=0;this._index<this._count;this._index++)this._tt=this.taskList[this._index],this.nowTime<this._tt.destTime||this._tt.doDelete||(this._tt.callback(),1==this._tt.count?this._tt.doDelete=!0:this._tt.count>0?(this._tt.count--,this._tt.destTime+=this._tt.delay):this._tt.destTime+=this._tt.delay);this.taskList=this.taskList.filter((function(t){return!t.doDelete}))},t}();i._RF.pop()}}}));
- System.register("chunks:///_virtual/Timer.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,s;return{setters:[function(e){t=e.createClass},function(e){s=e.cclegacy}],execute:function(){e("default",(function(e){return new i(e)})),s._RF.push({},"890248SdzRIsa6dPHIO+Qxy","Timer",void 0);var i=function(){function e(e){void 0===e&&(e=0),this._elapsedTime=0,this._step=-1,this.step=e}var s=e.prototype;return s.serialize=function(){return{step:this._step,elapsed:this._elapsedTime}},s.unserialize=function(e){e&&(this._step=e.step,this._elapsedTime=e.elapsed)},s.update=function(e){return!(this.step<=0)&&(this._elapsedTime+=e,this._elapsedTime>=this._step&&(this._elapsedTime-=this._step,!0))},s.reset=function(){this._elapsedTime=0},s.stop=function(){this._elapsedTime=0,this.step=-1},t(e,[{key:"elapsedTime",get:function(){return this._elapsedTime}},{key:"step",get:function(){return this._step},set:function(e){this._step=e,this._elapsedTime=0}},{key:"coundown",get:function(){return this._step-this._elapsedTime}},{key:"progress",get:function(){return this._elapsedTime/this._step}}]),e}();s._RF.pop()}}}));
- System.register("chunks:///_virtual/Toast.ts",["cc"],(function(t){var e,i,o,n,s,h,r,d,a,g,_,N,l,p,u;return{setters:[function(t){e=t.cclegacy,i=t.ImageAsset,o=t.UIOpacity,n=t.tween,s=t.Label,h=t.UITransform,r=t.v3,d=t.Node,a=t.Layers,g=t.view,_=t.BlockInputEvents,N=t.Sprite,l=t.Texture2D,p=t.SpriteFrame,u=t.color}],execute:function(){e._RF.push({},"0cfc340yupKhKm9JAtrMkIE","Toast",void 0);var A=t("Gravity",function(t){return t[t.BOTTOM=0]="BOTTOM",t}({})),c=new Image;c.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAAA1BMVEX///+nxBvIAAAACklEQVQI12MAAgAABAABINItbwAAAABJRU5ErkJggg==";var v=new i(c),m=t("Toast",function(){function t(t){this._bgNode=null,this._textNode=null,this._node=null,this._text="",this._time=0,this._textSize=18,this._gravity=A.BOTTOM,this._node=this.getPNode(t),this._bgNode=new d,this._bgNode.layer=a.Enum.UI_2D,this._bgNode.addComponent(_);var e=this._bgNode.addComponent(N);e.type=N.Type.SLICED;var i=new l;i.image=v;var n=new p;n.texture=i,e.spriteFrame=n,e.color=u(0,0,0,200),this._bgNode.addComponent(o),this._bgNode.active=!1,this._textNode=new d("Text"),this._textNode.layer=a.Enum.UI_2D,this._textNode.addComponent(h).width=this._node.getComponent(h).width;var r=this._textNode.addComponent(s);r.horizontalAlign=s.HorizontalAlign.CENTER,r.verticalAlign=s.VerticalAlign.CENTER,this._textSize=20,this._textNode.parent=this._bgNode,this._bgNode.parent=this._node}t.makeText=function(e,i,o){void 0===o&&(o=t.LENGTH_SHORT);var n=new t(e);return n.setText(i),n.setTime(o),n};var e=t.prototype;return e.show=function(){var t=this;this.setOverFlow(),this._bgNode.active=!0;var e=this._bgNode.getComponent(o);n(e).delay(this._time).to(.3,{opacity:0}).call((function(){t._bgNode.destroy()})).start()},e.setText=function(t){return this._text=t,this._textNode.getComponent(s).string=this._text,this},e.setFontSize=function(t){return this._textSize=t,this._textNode.getComponent(s).fontSize=this._textSize,this},e.setTime=function(t){return this._time=t,this},e.setGravity=function(t){return this._gravity=t,this},e.setPosition=function(){var t=this._node.getComponent(h),e=this._bgNode.getComponent(h);if(A.BOTTOM===this._gravity){var i=-t.height/2+e.height/2+64;this._bgNode.position=r(0,i,0)}},e.setOverFlow=function(){var t=this._node.getComponent(h).width/2,e=this._textNode.getComponent(s),i=this._text.length*e.fontSize,o=this._textNode.getComponent(h);i>t?(o.width=t,e.overflow=s.Overflow.RESIZE_HEIGHT):(o.width=i,e.overflow=s.Overflow.NONE);var n=this._bgNode.getComponent(h);n.width=o.width+4*e.fontSize,n.height=o.height,this.setPosition()},e.getPNode=function(e){if(null==t.pNode||!t.pNode.isValid){t.pNode=new d("Toast");var i=t.pNode.addComponent(h);t.pNode.layer=a.Enum.UI_2D,e.addChild(t.pNode),t.pNode.setSiblingIndex(e.children.length);var o=g.getVisibleSize();i.contentSize=o,i.width=o.width,i.height=o.height}return t.pNode},t}());m.LENGTH_SHORT=2,m.LENGTH_LONG=3.5,m.pNode=null,e._RF.pop()}}}));
- System.register("chunks:///_virtual/ui_base.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,o,s,i,l,r,a,c,u,h,d,f;return{setters:[function(t){e=t.inheritsLoose,n=t.createClass},function(t){o=t.cclegacy,s=t._decorator,i=t.Button,l=t.assetManager,r=t.Node,a=t.find,c=t.EventHandler,u=t.Toggle,h=t.ToggleContainer,d=t.Component,f=t.isValid}],execute:function(){var v;o._RF.push({},"a34ebvwnv5E2LG2J8RHwXU2","ui_base",void 0);var _=s.ccclass,g=(s.property,_("tgxNodeEventAgent")(v=function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var o=n.prototype;return o.onButtonClicked=function(t,e){for(var n=t.target.getComponent(i),o=n.clickEvents,s=0;s<o.length;++s){var l=o[s];if(l.customEventData==e){var r=l.$cb$,a=l.$target$,c=l.$args$;r.apply(a,[n,c])}}},o.onToggleEvent=function(t,e){for(var n=t.checkEvents,o=0;o<n.length;++o){var s=n[o];if(s.customEventData==e){var i=s.$cb$,l=s.$target$,r=s.$args$;i.apply(l,[t,r])}}},n}(d))||v),p=0,y=t("default",function(){e.closeAll=function(){for(;this._uis.length;)this._uis[0].close();this._clss.clear()},e.closeAndReleaseAll=function(){for(;this._uis.length;)this._uis[0].closeAndRelease();this._clss.clear()},e.updateAll=function(t){for(var e=0;e<this._uis.length;++e){var n=this._uis[e];n.node&&f(n.node)&&this._uis[e].onUpdate(t)}},e._addCls=function(t){t&&this._clss.add(t)},e._removeCls=function(t){t&&this._clss.delete(t)},e._hasCls=function(t){return this._clss.has(t)};var t=e.prototype;function e(t,e,n,o){this._id=0,this._bundle=void 0,this._prefab=void 0,this._layer=void 0,this._layout=void 0,this._cls=void 0,this.node=void 0,this._destroyed=!1,this._resolve_close=null,this._cls=null,this._bundle=t,this._prefab=e,this._layer=n,this._layout=o,this._id=p++}return t.getLayout=function(){return this._layout},t._setup=function(t,n){e._uis.push(this),this._cls=t,e._addCls(this._cls),this.node=n,this._layout&&(this._layout=this.node.getComponent(this._layout));for(var o=arguments.length,s=new Array(o>2?o-2:0),i=2;i<o;i++)s[i-2]=arguments[i];this.onCreated.apply(this,s),this._destroyed&&this.close()},t.close=function(){var t;if(null==(t=this._resolve_close)||t.call(this),this._resolve_close=null,this._destroyed=!0,this.node){this.node.removeFromParent();for(var n=0;n<e._uis.length;++n)if(e._uis[n]==this){e._uis.splice(n,1);break}this.onDispose(),this.node.destroy(),this.node=null,e._removeCls(this._cls),this._cls=null}},t.closeAndRelease=function(){var t;this.close(),null==(t=l.getBundle(this._bundle))||t.release(this._prefab)},t.wait_close=function(){var t=this;if(!this._resolve_close)return new Promise((function(e){t._resolve_close=e}))},t.onButtonEvent=function(t,e,n,o){var s=null;if(!(s=t instanceof r?t:t instanceof i?t.node:a(t,this.node)))return null;var l=this.node.getComponent(g);l||(l=this.node.addComponent(g));var u=s.getComponent(i),h=u.clickEvents,d=new c;d.target=this.node,d.component="tgxNodeEventAgent",d.handler="onButtonClicked",d.customEventData=""+p++,d.$cb$=e,d.$target$=n,d.$args$=o,h.push(d),u.clickEvents=h},t.offButtonEvent=function(t,e,n){var o=null;if((o=t instanceof r?t:t instanceof i?t.node:a(t,this.node))&&this.node.getComponent(g)){var s=o.getComponent(i);if(s)for(var l=s.clickEvents,c=0;c<l.length;++c){var u=l[c];if(u.$cb$==e&&u.$target$==n){l.splice(c,1),s.clickEvents=l;break}}}},t.onToggleEvent=function(t,e,n,o){var s=null;if(!(s=t instanceof r?t:t instanceof u||t instanceof h?t.node:a(t,this.node)))return null;var i=this.node.getComponent(g);i||(i=this.node.addComponent(g));var l=s.getComponent(u);l||(l=s.getComponent(h));var d=l.checkEvents,f=new c;f.target=this.node,f.component="tgxNodeEventAgent",f.handler="onToggleEvent",f.customEventData=""+p++,f.$cb$=e,f.$target$=n,f.$args$=o,d.push(f),l.checkEvents=d},t.offToggleEvent=function(t,e,n){var o=null;if(!(o=t instanceof r?t:t instanceof u||t instanceof h?t.node:a(t,this.node)))return null;if(this.node.getComponent(g)){var s=o.getComponent(u);s||(s=o.getComponent(h));for(var i=s.checkEvents,l=0;l<i.length;++l){var c=i[l];if(c.$cb$==e&&c.$target$==n){i.splice(l,1),s.checkEvents=i;break}}}},t.onCreated=function(){},t.onDispose=function(){},t.onUpdate=function(t){},n(e,[{key:"id",get:function(){return this._id}},{key:"prefab",get:function(){return this._prefab}},{key:"bundle",get:function(){return this._bundle}},{key:"layer",get:function(){return this._layer}},{key:"layout",get:function(){return this._layout}}]),e}());y._clss=new Set,y._uis=[],o._RF.pop()}}}));
- System.register("chunks:///_virtual/ui_ResolutionAutoFit.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,o,e,s,n,u,l,c;return{setters:[function(t){i=t.inheritsLoose},function(t){o=t.cclegacy,e=t._decorator,s=t.screen,n=t.view,u=t.ResolutionPolicy,l=t.size,c=t.Component}],execute:function(){var r;o._RF.push({},"c7d72SJqEtIhpLiAo3HdgLR","ui_ResolutionAutoFit",void 0);var a=e.ccclass;e.property,t("ResolutionAutoFit",a("ch.ResolutionAutoFit")(r=function(t){function o(){for(var i,o=arguments.length,e=new Array(o),s=0;s<o;s++)e[s]=arguments[s];return(i=t.call.apply(t,[this].concat(e))||this)._oldSize=l(),i.lastCheckTime=0,i}i(o,t);var e=o.prototype;return e.start=function(){this.adjustResolutionPolicy()},e.update=function(t){this.lastCheckTime+=t,this.lastCheckTime<.1||(this.lastCheckTime=0,this.adjustResolutionPolicy())},e.adjustResolutionPolicy=function(){var t=s.windowSize;if(!this._oldSize.equals(t)){var i=t.width/t.height,o=n.getDesignResolutionSize();i>o.width/o.height?n.setResolutionPolicy(u.FIXED_HEIGHT):n.setResolutionPolicy(u.FIXED_WIDTH),this._oldSize.set(t)}},o}(c))||r);o._RF.pop()}}}));
- System.register("chunks:///_virtual/ui.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ui_base.ts","./ui_ResolutionAutoFit.ts"],(function(n){var t,i,e,o,a,r,s,u,l,c,d,f,v,h,_,p,g,m,y;return{setters:[function(n){t=n.inheritsLoose,i=n.asyncToGenerator},function(n){e=n.cclegacy,o=n._decorator,a=n.Component,r=n.tween,s=n.v3,u=n.UIOpacity,l=n.Tween,c=n.Vec3,d=n.UITransform,f=n.Node,v=n.Widget,h=n.error,_=n.instantiate,p=n.director,g=n.assetManager},function(t){m=t.default,n("ui_base",t.default)},function(n){y=n.ResolutionAutoFit}],execute:function(){var w;e._RF.push({},"81e48wxjGBMPp2rQOJDljTG","ui",void 0);var C=o.ccclass,P=(o.property,C("ui_updater")(w=function(n){function i(){return n.apply(this,arguments)||this}return t(i,n),i.prototype.update=function(n){m.updateAll(n)},i}(a))||w),A=n("GameUILayers",function(n){return n[n.GAME=0]="GAME",n[n.JOY_STICK=1]="JOY_STICK",n[n.HUD=2]="HUD",n[n.POPUP=3]="POPUP",n[n.ALERT=4]="ALERT",n[n.NOTICE=5]="NOTICE",n[n.LOADING=6]="LOADING",n[n.OVERLAY=7]="OVERLAY",n}({})),R=function(){function n(){this._uiCanvas=void 0,this._uiRoot=void 0,this._clss_loading=new Set}n.getInstance=function(){return this._instance||(this._instance=new n),this._instance};var t=n.prototype;return t.delay=function(n){return new Promise((function(t){return setTimeout(t,n)}))},t.delay_second=function(n){return new Promise((function(t){return setTimeout(t,1e3*n)}))},t.progressBar_anim=function(n,t,i){return void 0===i&&(i=.2),n.progress>=t?void(n.progress=t):new Promise((function(e){return r(n).to(i,{progress:t}).call((function(){e()})).start()}))},t.fillRange_anim=function(n,t,i,e){return void 0===i&&(i=.2),void 0===e&&(e=0),e>0&&n.fillRange>=t&&e<0&&n.fillRange<=t?void(n.fillRange=t):new Promise((function(e){return r(n).to(i,{fillRange:t}).call((function(){e()})).start()}))},t.scale_anim=function(n,t,i,e){return void 0===t&&(t=.2),void 0===i&&(i=.5),void 0===e&&(e=1),n.setScale(i,i,1),new Promise((function(i){return r(n).to(t,{scale:s(e,e,1)}).call((function(){i()})).start()}))},t.scale_elasticOut_anim=function(n,t,i,e){return void 0===t&&(t=.2),void 0===i&&(i=.5),void 0===e&&(e=1),n.setScale(i,i,1),new Promise((function(i){return r(n).to(t,{scale:s(e,e,1)},{easing:"elasticOut"}).call((function(){i()})).start()}))},t.fade_anim=function(n,t,i,e){var o;void 0===t&&(t=.2),void 0===i&&(i=0),void 0===e&&(e=255);var a=null!=(o=n.getComponent(u))?o:n.addComponent(u);return a.opacity=i,new Promise((function(n){r(a).to(t,{opacity:e}).call((function(){n()})).start()}))},t.shake_anim=function(n,t,i,e){return void 0===t&&(t=.2),void 0===i&&(i=5),void 0===e&&(e=7),new Promise((function(o){for(var a=n.position.clone(),u=t/(2*e),l=r(n),c=0;c<e;c++){var d=c%2==0?i:-i;l.to(u,{position:s(a.x+d,a.y,a.z)}).to(u,{position:a})}l.call((function(){o()})).start()}))},t.rotate_shake_anim=function(n,t,i,e){return void 0===t&&(t=.3),void 0===i&&(i=5),void 0===e&&(e=5),new Promise((function(o){for(var a=n.angle,s=t/(2*e),u=r(n),l=0;l<e;l++){var c=l%2==0?i:-i;u.to(s,{angle:a+c}).to(s,{angle:a})}u.call((function(){o()})).start()}))},t.scale_shake_anim=function(n,t,i,e,o){return void 0===t&&(t=.3),void 0===i&&(i=.1),void 0===e&&(e=10),void 0===o&&(o=null),o&&(l.stopAllByTarget(n),n.setScale(o,o,o)),new Promise((function(o){for(var a=n.scale.clone(),u=t/(2*e),l=r(n),c=0;c<e;c++){var d=c%2==0?i:-i;l.to(u,{scale:s(a.x+d,a.y+d,a.z)}).to(u,{scale:a})}l.call((function(){o()})).start()}))},t.opacity_shake_anim=function(n,t,i,e){var o;void 0===t&&(t=.8),void 0===i&&(i=80),void 0===e&&(e=5);var a=null!=(o=n.getComponent(u))?o:n.addComponent(u),s=a.opacity,l=t/(2*e);return new Promise((function(n){for(var t=r(a),o=0;o<e;o++){var u=o%2==0?i:-i;t.to(l,{opacity:Math.min(Math.max(s+u,0),255)}).to(l,{opacity:s})}t.call((function(){n()})).start()}))},t.bounce_anim=function(n,t,i){return void 0===t&&(t=100),void 0===i&&(i=.5),new Promise((function(e){r(n).to(i,{position:n.position.clone().add(new c(0,t,0))},{easing:"bounceOut"}).to(i,{position:n.position},{easing:"bounceIn"}).call((function(){e()})).start()}))},t.reward_fly_anim=function(n,t,i,e,o,a,s){return void 0===e&&(e=100),void 0===o&&(o=.3),void 0===a&&(a=.5),void 0===s&&(s=.3),n.setPosition(t),new Promise((function(u){var l=new c(2*Math.random()-1,2*Math.random()-1,0).normalize(),d=t.add(l.multiplyScalar(e));r(n).to(o,{worldPosition:d}).delay(a).to(s,{worldPosition:i},{easing:"cubicIn"}).call((function(){u()})).start()}))},t.createFullScreenNode=function(){var n=this._uiCanvas.getComponent(d),t=new f;t.layer=this._uiCanvas.layer;var i=t.addComponent(d);i.width=n.width,i.height=n.height;var e=t.addComponent(v);return e.isAlignBottom=!0,e.isAlignTop=!0,e.isAlignLeft=!0,e.isAlignRight=!0,e.left=0,e.right=0,e.top=0,e.bottom=0,t},t.getLayers=function(){return Object.values(A).filter((function(n){return"number"==typeof n}))},t.init=function(n){if(!this._uiCanvas){if(!n)throw h("uiCanvas must be a Node or Prefab");n instanceof f?this._uiCanvas=n:(this._uiCanvas=_(n),p.getScene().addChild(this._uiCanvas)),this._uiCanvas.name="__ui_canvas__",p.addPersistRootNode(this._uiCanvas),this._uiCanvas.getComponent(P)||this._uiCanvas.addComponent(P);var t=this._uiCanvas.getComponent(d);this._uiCanvas.addComponent(y),this._uiRoot=this.createFullScreenNode(),this._uiRoot.name="root",t.node.addChild(this._uiRoot);for(var i=this.getLayers(),e=0;e<i.length;++e){var o=this.createFullScreenNode();o.name="layer_"+A[i[e]],this._uiRoot.addChild(o)}}},t.getLayerNode=function(n){return this._uiRoot.children[n]||this._uiRoot},t.closeAll=function(){m.closeAll()},t.closeAndReleaseAll=function(){m.closeAndReleaseAll()},t.close=function(n){var t;null==(t=this.get(n))||t.close()},t.get=function(n){for(var t=m._uis,i=0;i<t.length;++i){var e=t[i];if(e instanceof n)return e}return null},t.isShowing=function(n){return m._hasCls(n)},t.isLoading=function(n){return n?this._clss_loading.has(n):this._clss_loading.size>0},t.show=function(){var n=i((function*(n){if(this.isLoading(n))return null;if(this.isShowing(n))return null;var t=new n;this._clss_loading.add(n);var i=t.bundle;if(!i)return this._clss_loading.delete(n),console.error("ui no bundle name"),null;for(var e=g.getBundle(i),o=arguments.length,a=new Array(o>1?o-1:0),r=1;r<o;r++)a[r-1]=arguments[r];if(e)return yield this._create.apply(this,[e,t,n].concat(a));try{var s=yield this.loadBundleAsync(i);return yield this._create.apply(this,[s,t,n].concat(a))}catch(t){console.error(t),this._clss_loading.delete(n)}}));return function(t){return n.apply(this,arguments)}}(),t._create=function(){var n=i((function*(n,t,i){try{var e,o=yield this.loadPrefabAsync(n,t.prefab),a=_(o),r=this.getLayerNode(t.layer);r.addChild(a);for(var s=arguments.length,u=new Array(s>3?s-3:0),l=3;l<s;l++)u[l-3]=arguments[l];return(e=t)._setup.apply(e,[i,a].concat(u)),this._clss_loading.delete(i),t}catch(n){return console.error(n),void this._clss_loading.delete(i)}}));return function(t,i,e){return n.apply(this,arguments)}}(),t.loadBundleAsync=function(n){return new Promise((function(t,i){g.loadBundle(n,null,(function(n,e){n?i(n):t(e)}))}))},t.loadPrefabAsync=function(n,t){return new Promise((function(i,e){n.load(t,(function(n,t){n?e(n):i(t)}))}))},n}();R._instance=void 0;n("gui",R.getInstance());e._RF.pop()}}}));
- System.register("chunks:///_virtual/UISpineMovie.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){var n,t,e,s,a,o,r,h,u,c;return{setters:[function(i){n=i.applyDecoratedDescriptor,t=i.inheritsLoose,e=i.initializerDefineProperty,s=i.assertThisInitialized},function(i){a=i.cclegacy,o=i._decorator,r=i.CCString,h=i.sp,u=i.Color,c=i.Component}],execute:function(){var l,p,m,d,f,v,_;a._RF.push({},"4ce979zctxD67dYVnpW4Mn+","UISpineMovie",void 0);var y=o.ccclass,g=o.property;i("default",(l=y("UISpineMovie"),p=g({type:[r],displayName:"动画列表"}),m=g({type:h.Skeleton,tooltip:"角色动画"}),l((v=n((f=function(i){function n(){for(var n,t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return n=i.call.apply(i,[this].concat(a))||this,e(n,"animat_names",v,s(n)),e(n,"spine",_,s(n)),n.cur=null,n.index=0,n}t(n,i);var a=n.prototype;return a.onLoad=function(){},a.start=function(){this.animat_names.length>0&&(this.index=0,this.index==this.animat_names.length-1?this.DoAnimation(this.animat_names[this.index],!0):this.DoAnimation(this.animat_names[this.index],!1),this.spine.setCompleteListener(function(){this.index++,this.index<this.animat_names.length?this.index==this.animat_names.length-1?this.DoAnimation(this.animat_names[this.index],!0):this.DoAnimation(this.animat_names[this.index],!1):this.spine.setCompleteListener(null)}.bind(this)))},a.SetSkin=function(i){this.spine.setSkin(i)},a.DoAnimation=function(i,n,t,e){void 0===n&&(n=!0),void 0===t&&(t=0),void 0===e&&(e=!1),(e||this.cur!=i)&&this.spine.setAnimation(t,i,n)},a.SetPaused=function(i){this.spine.paused=i},a.GetPaused=function(){return this.spine.paused},a.CheckPaused=function(i){this.spine.paused!=i&&(this.spine.paused=i)},a.Flash=function(i,n,t){var e=this;void 0===t&&(t=u.WHITE),this.spine.color!=i&&(this.spine.color=i,this.unscheduleAllCallbacks(),this.scheduleOnce((function(){e.spine.color=t}),n))},a.scaleTime=function(i){i>0&&(this.spine.timeScale=i)},a.getBone=function(i){return this.spine.findBone(i)},n}(c)).prototype,"animat_names",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=n(f.prototype,"spine",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f))||d));a._RF.pop()}}}));
- System.register("chunks:///_virtual/UrlUtil.ts",["cc"],(function(t){var n;return{setters:[function(t){n=t.cclegacy}],execute:function(){n._RF.push({},"27d07mMayFBBZrBncxUySIT","UrlUtil",void 0);t("default",function(){function t(){}return t.getParamString=function(t){var n;if(null!=(t=t||(null==(n=window.location)?void 0:n.href))){var r=t.indexOf("?");if(-1!=r)return t.substring(r+1)}return null},t.getParam=function(t){var n={},r=this.getParamString(t);return r&&r.split("&").forEach((function(t){var r=t.split("=");2==r.length&&(n[r[0]]=r[1])})),n},t.getParamValue=function(t,n){var r=this.getParamString(n);if(r){var i=r.match("(^|&)"+t+"=([^&]*)(&|$)");if(i)return i[2]}return null},t}());n._RF.pop()}}}));
- System.register("chunks:///_virtual/Utils.ts",["cc"],(function(t){var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"7ea66r0AApIFbjuTFjXJIWh","Utils",void 0);t("Utils",function(){function t(){}return t.getRandom=function(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=1),void 0===r&&(r=!1),null==t&&(t=0),null==e&&(e=1),null==r&&(r=!1),t===e)return t;var n=t+Math.random()*(e-t);return r&&(n=Math.floor(n)),n},t.getRandomIntInclusive=function(t,e){return(t=Math.ceil(t))==(e=Math.floor(e))?t:Math.floor(Math.random()*(e-t+1))+t},t.getRandomInt=function(t,e){return t=Math.ceil(t),e=Math.ceil(e),Math.floor(Math.random()*(e-t))+t},t.getRandomNumberInRange=function(t,e){return Math.random()*(e-t)+t},t.getRandomDir=function(){return 0===Math.floor(2*Math.random())?-1:1},t.getRandomDiffValueFromArr=function(e,r){var n=new Array,a=new Array;if(!e||e.length<=0||r<=0)return a;for(var o=0;o<e.length;o++)n.push(e[o]);if(r>=n.length)return n;r=Math.min(r,n.length-1);for(var u=0;u<r;u++){var i=t.getRandomIntInclusive(0,n.length-1);a.push(n.splice(i,1)[0])}return a},t.randomStr=function(t){for(var e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;a<t;a++)e+=r.charAt(Math.floor(Math.random()*n));return e},t.time2str=function(t){var e=new Date;e.setTime(t);var r=e.getFullYear(),n=e.getHours(),a=e.getMinutes(),o=e.getSeconds();return r+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+(n>9?n:"0"+n)+":"+(a>9?a:"0"+a)+":"+(o>9?o:"0"+o)},t.second2time=function(t,e){void 0===e&&(e=2);var r=Math.floor(t/864e5);t%=864e5;var n=Math.floor(t/36e5);t%=36e5;var a=Math.floor(t/6e4);t%=6e4;var o=Math.floor(t/1e3),u="";return r>0&&e>0&&(u+=(r>9?r:"0"+r)+":",e--),n>0&&e>0&&(u+=(n>9?n:"0"+n)+":",e--),a>0&&e>0&&(u+=(a>9?a:"0"+a)+":",e--),e>0&&(u+=o>9?o:"0"+o,e--),(t%=1e3)>0&&e>0&&e--,u},t.formatMilliseconds=function(t){var e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60);return Math.floor(t/36e5%24).toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")+":"+e.toString().padStart(2,"0")},t.getDecimal=function(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r},t.getYearWeek=function(t){var e=new Date(t),r=new Date(e.getFullYear(),0,1),n=Math.floor((e.valueOf()-r.valueOf())/864e5);return Math.ceil((e.getDay()+1+n)/7)},t.isSameDay=function(t,e){var r=new Date(t);r.setHours(0,0,0,0);var n=new Date(e);return n.setHours(0,0,0,0),r.getTime()==n.getTime()},t.checkAndAdd=function(t,e,r){t.has(e)?t.set(e,t.get(e)+r):t.set(e,r)},t.randomWeights=function(t){for(var e=t.reduce((function(t,e){return t+e}),0),r=this.getRandom(0,e),n=0,a=0;n<t.length;n++)if((a+=t[n])>=r)return n;return-1},t.randomArray=function(t,e){return e?this.randomWeights(e.slice(0,t.length)):this.getRandom(0,t.length,!0)},t}());e._RF.pop()}}}));
- System.register("chunks:///_virtual/Wait.ts",["cc"],(function(e){var t;return{setters:[function(e){t=e.cclegacy}],execute:function(){e("default",(function(){return new n})),t._RF.push({},"5f7efxwnidOU6yhMrPMB9m6","Wait",void 0);var n=function(){function e(){this._resolve=null}var t=e.prototype;return t.wait=function(){var e=this;return new Promise((function(t){return e._resolve=t}))},t.resolve=function(e){this._resolve&&(this._resolve(e),this.dispose())},t.dispose=function(){this._resolve=null},e}();t._RF.pop()}}}));
- System.register("chunks:///_virtual/WsClient.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(n){var t,e;return{setters:[function(n){t=n.createClass},function(n){e=n.cclegacy}],execute:function(){e._RF.push({},"d14186TLCpDIa2nmf/PWkp9","WsClient",void 0);n("WsClient",function(){var n=e.prototype;function e(n,t,e){this._ws=null,this._url=null,this._ca=void 0,this._ca=t,this._url=n,e&&this.connect()}return n.onConnected=function(n){},n.onError=function(n){},n.onClosing=function(){},n.onClosed=function(n){},n.onMessage=function(n){},n._onConnected=function(n){this.onConnected(n)},n._onMessage=function(n){this.onMessage(n)},n._onError=function(n){this.onError(n)},n._onClosed=function(n){this.onClosed(n)},n.connect=function(){if(this.isConnecting)return!1;if(this.isActive)return!1;var n=this._url;if(!n)return!1;try{var t=this._ca&&n.startsWith("wss://")?new WebSocket(n,{},this._ca):new WebSocket(n);t.binaryType="arraybuffer",t.onmessage=this._onMessage.bind(this),t.onopen=this._onConnected.bind(this),t.onerror=this._onError.bind(this),t.onclose=this._onClosed.bind(this),this._ws=t}catch(n){this._onError(n instanceof Error?n.message:"Unknown error")}return!0},n.close=function(n,t){this.isClosed||this.isClosing||(this.onClosing(),this._ws.close(n,t))},n.send=function(n){this._ws.send(n)},t(e,[{key:"ws",get:function(){return this._ws}},{key:"isActive",get:function(){var n;return(null==(n=this._ws)?void 0:n.readyState)===WebSocket.OPEN}},{key:"isConnecting",get:function(){var n;return(null==(n=this._ws)?void 0:n.readyState)===WebSocket.CONNECTING}},{key:"isClosing",get:function(){var n;return(null==(n=this._ws)?void 0:n.readyState)===WebSocket.CLOSING}},{key:"isClosed",get:function(){var n;return(null==(n=this._ws)?void 0:n.readyState)===WebSocket.CLOSED}}]),e}());e._RF.pop()}}}));
- (function(r) {
- r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
- })(function(mid, cid) {
- System.register(mid, [cid], function (_export, _context) {
- return {
- setters: [function(_m) {
- var _exportObj = {};
- for (var _key in _m) {
- if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
- }
-
- _export(_exportObj);
- }],
- execute: function () { }
- };
- });
- });
|