window.__require = function t(e, n, o) {
function i(a, s) {
if (!n[a]) {
if (!e[a]) {
var c = a.split("/");
c = c[c.length - 1];
if (!e[c]) {
var l = "function" == typeof __require && __require;
if (!s && l) return l(c, !0);
if (r) return r(c, !0);
throw new Error("Cannot find module '" + a + "'");
}
a = c;
}
var u = n[a] = {
exports: {}
};
e[a][0].call(u.exports, function(t) {
return i(e[a][1][t] || t);
}, u, u.exports, t, e, n, o);
}
return n[a].exports;
}
for (var r = "function" == typeof __require && __require, a = 0; a < o.length; a++) i(o[a]);
return i;
}({
ATAndroidBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "373b2sCOFlCLZeomt863XyC", "ATAndroidBannerJS");
var n = "com/anythink/cocosjs/ATBannerJSBridge", o = o || {
loadBanner: function(t, e) {
cc.log("Android-loadBanner:" + e);
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
showAdInPosition: function(t, e) {
cc.log("Android-showAdInPosistion");
jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
showAdInRectangle: function(t, e) {
cc.log("Android-showAdInRectangle");
jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
removeAd: function(t) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
},
reShowAd: function(t) {
cc.log("Android-reShowAd");
jsb.reflection.callStaticMethod(n, "reshow", "(Ljava/lang/String;)V", t);
},
hideAd: function(t) {
cc.log("Android-hideAd");
jsb.reflection.callStaticMethod(n, "hide", "(Ljava/lang/String;)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f073foYdLdPM6Yr1ntb2lMg", "ATAndroidInterstitialJS");
var n = "com/anythink/cocosjs/ATInterstitialJSBridge", o = o || {
loadInterstitial: function(t, e) {
cc.log("Android-loadInterstitial");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
showAd: function(t) {
cc.log("Android-showAd:" + t);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
},
showAdInScenario: function(t, e) {
cc.log("Android-showAdInScenario:" + t + "---" + e);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "85a5eThP61PK65Y4yGwBvE8", "ATAndroidJS");
var n = "com/anythink/cocosjs/ATJSBridge", o = o || {
printJsLog: function(t) {
null != t && null != t && jsb.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", t);
},
initSDK: function(t, e) {
jsb.reflection.callStaticMethod(n, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
initCustomMap: function(t) {
jsb.reflection.callStaticMethod(n, "initCustomMap", "(Ljava/lang/String;)V", t);
},
setPlacementCustomMap: function(t, e) {
jsb.reflection.callStaticMethod(n, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setGDPRLevel: function(t) {
jsb.reflection.callStaticMethod(n, "setGDPRLevel", "(I)V", t);
},
getGDPRLevel: function() {
return jsb.reflection.callStaticMethod(n, "getGDPRLevel", "()I");
},
getUserLocation: function(t) {
jsb.reflection.callStaticMethod(n, "getUserLocation", "(Ljava/lang/String;)V", t);
},
showGDPRAuth: function() {
jsb.reflection.callStaticMethod(n, "showGDPRAuth", "()V");
},
setLogDebug: function(t) {
jsb.reflection.callStaticMethod(n, "setLogDebug", "(Z)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "c7e28/V0ltGuaVkyssLml95", "ATAndroidNativeJS");
var n = "com/anythink/cocosjs/ATNativeJSBridge", o = o || {
loadNative: function(t, e) {
cc.log("Android-loadNative");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
showAd: function(t, e) {
cc.log("Android-showAd");
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
removeAd: function(t) {
cc.log("Android-removeAd");
jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATAndroidRewardedVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "0e16ckjW85NZIXjxXyQ2xem", "ATAndroidRewardedVideoJS");
var n = "com/anythink/cocosjs/ATRewardedVideoJSBridge", o = o || {
loadRewardedVideo: function(t, e) {
cc.log("Android-loadRewardedVideo");
jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
},
setAdListener: function(t) {
cc.log("Android-setAdListener");
jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
},
hasAdReady: function(t) {
cc.log("Android-hasAdReady");
return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
},
showAd: function(t) {
cc.log("Android-rv_showAd:" + t);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
},
showAdInScenario: function(t, e) {
cc.log("Android-rv_showAdInScenario:" + t + "---" + e);
jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {} ],
ATBannerJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "fed33eJy/VKD6bSJh4Cejc1", "ATBannerJSSDK");
var n = t("./Android/ATAndroidBannerJS"), o = t("./iOS/ATiOSBannerJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
kATBannerAdLoadingExtraBannerAdSizeStruct: "banner_ad_size_struct",
kATBannerAdShowingPositionTop: "top",
kATBannerAdShowingPositionBottom: "bottom",
kATBannerAdInlineAdaptiveWidth: "inline_adaptive_width",
kATBannerAdInlineAdaptiveOrientation: "inline_adaptive_orientation",
kATBannerAdInlineAdaptiveOrientationCurrent: 0,
kATBannerAdInlineAdaptiveOrientationPortrait: 1,
kATBannerAdInlineAdaptiveOrientationLandscape: 2,
ATBannerListener: {
developerCallback: null,
onBannerAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoaded && null != this.developerCallback.onBannerAdLoaded && this.developerCallback.onBannerAdLoaded(t);
},
onBannerAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdLoadFail && null != this.developerCallback.onBannerAdLoadFail && this.developerCallback.onBannerAdLoadFail(t, e);
},
onBannerAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdShow && null != this.developerCallback.onBannerAdShow && this.developerCallback.onBannerAdShow(t, e);
},
onBannerAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdClick && null != this.developerCallback.onBannerAdClick && this.developerCallback.onBannerAdClick(t, e);
},
onBannerAdAutoRefresh: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefresh && null != this.developerCallback.onBannerAdAutoRefresh && this.developerCallback.onBannerAdAutoRefresh(t, e);
},
onBannerAdAutoRefreshFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefreshFail && null != this.developerCallback.onBannerAdAutoRefreshFail && this.developerCallback.onBannerAdAutoRefreshFail(t, e);
},
onBannerAdCloseButtonTapped: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onBannerAdCloseButtonTapped && null != this.developerCallback.onBannerAdCloseButtonTapped && this.developerCallback.onBannerAdCloseButtonTapped(t, e);
}
},
loadBanner: function(t, e) {
void 0 === e && (e = {});
if (null != i && null != i) {
if (e.hasOwnProperty(r.kATBannerAdLoadingExtraBannerAdSizeStruct)) {
var n = e[r.kATBannerAdLoadingExtraBannerAdSizeStruct];
e.width = n.width;
e.height = n.height;
}
i.loadBanner(t, JSON.stringify(e));
} else cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoaded", e[s] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoadFail", 
e[c] = "ATBannerJSSDK.ATBannerListener.onBannerAdCloseButtonTapped", e[l] = "ATBannerJSSDK.ATBannerListener.onBannerAdClick", 
e[u] = "ATBannerJSSDK.ATBannerListener.onBannerAdShow", e[p] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefresh", 
e[d] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefreshFail";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATBannerListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
showAdInPosition: function(t, e) {
null != i && null != i ? i.showAdInPosition(t, e) : cc.log("You must run on Android or iOS.");
},
showAdInRectangle: function(t, e) {
null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
removeAd: function(t) {
null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
},
reShowAd: function(t) {
null != i && null != i ? i.reShowAd(t) : cc.log("You must run on Android or iOS.");
},
hideAd: function(t) {
null != i && null != i ? i.hideAd(t) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(t, e) {
var n = {};
n.width = t;
n.height = e;
return n;
},
createShowAdRect: function(t, e, n, o) {
var i = {};
i.x = t;
i.y = e;
i.width = n;
i.height = o;
return i;
}
}, a = "BannerLoaded", s = "BannerLoadFail", c = "BannerCloseButtonTapped", l = "BannerClick", u = "BannerShow", p = "BannerRefresh", d = "BannerRefreshFail";
window.ATBannerJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidBannerJS": "ATAndroidBannerJS",
"./iOS/ATiOSBannerJS": "ATiOSBannerJS"
} ],
ATBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "e39ee3D06VH2JIOKTRndSVl", "ATBannerJS");
t("./AnyThinkAds/ATBannerJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATBannerJS",
proxy: null,
ctor: function() {},
init: function() {
ATBannerJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadBanner: function() {
var t = cc.view.getFrameSize().height;
if (!(t < 1400)) {
var e = {}, n = t / 1334 * 115;
e[ATBannerJSSDK.kATBannerAdLoadingExtraBannerAdSizeStruct] = ATBannerJSSDK.createLoadAdSize(cc.view.getFrameSize().width, n);
e[ATBannerJSSDK.kATBannerAdInlineAdaptiveWidth] = cc.view.getFrameSize().width;
e[ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientation] = ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientationCurrent;
ATBannerJSSDK.loadBanner(this.placementID(), e);
}
},
checkBannerReady: function() {
return !!ATBannerJSSDK.hasAdReady(this.placementID());
},
showBanner: function() {
this.bannerIsShow || ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
},
destroyBanner: function() {
if (this.bannerIsShow) {
ATBannerJSSDK.removeAd(this.placementID());
this.bannerIsShow = !1;
this.loadBanner();
}
},
onBannerAdLoaded: function(t) {
null != this.proxy && this.proxy.onBannerAdLoaded(t);
},
onBannerAdLoadFail: function(t, e) {
null != this.proxy && this.proxy.onBannerAdLoadFail(t, e);
},
onBannerAdShow: function(t, e) {
this.bannerIsShow = !0;
null != this.proxy && this.proxy.onBannerAdShow(t, e);
},
onBannerAdClick: function(t, e) {
null != this.proxy && this.proxy.onBannerAdClick(t, e);
},
onBannerAdAutoRefresh: function() {
this.proxy;
},
onBannerAdAutoRefreshFail: function() {
this.proxy;
},
onBannerAdCloseButtonTapped: function() {
this.proxy;
}
});
e.exports = n;
cc.ATBannerJS || (cc.ATBannerJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATBannerJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATBanner: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "180ddxdu85IXYjxFMMG+Rz5", "ATBanner");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = t("../zgSingleton"), a = t("./ATSDKMgr"), s = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
cc.ATNativeJS.proxy = this;
cc.ATNativeJS.init();
this.loadBanner();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? a.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? a.default.topon_banner_placementId : void 0;
};
e.prototype.loadBanner = function() {
cc.ATNativeJS.loadBanner();
};
e.prototype.showBanner = function() {
cc.ATNativeJS.showBanner();
};
e.prototype.destroyBanner = function() {
cc.ATNativeJS.destroyBanner();
};
return e;
}(r.zgSingleton);
n.default = s;
cc._RF.pop();
}, {
"../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATInterstitialJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "778c3M0uDdLZKCU1iwGn6T6", "ATInterstitialJSSDK");
var n = t("./iOS/ATiOSInterstitialJS"), o = t("./Android/ATAndroidInterstitialJS"), i = cc.sys.os === cc.sys.OS_IOS ? n : cc.sys.os === cc.sys.OS_ANDROID ? o : void 0, r = r || {
UseRewardedVideoAsInterstitial: "UseRewardedVideoAsInterstitial",
ATInterstitialListener: {
developerCallback: null,
onInterstitialAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoaded && null != this.developerCallback.onInterstitialAdLoaded && this.developerCallback.onInterstitialAdLoaded(t);
},
onInterstitialAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoadFail && null != this.developerCallback.onInterstitialAdLoadFail && this.developerCallback.onInterstitialAdLoadFail(t, e);
},
onInterstitialAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdShow && null != this.developerCallback.onInterstitialAdShow && this.developerCallback.onInterstitialAdShow(t, e);
},
onInterstitialAdStartPlayingVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdStartPlayingVideo && null != this.developerCallback.onInterstitialAdStartPlayingVideo && this.developerCallback.onInterstitialAdStartPlayingVideo(t, e);
},
onInterstitialAdEndPlayingVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdEndPlayingVideo && null != this.developerCallback.onInterstitialAdEndPlayingVideo && this.developerCallback.onInterstitialAdEndPlayingVideo(t, e);
},
onInterstitialAdFailedToPlayVideo: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && this.developerCallback.onInterstitialAdFailedToPlayVideo(t, e);
},
onInterstitialAdFailedToShow: function(t) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToShow && null != this.developerCallback.onInterstitialAdFailedToShow && this.developerCallback.onInterstitialAdFailedToShow(t);
},
onInterstitialAdClose: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClose && null != this.developerCallback.onInterstitialAdClose && this.developerCallback.onInterstitialAdClose(t, e);
},
onInterstitialAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onInterstitialAdClick && null != this.developerCallback.onInterstitialAdClick && this.developerCallback.onInterstitialAdClick(t, e);
}
},
loadInterstitial: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadInterstitial(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoaded", e[s] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoadFail", 
e[c] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdStartPlayingVideo", 
e[l] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdEndPlayingVideo", 
e[u] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToPlayVideo", 
e[p] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClose", e[d] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClick", 
e[h] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdShow", e[f] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToShow";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATInterstitialListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
showAd: function(t) {
null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(t, e) {
void 0 === e && (e = "");
null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
}
}, a = "InterstitialLoaded", s = "InterstitialLoadFail", c = "InterstitialPlayStart", l = "InterstitialPlayEnd", u = "InterstitialPlayFail", p = "InterstitialClose", d = "InterstitialClick", h = "InterstitialAdShow", f = "InterstitialAdShowFail";
window.ATInterstitialJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidInterstitialJS": "ATAndroidInterstitialJS",
"./iOS/ATiOSInterstitialJS": "ATiOSInterstitialJS"
} ],
ATInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "834cdg0rj5K4bBXLVG4XyXv", "ATInterstitialJS");
t("./AnyThinkAds/ATInterstitialJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATInterstitialJS",
proxy: null,
interType: 0,
ctor: function() {},
init: function() {
ATBannerJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID(this.interType);
},
loadInter: function(t) {
var e = {};
e[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
this.interType = t;
ATInterstitialJSSDK.setAdListener(this);
0 == this.interType ? ATInterstitialJSSDK.loadInterstitial(this.placementID(), e) : 1 == this.interType && ATInterstitialJSSDK.loadInterstitial(this.placementID(), e);
},
checkInterReady: function(t) {
if (null != this.proxy) return 0 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : 1 == t ? !!ATInterstitialJSSDK.hasAdReady(this.placementID()) : void 0;
},
showInter: function(t) {
0 == t ? ATInterstitialJSSDK.showAd(this.placementID()) : 1 == t && ATInterstitialJSSDK.showAd(this.placementID());
},
onInterstitialAdLoaded: function(t) {
null != this.proxy && this.proxy.onInterstitialAdLoaded(t);
},
onInterstitialAdLoadFail: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdLoadFail(t, e);
},
onInterstitialAdShow: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
},
onInterstitialAdStartPlayingVideo: function() {},
onInterstitialAdEndPlayingVideo: function() {},
onInterstitialAdFailedToPlayVideo: function() {},
onInterstitialAdFailedToShow: function() {},
onInterstitialAdClose: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
},
onInterstitialAdClick: function(t, e) {
null != this.proxy && this.proxy.onInterstitialAdClick(t, e);
}
});
e.exports = n;
cc.ATInterstitialJS || (cc.ATInterstitialJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATInterstitialJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATInterstitial: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3adb122h/VGgJKlIXmsxvCD", "ATInterstitial");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = t("../zgSingleton"), a = t("./ATSDKMgr"), s = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
cc.ATInterstitialJS.proxy = this;
cc.ATInterstitialJS.init();
};
e.prototype.placementID = function(t) {
if (0 == t) {
if (cc.sys.os === cc.sys.OS_IOS) return a.default.topon_inter_placementId;
if (cc.sys.os === cc.sys.OS_ANDROID) return a.default.topon_inter_placementId;
} else {
if (cc.sys.os === cc.sys.OS_IOS) return a.default.topon_fullinter_placementId;
if (cc.sys.os === cc.sys.OS_ANDROID) return a.default.topon_fullinter_placementId;
}
};
return e;
}(r.zgSingleton);
n.default = s;
cc._RF.pop();
}, {
"../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "bac5aDDxNxEn6rH1N8w46KW", "ATJSSDK");
var n = t("./Android/ATAndroidJS"), o = t("./iOS/ATiOSJS"), i = !1, r = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
kATUserLocationUnknown: 0,
kATUserLocationInEU: 1,
kATUserLocationOutOfEU: 2,
PERSONALIZED: 0,
NONPERSONALIZED: 1,
UNKNOWN: 2,
ATSDKListener: {
userLocationCallback: null,
getUserLocationCallback: function(t) {
null != this.userLocationCallback && null != this.userLocationCallback && this.userLocationCallback(t);
}
},
initSDK: function(t, e) {
null != r && null != r ? r.initSDK(t, e) : cc.log("You must run on Android or iOS.");
},
initCustomMap: function(t) {
null != r && null != r ? null != t && null != t && r.initCustomMap(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
},
setPlacementCustomMap: function(t, e) {
null != r && null != r ? null != e && null != e && r.setPlacementCustomMap(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setGDPRLevel: function(t) {
null != r && null != r ? r.setGDPRLevel(t) : cc.log("You must run on Android or iOS.");
},
getGDPRLevel: function() {
if (null != r && null != r) return r.getGDPRLevel();
cc.log("You must run on Android or iOS.");
return this.UNKNOWN;
},
getUserLocation: function(t) {
this.ATSDKListener.userLocationCallback = t;
null != r && null != r ? r.getUserLocation(s) : cc.log("You must run on Android or iOS.");
},
showGDPRAuth: function() {
null != r && null != r ? r.showGDPRAuth() : cc.log("You must run on Android or iOS.");
},
setLogDebug: function(t) {
i = t;
null != r && null != r ? r.setLogDebug(t) : cc.log("You must run on Android or iOS.");
},
printLog: function(t) {
null != t && null != t && i && null != r && (null != r && null != r ? r.printJsLog(t) : cc.log("You must run on Android or iOS."));
}
}, s = "ATJSSDK.ATSDKListener.getUserLocationCallback";
window.ATJSSDK = a;
cc._RF.pop();
}, {
"./Android/ATAndroidJS": "ATAndroidJS",
"./iOS/ATiOSJS": "ATiOSJS"
} ],
ATNativeJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "39725wDOBhDQYIM5/T7cLXZ", "ATNativeJSSDK");
var n = t("./Android/ATAndroidNativeJS"), o = t("./iOS/ATiOSNativeJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
ATNativeListener: {
developerCallback: null,
onNativeAdLoaded: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoaded && null != this.developerCallback.onNativeAdLoaded && this.developerCallback.onNativeAdLoaded(t);
},
onNativeAdLoadFail: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdLoadFail && null != this.developerCallback.onNativeAdLoadFail && this.developerCallback.onNativeAdLoadFail(t, e);
},
onNativeAdShow: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdShow && null != this.developerCallback.onNativeAdShow && this.developerCallback.onNativeAdShow(t, e);
},
onNativeAdClick: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdClick && null != this.developerCallback.onNativeAdClick && this.developerCallback.onNativeAdClick(t, e);
},
onNativeAdVideoStart: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoStart && null != this.developerCallback.onNativeAdVideoStart && this.developerCallback.onNativeAdVideoStart(t);
},
onNativeAdVideoEnd: function(t) {
null != this.developerCallback && null != this.developerCallback.onNativeAdVideoEnd && null != this.developerCallback.onNativeAdVideoEnd && this.developerCallback.onNativeAdVideoEnd(t);
},
onNativeAdCloseButtonTapped: function(t, e) {
null != this.developerCallback && null != this.developerCallback.onNativeAdCloseButtonTapped && null != this.developerCallback.onNativeAdCloseButtonTapped && this.developerCallback.onNativeAdCloseButtonTapped(t, e);
}
},
loadNative: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadNative(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoaded", e[s] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoadFail", 
e[c] = "ATNativeJSSDK.ATNativeListener.onNativeAdCloseButtonTapped", e[l] = "ATNativeJSSDK.ATNativeListener.onNativeAdClick", 
e[u] = "ATNativeJSSDK.ATNativeListener.onNativeAdShow", e[p] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoStart", 
e[d] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoEnd";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATNativeListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
showAd: function(t, e) {
null != i && null != i ? i.showAd(t, JSON.stringify(e.getAdViewProperty())) : cc.log("You must run on Android or iOS.");
},
removeAd: function(t) {
null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
},
createLoadAdSize: function(t, e) {
var n = {};
n.width = t;
n.height = e;
return n;
},
AdViewProperty: cc.Class({
parent: null,
appIcon: null,
mainImage: null,
title: null,
desc: null,
adLogo: null,
cta: null,
rating: null,
createItemViewProperty: function(t, e, n, o, i, r, a) {
var s = {};
s.x = t;
s.y = e;
s.width = n;
s.height = o;
s.backgroundColor = i;
s.textColor = r;
s.textSize = a;
return s;
},
getAdViewProperty: function() {
var t = {};
null != this.parent && (t.parent = this.parent);
null != this.appIcon && (t.icon = this.appIcon);
null != this.mainImage && (t.mainImage = this.mainImage);
null != this.title && (t.title = this.title);
null != this.desc && (t.desc = this.desc);
null != this.adLogo && (t.adLogo = this.adLogo);
null != this.cta && (t.cta = this.cta);
null != this.rating && (t.rating = this.rating);
return t;
}
})
}, a = "NativeLoaded", s = "NativeLoadFail", c = "NativeCloseButtonTapped", l = "NativeClick", u = "NativeShow", p = "NativeVideoStart", d = "NativeVideoEnd";
window.ATNativeJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidNativeJS": "ATAndroidNativeJS",
"./iOS/ATiOSNativeJS": "ATiOSNativeJS"
} ],
ATNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "632566KI5RGZ7SH/rUdPBiO", "ATNativeJS");
t("./AnyThinkAds/ATRewardedVideoJSSDK");
t("./AnyThinkAds/ATJSSDK");
t("./AnyThinkAds/ATInterstitialJSSDK");
t("./AnyThinkAds/ATNativeJSSDK");
var n = cc.Class({
name: "ATNativeJS",
proxy: null,
frameWidth: 0,
frameHeight: 0,
nativeIsShow: !1,
nativeType: 0,
nativeShow: !1,
nativeIsLoad: !1,
nativeIsLoading: !1,
ctor: function() {},
init: function() {
ATNativeJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadNative: function(t, e) {
void 0 === t && (t = 0);
void 0 === e && (e = !1);
this.nativeType = t;
this.nativeShow = e;
this.nativeIsLoading = !0;
var n = cc.view.getFrameSize();
this.frameWidth = n.width;
this.frameHeight = n.height;
var o = this.frameWidth / 750, i = 656 * o, r = 440 * o;
if (2 == this.nativeType) {
this.destroyNative(!1);
i *= .9;
r *= .8;
} else if (3 == this.nativeType) {
this.destroyNative(!1);
i *= .9;
r *= .75;
} else {
i *= .9;
r *= .75;
}
ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(i, r));
},
destroyNative: function(t) {
void 0 === t && (t = !0);
ATNativeJSSDK.removeAd(this.placementID());
this.nativeIsLoad = !1;
this.nativeIsShow = !1;
t && this.loadNative();
},
showNative: function(t) {
if (this.nativeIsLoading) {
this.nativeType = t;
this.nativeShow = !0;
} else if (this.nativeIsLoad) {
if (!this.nativeIsShow) {
this.nativeIsShow = !0;
var e = this.frameWidth / 750, n = 656 * e, o = 440 * e, i = 12, r = new ATNativeJSSDK.AdViewProperty(), a = 0;
if (0 == t) a = .45 * this.frameHeight; else if (1 == t) a = .625 * this.frameHeight; else if (2 == t) {
a = .595 * this.frameHeight;
n *= .9;
o *= .8;
i = 8;
} else if (3 == t) {
a = .69 * this.frameHeight;
n *= .9;
o *= .75;
i = 8;
} else if (4 == t) {
a = .75 * this.frameHeight;
n *= 1.1;
}
var s = .5 * (this.frameWidth - n);
r.parent = r.createItemViewProperty(s, a, n, o, "#ffffff", "", 0);
r.mainImage = r.createItemViewProperty(0, 0, n, o, "#ffffff", "#ffffff", i);
ATNativeJSSDK.showAd(this.placementID(), r);
}
} else this.loadNative(t, !0);
},
onNativeAdLoaded: function() {
this.nativeIsLoad = !0;
this.nativeIsLoading = !1;
if (this.nativeShow) {
this.nativeIsShow = !1;
this.showNative(this.nativeType);
}
},
onNativeAdLoadFail: function() {
this.nativeIsLoading = !1;
this.nativeIsLoad = !1;
},
onNativeAdShow: function(t, e) {
null != this.proxy && this.proxy.onNativeAdShow(t, e);
},
onNativeAdClick: function() {},
onNativeAdVideoStart: function() {},
onNativeAdVideoEnd: function() {},
onNativeAdCloseButtonTapped: function() {}
});
e.exports = n;
cc.ATNativeJS || (cc.ATNativeJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATInterstitialJSSDK": void 0,
"./AnyThinkAds/ATJSSDK": void 0,
"./AnyThinkAds/ATNativeJSSDK": void 0,
"./AnyThinkAds/ATRewardedVideoJSSDK": void 0
} ],
ATNative: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6935cecX45IioFawvWRaxhk", "ATNative");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ATNative = void 0;
var r = t("../zgSingleton"), a = t("./ATSDKMgr"), s = function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.init = function() {
cc.ATNativeJS.proxy = this;
cc.ATNativeJS.init();
this.loadNative();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? a.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? a.default.topon_native_placementId : void 0;
};
e.prototype.loadNative = function(t, e) {
void 0 === t && (t = 0);
void 0 === e && (e = !1);
cc.ATNativeJS.loadNative(t, e);
};
e.prototype.showNative = function(t) {
cc.ATNativeJS.showNative(t);
};
e.prototype.onNativeAdShow = function() {};
e.prototype.destroyNative = function() {
cc.ATNativeJS.destroyNative();
};
e.prototype.getIsNativeShow = function() {
return cc.ATNativeJS.nativeShow;
};
return e;
}(r.zgSingleton);
n.ATNative = s;
cc._RF.pop();
}, {
"../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATRewardVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "7a311dQIK5HyqkCe/o7a1dk", "ATRewardVideoJS");
t("./AnyThinkAds/ATRewardedVideoJSSDK");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATRewardVideoJS",
proxy: null,
ctor: function() {
console.log("ATRewardVideoJS.js created! ");
},
init: function() {
ATRewardedVideoJSSDK.setAdListener(this);
},
placementID: function() {
return this.proxy.placementID();
},
loadAd: function(t, e) {
var n = {};
n[ATRewardedVideoJSSDK.userIdKey] = t;
n[ATRewardedVideoJSSDK.userDataKey] = e;
ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID(), n);
},
showAd: function() {
ATRewardedVideoJSSDK.showAdInScenario(this.placementID(), "");
},
checkReady: function() {
if (null != this.proxy) return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID());
},
onRewardedVideoAdLoaded: function(t) {
null != this.proxy && this.proxy.onRewardedVideoAdLoaded(t);
},
onRewardedVideoAdFailed: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdFailed(t, e);
},
onRewardedVideoAdPlayStart: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdPlayStart(t, e);
},
onRewardedVideoAdPlayEnd: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdPlayEnd(t, e);
},
onRewardedVideoAdPlayFailed: function(t, e, n) {
null != this.proxy && this.proxy.onRewardedVideoAdPlayFailed(t, e, n);
},
onRewardedVideoAdClosed: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdClosed(t, e);
},
onRewardedVideoAdPlayClicked: function(t, e) {
null != this.proxy && this.proxy.onRewardedVideoAdPlayClicked(t, e);
},
onReward: function(t, e) {
null != this.proxy && this.proxy.onReward(t, e);
}
});
e.exports = n;
cc.ATRewardVideoJS || (cc.ATRewardVideoJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATJSSDK": void 0,
"./AnyThinkAds/ATRewardedVideoJSSDK": void 0
} ],
ATRewardVideo: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ee3a8fFEl1HTb/Gl6EilBAf", "ATRewardVideo");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ATRewardVideo = void 0;
var r = t("../zgSingleton"), a = t("./ATSDKMgr"), s = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ifLoadSuccess = !1;
e.ifWatchEnd = !1;
return e;
}
e.prototype.init = function() {
cc.ATRewardVideoJS.proxy = this;
cc.ATRewardVideoJS.init();
this.ifWatchEnd = !1;
this.loadAd();
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? a.default.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? a.default.topon_rewardVideo_placementId : void 0;
};
e.prototype.loadAd = function() {
this.ifLoadSuccess = !1;
cc.ATRewardVideoJS.loadAd("userIdKey", "userDataKey");
};
e.prototype.showAd = function() {
this.ifLoadSuccess = !0;
cc.ATRewardVideoJS.showAd();
};
e.prototype.checkReady = function() {
return cc.ATRewardVideoJS.checkReady();
};
e.prototype.onRewardedVideoAdLoaded = function() {};
e.prototype.onRewardedVideoAdFailed = function() {};
e.prototype.onRewardedVideoAdPlayStart = function() {
this.loadAd();
};
e.prototype.onRewardedVideoAdPlayEnd = function() {
this.ifWatchEnd = !0;
};
e.prototype.onRewardedVideoAdPlayFailed = function() {
a.default.getInstance().watchVideoAdCallBack(a.AdPlayStateType.PlayFail);
};
e.prototype.onRewardedVideoAdClosed = function() {
this.ifWatchEnd ? a.default.getInstance().watchVideoAdCallBack(a.AdPlayStateType.WatchEnd) : a.default.getInstance().watchVideoAdCallBack(a.AdPlayStateType.Cancel);
this.ifWatchEnd = !1;
this.ifLoadSuccess || this.loadAd();
};
e.prototype.onRewardedVideoAdPlayClicked = function() {};
e.prototype.onReward = function() {
this.ifWatchEnd = !0;
};
return e;
}(r.zgSingleton);
n.ATRewardVideo = s;
cc._RF.pop();
}, {
"../zgSingleton": "zgSingleton",
"./ATSDKMgr": "ATSDKMgr"
} ],
ATRewardedVideoJSSDK: [ function(t, e) {
"use strict";
cc._RF.push(e, "8ac0a0yhkxIB7Ga0FkDttBs", "ATRewardedVideoJSSDK");
var n = t("./Android/ATAndroidRewardedVideoJS"), o = t("./iOS/ATiOSRewardedVideoJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
userIdKey: "userID",
userDataKey: "media_ext",
ATRewardedVideoListener: {
developerCallback: null,
onRewardedVideoAdLoaded: function(t) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded(" + t + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdLoaded && null != this.developerCallback.onRewardedVideoAdLoaded && this.developerCallback.onRewardedVideoAdLoaded(t);
},
onRewardedVideoAdFailed: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdFailed && null != this.developerCallback.onRewardedVideoAdFailed && this.developerCallback.onRewardedVideoAdFailed(t, e);
},
onRewardedVideoAdPlayStart: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayStart && null != this.developerCallback.onRewardedVideoAdPlayStart && this.developerCallback.onRewardedVideoAdPlayStart(t, e);
},
onRewardedVideoAdPlayEnd: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayEnd && null != this.developerCallback.onRewardedVideoAdPlayEnd && this.developerCallback.onRewardedVideoAdPlayEnd(t, e);
},
onRewardedVideoAdPlayFailed: function(t, e, n) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed(" + t + ", " + n + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayFailed && null != this.developerCallback.onRewardedVideoAdPlayFailed && this.developerCallback.onRewardedVideoAdPlayFailed(t, e, n);
},
onRewardedVideoAdClosed: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdClosed && null != this.developerCallback.onRewardedVideoAdClosed && this.developerCallback.onRewardedVideoAdClosed(t, e);
},
onRewardedVideoAdPlayClicked: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayClicked && null != this.developerCallback.onRewardedVideoAdPlayClicked && this.developerCallback.onRewardedVideoAdPlayClicked(t, e);
},
onReward: function(t, e) {
ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward(" + t + ", " + e + ")");
null != this.developerCallback && null != this.developerCallback.onReward && null != this.developerCallback.onReward && this.developerCallback.onReward(t, e);
}
},
loadRewardedVideo: function(t, e) {
void 0 === e && (e = {});
null != i && null != i ? i.loadRewardedVideo(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
},
setAdListener: function(t) {
var e = {};
e[a] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded", e[s] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed", 
e[c] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart", 
e[l] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd", 
e[u] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed", 
e[p] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed", e[d] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked", 
e[h] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward";
null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
this.ATRewardedVideoListener.developerCallback = t;
},
hasAdReady: function(t) {
if (null != i && null != i) return i.hasAdReady(t);
cc.log("You must run on Android or iOS.");
return !1;
},
showAd: function(t) {
null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
},
showAdInScenario: function(t, e) {
void 0 === e && (e = "");
null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
}
}, a = "RewardedVideoLoaded", s = "RewardedVideoLoadFail", c = "RewardedVideoPlayStart", l = "RewardedVideoPlayEnd", u = "RewardedVideoPlayFail", p = "RewardedVideoClose", d = "RewardedVideoClick", h = "RewardedVideoReward";
window.ATRewardedVideoJSSDK = r;
cc._RF.pop();
}, {
"./Android/ATAndroidRewardedVideoJS": "ATAndroidRewardedVideoJS",
"./iOS/ATiOSRewardedVideoJS": "ATiOSRewardedVideoJS"
} ],
ATSDKMgrJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f54e6FGCLdB06BaS25A0bWv", "ATSDKMgrJS");
t("./AnyThinkAds/ATJSSDK");
var n = cc.Class({
name: "ATSDKMgrJS",
proxy: null,
ctor: function() {
console.log("ATSDKMgrJS.js created! ");
},
initATJSSDK: function(t, e) {
ATJSSDK.setLogDebug(!1);
ATJSSDK.initCustomMap({
appCustomKey1: "appCustomValue1",
appCustomKey2: "appCustomValue2"
});
ATJSSDK.setPlacementCustomMap(this.placementID(), {
placementCustomKey1: "placementCustomValue1",
placementCustomKey2: "placementCustomValue2"
});
ATJSSDK.getGDPRLevel();
cc.sys.os === cc.sys.OS_IOS ? ATJSSDK.initSDK(t, e) : cc.sys.os === cc.sys.OS_ANDROID && ATJSSDK.initSDK(t, e);
ATJSSDK.getUserLocation(function(t) {
t === ATJSSDK.kATUserLocationInEU && ATJSSDK.getGDPRLevel() === ATJSSDK.UNKNOWN && ATJSSDK.showGDPRAuth();
});
},
placementID: function() {
console.log("this.proxy", this);
console.log("this.proxy", this.proxy);
return this.proxy.placementID();
}
});
e.exports = n;
cc.ATSDKMgrJS || (cc.ATSDKMgrJS = new n());
cc._RF.pop();
}, {
"./AnyThinkAds/ATJSSDK": void 0
} ],
ATSDKMgr: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ae75dW/PnBNZp5nLfdPDYa5", "ATSDKMgr");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AdPlayStateType = void 0;
var a, s = t("../../../../system/JsbSystem"), c = t("../zgSingleton"), l = t("./ATNative"), u = t("./ATRewardVideo"), p = cc._decorator, d = p.ccclass, h = (p.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
n = e;
e.prototype.initSDK = function() {
if (cc.sys.isNative) {
this.getAdvertiseChannel();
cc.ATSDKMgrJS.proxy = this;
cc.ATSDKMgrJS.initATJSSDK(n.topon_android_appId, n.topon_android_appSecret);
u.ATRewardVideo.getInstance().init();
l.ATNative.getInstance().init();
}
};
e.prototype.placementID = function() {
return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? n.topon_rewardVideo_placementId : void 0;
};
e.prototype.getAdvertiseChannel = function() {
var t = s.default.getAdvertisingChannel().split(",");
t[0];
n.topon_android_appId = t[1];
n.topon_android_appSecret = t[2];
n.topon_rewardVideo_placementId = t[3];
n.topon_inter_placementId = t[4];
n.topon_native_placementId = t[5];
t.length >= 7 && t[6] && (n.topon_fullinter_placementId = t[6]);
};
e.prototype.showVideoAd = function() {
u.ATRewardVideo.getInstance().showAd();
};
e.prototype.watchVideoAdCallBack = function(t) {
switch (t) {
case a.WatchEnd:
case a.PlayFail:
case a.Cancel:
}
};
e.prototype.showInterAd = function() {};
e.prototype.loadNativeAd = function(t, e) {
l.ATNative.getInstance().loadNative(t, e);
};
e.prototype.destroyNativeAd = function() {
l.ATNative.getInstance().destroyNative();
};
var n;
e.topon_android_appId = "a5f8fa5f10c661";
e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
e.topon_rewardVideo_placementId = "b5f8fa6673e180";
e.topon_inter_placementId = "b5f8fa77aa5262";
e.topon_native_placementId = "b5f8fa77aa5262";
e.topon_fullinter_placementId = "b5f8fa77aa5262";
e.topon_banner_placementId = "b5f8fa77aa5262";
return n = r([ d ], e);
}(c.zgSingleton));
n.default = h;
(function(t) {
t[t.WatchEnd = 0] = "WatchEnd";
t[t.PlayFail = 1] = "PlayFail";
t[t.Cancel = 2] = "Cancel";
})(a = n.AdPlayStateType || (n.AdPlayStateType = {}));
cc._RF.pop();
}, {
"../../../../system/JsbSystem": "JsbSystem",
"../zgSingleton": "zgSingleton",
"./ATNative": "ATNative",
"./ATRewardVideo": "ATRewardVideo"
} ],
ATiOSBannerJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "47c24W1IvZAuqKINopNo+IW", "ATiOSBannerJS");
var n = t("ATiOSJS"), o = o || {
loadBanner: function(t, e) {
n.printJsLog("ATiOSBannerJS::loadBanner(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "loadBannerWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSBannerJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSBannerJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerReadyForPlacementID:", t);
},
showAdInPosition: function(t, e) {
n.printJsLog("ATiOSBannerJS::showAdInPosition(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:position:", t, e);
},
showAdInRectangle: function(t, e) {
n.printJsLog("ATiOSBannerJS::showAdInRectangle(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:rect:", t, e);
},
removeAd: function(t) {
n.printJsLog("ATiOSBannerJS::removeAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "removeAd:", t);
},
reShowAd: function(t) {
n.printJsLog("ATiOSBannerJS::reShowAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "reShowAd:", t);
},
hideAd: function(t) {
n.printJsLog("ATiOSBannerJS::hideAd(" + t + ")");
jsb.reflection.callStaticMethod("ATBannerAdWrapper", "hideAd:", t);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSInterstitialJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "ddd933gNJFDEICb4s6+4eu5", "ATiOSInterstitialJS");
var n = t("ATiOSJS"), o = "ATInterstitialAdWrapper", i = i || {
loadInterstitial: function(t, e) {
n.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod(o, "loadInterstitialWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSInterstitialJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod(o, "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSInterstitialJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod(o, "interstitialReadyForPlacementID:", t);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(t) {
n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ")");
return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, null);
},
showAdInScenario: function(t, e) {
n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ", " + e + ")");
return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, e);
}
};
e.exports = i;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f0cfbKk/aJOh7Arcces8e2L", "ATiOSJS");
var n = n || {
initSDK: function(t, e) {
this.printJsLog("ATiOSJS::initSDK(" + t + "," + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "startWithAppID:appKey:", t, e);
},
initCustomMap: function(t) {
this.printJsLog("ATiOSJS::initCustomMap(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:", t);
},
setPlacementCustomMap: function(t, e) {
this.printJsLog("ATiOSJS::setPlacementCustomMap(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:forPlacementID:", e, t);
},
setGDPRLevel: function(t) {
this.printJsLog("ATiOSJS::setGDPRLevel(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDataConsent:", t);
},
getGDPRLevel: function() {
this.printJsLog("ATiOSJS::getGDPRLevel()");
return jsb.reflection.callStaticMethod("ATSDKManager", "dataConsent");
},
getUserLocation: function(t) {
this.printJsLog("ATiOSJS::getUserLocation(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "getUserLocationWithCallback:", t);
},
showGDPRAuth: function() {
this.printJsLog("ATiOSJS::showGDPRAuth()");
jsb.reflection.callStaticMethod("ATSDKManager", "presentDataConsentDialog");
},
setLogDebug: function(t) {
this.printJsLog("ATiOSJS::setLogDebug(" + t + ")");
jsb.reflection.callStaticMethod("ATSDKManager", "setDebugLog:", t);
},
printJsLog: function(t) {
null != t && null != t && jsb.reflection.callStaticMethod("ATJSBridge", "log:", t);
}
};
e.exports = n;
cc._RF.pop();
}, {} ],
ATiOSNativeJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "2aa642BjFFKhJ2kRi8CNM1Z", "ATiOSNativeJS");
var n = t("ATiOSJS"), o = o || {
loadNative: function(t, e) {
n.printJsLog("ATiOSBannerJS::loadNative(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "loadNativeWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSNativeJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSNativeJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeReadyForPlacementID:", t);
},
showAd: function(t, e) {
n.printJsLog("ATiOSNativeJS::showAd(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:metrics:", t, e);
},
removeAd: function(t) {
n.printJsLog("ATiOSNativeJS::removeAd(" + t + ")");
jsb.reflection.callStaticMethod("ATNativeAdWrapper", "removeNativeWithPlacementID:", t);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
ATiOSRewardedVideoJS: [ function(t, e) {
"use strict";
cc._RF.push(e, "f7d79fQ7d5M5KoEWeXdUNsV", "ATiOSRewardedVideoJS");
var n = t("ATiOSJS"), o = o || {
loadRewardedVideo: function(t, e) {
n.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + t + ", " + e + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "loadRewardedVideoWithPlacementID:extra:", t, e);
},
setAdListener: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + t + ")");
jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "setDelegates:", t);
},
hasAdReady: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "rewardedVideoReadyForPlacementID:", t);
},
setUserData: function() {
cc.log("Android-setUserData");
},
showAd: function(t) {
n.printJsLog("ATiOSRewardedVideoJS::showAd(" + t + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, null);
},
showAdInScenario: function(t, e) {
n.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + t + ", " + e + ")");
return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, e);
}
};
e.exports = o;
cc._RF.pop();
}, {
ATiOSJS: "ATiOSJS"
} ],
AdData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "751e2dfcNBG6piUAOBYgaGw", "AdData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AdFun = n.AdData = void 0;
var r = function() {
function t() {
this.placementId = "";
this.adunit_format = "";
this.network_type = "";
this.network_placement_id = "";
this.network_firm_id = "";
this.adsource_id = "";
this.adsource_index = "";
this.adsource_price = "";
this.adsource_isheaderbidding = "";
this.publisher_revenue = "";
this.precision = "";
this.ecpm_level = "";
this.adType = 1;
}
t.prototype.init = function() {};
t.prototype.updateVideo = function(t) {
return o(this, void 0, void 0, function() {
var e, n;
return i(this, function(o) {
switch (o.label) {
case 0:
this.ad_subType = t;
e = {
imei: g.appData.machineInfo.imei,
idfa: g.appData.machineInfo.idfa,
oaid: g.appData.machineInfo.oaid,
uin: g.loginData.uin,
version: g.appData.appVersion,
tf_channel: g.appData.tfChannel,
destoon_ad_place: this.placementId,
adunit_format: this.adunit_format,
network_type: this.network_type,
network_placement_id: this.network_placement_id,
network_firm_id: this.network_firm_id,
adsource_id: this.adsource_id,
adsource_index: this.adsource_index,
adsource_price: this.adsource_price,
adsource_isheaderbidding: this.adsource_isheaderbidding,
publisher_revenue: this.publisher_revenue,
precision: this.precision,
ecpm_level: this.ecpm_level,
ad_sbuType: this.ad_subType,
ad_type: 1
};
return [ 4, mk.http.sendData("updateVideo", e) ];

case 1:
if (0 != (n = o.sent()).errcode) return [ 2 ];
this.data = n.data;
return [ 2 ];
}
});
});
};
return t;
}();
n.AdData = r;
(function(t) {
t[t.bubble = 1] = "bubble";
t[t.checkpoint = 2] = "checkpoint";
t[t.settlement = 3] = "settlement";
t[t.turntable = 4] = "turntable";
t[t.sign = 5] = "sign";
t[t.bigCash = 6] = "bigCash";
})(n.AdFun || (n.AdFun = {}));
cc._RF.pop();
}, {} ],
AdSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1466aRVSRRPbZv+MJLJVOZg", "AdSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t(t) {
this.adSdk = null;
this.ifShowAd = !1;
this.videoAdcallBack = null;
this.adSdk = t;
this.init();
}
t.prototype.init = function() {
this.adSdk.initSDK();
};
t.prototype.watchAd = function(t) {
this.videoAdcallBack = t;
this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideoAd() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
};
t.prototype.watchAdFail = function() {
this.videoAdcallBack(!1);
};
t.prototype.watchAdCancel = function() {
this.videoAdcallBack(!1);
};
t.prototype.wacthAdSuccess = function(t) {
void 0 === t && (t = "");
this.videoAdcallBack(!0);
};
t.prototype.showNativeAd = function(t, e) {
void 0 === t && (t = 0);
void 0 === e && (e = !0);
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.loadNativeAd(t, e) : (cc.sys.os, 
cc.sys.OS_IOS));
};
t.prototype.destroyNativeAd = function() {
cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNativeAd() : (cc.sys.os, 
cc.sys.OS_IOS));
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
AppData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "e27c7/NPlhBwKw/xsEzZINE", "AppData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.AppData = void 0;
var o = function() {
function t() {
this.appNameBugly = "3xiao";
this.appVersion = "";
this.tfChannel = "";
this.version = "1.0.0";
this.appId = "wx17e502b5f230fd9a";
this.mac = "c9:65:e2:1c:b0:23,f6:60:e4:1a:b7:27";
this.machineInfo = {
android_id: "",
idfa: "",
imei: "",
mac: "",
oaid: "",
umid: ""
};
}
t.prototype.init = function() {};
return t;
}();
n.AppData = o;
cc._RF.pop();
}, {} ],
AudioManager: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "23fb49P+89BR4lApOFB9Q88", "AudioManager");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = function() {
function t() {
this._switchMusic = !0;
this._switchEffect = !0;
this._effectVolume = 1;
this._musicVolume = 1;
this._switchTempEffect = !0;
this._map_audio = new Map();
}
t.prototype.init = function() {
var t = cc.sys.localStorage.getItem("switchEffect");
t && (this._switchEffect = "true" == t);
var e = cc.sys.localStorage.getItem("switchMusic");
e && (this._switchMusic = "true" == e);
this._switchMusic && this.playMusic("bgm", !0);
};
t.prototype.playMusic = function(t, e) {
void 0 === e && (e = !0);
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
return (n = this._map_audio.get(t)) ? [ 3, 2 ] : [ 4, mk.loader.load(s + t, cc.AudioClip) ];

case 1:
n = o.sent();
this._map_audio.set(t, n);
o.label = 2;

case 2:
mk.audio.playMusic(n, e);
return [ 2 ];
}
});
});
};
t.prototype.playEffect = function(t, e) {
void 0 === e && (e = !1);
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
return this._switchEffect && this._switchTempEffect ? (n = this._map_audio.get(t)) ? [ 3, 2 ] : [ 4, mk.loader.load(s + t, cc.AudioClip) ] : [ 3, 3 ];

case 1:
n = o.sent();
this._map_audio.set(t, n);
o.label = 2;

case 2:
mk.audio.playEffect(n, e);
o.label = 3;

case 3:
return [ 2 ];
}
});
});
};
t.prototype.stopEffect = function(t) {
mk.audio.stopEffect(t);
};
t.prototype.switchEffectFunc = function() {
this._switchEffect = !this._switchEffect;
this._switchEffect || this.setStopAllEffect();
cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
};
t.prototype.getSwitchEffect = function() {
return this._switchEffect;
};
t.prototype.setEffectVolume = function(t) {
this._effectVolume = t;
mk.audio.setEffectVolume(t);
cc.sys.localStorage.setItem("audio", JSON.stringify({
effect: this._effectVolume,
music: this._musicVolume
}));
};
t.prototype.getEffectVolume = function() {
return mk.audio.getEffectVolume();
};
t.prototype.setResumeAllEffect = function() {
this._switchEffect && mk.audio.resumeAllEffects();
};
t.prototype.setStopAllEffect = function() {
mk.audio.stopAllEffects();
};
t.prototype.setTempEffect = function(t) {
this._switchTempEffect = t;
};
t.prototype.switchMusicFunc = function() {
this._switchMusic = !this._switchMusic;
this._switchMusic ? this.playMusic("bgm") : this.stopMusic();
cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
};
t.prototype.getSwitchMusic = function() {
return this._switchMusic;
};
t.prototype.setPauseMusic = function() {
mk.audio.pauseMusic();
};
t.prototype.setResumeMusic = function() {
this._switchMusic && mk.audio.resumeMusic();
};
t.prototype.stopMusic = function() {
mk.audio.stopMusic();
};
t.prototype.setMusicVolume = function(t) {
this._musicVolume = t;
mk.audio.setMusicVolume(t);
cc.sys.localStorage.setItem("audio", JSON.stringify({
effect: this._effectVolume,
music: this._musicVolume
}));
};
t.prototype.getMusicVolume = function() {
return mk.audio.getMusicVolume();
};
t.prototype.isMusicPlaying = function() {
return mk.audio.isMusicPlaying();
};
t.prototype.releaseAudio = function(t) {
t ? mk.audio.releaseAudio(t) : cc.error("【音频】资源" + t + "不存在， 释放失败");
};
t.prototype.stopAllAudio = function() {
mk.audio.stopAllAudio();
};
t.prototype.releaseAllAudio = function() {
mk.audio.releaseAllAudio();
};
return t;
}();
n.default = r;
var a, s = "music/";
(function(t) {
t.bgm = "Background_music1";
t.button = "Button_click";
t.turntableDraw = "turntable1";
t.turntableDrawEnd = "turntable_2";
t.getGold = "Get_gold";
})(a || (a = {}));
cc._RF.pop();
}, {} ],
AudioSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "1506cfo4+5AkoPMoX86fAUd", "AudioSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.playMusic = function(t, e) {
void 0 === e && (e = !1);
return cc.audioEngine.playMusic(t, e);
};
t.prototype.playEffect = function(t, e) {
void 0 === e && (e = !1);
return cc.audioEngine.playEffect(t, e);
};
t.prototype.stopEffect = function(t) {
cc.audioEngine.stopEffect(t);
};
t.prototype.setEffectVolume = function(t) {
cc.audioEngine.setEffectsVolume(t);
};
t.prototype.getEffectVolume = function() {
return cc.audioEngine.getEffectsVolume();
};
t.prototype.stopAllEffects = function() {
cc.audioEngine.stopAllEffects();
};
t.prototype.pauseMusic = function() {
cc.audioEngine.pauseMusic();
};
t.prototype.resumeAllEffects = function() {
cc.audioEngine.resumeAllEffects();
};
t.prototype.resumeMusic = function() {
cc.audioEngine.resumeMusic();
};
t.prototype.stopMusic = function() {
cc.audioEngine.stopMusic();
};
t.prototype.setMusicVolume = function(t) {
cc.audioEngine.setMusicVolume(t);
};
t.prototype.getMusicVolume = function() {
return cc.audioEngine.getMusicVolume();
};
t.prototype.isMusicPlaying = function() {
return cc.audioEngine.isMusicPlaying();
};
t.prototype.releaseAudio = function(t) {
t ? cc.audioEngine.uncache(t) : cc.error("【音频】资源" + t + "不存在， 释放失败");
};
t.prototype.stopAllAudio = function() {
cc.audioEngine.stopAll();
};
t.prototype.releaseAllAudio = function() {
cc.audioEngine.uncacheAll();
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
BtnClosePanel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "cdc50kCRVVBa5gcp4XXxVO+", "BtnClosePanel");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = cc._decorator, l = c.ccclass, u = c.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_panel = null;
e.onComplete = [];
return e;
}
e.prototype.onLoad = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
};
e.prototype.start = function() {
this.node.on("click", this.closePanel, this);
};
e.prototype.closePanel = function() {
return a(this, void 0, void 0, function() {
var t, e;
return s(this, function() {
this.node_panel && mk.ui.closePanel(this.node_panel.name);
t = this.onComplete.length;
for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
return [ 2 ];
});
});
};
r([ u({
displayName: "关闭界面",
tooltip: "",
type: cc.Node
}) ], e.prototype, "node_panel", void 0);
r([ u({
displayName: "完成回调",
tooltip: "面板打开完成后触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
BtnOpenPanel: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b8d2cnq+GZLFK30xbLDqr/m", "BtnOpenPanel");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = cc._decorator, l = c.ccclass, u = c.property, p = t("../../mk/system/UISystem"), d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.panel_name = "";
e.open_type = p.OpenActionType.normal;
e.panel_type = p.PanelType.module;
e.onComplete = [];
return e;
}
e.prototype.onLoad = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
};
e.prototype.start = function() {
this.node.on("click", this.openPanel, this);
};
e.prototype.openPanel = function() {
return a(this, void 0, void 0, function() {
var t, e;
return s(this, function(n) {
switch (n.label) {
case 0:
return [ 4, mk.ui.openPanel(this.panel_name, this.panel_type, this.open_type) ];

case 1:
n.sent();
t = this.onComplete.length;
for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
return [ 2 ];
}
});
});
};
r([ u({
displayName: "界面名字",
tooltip: "对应路径：resources/prefab/uiPanel/"
}) ], e.prototype, "panel_name", void 0);
r([ u({
displayName: "打开类型",
tooltip: "normal不操作，closeOther关闭其他，closeLast关闭上一个",
type: cc.Enum(p.OpenActionType)
}) ], e.prototype, "open_type", void 0);
r([ u({
displayName: "面板类型",
tooltip: "game游戏界面，module模块界面",
type: cc.Enum(p.PanelType)
}) ], e.prototype, "panel_type", void 0);
r([ u({
displayName: "完成回调",
tooltip: "面板打开完成后触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
return r([ l ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {
"../../mk/system/UISystem": "UISystem"
} ],
BuglySDK: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5e14aAR8aVDF4pkk/9JmRhW", "BuglySDK");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.initELKHandler();
}
t.prototype.initBugly = function() {};
t.prototype.initELKHandler = function() {
if (cc.sys.isNative) {
var e;
window.__errorHandler && (e = window.__errorHandler);
window.__errorHandler = function() {
for (var n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o];
console.log("游戏报错,原生系统");
t.handleError.apply(t, n);
e && e.apply(void 0, n);
};
}
};
t.handleError = function() {
for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
for (var o = "", i = 0; i < e.length; i++) if ("string" == typeof e[i] && e[i].length > 20) o += e[i] + "\n"; else if (e[i] instanceof Array) for (var r = 0; r < e[i].length; r++) o += e[i][r];
-1 != o.indexOf("TypeError") && (o = o.slice(o.indexOf("TypeError") + "TypeError".length + 2));
for (var a = [ 0, "", "", "", "[]@" ], s = a[0], c = a[1], l = a[2], u = a[3], p = a[4]; s < o.length; ) {
u = o.charAt(s);
if (-1 != p.indexOf(u)) {
if ("" == c) c = u; else if ("[" == c && "]" == u || "@" == c && "]" == u) {
c = "";
l += " | ";
}
} else "" == c && (l += u);
s++;
}
l.length > 120 && (l = l.slice(0, 120));
var d = new Date().getTime();
if (!(-1 != t.lastSendErrors.indexOf(l) && d - t.lastSendErrorTime < 3e4)) {
t.lastSendErrors.push(l);
t.lastSendErrorTime = d;
t.lastSendErrors.length > 5 && (t.lastSendErrors = t.lastSendErrors.slice(t.lastSendErrors.length - 5));
var h = g.httpData.serverType + ":" + g.loginData.uin, f = {
level: "error",
game: g.appData.appNameBugly + ":" + h,
message: l
}, y = new XMLHttpRequest();
y.responseType = "text";
var _ = "https://elktest.duiweize.com/api/logs/record";
y.open("POST", _);
y.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
y.onerror = function(t) {
console.log("handleError.onError:", t);
};
var v = JSON.stringify(f);
v = mk.encrypt.rsaEncrypt(v);
y.send(v);
}
};
t.lastSendErrorTime = new Date().getTime();
t.lastSendErrors = [];
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
Button: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c7d0chvBRhPlY0rJFlDFnON", "Button");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_normal = null;
e.node_pressed = null;
e.node_disabled = null;
e.onClick = [];
return e;
}
e.prototype.onLoad = function() {
this.touchEnd();
};
e.prototype.start = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.on("click", this.click, this);
};
e.prototype.touchStart = function() {
this.node_normal.active = !1;
this.node_pressed.active = !0;
this.node_disabled.active = !1;
};
e.prototype.touchEnd = function() {
this.node_normal.active = !0;
this.node_pressed.active = !1;
this.node_disabled.active = !1;
};
e.prototype.click = function() {
for (var t = this.onClick.length, e = 0; e < t; e++) this.onClick[e].handler && this.onClick[e].emit([]);
};
e.prototype.onDestroy = function() {
this.node.off(cc.Node.EventType.TOUCH_START, this.touchStart, this);
this.node.off(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.off("click", this.click, this);
this.onClick = [];
};
r([ c({
type: cc.Node,
displayName: "正常"
}) ], e.prototype, "node_normal", void 0);
r([ c({
type: cc.Node,
displayName: "按下"
}) ], e.prototype, "node_pressed", void 0);
r([ c({
type: cc.Node,
displayName: "禁用"
}) ], e.prototype, "node_disabled", void 0);
r([ c({
displayName: "点击函数",
type: cc.Component.EventHandler
}) ], e.prototype, "onClick", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
CashNormalData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "5b3e0XDURtBuIGcg//6aDQU", "CashNormalData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CashNormalData = void 0;
n.CashNormalData = function() {};
cc._RF.pop();
}, {} ],
CashPigData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6dd05FLpy1EvLk2V3PwPYId", "CashPigData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.CashPigData = void 0;
n.CashPigData = function() {};
cc._RF.pop();
}, {} ],
ClickMoveBy: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b4358yRD11LPLNtDbsZ2TsK", "ClickMoveBy");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a, s = cc._decorator, c = s.ccclass, l = s.property;
(function(t) {
t[t.out = 0] = "out";
t[t.moving = 1] = "moving";
t[t.back = 2] = "back";
})(a || (a = {}));
var u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.vec_move = cc.Vec2.ZERO;
e.state = a.out;
e.is_back = !1;
return e;
}
e.prototype.onLoad = function() {
this.node.on("click", this.StartMoveBy, this);
};
e.prototype.start = function() {
this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
};
e.prototype.StartMoveBy = function() {
var t = this;
if (this.state !== a.moving) {
var e = 0, n = cc.Vec2.ZERO;
if (this.state === a.out) {
n = this.vec_move;
e = a.back;
} else if (this.state === a.back) {
n.x = -this.vec_move.x;
n.y = -this.vec_move.y;
e = a.out;
}
this.state = a.moving;
var o = cc.tween().by(.5, {
position: {
value: n,
easing: "backOut"
}
}), i = cc.tween().call(function() {
t.state = e;
});
cc.tween(this.node).then(o).then(i).start();
}
};
r([ l({
tooltip: "要移动的距离"
}) ], e.prototype, "vec_move", void 0);
return r([ c ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {} ],
DataSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ee2e153hZxNt7jVksyo3b8q", "DataSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.default = function() {};
cc._RF.pop();
}, {} ],
Data: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d713eV0hrtAOLYRFa34h1Rf", "Data");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Data = void 0;
n.Data = function() {};
cc._RF.pop();
}, {} ],
EncryptUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4dd7c+x4MRMUpC9k5xzhEUq", "EncryptUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EncryptUtil = void 0;
var o = t("./encrypt/hmacSha256"), i = t("./encrypt/aes.js"), r = function() {
function t() {
this.options = {
default_key_size: 2048,
default_public_exponent: new Uint8Array([ 1, 0, 1 ])
};
}
t.prototype.randomString = function(t) {
void 0 === t && (t = 32);
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnoprstuvwxyz123456789", n = e.length, o = "", i = 0; i < t; i++) o += e.charAt(Math.floor(Math.random() * n));
return o;
};
t.prototype.encrypt = function(t, e, n, r) {
void 0 === r && (r = !0);
var a = e.substr(0, 16), s = "";
s = r ? a + t + n : a + t + "\r\n" + n;
var c = i.enc.Utf8.parse(e), l = i.enc.Utf8.parse(a);
s = i.enc.Utf8.parse(s);
var u = i.AES.encrypt(s, c, {
iv: l,
mode: i.mode.CBC,
padding: i.pad.Pkcs7
});
u = u.toString();
var p = o.hmacSha256.Instance.hex_hmac_sha256(e, u);
return i.enc.Base64.stringify(i.enc.Utf8.parse(a + u + p));
};
t.prototype.decrypt = function(t, e, n, o) {
void 0 === o && (o = !0);
var r = i.enc.Base64.parse(t).toString(i.enc.Utf8).substr(16), a = r.substr(0, r.length - 64), s = i.enc.Utf8.parse(e), c = i.enc.Utf8.parse(e.substr(0, 16)), l = i.AES.decrypt(a, s, {
iv: c,
mode: i.mode.CBC,
padding: i.pad.Pkcs7
}), u = i.enc.Utf8.stringify(l);
u = u.toString();
return o ? u.slice(16).replace(new RegExp("(.*)" + n), "$1") : u.slice(16).split("\r\n")[0];
};
t.prototype.rsaEncrypt = function(t, e) {
void 0 === e && (e = !1);
var n = new window.JSEncrypt(this.options);
n.setPublicKey("-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuwz5V8wt525dMS+A9wOd\nNAjvKgxdyoXYuZSlAJEXLhvJlaXwFCKEsUg/qBBeo4nrRnwaFAjG7ItqbCWR9Ozv\n6oY5tMYQnFFK82XkMGbKm1gG0z9vYKhcNYgHZHi+QKAw4tLLWXWO/QBTGelEXptD\nazlNmdM+8wHOknTcMuIyjc9Yo5qCoNsCJpA465vnREiBezBbKB3rSw+LmrRcZcFk\ns8hmGtjpabcQ8sCxco7mRzVh6/DomNWfNm7hUP6shrrJirwjQtaS51grlScj8KhN\nh+kBoiI4Ad0Xz0GHasK5hAMf3sXDsN61r0An8KTfa/nsYSJDwogPIKkeKAsmw9Df\nEQIDAQAB\n-----END PUBLIC KEY-----");
return e ? n.encryptLong(t) : n.encrypt(t);
};
t.prototype.pack = function(t) {
var e = new ArrayBuffer(4);
new DataView(e).setUint32(0, t);
return this.ab2str(e);
};
t.prototype.utf8ArrayToStr = function(t) {
var e, n, o, i, r, a;
e = "";
o = t.length;
n = 0;
for (;n < o; ) switch ((i = t[n++]) >> 4) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
e += String.fromCharCode(i);
break;

case 12:
case 13:
r = t[n++];
e += String.fromCharCode((31 & i) << 6 | 63 & r);
break;

case 14:
r = t[n++];
a = t[n++];
e += String.fromCharCode((15 & i) << 12 | (63 & r) << 6 | (63 & a) << 0);
}
return e;
};
t.prototype.utf16ToUtf8 = function(t) {
if (t) {
var e, n, o = [], i = t.length;
for (e = 0; e < i; e++) (n = t.charCodeAt(e)) > 0 && n <= 127 ? o.push(t.charAt(e)) : n >= 128 && n <= 2047 ? o.push(String.fromCharCode(192 | n >> 6 & 31), String.fromCharCode(128 | 63 & n)) : n >= 2048 && n <= 65535 && o.push(String.fromCharCode(224 | n >> 12 & 15), String.fromCharCode(128 | n >> 6 & 63), String.fromCharCode(128 | 63 & n));
return o.join("");
}
};
t.prototype.utf8ToUtf16 = function(t) {
if (t) {
var e, n, o, i = [], r = t.length;
for (e = 0; e < r; e++) {
(n = []).push(t.charCodeAt(e));
if (0 == (n[0] >> 7 & 255)) i.push(t.charAt(e)); else if (6 == (n[0] >> 5 & 255)) {
n.push(t.charCodeAt(++e));
(o = []).push(31 & n[0]);
o.push(63 & n[1]);
i.push(String.fromCharCode(o[0] << 6 | o[1]));
} else if (14 == (n[0] >> 4 & 255)) {
n.push(t.charCodeAt(++e));
n.push(t.charCodeAt(++e));
(o = []).push(n[0] << 4 | n[1] >> 2 & 15);
o.push((3 & n[1]) << 6 | 63 & n[2]);
i.push(String.fromCharCode(o[0] << 8 | o[1]));
}
}
return i.join("");
}
};
t.prototype.ab2str = function(t) {
return String.fromCharCode.apply(null, new Uint8Array(t));
};
t.prototype.uint8ArrayToString = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t[n]);
return e;
};
t.prototype.stringToUint8Array = function(t) {
for (var e = [], n = 0, o = t.length; n < o; ++n) e.push(t.charCodeAt(n));
return new Uint8Array(e);
};
t.prototype.str2ab = function(t) {
for (var e = new ArrayBuffer(t.length), n = new Uint8Array(e), o = 0, i = t.length; o < i; o++) n[o] = t.charCodeAt(o);
return e;
};
return t;
}();
n.EncryptUtil = r;
cc._RF.pop();
}, {
"./encrypt/aes.js": "aes",
"./encrypt/hmacSha256": "hmacSha256"
} ],
EnumData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "26866MzsRBBQoTrG/t06zF4", "EnumData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.EnumData = void 0;
n.EnumData = function() {
this.rewardState = {
none: 1,
lock: 2,
unlock: 3
};
};
cc._RF.pop();
}, {} ],
EventSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "aab27lcX9pAz5SQ16UkErbh", "EventSystem");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, s = r.length; a < s; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {
this.listeners = {};
}
t.prototype.register = function(t, e, n) {
this.listeners[t] || (this.listeners[t] = []);
for (var o = this.listeners[t], i = o.length, a = 0; a < i; a++) if (o[a].compare(n)) {
console.warn("[EventMgr]重复添加监听,请检查事件:", t);
return;
}
this.listeners[t].push(new r(e, n));
};
t.prototype.remove = function(t, e, n) {
var o = this.listeners[t];
if (o) {
for (var i = o.length, r = 0; r < i; r++) if (o[r].compare(n)) {
o.splice(r, 1);
break;
}
0 == o.length && delete this.listeners[t];
}
};
t.prototype.emit = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
var i = this.listeners[t];
if (i) {
for (var r = i.concat(), a = r.length, s = 0; s < a; s++) {
var c = r[s];
c.notify.apply(c, o(e, [ t ]));
}
r = null;
}
};
return t;
}();
n.default = i;
var r = function() {
function t(t, e) {
this.callback = null;
this.target = null;
this.callback = t;
this.target = e;
}
t.prototype.notify = function() {
for (var t, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
var i = this;
(t = i.callback).call.apply(t, o([ i.target ], e));
};
t.prototype.compare = function(t) {
return t == this.target;
};
return t;
}();
cc._RF.pop();
}, {} ],
FileUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "169f6jrZC1DK61LjHa0l1kK", "FileUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o, i = function() {
function t() {}
t.prototype.openLocalFile = function(t, e) {
var n = document.getElementById("file_input");
if (!n) {
(n = document.createElement("input")).id = "file_input";
n.setAttribute("id", "file_input");
n.setAttribute("type", "file");
n.setAttribute("class", "fileToUpload");
n.style.opacity = "0";
n.style.position = "absolute";
n.setAttribute("left", "-999px");
document.body.appendChild(n);
}
t = t || ".*";
n.setAttribute("accept", t);
n.onchange = function() {
var t = n.files;
if (t && t.length > 0) {
var o = t[0];
e && e(o);
}
};
n.click();
};
t.prototype.readLocalFile = function(t, e, n) {
var i = new FileReader();
i.onload = function() {
n && (i.readyState == FileReader.DONE ? n(i.result) : n(null));
};
switch (e) {
case o.DATA_URL:
i.readAsDataURL(t);
break;

case o.TEXT:
i.readAsText(t);
break;

case o.BINARY:
i.readAsBinaryString(t);
break;

case o.ARRAYBUFFER:
i.readAsArrayBuffer(t);
}
};
t.prototype.saveForBrowser = function(t, e) {
if (cc.sys.isBrowser) {
console.log("浏览器");
var n = new Blob([ e ], {
type: "application/json"
}), o = document.createElement("a");
o.download = t;
o.innerHTML = "Download File";
if (null != window.webkitURL) o.href = window.webkitURL.createObjectURL(n); else {
o.href = window.URL.createObjectURL(n);
o.style.display = "none";
document.body.appendChild(o);
}
o.click();
}
};
return t;
}();
n.default = i;
(function(t) {
t[t.DATA_URL = 0] = "DATA_URL";
t[t.TEXT = 1] = "TEXT";
t[t.BINARY = 2] = "BINARY";
t[t.ARRAYBUFFER = 3] = "ARRAYBUFFER";
})(o || (o = {}));
cc._RF.pop();
}, {} ],
FissionData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "38c620VyHFONacULG888Cay", "FissionData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.FissionData = void 0;
n.FissionData = function() {};
cc._RF.pop();
}, {} ],
FlyNode: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fa881XikspIl7sX7YCTSOCC", "FlyNode");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.start_move_time = .1;
e.end_move_time = .3;
e.item_count = 10;
e.fly_data = {
node_p: null,
item_count: e.item_count,
item_scale: [ .3, 1 ],
item_sf: null,
start_pos: cc.Vec2.ZERO,
end_pos: cc.Vec2.ZERO,
complete_call: null
};
e.node_fly = null;
e.arr_item = [];
return e;
}
e.prototype.onLoad = function() {
this.node.on("ui-fly-node", this.getNodeProgress, this);
};
e.prototype.getNodeProgress = function(t) {
t.node_p && (this.fly_data.node_p = t.node_p);
t.item_count && (this.fly_data.item_count = t.item_count);
t.item_scale && (this.fly_data.item_scale = t.item_scale);
t.item_sf && (this.fly_data.item_sf = t.item_sf);
t.start_pos && (this.fly_data.start_pos = t.start_pos);
t.end_pos && (this.fly_data.end_pos = t.end_pos);
t.complete_call && (this.fly_data.complete_call = t.complete_call);
var e = this.fly_data.node_p, n = this.fly_data.item_count, o = this.fly_data.item_scale, i = this.fly_data.item_sf, r = this.fly_data.start_pos;
if (!this.node_fly) {
this.node_fly = new cc.Node("node_fly");
this.node_fly.parent = e;
}
for (var a = 0; a < n; a++) {
var s = this.arr_item.shift();
if (!s || s && s.parent) {
s = new cc.Node("node_item");
this.arr_item.push(s);
}
s.stopAllActions();
s.parent = this.node_fly;
s.setPosition(r);
s.angle = this.Range(-45, 45, !0);
var c = this.Range(o[0], o[1], !1);
s.scale = c;
var l = cc.v2(this.Range(-1, 1, !1), this.Range(-1, 1, !1));
l = l.normalize();
var u = cc.v2(this.Range(10, 80, !1) * l.x, this.Range(10, 80, !1) * l.y), p = r.add(u);
Range;
(s.getComponent(cc.Sprite) || s.addComponent(cc.Sprite)).spriteFrame = i;
this.movePos(s, p);
}
};
e.prototype.movePos = function(t, e) {
var n = this, o = this.Range(.3, 1, !1), i = cc.tween().to(o, {
position: new cc.Vec2(e)
}, {
easing: "sineOut"
}), r = cc.tween().delay(1.5 * this.start_move_time), a = cc.tween().to(this.end_move_time, {
position: this.fly_data.end_pos
}, {
easing: "sineOut"
}), s = cc.tween().to(this.end_move_time, {
scale: 1
}), c = cc.tween().to(this.end_move_time, {
angle: 0
}), l = cc.tween().parallel(a, s, c), u = cc.tween().call(function() {
n.fly_data.complete_call && n.fly_data.complete_call();
n.fly_data.complete_call = null;
n.arr_item.push(t);
t.removeFromParent();
});
cc.tween(t).then(i).then(r).then(l).then(u).start();
};
e.prototype.Range = function(t, e, n) {
void 0 === n && (n = !0);
var o = e - t;
if (o > 0) {
var i = t + 16777215 * Math.random() % o;
return n ? Math.floor(i) : i;
}
return t;
};
e.prototype.onDestroy = function() {
for (var t = this.arr_item.length, e = 0; e < t; e++) if (cc.isValid(this.arr_item[0])) {
this.arr_item[0].destroy();
this.arr_item.shift();
}
};
r([ c({
displayName: "起始阶段消耗时间"
}) ], e.prototype, "start_move_time", void 0);
r([ c({
displayName: "结束阶段消耗时间"
}) ], e.prototype, "end_move_time", void 0);
r([ c({
displayName: "item默认数量"
}) ], e.prototype, "item_count", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
FrameAnimation: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "efc323JaDlLPYgh9HsZn0PL", "FrameAnimation");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.images = [];
e.frameTime = .1;
e.playTimes = 0;
e.reverse = !1;
e.autoPlayOnLoad = !0;
e.autoDestroy = !1;
e.onFrameCall = new cc.Component.EventHandler();
e.onCompleteCall = new cc.Component.EventHandler();
e._edit_play = !1;
e.edit_playing = !1;
e.frameNum = 0;
e.frameIndex = 0;
e.nextFrameIndex = 0;
e.running = !0;
e.time = 0;
e.currentTimes = 0;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
this.running = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {
this.comp_spr = this.getComponent(cc.Sprite);
};
e.prototype.start = function() {
0 != this.images.length && (this.frameNum = this.images.length);
if (this.reverse) {
this.frameIndex = this.frameNum - 1;
this.nextFrameIndex = this.frameNum - 1;
}
this.running = this.autoPlayOnLoad;
};
e.prototype.update = function(t) {
if (this.running && 0 != this.images.length) if (0 != this.playTimes && this.currentTimes > this.playTimes) this.running = !1; else {
this.time -= t;
if (this.time <= 0) {
this.time = this.frameTime;
if (this.reverse) {
this.frameIndex = (this.nextFrameIndex + this.frameNum) % this.frameNum;
this.nextFrameIndex = this.frameIndex - 1;
} else {
this.frameIndex = this.nextFrameIndex % this.frameNum;
this.nextFrameIndex = this.frameIndex + 1;
}
this.playing();
0 == this.frameIndex && this.playEnd();
}
}
};
e.prototype.playing = function() {
this.comp_spr.spriteFrame = this.images[this.frameIndex];
if (this.comp_spr.spriteFrame) {
var t = this.comp_spr.spriteFrame.getRect();
this.node.width = t.width;
this.node.height = t.height;
}
this.onFrameCall.emit([]);
null != this.frameCallback && this.frameCallback(this.frameIndex);
};
e.prototype.playEnd = function() {
this.currentTimes++;
this.node.emit("completeTimes", this.currentTimes);
null != this.completeTimesCallback && this.completeTimesCallback(this.currentTimes);
if (0 != this.playTimes && this.currentTimes > this.playTimes) {
this.node.emit("complete");
this.onCompleteCall.emit([]);
null != this.completeCallback && this.completeCallback();
this.autoDestroy && this.node.destroy();
this._edit_play = !1;
this.edit_playing = !1;
}
};
e.prototype.play = function(t, e) {
void 0 === t && (t = null);
void 0 === e && (e = null);
this.frameCallback = t;
this.completeCallback = e;
this.running = !0;
this.frameIndex = 0;
this.currentTimes = 0;
this.time = this.frameTime;
if (0 != this.images.length) {
this.frameNum = this.images.length;
if (this.reverse) {
this.frameIndex = this.frameNum - 1;
this.nextFrameIndex = this.frameNum - 1;
}
}
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.comp_spr && (this.comp_spr.spriteFrame = this.images[0]);
if (this.comp_spr.spriteFrame) {
var n = this.comp_spr.spriteFrame.getRect();
this.node.width = n.width;
this.node.height = n.height;
}
};
e.prototype.gotoAndPlay = function(t) {
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.running = !0;
this.frameIndex = t;
this.nextFrameIndex = t;
this.currentTimes = 0;
};
e.prototype.stop = function() {
this.running = !1;
};
e.prototype.gotoAndStop = function(t) {
this.frameIndex = t;
this.frameIndex < 0 && (this.frameIndex = 0);
this.frameIndex > this.images.length - 1 && (this.frameIndex = this.images.length - 1);
this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
this.comp_spr.spriteFrame = this.images[this.frameIndex];
if (this.comp_spr.spriteFrame) {
var e = this.comp_spr.spriteFrame.getRect();
this.node.width = e.width;
this.node.height = e.height;
}
this.running = !1;
};
e.prototype.isPlayEnd = function() {
return this.frameIndex == this.frameNum;
};
r([ c({
displayName: "精灵纹理",
type: cc.SpriteFrame
}) ], e.prototype, "images", void 0);
r([ c({
displayName: "每帧间隔"
}) ], e.prototype, "frameTime", void 0);
r([ c({
displayName: "播放次数"
}) ], e.prototype, "playTimes", void 0);
r([ c({
displayName: "是否倒播",
tooltip: "勾选，倒着播放，不钩，顺序播放"
}) ], e.prototype, "reverse", void 0);
r([ c({
displayName: "自动播放"
}) ], e.prototype, "autoPlayOnLoad", void 0);
r([ c({
displayName: "自动销毁",
tooltip: "播完自动销毁"
}) ], e.prototype, "autoDestroy", void 0);
r([ c({
displayName: "每帧回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onFrameCall", void 0);
r([ c({
displayName: "结束回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onCompleteCall", void 0);
r([ c({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ s, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
FunBtns: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3bf10Wxox5IQLcQoa17hGCb", "FunBtns");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.btn1 = null;
e.btn2 = null;
e.btn3 = null;
e.btn4 = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.init = function() {
for (var t = [ 1, 1, 0, 1 ], e = 0; e < t.length; e++) 0 == t[e] && (this["btn" + (e + 1)].active = 1 == t[e]);
};
r([ c({
type: cc.Node,
displayName: "存钱罐"
}) ], e.prototype, "btn1", void 0);
r([ c({
type: cc.Node,
displayName: "转盘"
}) ], e.prototype, "btn2", void 0);
r([ c({
type: cc.Node,
displayName: "签到"
}) ], e.prototype, "btn3", void 0);
r([ c({
type: cc.Node,
displayName: "提现"
}) ], e.prototype, "btn4", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
GameData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0d160Vl85tFfpeQsIi4Jddb", "GameData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.GameProp = n.GameData = void 0;
var r, a = function() {
function t() {
this.dataFinish = !1;
this.savePropFinish = !1;
this.savePropsFinish = !1;
this.getPropsFnish = !1;
this.configs = {};
}
t.prototype.init = function() {
return o(this, void 0, void 0, function() {
var t, e;
return i(this, function(n) {
switch (n.label) {
case 0:
t = {
versionCode: g.appData.version
};
return [ 4, mk.http.sendData("getAllConfigInfo", t) ];

case 1:
if (0 != (e = n.sent()).errcode) return [ 2 ];
this.configs = e.data;
t = {};
return [ 4, mk.http.sendData("getInfoCrypt", t) ];

case 2:
if (0 != (e = n.sent()).errcode) return [ 2 ];
null == this.props && (this.props = new Map());
this.initProps(e.data.gameUserData);
this.dataFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.setProp = function(t, e) {
return o(this, void 0, void 0, function() {
var n;
return i(this, function(o) {
switch (o.label) {
case 0:
n = {
key: t + "",
value: e + ""
};
return [ 4, mk.http.sendData("savePlayerProp", n) ];

case 1:
o.sent();
this.props.set(t, e);
this.savePropFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.setProps = function(t) {
return o(this, void 0, void 0, function() {
var e, n, o;
return i(this, function(i) {
switch (i.label) {
case 0:
e = {};
for (o = 0; o < t.length; o++) e[t[o].key + ""] = t[o].value + "";
n = {
needProp: e
};
return [ 4, mk.http.sendData("saveAllPlayerProp", n) ];

case 1:
i.sent();
for (o = 0; o < t.length; o++) this.props.set(t[o].key, t[o].value);
this.savePropsFinish = !0;
return [ 2 ];
}
});
});
};
t.prototype.getProp = function(t) {
return null == this.props ? null : this.props.get(t);
};
t.prototype.getAllProps = function() {
return o(this, void 0, void 0, function() {
var t;
return i(this, function(e) {
switch (e.label) {
case 0:
return [ 4, mk.http.sendData("getAllPlayerProp", {}) ];

case 1:
if (0 != (t = e.sent()).errcode) return [ 2 ];
this.initProps(t.data);
this.getPropsFnish = !0;
return [ 2 ];
}
});
});
};
t.prototype.initProps = function(t) {
for (var e in t) this.props.set(parseInt(e), JSON.parse(t[e]));
};
t.prototype.resetProps = function() {
var t = [];
t.push({
key: r.sign_can,
value: 1
});
this.setProps(t);
};
return t;
}();
n.GameData = a;
(function(t) {
t[t.turnable_leftTimes = 20] = "turnable_leftTimes";
t[t.sign_last_bar = 120] = "sign_last_bar";
t[t.sign_can = 121] = "sign_can";
})(r = n.GameProp || (n.GameProp = {}));
cc._RF.pop();
}, {} ],
GameUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "784499zQZlE5LGQ/AOAWZqR", "GameUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.getWinSize = function() {
return cc.winSize;
};
t.prototype.enablePhysics = function() {
cc.director.getPhysicsManager().enabled = !0;
};
t.prototype.debugDrawPhysicsFlag = function(t) {
void 0 === t && (t = !1);
cc.director.getPhysicsManager().debugDrawFlags = t ? cc.PhysicsManager.DrawBits.e_aabbBit | cc.PhysicsManager.DrawBits.e_jointBit | cc.PhysicsManager.DrawBits.e_shapeBit : 0;
};
t.getWorldPos = function(t) {
for (var e = t.x, n = t.y, o = t; o.parent; ) {
var i = o.parent;
if ("Canvas" == i.name) break;
e += i.x;
n += i.y;
o = i;
}
return new cc.Vec2(e, n);
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
Game: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "8760dQYasROwLaLe1idTS07", "Game");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("./FunBtns"), s = cc._decorator, c = s.ccclass, l = s.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_game = null;
e.node_btn = null;
return e;
}
e.prototype.onLoad = function() {
mk.ui.closePanel("login");
};
e.prototype.start = function() {
this.initBtns();
};
e.prototype.initBtns = function() {
this.node_btn.getComponent(a.default).init();
};
e.prototype.update = function() {};
r([ l({
type: cc.Node,
displayName: "游戏核心"
}) ], e.prototype, "node_game", void 0);
r([ l({
type: cc.Node,
displayName: "功能按钮"
}) ], e.prototype, "node_btn", void 0);
return r([ c ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"./FunBtns": "FunBtns"
} ],
GuideSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.default = function() {};
cc._RF.pop();
}, {} ],
HelpData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "aaac0t3/iZIuY4huYMhWUJL", "HelpData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.HelpData = void 0;
var o = function() {
function t() {
this.init_desc_name = "";
}
t.prototype.getDescContent = function() {
return "唧唧歪歪唧唧歪歪";
};
return t;
}();
n.HelpData = o;
cc._RF.pop();
}, {} ],
Help: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7626bHemEpG267E801XmW+W", "Help");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_desc = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.update = function() {
if (g.help.init_desc_name) {
this.initDesc();
g.help.init_desc_name = "";
}
};
e.prototype.initDesc = function() {
this.lbl_desc.string = g.help.getDescContent(g.help.init_desc_name);
};
r([ c({
type: cc.Label,
displayName: "文字说明"
}) ], e.prototype, "lbl_desc", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
HttpData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f4687XIHE1PXpP56AhrXtMn", "HttpData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.ServerUrl = n.HttpData = void 0;
var o, i = function() {
function t() {
this.serverType = 0;
}
t.prototype.getServerUrl = function() {
switch (this.serverType) {
case 0:
return o.test;

case 1:
return o.formal;

case 2:
return o.liyang;

case 3:
return o.hanguo;
}
return o.formal;
};
return t;
}();
n.HttpData = i;
(function(t) {
t.test = "https://tafang-test.duiweize.com/";
t.formal = "";
t.liyang = "http://172.16.15.231:9092/";
t.hanguo = "http://172.16.15.167:9092/";
})(o = n.ServerUrl || (n.ServerUrl = {}));
cc._RF.pop();
}, {} ],
HttpSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "fe015tjuNVJ1rKouaAn8VvC", "HttpSystem");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var r = function() {
function t() {}
t.prototype.sendData = function(t, e, n) {
void 0 === n && (n = !0);
return o(this, void 0, void 0, function() {
var o, r, a;
return i(this, function(i) {
switch (i.label) {
case 0:
e.timestamp = Math.floor(new Date().getTime() / 1e3);
e.appVersion = g.appData.appVersion;
e.tfChannel = g.appData.tfChannel;
e.versioncfg = g.appData.version;
o = mk.encrypt.encrypt(JSON.stringify(e), g.loginData.sessionKey, g.appData.appId);
r = {
uin: g.loginData.uin,
encrypt: o
};
return [ 4, this.sendRequest(t, "POST", JSON.stringify(r), !1, n) ];

case 1:
a = i.sent();
return [ 2, this.checkData(a) ];
}
});
});
};
t.prototype.sendRequest = function(t, e, n, o, i) {
void 0 === e && (e = "POST");
void 0 === n && (n = null);
void 0 === o && (o = !0);
void 0 === i && (i = !0);
t = g.httpData.getServerUrl() + t;
return new Promise(function(r, a) {
var s = 0, c = new XMLHttpRequest(), l = function() {
c.open(e, t, i);
c.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
o && null != n && (n = mk.encrypt.rsaEncrypt(n));
c.send(n);
};
c.onreadystatechange = function() {
if (4 === c.readyState) if (200 === c.status) {
var e = c.responseText, n = JSON.parse(e);
mk.console.log("httpResponse", t, n);
r(n);
} else {
mk.console.error("httpRequest.status", c.status);
a({
errcode: 1,
errmsg: "status..." + c.status
});
}
};
c.ontimeout = function() {
if (++s >= 3) {
mk.console.error("http.ontimeout", t);
a({
errcode: 1,
errmsg: "ontimeout"
});
} else l();
};
c.onerror = function() {
mk.console.error("http.onerror", t);
a({
errcode: 1,
errmsg: "onerror"
});
};
l();
});
};
t.prototype.checkData = function(t, e) {
void 0 === e && (e = !1);
var n = null;
if (e) n = t.data; else if (t.encrypt) {
n = mk.encrypt.decrypt(t.encrypt, g.loginData.sessionKey, g.appData.appId);
n = JSON.parse(n);
} else t.data && (n = t.data);
t.data = n;
return t;
};
return t;
}();
n.default = r;
cc._RF.pop();
}, {} ],
JsbSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "144031h5xRBsa+umFGEHyuG", "JsbSystem");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, s = r.length; a < s; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var i = function() {
function t() {}
t.isFileExit = function(t) {
return jsb.fileUtils.isFileExist(t);
};
t.getWritablePath = function() {
return jsb.fileUtils.getWritablePath();
};
t.callStaticMethod = function(t, e, n) {
for (var i, r = [], a = 3; a < arguments.length; a++) r[a - 3] = arguments[a];
(i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], r));
};
t.backTest = function() {};
t.updateDeviceInfo = function() {
cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
};
t.getDeviceInfo = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "");
};
t.getPackageName = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getPackageName", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getPackageName", ""));
return t;
};
t.getWxAppId = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getWXAppId", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getWXAppId", ""));
return t;
};
t.getAdvertisingChannel = function() {
var t = "";
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAdvertisingChannel", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "AdvertisingChannel", ""));
return t;
};
t.setClipboard = function(t) {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setClipboard", "(Ljava/lang/String;)V", t) : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.requestPermission = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "requestPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "requestPermission", "");
};
t.getAppVersion = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getAppVersion", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "getAppVersion", "");
};
t.setAppVersion = function() {
cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
};
t.installApk = function(t) {
var e = this.getWritablePath() + t;
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "installApk", "(Ljava/lang/String;)V", e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("GameConfig", "installApk:", "");
};
t.ifCanStartGame = function(t, e) {
var n = !1;
cc.sys.os == cc.sys.OS_ANDROID ? n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e) : cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
return n;
};
t.setTAEventRegister = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventRegister", "()V") : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.sendEvent = function(t, e) {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "sendEvent", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : (cc.sys.os, 
cc.sys.OS_IOS);
};
t.WxAuth = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WxAuth", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t.onGetAccessCode = function() {};
t.OpenMiniGame = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "OpenMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t.ShareToMiniGame = function() {
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "ShareToMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
};
t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thridSdk/ThirdSdkMgr";
t._JSB_IOS_PATH = "ThirdSdkMgr";
return t;
}();
n.default = i;
window.JsbMgr = i;
cc._RF.pop();
}, {} ],
LoadResUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "027abfHullEcrlQpxOvHVc5", "LoadResUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.preload = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preload(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.load = function(t, e) {
return new Promise(function(n, o) {
cc.resources.load(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.preloadDir = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preloadDir(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.loadDir = function(t, e) {
return new Promise(function(n, o) {
cc.resources.loadDir(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.loadRemote = function(t, e) {
return new Promise(function(n, o) {
cc.assetManager.loadRemote(t, e, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t.prototype.preloadScene = function(t, e) {
return new Promise(function(n, o) {
cc.resources.preloadScene(t, e, function() {}, function(t) {
void 0 === t && (t = null);
t ? o(t) : n();
});
});
};
t.prototype.loadScene = function(t, e) {
return new Promise(function(n, o) {
cc.resources.loadScene(t, e, function() {}, function(t, e) {
void 0 === t && (t = null);
t ? o(t) : n(e);
});
});
};
t._logTag = "[LoadResUtil]";
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
LogUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a2461HsfJZEfZb/Xlwzf0Nx", "LogUtil");
var o = this && this.__spreadArrays || function() {
for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
var o = Array(t), i = 0;
for (e = 0; e < n; e++) for (var r = arguments[e], a = 0, s = r.length; a < s; a++, 
i++) o[i] = r[a];
return o;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LogTagColor = void 0;
var i, r = function() {
function t() {
this.ifShowLog = !0;
this._tagChar = "...";
this._frontChar = "    ";
this._keyValueChar = " = ";
}
t.prototype.log = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.log.apply(console, o([ "%c " + r, "color: " + i.skyblue ], e));
}
};
t.prototype.warn = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.warn.apply(console, o([ "%c " + r, "color: " + i.orange ], e));
}
};
t.prototype.error = function(t) {
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
if (this.ifShowLog) {
var r = t + this._tagChar;
console.warn.apply(console, o([ "%c " + r, "color: " + i.red ], e));
}
};
t.prototype.logSingle = function(t, e, n) {
void 0 === n && (n = 0);
if (this.ifShowLog && null != e && null != e) if ("number" == typeof e || "string" == typeof e || "boolean" == typeof e) this.log("" + this.getFrontStr(n) + t, e); else for (var o = Object.keys(e), i = 0, r = o; i < r.length; i++) {
var a = r[i];
if (e.hasOwnProperty(a)) {
var s = o.indexOf(a);
if ("object" == typeof e[a]) {
this.log("" + this.getFrontStr(n), a, ": ");
this.logSingle(t, e[a], n + 1);
} else n || 0 !== s ? this.log("" + this.getFrontStr(n), a, this._keyValueChar, e[a]) : this.log("" + this.getFrontStr(n) + t + "\n", a, this._keyValueChar, e[a]);
}
}
};
t.prototype.getMessage = function() {
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
for (var n = "", o = 0; o < t.length; o++) {
for (var i = t[o], r = "", a = 0; a < i.length; a++) {
var s = i[a];
r += s;
}
n += r;
}
return n;
};
t.prototype.getFrontStr = function(t) {
var e = "";
if (t > 0) {
for (var n = 0; n < t; n++) e += this._frontChar;
return e;
}
return e;
};
return t;
}();
n.default = r;
(function(t) {
t.red = "red;font-weight:bold";
t.white = "white;font-weight:bold";
t.yellow = "yellow;font-weight:bold";
t.green = "green;font-weight:bold";
t.bule = "blue;font-weight:bold";
t.skyblue = "#3DB2EF;font-weight:bold";
t.orange = "orange;font-weight:bold";
t.black = "black;font-weight:bold";
})(i = n.LogTagColor || (n.LogTagColor = {}));
cc._RF.pop();
}, {} ],
LoginData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7d48aywt1tPXI2eRhRzXwYP", "LoginData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LoginData = void 0;
var r = t("./StorageData"), a = function() {
function t() {
this.loadResCompelete = !1;
this.isLogin = !1;
this.sessionKey = "";
this.uin = "";
this.tempUin = "";
this.loginTicket = "";
}
t.prototype.loadLocalRes = function() {
this.loadResCompelete = !0;
};
t.prototype.login = function() {
return o(this, void 0, void 0, function() {
var t, e, n, o, a;
return i(this, function(i) {
switch (i.label) {
case 0:
this.isLogin = !0;
g.appData.init();
g.adData.init();
if ("" != this.sessionKey && "" != this.uin) {
this.getAccountInfo();
return [ 2 ];
}
t = mk.encrypt.randomString();
e = {
mac: g.appData.mac,
psk: t,
appId: g.appData.appId
};
return [ 4, mk.http.sendRequest("connectTest", "POST", JSON.stringify(e)) ];

case 1:
if (0 != (n = i.sent()).errcode) return [ 2 ];
e = mk.encrypt.decrypt(n.encrypt, t, g.appData.appId);
this.tempUin = JSON.parse(e).tmp_uin;
if (null != g.wechatData.code) {
o = mk.encrypt.encrypt(JSON.stringify({
code: g.wechatData.code
}), this.sessionKey, g.appData.appId);
e = {
uin: this.uin,
encrypt: o
};
} else {
o = mk.encrypt.encrypt(JSON.stringify({
code: g.wechatData.code
}), t, g.appData.appId);
e = {
uin: this.tempUin,
encrypt: o
};
}
return [ 4, mk.http.sendRequest("wxlogin", "POST", JSON.stringify(e), !1, !1) ];

case 2:
if (0 != (n = i.sent()).errcode) return [ 2 ];
e = null != g.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, g.appData.appId) : mk.encrypt.decrypt(n.encrypt, t, g.appData.appId);
e = JSON.parse(e);
this.loginTicket = e.login_ticket;
mk.storage.setStorage(r.StorageKey.loginTicket, this.loginTicket);
if (null == mk.storage.getStorage("isFirstIn")) {
this.isFirstIn = !0;
mk.storage.setStorage(r.StorageKey.isFirstIn, 1);
}
if (this.uin != e.uin) {
this.uin = e.uin;
this.isNew = !1;
} else this.isNew = !0;
mk.storage.setStorage("uin", this.uin);
a = "";
a = null != g.wechatData.code ? this.sessionKey : mk.encrypt.randomString();
e = {
tmp_key: a,
uin: this.uin,
login_ticket: this.loginTicket,
appId: g.appData.appId
};
return [ 4, mk.http.sendRequest("checklogin", "POST", JSON.stringify(e)) ];

case 3:
if (0 != (n = i.sent()).errcode) return [ 2 ];
e = null != g.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, g.appData.appId) : mk.encrypt.decrypt(n.encrypt, a, g.appData.appId);
e = JSON.parse(e);
this.sessionKey = e.session_key;
mk.storage.setStorage("sessionKey", this.sessionKey);
if (null != g.wechatData.code) if (this.isNew) this.getAccountInfo(); else {
this.isNew = !1;
g.wechatData.code = null;
this.reload();
} else this.getAccountInfo();
return [ 2 ];
}
});
});
};
t.prototype.getAccountInfo = function() {
return o(this, void 0, void 0, function() {
var t, e, n, o;
return i(this, function(i) {
switch (i.label) {
case 0:
if (!(t = mk.storage.getStorage(r.StorageKey.nickname))) return [ 3, 1 ];
g.wechatData.nickName = t;
return [ 3, 3 ];

case 1:
e = {
uin: this.uin,
login_ticket: this.loginTicket
};
n = {
uin: this.uin,
encrypt: mk.encrypt.encrypt(JSON.stringify(e), this.sessionKey, g.appData.appId)
};
return [ 4, mk.http.sendRequest("user", "POST", JSON.stringify(n), !1, !1) ];

case 2:
if (0 != (o = i.sent()).errcode) return [ 2 ];
o = mk.http.checkData(o, !0);
n = o.data;
this.isAuth = n.is_auth;
if (this.isAuth) {
g.wechatData.nickName = n.nickname;
g.wechatData.avatar = n.headimgurl;
mk.storage.setStorage(r.StorageKey.isAuth, 1);
mk.storage.setStorage(r.StorageKey.nickname, g.wechatData.nickName, !1);
mk.storage.setStorage(r.StorageKey.avatar, g.wechatData.avatar, !1);
}
i.label = 3;

case 3:
g.gameData.init();
return [ 2 ];
}
});
});
};
t.prototype.reload = function() {};
return t;
}();
n.LoginData = a;
cc._RF.pop();
}, {
"./StorageData": "StorageData"
} ],
Login: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6dba2tWf41JpYkegatfLoGC", "Login");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("../../../../mk/system/UISystem"), s = cc._decorator, c = s.ccclass, l = (s.property, 
function(t) {
i(e, t);
function e() {
return null !== t && t.apply(this, arguments) || this;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.update = function() {
g.loginData.loadResCompelete ? g.loginData.isLogin ? g.gameData.dataFinish && mk.ui.openPanel("game", a.PanelType.game) : g.loginData.login() : g.loginData.loadLocalRes();
};
return r([ c ], e);
}(cc.Component));
n.default = l;
cc._RF.pop();
}, {
"../../../../mk/system/UISystem": "UISystem"
} ],
LuckyBagData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "6247f01bKdOHrvgt46z5qpP", "LuckyBagData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LuckyBagData = void 0;
n.LuckyBagData = function() {};
cc._RF.pop();
}, {} ],
MKSwitch: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a0fd9gYXhZMJ46ArqYj2wBy", "MKSwitch");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.ifShowAd = !1;
return e;
}
r([ c({
displayName: "是否显示广告",
tooltip: "",
serializable: !0
}) ], e.prototype, "ifShowAd", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
MKSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), r = t("../utils/TimeUtil"), a = t("./AudioSystem"), s = t("./DataSystem"), c = t("./HttpSystem"), l = t("../utils/LoadResUtil"), u = t("../utils/LogUtil"), p = t("../utils/EncryptUtil"), d = t("../utils/GameUtil"), h = t("../utils/StorageUtil"), f = t("./TimerSystem"), y = t("./EventSystem"), _ = t("../utils/MathUtil"), g = t("./AdSystem"), v = t("./JsbSystem"), m = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), A = function() {
function t() {
this.init();
}
t.prototype.init = function() {
this.time = new r.default();
this.file = new i.default();
this.encrypt = new p.EncryptUtil();
this.console = new u.default();
this.game = new d.default();
this.loader = new l.default();
this.storage = new h.default();
this.math = new _.default();
this.bugly = new o.default();
this.data = new s.default();
this.http = new c.default();
this.audio = new a.default();
this.ad = new g.default(m.default.getInstance());
this.jsb = new v.default();
this.timer = new f.default();
this.event = new y.default();
};
return t;
}();
window.mk = new A();
cc._RF.pop();
}, {
"../sdk/BuglySDK": "BuglySDK",
"../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr": "ATSDKMgr",
"../utils/EncryptUtil": "EncryptUtil",
"../utils/FileUtil": "FileUtil",
"../utils/GameUtil": "GameUtil",
"../utils/LoadResUtil": "LoadResUtil",
"../utils/LogUtil": "LogUtil",
"../utils/MathUtil": "MathUtil",
"../utils/StorageUtil": "StorageUtil",
"../utils/TimeUtil": "TimeUtil",
"./AdSystem": "AdSystem",
"./AudioSystem": "AudioSystem",
"./DataSystem": "DataSystem",
"./EventSystem": "EventSystem",
"./HttpSystem": "HttpSystem",
"./JsbSystem": "JsbSystem",
"./TimerSystem": "TimerSystem"
} ],
Main: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ca47c5VYotGv4F867baLZGr", "Main");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("./mk/system/UISystem"), s = cc._decorator, c = s.ccclass, l = s.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.mainfestUrl = null;
return e;
}
e.prototype.start = function() {
console.log("init");
mk.ui.openPanel("login", a.PanelType.module);
};
r([ l({
type: cc.Asset
}) ], e.prototype, "mainfestUrl", void 0);
return r([ c ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"./mk/system/UISystem": "UISystem"
} ],
MathUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2e942sG6JJJpaWgvlGJiuOO", "MathUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.numUnit = {
4: "万",
8: "亿",
12: "兆",
16: "万兆",
20: "亿兆",
24: "兆兆",
28: "万兆兆",
32: "亿兆兆",
36: "兆兆兆"
};
}
t.prototype.dis = function(t, e, n, o) {
return Math.sqrt(Math.pow(t - n, 2) + Math.pow(e - o, 2));
};
t.prototype.random = function(t, e, n) {
void 0 === n && (n = !0);
return n ? Math.floor(Math.random() * (e - t + 1) + t) : Math.random() * (e - t) + t;
};
t.prototype.addition = function(t, e) {
for (var n = "", o = 0, i = t.split(".")[0].split(""), r = e.split(".")[0].split(""); i.length || r.length || o; ) {
n = (o += ~~i.pop() + ~~r.pop()) % 10 + n;
o = o > 9;
}
return n.replace(/^0+/, "");
};
t.prototype.subtraction = function(t, e) {
t = t.split(".")[0].split("");
e = e.split(".")[0].split("");
var n = t.length > e.length;
if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
n = t[o] > e[o];
break;
}
n || (t = [ e, e = t ][0]);
for (var r = ""; t.length; ) {
var a = parseInt(t.pop()) - parseInt(e.pop() || 0);
if (a >= 0) r = a + r; else {
r = a + 10 + r;
t[t.length - 1]--;
}
}
"-" == (r = (n ? "" : "-") + r.replace(/^0*/g, "")) && (r = "0");
return r;
};
t.prototype.contrastNumber = function(t, e) {
t = t.split(".")[0].split("");
e = e.split(".")[0].split("");
var n = t.length > e.length;
if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
n = t[o] > e[o];
break;
}
n || (t = [ e, e = t ][0]);
for (var r = ""; t.length; ) {
var a = parseInt(t.pop()) - parseInt(e.pop() || 0);
if (a >= 0) r = a + r; else {
r = a + 10 + r;
t[t.length - 1]--;
}
}
return t === e || Boolean(n);
};
t.prototype.accMuls = function(t, e) {
var n = t.split("").reverse(), o = e.split("").reverse(), i = n.length, r = o.length, a = Array(i + r + 1).join("0").split("");
n.map(function(t, e) {
o.map(function(n, o) {
a[e + o] = +a[e + o] + t * n;
});
});
a.map(function(t, e) {
if (t >= 10) {
a[e + 1] = ~~a[e + 1] + ~~(a[e] / 10);
a[e] %= 10;
}
});
return a.reverse().join("").replace(/^0+/, "");
};
t.prototype.accMul = function(t, e) {
var n = 0, o = t.toString(), i = e.toString();
try {
n += o.split(".")[1].length;
} catch (t) {}
try {
n += i.split(".")[1].length;
} catch (t) {}
var r = this.accMuls(o.replace(".", ""), i.replace(".", ""));
return this.accDiv(r, Math.pow(10, n).toString());
};
t.prototype.toNonExponential = function(t) {
return t.toLocaleString().replace(/[,]/g, "");
};
t.prototype.accDiv = function(t, e) {
var n, o, i = 0, r = 0, a = 0;
try {
i = t.toString().split(".")[1].length;
} catch (t) {}
try {
r = e.toString().split(".")[1].length;
} catch (t) {}
n = Number(t.toString().replace(".", ""));
if (0 == (o = Number(e.toString().replace(".", "")))) return "0";
var s = String(n / o);
try {
a = s.toString().split(".")[1].length;
} catch (t) {}
var c = r - i - a;
if (c < 0) {
s = s.replace(".", "");
for (;s.length <= Math.abs(c); ) s = "0" + s;
var l = s.substring(0, s.length + c), u = s.substring(s.length + c, s.length);
s = l + "." + u;
return this.toNonExponential(Number(s));
}
if (c > 0) {
s = s.replace(".", "");
for (;s.length <= Math.abs(c); ) s += "0";
return this.toNonExponential(Number(s));
}
return this.toNonExponential(Number(s.replace(".", "")));
};
t.prototype.format = function(t, e) {
void 0 === e && (e = !0);
var n, o = t.split(".")[0];
for (var i in this.numUnit) {
var r = Number(i);
if (o.length - 1 >= r) if (e) {
var a = o.slice(o.length - r, o.length - r + 1);
n = Number(a) >= 1 ? o.slice(0, o.length - r) + "." + a + this.numUnit[r] : o.slice(0, o.length - r) + this.numUnit[r];
} else n = o.slice(0, o.length - r) + this.numUnit[r];
}
return n || o;
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
PageView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "bf07comJ2RKTIq+nuMXZ4/m", "PageView");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = (a.property, function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.comp_page_view = null;
e.arr_node_item = [];
return e;
}
e.prototype.onLoad = function() {
this.comp_page_view = this.node.getComponent(cc.PageView);
this.node.on("ui-init", this.init, this);
this.node.on("ui-clearItem", this.clearItem, this);
this.node.on("ui-backCurPage", this.backCurPage, this);
};
e.prototype.start = function() {};
e.prototype.init = function(t, e, n) {
void 0 === n && (n = 0);
var o = t.length;
if (o) {
for (s = 0; s < o; s++) {
var i = this.arr_node_item[s];
if (!i) {
i = cc.instantiate(e);
this.arr_node_item.push(i);
}
this.comp_page_view.addPage(i);
i.getComponent(i.name).setItemData(t[s]);
}
this.comp_page_view.setCurrentPageIndex(n);
var r = this.arr_node_item.length;
if (o > r) for (s = o; s < r; s++) {
this.comp_page_view.removePageAtIndex(s);
this.arr_node_item.splice(s, 1);
}
} else for (var a = this.arr_node_item.length, s = 0; s < a; s++) {
this.comp_page_view.removePageAtIndex(s);
this.arr_node_item.splice(s, 1);
}
};
e.prototype.backCurPage = function() {
var t = this.comp_page_view.getCurrentPageIndex();
this.comp_page_view.setCurrentPageIndex(t);
};
e.prototype.clearItem = function(t) {
void 0 === t && (t = !1);
};
return r([ s ], e);
}(cc.Component));
n.default = c;
cc._RF.pop();
}, {} ],
PigBankData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b959eKbqF5NcI74STkMo2lM", "PigBankData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PigBankData = void 0;
var o = function() {
function t() {
this.init_data = !0;
this._cash_enable = !0;
this._cur_cash_count = .36;
this.cash_min_limit = .3;
}
Object.defineProperty(t.prototype, "cash_enable", {
get: function() {
return this._cash_enable;
},
set: function(t) {
if (this._cash_enable != t) {
this._cash_enable = t;
this.init_data = !0;
}
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "cur_cash_count", {
get: function() {
return this._cur_cash_count;
},
set: function(t) {
if (this._cur_cash_count != t) {
this._cur_cash_count = t;
this.init_data = !0;
}
},
enumerable: !1,
configurable: !0
});
t.prototype.cashOP = function() {
this.cash_enable = !1;
};
return t;
}();
n.PigBankData = o;
cc._RF.pop();
}, {} ],
PigBank: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b7b79eT6/VPr5yd7mCH4hR7", "PigBank");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = cc._decorator, l = c.ccclass, u = c.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.lbl_get_desc = null;
e.lbl_deposit = null;
e.node_tip_anim = null;
e.anim_btn_cash = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.initCashDesc();
};
e.prototype.update = function() {
if (g.pigbank.init_data) {
g.pigbank.init_data = !1;
this.initCashDesc();
}
};
e.prototype.initCashDesc = function() {
if (g.pigbank.cash_enable) {
this.lbl_get_desc.string = "直接提现";
this.node_tip_anim.active = !1;
this.anim_btn_cash.play();
} else {
g.pigbank.cur_cash_count >= g.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + g.pigbank.cash_min_limit + "元可提";
this.node_tip_anim.active = !0;
this.anim_btn_cash.stop();
this.anim_btn_cash.node.scale = 1;
}
this.initDeposit();
};
e.prototype.initDeposit = function() {
var t = g.pigbank.cur_cash_count.toFixed(2);
this.lbl_deposit.string = t + "元";
};
e.prototype.clickCashOP = function() {
g.pigbank.cashOP();
mk.ui.closePanel(this.node.name);
};
e.prototype.clickOpenHelpCall = function() {
return a(this, void 0, void 0, function() {
return s(this, function() {
g.help.init_desc_name = this.node.name;
return [ 2 ];
});
});
};
r([ u({
type: cc.Label,
displayName: "按钮描述"
}) ], e.prototype, "lbl_get_desc", void 0);
r([ u({
type: cc.Label,
displayName: "存款数量"
}) ], e.prototype, "lbl_deposit", void 0);
r([ u({
type: cc.Node,
displayName: "提示动画"
}) ], e.prototype, "node_tip_anim", void 0);
r([ u({
type: cc.Animation,
displayName: "提现动画"
}) ], e.prototype, "anim_btn_cash", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
PushData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c05b7aPhFJMQ4K7me7B6h6k", "PushData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PushData = void 0;
n.PushData = function() {};
cc._RF.pop();
}, {} ],
RopeSwung: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "93753AIt45HwoqU8o6Vee0w", "RopeSwung");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.angle = 15;
e.time = 1;
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
this._edit_play && !this.edit_playing && this.initShakeSlow();
this.edit_playing = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
t || this.stop();
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.initShakeSlow();
};
e.prototype.initShakeSlow = function() {
var t = this.node, e = cc.tween().to(this.time, {
angle: {
value: this.angle,
easing: "sineOut"
}
}), n = cc.tween().to(this.time, {
angle: {
value: 0,
easing: "sineIn"
}
}), o = cc.tween().to(this.time, {
angle: {
value: -this.angle,
easing: "sineOut"
}
}), i = cc.tween().to(this.time, {
angle: {
value: 0,
easing: "sineIn"
}
}), r = cc.tween().sequence(e, n, o, i);
cc.tween(t).then(r).repeatForever().start();
};
e.prototype.stop = function() {
this.node.stopAllActions();
};
r([ c({
displayName: "摆动角度"
}) ], e.prototype, "angle", void 0);
r([ c({
displayName: "摆动时间",
tooltip: "摆动1/4距离消耗的时间"
}) ], e.prototype, "time", void 0);
r([ c({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ s, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
RotateAround: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "74eaeUz5/xGSZ3xJR1/kJQo", "RotateAround");
var o, i, r = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), a = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Axis = void 0;
(function(t) {
t[t.positiveX = 0] = "positiveX";
t[t.positiveY = 1] = "positiveY";
t[t.negativeX = 2] = "negativeX";
t[t.negativeY = 3] = "negativeY";
})(i = n.Axis || (n.Axis = {}));
var s = cc._decorator, c = s.ccclass, l = s.property, u = s.executeInEditMode, p = s.playOnFocus, d = function(t) {
r(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.target = null;
e.clockwise = !0;
e.timePerRound = 10;
e.faceToTarget = !1;
e.faceAxis = i.negativeY;
e.auto_start = !1;
e._edit_play = !1;
e.angle = 0;
e.radius = 0;
e.isRotating = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
this._edit_play && !this.radius && this.run();
this.isRotating = this._edit_play;
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.start = function() {
this.auto_start && this.run();
};
e.prototype.update = function(t) {
if (this.isRotating && this.target) {
var e = Math.PI / 180 * this.angle;
this.node.x = this.target.x + this.radius * Math.cos(e);
this.node.y = this.target.y + this.radius * Math.sin(e);
if (this.faceToTarget) switch (this.faceAxis) {
case i.positiveX:
this.node.angle = this.angle + 180;
break;

case i.positiveY:
this.node.angle = this.angle + 90;
break;

case i.negativeX:
this.node.angle = this.angle;
break;

case i.negativeY:
this.node.angle = this.angle - 90;
}
var n = t * (360 / this.timePerRound);
this.clockwise ? this.angle -= n : this.angle += n;
this.angle >= 360 ? this.angle %= 360 : this.angle <= -360 && (this.angle %= -360);
}
};
e.prototype.run = function(t, e, n, o, i) {
t && (this.target = t);
e && (this.clockwise = e);
n && (this.timePerRound = n);
o && (this.faceToTarget = o);
i && (this.faceAxis = i);
if (!this.target) return cc.log("No target!");
if (!this.isRotating) {
this.angle = this.getAngle(this.target.getPosition(), this.node.getPosition());
this.radius = this.getDistance(this.target.getPosition(), this.node.getPosition());
this.isRotating = !0;
}
};
e.prototype.stop = function() {
this.isRotating = !1;
};
e.prototype.getAngle = function(t, e) {
return Math.atan((e.y - t.y) / (e.x - t.x));
};
e.prototype.getDistance = function(t, e) {
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
};
a([ l({
type: cc.Node,
tooltip: "围绕旋转的目标"
}) ], e.prototype, "target", void 0);
a([ l({
tooltip: "顺时针旋转"
}) ], e.prototype, "clockwise", void 0);
a([ l({
tooltip: "旋转一圈花费的时间"
}) ], e.prototype, "timePerRound", void 0);
a([ l({
tooltip: "是否始终面向目标节点"
}) ], e.prototype, "faceToTarget", void 0);
a([ l({
type: cc.Enum(i),
tooltip: "面向目标节点的轴：\n- PositiveX：正 X 轴\n- PositiveY：正 Y 轴\n- NegativeX：负 X 轴\n- NegativeY：负 Y 轴",
visible: function() {
return this.faceToTarget;
}
}) ], e.prototype, "faceAxis", void 0);
a([ l({
tooltip: "自动开始旋转"
}) ], e.prototype, "auto_start", void 0);
a([ l({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return a([ c, u(), p() ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
SetGray: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "f67a9SEPlBL8rHHpVX6g1ZW", "SetGray");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.normal = null;
e.gray = null;
e.grayState = !1;
e.lastState = !1;
e.spArr = null;
e.btnArr = null;
e.labArr = null;
e.labArrC = [];
e.outLineArr = null;
e.outLineArrC = [];
e.labRichArr = null;
e.labRichArrC = [];
e.grayColor = new cc.Color(166, 166, 166, 255);
e.grayOutLineColor = new cc.Color(230, 230, 230, 255);
e.skeArr = null;
return e;
}
e.prototype.onLoad = function() {
this.spArr = this.node.getComponentsInChildren(cc.Sprite);
this.btnArr = this.node.getComponentsInChildren(cc.Button);
this.labArr = this.node.getComponentsInChildren(cc.Label);
this.outLineArr = this.node.getComponentsInChildren(cc.LabelOutline);
this.labRichArr = this.node.getComponentsInChildren(cc.RichText);
this.skeArr = this.node.getComponentsInChildren(sp.Skeleton);
this.setGray(this.grayState);
};
e.prototype.setGray = function(t) {
if (this.lastState != t) {
this.lastState = t;
if (t) {
for (var e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.gray);
for (var o = this.btnArr.length, i = 0; i < o; i++) {
this.btnArr[i].enableAutoGrayEffect = !0;
this.btnArr[i].grayMaterial = this.gray;
this.btnArr[i].interactable = !1;
}
for (var r = this.labArr.length, a = 0; a < r; a++) {
this.labArrC[a] = this.labArr[a].node.color;
this.labArr[a].node.color = this.grayColor;
}
for (var s = this.outLineArr.length, c = 0; c < s; c++) {
this.outLineArrC[c] = this.outLineArr[c].color;
this.outLineArr[c].color = this.grayOutLineColor;
}
for (var l = this.labRichArr.length, u = 0; u < l; u++) {
this.labRichArrC[u] = this.labRichArr[u].node.color;
this.labRichArr[u].node.color = this.grayColor;
}
} else {
for (e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.normal);
for (o = this.btnArr.length, i = 0; i < o; i++) this.btnArr[i].interactable = !0;
for (r = this.labArr.length, a = 0; a < r; a++) this.labArr[a].node.color = this.labArrC[a];
for (s = this.outLineArr.length, c = 0; c < s; c++) this.outLineArr[c].color = this.outLineArrC[c];
for (l = this.labRichArr.length, u = 0; u < l; u++) this.labRichArr[u].node.color = this.labRichArrC[u];
}
} else console.log("和上次设置相同");
};
r([ c(cc.Material) ], e.prototype, "normal", void 0);
r([ c(cc.Material) ], e.prototype, "gray", void 0);
r([ c({
type: !1,
displayName: "是否置灰"
}) ], e.prototype, "grayState", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
SignData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "b2ee58BiJFGUom3EJKNupVS", "SignData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.SignData = void 0;
var o = function() {
function t() {
this.init_data = !1;
this.c_sign = [];
this._cur_sign_day = 3;
this._can_sign = 1;
this.list_data = [];
}
Object.defineProperty(t.prototype, "cur_sign_day", {
get: function() {
return this._cur_sign_day;
},
set: function(t) {
this._cur_sign_day = t;
this.init_data = !0;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(t.prototype, "can_sign", {
get: function() {
return this._can_sign;
},
set: function(t) {
this._can_sign = t;
this.init_data = !0;
},
enumerable: !1,
configurable: !0
});
t.prototype.initListData = function() {
this.c_sign.length || (this.c_sign = this.getSignConfig());
for (var t = [], e = 0; e < 30; ) {
for (var n = [], o = 0; o < 3; o++) {
var i = this.c_sign[e];
n.push(i);
e++;
}
t.push(n);
}
this.list_data = t;
};
t.prototype.getSignConfig = function() {
for (var t = [], e = 0; e < 30; e++) {
var n = e + 1, o = {};
o.id = n;
o.reward_type = e % 3;
o.count = n;
o.login_day = n;
o.video_limit = 0;
t.push(o);
}
return t;
};
t.prototype.getStateByDay = function(t) {
g.enum.rewardState.none;
return t < this.cur_sign_day ? g.enum.rewardState.none : t == this.cur_sign_day ? this.can_sign ? g.enum.rewardState.unlock : g.enum.rewardState.none : g.enum.rewardState.lock;
};
return t;
}();
n.SignData = o;
cc._RF.pop();
}, {} ],
SignIconItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "233bfi4S/FHSYKyekkgMW0Z", "SignIconItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c, l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_cash = null;
e.node_redbag = null;
e.node_money = null;
e.lbl_day = null;
e.node_mask = null;
e.node_gou = null;
e.icon_data = {
id: 0,
reward_type: 0,
count: 0,
login_day: 0,
video_limit: 0,
state: g.enum.rewardState.none
};
return e;
}
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return s(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initIcon(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initIcon = function(t) {
if (t) {
this.lbl_day.string = "第" + t.login_day + "天";
if (t.reward_type) {
this.node_cash.active = !0;
this.node_redbag.active = !1;
this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(c.cash);
} else {
this.node_cash.active = !1;
this.node_redbag.active = !0;
this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(c.red_bag);
}
this.icon_data = t;
var e = g.sign.getStateByDay(t.login_day);
if (e == g.enum.rewardState.none) {
this.node_mask.active = !0;
this.node_gou.active = !0;
this.node_money.active = !1;
} else if (e == g.enum.rewardState.unlock) {
this.node_mask.active = !1;
this.node_gou.active = !1;
} else if (e == g.enum.rewardState.lock) {
this.node_mask.active = !1;
this.node_gou.active = !1;
}
} else this.node.active = !1;
};
r([ p({
displayName: "提现样式",
type: cc.Node
}) ], e.prototype, "node_cash", void 0);
r([ p({
displayName: "红包样式",
type: cc.Node
}) ], e.prototype, "node_redbag", void 0);
r([ p({
displayName: "现金提示",
type: cc.Node
}) ], e.prototype, "node_money", void 0);
r([ p({
displayName: "天数",
type: cc.Label
}) ], e.prototype, "lbl_day", void 0);
r([ p({
type: cc.Node,
displayName: "蒙版"
}) ], e.prototype, "node_mask", void 0);
r([ p({
type: cc.Node,
displayName: "勾"
}) ], e.prototype, "node_gou", void 0);
return r([ u ], e);
}(cc.Component);
n.default = d;
(function(t) {
t[t.red_bag = "#EB3A0E"] = "red_bag";
t[t.cash = "#2AB718"] = "cash";
})(c || (c = {}));
cc._RF.pop();
}, {} ],
SignItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "64cb2tAChJMy5muSxd7Pi4r", "SignItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = cc._decorator, l = c.ccclass, u = c.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.sign_icon_pos = [];
e.pre_icon = null;
e.arr_icon = [];
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {};
e.prototype.setItemData = function(t) {
return a(this, void 0, void 0, function() {
return s(this, function(e) {
switch (e.label) {
case 0:
return [ 4, this.initItem(t) ];

case 1:
e.sent();
return [ 2 ];
}
});
});
};
e.prototype.initItem = function(t) {
for (var e = this.sign_icon_pos.length, n = 0; n < e; n++) {
var o = t[n], i = this.arr_icon[n];
if (!i) {
(i = cc.instantiate(this.pre_icon)).parent = this.node;
i.setPosition(this.sign_icon_pos[n].getPosition());
this.arr_icon[n] = i;
}
i.getComponent("SignIconItem").setItemData(o);
}
};
r([ u({
type: cc.Node,
displayName: "位置组件"
}) ], e.prototype, "sign_icon_pos", void 0);
r([ u({
type: cc.Prefab
}) ], e.prototype, "pre_icon", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
Sign: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "92c1epESLhJSLrId9Dkn6Wd", "Sign");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.scroll_view = null;
e.anim_btn = null;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.start = function() {
g.sign.initListData();
g.sign.init_data = !0;
};
e.prototype.initScollView = function() {
var t = g.sign.list_data;
this.scroll_view.node.emit("srollview-init", t);
};
e.prototype.clickReceiveReward = function() {
g.sign.can_sign = 0;
};
e.prototype.update = function() {
if (g.sign.init_data) {
g.sign.init_data = !1;
this.initScollView();
this.initBtnStyle();
}
};
e.prototype.initBtnStyle = function() {
if (g.sign.can_sign) {
this.anim_btn.play();
this.anim_btn.getComponent("SetGray").setGray(!1);
} else {
this.anim_btn.stop();
this.anim_btn.node.scale = 1;
this.anim_btn.getComponent("SetGray").setGray(!0);
}
};
r([ c({
type: cc.ScrollView,
displayName: "滚动视图"
}) ], e.prototype, "scroll_view", void 0);
r([ c({
type: cc.Animation,
displayName: "按钮_动画"
}) ], e.prototype, "anim_btn", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
StorageData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "714352IWzBOCowl9Oqo4DBk", "StorageData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.StorageKey = n.StorageData = void 0;
n.StorageData = function() {
this.storageKey = "wewishyouamerrychristmaswithout996";
};
(function(t) {
t.loginTicket = "loginTicket";
t.isFirstIn = "isFirstIn";
t.uin = "uin";
t.sessionKey = "sessionKey";
t.nickname = "nickname";
t.isAuth = "isAuth";
t.avatar = "avatar";
})(n.StorageKey || (n.StorageKey = {}));
cc._RF.pop();
}, {} ],
StorageUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "897f9/OTe5ILpCRfzhdVQUi", "StorageUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {}
t.prototype.getStorage = function(t, e) {
void 0 === e && (e = !0);
return cc.sys.localStorage.getItem(t) ? JSON.parse(cc.sys.localStorage.getItem(t)) : null;
};
t.prototype.setStorage = function(t, e, n) {
void 0 === n && (n = !0);
n && (e = mk.encrypt.encrypt(e, g.storageData.storageKey, g.appData.appId));
cc.sys.localStorage.setItem(t, JSON.stringify(e));
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
StringUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "4c029tekfZLEKj9xvuITEwf", "StringUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.str_color = {
red1: "#be2c1d",
bro1: "#4E301B"
};
}
t.prototype.getTextByStringInData = function(t) {
for (var e, n, o, i, r, a, s = t, c = 0; c < t.length; ) {
e = t.indexOf("[", c);
n = t.indexOf("]", e);
if (-1 == e || -1 == n) break;
i = t.slice(e, n + 1);
a = t.slice(e + 1, e + 5);
var l = this.str_color[a];
if (l) {
o = t.slice(e + 6, n);
r = this.getColorStringColor(o, l);
s = s.replace(i, r);
}
c = n;
}
for (var u, p = 0, d = 0, h = 0; p < s.length; ) {
d = s.indexOf("{", p);
h = s.indexOf("}", d);
if (-1 == d || -1 == h) break;
u = s.slice(d, h + 1);
var f = s.slice(d + 1, d + 3), y = u.slice(4, u.length - 1);
if (y) {
var _ = "<size = " + f + ">" + y + "</color>";
s = s.replace(u, _);
}
p = h;
}
return s;
};
t.prototype.getColorStringColor = function(t, e) {
void 0 === t && (t = "#FFFFFF");
return "<color=" + e + ">" + t + "</color>";
};
t.prototype.arabicToChinese = function(t) {
var e = [ "", "万", "亿", "万亿", "亿亿" ], n = [ "", "十", "百", "千" ], o = [ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" ], i = 0, r = "", a = "", s = !1, c = function(t) {
for (var e = "", i = 0, r = !0; t > 0; ) {
var a = t % 10, s = "";
if (0 === a) {
if (!r) {
r = !0;
e = o[a] + e;
}
} else {
r = !1;
(1 !== i || t > 1) && (s = o[a]);
e = (s += n[i]) + e;
}
++i;
t = Math.floor(t / 10);
}
return e;
};
if (0 === t) return o[0];
for (;t > 0; ) {
var l = t % 1e4;
s && (a = o[0] + a);
r = c(l);
a = (r += 0 !== l ? e[i] : e[0]) + a;
s = l < 1e3 && l > 0;
t = Math.floor(t / 1e4);
++i;
}
return a;
};
t.prototype.getNewLimitStr = function(t, e) {
var n = t.split(""), o = "";
e = n.length >= e ? e : n.length;
for (var i = 0; i < e; i++) o += i == e - 1 ? "..." : n[i];
return o;
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
TabSwitching: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "3087dH5gWhCfZNksqAzC+wm", "TabSwitching");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.arr_btn_tab = [];
e.tab_count = 0;
e.func = null;
return e;
}
e.prototype.onLoad = function() {
this.tab_count = this.arr_btn_tab.length;
this.initTabState();
this.initBtnEvent();
this.node.on("comp-cur-tab", this.curTabType, this);
this.node.on("comp-cur-click", this.onTabBtnClick, this);
};
e.prototype.start = function() {};
e.prototype.initBtnEvent = function() {
for (var t = 0; t < this.tab_count; t++) this.arr_btn_tab[t].node.on("click", this.onClockTabCall, this);
};
e.prototype.onClockTabCall = function(t, e) {
this.initTabState();
var n = t.node;
n.getChildByName("img_style_1").active = !0;
n.getChildByName("img_style_2").active = !1;
this.func && this.func(t, e);
};
e.prototype.onTabBtnClick = function(t, e) {
this.func = t.bind(e);
};
e.prototype.initTabState = function() {
for (var t = 0; t < this.tab_count; t++) {
this.arr_btn_tab[t].node.getChildByName("img_style_1").active = !1;
this.arr_btn_tab[t].node.getChildByName("img_style_2").active = !0;
}
};
e.prototype.curTabType = function(t) {
for (var e = 0; e < this.tab_count; e++) if (e === t) {
this.onClockTabCall(this.arr_btn_tab[e], e);
return;
}
};
r([ c({
type: cc.Button,
displayName: "页签组",
tooltip: "按钮target需要有值"
}) ], e.prototype, "arr_btn_tab", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
TableView: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "9a31drXM+9NCKYkF9D78zlF", "TableView");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.pre_item = [];
e.scr_item = [];
e.itemInterval = 0;
e.itemData = null;
e.scrollView = null;
e.item = null;
e.content = null;
e.layerHeight = null;
e.firstItemIndex = 0;
e.lastItemIndex = 0;
e.firstItemData = {};
e.lastItemData = {};
e.itemArr = [];
e.itemNode = [];
e.itemPosMap = new Map();
e.initItemData = !0;
e.count = 0;
e.itemCanMoveDown = null;
e.itemCanMoveUp = null;
e.lastResetItemInfoHeight = null;
e.lastResetItemIndex = null;
return e;
}
e.prototype.onLoad = function() {
this.initPro();
};
e.prototype.initPro = function() {
this.scrollView = this.node.getComponent(cc.ScrollView);
this.content = this.scrollView.content;
this.item = this.pre_item;
this.layerHeight = this.node.height;
for (var t = 0; t < this.item.length; t++) this.itemNode[t] = cc.instantiate(this.item[t]);
this.node.on("srollview-init", this.init, this);
};
e.prototype.init = function(t, e) {
void 0 === e && (e = !1);
if (!t[0]) return !1;
this.clearItem();
this.itemData = t;
this.firstItemIndex = 0;
this.lastItemIndex = 0;
this.firstItemData = {};
this.lastItemData = {};
this.itemArr = [];
this.itemPosMap = new Map();
this.initItemData = !0;
this.count = 0;
if (!e) {
this.initItem();
this.getItemPos(0);
this.scrollView.node.on("scrolling", this.callback, this);
}
};
e.prototype.updateList = function() {};
e.prototype.getItemPos = function(t) {
for (var e = this.itemData.length, n = t; n < e; n++) {
var o = {};
o.startPos = 0 === n ? 0 : this.itemPosMap.get(n - 1).endPos;
var i = this.itemData[n].pfbType || 0;
o.endPos = o.startPos + this.itemNode[i].height + this.itemInterval;
this.itemPosMap.set(n, o);
}
e > 0 && this.updateContentHeigh(this.itemPosMap.get(e - 1).endPos);
};
e.prototype.initItem = function() {
for (var t = 0, e = 0; e < this.itemData.length && !(this.content.height > this.layerHeight && ++t > 2); e++) {
var n = 0;
e > 0 && (n = this.itemArr[e - 1].y - this.itemArr[e - 1].height - this.itemInterval);
this.addItemNode(e, n);
this.updateContentHeigh(this.itemArr[e].height - n);
}
};
e.prototype.addItemNode = function(t, e) {
var n = this.itemData[t].pfbType || 0, o = cc.instantiate(this.itemNode[n]);
o.parent = this.content;
o.pfbType = n;
o.index = t;
o.y = 0 === t ? 0 : e;
o.x = 0;
var i = o.getComponent(this.scr_item[n]);
i && i.setItemData(this.itemData[t], this);
this.itemArr.push(o);
};
e.prototype.updateContentHeigh = function(t) {
this.content.height = t > this.layerHeight ? t : this.layerHeight;
};
e.prototype.callback = function() {
if (this.content.height > this.layerHeight) {
var t = this.scrollView.getScrollOffset().y, e = t + this.layerHeight;
if (t < 0) return;
if (this.initItemData) {
this.initItemData = !1;
this.updateFirstItemIndex();
this.itemCanMoveDown = !0;
this.updateLastItemIndex();
this.itemCanMoveDown = !1;
}
if (t > this.firstItemData.endPos) {
this.lastItemIndex + 1 < this.itemData.length && this.updateFirstItemIndex();
this.count++;
}
if (e > this.lastItemData.endPos && this.lastItemIndex + 1 < this.itemData.length) {
this.itemCanMoveDown = !0;
this.updateLastItemIndex();
this.itemCanMoveDown = !1;
}
if (e < this.lastItemData.startPos) {
this.updateLastItemIndex();
this.count--;
}
if (t < this.firstItemData.startPos) {
this.itemCanMoveUp = !0;
this.updateFirstItemIndex();
this.itemCanMoveUp = !1;
}
}
};
e.prototype.updateFirstItemIndex = function() {
var t = this.firstItemIndex;
this.itemCanMoveUp && t > this.getItemIndex()[0] && t > 0 && this.itemMoveUp(this.firstItemIndex - 1);
this.updateItemIndex();
};
e.prototype.updateLastItemIndex = function() {
var t = this.lastItemIndex;
this.itemCanMoveDown && t < this.getItemIndex()[1] && t + 1 < this.itemData.length && this.itemMoveDown(this.lastItemIndex + 1);
this.updateItemIndex();
};
e.prototype.updateItemIndex = function() {};
e.prototype.getItemIndex = function() {
var t = this, e = this.scrollView.getScrollOffset().y, n = e + this.layerHeight, o = [];
this.itemPosMap.forEach(function(i, r) {
var a = i.startPos <= e && i.endPos > e, s = (i.startPos >= e && i.endPos, i.startPos <= n && i.endPos > n);
if (a) {
t.firstItemData.startPos = i.startPos;
t.firstItemData.endPos = i.endPos;
t.firstItemIndex = r;
o.push(r);
}
if (s) {
t.lastItemData.startPos = i.startPos;
t.lastItemData.endPos = i.endPos;
t.lastItemIndex = r;
o.push(r);
}
});
return o;
};
e.prototype.itemMoveUp = function(t) {
if (!(t < 0 || this.lastItemIndex + 1 < t || t + 1 > this.itemData.length)) {
this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
t++;
return this.itemMoveUp(t);
}
};
e.prototype.itemMoveDown = function(t) {
if (!(t < 0 || this.firstItemIndex - 1 > t || t + 1 > this.itemData.length)) {
this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
t--;
return this.itemMoveDown(t);
}
};
e.prototype.hasItem = function(t) {
for (var e = 0; e < this.itemArr.length; e++) if (this.itemArr[e].index === t) return !0;
return !1;
};
e.prototype.itemMove = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) {
var o = this.itemArr[n].index < this.firstItemIndex - 1, i = this.itemArr[n].index > this.lastItemIndex + 1, r = this.itemArr[n].pfbType === this.itemData[t].pfbType;
if (o && r || i && r) {
this.itemArr[n].index = t;
this.itemArr[n].y = e;
var a = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
a && a.setItemData(this.itemData[t], this);
return;
}
}
this.addItemNode(t, e);
};
e.prototype.getPosIndex = function(t) {
for (var e = 0, n = this.itemPosMap.entries(); e < n.length; e++) {
var o = n[e], i = o[0], r = o[1];
if (r.endPos > t && r.startPos <= t) return i;
}
};
e.prototype.addItem = function(t) {
this.itemData.push(t);
this.getItemPos(this.itemData.length - 1);
var e = this.itemPosMap.get(this.itemData.length - 1).endPos;
if (e - this.layerHeight > 0) {
for (var n = e - this.layerHeight, o = this.itemData.length - 1; o >= 0; o--) this.itemPosMap.get(o).endPos > n && this.itemPosMap.get(o).startPos <= n && (this.firstItemIndex = o);
this.scrollView.scrollToBottom();
this.lastItemIndex = this.itemData.length - 1;
var i = this.firstItemIndex - 1 > 0 ? this.firstItemIndex - 1 : 0;
this.itemMoveUp(i);
return !0;
}
this.firstItemIndex = 0;
this.lastItemIndex = this.itemData.length - 1;
this.itemMoveUp(this.firstItemIndex);
return !1;
};
e.prototype.clearItem = function() {
this.itemData = [];
this.itemPosMap.clear();
this.scrollView.scrollToTop();
this.content.height = 0;
for (var t in this.itemArr) this.itemArr[t].destroy();
};
e.prototype.deleteItem = function(t) {
this.itemData.splice(t, 1);
var e = this.itemData.length;
if (!(e <= 0)) {
this.getItemPos(e - 1);
for (var n = 0; n < this.itemArr.length; n++) {
if (this.itemArr[n].index === t) {
this.itemArr[n].index = -1;
this.itemArr[n].y = 3e3;
}
if (this.itemArr[n].index > t) {
var o = this.itemArr[n].index;
this.itemArr[n].y = -this.itemPosMap.get(o - 1).startPos;
this.itemArr[n].index = o - 1;
}
}
this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
this.lastItemIndex || this.getItemIndex();
this.itemMoveUp(this.firstItemIndex);
}
};
e.prototype.resetItemData = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) if (this.itemArr[n].index === t) {
e && (this.itemData[n] = e);
var o = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
o && o.setItemData(this.itemData[t], this);
break;
}
};
e.prototype.resetItemSize = function(t, e) {
var n = function(t, e) {
for (var n = 0; n < this.itemArr.length; n++) this.itemArr[n].index > t && (this.itemArr[n].y -= e);
for (var o = 0, i = this.itemPosMap.entries(); o < i.length; o++) {
var r = i[o], a = r[0], s = r[1];
a === t && (s.endPos += e);
if (a > t) {
s.endPos += e;
s.startPos += e;
}
}
this.lastResetItemInfoHeight = e;
this.lastResetItemIndex = t;
}.bind(this);
if (null !== this.lastResetItemIndex && this.lastResetItemInfoHeight) if (this.lastResetItemIndex === t) {
n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
this.lastResetItemIndex = null;
this.lastResetItemInfoHeight = 0;
} else {
n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
n(t, e);
} else n(t, e);
this.itemMoveUp(this.firstItemIndex);
this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
};
r([ c({
displayName: "预制条目",
type: [ cc.Prefab ]
}) ], e.prototype, "pre_item", void 0);
r([ c({
displayName: "脚本名",
type: [ cc.String ]
}) ], e.prototype, "scr_item", void 0);
r([ c({
displayName: "间距"
}) ], e.prototype, "itemInterval", void 0);
return r([ s ], e);
}(cc.Component);
n.default = l;
cc._RF.pop();
}, {} ],
TimeUtil: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c10efJfgPlIRqo2IRARi4q9", "TimeUtil");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this.offTime = 0;
}
t.prototype.setServerTime = function(t) {
this.offTime = t - Math.ceil(new Date().getTime() / 1e3);
};
t.prototype.getServerTime = function() {
return Math.ceil(new Date().getTime() / 1e3 + this.offTime);
};
t.prototype.format = function(t, e) {
void 0 === e && (e = "h:m:s");
var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), r = t % 3600 % 60;
function a(t) {
var e = t.toString();
t < 10 && (e = "0" + t);
return e;
}
-1 != e.indexOf("d") ? e = e.replace(/d/g, a(n)) : o += 24 * n;
-1 != e.indexOf("h") ? e = e.replace(/h/g, a(o)) : i += 60 * o;
-1 != e.indexOf("m") ? e = e.replace(/m/g, a(i)) : -1 != e.indexOf("h") ? r += 60 * i : r = t;
-1 != e.indexOf("s") && (e = e.replace(/s/g, a(r)));
return e;
};
t.prototype.formatWithUnit = function(t, e) {
void 0 === e && (e = "天时分秒");
var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), r = t % 3600 % 60;
function a(t, e) {
var n = t.toString();
t < 10 && (n = "0" + t);
return n + e;
}
var s = "";
-1 != e.indexOf("天") ? s += n + "天" : o += 24 * n;
-1 != e.indexOf("时") ? s += a(o, "时") : i += 60 * o;
-1 != e.indexOf("分") ? s += a(i, "分") : r += 60 * i;
-1 != e.indexOf("秒") && (s += a(r, "秒"));
return s;
};
t.prototype.getDayInYear = function(t) {
var e = new Date(t), n = e.getMonth() + 1, o = e.getFullYear(), i = e.getDate(), r = 0, a = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ], s = [ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
if (o % 400 == 0 || o % 4 == 0 && o % 100 != 0) {
for (var c = 0; c < n - 1; c++) r += s[c];
return r + i;
}
for (c = 0; c < n - 1; c++) r += a[c];
return r + i;
};
t.prototype.getSecondsInDay = function(t) {
return 3600 * t.getHours() + 60 * t.getMinutes() + t.getSeconds();
};
t.prototype.getNowDayString = function(t) {
void 0 === t && (t = "-");
var e = new Date();
return e.getFullYear() + t + (e.getMonth() + 1) + t + e.getDate();
};
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
TimerSystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "70a463CEglFy49OGQWrGdoc", "TimerSystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
});
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Timer = void 0;
var r = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.timerArr = [];
return e;
}
e.prototype.startTimer = function() {
var t = this;
this.schedule(function() {
t.runTimer();
}, 1);
};
e.prototype.runTimer = function() {
for (var t = 0; t < this.timerArr.length; t++) {
var e = this.timerArr[t], n = e.callBack, o = e.target;
e.curTime--;
if (e.curTime <= 0) {
e.curTime = e.totalTime;
n.call(o);
}
}
};
e.prototype.addTimer = function(t, e, n) {
if (!this.ifHasSameTimer(e, n)) {
var o = new a();
o.curTime = t;
o.totalTime = t;
o.callBack = e;
o.target = n;
this.timerArr.push(o);
}
};
e.prototype.ifHasSameTimer = function(t, e) {
return !!this.getTimer(t, e);
};
e.prototype.getTimer = function(t, e) {
for (var n = this.timerArr.length - 1; n >= 0; n--) {
var o = this.timerArr[n];
if (o.callBack == t && o.target == e) return o;
}
return null;
};
e.prototype.removeTimer = function(t, e) {
for (var n = this.timerArr.length - 1; n >= 0; n--) {
var o = this.timerArr[n];
if (o.callBack == t && o.target == e) {
this.timerArr.splice(n, 1);
return;
}
}
};
return e;
}(cc.Component);
n.default = r;
var a = function() {
this.curTime = 0;
this.totalTime = 0;
this.callBack = null;
this.target = null;
};
n.Timer = a;
cc._RF.pop();
}, {} ],
TouchHelper: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "207f5IvRwZGGbOudGF4bfk4", "TouchHelper");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TouchHelper = void 0;
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.canTouch = !0;
e.onInPolygon = new cc.Component.EventHandler();
e.onOutPolygon = new cc.Component.EventHandler();
e.onTouchTap = new cc.Component.EventHandler();
e.needPolygon = !1;
e.points = [];
e.isMoved = !1;
return e;
}
e.prototype.start = function() {
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
};
e.prototype.onTouchEnd = function(t) {
if (this.canTouch && this.needPolygon && this.points.length >= 3) {
var e = t.getLocation(), n = this.node.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y)), o = this.pointInPoly(n, this.points);
this.isMoved || (o ? this.canTouch && this.onInPolygon && this.onInPolygon.emit([]) : this.canTouch && this.onOutPolygon && this.onOutPolygon.emit([]));
}
this.canTouch && (this.isMoved || this.canTouch && this.onTouchTap && this.onTouchTap.emit([]));
this.isMoved = !1;
};
e.prototype.onTouchMove = function(t) {
t.getTouches().length > 1 ? this.isMoved = !0 : this.isMoved = cc.Vec2.distance(t.getStartLocation(), t.getLocation()) > 20;
};
e.prototype.onTouchCancel = function() {
this.isMoved = !1;
};
e.prototype.pointInPoly = function(t, e) {
for (var n = !1, o = -1, i = e.length, r = i - 1; ++o < i; r = o) (e[o].y <= t.y && t.y < e[r].y || e[r].y <= t.y && t.y < e[o].y) && t.x < (e[r].x - e[o].x) * (t.y - e[o].y) / (e[r].y - e[o].y) + e[o].x && (n = !n);
return n;
};
r([ c({
tooltip: "是否可以点击"
}) ], e.prototype, "canTouch", void 0);
r([ c({
tooltip: "在多边形范围内产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onInPolygon", void 0);
r([ c({
tooltip: "在多边形范围外产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onOutPolygon", void 0);
r([ c({
tooltip: "在节点范围内产生点击",
type: cc.Component.EventHandler
}) ], e.prototype, "onTouchTap", void 0);
r([ c({
tooltip: "是否与需要多边形检查"
}) ], e.prototype, "needPolygon", void 0);
r([ c({
type: [ cc.Vec2 ],
tooltip: "多边形定点位置信息（局部坐标，至少3个点）"
}) ], e.prototype, "points", void 0);
return r([ s ], e);
}(cc.Component);
n.TouchHelper = l;
cc._RF.pop();
}, {} ],
TurnableData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "43e37VirRBM1p39LUEjYTSH", "TurnableData");
var o = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, i = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TurnableData = void 0;
var r = function() {
function t() {
this.dataFinish = !1;
this.leftTimes = 2;
}
t.prototype.init = function() {
return o(this, void 0, void 0, function() {
return i(this, function() {
this.dataFinish = !0;
return [ 2 ];
});
});
};
t.prototype.draw = function() {
return o(this, void 0, void 0, function() {
var t;
return i(this, function(e) {
switch (e.label) {
case 0:
t = {};
return [ 4, mk.http.sendRequest("turnable", "POST", JSON.stringify(t)) ];

case 1:
return e.sent().errcode, [ 2 ];
}
});
});
};
return t;
}();
n.TurnableData = r;
cc._RF.pop();
}, {} ],
TurnableItem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "2df9fpSWF1G1a/os2Ev7z5Y", "TurnableItem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
}, a = this && this.__awaiter || function(t, e, n, o) {
return new (n || (n = Promise))(function(i, r) {
function a(t) {
try {
c(o.next(t));
} catch (t) {
r(t);
}
}
function s(t) {
try {
c(o.throw(t));
} catch (t) {
r(t);
}
}
function c(t) {
t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
t(e);
})).then(a, s);
var e;
}
c((o = o.apply(t, e || [])).next());
});
}, s = this && this.__generator || function(t, e) {
var n, o, i, r, a = {
label: 0,
sent: function() {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: []
};
return r = {
next: s(0),
throw: s(1),
return: s(2)
}, "function" == typeof Symbol && (r[Symbol.iterator] = function() {
return this;
}), r;
function s(t) {
return function(e) {
return c([ t, e ]);
};
}
function c(r) {
if (n) throw new TypeError("Generator is already executing.");
for (;a; ) try {
if (n = 1, o && (i = 2 & r[0] ? o.return : r[0] ? o.throw || ((i = o.return) && i.call(o), 
0) : o.next) && !(i = i.call(o, r[1])).done) return i;
(o = 0, i) && (r = [ 2 & r[0], i.value ]);
switch (r[0]) {
case 0:
case 1:
i = r;
break;

case 4:
a.label++;
return {
value: r[1],
done: !1
};

case 5:
a.label++;
o = r[1];
r = [ 0 ];
continue;

case 7:
r = a.ops.pop();
a.trys.pop();
continue;

default:
if (!(i = a.trys, i = i.length > 0 && i[i.length - 1]) && (6 === r[0] || 2 === r[0])) {
a = 0;
continue;
}
if (3 === r[0] && (!i || r[1] > i[0] && r[1] < i[3])) {
a.label = r[1];
break;
}
if (6 === r[0] && a.label < i[1]) {
a.label = i[1];
i = r;
break;
}
if (i && a.label < i[2]) {
a.label = i[2];
a.ops.push(r);
break;
}
i[2] && a.ops.pop();
a.trys.pop();
continue;
}
r = e.call(t, a);
} catch (t) {
r = [ 6, t ];
o = 0;
} finally {
n = i = 0;
}
if (5 & r[0]) throw r[1];
return {
value: r[0] ? r[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var c = cc._decorator, l = c.ccclass, u = c.property, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.icon = null;
e.lbl_name = null;
return e;
}
e.prototype.initData = function(t) {
return a(this, void 0, void 0, function() {
return s(this, function() {
this.lbl_name.string = t;
return [ 2 ];
});
});
};
r([ u(cc.Sprite) ], e.prototype, "icon", void 0);
r([ u(cc.Label) ], e.prototype, "lbl_name", void 0);
return r([ l ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
Turnable: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "c5972Si4H1MMp7ugnferq77", "Turnable");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = t("./TurnableItem"), s = cc._decorator, c = s.ccclass, l = s.property, u = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.node_turn = null;
e.node_items = [];
e.btn_draw = null;
e.btn_close = null;
e.lbl_left = null;
e.isPlaying = !1;
return e;
}
e.prototype.onLoad = function() {};
e.prototype.initData = function() {
for (var t = 0; t < this.node_items.length; t++) this.node_items[t].getComponent(a.default).initData(t + "");
this.updateLeftTimes();
};
e.prototype.clickDraw = function() {
g.turnable.leftTimes > 0 && !this.isPlaying && this.draw();
};
e.prototype.draw = function() {
var t = this;
g.turnable.leftTimes--;
this.node_turn.rotation = 1800;
cc.tween(this.node_turn).to(3, {
rotation: 120
}, {
easing: "expoInOut"
}).call(function() {
t.updateLeftTimes();
}, this).start();
};
e.prototype.updateLeftTimes = function() {
this.lbl_left.string = "剩余：<color=#FFED99>" + g.turnable.leftTimes + "</color>次";
};
e.prototype.update = function() {
g.turnable.dataFinish ? this.initData() : g.turnable.init();
};
r([ l(cc.Node) ], e.prototype, "node_turn", void 0);
r([ l(cc.Node) ], e.prototype, "node_items", void 0);
r([ l(cc.Node) ], e.prototype, "btn_draw", void 0);
r([ l(cc.Sprite) ], e.prototype, "btn_close", void 0);
r([ l(cc.RichText) ], e.prototype, "lbl_left", void 0);
return r([ c ], e);
}(cc.Component);
n.default = u;
cc._RF.pop();
}, {
"./TurnableItem": "TurnableItem"
} ],
TweenEasing: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "7d939H2Xm5K75ITQ9wq0tFT", "TweenEasing");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.TweenEasing = void 0;
(function(t) {
t[t.linear = 0] = "linear";
t[t.smooth = 1] = "smooth";
t[t.fade = 2] = "fade";
t[t.quadIn = 3] = "quadIn";
t[t.quadOut = 4] = "quadOut";
t[t.quadInOut = 5] = "quadInOut";
t[t.quadOutIn = 6] = "quadOutIn";
t[t.cubicIn = 7] = "cubicIn";
t[t.cubicOut = 8] = "cubicOut";
t[t.cubicInOut = 9] = "cubicInOut";
t[t.cubicOutIn = 10] = "cubicOutIn";
t[t.quartIn = 11] = "quartIn";
t[t.quartOut = 12] = "quartOut";
t[t.quartInOut = 13] = "quartInOut";
t[t.quartOutIn = 14] = "quartOutIn";
t[t.quintIn = 15] = "quintIn";
t[t.quintOut = 16] = "quintOut";
t[t.quintInOut = 17] = "quintInOut";
t[t.quintOutIn = 18] = "quintOutIn";
t[t.sineIn = 19] = "sineIn";
t[t.sineOut = 20] = "sineOut";
t[t.sineInOut = 21] = "sineInOut";
t[t.sineOutIn = 22] = "sineOutIn";
t[t.expoIn = 23] = "expoIn";
t[t.expoOut = 24] = "expoOut";
t[t.expoInOut = 25] = "expoInOut";
t[t.expoOutIn = 26] = "expoOutIn";
t[t.circIn = 27] = "circIn";
t[t.circOut = 28] = "circOut";
t[t.circInOut = 29] = "circInOut";
t[t.circOutIn = 30] = "circOutIn";
t[t.elasticIn = 31] = "elasticIn";
t[t.elasticOut = 32] = "elasticOut";
t[t.elasticInOut = 33] = "elasticInOut";
t[t.elasticOutIn = 34] = "elasticOutIn";
t[t.backIn = 35] = "backIn";
t[t.backOut = 36] = "backOut";
t[t.backInOut = 37] = "backInOut";
t[t.backOutIn = 38] = "backOutIn";
t[t.bounceIn = 39] = "bounceIn";
t[t.bounceOut = 40] = "bounceOut";
t[t.bounceInOut = 41] = "bounceInOut";
t[t.bounceOutIn = 42] = "bounceOutIn";
})(n.TweenEasing || (n.TweenEasing = {}));
cc._RF.pop();
}, {} ],
UIBG: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "58495/rJOBNGoxELFSp8G2a", "UIBG");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.UIBG = void 0;
var a = cc._decorator, s = a.ccclass, c = a.property, l = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.color = new cc.Color(0, 0, 0, 120);
e.design_block_node = null;
e.bClickClose = !1;
e.node_bg = null;
return e;
}
e.prototype.onLoad = function() {
this.initBG();
};
e.prototype.initBG = function() {
var t = mk.game.getWinSize().width, e = mk.game.getWinSize().height;
this.node_bg = this.drawColorRect(new cc.Rect(-t / 2, -e / 2, t, e));
this.node_bg.parent = this.node;
this.node_bg.zIndex = -1e4;
this.node_bg.addComponent(cc.Button);
this.node_bg.on("click", this.initClick, this);
this.design_block_node && this.design_block_node.addComponent(cc.BlockInputEvents);
};
e.prototype.initClick = function() {
this.bClickClose && this.onClickClose();
};
e.prototype.onClickClose = function() {
mk.ui.closePanel(this.node.name);
};
e.prototype.drawColorRect = function(t) {
var e = new cc.Node("colorRect");
e.setContentSize(t);
var n = e.addComponent(cc.Graphics);
n.fillColor = this.color;
n.fillRect(t.x, t.y, t.width, t.height);
return e;
};
r([ c({
displayName: "背景颜色"
}) ], e.prototype, "color", void 0);
r([ c({
displayName: "自定义屏蔽节点",
type: cc.Node
}) ], e.prototype, "design_block_node", void 0);
r([ c({
displayName: "点击关闭"
}) ], e.prototype, "bClickClose", void 0);
return r([ s ], e);
}(cc.Component);
n.UIBG = l;
cc._RF.pop();
}, {} ],
UIOpenAndClose: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ac053zwqaRD6IJmTlQWmefZ", "UIOpenAndClose");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a, s = cc._decorator, c = s.ccclass, l = s.property, u = s.executeInEditMode, p = s.playOnFocus;
(function(t) {
t[t.none = 0] = "none";
t[t.scale = 1] = "scale";
t[t.scaleToPoint = 2] = "scaleToPoint";
t[t.centerUnfolding = 3] = "centerUnfolding";
})(a || (a = {}));
var d = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.effect_par = null;
e.open_effect = a.scale;
e.close_effect = a.scale;
e.close_toPoint = "";
e._play_open = !1;
e._play_close = !1;
return e;
}
Object.defineProperty(e.prototype, "play_open", {
get: function() {
if (this._play_open) {
this.showEffect();
this._play_open = !1;
}
return this._play_open;
},
set: function(t) {
this._play_open = t;
},
enumerable: !1,
configurable: !0
});
Object.defineProperty(e.prototype, "play_close", {
get: function() {
if (this._play_close) {
this.effect_par.scale = 1;
this.hideEffect();
this._play_close = !1;
}
return this._play_close;
},
set: function(t) {
this._play_close = t;
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.showEffect();
};
e.prototype.showEffect = function() {
if (this.effect_par) switch (this.open_effect) {
case a.none:
break;

case a.scale:
this.effect_par.scale = 0;
cc.tween(this.effect_par).to(.15, {
scale: 1
}).start();
break;

case a.centerUnfolding:
this.effect_par.scaleX = 0;
cc.tween(this.effect_par).to(.15, {
scaleX: 1
}).start();
}
};
e.prototype.hideEffect = function(t) {
void 0 === t && (t = null);
if (this.effect_par) switch (this.close_effect) {
case a.none:
t && t();
break;

case a.scale:
cc.tween(this.effect_par).to(.15, {
scale: 0
}).call(function() {
t && t();
}).start();
break;

case a.scaleToPoint:
if ("" == this.close_toPoint) console.error("需要配置缩小到终点节点路径"); else {
var e = this.close_toPoint, n = cc.find(e);
if (n) {
var o = n.parent.convertToWorldSpaceAR(n.getPosition()), i = this.effect_par.parent.convertToNodeSpaceAR(o);
cc.tween(this.effect_par).to(.3, {
scale: 0,
position: new cc.Vec3(i.x, i.y, 0)
}).call(function() {
t && t();
}).start();
} else {
t && t();
cc.error("关闭时动画节点未找到，请检查！！！！！");
}
}
} else t && t();
};
r([ l({
type: cc.Node,
displayName: "动画节点"
}) ], e.prototype, "effect_par", void 0);
r([ l({
type: cc.Enum(a),
displayName: "打开动画节点效果",
visible: function() {
return this.effect_par;
}
}) ], e.prototype, "open_effect", void 0);
r([ l({
type: cc.Enum(a),
displayName: "关闭动画节点效果",
visible: function() {
return this.effect_par;
}
}) ], e.prototype, "close_effect", void 0);
r([ l({
displayName: "关闭节点缩小到此节点坐标",
visible: function() {
return this.close_effect == a.scaleToPoint;
}
}) ], e.prototype, "close_toPoint", void 0);
r([ l({
displayName: "预览开"
}) ], e.prototype, "play_open", null);
r([ l({
displayName: "预览关"
}) ], e.prototype, "play_close", null);
return r([ c, u(), p() ], e);
}(cc.Component);
n.default = d;
cc._RF.pop();
}, {} ],
UISystem: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "d0ea1+IO0BKJoZMInS6d9dy", "UISystem");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.PanelType = n.OpenActionType = void 0;
var a, s, c = cc._decorator, l = c.ccclass, u = (c.property, function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.panelParent = null;
e.gamePanelbUrl = "./game/prefab";
e.modulPanelUrl = "./module";
e.isPanelOpening = !1;
e.isPanelClosing = !1;
e.curOnPanelDic = {};
e.lastOpenPanelName = "";
return e;
}
e.prototype.onLoad = function() {
mk.ui = this;
};
e.prototype.start = function() {
this.panelParent || (this.panelParent = this.node);
};
e.prototype.openPanel = function(t, e, n) {
void 0 === n && (n = a.normal);
var o = this.getUrlByPanelType(t, e), i = this;
if (!i.isPanelOpening && !i.getCurOnPanel(t)) {
i.isPanelOpening = !0;
return new Promise(function(e, r) {
mk.loader.load("" + o, cc.Prefab).then(function(o) {
i.isPanelOpening = !1;
var r = cc.instantiate(o);
i.curOnPanelDic[t] = r;
i.panelParent && (i.panelParent = i.node);
if (i.panelParent) {
i.panelParent.addChild(r);
switch (n) {
case a.normal:
break;

case a.closeLast:
i.lastOpenPanelName && i.closePanel(i.lastOpenPanelName);
break;

case a.closeOther:
for (var s = Object.keys(i.curOnPanelDic).filter(function() {}), c = 0; c < s.length; c++) {
var l = s[c];
i.closePanel(l);
}
}
i.lastOpenPanelName = t;
e(r);
} else console.error("[UISystem] UI的父节点panelParent为null,请检查脚本挂载情况");
}).catch(function(t) {
r(t);
});
});
}
};
e.prototype.getCurOnPanel = function(t) {
return this.curOnPanelDic[t];
};
e.prototype.closePanel = function(t, e) {
void 0 === e && (e = null);
if (!this.isPanelClosing && this.getCurOnPanel(t)) {
this.isPanelClosing = !0;
var n = this.getCurOnPanel(t), o = n.getComponent("UIOpenAndClose");
o ? o.hideEffect(this.destroyNode.bind(this, n, t, e)) : this.destroyNode(n, t, e);
}
};
e.prototype.destroyNode = function(t, e, n) {
t.destroy();
delete this.curOnPanelDic[e];
this.isPanelClosing = !1;
n && n();
};
e.prototype.getUrlByPanelType = function(t, e) {
var n = "";
switch (e) {
case s.game:
n = this.gamePanelbUrl + "/" + t;
break;

case s.module:
n = this.modulPanelUrl + "/" + t + "/" + t;
}
return n;
};
return r([ l ], e);
}(cc.Component));
n.default = u;
(function(t) {
t[t.normal = 0] = "normal";
t[t.closeOther = 1] = "closeOther";
t[t.closeLast = 2] = "closeLast";
})(a = n.OpenActionType || (n.OpenActionType = {}));
(function(t) {
t[t.game = 1] = "game";
t[t.module = 2] = "module";
})(s = n.PanelType || (n.PanelType = {}));
cc._RF.pop();
}, {} ],
UITween: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "a20d9E+N7FBiIV7z1whuT6J", "UITween");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.UITween = n.TweenData = n.PropsData = void 0;
var a = t("./TweenEasing"), s = cc._decorator, c = s.ccclass, l = s.property, u = s.executeInEditMode, p = s.playOnFocus, d = function() {
function t() {
this.position = cc.Vec2.ZERO;
this.angle = 0;
this.scale = 1;
}
r([ l({
displayName: "坐标"
}) ], t.prototype, "position", void 0);
r([ l({
displayName: "旋转"
}) ], t.prototype, "angle", void 0);
r([ l({
displayName: "缩放"
}) ], t.prototype, "scale", void 0);
return r([ c("PropsData") ], t);
}();
n.PropsData = d;
var h = function() {
function t() {
this.propsData = new d();
this.duration = .3;
this.delay = 0;
this.isOffset = !1;
this.onComplete = new cc.Component.EventHandler();
this.onStart = new cc.Component.EventHandler();
this.onUpdate = new cc.Component.EventHandler();
}
r([ l({
displayName: "属性数据",
type: d
}) ], t.prototype, "propsData", void 0);
r([ l({
displayName: "持续时间",
tooltip: "单位：秒"
}) ], t.prototype, "duration", void 0);
r([ l({
displayName: "延迟时间",
tooltip: "单位：秒"
}) ], t.prototype, "delay", void 0);
r([ l({
displayName: "是否为差值"
}) ], t.prototype, "isOffset", void 0);
r([ l({
displayName: "完成回调",
tooltip: "缓动完成时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onComplete", void 0);
r([ l({
displayName: "开始回调",
tooltip: "缓动启动时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onStart", void 0);
r([ l({
displayName: "过程回调",
tooltip: "缓动更新时触发",
type: cc.Component.EventHandler
}) ], t.prototype, "onUpdate", void 0);
return r([ c("TweenData") ], t);
}();
n.TweenData = h;
var f = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.fromData = new d();
e.targetData = [];
e.target = null;
e.tweenEasing = a.TweenEasing.linear;
e.repeat = 1;
e.onOneRepeatComplete = new cc.Component.EventHandler();
e.playOnLoad = !1;
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
this.target && t && this.target.stopAllActions();
t || (this.edit_playing = !1);
},
enumerable: !1,
configurable: !0
});
e.prototype.start = function() {
!this.target && (this.target = this.node);
this.target = this.target || this.node;
this.currentRepeat = this.repeat;
this.playOnLoad && this.play();
};
e.prototype.play = function() {
if (0 == this.repeat) {
this.t = cc.tween(this.target);
this.readyPlay();
this.t = this.t.call(this.play.bind(this));
this.t.start();
} else if (this.currentRepeat) {
this.t = cc.tween(this.target);
this.readyPlay();
this.t = this.t.call(this.play.bind(this));
this.currentRepeat--;
this.t.start();
} else this.t = null;
};
e.prototype.readyPlay = function() {
var t = this, e = this;
if (this.fromData) {
this.node.setPosition(this.fromData.position.clone());
this.node.scale = this.fromData.scale;
this.node.angle = this.fromData.angle;
}
if (this.targetData.length) for (var n = function(e) {
var n = o.targetData[e];
0 != n.delay && (o.t = o.t.delay(n.delay));
var i = {
position: n.propsData.position,
scale: n.propsData.scale,
angle: n.propsData.angle
};
if (n.isOffset) {
i.position = o.node.getPosition().add(n.propsData.position);
i.scale = o.node.scale + n.propsData.scale;
i.angle = o.node.angle + n.propsData.angle;
}
o.t = o.t.to(n.duration, i, {
easing: a.TweenEasing[o.tweenEasing],
onComplete: function(e) {
n.onComplete && n.onComplete.emit([ e ]);
t.edit_playing = !1;
t._edit_play = !1;
},
onStart: function(t) {
n.onStart && n.onStart.emit([ t ]);
},
onUpdate: function(t, e) {
n.onUpdate && n.onUpdate.emit([ t, e ]);
}
});
}, o = this, i = 0; i < this.targetData.length; i++) n(i);
this.onOneRepeatComplete && (this.t = this.t.call(function() {
e.onOneRepeatComplete.emit([ t, t.t ]);
}));
};
r([ l({
displayName: "节点初始属性",
type: d
}) ], e.prototype, "fromData", void 0);
r([ l({
displayName: "节点目标属性",
type: h
}) ], e.prototype, "targetData", void 0);
r([ l({
displayName: "缓动节点",
tooltip: "要播放缓动动画的目标，不填则是当前节点",
type: cc.Node
}) ], e.prototype, "target", void 0);
r([ l({
displayName: "缓动效果",
type: cc.Enum(a.TweenEasing)
}) ], e.prototype, "tweenEasing", void 0);
r([ l({
displayName: "执行次数",
tooltip: "为0则一直重复执行"
}) ], e.prototype, "repeat", void 0);
r([ l({
displayName: "单次完成回调",
tooltip: "单次缓动序列执行完毕时触发",
type: cc.Component.EventHandler
}) ], e.prototype, "onOneRepeatComplete", void 0);
r([ l({
displayName: "自动播放"
}) ], e.prototype, "playOnLoad", void 0);
r([ l({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ c, u(), p() ], e);
}(cc.Component);
n.UITween = f;
cc._RF.pop();
}, {
"./TweenEasing": "TweenEasing"
} ],
WechatData: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "0aab3VQlrZMjrgZBNpwRrMu", "WechatData");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.WechatData = void 0;
n.WechatData = function() {
this.shareSuccess = !1;
};
cc._RF.pop();
}, {} ],
ZPathFalling: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "082f6uNVupAbqC0Fkz1/TCB", "ZPathFalling");
var o, i = this && this.__extends || (o = function(t, e) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(t, e) {
t.__proto__ = e;
} || function(t, e) {
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
})(t, e);
}, function(t, e) {
o(t, e);
function n() {
this.constructor = t;
}
t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
}), r = this && this.__decorate || function(t, e, n, o) {
var i, r = arguments.length, a = r < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(t, e, n, o); else for (var s = t.length - 1; s >= 0; s--) (i = t[s]) && (a = (r < 3 ? i(a) : r > 3 ? i(e, n, a) : i(e, n)) || a);
return r > 3 && a && Object.defineProperty(e, n, a), a;
};
Object.defineProperty(n, "__esModule", {
value: !0
});
var a = cc._decorator, s = a.ccclass, c = a.property, l = a.executeInEditMode, u = a.playOnFocus, p = function(t) {
i(e, t);
function e() {
var e = null !== t && t.apply(this, arguments) || this;
e.play_on_load = !0;
e.onComplete = new cc.Component.EventHandler();
e._edit_play = !1;
e.edit_playing = !1;
return e;
}
Object.defineProperty(e.prototype, "edit_play", {
get: function() {
if (this._edit_play && !this.edit_playing) {
this.edit_playing = !0;
this.play();
}
return this._edit_play;
},
set: function(t) {
this._edit_play = t;
t || this.stop();
},
enumerable: !1,
configurable: !0
});
e.prototype.onLoad = function() {};
e.prototype.start = function() {
this.play_on_load && this.play();
};
e.prototype.play = function() {
var t = this, e = this.node.getPosition(), n = this.node.getPosition(), o = this.node.getPosition();
if (this.node.x >= 0) {
e.x -= 3 * this.node.width;
n.x -= 1 * this.node.width;
o.x -= 2 * this.node.width;
} else {
e.x += 3 * this.node.width;
n.x += 1 * this.node.width;
o.x += 2 * this.node.width;
}
e.y -= this.node.height / 2;
n.y -= this.node.height;
o.y -= 1.2 * this.node.height;
var i = cc.tween().to(.5, {
position: e
}, {
easing: "cubicOut"
}), r = cc.tween().to(.5, {
position: n
}, {
easing: "cubicOut"
}), a = cc.tween().to(.5, {
position: o
}, {
easing: "cubicOut"
}), s = cc.tween().call(function() {
t.edit_playing = !1;
t.edit_play = !1;
t.onComplete.handler && t.onComplete.emit([ t.node ]);
});
cc.tween(this.node).then(i).then(r).then(a).then(s).start();
};
e.prototype.stop = function() {
this.edit_playing = !1;
this.node.stopAllActions();
};
r([ c({
displayName: "自动播放"
}) ], e.prototype, "play_on_load", void 0);
r([ c({
displayName: "完成回调",
type: cc.Component.EventHandler
}) ], e.prototype, "onComplete", void 0);
r([ c({
displayName: "编辑器预览"
}) ], e.prototype, "edit_play", null);
return r([ s, l(), u() ], e);
}(cc.Component);
n.default = p;
cc._RF.pop();
}, {} ],
aes: [ function(t, e) {
"use strict";
cc._RF.push(e, "19ca92Vo+9AL7z4EqtukKt7", "aes");
var n, o, i = i || function(t) {
var e = {}, n = e.lib = {}, o = function() {}, i = n.Base = {
extend: function(t) {
o.prototype = this;
var e = new o();
t && e.mixIn(t);
e.hasOwnProperty("init") || (e.init = function() {
e.$super.init.apply(this, arguments);
});
e.init.prototype = e;
e.$super = this;
return e;
},
create: function() {
var t = this.extend();
t.init.apply(t, arguments);
return 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);
}
}, r = n.WordArray = i.extend({
init: function(t, e) {
t = this.words = t || [];
this.sigBytes = null != e ? e : 4 * t.length;
},
toString: function(t) {
return (t || s).stringify(this);
},
concat: function(t) {
var e = this.words, n = t.words, o = this.sigBytes;
t = t.sigBytes;
this.clamp();
if (o % 4) for (var i = 0; i < t; i++) e[o + i >>> 2] |= (n[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 24 - (o + i) % 4 * 8; else if (65535 < n.length) for (i = 0; i < t; i += 4) e[o + i >>> 2] = n[i >>> 2]; else e.push.apply(e, n);
this.sigBytes += t;
return this;
},
clamp: function() {
var e = this.words, n = this.sigBytes;
e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8;
e.length = t.ceil(n / 4);
},
clone: function() {
var t = i.clone.call(this);
t.words = this.words.slice(0);
return t;
},
random: function(e) {
for (var n = [], o = 0; o < e; o += 4) n.push(4294967296 * t.random() | 0);
return new r.init(n, e);
}
}), a = e.enc = {}, s = a.Hex = {
stringify: function(t) {
var e = t.words;
t = t.sigBytes;
for (var n = [], o = 0; o < t; o++) {
var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
n.push((i >>> 4).toString(16));
n.push((15 & i).toString(16));
}
return n.join("");
},
parse: function(t) {
for (var e = t.length, n = [], o = 0; o < e; o += 2) n[o >>> 3] |= parseInt(t.substr(o, 2), 16) << 24 - o % 8 * 4;
return new r.init(n, e / 2);
}
}, c = a.Latin1 = {
stringify: function(t) {
var e = t.words;
t = t.sigBytes;
for (var n = [], o = 0; o < t; o++) n.push(String.fromCharCode(e[o >>> 2] >>> 24 - o % 4 * 8 & 255));
return n.join("");
},
parse: function(t) {
for (var e = t.length, n = [], o = 0; o < e; o++) n[o >>> 2] |= (255 & t.charCodeAt(o)) << 24 - o % 4 * 8;
return new r.init(n, e);
}
}, l = a.Utf8 = {
stringify: function(t) {
try {
return decodeURIComponent(escape(c.stringify(t)));
} catch (t) {
throw Error("Malformed UTF-8 data");
}
},
parse: function(t) {
return c.parse(unescape(encodeURIComponent(t)));
}
}, u = n.BufferedBlockAlgorithm = i.extend({
reset: function() {
this._data = new r.init();
this._nDataBytes = 0;
},
_append: function(t) {
"string" == typeof t && (t = l.parse(t));
this._data.concat(t);
this._nDataBytes += t.sigBytes;
},
_process: function(e) {
var n = this._data, o = n.words, i = n.sigBytes, a = this.blockSize, s = i / (4 * a);
e = (s = e ? t.ceil(s) : t.max((0 | s) - this._minBufferSize, 0)) * a;
i = t.min(4 * e, i);
if (e) {
for (var c = 0; c < e; c += a) this._doProcessBlock(o, c);
c = o.splice(0, e);
n.sigBytes -= i;
}
return new r.init(c, i);
},
clone: function() {
var t = i.clone.call(this);
t._data = this._data.clone();
return t;
},
_minBufferSize: 0
});
n.Hasher = u.extend({
cfg: i.extend(),
init: function(t) {
this.cfg = this.cfg.extend(t);
this.reset();
},
reset: function() {
u.reset.call(this);
this._doReset();
},
update: function(t) {
this._append(t);
this._process();
return this;
},
finalize: function(t) {
t && this._append(t);
return this._doFinalize();
},
blockSize: 16,
_createHelper: function(t) {
return function(e, n) {
return new t.init(n).finalize(e);
};
},
_createHmacHelper: function(t) {
return function(e, n) {
return new p.HMAC.init(t, n).finalize(e);
};
}
});
var p = e.algo = {};
return e;
}(Math);
o = (n = i).lib.WordArray, n.enc.Base64 = {
stringify: function(t) {
var e = t.words, n = t.sigBytes, o = this._map;
t.clamp();
t = [];
for (var i = 0; i < n; i += 3) for (var r = (e[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (e[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | e[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; 4 > a && i + .75 * a < n; a++) t.push(o.charAt(r >>> 6 * (3 - a) & 63));
if (e = o.charAt(64)) for (;t.length % 4; ) t.push(e);
return t.join("");
},
parse: function(t) {
var e = t.length, n = this._map;
(i = n.charAt(64)) && -1 != (i = t.indexOf(i)) && (e = i);
for (var i = [], r = 0, a = 0; a < e; a++) if (a % 4) {
var s = n.indexOf(t.charAt(a - 1)) << a % 4 * 2, c = n.indexOf(t.charAt(a)) >>> 6 - a % 4 * 2;
i[r >>> 2] |= (s | c) << 24 - r % 4 * 8;
r++;
}
return o.create(i, r);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
};
(function(t) {
function e(t, e, n, o, i, r, a) {
return ((t = t + (e & n | ~e & o) + i + a) << r | t >>> 32 - r) + e;
}
function n(t, e, n, o, i, r, a) {
return ((t = t + (e & o | n & ~o) + i + a) << r | t >>> 32 - r) + e;
}
function o(t, e, n, o, i, r, a) {
return ((t = t + (e ^ n ^ o) + i + a) << r | t >>> 32 - r) + e;
}
function r(t, e, n, o, i, r, a) {
return ((t = t + (n ^ (e | ~o)) + i + a) << r | t >>> 32 - r) + e;
}
for (var a = i, s = (l = a.lib).WordArray, c = l.Hasher, l = a.algo, u = [], p = 0; 64 > p; p++) u[p] = 4294967296 * t.abs(t.sin(p + 1)) | 0;
l = l.MD5 = c.extend({
_doReset: function() {
this._hash = new s.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
},
_doProcessBlock: function(t, i) {
for (var a = 0; 16 > a; a++) {
var s = t[c = i + a];
t[c] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8);
}
a = this._hash.words;
var c = t[i + 0], l = (s = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], _ = t[i + 8], g = t[i + 9], v = t[i + 10], m = t[i + 11], A = t[i + 12], S = t[i + 13], b = t[i + 14], w = t[i + 15], O = e(O = a[0], I = a[1], T = a[2], D = a[3], c, 7, u[0]), D = e(D, O, I, T, s, 12, u[1]), T = e(T, D, O, I, l, 17, u[2]), I = e(I, T, D, O, p, 22, u[3]);
O = e(O, I, T, D, d, 7, u[4]), D = e(D, O, I, T, h, 12, u[5]), T = e(T, D, O, I, f, 17, u[6]), 
I = e(I, T, D, O, y, 22, u[7]), O = e(O, I, T, D, _, 7, u[8]), D = e(D, O, I, T, g, 12, u[9]), 
T = e(T, D, O, I, v, 17, u[10]), I = e(I, T, D, O, m, 22, u[11]), O = e(O, I, T, D, A, 7, u[12]), 
D = e(D, O, I, T, S, 12, u[13]), T = e(T, D, O, I, b, 17, u[14]), O = n(O, I = e(I, T, D, O, w, 22, u[15]), T, D, s, 5, u[16]), 
D = n(D, O, I, T, f, 9, u[17]), T = n(T, D, O, I, m, 14, u[18]), I = n(I, T, D, O, c, 20, u[19]), 
O = n(O, I, T, D, h, 5, u[20]), D = n(D, O, I, T, v, 9, u[21]), T = n(T, D, O, I, w, 14, u[22]), 
I = n(I, T, D, O, d, 20, u[23]), O = n(O, I, T, D, g, 5, u[24]), D = n(D, O, I, T, b, 9, u[25]), 
T = n(T, D, O, I, p, 14, u[26]), I = n(I, T, D, O, _, 20, u[27]), O = n(O, I, T, D, S, 5, u[28]), 
D = n(D, O, I, T, l, 9, u[29]), T = n(T, D, O, I, y, 14, u[30]), O = o(O, I = n(I, T, D, O, A, 20, u[31]), T, D, h, 4, u[32]), 
D = o(D, O, I, T, _, 11, u[33]), T = o(T, D, O, I, m, 16, u[34]), I = o(I, T, D, O, b, 23, u[35]), 
O = o(O, I, T, D, s, 4, u[36]), D = o(D, O, I, T, d, 11, u[37]), T = o(T, D, O, I, y, 16, u[38]), 
I = o(I, T, D, O, v, 23, u[39]), O = o(O, I, T, D, S, 4, u[40]), D = o(D, O, I, T, c, 11, u[41]), 
T = o(T, D, O, I, p, 16, u[42]), I = o(I, T, D, O, f, 23, u[43]), O = o(O, I, T, D, g, 4, u[44]), 
D = o(D, O, I, T, A, 11, u[45]), T = o(T, D, O, I, w, 16, u[46]), O = r(O, I = o(I, T, D, O, l, 23, u[47]), T, D, c, 6, u[48]), 
D = r(D, O, I, T, y, 10, u[49]), T = r(T, D, O, I, b, 15, u[50]), I = r(I, T, D, O, h, 21, u[51]), 
O = r(O, I, T, D, A, 6, u[52]), D = r(D, O, I, T, p, 10, u[53]), T = r(T, D, O, I, v, 15, u[54]), 
I = r(I, T, D, O, s, 21, u[55]), O = r(O, I, T, D, _, 6, u[56]), D = r(D, O, I, T, w, 10, u[57]), 
T = r(T, D, O, I, f, 15, u[58]), I = r(I, T, D, O, S, 21, u[59]), O = r(O, I, T, D, d, 6, u[60]), 
D = r(D, O, I, T, m, 10, u[61]), T = r(T, D, O, I, l, 15, u[62]), I = r(I, T, D, O, g, 21, u[63]);
a[0] = a[0] + O | 0;
a[1] = a[1] + I | 0;
a[2] = a[2] + T | 0;
a[3] = a[3] + D | 0;
},
_doFinalize: function() {
var e = this._data, n = e.words, o = 8 * this._nDataBytes, i = 8 * e.sigBytes;
n[i >>> 5] |= 128 << 24 - i % 32;
var r = t.floor(o / 4294967296);
n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
e.sigBytes = 4 * (n.length + 1);
this._process();
n = (e = this._hash).words;
for (o = 0; 4 > o; o++) i = n[o], n[o] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
return e;
},
clone: function() {
var t = c.clone.call(this);
t._hash = this._hash.clone();
return t;
}
});
a.MD5 = c._createHelper(l);
a.HmacMD5 = c._createHmacHelper(l);
})(Math);
(function() {
var t, e = i, n = (t = e.lib).Base, o = t.WordArray, r = (t = e.algo).EvpKDF = n.extend({
cfg: n.extend({
keySize: 4,
hasher: t.MD5,
iterations: 1
}),
init: function(t) {
this.cfg = this.cfg.extend(t);
},
compute: function(t, e) {
for (var n = (s = this.cfg).hasher.create(), i = o.create(), r = i.words, a = s.keySize, s = s.iterations; r.length < a; ) {
c && n.update(c);
var c = n.update(t).finalize(e);
n.reset();
for (var l = 1; l < s; l++) c = n.finalize(c), n.reset();
i.concat(c);
}
i.sigBytes = 4 * a;
return i;
}
});
e.EvpKDF = function(t, e, n) {
return r.create(n).compute(t, e);
};
})();
i.lib.Cipher || function() {
var t = (h = i).lib, e = t.Base, n = t.WordArray, o = t.BufferedBlockAlgorithm, r = h.enc.Base64, a = h.algo.EvpKDF, s = t.Cipher = o.extend({
cfg: e.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, n) {
this.cfg = this.cfg.extend(n);
this._xformMode = t;
this._key = e;
this.reset();
},
reset: function() {
o.reset.call(this);
this._doReset();
},
process: function(t) {
this._append(t);
return this._process();
},
finalize: function(t) {
t && this._append(t);
return this._doFinalize();
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function(t) {
return {
encrypt: function(e, n, o) {
return ("string" == typeof n ? f : d).encrypt(t, e, n, o);
},
decrypt: function(e, n, o) {
return ("string" == typeof n ? f : d).decrypt(t, e, n, o);
}
};
}
});
t.StreamCipher = s.extend({
_doFinalize: function() {
return this._process(!0);
},
blockSize: 1
});
var c = h.mode = {}, l = function(t, e, n) {
var o = this._iv;
o ? this._iv = void 0 : o = this._prevBlock;
for (var i = 0; i < n; i++) t[e + i] ^= o[i];
}, u = (t.BlockCipherMode = e.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;
}
})).extend();
u.Encryptor = u.extend({
processBlock: function(t, e) {
var n = this._cipher, o = n.blockSize;
l.call(this, t, e, o);
n.encryptBlock(t, e);
this._prevBlock = t.slice(e, e + o);
}
});
u.Decryptor = u.extend({
processBlock: function(t, e) {
var n = this._cipher, o = n.blockSize, i = t.slice(e, e + o);
n.decryptBlock(t, e);
l.call(this, t, e, o);
this._prevBlock = i;
}
});
c = c.CBC = u;
u = (h.pad = {}).Pkcs7 = {
pad: function(t, e) {
for (var o, i = (o = (o = 4 * e) - t.sigBytes % o) << 24 | o << 16 | o << 8 | o, r = [], a = 0; a < o; a += 4) r.push(i);
o = n.create(r, o);
t.concat(o);
},
unpad: function(t) {
t.sigBytes -= 255 & t.words[t.sigBytes - 1 >>> 2];
}
};
t.BlockCipher = s.extend({
cfg: s.cfg.extend({
mode: c,
padding: u
}),
reset: function() {
s.reset.call(this);
var t = (e = this.cfg).iv, e = e.mode;
if (this._xformMode == this._ENC_XFORM_MODE) var n = e.createEncryptor; else n = e.createDecryptor, 
this._minBufferSize = 1;
this._mode = n.call(e, this, t && t.words);
},
_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
});
var p = t.CipherParams = e.extend({
init: function(t) {
this.mixIn(t);
},
toString: function(t) {
return (t || this.formatter).stringify(this);
}
}), d = (c = (h.format = {}).OpenSSL = {
stringify: function(t) {
var e = t.ciphertext;
return ((t = t.salt) ? n.create([ 1398893684, 1701076831 ]).concat(t).concat(e) : e).toString(r);
},
parse: function(t) {
var e = (t = r.parse(t)).words;
if (1398893684 == e[0] && 1701076831 == e[1]) {
var o = n.create(e.slice(2, 4));
e.splice(0, 4);
t.sigBytes -= 16;
}
return p.create({
ciphertext: t,
salt: o
});
}
}, t.SerializableCipher = e.extend({
cfg: e.extend({
format: c
}),
encrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
var i = t.createEncryptor(n, o);
e = i.finalize(e);
i = i.cfg;
return p.create({
ciphertext: e,
key: n,
iv: i.iv,
algorithm: t,
mode: i.mode,
padding: i.padding,
blockSize: t.blockSize,
formatter: o.format
});
},
decrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
e = this._parse(e, o.format);
return t.createDecryptor(n, o).finalize(e.ciphertext);
},
_parse: function(t, e) {
return "string" == typeof t ? e.parse(t, this) : t;
}
})), h = (h.kdf = {}).OpenSSL = {
execute: function(t, e, o, i) {
i || (i = n.random(8));
t = a.create({
keySize: e + o
}).compute(t, i);
o = n.create(t.words.slice(e), 4 * o);
t.sigBytes = 4 * e;
return p.create({
key: t,
iv: o,
salt: i
});
}
}, f = t.PasswordBasedCipher = d.extend({
cfg: d.cfg.extend({
kdf: h
}),
encrypt: function(t, e, n, o) {
n = (o = this.cfg.extend(o)).kdf.execute(n, t.keySize, t.ivSize);
o.iv = n.iv;
(t = d.encrypt.call(this, t, e, n.key, o)).mixIn(n);
return t;
},
decrypt: function(t, e, n, o) {
o = this.cfg.extend(o);
e = this._parse(e, o.format);
n = o.kdf.execute(n, t.keySize, t.ivSize, e.salt);
o.iv = n.iv;
return d.decrypt.call(this, t, e, n.key, o);
}
});
}();
(function() {
for (var t = i, e = t.lib.BlockCipher, n = t.algo, o = [], r = [], a = [], s = [], c = [], l = [], u = [], p = [], d = [], h = [], f = [], y = 0; 256 > y; y++) f[y] = 128 > y ? y << 1 : y << 1 ^ 283;
var _ = 0, g = 0;
for (y = 0; 256 > y; y++) {
var v = (v = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4) >>> 8 ^ 255 & v ^ 99;
o[_] = v;
r[v] = _;
var m = f[_], A = f[m], S = f[A], b = 257 * f[v] ^ 16843008 * v;
a[_] = b << 24 | b >>> 8;
s[_] = b << 16 | b >>> 16;
c[_] = b << 8 | b >>> 24;
l[_] = b;
b = 16843009 * S ^ 65537 * A ^ 257 * m ^ 16843008 * _;
u[v] = b << 24 | b >>> 8;
p[v] = b << 16 | b >>> 16;
d[v] = b << 8 | b >>> 24;
h[v] = b;
_ ? (_ = m ^ f[f[f[S ^ m]]], g ^= f[f[g]]) : _ = g = 1;
}
var w = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
n = n.AES = e.extend({
_doReset: function() {
for (var t = (n = this._key).words, e = n.sigBytes / 4, n = 4 * ((this._nRounds = e + 6) + 1), i = this._keySchedule = [], r = 0; r < n; r++) if (r < e) i[r] = t[r]; else {
var a = i[r - 1];
r % e ? 6 < e && 4 == r % e && (a = o[a >>> 24] << 24 | o[a >>> 16 & 255] << 16 | o[a >>> 8 & 255] << 8 | o[255 & a]) : (a = o[(a = a << 8 | a >>> 24) >>> 24] << 24 | o[a >>> 16 & 255] << 16 | o[a >>> 8 & 255] << 8 | o[255 & a], 
a ^= w[r / e | 0] << 24);
i[r] = i[r - e] ^ a;
}
t = this._invKeySchedule = [];
for (e = 0; e < n; e++) r = n - e, a = e % 4 ? i[r] : i[r - 4], t[e] = 4 > e || 4 >= r ? a : u[o[a >>> 24]] ^ p[o[a >>> 16 & 255]] ^ d[o[a >>> 8 & 255]] ^ h[o[255 & a]];
},
encryptBlock: function(t, e) {
this._doCryptBlock(t, e, this._keySchedule, a, s, c, l, o);
},
decryptBlock: function(t, e) {
var n = t[e + 1];
t[e + 1] = t[e + 3];
t[e + 3] = n;
this._doCryptBlock(t, e, this._invKeySchedule, u, p, d, h, r);
n = t[e + 1];
t[e + 1] = t[e + 3];
t[e + 3] = n;
},
_doCryptBlock: function(t, e, n, o, i, r, a, s) {
for (var c = this._nRounds, l = t[e] ^ n[0], u = t[e + 1] ^ n[1], p = t[e + 2] ^ n[2], d = t[e + 3] ^ n[3], h = 4, f = 1; f < c; f++) {
var y = o[l >>> 24] ^ i[u >>> 16 & 255] ^ r[p >>> 8 & 255] ^ a[255 & d] ^ n[h++], _ = o[u >>> 24] ^ i[p >>> 16 & 255] ^ r[d >>> 8 & 255] ^ a[255 & l] ^ n[h++], g = o[p >>> 24] ^ i[d >>> 16 & 255] ^ r[l >>> 8 & 255] ^ a[255 & u] ^ n[h++];
d = o[d >>> 24] ^ i[l >>> 16 & 255] ^ r[u >>> 8 & 255] ^ a[255 & p] ^ n[h++], l = y, 
u = _, p = g;
}
y = (s[l >>> 24] << 24 | s[u >>> 16 & 255] << 16 | s[p >>> 8 & 255] << 8 | s[255 & d]) ^ n[h++];
_ = (s[u >>> 24] << 24 | s[p >>> 16 & 255] << 16 | s[d >>> 8 & 255] << 8 | s[255 & l]) ^ n[h++];
g = (s[p >>> 24] << 24 | s[d >>> 16 & 255] << 16 | s[l >>> 8 & 255] << 8 | s[255 & u]) ^ n[h++];
d = (s[d >>> 24] << 24 | s[l >>> 16 & 255] << 16 | s[u >>> 8 & 255] << 8 | s[255 & p]) ^ n[h++];
t[e] = y;
t[e + 1] = _;
t[e + 2] = g;
t[e + 3] = d;
},
keySize: 8
});
t.AES = e._createHelper(n);
})();
e.exports = i;
cc._RF.pop();
}, {} ],
base64: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "46dba/4JnZL8LqBzMYhW9lP", "base64");
Object.defineProperty(n, "__esModule", {
value: !0
});
var o = function() {
function t() {
this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
this._utf8_encode = function(t) {
t = t.replace(/\r\n/g, "\n");
for (var e = "", n = 0; n < t.length; n++) {
var o = t.charCodeAt(n);
if (o < 128) e += String.fromCharCode(o); else if (o > 127 && o < 2048) {
e += String.fromCharCode(o >> 6 | 192);
e += String.fromCharCode(63 & o | 128);
} else {
e += String.fromCharCode(o >> 12 | 224);
e += String.fromCharCode(o >> 6 & 63 | 128);
e += String.fromCharCode(63 & o | 128);
}
}
return e;
};
this._utf8_decode = function(t) {
for (var e = "", n = 0, o = 0, i = 0, r = 0; n < t.length; ) if ((o = t.charCodeAt(n)) < 128) {
e += String.fromCharCode(o);
n++;
} else if (o > 191 && o < 224) {
i = t.charCodeAt(n + 1);
e += String.fromCharCode((31 & o) << 6 | 63 & i);
n += 2;
} else {
i = t.charCodeAt(n + 1);
r = t.charCodeAt(n + 2);
e += String.fromCharCode((15 & o) << 12 | (63 & i) << 6 | 63 & r);
n += 3;
}
return e;
};
}
Object.defineProperty(t, "Instance", {
get: function() {
this.instance || (this.instance = new t());
return this.instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.encode = function(t) {
for (var e, n, o, i, r, a, s, c = "", l = 0, u = this._utf8_encode(t); l < u.length; ) {
i = (e = u.charCodeAt(l++)) >> 2;
r = (3 & e) << 4 | (n = u.charCodeAt(l++)) >> 4;
a = (15 & n) << 2 | (o = u.charCodeAt(l++)) >> 6;
s = 63 & o;
isNaN(n) ? a = s = 64 : isNaN(o) && (s = 64);
c = c + this._keyStr.charAt(i) + this._keyStr.charAt(r) + this._keyStr.charAt(a) + this._keyStr.charAt(s);
}
return c;
};
t.prototype.decode = function(t) {
for (var e, n, o, i, r, a, s = "", c = 0, l = t.replace(/[^A-Za-z0-9\+\/\=]/g, ""); c < l.length; ) {
e = this._keyStr.indexOf(l.charAt(c++)) << 2 | (i = this._keyStr.indexOf(l.charAt(c++))) >> 4;
n = (15 & i) << 4 | (r = this._keyStr.indexOf(l.charAt(c++))) >> 2;
o = (3 & r) << 6 | (a = this._keyStr.indexOf(l.charAt(c++)));
s += String.fromCharCode(e);
64 != r && (s += String.fromCharCode(n));
64 != a && (s += String.fromCharCode(o));
}
return this._utf8_decode(s);
};
t.instance = null;
return t;
}();
n.default = o;
cc._RF.pop();
}, {} ],
g: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ecf8bVXcydMJp8MoKs1bFep", "g");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.Fun = void 0;
var o = t("./AdData"), i = t("./AppData"), r = t("./GameData"), a = t("./HttpData"), s = t("./LoginData"), c = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/PushData"), y = t("./module/FissionData"), _ = t("./module/LuckyBagData"), g = t("./module/CashNormalData"), v = t("./module/CashPigData"), m = t("./EnumData"), A = function() {
function t() {
this.init();
}
t.prototype.init = function() {
this.appData = new i.AppData();
this.loginData = new s.LoginData();
this.gameData = new r.GameData();
this.wechatData = new l.WechatData();
this.httpData = new a.HttpData();
this.adData = new o.AdData();
this.enum = new m.EnumData();
this.storageData = new c.StorageData();
this.help = new u.HelpData();
this.pigbank = new p.PigBankData();
this.push = new f.PushData();
this.turnable = new d.TurnableData();
this.fission = new y.FissionData();
this.pigbank = new p.PigBankData();
this.luckybag = new _.LuckyBagData();
this.sign = new h.SignData();
this.cashNormal = new g.CashNormalData();
this.cashPig = new v.CashPigData();
};
return t;
}();
(function(t) {
t[t.push = 1] = "push";
t[t.turnable = 2] = "turnable";
t[t.fission = 3] = "fission";
t[t.pigbank = 4] = "pigbank";
t[t.luckybag = 5] = "luckybag";
t[t.sign = 6] = "sign";
t[t.cashNormal = 7] = "cashNormal";
t[t.cashPig = 8] = "cashPig";
})(n.Fun || (n.Fun = {}));
window.g = new A();
cc._RF.pop();
}, {
"./AdData": "AdData",
"./AppData": "AppData",
"./EnumData": "EnumData",
"./GameData": "GameData",
"./HttpData": "HttpData",
"./LoginData": "LoginData",
"./StorageData": "StorageData",
"./WechatData": "WechatData",
"./module/CashNormalData": "CashNormalData",
"./module/CashPigData": "CashPigData",
"./module/FissionData": "FissionData",
"./module/HelpData": "HelpData",
"./module/LuckyBagData": "LuckyBagData",
"./module/PigBankData": "PigBankData",
"./module/PushData": "PushData",
"./module/SignData": "SignData",
"./module/TurnableData": "TurnableData"
} ],
hmacSha256: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "ab38aGoq49Irq9jzitxW0Z3", "hmacSha256");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.hmacSha256 = void 0;
var o = function() {
function t() {
this.hexcase = 0;
this.b64pad = "";
this.sha256_K = new Array(1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, -1538233109, -1090935817, -965641998);
}
Object.defineProperty(t, "Instance", {
get: function() {
this.instance || (this.instance = new t());
return this.instance;
},
enumerable: !1,
configurable: !0
});
t.prototype.hex_sha256 = function(t) {
return this.rstr2hex(this.rstr_sha256(this.str2rstr_utf8(t)));
};
t.prototype.b64_sha256 = function(t) {
return this.rstr2b64(this.rstr_sha256(this.str2rstr_utf8(t)));
};
t.prototype.any_sha256 = function(t, e) {
return this.rstr2any(this.rstr_sha256(this.str2rstr_utf8(t)), e);
};
t.prototype.hex_hmac_sha256 = function(t, e) {
return this.rstr2hex(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
};
t.prototype.b64_hmac_sha256 = function(t, e) {
return this.rstr2b64(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
};
t.prototype.any_hmac_sha256 = function(t, e, n) {
return this.rstr2any(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), n);
};
t.prototype.sha256_vm_test = function() {
return "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" == this.hex_sha256("abc").toLowerCase();
};
t.prototype.rstr_sha256 = function(t) {
return this.binb2rstr(this.binb_sha256(this.rstr2binb(t), 8 * t.length));
};
t.prototype.rstr_hmac_sha256 = function(t, e) {
var n = this.rstr2binb(t);
n.length > 16 && (n = this.binb_sha256(n, 8 * t.length));
for (var o = Array(16), i = Array(16), r = 0; r < 16; r++) {
o[r] = 909522486 ^ n[r];
i[r] = 1549556828 ^ n[r];
}
var a = this.binb_sha256(o.concat(this.rstr2binb(e)), 512 + 8 * e.length);
return this.binb2rstr(this.binb_sha256(i.concat(a), 768));
};
t.prototype.rstr2hex = function(t) {
try {
this.hexcase;
} catch (t) {
this.hexcase = 0;
}
for (var e, n = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < t.length; i++) {
e = t.charCodeAt(i);
o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
}
return o;
};
t.prototype.rstr2b64 = function(t) {
try {
this.b64pad;
} catch (t) {
this.b64pad = "";
}
for (var e = "", n = t.length, o = 0; o < n; o += 3) for (var i = t.charCodeAt(o) << 16 | (o + 1 < n ? t.charCodeAt(o + 1) << 8 : 0) | (o + 2 < n ? t.charCodeAt(o + 2) : 0), r = 0; r < 4; r++) 8 * o + 6 * r > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i >>> 6 * (3 - r) & 63);
return e;
};
t.prototype.rstr2any = function(t, e) {
var n, o, i, r, a = e.length, s = Array(), c = Array(Math.ceil(t.length / 2));
for (n = 0; n < c.length; n++) c[n] = t.charCodeAt(2 * n) << 8 | t.charCodeAt(2 * n + 1);
for (;c.length > 0; ) {
r = Array();
i = 0;
for (n = 0; n < c.length; n++) {
i = (i << 16) + c[n];
i -= (o = Math.floor(i / a)) * a;
(r.length > 0 || o > 0) && (r[r.length] = o);
}
s[s.length] = i;
c = r;
}
var l = "";
for (n = s.length - 1; n >= 0; n--) l += e.charAt(s[n]);
var u = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2)));
for (n = l.length; n < u; n++) l = e[0] + l;
return l;
};
t.prototype.str2rstr_utf8 = function(t) {
for (var e, n, o = "", i = -1; ++i < t.length; ) {
e = t.charCodeAt(i);
n = i + 1 < t.length ? t.charCodeAt(i + 1) : 0;
if (55296 <= e && e <= 56319 && 56320 <= n && n <= 57343) {
e = 65536 + ((1023 & e) << 10) + (1023 & n);
i++;
}
e <= 127 ? o += String.fromCharCode(e) : e <= 2047 ? o += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? o += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (o += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
}
return o;
};
t.prototype.str2rstr_utf16le = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(255 & t.charCodeAt(n), t.charCodeAt(n) >>> 8 & 255);
return e;
};
t.prototype.str2rstr_utf16be = function(t) {
for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t.charCodeAt(n) >>> 8 & 255, 255 & t.charCodeAt(n));
return e;
};
t.prototype.rstr2binb = function(t) {
for (var e = Array(t.length >> 2), n = 0; n < e.length; n++) e[n] = 0;
for (n = 0; n < 8 * t.length; n += 8) e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << 24 - n % 32;
return e;
};
t.prototype.binb2rstr = function(t) {
for (var e = "", n = 0; n < 32 * t.length; n += 8) e += String.fromCharCode(t[n >> 5] >>> 24 - n % 32 & 255);
return e;
};
t.prototype.sha256_S = function(t, e) {
return t >>> e | t << 32 - e;
};
t.prototype.sha256_R = function(t, e) {
return t >>> e;
};
t.prototype.sha256_Ch = function(t, e, n) {
return t & e ^ ~t & n;
};
t.prototype.sha256_Maj = function(t, e, n) {
return t & e ^ t & n ^ e & n;
};
t.prototype.sha256_Sigma0256 = function(t) {
return this.sha256_S(t, 2) ^ this.sha256_S(t, 13) ^ this.sha256_S(t, 22);
};
t.prototype.sha256_Sigma1256 = function(t) {
return this.sha256_S(t, 6) ^ this.sha256_S(t, 11) ^ this.sha256_S(t, 25);
};
t.prototype.sha256_Gamma0256 = function(t) {
return this.sha256_S(t, 7) ^ this.sha256_S(t, 18) ^ this.sha256_R(t, 3);
};
t.prototype.sha256_Gamma1256 = function(t) {
return this.sha256_S(t, 17) ^ this.sha256_S(t, 19) ^ this.sha256_R(t, 10);
};
t.prototype.sha256_Sigma0512 = function(t) {
return this.sha256_S(t, 28) ^ this.sha256_S(t, 34) ^ this.sha256_S(t, 39);
};
t.prototype.sha256_Sigma1512 = function(t) {
return this.sha256_S(t, 14) ^ this.sha256_S(t, 18) ^ this.sha256_S(t, 41);
};
t.prototype.sha256_Gamma0512 = function(t) {
return this.sha256_S(t, 1) ^ this.sha256_S(t, 8) ^ this.sha256_R(t, 7);
};
t.prototype.sha256_Gamma1512 = function(t) {
return this.sha256_S(t, 19) ^ this.sha256_S(t, 61) ^ this.sha256_R(t, 6);
};
t.prototype.binb_sha256 = function(t, e) {
var n, o, i, r, a, s, c, l, u, p, d, h, f = new Array(1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, 528734635, 1541459225), y = new Array(64);
t[e >> 5] |= 128 << 24 - e % 32;
t[15 + (e + 64 >> 9 << 4)] = e;
for (u = 0; u < t.length; u += 16) {
n = f[0];
o = f[1];
i = f[2];
r = f[3];
a = f[4];
s = f[5];
c = f[6];
l = f[7];
for (p = 0; p < 64; p++) {
y[p] = p < 16 ? t[p + u] : this.safe_add(this.safe_add(this.safe_add(this.sha256_Gamma1256(y[p - 2]), y[p - 7]), this.sha256_Gamma0256(y[p - 15])), y[p - 16]);
d = this.safe_add(this.safe_add(this.safe_add(this.safe_add(l, this.sha256_Sigma1256(a)), this.sha256_Ch(a, s, c)), this.sha256_K[p]), y[p]);
h = this.safe_add(this.sha256_Sigma0256(n), this.sha256_Maj(n, o, i));
l = c;
c = s;
s = a;
a = this.safe_add(r, d);
r = i;
i = o;
o = n;
n = this.safe_add(d, h);
}
f[0] = this.safe_add(n, f[0]);
f[1] = this.safe_add(o, f[1]);
f[2] = this.safe_add(i, f[2]);
f[3] = this.safe_add(r, f[3]);
f[4] = this.safe_add(a, f[4]);
f[5] = this.safe_add(s, f[5]);
f[6] = this.safe_add(c, f[6]);
f[7] = this.safe_add(l, f[7]);
}
return f;
};
t.prototype.safe_add = function(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
};
t.instance = null;
return t;
}();
n.hmacSha256 = o;
cc._RF.pop();
}, {} ],
md5: [ function(t, e) {
"use strict";
cc._RF.push(e, "45a9cfK7ZRGsb06t/E4+mjC", "md5");
var n = 0, o = 8;
function i(t, e) {
t[e >> 5] |= 128 << e % 32;
t[14 + (e + 64 >>> 9 << 4)] = e;
for (var n = 1732584193, o = -271733879, i = -1732584194, r = 271733878, p = 0; p < t.length; p += 16) {
var d = n, h = o, f = i, y = r;
n = a(n, o, i, r, t[p + 0], 7, -680876936);
r = a(r, n, o, i, t[p + 1], 12, -389564586);
i = a(i, r, n, o, t[p + 2], 17, 606105819);
o = a(o, i, r, n, t[p + 3], 22, -1044525330);
n = a(n, o, i, r, t[p + 4], 7, -176418897);
r = a(r, n, o, i, t[p + 5], 12, 1200080426);
i = a(i, r, n, o, t[p + 6], 17, -1473231341);
o = a(o, i, r, n, t[p + 7], 22, -45705983);
n = a(n, o, i, r, t[p + 8], 7, 1770035416);
r = a(r, n, o, i, t[p + 9], 12, -1958414417);
i = a(i, r, n, o, t[p + 10], 17, -42063);
o = a(o, i, r, n, t[p + 11], 22, -1990404162);
n = a(n, o, i, r, t[p + 12], 7, 1804603682);
r = a(r, n, o, i, t[p + 13], 12, -40341101);
i = a(i, r, n, o, t[p + 14], 17, -1502002290);
n = s(n, o = a(o, i, r, n, t[p + 15], 22, 1236535329), i, r, t[p + 1], 5, -165796510);
r = s(r, n, o, i, t[p + 6], 9, -1069501632);
i = s(i, r, n, o, t[p + 11], 14, 643717713);
o = s(o, i, r, n, t[p + 0], 20, -373897302);
n = s(n, o, i, r, t[p + 5], 5, -701558691);
r = s(r, n, o, i, t[p + 10], 9, 38016083);
i = s(i, r, n, o, t[p + 15], 14, -660478335);
o = s(o, i, r, n, t[p + 4], 20, -405537848);
n = s(n, o, i, r, t[p + 9], 5, 568446438);
r = s(r, n, o, i, t[p + 14], 9, -1019803690);
i = s(i, r, n, o, t[p + 3], 14, -187363961);
o = s(o, i, r, n, t[p + 8], 20, 1163531501);
n = s(n, o, i, r, t[p + 13], 5, -1444681467);
r = s(r, n, o, i, t[p + 2], 9, -51403784);
i = s(i, r, n, o, t[p + 7], 14, 1735328473);
n = c(n, o = s(o, i, r, n, t[p + 12], 20, -1926607734), i, r, t[p + 5], 4, -378558);
r = c(r, n, o, i, t[p + 8], 11, -2022574463);
i = c(i, r, n, o, t[p + 11], 16, 1839030562);
o = c(o, i, r, n, t[p + 14], 23, -35309556);
n = c(n, o, i, r, t[p + 1], 4, -1530992060);
r = c(r, n, o, i, t[p + 4], 11, 1272893353);
i = c(i, r, n, o, t[p + 7], 16, -155497632);
o = c(o, i, r, n, t[p + 10], 23, -1094730640);
n = c(n, o, i, r, t[p + 13], 4, 681279174);
r = c(r, n, o, i, t[p + 0], 11, -358537222);
i = c(i, r, n, o, t[p + 3], 16, -722521979);
o = c(o, i, r, n, t[p + 6], 23, 76029189);
n = c(n, o, i, r, t[p + 9], 4, -640364487);
r = c(r, n, o, i, t[p + 12], 11, -421815835);
i = c(i, r, n, o, t[p + 15], 16, 530742520);
n = l(n, o = c(o, i, r, n, t[p + 2], 23, -995338651), i, r, t[p + 0], 6, -198630844);
r = l(r, n, o, i, t[p + 7], 10, 1126891415);
i = l(i, r, n, o, t[p + 14], 15, -1416354905);
o = l(o, i, r, n, t[p + 5], 21, -57434055);
n = l(n, o, i, r, t[p + 12], 6, 1700485571);
r = l(r, n, o, i, t[p + 3], 10, -1894986606);
i = l(i, r, n, o, t[p + 10], 15, -1051523);
o = l(o, i, r, n, t[p + 1], 21, -2054922799);
n = l(n, o, i, r, t[p + 8], 6, 1873313359);
r = l(r, n, o, i, t[p + 15], 10, -30611744);
i = l(i, r, n, o, t[p + 6], 15, -1560198380);
o = l(o, i, r, n, t[p + 13], 21, 1309151649);
n = l(n, o, i, r, t[p + 4], 6, -145523070);
r = l(r, n, o, i, t[p + 11], 10, -1120210379);
i = l(i, r, n, o, t[p + 2], 15, 718787259);
o = l(o, i, r, n, t[p + 9], 21, -343485551);
n = u(n, d);
o = u(o, h);
i = u(i, f);
r = u(r, y);
}
return Array(n, o, i, r);
}
function r(t, e, n, o, i, r) {
return u((a = u(u(e, t), u(o, r))) << (s = i) | a >>> 32 - s, n);
var a, s;
}
function a(t, e, n, o, i, a, s) {
return r(e & n | ~e & o, t, e, i, a, s);
}
function s(t, e, n, o, i, a, s) {
return r(e & o | n & ~o, t, e, i, a, s);
}
function c(t, e, n, o, i, a, s) {
return r(e ^ n ^ o, t, e, i, a, s);
}
function l(t, e, n, o, i, a, s) {
return r(n ^ (e | ~o), t, e, i, a, s);
}
function u(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
}
function p(t) {
for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << i % 32;
return e;
}
function d(t) {
for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> i % 4 * 8 + 4 & 15) + e.charAt(t[i >> 2] >> i % 4 * 8 & 15);
return o;
}
e.exports = {
hex_md5: function(t) {
return d(i(p(t), t.length * o));
}
};
cc._RF.pop();
}, {} ],
sha1: [ function(t, e) {
"use strict";
cc._RF.push(e, "7bba9WhEiZI5aaSIPCE1/Ng", "sha1");
var n = 0, o = 8;
function i(t, e) {
t[e >> 5] |= 128 << 24 - e % 32;
t[15 + (e + 64 >> 9 << 4)] = e;
for (var n = Array(80), o = 1732584193, i = -271733879, l = -1732584194, u = 271733878, p = -1009589776, d = 0; d < t.length; d += 16) {
for (var h = o, f = i, y = l, _ = u, g = p, v = 0; v < 80; v++) {
n[v] = v < 16 ? t[d + v] : c(n[v - 3] ^ n[v - 8] ^ n[v - 14] ^ n[v - 16], 1);
var m = s(s(c(o, 5), r(v, i, l, u)), s(s(p, n[v]), a(v)));
p = u;
u = l;
l = c(i, 30);
i = o;
o = m;
}
o = s(o, h);
i = s(i, f);
l = s(l, y);
u = s(u, _);
p = s(p, g);
}
return Array(o, i, l, u, p);
}
function r(t, e, n, o) {
return t < 20 ? e & n | ~e & o : t < 40 ? e ^ n ^ o : t < 60 ? e & n | e & o | n & o : e ^ n ^ o;
}
function a(t) {
return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
}
function s(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
}
function c(t, e) {
return t << e | t >>> 32 - e;
}
function l(t) {
for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << 24 - i % 32;
return e;
}
function u(t) {
for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> 8 * (3 - i % 4) + 4 & 15) + e.charAt(t[i >> 2] >> 8 * (3 - i % 4) & 15);
return o;
}
e.exports = {
hex_sha1: function(t) {
return u(i(l(t), t.length * o));
}
};
cc._RF.pop();
}, {} ],
zgSingleton: [ function(t, e, n) {
"use strict";
cc._RF.push(e, "32a8dH96p5M0bqpqHuYQmna", "zgSingleton");
Object.defineProperty(n, "__esModule", {
value: !0
});
n.zgSingleton = void 0;
var o = function() {
function t() {}
t.getInstance = function() {
this.instance || (this.instance = new this());
return this.instance;
};
return t;
}();
n.zgSingleton = o;
cc._RF.pop();
}, {} ]
}, {}, [ "Main", "BtnClosePanel", "BtnOpenPanel", "Button", "PageView", "SetGray", "TabSwitching", "TableView", "TouchHelper", "UIBG", "ClickMoveBy", "FlyNode", "FrameAnimation", "RopeSwung", "RotateAround", "TweenEasing", "UIOpenAndClose", "UITween", "ZPathFalling", "AdData", "AppData", "EnumData", "GameData", "HttpData", "LoginData", "StorageData", "WechatData", "g", "CashNormalData", "CashPigData", "FissionData", "HelpData", "LuckyBagData", "PigBankData", "PushData", "SignData", "TurnableData", "AudioManager", "FunBtns", "Game", "Help", "Login", "PigBank", "Sign", "SignIconItem", "SignItem", "Turnable", "TurnableItem", "MKSwitch", "Data", "BuglySDK", "ATBanner", "ATBannerJS", "ATInterstitial", "ATInterstitialJS", "ATNative", "ATNativeJS", "ATRewardVideo", "ATRewardVideoJS", "ATSDKMgr", "ATSDKMgrJS", "ATBannerJSSDK", "ATInterstitialJSSDK", "ATJSSDK", "ATNativeJSSDK", "ATRewardedVideoJSSDK", "ATAndroidBannerJS", "ATAndroidInterstitialJS", "ATAndroidJS", "ATAndroidNativeJS", "ATAndroidRewardedVideoJS", "ATiOSBannerJS", "ATiOSInterstitialJS", "ATiOSJS", "ATiOSNativeJS", "ATiOSRewardedVideoJS", "zgSingleton", "AdSystem", "AudioSystem", "DataSystem", "EventSystem", "GuideSystem", "HttpSystem", "JsbSystem", "MKSystem", "TimerSystem", "UISystem", "EncryptUtil", "FileUtil", "GameUtil", "LoadResUtil", "LogUtil", "MathUtil", "StorageUtil", "StringUtil", "TimeUtil", "aes", "base64", "hmacSha256", "md5", "sha1" ]);