ShenNong_Simple/build/web-mobile/assets/main/index.75172.js
2024-12-10 16:10:05 +08:00

1 line
135 KiB
JavaScript

window.__require=function t(e,i,a){function n(r,c){if(!i[r]){if(!e[r]){var l=r.split("/");if(l=l[l.length-1],!e[l]){var s="function"==typeof __require&&__require;if(!c&&s)return s(l,!0);if(o)return o(l,!0);throw new Error("Cannot find module '"+r+"'")}r=l}var m=i[r]={exports:{}};e[r][0].call(m.exports,function(t){return n(e[r][1][t]||t)},m,m.exports,t,e,i,a)}return i[r].exports}for(var o="function"==typeof __require&&__require,r=0;r<a.length;r++)n(a[r]);return n}({AudioManager:[function(t,e,i){"use strict";cc._RF.push(e,"58403/n16JCa5sZhNMjZzGo","AudioManager");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=r.property,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.audioGameBgm0=null,e.baishao_audio=null,e.cha_audio=null,e.chixiaodou_audio=null,e.danggui_audio=null,e.danshen_audio=null,e.dazao_audio=null,e.gancao_audio=null,e.ganjiang_audio=null,e.gouqi_audio=null,e.jingjie_audio=null,e.jinju_audio=null,e.lizhi_audio=null,e.lizi_audio=null,e.longyan_audio=null,e.moli_audio=null,e.muchai_audio=null,e.mudan_audio=null,e.mulan_audio=null,e.pugongying_audio=null,e.putao_audio=null,e.renshen_audio=null,e.taozi_audio=null,e.zhuye_audio=null,e.err=null,e.yes=null,e}var i;return n(e,t),i=e,e.prototype.onLoad=function(){null==i._instance&&(i._instance=this,cc.game.addPersistRootNode(this.node),window.addEventListener("backbutton",this.onBackButton,!1),window.addEventListener("popstate",this.onBackButton,!1),window.addEventListener("onDisable",this.onExit,!1),this.reward=!1,this.finish=!1,this.rewardCount=0,this.ctor(),this.preload())},e.prototype.ctor=function(){this.mAudioMap={},this.bgMusicVolume=.1,this.effectMusicVolume=1,this.mMusicSwitch=1,this.mEffectSwitch=1},e.prototype.onBackButton=function(){cc.fx.HttpUtil.uploadUserLogData([{status:"user_exit",location:"button"}],null)},e.prototype.onExit=function(){cc.fx.HttpUtil.uploadUserLogData([{status:"user_exit",location:"exit"}],null)},e.prototype.play=function(t,e,i,a){a?this.bgMusicVolume:this.effectMusicVolume,cc.audioEngine.setEffectsVolume(1),cc.audioEngine.setMusicVolume(1);var n=cc.audioEngine.playEffect(t,e);return i&&cc.audioEngine.setFinishCallback(n,function(){i.call(this)}.bind(this)),this.mAudioMap[t]=n,t},e.prototype.save=function(){},e.prototype.preload=function(){cc.sys.platform===cc.sys.WECHAT_GAME&&[this.audioGameBgm0].forEach(function(){})},e.prototype.getAudioMusicSwitch=function(){return this.mMusicSwitch},e.prototype.getAudioEffectSwitch=function(){return this.mEffectSwitch},e.prototype.trunAudioSound=function(t){this.switchMusic(t),this.switchEffect(t)},e.prototype.switchMusic=function(t){this.mMusicSwitch!=(t?1:0)&&(this.mMusicSwitch=1-this.mMusicSwitch),t?this.playMusicGame():this.stopMusic()},e.prototype.switchEffect=function(t){this.mEffectSwitch!=(t?1:0)&&(this.mEffectSwitch=1-this.mEffectSwitch)},e.prototype.onHide=function(){cc.audioEngine.pauseAll()},e.prototype.onShow=function(){cc.audioEngine.resumeAll()},e.prototype.playEffect=function(t,e){if(this[t])return this.play(this[t],!1,e,this.mEffectSwitch)},e.prototype.playMusic=function(t,e,i){i=!(void 0!==i&&!i),this.stopMusic(),this.mMusicKey=this.play(t,i,e,!0)},e.prototype.playMusicGame=function(){},e.prototype.stopMusic=function(){var t=this.mAudioMap[this.mMusicKey];void 0!==t&&(cc.sys.isBrowser?cc.audioEngine.stop(t):t.stop(),cc.audioEngine.stop(t))},e.prototype.playGameStart=function(){},e.prototype.playGameOver=function(){},e.prototype.playGameResultFailed=function(){},e.prototype.playGameResultSuccess=function(){},e.prototype.playAudioButton=function(){},o([l(cc.AudioClip)],e.prototype,"audioGameBgm0",void 0),o([l(cc.AudioClip)],e.prototype,"baishao_audio",void 0),o([l(cc.AudioClip)],e.prototype,"cha_audio",void 0),o([l(cc.AudioClip)],e.prototype,"chixiaodou_audio",void 0),o([l(cc.AudioClip)],e.prototype,"danggui_audio",void 0),o([l(cc.AudioClip)],e.prototype,"danshen_audio",void 0),o([l(cc.AudioClip)],e.prototype,"dazao_audio",void 0),o([l(cc.AudioClip)],e.prototype,"gancao_audio",void 0),o([l(cc.AudioClip)],e.prototype,"ganjiang_audio",void 0),o([l(cc.AudioClip)],e.prototype,"gouqi_audio",void 0),o([l(cc.AudioClip)],e.prototype,"jingjie_audio",void 0),o([l(cc.AudioClip)],e.prototype,"jinju_audio",void 0),o([l(cc.AudioClip)],e.prototype,"lizhi_audio",void 0),o([l(cc.AudioClip)],e.prototype,"lizi_audio",void 0),o([l(cc.AudioClip)],e.prototype,"longyan_audio",void 0),o([l(cc.AudioClip)],e.prototype,"moli_audio",void 0),o([l(cc.AudioClip)],e.prototype,"muchai_audio",void 0),o([l(cc.AudioClip)],e.prototype,"mudan_audio",void 0),o([l(cc.AudioClip)],e.prototype,"mulan_audio",void 0),o([l(cc.AudioClip)],e.prototype,"pugongying_audio",void 0),o([l(cc.AudioClip)],e.prototype,"putao_audio",void 0),o([l(cc.AudioClip)],e.prototype,"renshen_audio",void 0),o([l(cc.AudioClip)],e.prototype,"taozi_audio",void 0),o([l(cc.AudioClip)],e.prototype,"zhuye_audio",void 0),o([l(cc.AudioClip)],e.prototype,"err",void 0),o([l(cc.AudioClip)],e.prototype,"yes",void 0),i=o([c],e)}(cc.Component);i.default=s,cc._RF.pop()},{}],Block:[function(t,e,i){"use strict";cc._RF.push(e,"dd5bcw2TbFCjqI5Q+oUBjuX","Block");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=r.property,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return n(e,t),e.prototype.onLoad=function(){},e.prototype.start=function(){},e.prototype.init=function(){},e.prototype.hide=function(){var t=this;cc.tween(this.node).to(.2,{opacity:0}).call(function(){t.node.active=!1,t.node.removeFromParent(),t.node=null}).start()},e.prototype.update=function(){},o([l(cc.Label)],e.prototype,"label",void 0),o([l],e.prototype,"text",void 0),o([c],e)}(cc.Component);i.default=s,cc._RF.pop()},{}],DynamicAtlasManager:[function(t,e){"use strict";cc._RF.push(e,"5c9b8FZiaNLMrMDs9T3rByf","DynamicAtlasManager"),cc.Class({extends:cc.Component,properties:{},onLoad:function(){cc.dynamicAtlasManager.enabled=!1}}),cc._RF.pop()},{}],GameAppStart:[function(t,e,i){"use strict";cc._RF.push(e,"61d4ccY2ztLMYIh8WvqPPAw","GameAppStart"),Object.defineProperty(i,"__esModule",{value:!0});var a=t("../Config/GameConfig"),n=t("../Crypto/HttpUtil"),o=t("../Music/AudioManager"),r=t("../Notification/Notification"),c=t("../Storage/Storage"),l=t("../Tool/GameTool");window.initMgr=function(){cc.fx||(cc.fx={},console.log("1\u521d\u59cb\u5316"),cc.fx.StateInfo={debugMode:!0,networkConnected:!0,networkType:"none",isOnForeground:!0},cc.fx.GameConfig=a.GameConfig,cc.fx.HttpUtil=n.default,cc.fx.GameTool=l.GameTool,cc.fx.AudioManager=o.default,cc.fx.Notifications=r.Notifications,cc.fx.StorageMessage=c.StorageMessage,cc.fx.ShareInfo={queryId:-1},cc.fx.BurialShareType={Default:"default",Invite:"invite",DailyInviteRoomJoin:"invite_join_room",DailyInviteFriend:"invite_friend",DailyInviteGroup:"invate_group",DailyInviteGroupAlive:"invate_alive",DailyInviteGroupReward:"invate_rewared",DailyInviteGroupBox:"invate_box",DailyInviteGroupBall:"invate_ball",MatchResult:"matchResult",MatchFix5:"MatchFix5",MatchFix20:"MatchFix20",MatchFix100:"MatchFix100",MatchFix500:"MatchFix500",NewerRedEnvelope:"newerRedEnvelope",CoinRoomResult:"coinRoomResult",HighRate:"highRate",CoinRoomWinStreak:"coinRoomWinStreak",CoinRoomBankruptcy1:"coinRoomBankruptcy1",CoinRoomBankruptcy2:"coinRoomBankruptcy2",CoinRoomBankruptcy3:"coinRoomBankruptcy3"},cc.fx.ShareWhereReward={Group:"group",Friend:"friend",All:"all"},cc.fx.storageType=cc.Enum({storageTypeCustom:1000101}),cc.fx.tipType=cc.Enum({tipOne:"\u795e\u519c\u6c0f\u56de\u5230\u5bb6\u4e2d\uff0c\u5f00\u59cb\u6574\u7406\u4eca\u5929\u6536\u96c6\u6765\u7684\u7269\u54c1\u3002\u5f53\u62ff\u51fa\u6216\u8bf4\u51fa\u4e00\u79cd\u690d\u7269\u65f6\uff0c\u8bf7\u544a\u8bc9\u4ed6\u8fd9\u662f\u65b0\u690d\u7269\u8fd8\u662f\u5df2\u7ecf\u51fa\u73b0\u8fc7\u7684\u690d\u7269\u3002",tipTwo:"",tipErrNew:"\u8fd9\u662f\u8fd9\u5c40\u6e38\u620f\u7b2c\u4e00\u6b21\u51fa\u73b0{\u690d\u7269}",tipErrOld:"{\u690d\u7269}\u521a\u624d\u51fa\u73b0\u8fc7\u5462",tipErrHear:"\u4e0a\u6b21\u9047\u5230{\u690d\u7269}\u65f6\uff0c\u4f3c\u4e4e\u4e0d\u662f\u542c\u5230\u7684\u5427",tipErrSee:"\u4e0a\u6b21\u9047\u5230{\u690d\u7269}\u65f6\uff0c\u4f3c\u4e4e\u4e0d\u662f\u770b\u5230\u7684\u5427",tipErrLast:"\u4e4b\u524d\u786e\u5b9e\u770b\u5230\u8fc7{\u690d\u7269}\uff0c\u4f46\u6700\u8fd1\u4e00\u6b21\u4f3c\u4e4e\u4e0d\u662f\u770b\u5230\u7684\u5462"}))},cc._RF.pop()},{"../Config/GameConfig":"GameConfig","../Crypto/HttpUtil":"HttpUtil","../Music/AudioManager":"AudioManager","../Notification/Notification":"Notification","../Storage/Storage":"Storage","../Tool/GameTool":"GameTool"}],GameConfig:[function(t,e,i){"use strict";cc._RF.push(e,"c5692vnhwNF5J9nI7VNKQNW","GameConfig");var a=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0}),i.GameConfig=void 0;var n=cc._decorator,o=n.ccclass,r=(n.property,function(){function t(){}var e;return e=t,Object.defineProperty(t,"Instance",{get:function(){return null==this._instance&&(this._instance=new e),this._instance},enumerable:!1,configurable:!0}),t.init=function(t){this.CLICK_init(),this.LEVEL_INFO_init(),this.GM_INFO_init();var e=this;cc.resources.load("Json/CLICK_DATA",function(t,i){if(!t){var a=i.json;e.CLICK_DATA=a.data}}),cc.resources.load("Json/LEVEL_INFO",function(t,i){if(!t){var a=i.json;e.LEVEL_INFO=a.data,e.Change_Level()}}),cc.resources.load("Json/GM_INFO",function(i,a){if(i)t||e.Authentication();else{var n=a.json;e.GM_INFO=n.data,e.setCode(e.getKey("scode")),cc.fx.GameTool.getCustom(!1),t||e.Authentication()}}),e.GAME_DATA=[]},t.GM_INFO_init=function(){this.GM_INFO={mean_Time:0,total:0,currSeed:2e5,gameId:"100014",userId:200139,scode:"",guide:!0,url:"https://api.sparkus.cn",success:!1,matchId:null,custom:0,level:0,stepTimeList:0,successList:[],gameTime:8,igniteCount:0},this.setCode(this.getKey("scode"))},t.GM_INFO_SET=function(t,e){this.GM_INFO[t]=e},t.CLICK_init=function(){this.CLICK_DATA={type:1,success:!1,round:0,choice:0,rightChoice:0,item:"",roundType:0,stepTime:0,levelConfig:0,ignite:!1,igniteCount:0}},t.CLICK_SET=function(t,e){this.CLICK_DATA[t]=e},t.LEVEL_INFO_init=function(){this.LEVEL_INFO=[{custom:[{id:1e3,item:"danshen",type:1,flammable:0},{id:1001,item:"danggui",type:2,flammable:0},{id:1002,item:"cha",type:1,flammable:0},{id:1003,item:"mudan",type:2,flammable:0},{id:1004,item:"mulan",type:2,flammable:0},{id:1005,item:"putao",type:2,flammable:0},{id:1006,item:"cha",type:1,flammable:0},{id:1007,item:"zhuye",type:1,flammable:0},{id:1008,item:"mulan",type:2,flammable:0},{id:1009,item:"mudan",type:2,flammable:0},{id:1010,item:"zhuye",type:1,flammable:0},{id:1011,item:"cha",type:2,flammable:0},{id:1012,item:"mudan",type:2,flammable:0},{id:1013,item:"moli",type:1,flammable:0},{id:1014,item:"mulan",type:2,flammable:0},{id:1015,item:"muchai",type:1,flammable:1},{id:1016,item:"cha",type:2,flammable:0},{id:1017,item:"renshen",type:2,flammable:0},{id:1018,item:"jinju",type:2,flammable:0},{id:1019,item:"lizi",type:2,flammable:0},{id:1020,item:"gouqi",type:1,flammable:0},{id:1021,item:"renshen",type:1,flammable:0},{id:1022,item:"pugongying",type:1,flammable:0},{id:1023,item:"lizhi",type:2,flammable:0},{id:1024,item:"gancao",type:2,flammable:0},{id:1025,item:"chixiaodou",type:1,flammable:0},{id:1026,item:"dazao",type:1,flammable:0},{id:1027,item:"putao",type:2,flammable:0},{id:1028,item:"pugongying",type:1,flammable:0},{id:1029,item:"longyan",type:1,flammable:0},{id:1030,item:"ganjiang",type:1,flammable:0},{id:1031,item:"gancao",type:2,flammable:0},{id:1032,item:"dazao",type:2,flammable:0},{id:1033,item:"lizhi",type:1,flammable:0},{id:1034,item:"lizi",type:2,flammable:0},{id:1035,item:"muchai",type:2,flammable:1},{id:1036,item:"ganjiang",type:1,flammable:0},{id:1037,item:"gancao",type:2,flammable:0},{id:1038,item:"dazao",type:1,flammable:0},{id:1039,item:"lizhi",type:2,flammable:0},{id:1040,item:"renshen",type:2,flammable:0}]},{custom:[{id:2e3,item:"cha",type:2,flammable:0},{id:2001,item:"mudan",type:2,flammable:0},{id:2002,item:"moli",type:1,flammable:0},{id:2003,item:"mulan",type:2,flammable:0},{id:2004,item:"muchai",type:1,flammable:1},{id:2005,item:"cha",type:2,flammable:0},{id:2006,item:"renshen",type:2,flammable:0},{id:2007,item:"jinju",type:2,flammable:0},{id:2008,item:"lizi",type:2,flammable:0},{id:2009,item:"gouqi",type:1,flammable:0},{id:2010,item:"renshen",type:1,flammable:0},{id:2011,item:"pugongying",type:1,flammable:0},{id:2012,item:"lizhi",type:2,flammable:0},{id:2013,item:"gancao",type:2,flammable:0},{id:2014,item:"chixiaodou",type:1,flammable:0},{id:2015,item:"dazao",type:1,flammable:0},{id:2016,item:"putao",type:2,flammable:0},{id:2017,item:"pugongying",type:1,flammable:0},{id:2018,item:"longyan",type:1,flammable:0},{id:2019,item:"ganjiang",type:1,flammable:0},{id:2020,item:"gancao",type:2,flammable:0},{id:2021,item:"dazao",type:2,flammable:0},{id:2022,item:"lizhi",type:1,flammable:0},{id:2023,item:"lizi",type:2,flammable:0},{id:2024,item:"muchai",type:2,flammable:1},{id:2025,item:"ganjiang",type:1,flammable:0},{id:2026,item:"gancao",type:2,flammable:0},{id:2027,item:"dazao",type:1,flammable:0},{id:2028,item:"lizhi",type:2,flammable:0},{id:2029,item:"renshen",type:2,flammable:0},{id:2030,item:"danshen",type:1,flammable:0},{id:2031,item:"danggui",type:2,flammable:0},{id:2032,item:"cha",type:1,flammable:0},{id:2033,item:"mudan",type:2,flammable:0},{id:2034,item:"mulan",type:2,flammable:0},{id:2035,item:"putao",type:2,flammable:0},{id:2036,item:"cha",type:1,flammable:0},{id:2037,item:"zhuye",type:1,flammable:0},{id:2038,item:"mulan",type:2,flammable:0},{id:2039,item:"mudan",type:2,flammable:0},{id:2040,item:"zhuye",type:1,flammable:0}]},{custom:[{id:3e3,item:"danggui",type:1,flammable:0},{id:3001,item:"moli",type:1,flammable:0},{id:3002,item:"pugongying",type:2,flammable:0},{id:3003,item:"danggui",type:2,flammable:0},{id:3004,item:"taozi",type:1,flammable:0},{id:3005,item:"putao",type:2,flammable:0},{id:3006,item:"mudan",type:2,flammable:0},{id:3007,item:"taozi",type:1,flammable:0},{id:3008,item:"mulan",type:2,flammable:0},{id:3009,item:"cha",type:1,flammable:0},{id:3010,item:"mudan",type:2,flammable:0},{id:3011,item:"longyan",type:1,flammable:0},{id:3012,item:"ganjiang",type:1,flammable:0},{id:3013,item:"zhuye",type:1,flammable:0},{id:3014,item:"putao",type:2,flammable:0},{id:3015,item:"gancao",type:2,flammable:0},{id:3016,item:"taozi",type:1,flammable:0},{id:3017,item:"muchai",type:1,flammable:1},{id:3018,item:"cha",type:2,flammable:0},{id:3019,item:"danshen",type:2,flammable:0},{id:3020,item:"cha",type:2,flammable:0},{id:3021,item:"zhuye",type:1,flammable:0},{id:3022,item:"renshen",type:1,flammable:0},{id:3023,item:"taozi",type:2,flammable:0},{id:3024,item:"putao",type:1,flammable:0},{id:3025,item:"gouqi",type:2,flammable:0},{id:3026,item:"chixiaodou",type:1,flammable:0},{id:3027,item:"muchai",type:1,flammable:1},{id:3028,item:"jinju",type:1,flammable:0},{id:3029,item:"cha",type:2,flammable:0},{id:3030,item:"renshen",type:2,flammable:0},{id:3031,item:"baishao",type:1,flammable:0},{id:3032,item:"danshen",type:1,flammable:0},{id:3033,item:"jingjie",type:2,flammable:0},{id:3034,item:"zhuye",type:1,flammable:0},{id:3035,item:"cha",type:1,flammable:0},{id:3036,item:"gouqi",type:1,flammable:0},{id:3037,item:"ganjiang",type:1,flammable:0},{id:3038,item:"cha",type:1,flammable:0},{id:3039,item:"jingjie",type:2,flammable:0},{id:3040,item:"mudan",type:2,flammable:0}]},{custom:[{id:4e3,item:"baishao",type:1,flammable:0},{id:4001,item:"cha",type:1,flammable:0},{id:4002,item:"putao",type:2,flammable:0},{id:4003,item:"jinju",type:2,flammable:0},{id:4004,item:"dazao",type:1,flammable:0},{id:4005,item:"cha",type:1,flammable:0},{id:4006,item:"baishao",type:2,flammable:0},{id:4007,item:"ganjiang",type:2,flammable:0},{id:4008,item:"taozi",type:2,flammable:0},{id:4009,item:"dazao",type:2,flammable:0},{id:4010,item:"moli",type:1,flammable:0},{id:4011,item:"mudan",type:2,flammable:0},{id:4012,item:"zhuye",type:2,flammable:0},{id:4013,item:"muchai",type:1,flammable:1},{id:4014,item:"gouqi",type:1,flammable:0},{id:4015,item:"dazao",type:2,flammable:0},{id:4016,item:"danggui",type:1,flammable:0},{id:4017,item:"chixiaodou",type:1,flammable:0},{id:4018,item:"baishao",type:1,flammable:0},{id:4019,item:"jingjie",type:2,flammable:0},{id:4020,item:"jinju",type:2,flammable:0},{id:4021,item:"gouqi",type:1,flammable:0},{id:4022,item:"pugongying",type:2,flammable:0},{id:4023,item:"cha",type:2,flammable:0},{id:4024,item:"moli",type:2,flammable:0},{id:4025,item:"gancao",type:2,flammable:0},{id:4026,item:"dazao",type:2,flammable:0},{id:4027,item:"gouqi",type:2,flammable:0},{id:4028,item:"jingjie",type:2,flammable:0},{id:4029,item:"zhuye",type:1,flammable:0},{id:4030,item:"pugongying",type:1,flammable:0},{id:4031,item:"renshen",type:1,flammable:0},{id:4032,item:"cha",type:2,flammable:0},{id:4033,item:"zhuye",type:1,flammable:0},{id:4034,item:"muchai",type:2,flammable:1},{id:4035,item:"longyan",type:1,flammable:0},{id:4036,item:"ganjiang",type:2,flammable:0},{id:4037,item:"moli",type:1,flammable:0},{id:4038,item:"lizhi",type:1,flammable:0},{id:4039,item:"pugongying",type:2,flammable:0},{id:4040,item:"cha",type:1,flammable:0}]},{custom:[{id:5e3,item:"lizhi",type:1,flammable:0},{id:5001,item:"pugongying",type:2,flammable:0},{id:5002,item:"putao",type:2,flammable:0},{id:5003,item:"cha",type:1,flammable:0},{id:5004,item:"longyan",type:2,flammable:0},{id:5005,item:"lizi",type:2,flammable:0},{id:5006,item:"moli",type:1,flammable:0},{id:5007,item:"gancao",type:2,flammable:0},{id:5008,item:"mulan",type:2,flammable:0},{id:5009,item:"zhuye",type:1,flammable:0},{id:5010,item:"cha",type:2,flammable:0},{id:5011,item:"lizhi",type:1,flammable:0},{id:5012,item:"gouqi",type:2,flammable:0},{id:5013,item:"renshen",type:1,flammable:0},{id:5014,item:"chixiaodou",type:1,flammable:0},{id:5015,item:"dazao",type:2,flammable:0},{id:5016,item:"muchai",type:2,flammable:1},{id:5017,item:"mulan",type:2,flammable:0},{id:5018,item:"longyan",type:1,flammable:0},{id:5019,item:"cha",type:1,flammable:0},{id:5020,item:"lizi",type:2,flammable:0},{id:5021,item:"baishao",type:2,flammable:0},{id:5022,item:"danggui",type:2,flammable:0},{id:5023,item:"renshen",type:1,flammable:0},{id:5024,item:"chixiaodou",type:2,flammable:0},{id:5025,item:"dazao",type:1,flammable:0},{id:5026,item:"longyan",type:1,flammable:0},{id:5027,item:"cha",type:2,flammable:0},{id:5028,item:"danshen",type:2,flammable:0},{id:5029,item:"renshen",type:1,flammable:0},{id:5030,item:"baishao",type:2,flammable:0},{id:5031,item:"muchai",type:2,flammable:1},{id:5032,item:"jinju",type:2,flammable:0},{id:5033,item:"lizi",type:2,flammable:0},{id:5034,item:"cha",type:1,flammable:0},{id:5035,item:"pugongying",type:1,flammable:0},{id:5036,item:"danshen",type:1,flammable:0},{id:5037,item:"gouqi",type:1,flammable:0},{id:5038,item:"renshen",type:1,flammable:0},{id:5039,item:"jingjie",type:2,flammable:0},{id:5040,item:"cha",type:2,flammable:0}]},{custom:[{id:6e3,item:"cha",type:1,flammable:0},{id:6001,item:"lizhi",type:1,flammable:0},{id:6002,item:"gouqi",type:2,flammable:0},{id:6003,item:"renshen",type:2,flammable:0},{id:6004,item:"dazao",type:1,flammable:0},{id:6005,item:"chixiaodou",type:1,flammable:0},{id:6006,item:"dazao",type:2,flammable:0},{id:6007,item:"longyan",type:1,flammable:0},{id:6008,item:"cha",type:1,flammable:0},{id:6009,item:"danshen",type:2,flammable:0},{id:6010,item:"renshen",type:1,flammable:0},{id:6011,item:"baishao",type:2,flammable:0},{id:6012,item:"muchai",type:1,flammable:1},{id:6013,item:"jinju",type:1,flammable:0},{id:6014,item:"gancao",type:2,flammable:0},{id:6015,item:"lizi",type:2,flammable:0},{id:6016,item:"moli",type:1,flammable:0},{id:6017,item:"gancao",type:2,flammable:0},{id:6018,item:"mulan",type:2,flammable:0},{id:6019,item:"zhuye",type:1,flammable:0},{id:6020,item:"cha",type:2,flammable:0},{id:6021,item:"lizhi",type:1,flammable:0},{id:6022,item:"gouqi",type:2,flammable:0},{id:6023,item:"renshen",type:1,flammable:0},{id:6024,item:"cha",type:1,flammable:0},{id:6025,item:"jinjie",type:2,flammable:0},{id:6026,item:"mudan",type:2,flammable:0},{id:6027,item:"lizi",type:2,flammable:0},{id:6028,item:"zhuye",type:1,flammable:0},{id:6029,item:"jinju",type:2,flammable:0},{id:6030,item:"muchai",type:2,flammable:1},{id:6031,item:"baishao",type:1,flammable:0},{id:6032,item:"chixiaodou",type:1,flammable:0},{id:6033,item:"moli",type:1,flammable:0},{id:6034,item:"danshen",type:2,flammable:0},{id:6035,item:"gouqi",type:1,flammable:0},{id:6036,item:"zhuye",type:2,flammable:0},{id:6037,item:"taozi",type:1,flammable:0},{id:6038,item:"putao",type:1,flammable:0},{id:6039,item:"longyan",type:1,flammable:0},{id:6040,item:"cha",type:2,flammable:0}]},{custom:[{id:7e3,item:"chixiaodou",type:1,flammable:0},{id:7001,item:"moli",type:1,flammable:0},{id:7002,item:"danshen",type:2,flammable:0},{id:7003,item:"gouqi",type:1,flammable:0},{id:7004,item:"zhuye",type:2,flammable:0},{id:7005,item:"taozi",type:1,flammable:0},{id:7006,item:"putao",type:1,flammable:0},{id:7007,item:"longyan",type:1,flammable:0},{id:7008,item:"cha",type:2,flammable:0},{id:7009,item:"putao",type:1,flammable:0},{id:7010,item:"cha",type:2,flammable:0},{id:7011,item:"mudan",type:2,flammable:0},{id:7012,item:"lizi",type:2,flammable:0},{id:7013,item:"zhuye",type:1,flammable:0},{id:7014,item:"jinju",type:2,flammable:0},{id:7015,item:"muchai",type:2,flammable:1},{id:7016,item:"baishao",type:1,flammable:0},{id:7017,item:"chixiaodou",type:1,flammable:0},{id:7018,item:"moli",type:1,flammable:0},{id:7019,item:"pugongying",type:2,flammable:0},{id:7020,item:"cha",type:1,flammable:0},{id:7021,item:"lizhi",type:1,flammable:0},{id:7022,item:"gouqi",type:2,flammable:0},{id:7023,item:"renshen",type:2,flammable:0},{id:7024,item:"dazao",type:1,flammable:0},{id:7025,item:"chixiaodou",type:1,flammable:0},{id:7026,item:"dazao",type:2,flammable:0},{id:7027,item:"longyan",type:1,flammable:0},{id:7028,item:"cha",type:1,flammable:0},{id:7029,item:"danshen",type:2,flammable:0},{id:7030,item:"baishao",type:2,flammable:0},{id:7031,item:"ganjiang",type:2,flammable:0},{id:7032,item:"taozi",type:2,flammable:0},{id:7033,item:"dazao",type:2,flammable:0},{id:7034,item:"moli",type:1,flammable:0},{id:7035,item:"mudan",type:2,flammable:0},{id:7036,item:"zhuye",type:2,flammable:0},{id:7037,item:"muchai",type:1,flammable:1},{id:7038,item:"jingjie",type:2,flammable:0},{id:7039,item:"lizi",type:2,flammable:0},{id:7040,item:"cha",type:1,flammable:0}]},{custom:[{id:8e3,item:"chixiaodou",type:2,flammable:0},{id:8001,item:"moli",type:2,flammable:0},{id:8002,item:"danshen",type:2,flammable:0},{id:8003,item:"gouqi",type:2,flammable:0},{id:8004,item:"zhuye",type:2,flammable:0},{id:8005,item:"taozi",type:1,flammable:0},{id:8006,item:"putao",type:2,flammable:0},{id:8007,item:"longyan",type:2,flammable:0},{id:8008,item:"cha",type:1,flammable:0},{id:8009,item:"putao",type:2,flammable:0},{id:8010,item:"renshen",type:2,flammable:0},{id:8011,item:"baishao",type:1,flammable:0},{id:8012,item:"muchai",type:1,flammable:1},{id:8013,item:"jinju",type:1,flammable:0},{id:8014,item:"gancao",type:2,flammable:0},{id:8015,item:"lizi",type:2,flammable:0},{id:8016,item:"moli",type:1,flammable:0},{id:8017,item:"gancao",type:2,flammable:0},{id:8018,item:"mulan",type:2,flammable:0},{id:8019,item:"zhuye",type:1,flammable:0},{id:8020,item:"pugongying",type:2,flammable:0},{id:8021,item:"cha",type:1,flammable:0},{id:8022,item:"moli",type:1,flammable:0},{id:8023,item:"gancao",type:2,flammable:0},{id:8024,item:"dazao",type:1,flammable:0},{id:8025,item:"gouqi",type:2,flammable:0},{id:8026,item:"jingjie",type:2,flammable:0},{id:8027,item:"zhuye",type:1,flammable:0},{id:8028,item:"pugongying",type:2,flammable:0},{id:8029,item:"renshen",type:1,flammable:0},{id:8030,item:"cha",type:1,flammable:0},{id:8031,item:"taozi",type:1,flammable:0},{id:8032,item:"putao",type:2,flammable:0},{id:8033,item:"dazao",type:2,flammable:0},{id:8034,item:"muchai",type:1,flammable:1},{id:8035,item:"moli",type:2,flammable:0},{id:8036,item:"pugongying",type:1,flammable:0},{id:8037,item:"cha",type:2,flammable:0},{id:8038,item:"lizhi",type:1,flammable:0},{id:8039,item:"mulan",type:2,flammable:0},{id:8040,item:"gancao",type:2,flammable:0}]},{custom:[{id:9e3,item:"cha",type:1,flammable:0},{id:9001,item:"taozi",type:1,flammable:0},{id:9002,item:"putao",type:2,flammable:0},{id:9003,item:"dazao",type:2,flammable:0},{id:9004,item:"danshen",type:1,flammable:0},{id:9005,item:"moli",type:2,flammable:0},{id:9006,item:"pugongying",type:1,flammable:0},{id:9007,item:"cha",type:2,flammable:0},{id:9008,item:"lizhi",type:1,flammable:0},{id:9009,item:"mulan",type:2,flammable:0},{id:9010,item:"gancao",type:2,flammable:0},{id:9011,item:"renshen",type:1,flammable:0},{id:9012,item:"danggui",type:2,flammable:0},{id:9013,item:"mulan",type:2,flammable:0},{id:9014,item:"moli",type:1,flammable:0},{id:9015,item:"cha",type:1,flammable:0},{id:9016,item:"jinju",type:1,flammable:0},{id:9017,item:"pugongying",type:2,flammable:0},{id:9018,item:"chixiaodou",type:2,flammable:0},{id:9019,item:"mudan",type:2,flammable:0},{id:9020,item:"jingjie",type:2,flammable:0},{id:9021,item:"longyan",type:1,flammable:0},{id:9022,item:"gouqi",type:1,flammable:0},{id:9023,item:"cha",type:2,flammable:0},{id:9024,item:"muchai",type:2,flammable:1},{id:9025,item:"ganjiang",type:1,flammable:0},{id:9026,item:"moli",type:1,flammable:0},{id:9027,item:"dazao",type:2,flammable:0},{id:9028,item:"danshen",type:2,flammable:0},{id:9029,item:"longyan",type:1,flammable:0},{id:9030,item:"gouqi",type:1,flammable:0},{id:9031,item:"muchai",type:1,flammable:1},{id:9032,item:"gancao",type:2,flammable:0},{id:9033,item:"ganjiang",type:1,flammable:0},{id:9034,item:"cha",type:2,flammable:0},{id:9035,item:"lizhi",type:2,flammable:0},{id:9036,item:"danggui",type:2,flammable:0},{id:9037,item:"gouqi",type:2,flammable:0},{id:9038,item:"cha",type:1,flammable:0},{id:9039,item:"dazao",type:1,flammable:0},{id:9040,item:"danggui",type:1,flammable:0}]},{custom:[{id:1e4,item:"gouqi",type:1,flammable:0},{id:10001,item:"gancao",type:2,flammable:0},{id:10002,item:"ganjiang",type:1,flammable:0},{id:10003,item:"cha",type:2,flammable:0},{id:10004,item:"lizhi",type:1,flammable:0},{id:10005,item:"danggui",type:2,flammable:0},{id:10006,item:"gouqi",type:2,flammable:0},{id:10007,item:"cha",type:2,flammable:0},{id:10008,item:"dazao",type:1,flammable:0},{id:10009,item:"danggui",type:1,flammable:0},{id:10010,item:"lizi",type:2,flammable:0},{id:10011,item:"longyan",type:1,flammable:0},{id:10012,item:"cha",type:2,flammable:0},{id:10013,item:"putao",type:2,flammable:0},{id:10014,item:"renshen",type:1,flammable:0},{id:10015,item:"baishao",type:1,flammable:0},{id:10016,item:"danshen",type:2,flammable:0},{id:10017,item:"gancao",type:2,flammable:0},{id:10018,item:"lizhi",type:1,flammable:0},{id:10019,item:"lizi",type:2,flammable:0},{id:10020,item:"mudan",type:2,flammable:0},{id:10021,item:"danggui",type:1,flammable:0},{id:10022,item:"cha",type:2,flammable:0},{id:10023,item:"muchai",type:2,flammable:1},{id:10024,item:"gancao",type:2,flammable:0},{id:10025,item:"mudan",type:2,flammable:0},{id:10026,item:"zhuye",type:1,flammable:0},{id:10027,item:"danshen",type:2,flammable:0},{id:10028,item:"renshen",type:2,flammable:0},{id:10029,item:"danggui",type:1,flammable:0},{id:10030,item:"baishao",type:2,flammable:0},{id:10031,item:"muchai",type:2,flammable:1},{id:10032,item:"ganjiang",type:1,flammable:0},{id:10033,item:"putao",type:1,flammable:0},{id:10034,item:"cha",type:2,flammable:0},{id:10035,item:"mulan",type:2,flammable:0},{id:10036,item:"danggui",type:2,flammable:0},{id:10037,item:"taozi",type:1,flammable:0},{id:10038,item:"lizhi",type:1,flammable:0},{id:10039,item:"putao",type:1,flammable:0},{id:10040,item:"gouqi",type:2,flammable:0}]}]},t.Change_Level=function(){for(var t=0;t<this.LEVEL_INFO.length;t++)for(var e=0;e<this.LEVEL_INFO[t].custom.length;e++)"muchai"==this.LEVEL_INFO[t].custom[e].item&&(this.LEVEL_INFO[t].custom.splice(e,1),e--)},t.setCode=function(t){this.GM_INFO.scode=t},t.getKey=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),i=window.location.search.substr(1).match(e);return null!=i?unescape(i[2]):""},t.Authentication=function(){cc.fx.GameTool.Authentication()},t._instance=null,e=a([o("GameConfig")],t)}());i.GameConfig=r,cc._RF.pop()},{}],GameManager:[function(t,e,i){"use strict";cc._RF.push(e,"b0432BA295DjIOcuitdGKO1","GameManager");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=r.property,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Btn_New=null,e.Btn_Old=null,e.Plant=null,e.timeNode=null,e.FoodPlist=null,e}return n(e,t),e.prototype.onLoad=function(){this.fit(),this.init(),this.startGame()},e.prototype.start=function(){},e.prototype.setMap=function(){},e.prototype.init=function(){this.touchable=!1,this.result=-1,this.foodAudioArray=[],this.foodPicArray=[],this.timeTween=null,this.needleTween=null,this.choice=0,cc.fx.GameConfig.GM_INFO.stepTimeList=0,cc.fx.GameConfig.GM_INFO.successList=[],cc.fx.GameConfig.GM_INFO.level=0,this.voiceSpriteFrame=this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame,this.btnReset()},e.prototype.startGame=function(){var t=this;cc.tween(this.node.getChildByName("Begin")).to(.1,{opacity:0}).to(.5,{opacity:255}).delay(1).to(.5,{opacity:0}).call(function(){t.createCustom()}).start()},e.prototype.fit=function(){cc.fx.GameTool.setFit()||(this.Btn_Old.y=-450,this.Btn_New.y=-300)},e.prototype.createCustom=function(){var t=this;if(this.choice=0,this.Plant.opacity=0,this.timeNode.getChildByName("time").getComponent(cc.Sprite).fillRange=0,this.timeNode.getChildByName("needle").angle=0,cc.fx.GameConfig.GM_INFO.level>=cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.custom].custom.length)setTimeout(function(){cc.director.loadScene("OverScene")},1e3);else{this.customData=cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.custom].custom[cc.fx.GameConfig.GM_INFO.level];var e=this.customData.item;if(cc.fx.GameConfig.CLICK_SET("round",cc.fx.GameConfig.GM_INFO.level+1),cc.fx.GameConfig.CLICK_SET("levelConfig",cc.fx.GameConfig.GM_INFO.custom+1),cc.fx.GameConfig.CLICK_SET("item",e),cc.fx.GameConfig.CLICK_SET("roundType",this.customData.type),1==this.customData.type)this.Plant.getChildByName("name").getComponent(cc.Label).string=cc.fx.GameTool.getFoodName(e),e="prop_"+e,this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.FoodPlist._spriteFrames[e],this.now_Food=e,cc.tween(this.Plant).to(.2,{opacity:255}).call(function(){t.startTimer()}).start();else{this.Plant.getChildByName("name").getComponent(cc.Label).string="",this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.voiceSpriteFrame;var i=e+"_audio";e="audio"+e,this.now_Food=e,cc.fx.AudioManager._instance.playEffect(i),cc.tween(this.Plant).to(.2,{opacity:255}).call(function(){t.startTimer()}).start()}cc.fx.GameConfig.GM_INFO.level+=1}},e.prototype.startTimer=function(){var t=this;this.startTime=cc.fx.GameTool.getTime(),this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!0,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!0,this.timeNode.getChildByName("time").getComponent(cc.Sprite).fillRange=0,this.needleTween=cc.tween(this.timeNode.getChildByName("needle")).to(8,{angle:-360}).start(),this.timeTween=cc.tween(this.timeNode.getChildByName("time").getComponent(cc.Sprite)).to(8,{fillRange:1}).call(function(){t.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,t.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1,t.click_Choice(null,null),t.timeTween=null}).start()},e.prototype.containsNanana=function(t){return/muchai/i.test(t)},e.prototype.click_Choice=function(t,e){this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.timeTween.stop(),this.timeTween=null,this.needleTween.stop(),this.needleTween=null,this.result=this.judgingResult(),"Btn_New"==e&&(-1==this.result?this.result=1:this.result=-1);var i=null;null!=e&&(i=this[e]),this.setBtnState(i,e),this.setTimeData(),this.setData(e),this.nextLevel()},e.prototype.click_Ignition=function(){},e.prototype.judgingResult=function(){var t=-1,e=this.now_Food.substring(5,this.now_Food.length);if(this.foodPicArray.length>0)for(var i=0;i<this.foodPicArray.length;i++)if(console.log(e,this.foodPicArray[i].substring(5,this.foodPicArray[i].length)),e==this.foodPicArray[i].substring(5,this.foodPicArray[i].length)){t=2,console.log("\u51fa\u73b0\u8fc7",e),cc.fx.GameConfig.CLICK_SET("rightChoice",2),i=1e4;break}return 2!=t&&(console.log("\u6ca1\u51fa\u9669\u8fc7",e),cc.fx.GameConfig.CLICK_SET("rightChoice",1),this.foodPicArray.push(this.now_Food)),t},e.prototype.setTimeData=function(){this.overTime=cc.fx.GameTool.getTime();var t=this.overTime-this.startTime;(t<0||t>8e3)&&(t=8e3),cc.fx.GameConfig.CLICK_SET("stepTime",t),cc.fx.GameConfig.GM_INFO.stepTimeList+=t},e.prototype.setBtnState=function(t,e){"Btn_New"==e?this.choice=1:"Btn_Old"==e&&(this.choice=2),null==e&&(this.choice=0),this.choice!=cc.fx.GameConfig.CLICK_DATA.rightChoice?t&&(cc.fx.AudioManager._instance.playEffect("err",null),t.getChildByName("err").active=!0,t.getChildByName("correct").active=!1):t&&(cc.fx.AudioManager._instance.playEffect("yes",null),t.getChildByName("err").active=!1,t.getChildByName("correct").active=!0),t&&(t.getChildByName("nomal").active=!1),this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1},e.prototype.nextLevel=function(){var t=this;cc.tween(this.Plant).delay(1).call(function(){t.btnReset()}).to(.5,{opacity:0}).call(function(){t.createCustom()}).start()},e.prototype.btnReset=function(){this.Btn_New.getChildByName("nomal").active=!0,this.Btn_New.getChildByName("err").active=!1,this.Btn_New.getChildByName("correct").active=!1,this.Btn_Old.getChildByName("nomal").active=!0,this.Btn_Old.getChildByName("err").active=!1,this.Btn_Old.getChildByName("correct").active=!1,this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1},e.prototype.backScene=function(){cc.director.loadScene("LoadScene")},e.prototype.reStart=function(){},e.prototype.getTime=function(){return(new Date).getTime()},e.prototype.passLevel=function(){},e.prototype.loseLevel=function(){},e.prototype.startCountDownTime=function(){this.timeNode.getChildByName("time").getComponent(cc.Sprite).fillRange=0,this.timeNode.getChildByName("needle").angle=0},e.prototype.setData=function(t){console.log("\u8fdb\u5165\u4e0a\u4f20\u57cb\u70b9"),"Btn_New"==t?this.choice=1:"Btn_Old"==t?this.choice=2:null==t&&(this.choice=0,cc.fx.GameConfig.CLICK_SET("stepTime",5e3));var e=!1;this.choice==cc.fx.GameConfig.CLICK_DATA.rightChoice&&(e=!0,cc.fx.GameConfig.GM_INFO.successList.push(e)),cc.fx.GameConfig.CLICK_SET("choice",this.choice),cc.fx.GameConfig.CLICK_SET("success",e),console.log("\u8fdb\u5165GameTool.setGameData",cc.fx.GameConfig.CLICK_DATA),cc.fx.GameTool.setGameData()},e.prototype.gameOver=function(t){cc.fx.GameTool.setRank(t),this.node.getChildByName("GameOver").active=!0,this.node.getChildByName("GameOver").opacity=0,cc.tween(this.node.getChildByName("GameOver")).to(.4,{opacity:255}).delay(2).to(.4,{opacity:50}).call(function(){cc.director.loadScene("OverScene")}).start()},e.prototype.onEnable=function(){},e.prototype.onDisable=function(){},e.prototype.update=function(){},o([l(cc.Node)],e.prototype,"Btn_New",void 0),o([l(cc.Node)],e.prototype,"Btn_Old",void 0),o([l(cc.Node)],e.prototype,"Plant",void 0),o([l(cc.Node)],e.prototype,"timeNode",void 0),o([l(cc.SpriteAtlas)],e.prototype,"FoodPlist",void 0),o([c],e)}(cc.Component);i.default=s,cc._RF.pop()},{}],GameOver:[function(t,e,i){"use strict";cc._RF.push(e,"805c6nf399HWZeuWnNB9CTH","GameOver");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=r.property,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.count=null,e.time=null,e.finishiTime=null,e}return n(e,t),e.prototype.start=function(){this.count.string="0",this.init()},e.prototype.init=function(){this.showAccuracy(),this.showFinishiTime(),this.setRank(),setTimeout(function(){cc.fx.GameTool.getCustom(!0)},100);var t=window.location.href;this.containsTrain(t)?(this.node.getChildByName("btn").getChildByName("again").active=!1,this.node.getChildByName("btn").getChildByName("rank").active=!1,this.node.getChildByName("btn").getChildByName("finishi").active=!0,this.setLocalStorage()):(this.node.getChildByName("btn").getChildByName("again").active=!0,this.node.getChildByName("btn").getChildByName("rank").active=!0,this.node.getChildByName("btn").getChildByName("finishi").active=!1)},e.prototype.setLocalStorage=function(){var t="success_"+(new Date).toLocaleDateString()+"_"+cc.fx.GameConfig.GM_INFO.scode+"_"+cc.fx.GameConfig.GM_INFO.gameId;localStorage.setItem(t,JSON.stringify({success:!0}))},e.prototype.setRank=function(){var t={totleTimes:cc.fx.GameConfig.GM_INFO.stepTimeList,accuracy:this.accuracy};cc.fx.GameTool.setRank(t)},e.prototype.showFinishiTime=function(){var t=this;cc.tween(this.finishiTime).delay(1.5).to(.5,{fillRange:1}).start(),cc.tween(this.time.node).delay(1.7).to(.3,{opacity:255}).call(function(){t.conversionTime()}).start()},e.prototype.conversionTime=function(){var t=this,e=0,i=0,a=parseInt(cc.fx.GameConfig.GM_INFO.stepTimeList/1e3+"");cc.tween({a:100}).to(1,{a:a},{progress:function(a,n,o,r){(i=(n*r).toFixed(0))>=60&&(e=parseInt(i/60+""),i-=60*e),t.time.string=e+"\u5206"+i+"\u79d2"}}).call(function(){t.node.getChildByName("btn").active=!0,cc.tween(t.node.getChildByName("btn")).to(.3,{opacity:255}).start()}).start()},e.prototype.showAccuracy=function(){var t=this;this.accuracy=parseInt(cc.fx.GameConfig.GM_INFO.successList.length/cc.fx.GameConfig.GM_INFO.level*100+""),console.log("\u7b54\u5bf9\u7684\u4e2a\u6570:",cc.fx.GameConfig.GM_INFO.successList.length),console.log("\u603b\u6570:",cc.fx.GameConfig.GM_INFO.level),console.log("\u51c6\u786e\u7387:",this.accuracy),cc.tween({a:100}).delay(.5).to(1,{a:this.accuracy},{progress:function(e,i,a,n){a=(a=i*n).toFixed(0),t.count.string=a+""}}).start()},e.prototype.jumpFinishi=function(){var t="https://train.sparkus.cn/poster/game/"+cc.fx.GameConfig.GM_INFO.scode+"?suc=1";window.location.href=t},e.prototype.containsTrain=function(t){return/from=train/i.test(t)},e.prototype.openRank=function(){cc.director.loadScene("RankScene")},e.prototype.again=function(){cc.director.loadScene("GameScene")},e.prototype.update=function(){},o([l(cc.Label)],e.prototype,"count",void 0),o([l(cc.Label)],e.prototype,"time",void 0),o([l(cc.Sprite)],e.prototype,"finishiTime",void 0),o([c],e)}(cc.Component);i.default=s,cc._RF.pop()},{}],GameScene:[function(t,e){"use strict";cc._RF.push(e,"e8b235WjRBErajwLmN8xFUz","GameScene"),cc._RF.pop()},{}],GameTool:[function(t,e,i){"use strict";cc._RF.push(e,"43bfcJ6/25Fs4fHUE0PeBOX","GameTool"),Object.defineProperty(i,"__esModule",{value:!0}),i.GameTool=void 0;var a={_startTime:0,_endTime:0,_totalTime:0,Authentication:function(){var t="user_"+cc.fx.GameConfig.GM_INFO.gameId,e=JSON.parse(localStorage.getItem(t));if("undifend"==e||null==e||""==e){var i="https://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+encodeURIComponent(location.href);console.log("\u94fe\u63a5\u6ca1ID\u51c6\u5907\u8df3\u8f6c",i),window.location.href=i}else this.isNumber(e.userId)?(cc.fx.StorageMessage.setStorage(t,e),cc.fx.GameConfig.GM_INFO.userId=parseInt(e.userId)):(i="https://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+encodeURIComponent(location.href),console.log("\u94fe\u63a5\u4e0d\u5408\u6cd5",i),window.location.href=i)},isNumber:function(t){var e=!1;return(e="number"==typeof t)&&t<2e5&&(e=!1),e},containsTrain:function(t){return/from=train/i.test(t)},setGameData:function(){cc.fx.GameConfig.GAME_DATA=[],cc.fx.GameConfig.GAME_DATA.push(cc.fx.GameConfig.CLICK_DATA),cc.fx.GameConfig.CLICK_init();var t=cc.fx.GameConfig.GAME_DATA,e=this.getMatchId(),i={gameId:cc.fx.GameConfig.GM_INFO.gameId,userId:cc.fx.GameConfig.GM_INFO.userId,scode:cc.fx.GameConfig.GM_INFO.scode,matchId:e,data:t};console.log("\u4e0a\u4f20\u6570\u636e:",i),cc.fx.HttpUtil.uploadUserLogData(i,function(){})},setRank:function(t){var e={gameId:cc.fx.GameConfig.GM_INFO.gameId,userId:cc.fx.GameConfig.GM_INFO.userId,type:1,totleTimes:t.totleTimes,accuracy:t.accuracy,success:cc.fx.GameConfig.GM_INFO.success};cc.fx.HttpUtil.rankData(1,function(){},e)},getRank:function(t,e){var i=t.length,a={gameId:cc.fx.GameConfig.GM_INFO.gameId,userId:cc.fx.GameConfig.GM_INFO.userId,page:1,pageSize:i};cc.fx.HttpUtil.rankData(2,function(t){e(t)},a)},getMatchId:function(){var t=cc.sys.localStorage.getItem("matchId"),e=t;if("undifend"==t||null==t)t=this.setMatchId();else if(1==this.containsNanana(t))t=this.setMatchId();else{var i=parseInt(e.substring(10,e.length));1==cc.fx.GameConfig.GM_INFO.level&&(i+=1,t=e.slice(0,10)+i+"",this.containsNanana(t)&&(t=this.setMatchId()),cc.fx.GameConfig.GM_INFO.matchId=t,cc.sys.localStorage.setItem("matchId",t))}return 1==this.containsNanana(t)&&(t=this.setMatchId()),t},containsNanana:function(t){return/na/i.test(t)},setMatchId:function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=[],i=0;i<10;i++){var a=Math.floor(Math.random()*t.length),n=t.charAt(a);e.push(n)}var o=e.join("")+1+"";return cc.sys.localStorage.setItem("matchNumber",1),cc.sys.localStorage.setItem("matchId",o),cc.fx.GameConfig.GM_INFO.matchId=o,o},subName:function(t,e){return t.length>e&&(t=t.substring(0,e)+"..."),t},setPic:function(t,e){t.active=!1;var i=e;setTimeout(function(){fetch(i).then(function(t){return t.headers.get("Content-Length")}).then(function(e){"5093"==e&&(t.active=!0)}).catch(function(){})},100),cc.assetManager.loadRemote(i,{ext:".png"},function(e,i){i&&(t.active=!0,t.getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(i))})},getRankData:function(t,e,i){e.listData=t.data.list,e.selfData=t.data.info;var a=[],n=!1;cc.fx.GameTool.setPic(e.selfNode.getChildByName("pic").getChildByName("icon"),e.selfData.pic);for(var o=0;o<=e.listData.length-1;o++)a.push({rank:o+1,name:e.listData[o].nickName,total:e.listData[o].accuracy,time:e.listData[o].totleTimes,pic:e.listData[o].pic}),cc.fx.GameConfig.GM_INFO.userId==e.listData[o].userId&&(n=!0,e.rankNumber=o,e.selfNode.getChildByName("rankLab").getComponent(cc.Label).string=o+1+""),o==e.listData.length-1&&0==n&&(e.rankNumber=o,e.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="99+");var r=cc.fx.GameTool.subName(e.selfData.nickName,i);e.selfNode.getChildByName("nameLab").getComponent(cc.Label).string=r,e.selfNode.getChildByName("totalLab").getComponent(cc.Label).string=e.selfData.accuracy+"%";var c=cc.fx.GameTool.getTimeShenNong(e.selfData.totleTimes);switch(e.selfNode.getChildByName("timeLab").getComponent(cc.Label).string=c+"",e.selfNode.getChildByName("rankLab").getComponent(cc.Label).string){case"1":e.selfNode.getChildByName("rank").getChildByName("one").active=!0;break;case"2":e.selfNode.getChildByName("rank").getChildByName("two").active=!0;break;case"3":e.selfNode.getChildByName("rank").getChildByName("three").active=!0}6==i&&(e.rankList.setData(a),e.selfNode.opacity=255,0==e.selfData.totalSunCount&&(e.selfNode.opacity=0))},getSeedRandom:function(t,e){console.log("\u968f\u673a\u6570:",cc.fx.GameConfig.GM_INFO.currSeed),e=e||1,t=t||0,cc.fx.GameConfig.GM_INFO.currSeed=(9301*cc.fx.GameConfig.GM_INFO.currSeed+49297)%233280;var i=cc.fx.GameConfig.GM_INFO.currSeed/233280;return parseInt(t+i*(e-t))},getCustom:function(t){var e=cc.fx.StorageMessage.getStorage(cc.fx.storageType.storageTypeCustom);"undifend"==e||null==e||""==e?this.setCustom():(cc.fx.GameConfig.GM_INFO_SET("custom",e[0]),0==e[0]&&1!=t||(e.shift(),0==e.length?this.setCustom():cc.fx.StorageMessage.setStorage(cc.fx.storageType.storageTypeCustom,e)))},setCustom:function(){for(var t=cc.fx.GameConfig.LEVEL_INFO.length,e=[],i=1;i<t;i++)e.push(i);e.sort(function(){return Math.random()-.5}),e.unshift(0),cc.fx.GameConfig.GM_INFO_SET("custom",e[0]),cc.fx.StorageMessage.setStorage(cc.fx.storageType.storageTypeCustom,e)},getFoodName:function(t){var e="\u8461\u8404";switch(t){case"baishao":e="\u767d\u828d";break;case"jingjie":e="\u8346\u82a5";break;case"renshen":e="\u4eba\u53c2";break;case"danshen":e="\u4e39\u53c2";break;case"danggui":e="\u5f53\u5f52";break;case"gouqi":e="\u67b8\u675e";break;case"mudan":e="\u7261\u4e39";break;case"mulan":e="\u6728\u5170";break;case"pugongying":e="\u84b2\u516c\u82f1";break;case"moli":e="\u8309\u8389";break;case"jinju":e="\u91d1\u6854";break;case"dazao":e="\u5927\u67a3";break;case"lizi":e="\u674e\u5b50";break;case"lizhi":e="\u8354\u679d";break;case"taozi":e="\u6843\u5b50";break;case"putao":e="\u8461\u8404";break;case"muchai":e="\u6728\u67f4";break;case"ganjiang":e="\u5e72\u59dc";break;case"zhuye":e="\u7af9\u53f6";break;case"longyan":e="\u9f99\u773c";break;case"chixiaodou":e="\u8d64\u5c0f\u8c46";break;case"gancao":e="\u7518\u8349";break;case"cha":e="\u8336"}return e},getSetScreenResolutionFlag:function(){var t=cc.winSize,e=t.width;return!(t.height/e>16.2/9)},setFit:function(){return cc.fx.GameTool.getSetScreenResolutionFlag()},getGameInfo:function(){return!1},setGameInfo:function(){},typingAni:function(t,e,i,a){var n=a,o="",r=e.split(""),c=r.length,l=0;n.func=function(){o+=r[l],t.string=o,++l==c&&(n.unschedule(n.func),i&&i())},n.schedule(n.func,.1,cc.macro.REPEAT_FOREVER,0)},getTimeMargin:function(t){var e,i;e=t,i=parseInt(e/3600+"");var a=parseInt((e-3600*i)/60+""),n=""+a;a<10&&(n="0"+a);var o=e-3600*i-60*a,r=o+"";return o<10&&(r="0"+o),n+":"+r},getTimeShenNong:function(t){var e,i=0;return(e=t=parseInt(t/1e3+""))>60&&(i=parseInt(e/60+"")),i+"'"+(e-60*i)+"''"},getTime:function(){return(new Date).getTime()},pushLister:function(){},removeAllLister:function(){}};i.GameTool=a,cc._RF.pop()},{}],GuideManager:[function(t,e,i){"use strict";cc._RF.push(e,"effe2nlNnBES4H9tFM4r38Z","GuideManager");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=r.property,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Tip=null,e.FoodPlist=null,e.Btn_New=null,e.Btn_Old=null,e.Plant=null,e}return n(e,t),e.prototype.onLoad=function(){this.custom=1},e.prototype.start=function(){this.fit()},e.prototype.fit=function(){cc.fx.GameTool.setFit()},e.prototype.init=function(){this.voiceSpriteFrame=this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame,this.node.getChildByName("nextBtn").active=!1;var t=cc.fx.GameConfig.GM_INFO.gameId+"_guide";null!=cc.fx.StorageMessage.getStorage(t)&&(cc.fx.GameConfig.GM_INFO.guide=cc.fx.StorageMessage.getStorage(t)),0==cc.fx.GameConfig.GM_INFO.guide&&(this.node.getChildByName("jumpBtn").active=!0,cc.tween(this.node.getChildByName("jumpBtn")).to(.35,{opacity:255}).start());var e=cc.fx.tipType.tipOne,i=this.node.getChildByName("tip1").getComponent(cc.Label);cc.fx.GameTool.typingAni(i,e,this.startGame.bind(this),this),this.initData()},e.prototype.initData=function(){this.customData=[{item:"putao",type:1,right:1},{item:"taozi",type:2,right:1},{item:"putao",type:2,right:2},{item:"taozi",type:1,right:2}]},e.prototype.passVoice=function(){var t=this,e=this.node.getChildByName("voiceTip");e.getChildByName("startBtn").getComponent(cc.Button).interactable=!1,e.getChildByName("playBtn").getComponent(cc.Button).interactable=!1,cc.tween(e).to(.5,{opacity:0}).call(function(){e.active=!1}).start(),setTimeout(function(){t.init()},1e3)},e.prototype.playVoice=function(){cc.fx.AudioManager._instance.playEffect("taozi_audio",null)},e.prototype.jumpClick=function(){cc.director.loadScene("GameScene")},e.prototype.nextClick=function(){var t=this;this.node.getChildByName("nextBtn").active=!1;var e=this.node.getChildByName("tip1").getComponent(cc.Label);0==this.custom?cc.tween(this.node.getChildByName("tip1")).to(.2,{opacity:0}).call(function(){e.string=""}).to(.1,{opacity:255}).call(function(){var i=cc.fx.tipType.tipTwo;cc.fx.GameTool.typingAni(e,i,t.startGame.bind(t),t)}).start():1==this.custom&&(this.node.getChildByName("nextBtn").active=!1,this.node.getChildByName("jumpBtn").active=!1,cc.tween(this.node.getChildByName("tip1")).to(.2,{opacity:0}).call(function(){e.string="",t.nextLevel()}).start()),this.custom+=1},e.prototype.nextLevel=function(){var t=this;this.choice=0,this.Btn_Old.active=!0,this.Btn_New.active=!0,this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1;var e=this.customData[this.custom-2].item;if(1==this.customData[this.custom-2].type)this.Plant.getChildByName("name").getComponent(cc.Label).string=cc.fx.GameTool.getFoodName(e),e="prop_"+e,this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.FoodPlist._spriteFrames[e],this.now_Food=e,cc.tween(this.Plant).to(.2,{opacity:255}).call(function(){t.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!0,t.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!0}).start();else{this.Plant.getChildByName("name").getComponent(cc.Label).string="",this.Plant.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.voiceSpriteFrame;var i=e+"_audio";e="audio"+e,this.now_Food=e,cc.fx.AudioManager._instance.playEffect(i,null),cc.tween(this.Plant).to(.2,{opacity:255}).call(function(){t.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!0,t.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!0}).start()}},e.prototype.click_Btn=function(t,e){var i=this;"Btn_New"==e?(this.choice=1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1):"Btn_Old"==e&&(this.choice=2,this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1);var a=this[e],n=this.Tip.getChildByName("content").getComponent(cc.Label);if(this.choice==this.customData[this.custom-2].right)cc.fx.AudioManager._instance.playEffect("yes",null),this.Tip.stopAllActions(),this.Tip.active=!1,this.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1,this.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,a.getChildByName("err").active=!1,a.getChildByName("correct").active=!0,setTimeout(function(){if(i.Btn_New.getChildByName("nomal").active=!0,i.Btn_New.getChildByName("err").active=!1,i.Btn_New.getChildByName("correct").active=!1,i.Btn_Old.getChildByName("nomal").active=!0,i.Btn_Old.getChildByName("err").active=!1,i.Btn_Old.getChildByName("correct").active=!1,i.Btn_Old.getChildByName("nomal").getComponent(cc.Button).interactable=!1,i.Btn_New.getChildByName("nomal").getComponent(cc.Button).interactable=!1,i.custom+=1,i.custom>=6){i.node.getChildByName("againBtn").active=!0,i.node.getChildByName("startBtn").active=!0,i.Btn_Old.active=!1,i.Btn_New.active=!1,cc.fx.GameConfig.GM_INFO.guide=!1;var t=cc.fx.GameConfig.GM_INFO.gameId+"_guide";cc.fx.StorageMessage.setStorage(t,cc.fx.GameConfig.GM_INFO.guide)}else i.nextLevel()},1e3);else{cc.fx.AudioManager._instance.playEffect("yes",null);var o="\u8461\u8404\u521a\u624d\u51fa\u73b0\u8fc7\u5462";switch(this.Tip.active=!0,a.getChildByName("err").active=!0,a.getChildByName("correct").active=!1,this.custom-2){case 0:o="\u8fd9\u662f\u8fd9\u5c40\u6e38\u620f\u7b2c\u4e00\u6b21\u51fa\u73b0\u8461\u8404";break;case 1:o="\u8fd9\u662f\u8fd9\u5c40\u6e38\u620f\u7b2c\u4e00\u6b21\u51fa\u73b0\u6843\u5b50";break;case 2:o="\u8fd9\u4e0d\u662f\u8fd9\u5c40\u6e38\u620f\u7b2c\u4e00\u6b21\u51fa\u73b0\u8461\u8404";break;case 3:o="\u8fd9\u4e0d\u662f\u8fd9\u5c40\u6e38\u620f\u7b2c\u4e00\u6b21\u51fa\u73b0\u6843\u5b50"}n.string=o,this.Tip.opacity=255,this.Tip.stopAllActions();var r=this,c=cc.callFunc(function(){r.Tip.active=!1});this.Tip.runAction(cc.sequence(cc.delayTime(2),cc.fadeIn(.5),c))}},e.prototype.startGame=function(){this.node.getChildByName("nextBtn").active=!0,cc.tween(this.node.getChildByName("nextBtn")).to(.35,{opacity:255}).start()},e.prototype.againClick=function(){cc.director.loadScene("GuideScene")},e.prototype.onEnable=function(){},e.prototype.onDisable=function(){},e.prototype.update=function(){},o([l(cc.Node)],e.prototype,"Tip",void 0),o([l(cc.SpriteAtlas)],e.prototype,"FoodPlist",void 0),o([l(cc.Node)],e.prototype,"Btn_New",void 0),o([l(cc.Node)],e.prototype,"Btn_Old",void 0),o([l(cc.Node)],e.prototype,"Plant",void 0),o([c],e)}(cc.Component);i.default=s,cc._RF.pop()},{}],HttpUtil:[function(t,e,i){"use strict";cc._RF.push(e,"771a32aQBNGVKd3+66gyTKA","HttpUtil");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},r=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},c=this&&this.__awaiter||function(t,e,i,a){return new(i||(i=Promise))(function(n,o){function r(t){try{l(a.next(t))}catch(e){o(e)}}function c(t){try{l(a.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,c)}l((a=a.apply(t,e||[])).next())})},l=this&&this.__generator||function(t,e){var i,a,n,o,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(e){return l([t,e])}}function l(o){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=2&o[0]?a.return:o[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;switch(a=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(n=(n=r.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){r=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){r.label=o[1];break}if(6===o[0]&&r.label<n[1]){r.label=n[1],n=o;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(o);break}n[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(t,r)}catch(c){o=[6,c],a=0}finally{i=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(i,"__esModule",{value:!0});var s=cc._decorator,m=s.ccclass,h=(s.property,t("./crypto-js.min.js")),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var i;return n(e,t),i=e,e.rankData=function(t,e,a){return c(this,void 0,Promise,function(){var n,o;return l(this,function(){return n=Math.floor((new Date).getTime()/1e3),o=i.apiSign("/api/get/rank/data?gameId="+d.gameId+"&dataType="+t+"&time="+n,a),this.post(o,a,e,0),[2]})})},e.uploadUserLogData=function(t,e){return c(this,void 0,Promise,function(){return l(this,function(){return this.post("/log/collect/data",t,e,3),[2]})})},e.getUserRecord=function(t,e){return c(this,void 0,Promise,function(){var a,n;return l(this,function(){return a=Math.floor((new Date).getTime()/1e3),n=i.apiSign("/api/get/user/data?gameId="+d.gameId+"&time="+a,t),this.post(n,t,e,0),[2]})})},e.get=function(t,e,i){return c(this,void 0,void 0,function(){var a,n;return l(this,function(o){switch(o.label){case 0:return a=i||0,[4,this.fetchData(t,null,"GET",a)];case 1:return n=o.sent(),e&&e(n),[2]}})})},e.post=function(t,e,i,a){return c(this,void 0,void 0,function(){var n,o;return l(this,function(r){switch(r.label){case 0:return n=a||0,[4,this.fetchData(t,e,"POST",n)];case 1:return o=r.sent(),i&&i(o),[2]}})})},e.fetchData=function(t,e,i,a){return c(this,void 0,void 0,function(){var n,o,r,s,m=this;return l(this,function(h){switch(h.label){case 0:n="https://api.sparkus.cn"+t,o={method:i,headers:{"Content-Type":"application/json"},body:e?JSON.stringify(e):null},h.label=1;case 1:return h.trys.push([1,4,,5]),[4,this.fetchWithTimeout(n,o)];case 2:if(!(r=h.sent()).ok)throw new Error("HTTP_______________error! status: "+r.status);return[4,r.json()];case 3:return[2,h.sent()];case 4:return s=h.sent(),console.error("Fetch_______________error:",s),a>0?(a-=1,setTimeout(function(){return c(m,void 0,void 0,function(){return l(this,function(n){switch(n.label){case 0:return[4,this.fetchData(t,e,i,a)];case 1:return r=n.sent(),[2]}})})},5e3*(3-a)),[3,5]):[2,null];case 5:return[2]}})})},e.fetchWithTimeout=function(t,e){return void 0===e&&(e={}),c(this,void 0,void 0,function(){var i,a,n;return l(this,function(r){switch(r.label){case 0:return i=new AbortController,a=setTimeout(function(){return i.abort()},5e3),[4,fetch(t,o(o({},e),{signal:i.signal}))];case 1:return n=r.sent(),clearTimeout(a),[2,n]}})})},e.apiSign=function(t,e){void 0===e&&(e={});var i=t.trim();-1===i.indexOf("?")&&(i+="?");var a="sign="+y(i,f(e)),n=u.encryptByDES(a,d.secretKey);return n=encodeURIComponent(n),g(i)+"&_p="+n},i=r([m],e)}(cc.Component);i.default=p;var d={gameId:"100014",secretKey:"9ymg8ppY",EK:"hui231%1"},u=new(function(){function t(){this.keyHex=this.getHetKey()}return t.prototype.getHetKey=function(){return h.enc.Utf8.parse(d.EK)},t.prototype.encryptByDES=function(t,e){if(!t)return t;var i=e?h.enc.Utf8.parse(e):this.keyHex;return h.DES.encrypt(t,i,{mode:h.mode.ECB,padding:h.pad.Pkcs7}).toString()},t.prototype.decryptByDES=function(t,e){var i=e?h.enc.Utf8.parse(e):this.keyHex;return h.DES.decrypt({ciphertext:h.enc.Base64.parse(t)},i,{mode:h.mode.ECB,padding:h.pad.Pkcs7}).toString(h.enc.Utf8)},t.prototype.hmacSha256=function(t,e){var i=e?h.enc.Utf8.parse(e):this.keyHex;return h.HmacSHA256(t,i).toString()},t.prototype.verifyHmacSha256=function(t,e){return h.HmacSHA256(t,this.keyHex).toString()===e},t.prototype.encryptCBC=function(t){if(!t)return t;var e=h.enc.Utf8.parse(t);return h.AES.encrypt(e,this.keyHex,{iv:this.keyHex,mode:h.mode.CBC,padding:h.pad.ZeroPadding}).toString()},t.prototype.decryptCBC=function(t){if(!t)return t;var e=h.enc.Hex.parse(t),i=h.enc.Base64.stringify(e);return h.AES.decrypt(i,this.keyHex,{iv:this.keyHex,mode:h.mode.CBC,padding:h.pad.ZeroPadding}).toString(h.enc.Utf8).toString()},t}());function f(t){for(var e,i=Object.keys(t).sort(),a={},n=0;n<i.length;n++)""!==(e=t[i[n]])&&null!=e&&0!==e.length&&"{}"!=JSON.stringify(e)&&(a[i[n]]=t[i[n]]);var o=[];for(var r in a)o.push(encodeURIComponent(r)+"="+encodeURIComponent(a[r]));return o.join("&")}function y(t,e){var i=t.replace("?","");return i=i+"&"+e,encodeURIComponent(u.hmacSha256(i))}function g(t){var e=t.split("?",2),i=e[0],a=e[1];return i+"?"+new URLSearchParams(a).toString()}cc._RF.pop()},{"./crypto-js.min.js":"crypto-js.min"}],ItemRender:[function(t,e,i){"use strict";cc._RF.push(e,"ca0f9k0oBVDbpQC+OMNTF3m","ItemRender");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,c=r.ccclass,l=(r.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=null,e.itemIndex=0,e}return n(e,t),e.prototype.dataChanged=function(){var t=cc.fx.GameTool.subName(this.data.name,6);this.node.getChildByName("rankLab").getComponent(cc.Label).string=this.data.rank+"",this.node.getChildByName("nameLab").getComponent(cc.Label).string=t+"",this.node.getChildByName("totalLab").getComponent(cc.Label).string=this.data.total+"%";var e=cc.fx.GameTool.getTimeShenNong(this.data.time);this.node.getChildByName("timeLab").getComponent(cc.Label).string=e+"",this.node.getChildByName("rank").getChildByName("one").active=!1,this.node.getChildByName("rank").getChildByName("two").active=!1,this.node.getChildByName("rank").getChildByName("three").active=!1,1==this.data.rank?(this.node.getChildByName("rank").getChildByName("one").active=!0,this.node.getChildByName("rankLab").active=!1):2==this.data.rank?(this.node.getChildByName("rank").getChildByName("two").active=!0,this.node.getChildByName("rankLab").active=!1):3==this.data.rank?(this.node.getChildByName("rank").getChildByName("three").active=!0,this.node.getChildByName("rankLab").active=!1):this.node.getChildByName("rankLab").active=!0,this.setPic()},e.prototype.setPic=function(){var t=this;this.node.getChildByName("pic").getChildByName("icon").active=!1,this.node.getChildByName("pic").getChildByName("pic").active=!1;var e=this.data.pic;fetch(e).then(function(t){return t.headers.get("Content-Length")}).then(function(e){"5093"==e&&(t.node.getChildByName("pic").getChildByName("icon").active=!0)}).catch(function(){}),cc.assetManager.loadRemote(e,{ext:".png"},function(e,i){i&&(t.node.getChildByName("pic").getChildByName("pic").active=!0,t.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(i))})},o([c],e)}(cc.Component));i.default=l,cc._RF.pop()},{}],List:[function(t,e,i){"use strict";cc._RF.push(e,"d5421HgLShFKIjj5f18m1mi","List");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0}),i.StartAxisType=i.ListType=void 0;var r,c,l=t("./ItemRender"),s=cc._decorator,m=s.ccclass,h=s.property;(function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical",t[t.Grid=3]="Grid"})(r=i.ListType||(i.ListType={})),function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical"}(c=i.StartAxisType||(i.StartAxisType={}));var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.itemRender=null,e.type=r.Vertical,e.startAxis=c.Horizontal,e.spaceX=0,e.spaceY=0,e.padding_top=0,e.padding_buttom=0,e.padding_left=0,e._padding=0,e.padding_right=0,e.scrollView=null,e.content=null,e.itemDataList=[],e.spawnCount=0,e.itemList=[],e.itemHeight=0,e.itemWidth=0,e.itemPool=[],e.halfScrollView=0,e.lastContentPosX=0,e.lastContentPosY=0,e.gridRow=0,e.gridCol=0,e.updateTimer=0,e.updateInterval=.1,e.bScrolling=!1,e.updateFun=function(){},e}return n(e,t),e.prototype.onLoad=function(){this.itemHeight=this.itemRender.height,this.itemWidth=this.itemRender.width,this.scrollView=this.node.getComponent(cc.ScrollView),this.content=this.scrollView.content,this.content.anchorX=0,this.content.anchorY=1,this.content.removeAllChildren(),this.scrollView.node.on("scrolling",this.onScrolling,this)},e.prototype.setData=function(t){this.itemDataList=t.slice(),this.updateContent()},e.prototype.countListParam=function(){var t=this.itemDataList.length;this.type==r.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.content.height=t*this.itemHeight+(t-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))+2,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateV):this.type==r.Horizontal?(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.width=t*this.itemWidth+(t-1)*this.spaceX+this.padding_left+this.padding_right,this.content.height=this.content.parent.height,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))+2,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.udpateH):this.type==r.Grid&&(this.startAxis==c.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.padding_left+this.padding_right+this.itemWidth+this.spaceX>this.content.width&&(this.padding_left=0,this.padding_right=0,console.error("padding_left\u6216padding_right\u8fc7\u5927")),this.gridCol=Math.floor((this.content.width-this.padding_left-this.padding_right)/(this.itemWidth+this.spaceX)),this.gridRow=Math.ceil(t/this.gridCol),this.content.height=this.gridRow*this.itemHeight+(this.gridRow-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))*this.gridCol+2*this.gridCol,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateGrid_V):this.startAxis==c.Horizontal&&(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.height=this.content.parent.height,this.padding_top+this.padding_buttom+this.itemHeight+this.spaceY>this.content.height&&(this.padding_top=0,this.padding_buttom=0,console.error("padding_top\u6216padding_buttom\u8fc7\u5927")),this.gridRow=Math.floor((this.content.height-this.padding_top-this.padding_buttom)/(this.itemHeight+this.spaceY)),this.gridCol=Math.ceil(t/this.gridRow),this.content.width=this.gridCol*this.itemWidth+(this.gridCol-1)*this.spaceX+this.padding_left+this.padding_right,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))*this.gridRow+2*this.gridRow,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.updateGrid_H))},e.prototype.createList=function(t,e){this.itemDataList.length>this.spawnCount&&t+this.spawnCount-1>=this.itemDataList.length?(t=this.itemDataList.length-this.spawnCount,e=this.scrollView.getMaxScrollOffset()):this.itemDataList.length<=this.spawnCount&&(t=0);for(var i=0;i<this.spawnCount;i++){var a=void 0;if(i+t<this.itemDataList.length){null==this.itemList[i]?(a=this.getItem(),this.itemList.push(a),a.parent=this.content):a=this.itemList[i];var n=a.getComponent(l.default);if(n.itemIndex=i+t,n.data=this.itemDataList[i+t],n.dataChanged(),this.type==r.Vertical)a.setPosition(this.content.width/2,-a.height*(.5+i+t)-this.spaceY*(i+t)-this.padding_top);else if(this.type==r.Horizontal)a.setPosition(a.width*(.5+i+t)+this.spaceX*(i+t)+this.padding_left,-this.content.height/2);else if(this.type==r.Grid)if(this.startAxis==c.Vertical){var o=Math.floor((i+t)/this.gridCol),s=(i+t)%this.gridCol;a.setPosition(a.width*(.5+s)+this.spaceX*s+this.padding_left,-a.height*(.5+o)-this.spaceY*o-this.padding_top),a.opacity=255}else this.startAxis==c.Horizontal&&(o=(i+t)%this.gridRow,s=Math.floor((i+t)/this.gridRow),a.setPosition(a.width*(.5+s)+this.spaceX*s+this.padding_left,-a.height*(.5+o)-this.spaceY*o-this.padding_top),a.opacity=255)}else this.itemList.length>this.itemDataList.length-t&&((a=this.itemList.pop()).removeFromParent(),this.itemPool.push(a))}this.scrollView.scrollToOffset(e)},e.prototype.getItem=function(){return 0==this.itemPool.length?cc.instantiate(this.itemRender):this.itemPool.pop()},e.prototype.update=function(t){0!=this.bScrolling&&(this.updateTimer+=t,this.updateTimer<this.updateInterval||(this.updateTimer=0,this.bScrolling=!1,this.updateFun()))},e.prototype.onScrolling=function(){this.bScrolling=!0},e.prototype.updateV=function(){for(var t,e=this.itemList,i=this.halfScrollView,a=this.scrollView.content.y>this.lastContentPosY,n=(this.itemHeight+this.spaceY)*e.length,o=0;o<e.length;o++){t=e[o];var r=this.getPositionInView(t);if(a){if(r.y>i&&t.y-n-this.padding_buttom>-this.content.height){var c=(s=t.getComponent(l.default)).itemIndex+e.length;s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.y=t.y-n}}else if(r.y<-i&&t.y+n+this.padding_top<0){var s;c=(s=t.getComponent(l.default)).itemIndex-e.length,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.y=t.y+n}}this.lastContentPosY=this.scrollView.content.y},e.prototype.udpateH=function(){for(var t,e=this.itemList,i=this.halfScrollView,a=this.scrollView.content.x>this.lastContentPosX,n=(this.itemWidth+this.spaceX)*e.length,o=0;o<e.length;o++){t=e[o];var r=this.getPositionInView(t);if(a){if(r.x>i&&t.x-n-this.padding_left>0){var c=(s=t.getComponent(l.default)).itemIndex-e.length;s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.x=t.x-n}}else if(r.x<-i&&t.x+n+this.padding_right<this.content.width){var s;c=(s=t.getComponent(l.default)).itemIndex+e.length,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.x=t.x+n}}this.lastContentPosX=this.scrollView.content.x},e.prototype.updateGrid_V=function(){for(var t,e=this.itemList,i=this.halfScrollView,a=this.scrollView.content.y>this.lastContentPosY,n=(this.itemHeight+this.spaceY)*(this.spawnCount/this.gridCol),o=0;o<e.length;o++){t=e[o];var r=this.getPositionInView(t);if(a){if(r.y>i&&t.y-n-this.padding_buttom>-this.content.height){var c=(s=t.getComponent(l.default)).itemIndex+this.spawnCount/this.gridCol*this.gridCol;null!=this.itemDataList[c]?(t.y=t.y-n,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.opacity=255):(t.y=t.y-n,s.itemIndex=c,t.opacity=0)}}else if(r.y<-i&&t.y+n+this.padding_top<0){var s;c=(s=t.getComponent(l.default)).itemIndex-this.spawnCount/this.gridCol*this.gridCol,null!=this.itemDataList[c]?(t.y=t.y+n,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.opacity=255):(t.y=t.y+n,s.itemIndex=c,t.opacity=0)}}this.lastContentPosY=this.scrollView.content.y},e.prototype.updateGrid_H=function(){for(var t,e=this.itemList,i=this.halfScrollView,a=this.scrollView.content.x>this.lastContentPosX,n=(this.itemWidth+this.spaceX)*(this.spawnCount/this.gridRow),o=0;o<e.length;o++){t=e[o];var r=this.getPositionInView(t);if(a){if(r.x>i&&t.x-n-this.padding_left>0){var c=(s=t.getComponent(l.default)).itemIndex-this.spawnCount/this.gridRow*this.gridRow;null!=this.itemDataList[c]?(t.x=t.x-n,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.opacity=255):(t.x=t.x-n,s.itemIndex=c,t.opacity=0)}}else if(r.x<-i&&t.x+n+this.padding_right<this.content.width){var s;c=(s=t.getComponent(l.default)).itemIndex+this.spawnCount/this.gridRow*this.gridRow,null!=this.itemDataList[c]?(t.x=t.x+n,s.itemIndex=c,s.data=this.itemDataList[c],s.dataChanged(),t.opacity=255):(t.x=t.x+n,s.itemIndex=c,t.opacity=0)}}this.lastContentPosX=this.scrollView.content.x},e.prototype.getPositionInView=function(t){var e=t.parent.convertToWorldSpaceAR(t.position);return this.scrollView.node.convertToNodeSpaceAR(e)},e.prototype.getListData=function(){return this.itemDataList},e.prototype.addItem=function(t){this.itemDataList.push(t),this.updateContent()},e.prototype.addItemAt=function(t,e){null==this.itemDataList[t]&&this.itemDataList.length!=t||(this.itemDataList.splice(t,1,e),this.updateContent())},e.prototype.deleteItem=function(t){null!=this.itemDataList[t]&&(this.itemDataList.splice(t,1),this.updateContent())},e.prototype.changeItem=function(t,e){null!=this.itemDataList[t]&&(this.itemDataList[t]=e,this.updateContent())},e.prototype.updateContent=function(){if(0==this.itemList.length)this.countListParam(),this.createList(0,new cc.Vec2(0,0));else{this.type==r.Vertical?this.itemList.sort(function(t,e){return e.y-t.y}):this.type==r.Horizontal?this.itemList.sort(function(t,e){return t.x-e.x}):this.type==r.Grid&&(this.startAxis==c.Vertical?(this.itemList.sort(function(t,e){return t.x-e.x}),this.itemList.sort(function(t,e){return e.y-t.y})):this.startAxis==c.Horizontal&&(this.itemList.sort(function(t,e){return e.y-t.y}),this.itemList.sort(function(t,e){return t.x-e.x}))),this.countListParam();var t=this.itemList[0].getComponent(l.default).itemIndex;this.type==r.Grid&&this.startAxis==c.Vertical?t+=(t+this.spawnCount)%this.gridCol:this.type==r.Grid&&this.startAxis==c.Horizontal&&(t+=(t+this.spawnCount)%this.gridRow);var e=this.scrollView.getScrollOffset();e.x=-e.x,this.createList(t,e)}},e.prototype.onDestroy=function(){for(var t=this.itemList.length,e=0;e<t;e++)cc.isValid(this.itemList[e],!0)&&this.itemList[e].destroy();for(this.itemList.length=0,t=this.itemPool.length,e=0;e<t;e++)cc.isValid(this.itemPool[e],!0)&&this.itemPool[e].destroy();this.itemPool.length=0,this.itemDataList.length=0},o([h({type:cc.Node,tooltip:"\u5217\u8868\u9879"})],e.prototype,"itemRender",void 0),o([h({type:cc.Enum(r),tooltip:"\u6392\u5217\u65b9\u5f0f"})],e.prototype,"type",void 0),o([h({type:cc.Enum(c),tooltip:"\u7f51\u683c\u5e03\u5c40\u4e2d\u7684\u65b9\u5411",visible:function(){return this.type==r.Grid}})],e.prototype,"startAxis",void 0),o([h({type:cc.Integer,tooltip:"\u5217\u8868\u9879X\u95f4\u9694",visible:function(){return this.type==r.Horizontal||this.type==r.Grid}})],e.prototype,"spaceX",void 0),o([h({type:cc.Integer,tooltip:"\u5217\u8868\u9879Y\u95f4\u9694",visible:function(){return this.type==r.Vertical||this.type==r.Grid}})],e.prototype,"spaceY",void 0),o([h({type:cc.Integer,tooltip:"\u4e0a\u95f4\u8ddd",visible:function(){return this.type==r.Vertical||this.type==r.Grid}})],e.prototype,"padding_top",void 0),o([h({type:cc.Integer,tooltip:"\u4e0b\u95f4\u8ddd",visible:function(){return this.type==r.Vertical||this.type==r.Grid}})],e.prototype,"padding_buttom",void 0),o([h({type:cc.Integer,tooltip:"\u5de6\u95f4\u8ddd",visible:function(){return this.type==r.Horizontal||this.type==r.Grid}})],e.prototype,"padding_left",void 0),o([h(cc.Integer)],e.prototype,"_padding",void 0),o([h({type:cc.Integer,tooltip:"\u53f3\u95f4\u8ddd",visible:function(){return this.type==r.Horizontal||this.type==r.Grid}})],e.prototype,"padding_right",void 0),o([m],e)}(cc.Component);i.default=p,cc._RF.pop()},{"./ItemRender":"ItemRender"}],Load:[function(t,e,i){"use strict";cc._RF.push(e,"454adgphRpA6oq5lB6Cg1fK","Load");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./module/Share/share"),c=cc._decorator,l=c.ccclass,s=c.property,m=(c.requireComponent,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.localTest=!1,e.clientTestVersion="1.0.0",e.testVersion=null,e}return n(e,t),e.prototype.start=function(){cc.debug.setDisplayStats(!1),window.initMgr(),null!==window.wx&&void 0!==window.wx&&r.WeChat.setShare(location.href),cc.fx.GameConfig.init(this.localTest),this.testVersion.string=this.clientTestVersion;var t=window.location.href;this.containsTrain(t)?(console.log("\u65e0\u6392\u884c\u7248\u672c"),this.node.getChildByName("Rank").active=!1):console.log("\u6709\u6392\u884c\u7248\u672c")},e.prototype.containsTrain=function(t){return/from=train/i.test(t)},e.prototype.setRank=function(){cc.fx.GameTool.setRank({totleTimes:8759,accuracy:80})},e.prototype.startGame=function(){setTimeout(function(){cc.director.loadScene("GuideScene")},100)},e.prototype.clickBtn=function(){cc.director.loadScene("GameScene")},e.prototype.openRank=function(){setTimeout(function(){cc.director.loadScene("RankScene")},100)},e.prototype.update=function(){},o([s(!1)],e.prototype,"localTest",void 0),o([s("")],e.prototype,"clientTestVersion",void 0),o([s(cc.Label)],e.prototype,"testVersion",void 0),o([l],e)}(cc.Component));i.default=m,cc._RF.pop()},{"./module/Share/share":"share"}],Notification:[function(t,e,i){"use strict";cc._RF.push(e,"55403VjGlpPL564gsdiZBg3","Notification"),Object.defineProperty(i,"__esModule",{value:!0}),i.Notifications=void 0;i.Notifications={_eventMap:[],on:function(t,e,i){void 0===this._eventMap[t]&&(this._eventMap[t]=[]),this._eventMap[t].push({callback:e,target:i})},emit:function(t,e){var i=this._eventMap[t];if(void 0!==i)for(var a=0;a<i.length;a++){var n=i[a];n&&n.callback.call(n.target,e)}},off:function(t,e){var i=this._eventMap[t];if(void 0!==i)for(var a=0;a<i.length;a++){var n=i[a];if(n&&n.callback===e){i[a]=void 0;break}}},offMasgId:function(t){this._eventMap[t]=void 0},removeAllMsg:function(){for(var t in this._eventMap)this._eventMap[t]&&this.offMasgId(t)}},cc._RF.pop()},{}],RankManager:[function(t,e,i){"use strict";cc._RF.push(e,"e74a999IDFOabyymZgXQIiy","RankManager");var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__decorate||function(t,e,i,a){var n,o=arguments.length,r=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./module/RankList/List"),c=cc._decorator,l=c.ccclass,s=c.property,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Player=null,e.selfNode=null,e.phone=null,e}return n(e,t),e.prototype.onLoad=function(){this.init()},e.prototype.init=function(){this.rankList=cc.find("ScrollView",this.node).getComponent(r.default),this.Player.getChildByName("rank").active=!1,this.listData=[],this.selfData=null,this.rankNumber=100,this.rankTotal=100,this.selfNode.opacity=0,this.fit()},e.prototype.start=function(){this.Player.active=!1,this.getRank()},e.prototype.fit=function(){cc.fx.GameTool.setFit()||(this.node.getChildByName("ScrollView").getChildByName("view").height=800)},e.prototype.getRank=function(){var t=this;cc.fx.GameTool.getRank({length:100},function(e){return t.getRankData(e)})},e.prototype.getRankData=function(t){t&&(cc.fx.GameTool.getRankData(t,this,6),this.setPic(this.selfData.pic))},e.prototype.backClick=function(){cc.director.loadScene("LoadScene")},e.prototype.playerAction=function(){var t=this;this.Player.getChildByName("rank").active=!1;var e=1;if(this.tween=cc.tween(this.Player).to(2,{position:cc.v3(232,446,0)}).call(function(){t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%"}).start(),this.listData.length>0)if(e=(this.listData.length-this.rankNumber)/this.listData.length,this.listData.length>=99)if(this.rankNumber>=99){e=(49*Math.random()+1)/100;var i=cc.sys.localStorage.getItem("matchNumber");null!=i&&null!=i||(e=0)}else e=(this.listData.length-this.rankNumber)/this.listData.length;else e=this.rankNumber>99?0:(this.listData.length-this.rankNumber)/this.listData.length;else e=0;setTimeout(function(){t.tween&&t.tween.stop(),t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%"},2e3*e)},e.prototype.setPic=function(t){var e=this;this.phone.node.parent.getChildByName("icon").active=!1,this.phone.node.active=!1,this.Player.active=!0,this.Player.opacity=0,this.Player.getChildByName("mask").getChildByName("icon").active=!1,this.Player.getChildByName("mask").getChildByName("phone").active=!1,fetch(t).then(function(t){return t.headers.get("Content-Length")}).then(function(t){"5093"==t&&(e.phone.node.parent.getChildByName("icon").active=!0,e.Player.getChildByName("mask").getChildByName("icon").active=!0)}).catch(function(){});var i=this;cc.assetManager.loadRemote(t,{ext:".png"},function(t,e){i.Player.opacity=255,e?(i.phone.node.active=!0,i.phone.spriteFrame=new cc.SpriteFrame(e),i.Player.getChildByName("mask").getChildByName("icon").active=!1,i.Player.getChildByName("mask").getChildByName("phone").active=!0,i.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(e),setTimeout(function(){i.playerAction()},500)):(i.Player.getChildByName("mask").getChildByName("icon").active=!0,setTimeout(function(){i.playerAction()},500))})},o([s(cc.Node)],e.prototype,"Player",void 0),o([s(cc.Node)],e.prototype,"selfNode",void 0),o([s(cc.Sprite)],e.prototype,"phone",void 0),o([l],e)}(cc.Component);i.default=m,cc._RF.pop()},{"./module/RankList/List":"List"}],Storage:[function(t,e,i){"use strict";cc._RF.push(e,"1002938VFRJd70RiAno9Iys","Storage"),Object.defineProperty(i,"__esModule",{value:!0}),i.StorageMessage=void 0;var a={getStorage:function(t){var e=null;return cc.sys.localStorage.getItem(t)&&(e=cc.sys.localStorage.getItem(t)),e&&(e=JSON.parse(e)),e},setStorage:function(t,e){var i=JSON.stringify(e);cc.sys.localStorage.setItem(t,i)},removeStorage:function(t){cc.sys.localStorage.getItem(t)&&cc.sys.localStorage.removeItem(t)}};i.StorageMessage=a,cc._RF.pop()},{}],"crypto-js.min":[function(t,e,i){"use strict";cc._RF.push(e,"e64e1qXyT9CV6s0gDQdj/ed","crypto-js.min"),function(t,a){"object"==typeof i?e.exports=i=a():"function"==typeof define&&define.amd?define([],a):(void 0).CryptoJS=a()}(0,function(){var t,e,i,a,n,o,r,c=c||function(t){var e=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),i={},a=i.lib={},n=a.Base={extend:function(t){var i=e(this);return t&&i.mixIn(t),i.hasOwnProperty("init")&&this.init!==i.init||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=a.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,i=t.words,a=this.sigBytes,n=t.sigBytes;if(this.clamp(),a%4)for(var o=0;o<n;o++){var r=i[o>>>2]>>>24-o%4*8&255;e[a+o>>>2]|=r<<24-(a+o)%4*8}else for(o=0;o<n;o+=4)e[a+o>>>2]=i[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,a=[],n=function(e){e=e;var i=987654321,a=4294967295;return function(){var n=((i=36969*(65535&i)+(i>>16)&a)<<16)+(e=18e3*(65535&e)+(e>>16)&a)&a;return n/=4294967296,(n+=.5)*(t.random()>.5?1:-1)}},r=0;r<e;r+=4){var c=n(4294967296*(i||t.random()));i=987654071*c(),a.push(4294967296*c()|0)}return new o.init(a,e)}}),r=i.enc={},c=r.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,a=[],n=0;n<i;n++){var o=e[n>>>2]>>>24-n%4*8&255;a.push((o>>>4).toString(16)),a.push((15&o).toString(16))}return a.join("")},parse:function(t){for(var e=t.length,i=[],a=0;a<e;a+=2)i[a>>>3]|=parseInt(t.substr(a,2),16)<<24-a%8*4;return new o.init(i,e/2)}},l=r.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,a=[],n=0;n<i;n++){var o=e[n>>>2]>>>24-n%4*8&255;a.push(String.fromCharCode(o))}return a.join("")},parse:function(t){for(var e=t.length,i=[],a=0;a<e;a++)i[a>>>2]|=(255&t.charCodeAt(a))<<24-a%4*8;return new o.init(i,e)}},s=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},m=a.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=s.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,a=i.words,n=i.sigBytes,r=this.blockSize,c=n/(4*r),l=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*r,s=t.min(4*l,n);if(l){for(var m=0;m<l;m+=r)this._doProcessBlock(a,m);var h=a.splice(0,l);i.sigBytes-=s}return new o.init(h,s)},clone:function(){var t=n.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=(a.Hasher=m.extend({cfg:n.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new h.HMAC.init(t,i).finalize(e)}}}),i.algo={});return i}(Math);return function(){function t(t,e,a){for(var n=[],o=0,r=0;r<e;r++)if(r%4){var c=a[t.charCodeAt(r-1)]<<r%4*2,l=a[t.charCodeAt(r)]>>>6-r%4*2;n[o>>>2]|=(c|l)<<24-o%4*8,o++}return i.create(n,o)}var e=c,i=e.lib.WordArray;e.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,a=this._map;t.clamp();for(var n=[],o=0;o<i;o+=3)for(var r=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,c=0;c<4&&o+.75*c<i;c++)n.push(a.charAt(r>>>6*(3-c)&63));var l=a.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var i=e.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<a.length;o++)n[a.charCodeAt(o)]=o}var r=a.charAt(64);if(r){var c=e.indexOf(r);-1!==c&&(i=c)}return t(e,i,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,i,a,n,o,r){var c=t+(e&i|~e&a)+n+r;return(c<<o|c>>>32-o)+e}function i(t,e,i,a,n,o,r){var c=t+(e&a|i&~a)+n+r;return(c<<o|c>>>32-o)+e}function a(t,e,i,a,n,o,r){var c=t+(e^i^a)+n+r;return(c<<o|c>>>32-o)+e}function n(t,e,i,a,n,o,r){var c=t+(i^(e|~a))+n+r;return(c<<o|c>>>32-o)+e}var o=c,r=o.lib,l=r.WordArray,s=r.Hasher,m=o.algo,h=[];!function(){for(var e=0;e<64;e++)h[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=m.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,o){for(var r=0;r<16;r++){var c=o+r,l=t[c];t[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var s=this._hash.words,m=t[o+0],p=t[o+1],d=t[o+2],u=t[o+3],f=t[o+4],y=t[o+5],g=t[o+6],_=t[o+7],v=t[o+8],b=t[o+9],C=t[o+10],w=t[o+11],B=t[o+12],x=t[o+13],N=t[o+14],S=t[o+15],k=s[0],I=s[1],G=s[2],O=s[3];k=e(k,I,G,O,m,7,h[0]),O=e(O,k,I,G,p,12,h[1]),G=e(G,O,k,I,d,17,h[2]),I=e(I,G,O,k,u,22,h[3]),k=e(k,I,G,O,f,7,h[4]),O=e(O,k,I,G,y,12,h[5]),G=e(G,O,k,I,g,17,h[6]),I=e(I,G,O,k,_,22,h[7]),k=e(k,I,G,O,v,7,h[8]),O=e(O,k,I,G,b,12,h[9]),G=e(G,O,k,I,C,17,h[10]),I=e(I,G,O,k,w,22,h[11]),k=e(k,I,G,O,B,7,h[12]),O=e(O,k,I,G,x,12,h[13]),G=e(G,O,k,I,N,17,h[14]),k=i(k,I=e(I,G,O,k,S,22,h[15]),G,O,p,5,h[16]),O=i(O,k,I,G,g,9,h[17]),G=i(G,O,k,I,w,14,h[18]),I=i(I,G,O,k,m,20,h[19]),k=i(k,I,G,O,y,5,h[20]),O=i(O,k,I,G,C,9,h[21]),G=i(G,O,k,I,S,14,h[22]),I=i(I,G,O,k,f,20,h[23]),k=i(k,I,G,O,b,5,h[24]),O=i(O,k,I,G,N,9,h[25]),G=i(G,O,k,I,u,14,h[26]),I=i(I,G,O,k,v,20,h[27]),k=i(k,I,G,O,x,5,h[28]),O=i(O,k,I,G,d,9,h[29]),G=i(G,O,k,I,_,14,h[30]),k=a(k,I=i(I,G,O,k,B,20,h[31]),G,O,y,4,h[32]),O=a(O,k,I,G,v,11,h[33]),G=a(G,O,k,I,w,16,h[34]),I=a(I,G,O,k,N,23,h[35]),k=a(k,I,G,O,p,4,h[36]),O=a(O,k,I,G,f,11,h[37]),G=a(G,O,k,I,_,16,h[38]),I=a(I,G,O,k,C,23,h[39]),k=a(k,I,G,O,x,4,h[40]),O=a(O,k,I,G,m,11,h[41]),G=a(G,O,k,I,u,16,h[42]),I=a(I,G,O,k,g,23,h[43]),k=a(k,I,G,O,b,4,h[44]),O=a(O,k,I,G,B,11,h[45]),G=a(G,O,k,I,S,16,h[46]),k=n(k,I=a(I,G,O,k,d,23,h[47]),G,O,m,6,h[48]),O=n(O,k,I,G,_,10,h[49]),G=n(G,O,k,I,N,15,h[50]),I=n(I,G,O,k,y,21,h[51]),k=n(k,I,G,O,B,6,h[52]),O=n(O,k,I,G,u,10,h[53]),G=n(G,O,k,I,C,15,h[54]),I=n(I,G,O,k,p,21,h[55]),k=n(k,I,G,O,v,6,h[56]),O=n(O,k,I,G,S,10,h[57]),G=n(G,O,k,I,g,15,h[58]),I=n(I,G,O,k,x,21,h[59]),k=n(k,I,G,O,f,6,h[60]),O=n(O,k,I,G,w,10,h[61]),G=n(G,O,k,I,d,15,h[62]),I=n(I,G,O,k,b,21,h[63]),s[0]=s[0]+k|0,s[1]=s[1]+I|0,s[2]=s[2]+G|0,s[3]=s[3]+O|0},_doFinalize:function(){var e=this._data,i=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;i[n>>>5]|=128<<24-n%32;var o=t.floor(a/4294967296),r=a;i[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(i.length+1),this._process();for(var c=this._hash,l=c.words,s=0;s<4;s++){var m=l[s];l[s]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}return c},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}});o.MD5=s._createHelper(p),o.HmacMD5=s._createHmacHelper(p)}(Math),e=(t=c).lib,i=e.WordArray,a=e.Hasher,n=t.algo,o=[],r=n.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,a=i[0],n=i[1],r=i[2],c=i[3],l=i[4],s=0;s<80;s++){if(s<16)o[s]=0|t[e+s];else{var m=o[s-3]^o[s-8]^o[s-14]^o[s-16];o[s]=m<<1|m>>>31}var h=(a<<5|a>>>27)+l+o[s];h+=s<20?1518500249+(n&r|~n&c):s<40?1859775393+(n^r^c):s<60?(n&r|n&c|r&c)-1894007588:(n^r^c)-899497514,l=c,c=r,r=n<<30|n>>>2,n=a,a=h}i[0]=i[0]+a|0,i[1]=i[1]+n|0,i[2]=i[2]+r|0,i[3]=i[3]+c|0,i[4]=i[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return e[a>>>5]|=128<<24-a%32,e[14+(a+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(a+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=a._createHelper(r),t.HmacSHA1=a._createHmacHelper(r),function(t){var e=c,i=e.lib,a=i.WordArray,n=i.Hasher,o=e.algo,r=[],l=[];!function(){function e(e){for(var i=t.sqrt(e),a=2;a<=i;a++)if(!(e%a))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var a=2,n=0;n<64;)e(a)&&(n<8&&(r[n]=i(t.pow(a,.5))),l[n]=i(t.pow(a,1/3)),n++),a++}();var s=[],m=o.SHA256=n.extend({_doReset:function(){this._hash=new a.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,a=i[0],n=i[1],o=i[2],r=i[3],c=i[4],m=i[5],h=i[6],p=i[7],d=0;d<64;d++){if(d<16)s[d]=0|t[e+d];else{var u=s[d-15],f=(u<<25|u>>>7)^(u<<14|u>>>18)^u>>>3,y=s[d-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;s[d]=f+s[d-7]+g+s[d-16]}var _=a&n^a&o^n&o,v=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),b=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&m^~c&h)+l[d]+s[d];p=h,h=m,m=c,c=r+b|0,r=o,o=n,n=a,a=b+(v+_)|0}i[0]=i[0]+a|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+r|0,i[4]=i[4]+c|0,i[5]=i[5]+m|0,i[6]=i[6]+h|0,i[7]=i[7]+p|0},_doFinalize:function(){var e=this._data,i=e.words,a=8*this._nDataBytes,n=8*e.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=t.floor(a/4294967296),i[15+(n+64>>>9<<4)]=a,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=n._createHelper(m),e.HmacSHA256=n._createHmacHelper(m)}(Math),function(){function t(t){return t<<8&4278255360|t>>>8&16711935}var e=c,i=e.lib.WordArray,a=e.enc;a.Utf16=a.Utf16BE={stringify:function(t){for(var e=t.words,i=t.sigBytes,a=[],n=0;n<i;n+=2){var o=e[n>>>2]>>>16-n%4*8&65535;a.push(String.fromCharCode(o))}return a.join("")},parse:function(t){for(var e=t.length,a=[],n=0;n<e;n++)a[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(a,2*e)}},a.Utf16LE={stringify:function(e){for(var i=e.words,a=e.sigBytes,n=[],o=0;o<a;o+=2){var r=t(i[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var a=e.length,n=[],o=0;o<a;o++)n[o>>>1]|=t(e.charCodeAt(o)<<16-o%2*16);return i.create(n,2*a)}}}(),function(){if("function"==typeof ArrayBuffer){var t=c.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var i=t.byteLength,a=[],n=0;n<i;n++)a[n>>>2]|=t[n]<<24-n%4*8;e.call(this,a,i)}else e.apply(this,arguments)}).prototype=t}}(),function(){function t(t,e,i){return t^e^i}function e(t,e,i){return t&e|~t&i}function i(t,e,i){return(t|~e)^i}function a(t,e,i){return t&i|e&~i}function n(t,e,i){return t^(e|~i)}function o(t,e){return t<<e|t>>>32-e}var r=c,l=r.lib,s=l.WordArray,m=l.Hasher,h=r.algo,p=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=s.create([0,1518500249,1859775393,2400959708,2840853838]),g=s.create([1352829926,1548603684,1836072691,2053994217,0]),_=h.RIPEMD160=m.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,c){for(var l=0;l<16;l++){var s=c+l,m=r[s];r[s]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}var h,_,v,b,C,w,B,x,N,S,k,I=this._hash.words,G=y.words,O=g.words,M=p.words,A=d.words,R=u.words,L=f.words;for(w=h=I[0],B=_=I[1],x=v=I[2],N=b=I[3],S=C=I[4],l=0;l<80;l+=1)k=h+r[c+M[l]]|0,k+=l<16?t(_,v,b)+G[0]:l<32?e(_,v,b)+G[1]:l<48?i(_,v,b)+G[2]:l<64?a(_,v,b)+G[3]:n(_,v,b)+G[4],k=(k=o(k|=0,R[l]))+C|0,h=C,C=b,b=o(v,10),v=_,_=k,k=w+r[c+A[l]]|0,k+=l<16?n(B,x,N)+O[0]:l<32?a(B,x,N)+O[1]:l<48?i(B,x,N)+O[2]:l<64?e(B,x,N)+O[3]:t(B,x,N)+O[4],k=(k=o(k|=0,L[l]))+S|0,w=S,S=N,N=o(x,10),x=B,B=k;k=I[1]+v+N|0,I[1]=I[2]+b+S|0,I[2]=I[3]+C+w|0,I[3]=I[4]+h+B|0,I[4]=I[0]+_+x|0,I[0]=k},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;e[a>>>5]|=128<<24-a%32,e[14+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();for(var n=this._hash,o=n.words,r=0;r<5;r++){var c=o[r];o[r]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return n},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}});r.RIPEMD160=m._createHelper(_),r.HmacRIPEMD160=m._createHmacHelper(_)}(Math),function(){var t=c,e=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var a=t.blockSize,n=4*a;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),r=this._iKey=e.clone(),c=o.words,l=r.words,s=0;s<a;s++)c[s]^=1549556828,l[s]^=909522486;o.sigBytes=r.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,i=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(i))}})}(),function(){var t=c,e=t.lib,i=e.Base,a=e.WordArray,n=t.algo,o=n.SHA1,r=n.HMAC,l=n.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var i=this.cfg,n=r.create(i.hasher,t),o=a.create(),c=a.create([1]),l=o.words,s=c.words,m=i.keySize,h=i.iterations;l.length<m;){var p=n.update(e).finalize(c);n.reset();for(var d=p.words,u=d.length,f=p,y=1;y<h;y++){f=n.finalize(f),n.reset();for(var g=f.words,_=0;_<u;_++)d[_]^=g[_]}o.concat(p),s[0]++}return o.sigBytes=4*m,o}});t.PBKDF2=function(t,e,i){return l.create(i).compute(t,e)}}(),function(){var t=c,e=t.lib,i=e.Base,a=e.WordArray,n=t.algo,o=n.MD5,r=n.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var i=this.cfg,n=i.hasher.create(),o=a.create(),r=o.words,c=i.keySize,l=i.iterations;r.length<c;){s&&n.update(s);var s=n.update(t).finalize(e);n.reset();for(var m=1;m<l;m++)s=n.finalize(s),n.reset();o.concat(s)}return o.sigBytes=4*c,o}});t.EvpKDF=function(t,e,i){return r.create(i).compute(t,e)}}(),function(){var t=c,e=t.lib.WordArray,i=t.algo,a=i.SHA256,n=i.SHA224=a.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=a._createHelper(n),t.HmacSHA224=a._createHmacHelper(n)}(),function(){var t=c,e=t.lib,i=e.Base,a=e.WordArray,n=t.x64={};n.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),n.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,i=[],n=0;n<e;n++){var o=t[n];i.push(o.high),i.push(o.low)}return a.create(i,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),a=e.length,n=0;n<a;n++)e[n]=e[n].clone();return t}})}(),function(t){var e=c,i=e.lib,a=i.WordArray,n=i.Hasher,o=e.x64.Word,r=e.algo,l=[],s=[],m=[];!function(){for(var t=1,e=0,i=0;i<24;i++){l[t+5*e]=(i+1)*(i+2)/2%64;var a=(2*t+3*e)%5;t=e%5,e=a}for(t=0;t<5;t++)for(e=0;e<5;e++)s[t+5*e]=e+(2*t+3*e)%5*5;for(var n=1,r=0;r<24;r++){for(var c=0,h=0,p=0;p<7;p++){if(1&n){var d=(1<<p)-1;d<32?h^=1<<d:c^=1<<d-32}128&n?n=n<<1^113:n<<=1}m[r]=o.create(c,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var p=r.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var i=this._state,a=this.blockSize/2,n=0;n<a;n++){var o=t[e+2*n],r=t[e+2*n+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(I=i[n]).high^=r,I.low^=o}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var d=0,u=0,f=0;f<5;f++)d^=(I=i[p+5*f]).high,u^=I.low;var y=h[p];y.high=d,y.low=u}for(p=0;p<5;p++){var g=h[(p+4)%5],_=h[(p+1)%5],v=_.high,b=_.low;for(d=g.high^(v<<1|b>>>31),u=g.low^(b<<1|v>>>31),f=0;f<5;f++)(I=i[p+5*f]).high^=d,I.low^=u}for(var C=1;C<25;C++){var w=(I=i[C]).high,B=I.low,x=l[C];x<32?(d=w<<x|B>>>32-x,u=B<<x|w>>>32-x):(d=B<<x-32|w>>>64-x,u=w<<x-32|B>>>64-x);var N=h[s[C]];N.high=d,N.low=u}var S=h[0],k=i[0];for(S.high=k.high,S.low=k.low,p=0;p<5;p++)for(f=0;f<5;f++){var I=i[C=p+5*f],G=h[C],O=h[(p+1)%5+5*f],M=h[(p+2)%5+5*f];I.high=G.high^~O.high&M.high,I.low=G.low^~O.low&M.low}I=i[0];var A=m[c];I.high^=A.high,I.low^=A.low}},_doFinalize:function(){var e=this._data,i=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;i[n>>>5]|=1<<24-n%32,i[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*i.length,this._process();for(var r=this._state,c=this.cfg.outputLength/8,l=c/8,s=[],m=0;m<l;m++){var h=r[m],p=h.high,d=h.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),s.push(d),s.push(p)}return new a.init(s,c)},clone:function(){for(var t=n.clone.call(this),e=t._state=this._state.slice(0),i=0;i<25;i++)e[i]=e[i].clone();return t}});e.SHA3=n._createHelper(p),e.HmacSHA3=n._createHmacHelper(p)}(Math),function(){function t(){return n.create.apply(n,arguments)}var e=c,i=e.lib.Hasher,a=e.x64,n=a.Word,o=a.WordArray,r=e.algo,l=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=t()}();var m=r.SHA512=i.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=this._hash.words,a=i[0],n=i[1],o=i[2],r=i[3],c=i[4],m=i[5],h=i[6],p=i[7],d=a.high,u=a.low,f=n.high,y=n.low,g=o.high,_=o.low,v=r.high,b=r.low,C=c.high,w=c.low,B=m.high,x=m.low,N=h.high,S=h.low,k=p.high,I=p.low,G=d,O=u,M=f,A=y,R=g,L=_,T=v,F=b,z=C,P=w,D=B,j=x,E=N,H=S,V=k,K=I,U=0;U<80;U++){var W=s[U];if(U<16)var X=W.high=0|t[e+2*U],q=W.low=0|t[e+2*U+1];else{var Y=s[U-15],J=Y.high,Z=Y.low,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),tt=s[U-2],et=tt.high,it=tt.low,at=(et>>>19|it<<13)^(et<<3|it>>>29)^et>>>6,nt=(it>>>19|et<<13)^(it<<3|et>>>29)^(it>>>6|et<<26),ot=s[U-7],rt=ot.high,ct=ot.low,lt=s[U-16],st=lt.high,mt=lt.low;X=(X=(X=Q+rt+((q=$+ct)>>>0<$>>>0?1:0))+at+((q+=nt)>>>0<nt>>>0?1:0))+st+((q+=mt)>>>0<mt>>>0?1:0),W.high=X,W.low=q}var ht,pt=z&D^~z&E,dt=P&j^~P&H,ut=G&M^G&R^M&R,ft=O&A^O&L^A&L,yt=(G>>>28|O<<4)^(G<<30|O>>>2)^(G<<25|O>>>7),gt=(O>>>28|G<<4)^(O<<30|G>>>2)^(O<<25|G>>>7),_t=(z>>>14|P<<18)^(z>>>18|P<<14)^(z<<23|P>>>9),vt=(P>>>14|z<<18)^(P>>>18|z<<14)^(P<<23|z>>>9),bt=l[U],Ct=bt.high,wt=bt.low,Bt=V+_t+((ht=K+vt)>>>0<K>>>0?1:0),xt=gt+ft;V=E,K=H,E=D,H=j,D=z,j=P,z=T+(Bt=(Bt=(Bt=Bt+pt+((ht+=dt)>>>0<dt>>>0?1:0))+Ct+((ht+=wt)>>>0<wt>>>0?1:0))+X+((ht+=q)>>>0<q>>>0?1:0))+((P=F+ht|0)>>>0<F>>>0?1:0)|0,T=R,F=L,R=M,L=A,M=G,A=O,G=Bt+(yt+ut+(xt>>>0<gt>>>0?1:0))+((O=ht+xt|0)>>>0<ht>>>0?1:0)|0}u=a.low=u+O,a.high=d+G+(u>>>0<O>>>0?1:0),y=n.low=y+A,n.high=f+M+(y>>>0<A>>>0?1:0),_=o.low=_+L,o.high=g+R+(_>>>0<L>>>0?1:0),b=r.low=b+F,r.high=v+T+(b>>>0<F>>>0?1:0),w=c.low=w+P,c.high=C+z+(w>>>0<P>>>0?1:0),x=m.low=x+j,m.high=B+D+(x>>>0<j>>>0?1:0),S=h.low=S+H,h.high=N+E+(S>>>0<H>>>0?1:0),I=p.low=I+K,p.high=k+V+(I>>>0<K>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return e[a>>>5]|=128<<24-a%32,e[30+(a+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(a+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(m),e.HmacSHA512=i._createHmacHelper(m)}(),function(){var t=c,e=t.x64,i=e.Word,a=e.WordArray,n=t.algo,o=n.SHA512,r=n.SHA384=o.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=o._createHelper(r),t.HmacSHA384=o._createHmacHelper(r)}(),c.lib.Cipher||function(t){var e=c,i=e.lib,a=i.Base,n=i.WordArray,o=i.BufferedBlockAlgorithm,r=e.enc,l=(r.Utf8,r.Base64),s=e.algo.EvpKDF,m=i.Cipher=o.extend({cfg:a.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:g}return function(e){return{encrypt:function(i,a,n){return t(a).encrypt(e,i,a,n)},decrypt:function(i,a,n){return t(a).decrypt(e,i,a,n)}}}}()}),h=(i.StreamCipher=m.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),p=i.BlockCipherMode=a.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=h.CBC=function(){function e(e,i,a){var n=this._iv;if(n){var o=n;this._iv=t}else o=this._prevBlock;for(var r=0;r<a;r++)e[i+r]^=o[r]}var i=p.extend();return i.Encryptor=i.extend({processBlock:function(t,i){var a=this._cipher,n=a.blockSize;e.call(this,t,i,n),a.encryptBlock(t,i),this._prevBlock=t.slice(i,i+n)}}),i.Decryptor=i.extend({processBlock:function(t,i){var a=this._cipher,n=a.blockSize,o=t.slice(i,i+n);a.decryptBlock(t,i),e.call(this,t,i,n),this._prevBlock=o}}),i}(),u=(e.pad={}).Pkcs7={pad:function(t,e){for(var i=4*e,a=i-t.sigBytes%i,o=a<<24|a<<16|a<<8|a,r=[],c=0;c<a;c+=4)r.push(o);var l=n.create(r,a);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},f=(i.BlockCipher=m.extend({cfg:m.cfg.extend({mode:d,padding:u}),reset:function(){m.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var a=i.createEncryptor;else a=i.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==a?this._mode.init(this,e&&e.words):(this._mode=a.call(i,this,e&&e.words),this._mode.__creator=a)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4}),i.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),y=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;if(i)var a=n.create([1398893684,1701076831]).concat(i).concat(e);else a=e;return a.toString(l)},parse:function(t){var e=l.parse(t),i=e.words;if(1398893684==i[0]&&1701076831==i[1]){var a=n.create(i.slice(2,4));i.splice(0,4),e.sigBytes-=16}return f.create({ciphertext:e,salt:a})}},g=i.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(t,e,i,a){a=this.cfg.extend(a);var n=t.createEncryptor(i,a),o=n.finalize(e),r=n.cfg;return f.create({ciphertext:o,key:i,iv:r.iv,algorithm:t,mode:r.mode,padding:r.padding,blockSize:t.blockSize,formatter:a.format})},decrypt:function(t,e,i,a){return a=this.cfg.extend(a),e=this._parse(e,a.format),t.createDecryptor(i,a).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=(e.kdf={}).OpenSSL={execute:function(t,e,i,a){a||(a=n.random(8));var o=s.create({keySize:e+i}).compute(t,a),r=n.create(o.words.slice(e),4*i);return o.sigBytes=4*e,f.create({key:o,iv:r,salt:a})}},v=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:_}),encrypt:function(t,e,i,a){var n=(a=this.cfg.extend(a)).kdf.execute(i,t.keySize,t.ivSize);a.iv=n.iv;var o=g.encrypt.call(this,t,e,n.key,a);return o.mixIn(n),o},decrypt:function(t,e,i,a){a=this.cfg.extend(a),e=this._parse(e,a.format);var n=a.kdf.execute(i,t.keySize,t.ivSize,e.salt);return a.iv=n.iv,g.decrypt.call(this,t,e,n.key,a)}})}(),c.mode.CFB=function(){function t(t,e,i,a){var n=this._iv;if(n){var o=n.slice(0);this._iv=void 0}else o=this._prevBlock;a.encryptBlock(o,0);for(var r=0;r<i;r++)t[e+r]^=o[r]}var e=c.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,i){var a=this._cipher,n=a.blockSize;t.call(this,e,i,n,a),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var a=this._cipher,n=a.blockSize,o=e.slice(i,i+n);t.call(this,e,i,n,a),this._prevBlock=o}}),e}(),c.mode.ECB=function(){var t=c.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t}(),c.pad.AnsiX923={pad:function(t,e){var i=t.sigBytes,a=4*e,n=a-i%a,o=i+n-1;t.clamp(),t.words[o>>>2]|=n<<24-o%4*8,t.sigBytes+=n},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},c.pad.Iso10126={pad:function(t,e){var i=4*e,a=i-t.sigBytes%i;t.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},c.pad.Iso97971={pad:function(t,e){t.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(t,e)},unpad:function(t){c.pad.ZeroPadding.unpad(t),t.sigBytes--}},c.mode.OFB=function(){var t=c.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,a=i.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),i.encryptBlock(o,0);for(var r=0;r<a;r++)t[e+r]^=o[r]}});return t.Decryptor=e,t}(),c.pad.NoPadding={pad:function(){},unpad:function(){}},function(){var t=c,e=t.lib.CipherParams,i=t.enc.Hex;t.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var a=i.parse(t);return e.create({ciphertext:a})}}}(),function(){var t=c,e=t.lib.BlockCipher,i=t.algo,a=[],n=[],o=[],r=[],l=[],s=[],m=[],h=[],p=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var i=0,c=0;for(e=0;e<256;e++){var u=c^c<<1^c<<2^c<<3^c<<4;u=u>>>8^255&u^99,a[i]=u,n[u]=i;var f=t[i],y=t[f],g=t[y],_=257*t[u]^16843008*u;o[i]=_<<24|_>>>8,r[i]=_<<16|_>>>16,l[i]=_<<8|_>>>24,s[i]=_,_=16843009*g^65537*y^257*f^16843008*i,m[u]=_<<24|_>>>8,h[u]=_<<16|_>>>16,p[u]=_<<8|_>>>24,d[u]=_,i?(i=f^t[t[t[g^f]]],c^=t[t[c]]):i=c=1}}();var u=[0,1,2,4,8,16,32,64,128,27,54],f=i.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,n=4*((this._nRounds=i+6)+1),o=this._keySchedule=[],r=0;r<n;r++)if(r<i)o[r]=e[r];else{var c=o[r-1];r%i?i>6&&r%i==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=u[r/i|0]<<24),o[r]=o[r-i]^c}for(var l=this._invKeySchedule=[],s=0;s<n;s++)r=n-s,c=s%4?o[r]:o[r-4],l[s]=s<4||r<=4?c:m[a[c>>>24]]^h[a[c>>>16&255]]^p[a[c>>>8&255]]^d[a[255&c]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,r,l,s,a)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,m,h,p,d,n),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,a,n,o,r,c){for(var l=this._nRounds,s=t[e]^i[0],m=t[e+1]^i[1],h=t[e+2]^i[2],p=t[e+3]^i[3],d=4,u=1;u<l;u++){var f=a[s>>>24]^n[m>>>16&255]^o[h>>>8&255]^r[255&p]^i[d++],y=a[m>>>24]^n[h>>>16&255]^o[p>>>8&255]^r[255&s]^i[d++],g=a[h>>>24]^n[p>>>16&255]^o[s>>>8&255]^r[255&m]^i[d++],_=a[p>>>24]^n[s>>>16&255]^o[m>>>8&255]^r[255&h]^i[d++];s=f,m=y,h=g,p=_}f=(c[s>>>24]<<24|c[m>>>16&255]<<16|c[h>>>8&255]<<8|c[255&p])^i[d++],y=(c[m>>>24]<<24|c[h>>>16&255]<<16|c[p>>>8&255]<<8|c[255&s])^i[d++],g=(c[h>>>24]<<24|c[p>>>16&255]<<16|c[s>>>8&255]<<8|c[255&m])^i[d++],_=(c[p>>>24]<<24|c[s>>>16&255]<<16|c[m>>>8&255]<<8|c[255&h])^i[d++],t[e]=f,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});t.AES=e._createHelper(f)}(),function(){function t(t,e){var i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<<t}function e(t,e){var i=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<<t}var i=c,a=i.lib,n=a.WordArray,o=a.BlockCipher,r=i.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=r.DES=o.extend({_doReset:function(){for(var t=this._key.words,e=[],i=0;i<56;i++){var a=l[i]-1;e[i]=t[a>>>5]>>>31-a%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var r=n[o]=[],c=m[o];for(i=0;i<24;i++)r[i/6|0]|=e[(s[i]-1+c)%28]<<31-i%6,r[4+(i/6|0)]|=e[28+(s[i+24]-1+c)%28]<<31-i%6;for(r[0]=r[0]<<1|r[0]>>>31,i=1;i<7;i++)r[i]=r[i]>>>4*(i-1)+3;r[7]=r[7]<<5|r[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=n[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(i,a,n){this._lBlock=i[a],this._rBlock=i[a+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;o<16;o++){for(var r=n[o],c=this._lBlock,l=this._rBlock,s=0,m=0;m<8;m++)s|=h[m][((l^r[m])&p[m])>>>0];this._lBlock=l,this._rBlock=c^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[a]=this._lBlock,i[a+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});i.DES=o._createHelper(d);var u=r.TripleDES=o.extend({_doReset:function(){var t=this._key.words;this._des1=d.createEncryptor(n.create(t.slice(0,2))),this._des2=d.createEncryptor(n.create(t.slice(2,4))),this._des3=d.createEncryptor(n.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=o._createHelper(u)}(),function(){function t(){for(var t=this._S,e=this._i,i=this._j,a=0,n=0;n<4;n++){i=(i+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[i],t[i]=o,a|=t[(t[e]+t[i])%256]<<24-8*n}return this._i=e,this._j=i,a}var e=c,i=e.lib.StreamCipher,a=e.algo,n=a.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,i=t.sigBytes,a=this._S=[],n=0;n<256;n++)a[n]=n;n=0;for(var o=0;n<256;n++){var r=n%i,c=e[r>>>2]>>>24-r%4*8&255;o=(o+a[n]+c)%256;var l=a[n];a[n]=a[o],a[o]=l}this._i=this._j=0},_doProcessBlock:function(e,i){e[i]^=t.call(this)},keySize:8,ivSize:0});e.RC4=i._createHelper(n);var o=a.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});e.RC4Drop=i._createHelper(o)}(),c.mode.CTRGladman=function(){function t(t){if(255==(t>>24&255)){var e=t>>16&255,i=t>>8&255,a=255&t;255===e?(e=0,255===i?(i=0,255===a?a=0:++a):++i):++e,t=0,t+=e<<16,t+=i<<8,t+=a}else t+=1<<24;return t}function e(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=c.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(t,i){var a=this._cipher,n=a.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0),e(r);var c=r.slice(0);a.encryptBlock(c,0);for(var l=0;l<n;l++)t[i+l]^=c[l]}});return i.Decryptor=a,i}(),function(){function t(){for(var t=this._X,e=this._C,i=0;i<8;i++)o[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,i=0;i<8;i++){var a=t[i]+e[i],n=65535&a,c=a>>>16,l=((n*n>>>17)+n*c>>>15)+c*c,s=((4294901760&a)*a|0)+((65535&a)*a|0);r[i]=l^s}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=c,i=e.lib.StreamCipher,a=e.algo,n=[],o=[],r=[],l=a.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,i=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)t.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(i){var r=i.words,c=r[0],l=r[1],s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),m=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=s>>>16|4294901760&m,p=m<<16|65535&s;for(o[0]^=s,o[1]^=h,o[2]^=m,o[3]^=p,o[4]^=s,o[5]^=h,o[6]^=m,o[7]^=p,a=0;a<4;a++)t.call(this)}},_doProcessBlock:function(e,i){var a=this._X;t.call(this),n[0]=a[0]^a[5]>>>16^a[3]<<16,n[1]=a[2]^a[7]>>>16^a[5]<<16,n[2]=a[4]^a[1]>>>16^a[7]<<16,n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),e[i+o]^=n[o]},blockSize:4,ivSize:2});e.Rabbit=i._createHelper(l)}(),c.mode.CTR=function(){var t=c.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,a=i.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var r=o.slice(0);i.encryptBlock(r,0),o[a-1]=o[a-1]+1|0;for(var c=0;c<a;c++)t[e+c]^=r[c]}});return t.Decryptor=e,t}(),function(){function t(){for(var t=this._X,e=this._C,i=0;i<8;i++)o[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,i=0;i<8;i++){var a=t[i]+e[i],n=65535&a,c=a>>>16,l=((n*n>>>17)+n*c>>>15)+c*c,s=((4294901760&a)*a|0)+((65535&a)*a|0);r[i]=l^s}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=c,i=e.lib.StreamCipher,a=e.algo,n=[],o=[],r=[],l=a.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,i=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)t.call(this);for(o=0;o<8;o++)n[o]^=a[o+4&7];if(i){var r=i.words,c=r[0],l=r[1],s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),m=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=s>>>16|4294901760&m,p=m<<16|65535&s;for(n[0]^=s,n[1]^=h,n[2]^=m,n[3]^=p,n[4]^=s,n[5]^=h,n[6]^=m,n[7]^=p,o=0;o<4;o++)t.call(this)}},_doProcessBlock:function(e,i){var a=this._X;t.call(this),n[0]=a[0]^a[5]>>>16^a[3]<<16,n[1]=a[2]^a[7]>>>16^a[5]<<16,n[2]=a[4]^a[1]>>>16^a[7]<<16,n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),e[i+o]^=n[o]},blockSize:4,ivSize:2});e.RabbitLegacy=i._createHelper(l)}(),c.pad.ZeroPadding={pad:function(t,e){var i=4*e;t.clamp(),t.sigBytes+=i-(t.sigBytes%i||i)},unpad:function(t){for(var e=t.words,i=t.sigBytes-1;!(e[i>>>2]>>>24-i%4*8&255);)i--;t.sigBytes=i+1}},c}),cc._RF.pop()},{}],share:[function(t,e,i){"use strict";cc._RF.push(e,"7290caA39xMWZc2phTMKovP","share");var a=this&&this.__awaiter||function(t,e,i,a){return new(i||(i=Promise))(function(n,o){function r(t){try{l(a.next(t))}catch(e){o(e)}}function c(t){try{l(a.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,c)}l((a=a.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var i,a,n,o,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(e){return l([t,e])}}function l(o){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=2&o[0]?a.return:o[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;switch(a=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(n=(n=r.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){r=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){r.label=o[1];break}if(6===o[0]&&r.label<n[1]){r.label=n[1],n=o;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(o);break}n[2]&&r.ops.pop(),r.trys.pop();continue}o=e.call(t,r)}catch(c){o=[6,c],a=0}finally{i=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(i,"__esModule",{value:!0}),i.WeChat=void 0;var o={gameId:"100014",shareLine:"zDLsruVI",EK:"hui231%1"},r=function(){function t(){}return t.setShare=function(e){var i=this.removeQueryParams(e);o.shareLine=i,t.getSignature(e)},t.getResult=function(e){if(e){var i=e.data;wx.config({debug:!1,appId:i.appId,timestamp:i.timestamp,nonceStr:i.nonceStr,signature:i.signature,jsApiList:["onMenuShareTimeline","updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage"]}),wx.checkJsApi({jsApiList:["updateAppMessageShareData"],success:function(){setTimeout(function(){t.changeShare()},100),setTimeout(function(){t.changeShare()},200)}})}},t.changeShare=function(){wx.ready(function(){wx.updateAppMessageShareData({title:"\u8bb0\u5fc6\u529b\u8ba4\u77e5\u6d4b\u8bc4",desc:"\u4f60\u7684\u8ba4\u77e5\u7075\u6d3b\u6027\u548c\u9009\u62e9\u6ce8\u610f\u6709\u95ee\u9898\u5417",link:o.shareLine,imgUrl:"https://static.sparkus.cn/public/shennong.jpg",success:function(){console.log("\u5206\u4eab\u597d\u53cb\u6210\u529f\u56de\u8c03")}}),setTimeout(function(){wx.updateTimelineShareData({title:"\u8bb0\u5fc6\u529b\u8ba4\u77e5\u6d4b\u8bc4",link:o.shareLine,imgUrl:"https://static.sparkus.cn/public/shennong.jpg",success:function(){console.log("\u5206\u4eab\u670b\u53cb\u5708\u6210\u529f\u56de\u8c03")}})},200)})},t.getSignature=function(e){return new Promise(function(){t.getShareInfo(encodeURIComponent(e),t.getResult)})},t.getShareInfo=function(t,e){return a(this,void 0,Promise,function(){var i,a;return n(this,function(){return i=Math.floor((new Date).getTime()/1e3),a=cc.fx.HttpUtil.apiSign("/api/share/cfg?gameId="+o.gameId+"&time="+i+"&url="+t,{}),[2,cc.fx.HttpUtil.get(a,e,0)]})})},t.containsNanana=function(t){return/test/i.test(t)},t.removeQueryParams=function(t){return t.replace(/\?.*$/,"")},t}();i.WeChat=r,cc._RF.pop()},{}],"use_v2.1-2.2.1_cc.Toggle_event":[function(t,e){"use strict";cc._RF.push(e,"7a231Rz0d9LBYYgY3bDYlLB","use_v2.1-2.2.1_cc.Toggle_event"),cc.Toggle&&(cc.Toggle._triggerEventInScript_isChecked=!0),cc._RF.pop()},{}]},{},["Block","DynamicAtlasManager","GameManager","GameOver","GameScene","GuideManager","Load","RankManager","GameConfig","HttpUtil","crypto-js.min","GameAppStart","AudioManager","Notification","ItemRender","List","share","Storage","GameTool","use_v2.1-2.2.1_cc.Toggle_event"]);