Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var t = arequire("../@babel/runtime/helpers/assertThisInitialized"), e = arequire("../@babel/runtime/helpers/inherits"), i = arequire("../@babel/runtime/helpers/createSuper"), n = arequire("../@babel/runtime/helpers/classCallCheck"), s = arequire("../@babel/runtime/helpers/createClass");

console.log("[肆狼] 当前sdk版本:", "20221124");

var a = function() {
    function a() {
        n(this, a), this.systemArgs = {
            sdkHost: "https://sdk.silanggame.com",
            assHost: "https://wxpush.17a.cn",
            redHost: "https://redapi.17a.cn",
            domainHost: "https://wxpush.17a.cn",
            agentHost: "https://agentapi.17a.cn",
            wxAppId: "",
            wxAppType: "wxApp",
            appId: 0,
            channelId: 0,
            appKey: "",
            pubKey: "",
            initFlag: !1,
            timeOffset: 0,
            authCookie: ""
        }, this.userInfo = {
            sessionKey: "",
            openId: "",
            unionId: "",
            accessToken: "",
            userId: 0,
            adsId: "wxapp",
            version: "1"
        }, this.redPacket = {
            userToken: "",
            wxAppId: "wx655a1b12c1ff4345",
            args: {}
        }, this.appletInfo = {
            appid: "",
            articleURL: ""
        }, this.headerArgs = {
            deviceId: "",
            deviceModel: "",
            OSVersion: "",
            OS: "",
            netType: "",
            extInfo: "",
            platform: "",
            sourceUserId: "0",
            LaunchArgs: ""
        }, this.touchuAfter = "", this.jumpstatus = 0, this.argsJson = "", this.rewardedVideo, 
        this.isFirstLogin = !0, this.open_red = !1, this.open_grade = !1, this.open_buoy = !1, 
        this.allow_to_open = !1, this.open_quality_pay = !1, this.open_authlogin = !1, this.open_report_subscribe = !1, 
        this.channel_description = "", this.config_extData = [], this.isFirstGameReport = !1, 
        this.childSDK = null, this.parentSDK = null, this.popGameList = function() {
            console.log("[肆狼] 浮标开关没有开启.");
        };
    }
    return s(a, [ {
        key: "init",
        value: function(t) {
            var e = this, i = this, n = window.AKSDK.login;
            window.AKSDK.login = function(t) {
                n(function(e, n) {
                    t(e, n), i.user9({
                        data: n
                    });
                });
            }, console.log("[肆狼] call init");
            i = this;
            if (null == this.childSDK && (wx.showShareMenu({
                withShareTicket: !0,
                menus: [ "shareAppMessage", "shareTimeline" ]
            }), wx.onShareAppMessage(function() {
                for (var t = {
                    query: "sourceId@" + e.systemArgs.channelId + "=" + e.userInfo.userId
                }, n = i; null != n.parentSDK; ) n = n.parentSDK, t.query = t.query + "&sourceId@" + n.systemArgs.channelId + "=" + n.userInfo.userId;
                var s = parseInt(1e3 * Math.random() % 3), a = 0 == s ? "" : "_" + s;
                return t.imageUrl = i.systemArgs.assHost + "/Archives/wxapp/share/" + i.systemArgs.channelId + a + ".png", 
                t;
            }), wx.onShareTimeline && wx.onShareTimeline(function() {
                for (var t = {
                    query: "sourceId@" + e.systemArgs.channelId + "=" + e.userInfo.userId
                }, n = i; null != n.parentSDK; ) n = n.parentSDK, t.query = t.query + "&sourceId@" + n.systemArgs.channelId + "=" + n.userInfo.userId;
                return t;
            })), t.appId && t.appKey && t.channelId && t.callback && t.version) {
                if (this.checkUnReport(), !i.systemArgs.initFlag) {
                    i.systemArgs.appId = t.appId, i.systemArgs.appKey = t.appKey, i.systemArgs.channelId = t.channelId, 
                    i.systemArgs.version = t.version, null == this.parentSDK && (window.SLWX = this, 
                    console.log("[肆狼] init popWnd"), this.showModalInit(i.launchPop.bind(this)), console.log("[肆狼] wxpush"), 
                    this._getConfig()), wx.onShow(function(t) {}), wx.getSystemInfo({
                        success: function(t) {
                            console.log("[肆狼] getSystemInfo", t);
                            try {
                                wx.getStorageSync("deviceId") || wx.setStorageSync("deviceId", c() + c() + "-" + c() + "-" + c() + "-" + c() + "-" + c() + c() + c()), 
                                i.headerArgs.deviceId = wx.getStorageSync("deviceId");
                            } catch (t) {}
                            if (i.headerArgs.deviceModel = t.model, i.headerArgs.OS = t.platform.toUpperCase(), 
                            i.headerArgs.OSVersion = t.system, 0 != t.system.indexOf(" ")) {
                                var e = t.system.split(" ");
                                i.headerArgs.OSVersion = e[e.length - 1];
                            }
                        }
                    }), wx.getNetworkType({
                        success: function(t) {
                            i.headerArgs.netType = t.networkType;
                        }
                    });
                    var s = wx.getLaunchOptionsSync();
                    this.argsJson = JSON.stringify(s), s.query["sourceId@" + this.systemArgs.channelId] && (this.headerArgs.sourceUserId = s.query["sourceId@" + this.systemArgs.channelId], 
                    this.userInfo.adsId = "wxapp_wxShare." + s.query["sourceId@" + this.systemArgs.channelId]), 
                    s.query.adsId && s.query.adsId.length > 0 && (this.userInfo.adsId = "wxapp_" + s.query.adsId), 
                    s.query.gdt_vid && s.query.gdt_vid.length > 0 && (this.userInfo.adsId = "wxapp_gdtvid." + s.query.gdt_vid);
                    var o = s;
                    for (var r in o.query) o.query[r] = encodeURI(o.query[r]);
                    this.headerArgs.LaunchArgs = JSON.stringify(o), this.headerArgs.LaunchArgs = JSON.stringify(s), 
                    i.systemArgs.sdkHost && -1 != i.systemArgs.sdkHost.indexOf("silanggame.com") && i.request({
                        url: "https://iad.silanggame.com/MP/WXLaunchArgsActive",
                        loading: !1,
                        pdata: {
                            channelId: i.systemArgs.channelId
                        },
                        callback: function(t) {}
                    }), i.request({
                        url: "/wx/app/init",
                        loading: !0,
                        pdata: {
                            channelId: this.systemArgs.channelId
                        },
                        callback: function(e) {
                            if (e.data && e.data.result && 200 == e.data.result) {
                                if (i.systemArgs.pubKey = e.data.data.publicKey, i.systemArgs.initFlag = !0, i.headerArgs.extInfo = e.data.data.extInfo, 
                                i.systemArgs.timeOffset = e.data.data.time - new Date().getTime(), i.systemArgs.wxAppId = e.data.extData.WxAppId, 
                                e.data.extData && e.data.extData.appId) return i.childSDK = new a(), i.childSDK.parentSDK = i, 
                                i.childSDK.systemArgs.sdkHost = e.data.extData.appHost, void i.childSDK.init({
                                    appId: e.data.extData.appId,
                                    channelId: e.data.extData.channelId,
                                    appKey: e.data.extData.appKey,
                                    version: t.version,
                                    callback: function() {
                                        t.callback();
                                    }
                                });
                                t.callback();
                            } else wx.showModal({
                                title: "错误提示",
                                content: "error:" + e.data.msg,
                                confirmText: "重试",
                                showCancel: !1,
                                success: function() {
                                    i.init(t);
                                }
                            });
                        }
                    });
                }
            } else wx.showModal({
                title: "错误提示",
                content: "初始化失败,初始化参数不完整,接入有误",
                showCancel: !1
            });
        }
    }, {
        key: "_getConfig",
        value: function(t) {
            t || (t = {}), t.data || (t.data = {}), t.callback || (t.callback = function() {
                console.log("[肆狼] wxPushConfig not callback");
            });
            for (var e = this; null != e.parentSDK; ) e = csdk.parentSDK;
            e.request({
                urltype: 2,
                url: "/game/config/" + e.systemArgs.channelId,
                pdata: t.data,
                callback: function(i) {
                    if (0 == i.data.code) {
                        console.log("[肆狼] wxpush config:", i.data.data);
                        var n = i.data.data;
                        if (e.open_red = "0" != n.open_red, e.open_grade = "0" != n.open_grade, e.open_quality_pay = "0" != n.open_quality_pay, 
                        e.open_authlogin = "0" != n.open_authlogin, e.open_buoy = "0" != n.open_buoy, e.open_report_subscribe = "0" != n.open_report_subscribe, 
                        e.channel_description = n.channel_description, e.config_extData = n.ext_data, n.ext_data) for (var s in n.ext_data) "applet_appid" == n.ext_data[s].key && (e.appletInfo.appid = n.ext_data[s].value), 
                        "applet_articleURL" == n.ext_data[s].key && (e.appletInfo.articleURL = n.ext_data[s].value);
                        t.callback();
                    }
                }
            });
        }
    }, {
        key: "_popPushRedPacket",
        value: function() {
            var t = wx.getLaunchOptionsSync();
            t.query && t.query.adsId && -1 != t.query.adsId.indexOf("wxSubscribe_") && this.request({
                urltype: 2,
                url: "/redSend/reg"
            });
        }
    }, {
        key: "gameReport",
        value: function(t) {
            if (console.log("[肆狼] call gameReport"), t.serverId && t.serverName) {
                for (var e = this; null != e.parentSDK; ) e = e.parentSDK;
                if (e.isFirstGameReport) console.log("[肆狼] floatIcon 已经检测过引擎"); else {
                    e.isFirstGameReport = !0, e._popPushRedPacket();
                    var i = {}, n = {
                        roleId: t.roleId,
                        roleName: t.roleName,
                        roleLevel: t.roleLevel,
                        serverId: t.serverId,
                        serverName: t.serverName,
                        roleVip: t.roleVip,
                        rolePower: t.rolePower,
                        channelid: e.systemArgs.channelId,
                        userId: e.userInfo.userId,
                        openId: e.userInfo.openId,
                        freeUser: e._isFreeUser()
                    };
                    for (var s in n) null != n[s] && null != n[s] && "function" != typeof n[s] && (i[s] = n[s]);
                    e.redPacket.args = i, e.upRedPacket3MSG(), e.upBackflowMsg(), setTimeout(function() {
                        e.initRedPacket3(), e.initBackflow();
                    }, 100), e._getConfig({
                        data: i,
                        callback: function() {
                            if (1 == e.open_buoy) {
                                var t = 0;
                                e._TimerId10_09_17_43 = setInterval(function() {
                                    console.log("[肆狼] 检测游戏引擎中", "白鹭:", window.egret ? 1 : 0, "laya:", window.Laya ? 1 : 0, "cocos:", window.cc ? 1 : 0), 
                                    e.is_open_buoy_flag || (window.egret && window.egret.lifecycle.stage && (e.is_open_buoy_flag = !0, 
                                    e.showFloatIcon(), clearInterval(e._TimerId10_09_17_43)), window.Laya && window.Laya.stage && (e.is_open_buoy_flag = !0, 
                                    e.showFloatIconByLaya(), clearInterval(e._TimerId10_09_17_43)), window.cc && (e.is_open_buoy_flag = !0, 
                                    e.showFun(), clearInterval(e._TimerId10_09_17_43))), (t += 1) >= 30 && clearInterval(e._TimerId10_09_17_43);
                                }, 1e3);
                            }
                        }
                    });
                }
            } else console.log("[肆狼] serverId 和 serverName 是必要字段");
        }
    }, {
        key: "reportClickPop",
        value: function(t) {
            var e = this;
            0 != this.userInfo.userId ? this.request({
                urltype: 2,
                url: "/clickChannel/by",
                pdata: {
                    channelid: this.systemArgs.channelId,
                    type: t.event,
                    wx_appid: t.wx_appid,
                    user_id: this.userInfo.userId,
                    sence: t.sence
                },
                callback: function(i) {
                    0 == i.data.code && console.log("[肆狼] 埋点上报: event" + t.event + " wx_appid:" + t.wx_appid + " user_id:" + e.userInfo.userId);
                }
            }) : setTimeout(function() {
                t.count || (t.count = 0), t.count += 1, e.reportClickPop(t);
            }, 1e3);
        }
    }, {
        key: "getRewarderdVideo",
        value: function(t) {
            var e = this;
            t && (this.rewardedVideo = wx.createRewardedVideoAd({
                adUnitId: t.adUnitId
            }), this.rewardedVideo.onError(function(t) {
                console.log("[肆狼] 监听激励视频错误事件: ", t.errMsg);
            }), this.rewardedVideo.load().then(function() {
                var i = "openad", n = e;
                n.rewardedVideo.show().then(function() {
                    n.request({
                        urltype: 5,
                        url: "/game/setUserChannelAdLog",
                        pdata: {
                            adunitid: t.adUnitId,
                            type: i
                        }
                    }), n.rewardedVideo.onClose(function(e) {
                        i = e.isEnded ? "close_on_look_all" : "close_on_look_tad", n.request({
                            urltype: 5,
                            url: "/game/setUserChannelAdLog",
                            pdata: {
                                adunitid: t.adUnitId,
                                type: i
                            }
                        }), t.callback({
                            is_close_finish: e.isEnded
                        }), n.rewardedVideo.offClose();
                    });
                });
            }));
        }
    }, {
        key: "setUserChannelBackLog",
        value: function() {
            this.request({
                urltype: 5,
                url: "/game/setUserChannelBackLog"
            });
        }
    }, {
        key: "getExtDataByKey",
        value: function(t) {
            for (var e = -1, i = 0; i < this.config_extData.length; i++) this.config_extData[i].key != t || (e = i);
            return -1 != e ? this.config_extData[e].value + "" : "";
        }
    }, {
        key: "launchPop",
        value: function() {
            console.log("[肆狼] launchPop");
            var t = wx.getLaunchOptionsSync(), e = t.query.title, i = t.query.wx_appid, n = t.query.content, s = t.query.image;
            if (e && i && n && window.sl_moDal) {
                var a = new window.sl_moDal();
                console.log("[肆狼] 启动弹窗", t.query), this.reportClickPop({
                    event: "open",
                    wx_appid: i,
                    sence: "弹窗"
                }), a.showModal(e, n, "立即前往", null, function() {
                    var t = this;
                    wx.navigateToMiniProgram({
                        appId: i,
                        path: "index?adsId=wxSubscribe_" + window.SLWX.systemArgs.channelId,
                        success: function(e) {
                            t.reportClickPop({
                                event: "click",
                                wx_appid: i,
                                sence: "弹窗"
                            });
                        },
                        fail: function(e) {
                            t.reportClickPop({
                                event: "close",
                                wx_appid: i,
                                sence: "弹窗"
                            });
                        }
                    });
                }.bind(this), null, !0, s);
            }
        }
    }, {
        key: "templateMsgComplete",
        value: function(t) {
            if (this.open_report_subscribe) {
                var e = this;
                if (!t.errCode) {
                    var i = [];
                    for (var n in t) "errMsg" != n && "accept" == t[n] && i.push({
                        channelid: this.systemArgs.channelId,
                        wxappid: this.systemArgs.wxAppId,
                        wxopenid: this.userInfo.openId,
                        templateid: n,
                        subscription: 1,
                        always: 0
                    });
                    wx.getSetting({
                        withSubscriptions: !0,
                        success: function(t) {
                            var n = t.subscriptionsSetting;
                            if (console.log("[肆狼] 获取订阅设置", n), void 0 !== n.itemSettings) {
                                var s = [];
                                for (var a in i) if (void 0 !== n.itemSettings) for (var o in n.itemSettings) i[a].templateid == o && (i[a].always = 1, 
                                s.push(o));
                                var r = function(t) {
                                    wx.requestSubscribeMessage({
                                        tmplIds: s,
                                        success: function(t) {
                                            e.addSubscribeMessageCount();
                                        },
                                        fail: function(t) {},
                                        complete: function() {}
                                    });
                                };
                                e.getSubscribeMessageCount() <= 50 && (wx.onTouchEnd(function(t) {
                                    r();
                                }), wx.onTouchEnd(function(t) {
                                    r();
                                }));
                            }
                        },
                        complete: function(t) {
                            console.log("[肆狼] 订阅消息设置", i), e.upSubscribeMessage(i);
                        }
                    });
                }
            }
        }
    }, {
        key: "upSubscribeMessage",
        value: function(t) {
            var e = this;
            for (var i in t) setTimeout(function() {
                e.request({
                    urltype: 2,
                    url: "/stat/subscription",
                    method: "POST",
                    pdata: t[i],
                    success: function(t) {
                        console.log("[肆狼] 上报订阅消息 s", t);
                    },
                    fail: function(t) {
                        console.log("[肆狼] 上报订阅消息 f", t);
                    }
                });
            }, 100 * i);
        }
    }, {
        key: "upWxSetting",
        value: function() {
            var t = this;
            wx.getSetting({
                withSubscriptions: !0,
                success: function(e) {
                    var i = e.subscriptionsSetting;
                    if (void 0 !== i.itemSettings) {
                        var n = [], s = i.itemSettings, a = [];
                        for (var o in s) "accept" == s[o] && (a.push(o), n.push({
                            channelid: t.systemArgs.channelId,
                            wxappid: t.systemArgs.wxAppId,
                            wxopenid: t.userInfo.openId,
                            templateid: o,
                            subscription: 1,
                            always: 1
                        }));
                        t.upSubscribeMessage(n);
                        var r = function(e) {
                            wx.requestSubscribeMessage({
                                tmplIds: a,
                                success: function(e) {
                                    t.addSubscribeMessageCount();
                                },
                                fail: function(t) {},
                                complete: function() {}
                            });
                        };
                        t.getSubscribeMessageCount() <= 50 && (wx.onTouchEnd(function(t) {
                            r();
                        }), wx.onTouchEnd(function(t) {
                            r();
                        }));
                    }
                }
            });
        }
    }, {
        key: "addSubscribeMessageCount",
        value: function() {
            var t = Number(this.getSubscribeMessageCount());
            try {
                wx.setStorageSync("sl_SubscribeMessage_count", t + 1);
            } catch (t) {}
        }
    }, {
        key: "checkFirstPop",
        value: function() {
            var t, e, i, n = function() {
                try {
                    wx.setStorageSync("sl_PopDate", new Date().getTime());
                } catch (t) {}
            }, s = 0;
            try {
                s = wx.getStorageSync("sl_PopDate");
            } catch (t) {}
            return console.log("[肆狼] 上次弹窗记录:" + s), 0 == s ? (n(), !0) : (t = new Date(s), e = new Date(t.toString().replace(/-/g, "/")), 
            i = new Date(), e.setHours(0, 0, 0, 0) != i.setHours(0, 0, 0, 0) && (n(), !0));
        }
    }, {
        key: "checkUnReport",
        value: function() {
            var t = 0, e = this;
            try {
                t = wx.getStorageSync("checkUnReport");
            } catch (t) {
                t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
                console.log("[肆狼] 检查未上报函数出错");
            }
            0 == t && e.getSubscribeMessageCount() > 0 && wx.getSetting({
                withSubscriptions: !0,
                success: function(t) {
                    var i = [], n = t.subscriptionsSetting;
                    if (void 0 !== n.itemSettings) {
                        var s = n.itemSettings;
                        for (var a in s) "accept" == s[a] && i.push({
                            channelid: e.systemArgs.channelId,
                            wxappid: e.systemArgs.wxAppId,
                            wxopenid: e.userInfo.openId,
                            templateid: a,
                            subscription: 1,
                            always: 1
                        }), e.upSubscribeMessage(i);
                    }
                }
            }), wx.setStorageSync("checkUnReport", 1);
        }
    }, {
        key: "getSubscribeMessageCount",
        value: function() {
            var t = 0;
            try {
                t = wx.getStorageSync("sl_SubscribeMessage_count");
            } catch (t) {}
            return t;
        }
    }, {
        key: "_actShareTimeStamp",
        value: function() {
            return this.onShowContent = "分享中", parseInt(new Date().getTime() / 1e3);
        }
    }, {
        key: "showModalInit",
        value: function(t) {
            var e = 0, i = this, n = setInterval(function() {
                (e += 1) <= 30 ? (window.egret && window.egret.lifecycle.stage && (window.sl_moDal = o, 
                t(), clearInterval(n)), window.Laya && window.Laya.stage && (window.sl_moDal = a, 
                t(), clearInterval(n))) : clearInterval(n);
            }.bind(this), 1e3), s = function() {
                return i.popGameList;
            }, a = function() {
                function t() {
                    this.m_mark = null, this.m_container = null, this.alwaysOnTop();
                }
                return t.prototype.alwaysOnTop = function() {
                    var t = this;
                    setInterval(function() {
                        if (null != t.m_container) {
                            var e = Laya.stage.numChildren;
                            Laya.stage.setChildIndex(t.m_container, e - 1);
                        }
                    }, 1e3);
                }, t.prototype.showModal = function(t, e, i, n, a, o, r, c) {
                    var l = this;
                    if (c) {
                        var h = Laya.stage;
                        l.m_container = null, l.m_container = new Laya.Sprite(), l.m_container.loadImage(c), 
                        h.addChild(l.m_container), l.m_container.alpha = 0, l.m_container.on(Laya.Event.MOUSE_UP, this, function(t) {
                            h.removeChild(l.m_container), l.m_container = null, a && a();
                        });
                        var d = setInterval(function() {
                            if (0 != l.m_container.width) {
                                if (l.m_container.width <= h.width && (l.m_container.y = h.height / 2 - l.m_container.height / 2, 
                                l.m_container.x = parseInt((h.width - l.m_container.width) / 2)), l.m_container.width >= h.width) {
                                    var t = (h.width - 20) / l.m_container.width;
                                    l.m_container.x = 10, l.m_container.scaleY = t, l.m_container.scaleX = t, l.m_container.y = (h.height / 2 - l.m_container.height / 2) / t;
                                }
                                l.m_container.alpha = 1, clearInterval(d);
                            }
                        }, 1e3);
                    } else {
                        l = this, h = Laya.stage;
                        this.m_container = null, this.m_container = new Laya.Sprite();
                        var u = this.m_container;
                        h.addChild(this.m_container), u.mouseEnabled = !0, this.m_mark = new Laya.Sprite();
                        var p = h.height / 2 - 200, g = 20, f = h.width - 40, m = 400;
                        this.m_mark.graphics.drawRect(g, p, f, m, "#ffffff"), this.m_mark.mouseEnabled = !0;
                        var w = new Laya.Label();
                        w.width = f, w.x = g, w.y = p + 10, w.text = t, w.bold = !0, w.align = Laya.Stage.ALIGN_CENTER, 
                        w.fontSize = 30, w.color = "#000000";
                        var y = new Laya.Label();
                        if (y.width = f - 40, y.x = 40, y.y = p + 30 + 30, y.text = e, y.align = Laya.Stage.ALIGN_LEFT, 
                        y.wordWrap = !0, y.fontSize = 30, y.color = "#49494d", r) {
                            v = new Laya.Label(), x = p + m - 70, _ = 60 + (b = f / 2 - 40) / 2, k = 50;
                            this.m_mark.graphics.drawRect(_, x, b, k, "#449d44"), v.text = i || "确定", v.color = "#FFFFFF", 
                            v.x = _, v.y = x + 5, v.fontSize = 40, v.align = Laya.Stage.ALIGN_CENTER, v.width = b, 
                            v.height = k, v.mouseEnabled = !0, v.on(Laya.Event.MOUSE_UP, this, function(t) {
                                C(t);
                            });
                        } else {
                            var v = new Laya.Label(), _ = g + f / 2 + 20, x = p + m - 70, b = f / 2 - 40, k = 50;
                            this.m_mark.graphics.drawRect(_, x, b, k, "#449d44"), v.text = i || "确定", v.color = "#FFFFFF", 
                            v.x = _, v.y = x + 5, v.fontSize = 40, v.align = Laya.Stage.ALIGN_CENTER, v.width = b, 
                            v.height = k, v.mouseEnabled = !0, v.on(Laya.Event.MOUSE_UP, this, function(t) {
                                C(t);
                            });
                            var I = new Laya.Label();
                            _ = 40, x = p + m - 70, b = f / 2 - 40, k = 50, this.m_mark.graphics.drawRect(_, x, b, k, "#ff0000"), 
                            I.text = n || "取消", I.color = "#FFFFFF", I.x = _, I.y = x + 5, I.fontSize = 40, 
                            I.align = Laya.Stage.ALIGN_CENTER, I.width = b, I.height = k, I.mouseEnabled = !0, 
                            I.on(Laya.Event.MOUSE_UP, this, function(t) {
                                S(t);
                            });
                        }
                        var S = function(t) {
                            o && o(), T();
                        }, C = function(t) {
                            a && (a(), "弹游戏列表" == a() && s() && s()());
                            T();
                        }, T = function() {
                            h.removeChild(u), l.m_container = null;
                        };
                        u.addChild(this.m_mark), u.addChild(I), u.addChild(v), u.addChild(w), u.addChild(y);
                    }
                }, t;
            }(), o = function() {
                function t() {
                    this.m_mark = null, this.m_container = null, this.m_shape = null, this.m_title = null, 
                    this.m_content = null, this.m_button = null, this.m_button2 = null, this.m_confirm_text = null, 
                    this.m_cancel_text = null, this.alwaysOnTop();
                }
                return t.prototype.alwaysOnTop = function() {
                    var t = this, e = window.egret.lifecycle.stage;
                    setInterval(function() {
                        if (null != t.m_container) {
                            var i = e.numChildren;
                            e.setChildIndex(t.m_container, i - 1);
                        }
                    }, 1e3);
                }, t.prototype.showModal = function(t, e, i, n, a, o, r, c) {
                    var l = this;
                    if (c) {
                        var h = egret.lifecycle.stage;
                        l.m_container = null, l.m_container = new egret.Sprite();
                        var d = new egret.ImageLoader();
                        return d.addEventListener(egret.Event.COMPLETE, function(t) {
                            l.m_container.width = 100, l.m_container.height = 100;
                            var e = t.target.data, i = new egret.Texture();
                            i.bitmapData = e;
                            var n = new egret.Bitmap(i);
                            if (n.width <= h.stageWidth) n.y = h.stageHeight / 2 - n.height / 2, n.x = parseInt((h.stageWidth - n.width) / 2); else {
                                var s = (h.stageWidth - 20) / n.width;
                                l.m_container.addChild(n), n.scaleY = s, n.scaleX = s, n.x = 10, n.y = (h.stageHeight / 2 - n.height / 2) / s;
                            }
                            l.m_container.addChild(n), h.addChild(l.m_container), n.touchEnabled = !0, n.addEventListener(egret.TouchEvent.TOUCH_BEGIN, function() {
                                h.removeChild(l.m_container), l.m_container = null, a && a();
                            }, this);
                        }, this), void d.load(c);
                    }
                    h = egret.lifecycle.stage;
                    this.m_container = null, this.m_container = new egret.Sprite(), this.m_container.$setAlpha(0), 
                    h.addChild(this.m_container);
                    var u = this.m_container, p = 0, g = setInterval(function() {
                        (p += .05) <= 1 ? l.m_container.$setAlpha(p) : clearInterval(g);
                    }, 20);
                    this.m_mark = new egret.Shape(), this.m_mark.graphics.beginFill(0, .5), this.m_mark.graphics.drawRect(0, 0, h.stageWidth, h.stageHeight), 
                    this.m_mark.graphics.endFill(), this.m_mark.touchEnabled = !0, u.addChild(this.m_mark), 
                    this.m_shape = new egret.Shape();
                    var f = h.stageHeight / 2 - 200, m = 20, w = h.stageWidth - 40, y = 400;
                    if (this.m_shape.graphics.beginFill(16777215, 1), this.m_shape.graphics.lineStyle(0), 
                    this.m_shape.graphics.drawRect(m, f, w, y), this.m_shape.graphics.endFill(), u.addChild(this.m_shape), 
                    this.m_title = new egret.TextField(), this.m_title.text = t, this.m_title.bold = !0, 
                    u.addChild(this.m_title), this.m_title.width = w, this.m_title.x = m, this.m_title.y = f + 10, 
                    this.m_title.textColor = 0, this.m_title.textAlign = egret.HorizontalAlign.CENTER, 
                    this.m_content = new egret.TextField(), this.m_content.text = e, this.m_content.bold = !1, 
                    this.m_content.textColor = 4802893, this.m_content.x = 60, this.m_content.y = this.m_title.y + this.m_title.size + 40, 
                    this.m_content.width = w - 80, u.addChild(this.m_content), r) {
                        this.m_button = new egret.Shape();
                        _ = f + y - 70, v = 60 + (x = w / 2 - 40) / 2, b = 50;
                        this.m_button.graphics.beginFill(4496708), this.m_button.graphics.drawRect(v, _, x, b), 
                        this.m_button.graphics.endFill(), u.addChild(this.m_button), this.m_confirm_text = new egret.TextField(), 
                        this.m_confirm_text.text = i || "确定", this.m_confirm_text.bold = !0, this.m_confirm_text.textColor = 16777215, 
                        u.addChild(this.m_confirm_text), this.m_confirm_text.x = v, this.m_confirm_text.y = _ + 5, 
                        this.m_confirm_text.width = x, this.m_confirm_text.height = b - 10, this.m_confirm_text.textAlign = egret.HorizontalAlign.CENTER, 
                        this.m_confirm_text.size = b - 10, this.m_button.touchEnabled = !0, this.m_button.addEventListener(egret.TouchEvent.TOUCH_TAP, function(t) {
                            (h.removeChild(u), this.m_container = null, a) && (a(), "弹游戏列表" == a() && s() && s()());
                        }.bind(this), this);
                    } else {
                        this.m_button = new egret.Shape();
                        var v = m + w / 2 + 20, _ = f + y - 70, x = w / 2 - 40, b = 50;
                        this.m_button.graphics.beginFill(4496708), this.m_button.graphics.drawRect(v, _, x, b), 
                        this.m_button.graphics.endFill(), u.addChild(this.m_button), this.m_confirm_text = new egret.TextField(), 
                        this.m_confirm_text.text = i || "确定", this.m_confirm_text.bold = !0, this.m_confirm_text.textColor = 16777215, 
                        u.addChild(this.m_confirm_text), this.m_confirm_text.x = v, this.m_confirm_text.y = _ + 5, 
                        this.m_confirm_text.width = x, this.m_confirm_text.height = b - 10, this.m_confirm_text.textAlign = egret.HorizontalAlign.CENTER, 
                        this.m_confirm_text.size = b - 10, this.m_button.touchEnabled = !0, this.m_button.addEventListener(egret.TouchEvent.TOUCH_TAP, function(t) {
                            (h.removeChild(u), this.m_container = null, a) && (a(), "弹游戏列表" == a() && s() && s()());
                        }.bind(this), this), this.m_button2 = new egret.Shape();
                        var v = 40, _ = f + y - 70, x = w / 2 - 40, b = 50;
                        this.m_button2.graphics.beginFill(16711680), this.m_button2.graphics.drawRect(40, f + y - 70, w / 2 - 40, 50), 
                        this.m_button2.graphics.endFill(), u.addChild(this.m_button2), this.m_cancel_text = new egret.TextField(), 
                        this.m_cancel_text.text = n || "取消", this.m_cancel_text.bold = !0, this.m_cancel_text.textColor = 16777215, 
                        u.addChild(this.m_cancel_text), this.m_cancel_text.x = v, this.m_cancel_text.y = _ + 5, 
                        this.m_cancel_text.width = x, this.m_cancel_text.height = b - 10, this.m_cancel_text.textAlign = egret.HorizontalAlign.CENTER, 
                        this.m_cancel_text.size = b - 10, this.m_button2.touchEnabled = !0, this.m_button2.addEventListener(egret.TouchEvent.TOUCH_TAP, function(t) {
                            h.removeChild(u), this.m_container = null, o && o();
                        }.bind(this), this);
                    }
                }, t;
            }();
        }
    }, {
        key: "showFun",
        value: function() {
            var t = this;
            cc.loader.load({
                url: "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_1.png",
                type: "png"
            }, function(e, i) {
                var n = new cc.Node("Sprite1"), s = n.addComponent(cc.Sprite);
                s.spriteFrame = new cc.SpriteFrame(i), n.x = 50, n.y = cc.winSize.height - 50;
                var a = 100 / i.width, o = 100 / i.height;
                n.scaleX = a, n.scaleY = o, t.ismove = !1, s.node.on(cc.Node.EventType.TOUCH_MOVE, function(e) {
                    t.allow_to_open || (n.x = e.touch._point.x, n.y = e.touch._point.y, t.ismove = !0);
                }), s.node.on(cc.Node.EventType.TOUCH_END, function(e) {
                    if (!t.allow_to_open) {
                        if (setTimeout(function() {
                            t.ismove = !1;
                        }, 400), parseInt(e.target.y) < 50 && (e.target.y = 50), parseInt(e.target.y) > cc.winSize.height - 50 && (e.target.y = cc.winSize.height - 50), 
                        parseInt(e.target.x) > cc.winSize.width / 2 && parseInt(e.target.x) < cc.winSize.width) var i = setInterval(function() {
                            e.target.x = parseInt(e.target.x), e.target.x += (cc.winSize.width - 50 - parseInt(e.target.x)) / 2, 
                            cc.winSize.width - 52 < parseInt(e.target.x) ? clearInterval(i) : "463" == parseInt(e.target.x) && (e.target.x = 50, 
                            clearInterval(i));
                        }, 100); else if (parseInt(e.target.x) > cc.winSize.width) e.target.x = cc.winSize.width - 50; else if (parseInt(e.target.x) < 50) e.target.x = 50; else i = setInterval(function() {
                            e.target.x = parseInt(e.target.x), e.target.x -= (parseInt(e.target.x) - 50) / 2, 
                            50 === e.target.x && clearInterval(i);
                        }, 100);
                        t.ismove || t.show2Fun(e.target);
                    }
                }), cc.director.getScene().addChild(n);
            });
        }
    }, {
        key: "show2Fun",
        value: function(t) {
            var e, i = this, n = (e = new cc.Node("Sprite2")).addComponent(cc.Sprite);
            i.allow_to_open = !0, cc.loader.load({
                url: "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_2.png",
                type: "png"
            }, function(s, a) {
                n.spriteFrame = new cc.SpriteFrame(a), t.x <= 50 ? e.x = 150 : e.x = t.x - 100, 
                e.y = t.y;
                var o = 100 / a.width, r = 100 / a.height;
                e.scaleX = o, e.scaleY = r, n.node.on(cc.Node.EventType.TOUCH_END, function(t) {
                    i.toMiniD();
                }), cc.director.getScene().addChild(e), setTimeout(function() {
                    e.destroy(), i.allow_to_open = !1;
                }, 2e3);
            });
        }
    }, {
        key: "showFloatIcon",
        value: function() {
            var t, e = this, i = this && this.__extends || (t = function(e, i) {
                return (t = Object.setPrototypeOf || {
                    __proto__: []
                } instanceof Array && function(t, e) {
                    t.__proto__ = e;
                } || function(t, e) {
                    for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
                })(e, i);
            }, function(e, i) {
                function n() {
                    this.constructor = e;
                }
                t(e, i), e.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype, 
                new n());
            }), n = function(t) {
                function e(e) {
                    var i = t.call(this) || this;
                    return i._clickUpdate = function() {
                        this.msg("您点击了升级。");
                    }.bind(i), i._imgSrc = "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_1.png", 
                    i._touchStatus = !1, i._touchMoveStatus = !1, i._distance = new egret.Point(), i._imgSrc2 = "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_2.png", 
                    i._stage = window.egret.lifecycle.stage, i._stage_width = window.egret.lifecycle.stage.stageWidth, 
                    i._stage_height = window.egret.lifecycle.stage.stageHeight, i.button = null, i.one_data = function() {
                        return [];
                    }, i.one_game_list = null, i.one_container = null, e && (i._clickUpdate = e.clickUpdate, 
                    this.setOneData(e.data)), i.createView(), i.showOneGameList(), i;
                }
                return i(e, t), e.prototype.createView = function() {
                    this.loadImg(this._imgSrc, function(t) {
                        this._bird = this.onLoadComplete(t), this._bird.touchEnabled = !0, this._bird.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.mouseDown, this), 
                        this._bird.addEventListener(egret.TouchEvent.TOUCH_END, this.mouseUp, this);
                    }.bind(this)), this._stage.addChild(this), this.alwaysOnTop();
                }, e.prototype.loadImg = function(t, e) {
                    var i = new egret.ImageLoader();
                    i.addEventListener(egret.Event.COMPLETE, e, this), i.load(t);
                }, e.prototype.onLoadComplete = function(t) {
                    var e = t.target.data, i = new egret.Texture();
                    i.bitmapData = e;
                    var n = new egret.Bitmap(i), s = this._stage_width / 1280;
                    return n.width = s * n.width, n.height = s * n.height, this.addChild(n), n;
                }, e.prototype.mouseDown = function(t) {
                    this._touchStatus = !0, this._distance.x = t.stageX - this._bird.x, this._distance.y = t.stageY - this._bird.y, 
                    this._bird.alpha = 1, this._stage.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.mouseMove, this);
                }, e.prototype.mouseMove = function(t) {
                    if (this._touchStatus) {
                        var e = t.stageX - this._distance.x, i = t.stageY - this._distance.y;
                        e >= 0 && e <= this._stage_width - this._bird.width && (this._bird.x = e, this._touchMoveStatus = !0), 
                        i >= 0 && i <= this._stage.height - this._bird.height && (this._bird.y = i, this._touchMoveStatus = !0), 
                        this._touchMoveStatus && this._list && this.followMenu();
                    }
                }, e.prototype.listMouseDown = function(t) {
                    this._clickUpdate();
                }, e.prototype.mouseUp = function(t) {
                    var e = this;
                    if (this._touchMoveStatus) {
                        clearInterval(this._timerId);
                        var i = this._stage_width / 1280;
                        this._bird.x + this._bird.width / 2 <= this._stage_width / 2 ? this._timerId = setInterval(function() {
                            e._bird.x - 40 * i >= 0 ? e._bird.x -= 40 * i : (e._bird.x = 0, setTimeout(function() {
                                e._bird.x -= e._bird.width / 2, e._bird.alpha = .8, e._list && e.followMenu();
                            }, 1e3), clearInterval(e._timerId)), e._list && e.followMenu();
                        }, 20) : this._bird.x + this._bird.width / 2 >= this._stage_width / 2 && (this._timerId = setInterval(function() {
                            e._bird.x + 40 * i <= e._stage_width - e._bird.width ? e._bird.x += 40 * i : (e._bird.x = e._stage_width - e._bird.width, 
                            setTimeout(function() {
                                e._bird.x += e._bird.width / 2, e._bird.alpha = .8, e._list && e.followMenu();
                            }, 1e3), clearInterval(e._timerId)), e._list && e.followMenu();
                        }, 20));
                    } else this._list ? (this._clearList(), this._list = null, null != this.button && (this.button.hide(), 
                    this.button.destroy(), this.button = null)) : this.loadImg(this._imgSrc2, function(t) {
                        this._list = this.onLoadComplete(t), this._list.touchEnabled = !0, this.followMenu(), 
                        this._list.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.listMouseDown, this);
                        var e = this;
                        this._clearList = function() {
                            e.removeChild(this._list), e.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.listMouseDown, this), 
                            e._clearList = null;
                        }.bind(this), this.createWxUserInfoButotn(this._list);
                    }.bind(this));
                    this._touchStatus = !1, this._touchMoveStatus = !1, this._stage.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.mouseMove, this);
                }, e.prototype.followMenu = function() {
                    var t = this._stage_width / 1280;
                    this._bird.x <= this._stage_width / 2 ? this._list.x = 20 * t + this._bird.x + this._bird.width : this._list.x = this._bird.x - 20 * t - this._list.width, 
                    this._list.y = this._bird.y;
                    var e = window.wx;
                    if (null != this.button) {
                        var i = e.getSystemInfoSync();
                        this.button.style.left = this._list.x / this._stage.stageWidth * i.screenWidth, 
                        this.button.style.top = this._list.y / this._stage.stageHeight * i.screenHeight;
                    }
                }, e.prototype.msg = function(t) {
                    var e = window.wx || null;
                    e && e.showToast({
                        title: t,
                        icon: "none"
                    });
                }, e.prototype.alwaysOnTop = function() {
                    var t = this;
                    setInterval(function() {
                        var e = t._stage.numChildren;
                        window.egret.lifecycle.stage.setChildIndex(t, e - 1);
                    }, 1e3);
                }, e.prototype.createWxUserInfoButotn = function(t) {
                    null != this.button && (this.button.hide(), this.button.destroy(), this.button = null);
                    var e = window.wx, i = this;
                    this.button = e.createUserInfoButton();
                    var n = e.getSystemInfoSync();
                    this.button.text = "", this.button.style.width = t.width / this._stage.stageWidth * n.screenWidth, 
                    this.button.style.height = t.height / this._stage.stageHeight * n.screenHeight, 
                    this.button.style.left = t.x / this._stage.stageWidth * n.screenWidth, this.button.style.top = t.y / this._stage.stageHeight * n.screenHeight, 
                    this.button.onTap(function() {
                        e.getUserInfo({
                            success: function(t) {
                                r(window.loginOpts), i._clickUpdate(), i._clearList(), i._list = null, null != i.button && (i.button.hide(), 
                                i.button.destroy(), i.button = null);
                            }
                        });
                    });
                }, e.prototype.showOneGameList = function() {
                    this.one_game_list = new s(this, this.one_data);
                }, e.prototype.setOneData = function(t) {
                    this.one_data = t;
                }, e.prototype.hideOneGameList = function() {
                    this.one_game_list.remove(), this.one_game_list = null;
                }, e.prototype.popGameList = function() {
                    this.hideOneGameList(), this.showOneGameList();
                }, e;
            }(egret.Sprite), s = function() {
                function t(t, e) {
                    this.one_container = new egret.Sprite(), this.data = [], this.floatIcon = t, this.isRender = !1, 
                    e && (this.data = e()), this.initView();
                }
                return t.prototype.getMain = function() {
                    return this.one_container;
                }, t.prototype.initView = function() {
                    if (!(this.data.length <= 0)) {
                        this.isRender = !0, this.floatIcon.addChild(this.one_container);
                        var t = this.one_container;
                        t.$setAlpha(0);
                        var e = this.floatIcon._stage_height / 3, i = .7 * this.floatIcon._stage_width, n = (i - 150) / 2, s = 1.353 * i, a = window.SLWX.systemArgs.channelId, o = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_bg.png", r = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_switch_left.png", c = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_switch_right.png";
                        this.loadImg(o, function(n) {
                            var a = n.target.data, o = new egret.Texture();
                            o.bitmapData = a;
                            var r = new egret.Bitmap(o);
                            r.x = 0, r.y = e, r.width = i, r.height = s, t.addChild(r), r.touchEnabled = !1, 
                            p();
                        }.bind(this));
                        var l = null, h = null, d = !0;
                        this.one_container.x = 0 - i;
                        var u = function() {
                            var e = this;
                            if (d) var n = setInterval(function() {
                                if (e.one_container.x <= 0 - i) return e.one_container.x = 0 - i, clearInterval(n), 
                                t.removeChild(l), t.addChild(h), void (d = !1);
                                e.setX(e.one_container.x - 50);
                            }, 30); else var s = setInterval(function() {
                                if (e.one_container.x >= 0) return e.one_container.x = 0, clearInterval(s), t.removeChild(h), 
                                t.addChild(l), void (d = !0);
                                e.one_container.x + 50 >= 0 ? e.setX(0) : e.setX(e.one_container.x + 50);
                            }, 30);
                        }.bind(this);
                        this.loadImg(r, function(n) {
                            var a = n.target.data, o = new egret.Texture();
                            o.bitmapData = a;
                            var r = new egret.Bitmap(o);
                            r.x = i, r.y = e + s / 5 * 4, r.width = 40, r.height = 70, t.addChild(r), r.touchEnabled = !0, 
                            r.addEventListener(egret.TouchEvent.TOUCH_END, u, this.floatIcon), l = r, t.removeChild(l);
                        }.bind(this)), this.loadImg(c, function(n) {
                            var a = n.target.data, o = new egret.Texture();
                            o.bitmapData = a;
                            var r = new egret.Bitmap(o);
                            r.x = i, r.y = e + s / 5 * 4, r.width = Math.round(.0625 * this.floatIcon._stage_width), 
                            r.height = Math.round(1.75 * r.width), t.addChild(r), r.touchEnabled = !0, r.addEventListener(egret.TouchEvent.TOUCH_END, u, this.floatIcon), 
                            h = r, d = !1;
                        }.bind(this));
                        var p = function() {
                            var i = 30, s = 0, a = 0;
                            this.data.map(function(o, r, c) {
                                var l = function() {
                                    window.wx.navigateToMiniProgram({
                                        appId: o.wx_appid,
                                        path: "index?adsId=wxHotGame_" + window.SLWX.systemArgs.channelId,
                                        success: function(t) {
                                            window.SLWX.reportClickPop({
                                                event: "click",
                                                wx_appid: o.wx_appid,
                                                sence: "游戏推荐"
                                            });
                                        },
                                        fail: function(t) {
                                            window.SLWX.reportClickPop({
                                                event: "close",
                                                wx_appid: o.wx_appid,
                                                sence: "游戏推荐"
                                            });
                                        }
                                    });
                                }, h = 25 + i + a * n, d = 20 + e + .6 * n + s * (n + .6 * n) + 20, u = -1 == o.game_icon.indexOf("http") ? "https://sdk.silanggame.com" + o.game_icon : o.game_icon;
                                this.loadImg(u, function(e) {
                                    var i = e.target.data, s = new egret.Texture();
                                    s.bitmapData = i;
                                    var a = new egret.Bitmap(s);
                                    a.x = h, a.y = d, a.width = n, a.height = n, t.addChild(a), a.touchEnabled = !0, 
                                    a.addEventListener(egret.TouchEvent.TOUCH_END, l, this.floatIcon);
                                }.bind(this));
                                var p = new egret.TextField();
                                p.text = o.channel_name, p.bold = !1, t.addChild(p), p.width = n, p.x = h, p.size = .2 * n, 
                                p.y = .15 * n + d + n, p.textColor = 16777215, p.textAlign = egret.HorizontalAlign.CENTER, 
                                p.touchEnabled = !0, p.addEventListener(egret.TouchEvent.TOUCH_END, l, this.floatIcon), 
                                (r + 1) % 2 == 0 ? (s += 1, i = 30, a = 0) : (i += 30, a += 1);
                            }.bind(this)), t.$setAlpha(1);
                        }.bind(this);
                    }
                }, t.prototype.isShow = function() {
                    return this.isRender;
                }, t.prototype.setX = function(t) {
                    this.isShow() && this.one_container.$setX(t);
                }, t.prototype.remove = function() {
                    this.isShow() && this.floatIcon.removeChild(this.one_container);
                }, t.prototype.setY = function(t) {
                    this.isShow() && this.one_container.$setY(t);
                }, t.prototype.loadImg = function(t, e) {
                    var i = new egret.ImageLoader();
                    i.addEventListener(egret.Event.COMPLETE, e, this), i.load(t);
                }, t;
            }(), a = this, o = new n({
                clickUpdate: function() {
                    e.toMiniD();
                },
                data: function() {
                    return a.onegamelist ? a.onegamelist : [];
                }
            });
            this.popGameList = o.popGameList.bind(o);
        }
    }, {
        key: "showFloatIconByLaya",
        value: function() {
            var t = this, e = function() {
                function t(t) {
                    this._clickUpdate = function() {
                        this.msg("您点击了升级");
                    }, this._imgSprite = new Laya.Sprite(), this._imgSrc = "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_1.png", 
                    this._touchStatus = !1, this._touchMoveStatus = !1, this._distance = new Laya.Point(), 
                    this._imgSrc2 = "https://frontcdn.17a.cn/static/images/floatIcon/slFloatIcon_2.png", 
                    this.button = null, this._proportion = Laya.stage.width / 1280, this.one_data = null, 
                    this.one_game_list = null, this.one_container = null, t && (this._clickUpdate = t.clickUpdate, 
                    this.setOneData(t.data)), this.createView(), this.showOneGameList();
                }
                return t.prototype.createView = function() {
                    this._imgSprite.loadImage(this._imgSrc), Laya.stage.addChild(this._imgSprite), this._imgSprite.x = 0, 
                    this._imgSprite.y = 0, this._imgSprite.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown), 
                    this._imgSprite.on(Laya.Event.MOUSE_UP, this, this.onMouseUp), this._imgSprite.scale(this._proportion, this._proportion), 
                    this.alwaysOnTop();
                }, t.prototype.onMouseMove = function(t) {
                    if (this._touchStatus) {
                        this._touchMoveStatus = !0;
                        var e = t.stageX - this._distance.x, i = t.stageY - this._distance.y;
                        if (this._imgSprite.x == e && this._imgSprite.y == i) return void (this._touchMoveStatus = !1);
                        e >= 0 && e <= Laya.stage.width - this._imgSprite.width * this._proportion && (this._imgSprite.x = e, 
                        this._touchMoveStatus = !0), i >= 0 && i <= Laya.stage.height - this._imgSprite.height * this._proportion && (this._imgSprite.y = i, 
                        this._touchMoveStatus = !0), this._touchMoveStatus && this._img2Sprite && this.followMenu();
                    }
                }, t.prototype.mouseDown = function(t) {
                    t.stopPropagation(), this._touchStatus = !0, this._distance.x = t.stageX - this._imgSprite.x, 
                    this._distance.y = t.stageY - this._imgSprite.y, this._imgSprite.alpha = 1, Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove);
                }, t.prototype.onMouseUp = function(t) {
                    var e = this;
                    t.stopPropagation(), this._touchMoveStatus ? (clearInterval(this._timerId), this._imgSprite.x + this._imgSprite.width / 2 <= Laya.stage.width / 2 ? this._timerId = setInterval(function() {
                        e._imgSprite.x - 40 * e._proportion >= 0 ? e._imgSprite.x -= 40 * e._proportion : (e._imgSprite.x = 0, 
                        setTimeout(function() {
                            e._imgSprite.x -= e._imgSprite.width * e._proportion / 2, e._imgSprite.alpha = .8, 
                            e._img2Sprite && e.followMenu();
                        }, 1e3), clearInterval(e._timerId)), e._img2Sprite && e.followMenu();
                    }, 20) : this._timerId = setInterval(function() {
                        e._imgSprite.x + 40 * e._proportion < Laya.stage.width - e._imgSprite.width * e._proportion ? e._imgSprite.x += 40 * e._proportion : (e._imgSprite.x = Laya.stage.width - e._imgSprite.width * e._proportion, 
                        setTimeout(function() {
                            e._imgSprite.x += e._imgSprite.width * e._proportion / 2, e._imgSprite.alpha = .8, 
                            e._img2Sprite && e.followMenu();
                        }, 1e3), clearInterval(e._timerId)), e._img2Sprite && e.followMenu();
                    }, 20)) : this._img2Sprite ? (this._clearList(), null != this.button && (this.button.hide(), 
                    this.button.destroy(), this.button = null)) : (this.createListView(), this.createWxUserInfoButotn(this._img2Sprite)), 
                    this._touchStatus = !1, this._touchMoveStatus = !1, Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.onMouseMove);
                }, t.prototype.createListView = function() {
                    this._img2Sprite = new Laya.Sprite(), this._img2Sprite.loadImage(this._imgSrc2), 
                    Laya.stage.addChild(this._img2Sprite), this.followMenu(), this._img2Sprite.scale(this._proportion, this._proportion), 
                    this._img2Sprite.on(Laya.Event.MOUSE_UP, this, this.onListMouseUp), this._clearList = function() {
                        this._img2Sprite.off(Laya.Event.MOUSE_UP, this, this.onListMouseUp), Laya.stage.removeChild(this._img2Sprite), 
                        this._img2Sprite = null;
                    }.bind(this);
                }, t.prototype.followMenu = function() {
                    this._imgSprite.x + this._imgSprite.width / 2 <= Laya.stage.width / 2 ? this._img2Sprite.x = this._imgSprite.x + 20 * this._proportion + this._imgSprite.width * this._proportion : this._img2Sprite.x = this._imgSprite.x - 20 * this._proportion - this._img2Sprite.width * this._proportion, 
                    this._img2Sprite.y = this._imgSprite.y;
                }, t.prototype.onListMouseUp = function(t) {
                    this._clickUpdate();
                }, t.prototype.msg = function(t) {
                    var e = window.wx || {};
                    e && e.showToast({
                        title: t,
                        icon: "none"
                    });
                }, t.prototype.alwaysOnTop = function() {
                    var t = this;
                    setInterval(function() {
                        var e = Laya.stage.numChildren;
                        Laya.stage.setChildIndex(t._imgSprite, e - 1), null != t.one_game_list && t.one_game_list.isShow() && Laya.stage.setChildIndex(t.one_game_list.getMain(), e - 2);
                    }, 1e3);
                }, t.prototype.createWxUserInfoButotn = function(t) {
                    null != this.button && (this.button.hide(), this.button.destroy(), this.button = null);
                    var e = window.wx || {}, i = this;
                    this.button = e.createUserInfoButton();
                    var n = e.getSystemInfoSync();
                    this.button.text = "", this.button.style.width = t.width / Laya.stage.width * n.screenWidth, 
                    this.button.style.height = t.height / Laya.stage.height * n.screenHeight, this.button.style.left = t.x / Laya.stage.width * n.screenWidth, 
                    this.button.style.top = t.y / Laya.stage.height * n.screenHeight, this.button.onTap(function() {
                        e.getUserInfo({
                            success: function(t) {
                                i._clickUpdate(), r(window.loginOpts), i._clearList(), null != i.button && (i.button.hide(), 
                                i.button.destroy(), i.button = null);
                            }
                        });
                    });
                }, t.prototype.showOneGameList = function() {
                    this.one_game_list = new i(this.one_data);
                }, t.prototype.setOneData = function(t) {
                    this.one_data = t;
                }, t.prototype.hideOneGameList = function() {
                    this.one_game_list.remove(), this.one_game_list = null;
                }, t.prototype.popGameList = function() {
                    this.hideOneGameList(), this.showOneGameList();
                }, t;
            }(), i = function() {
                function t(t) {
                    this.parent_stage = Laya.stage, this.one_container = new Laya.Sprite(), this.data = [], 
                    this.isRender = !1, t && (this.data = t()), this.initView();
                }
                return t.prototype.getMain = function() {
                    return this.one_container;
                }, t.prototype.initView = function() {
                    if (!(this.data.length <= 0)) {
                        this.isRender = !0, this.parent_stage.addChild(this.one_container);
                        var t = this.one_container, e = this.parent_stage.height / 3, i = .7 * this.parent_stage.width, n = (i - 150) / 2, s = 1.353 * i;
                        t.mouseEnabled = !0;
                        var a = window.SLWX.systemArgs.channelId, o = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_bg.png", r = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_switch_left.png", c = "https://frontcdn.17a.cn/MangLingWXSDK/recommend/" + a + "/" + a + "_switch_right.png";
                        (function() {
                            var n = new Laya.Image(o);
                            n.x = 0, n.y = e, n.width = i, n.height = s, t.addChild(n);
                        }).bind(this)();
                        var l = null, h = null, d = !0;
                        this.one_container.x = 0 - i;
                        var u = function() {
                            var e = this;
                            if (d) var n = setInterval(function() {
                                if (e.one_container.x <= 0 - i) return e.one_container.x = 0 - i, clearInterval(n), 
                                t.removeChild(l), t.addChild(h), void (d = !1);
                                e.setX(e.one_container.x - 50);
                            }, 30); else var s = setInterval(function() {
                                if (e.one_container.x >= 0) return e.one_container.x = 0, clearInterval(s), t.removeChild(h), 
                                t.addChild(l), void (d = !0);
                                e.one_container.x + 50 >= 0 ? e.setX(0) : e.setX(e.one_container.x + 50);
                            }, 30);
                        }.bind(this), p = function(n) {
                            var a = i, o = e + s / 5 * 4, r = new Laya.Image(n);
                            return r.x = a, r.y = o, r.width = Math.round(.0625 * Laya.stage.width), r.height = Math.round(1.75 * r.width), 
                            t.addChild(r), r.mouseEnabled = !0, r.on(Laya.Event.MOUSE_DOWN, this, function(t) {
                                u();
                            }), r;
                        }.bind(this);
                        l = p(r), t.removeChild(l), h = p(c), d = !1;
                        var g = 30, f = 0, m = 0, w = window.wx || {};
                        this.data.map(function(i, s, a) {
                            var o = function() {
                                w.navigateToMiniProgram({
                                    appId: i.wx_appid,
                                    path: "index?adsId=wxHotGame_" + window.SLWX.systemArgs.channelId,
                                    success: function(t) {
                                        window.SLWX.reportClickPop({
                                            event: "click",
                                            wx_appid: i.wx_appid,
                                            sence: "游戏推荐"
                                        });
                                    },
                                    fail: function(t) {
                                        window.SLWX.reportClickPop({
                                            event: "close",
                                            wx_appid: i.wx_appid,
                                            sence: "游戏推荐"
                                        });
                                    }
                                });
                            }, r = 25 + g + m * n, c = 20 + e + .6 * n + f * (n + .6 * n) + 20, l = -1 == i.game_icon.indexOf("http") ? "https://sdk.silanggame.com" + i.game_icon : i.game_icon, h = new Laya.Image(l);
                            h.x = r, h.y = c, h.width = n, h.height = n, t.addChild(h), h.mouseEnabled = !0, 
                            h.on(Laya.Event.MOUSE_DOWN, this, function(t) {
                                o();
                            });
                            var d = new Laya.Label();
                            d.text = i.channel_name, d.bold = !1, t.addChild(d), d.width = n, d.x = r, d.fontSize = .2 * n, 
                            d.y = .15 * n + c + n, d.color = "#FFFFFF", d.align = Laya.Stage.ALIGN_CENTER, d.mouseEnabled = !0, 
                            d.on(Laya.Event.MOUSE_DOWN, this, function(t) {
                                o();
                            }), (s + 1) % 2 == 0 ? (f += 1, g = 30, m = 0) : (g += 30, m += 1);
                        }.bind(this));
                    }
                }, t.prototype.isShow = function() {
                    return this.isRender;
                }, t.prototype.setX = function(t) {
                    this.isShow() && (this.one_container.x = t);
                }, t.prototype.remove = function() {
                    this.isShow() && this.parent_stage.removeChild(this.one_container);
                }, t.prototype.setY = function(t) {
                    this.isShow() && (this.one_container.y = t);
                }, t;
            }(), n = this, s = new e({
                clickUpdate: function() {
                    t.toMiniD();
                },
                data: function() {
                    return n.onegamelist ? n.onegamelist : [];
                }
            });
            this.popGameList = s.popGameList.bind(s);
        }
    }, {
        key: "showRedPacket3",
        value: function() {
            this.open_buoy;
            window.SLSuperObject = this.redPacket3DataModelInit(this.getSuperObjectClass());
            var t = new Proxy(window.SLSuperObject, {
                get: function(t, e, i) {
                    return Reflect.get(t, e, i);
                },
                set: function(t, e, i, n) {
                    return Reflect.set(t, e, i, n);
                }
            }), a = window.egret;
            if (a) {
                var o = window.eui, r = function(t) {
                    e(r, t);
                    var a = i(r);
                    function r() {
                        var t;
                        return n(this, r), (t = a.call(this)).bgImg, t.titleText, t.contentText, t.confrimText, 
                        t.status = "0", t.beginHtml, t.color = "0xE0E0E0", t.initView(), t;
                    }
                    return s(r, [ {
                        key: "initView",
                        value: function() {
                            this.bgImg = new o.Image(), this.titleText = new o.Label(), this.contentText = new o.Label(), 
                            this.confrimText = new o.Label(), this.titleText.width = 154, this.contentText.width = 154, 
                            this.confrimText.width = 154, this.titleText.y = 43, this.contentText.y = 73, this.confrimText.y = 117, 
                            this.titleText.textAlign = "center", this.contentText.textAlign = "center", this.confrimText.textAlign = "center", 
                            this.addChild(this.bgImg), this.addChild(this.titleText), this.addChild(this.contentText), 
                            this.addChild(this.confrimText);
                        }
                    }, {
                        key: "dataChanged",
                        value: function() {
                            if (this.data) {
                                this.bgImg.source = this.data.bgSource, this.status = this.data.status, this.setTitle(this.data.name), 
                                this.setContent(this.data.content);
                                var t = 2 == this.status ? "待领取" : "1" == this.status ? "已领取" : "未完成";
                                "shareTask" == this.data.category && (t = "去分享"), this.setConfirmText(t);
                            }
                        }
                    }, {
                        key: "setTitle",
                        value: function(t) {
                            if (t = t.replace(/ /g, ""), "2" == this.data.status) {
                                this.setColor("0xffeeaa"), this.beginHtml = "<font color='".concat(this.color, "' size=23 stroke=2 strokeColor='0x4f0d00'>");
                                var e = /[0-9]\d*/g, i = t.match(e);
                                t = t.replace(e, "<font color='0x11ee33' size=23 stroke=2 strokeColor='0x074727'>".concat(i, "</font>").concat(this.beginHtml));
                            } else this.setColor("0xE0E0E0"), this.beginHtml = "<font color='".concat(this.color, "' size='23' stroke='2' strokeColor='0x2A2A2A'>");
                            this.titleText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setContent",
                        value: function(t) {
                            if (t = t.replace(/ /g, ""), "2" == this.data.status) {
                                this.setColor("0xffeeaa"), this.beginHtml = "<font color='".concat(this.color, "' size=23 stroke=2 strokeColor='0x4f0d00' >");
                                var e = /[+].*[0-9]\d*/g, i = t.match(e);
                                t = t.replace(e, "<font color='0x11ee33' size=23 stroke=2 strokeColor='0x074727'>".concat(i, "</font>").concat(this.beginHtml));
                            } else this.setColor("0xE0E0E0"), this.beginHtml = "<font color='".concat(this.color, "' size='23' stroke='2' strokeColor='0x2A2A2A'>");
                            this.contentText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setConfirmText",
                        value: function(t) {
                            t = t.replace(/ /g, ""), this.confrimText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setColor",
                        value: function(t) {
                            this.color = t;
                        }
                    } ]), r;
                }(o.ItemRenderer), c = function() {
                    function t(e) {
                        n(this, t), this.superObj = e, this.superObj.setUpdataView(this.updataView.bind(this)), 
                        this.viewJson = {
                            x: 0,
                            type: "Sprite",
                            props: {
                                width: 750,
                                name: "redPacketView",
                                height: 1334
                            },
                            child: [ {
                                x: 15,
                                type: "MovieClip",
                                props: {
                                    y: 381,
                                    x: 21,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/egretRedPacketAnimatoin.png"
                                },
                                child: []
                            }, {
                                type: "Sprite",
                                props: {
                                    y: 668,
                                    x: 2,
                                    width: 750,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/bg.jpg",
                                    name: "container",
                                    height: 667
                                },
                                child: [ {
                                    type: "Sprite",
                                    props: {
                                        y: 0,
                                        x: -1,
                                        touchEnabled: !0
                                    },
                                    child: [ {
                                        type: "Label",
                                        props: {
                                            y: 43,
                                            x: 32,
                                            width: 300,
                                            verticalAlign: "middle",
                                            text: "S2700.一二三四五六七",
                                            padding: "0,12,0,12",
                                            name: "name",
                                            height: 40,
                                            size: 22,
                                            fontFamily: "SimHei",
                                            textColor: "#579E30",
                                            bold: !0,
                                            textAlign: "left"
                                        }
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 44,
                                            x: 295,
                                            width: 147,
                                            verticalAlign: "middle",
                                            text: "开服天数：第",
                                            padding: "0,12,0,12",
                                            height: 38,
                                            size: 22,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 44,
                                            x: 439,
                                            width: 29,
                                            verticalAlign: "middle",
                                            text: "88",
                                            name: "server_day",
                                            height: 38,
                                            size: 22,
                                            fontFamily: "SimHei",
                                            textColor: "#579E30",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 43,
                                            x: 464,
                                            width: 27,
                                            verticalAlign: "middle",
                                            text: "天",
                                            height: 38,
                                            size: 22,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Image",
                                        props: {
                                            y: 43,
                                            x: 511,
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/rule.jpg",
                                            name: "tips",
                                            touchEnabled: !0
                                        },
                                        child: []
                                    }, {
                                        type: "Image",
                                        searchKey: "Image,closeButton",
                                        props: {
                                            touchEnabled: !0,
                                            y: -1,
                                            x: 668,
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/close.png",
                                            name: "closeButton"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 118,
                                            x: 58,
                                            width: 150,
                                            text: "余额（元）",
                                            height: 30,
                                            size: 27,
                                            textColor: "#EDB67B",
                                            bold: !0
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        searchKey: "Label,money",
                                        props: {
                                            y: 148,
                                            x: 58,
                                            width: 300,
                                            text: "88.88",
                                            name: "money",
                                            height: 100,
                                            size: 100,
                                            textColor: "#EDB878"
                                        },
                                        child: []
                                    }, {
                                        type: "Image",
                                        props: {
                                            y: 148,
                                            x: 491,
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/cash.png",
                                            name: "cashButton",
                                            touchEnabled: !0
                                        },
                                        child: []
                                    }, {
                                        type: "Image",
                                        props: {
                                            y: 281,
                                            x: 127,
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/clock.png"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 166,
                                            width: 225,
                                            verticalAlign: "middle",
                                            text: "活动时间倒计时：",
                                            height: 50,
                                            size: 26,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 362,
                                            verticalAlign: "middle",
                                            text: "00",
                                            name: "server_act_day",
                                            height: 50,
                                            size: 24,
                                            fontFamily: "SimHei",
                                            textColor: "#5DCE36",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 389,
                                            verticalAlign: "middle",
                                            text: "天",
                                            height: 50,
                                            size: 26,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 424,
                                            verticalAlign: "middle",
                                            text: "00",
                                            name: "server_act_hour",
                                            height: 50,
                                            size: 24,
                                            fontFamily: "SimHei",
                                            textColor: "#5DCE36",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 451,
                                            verticalAlign: "middle",
                                            text: "时",
                                            height: 50,
                                            size: 26,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 486,
                                            verticalAlign: "middle",
                                            text: "00",
                                            name: "server_act_minute",
                                            height: 50,
                                            size: 24,
                                            fontFamily: "SimHei",
                                            textColor: "#5DCE36",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "Label",
                                        props: {
                                            y: 270,
                                            x: 513,
                                            verticalAlign: "middle",
                                            text: "分钟",
                                            height: 50,
                                            size: 26,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    }, {
                                        type: "List",
                                        props: {
                                            y: 330,
                                            x: 36,
                                            width: 684,
                                            spaceY: 30,
                                            spaceX: 15,
                                            repeatY: 2,
                                            repeatX: 4,
                                            name: "act_list",
                                            touchEnabled: !0,
                                            height: 312
                                        },
                                        child: []
                                    } ]
                                } ]
                            }, {
                                x: 15,
                                type: "Sprite",
                                props: {
                                    y: 708,
                                    x: 39,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/bg2.png",
                                    name: "tipsContainer"
                                },
                                child: [ {
                                    type: "Image",
                                    props: {
                                        y: 33,
                                        x: 552,
                                        source: "https://frontcdn.17a.cn/wx/miniapp/icon/close.png",
                                        name: "tipsCloseButton"
                                    },
                                    child: []
                                }, {
                                    type: "Scroller",
                                    props: {
                                        y: 132,
                                        x: 58,
                                        width: 552,
                                        height: 385
                                    },
                                    child: [ {
                                        type: "Label",
                                        props: {
                                            y: 0,
                                            x: 0,
                                            wordWrap: !0,
                                            width: 552,
                                            verticalAlign: "top",
                                            name: "tipsContent",
                                            lineSpacing: 7,
                                            size: 25,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    } ]
                                } ]
                            }, {
                                type: "Image",
                                props: {
                                    y: 391,
                                    x: 41,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png",
                                    name: "redPacketStatic"
                                },
                                child: []
                            } ]
                        }, this.redPacketView = null, this.name, this.server_day, this.tips, this.money, 
                        this.cashButton, this.server_act_day, this.server_act_hour, this.server_act_minute, 
                        this.act_list, this.initFlag = !1, this.initView(), this.YDMTimer = 0, this.container, 
                        this.redPacketFloatIco, this.redPacketStaticFloatIcon, this.tipsContainer, this.tipsContent, 
                        this.tipsCloseButton, this.clickTimerId = 0;
                    }
                    return s(t, [ {
                        key: "initView",
                        value: function() {
                            if (this.superObj.getIsShow() && (this.egret = window.egret, this.eui = window.eui, 
                            this.egret)) {
                                var t = this;
                                t.imgLoader(t.viewJson, function() {
                                    this.redPacketView = t.createByJson(t.viewJson), this.egret.lifecycle.stage.addChild(this.redPacketView), 
                                    this.redPacketView = this.redPacketView.$children[0], window.testView = this.redPacketView, 
                                    this.container = this.redPacketView.$children[1];
                                    var e = t.egret.lifecycle.stage.stageWidth / 750;
                                    this.redPacketView.scaleX = e, this.redPacketView.scaleY = e, this.redPacketView.y += t.egret.lifecycle.stage.stageHeight - 1334 * e, 
                                    this.redPacketView.x = -2, this.redPacketView.width = 0, this.redPacketView.height = 0, 
                                    this.redPacketFloatIcon = this.redPacketView.$children[0], this.redPacketStaticFloatIcon = this.redPacketView.$children[3], 
                                    this.tipsContainer = this.redPacketView.$children[2], this.scrollView = this.tipsContainer.$children[2], 
                                    this.tipsContent = this.scrollView.$children[0], this.scrollView.removeChild(this.tipsContent), 
                                    this.group = new t.eui.Group(), this.group.layout = new t.eui.VerticalLayout(), 
                                    this.group.addChild(this.tipsContent), this.scrollView.viewport = this.group, this.tipsContent.wordWrap = !0, 
                                    this.tipsCloseButton = this.tipsContainer.$children[1], this.firstView = this.container.$children[1], 
                                    this.name = this.firstView.$children[0], this.server_day = this.firstView.$children[2], 
                                    this.tips = this.firstView.$children[4], this.money = this.firstView.$children[7], 
                                    this.cashButton = this.firstView.$children[8], this.server_act_day = this.firstView.$children[11], 
                                    this.server_act_hour = this.firstView.$children[13], this.server_act_minute = this.firstView.$children[15], 
                                    this.act_list = this.firstView.$children[17], this.redPacketFloatIcon.touchEnabled = !0, 
                                    this.redPacketFloatIcon.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.container.visible = !this.container.visible, this.redPacketFloatIcon.visible = !1, 
                                        this.redPacketStaticFloatIcon.visible = !0, this.superObj.refresh();
                                    }.bind(this), this), this.redPacketStaticFloatIcon.touchEnabled = !0, this.redPacketStaticFloatIcon.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.container.visible = !this.container.visible, this.superObj.refresh();
                                    }.bind(this), this), this.firstView.touchEnabled = !0, this.firstView.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        switch (t.target.name) {
                                          case "closeButton":
                                            this.container.visible = !1, this.tipsContainer.visible = !1;
                                            break;

                                          case "tips":
                                            this.tipsContainer.visible = !0;
                                            break;

                                          case "cashButton":
                                            this.superObj.withdraw();
                                        }
                                    }.bind(this), this), this.tipsCloseButton.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.tipsContainer.visible = !1;
                                    }.bind(this), this), this.initFlag = !0, this.act_list.itemRenderer = r, this.act_list.addEventListener(t.eui.ItemTapEvent.ITEM_TAP, this.itemOnTap, this), 
                                    this.updataView();
                                }.bind(t));
                            }
                        }
                    }, {
                        key: "updataView",
                        value: function() {
                            var t = this, e = setInterval(function() {
                                t.initFlag && (t.updata(), clearInterval(e));
                            }, 300);
                        }
                    }, {
                        key: "itemOnTap",
                        value: function(t) {
                            var e = this;
                            0 != this.clickTimerId && clearTimeout(this.clickTimerId), this.clickTimerId = setTimeout(function() {
                                var i, n, s, a = t.itemIndex, o = e.superObj.getActivityList(), r = null;
                                (a >= 0 && (r = o[a]), r) && (i = r.id, n = r.status, s = r.category, e.superObj.finsh(i, n, s, a));
                            }, 300);
                        }
                    }, {
                        key: "updata",
                        value: function() {
                            var t = this;
                            this.name.text = this.superObj.getName(), this.server_day.text = this.superObj.getServerDay(), 
                            this.money.text = this.superObj.getMoney(), 0 != this.YDMTimer && clearInterval(this.YDMTimer);
                            var e, i, n, s, a, r = 1e3 * this.superObj.getCycleTime();
                            this.YDMTimer = setInterval(function() {
                                (r -= 1e3) > 0 ? (r >= 864e5 ? (e = Math.floor(r / 864e5), s = r % 864e5, i = Math.floor(s / 36e5), 
                                a = s % 36e5, n = Math.floor(a / 6e4)) : r >= 36e5 ? (e = 0, s = r / 60 / 1e3 / 60, 
                                i = parseInt(r / 60 / 1e3 / 60), n = Math.ceil((r - 60 * i * 1e3 * 60) / 1e3 / 60)) : (e = 0, 
                                i = 0, n = parseInt(r / 1e3 / 60)), e = t.bedeckNumber(e), i = t.bedeckNumber(i), 
                                n = t.bedeckNumber(n), t.server_act_day.text = e, t.server_act_hour.text = i, t.server_act_minute.text = n) : (t.server_act_day.text = "00", 
                                t.server_act_hour.text = "00", t.server_act_minute.text = "00", clearInterval(t.YDMTimer));
                            }, 1e3), this.tipsContent.text = this.superObj.getActContent().replace(/\\n/g, "\n");
                            for (var c = this.superObj.getActivityList(), l = new o.ArrayCollection(), h = 0; h < c.length; h++) {
                                var d = "2" == c[h].status ? "https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png" : "https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png";
                                c[h].bgSource = d, l.addItem(c[h]);
                            }
                            this.act_list.dataProvider = l, this.act_list.layout.horizontalGap = 15;
                        }
                    }, {
                        key: "bedeckNumber",
                        value: function(t) {
                            return t < 10 ? "0" + t : t;
                        }
                    }, {
                        key: "createByJson",
                        value: function(t) {
                            var e = new a.Sprite();
                            return function t(i, n) {
                                var s, r = i.type;
                                switch (r) {
                                  case "Sprite":
                                  case "MovieClip":
                                    a[r] ? s = new a[r]() : (s = new o.Image(), i.props.source = "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png", 
                                    console.log("[肆狼] 部分游戏工程过低暂不支持序列图 egret." + r));
                                    break;

                                  default:
                                    s = new o[r]();
                                }
                                n ? n.addChild(s) : e = n;
                                var c, l = i.props;
                                if (l) for (var h in l) if (void 0 !== s[h]) s[h] = l[h]; else {
                                    var d = "source" == h, u = "padding" == h;
                                    switch (r) {
                                      case "Label":
                                        if (!u) break;
                                        var p = l[h].split(",");
                                        s.top = p[0], s.right = p[1], s.bottom = p[2], s.left = p[3];
                                        break;

                                      case "Sprite":
                                        if (!d) break;
                                        var g = new o.Image();
                                        g.source = l[h], s.addChild(g);
                                        break;

                                      case "MovieClip":
                                        if (!d) break;
                                        var f = l[h].replace("png", "json");
                                        window.RES.getResByUrl(f, function(t) {
                                            var e = window.RES.getRes(l[h]), i = new a.MovieClipDataFactory(t, e);
                                            s.movieClipData = i.generateMovieClipData("redpacket"), s.gotoAndPlay(0, -1);
                                        }, this, window.RES.ResourceItem.TYPE_JSON);
                                        break;

                                      case "List":
                                        var m = new window.eui.TileLayout();
                                        s.layout = m, "spaceX" == h && (s.layout.verticalGap = l[h]), "spaceY" == h && (s.layout.horizontalGap = l[h]), 
                                        "repeatY" == h && (console.log("列数", l[h]), s.layout.requestedRowCount = l[h]), 
                                        "repeatX" == h && (s.layout.requestedColumnCount = l[h]);
                                        break;

                                      default:
                                        console.log("[肆狼] 白鹭引擎createByJson ".concat(r, ":").concat(h, ",暂不支持"), l[h]);
                                    }
                                }
                                if (c = i.child) for (var w = 0; w < c.length; w++) t(c[w], s);
                            }(t, e), e;
                        }
                    }, {
                        key: "imgLoader",
                        value: function(t, e) {
                            var i = [];
                            !function t(e) {
                                var n, s = e.props;
                                s.source && (n = s.source, i.push(n));
                                var a = e.child;
                                if (a) for (var o = 0; o < a.length; o++) t(a[o]);
                            }(t);
                            var n = window.RES, s = function(t) {
                                t == i.length - 1 && e();
                            };
                            i.push("https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png"), i.push("https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png");
                            for (var a = 0; a < i.length; a++) !function(t) {
                                n.getResByUrl(i[a], function(e) {
                                    s(t);
                                }, this, n.ResourceItem.TYPE_IMAGE);
                            }(a);
                        }
                    } ]), t;
                }();
                window.SLSuperObject.setInitCallBack(function() {
                    new c(t);
                });
            } else console.log("[肆狼] 全局变量window下无白鹭对象");
        }
    }, {
        key: "showRedPacket3ByLaya",
        value: function() {
            this.open_buoy;
            window.SLSuperObject = this.redPacket3DataModelInit(this.getSuperObjectClass());
            var t = new Proxy(window.SLSuperObject, {
                get: function(t, e, i) {
                    return Reflect.get(t, e, i);
                },
                set: function(t, e, i, n) {
                    return Reflect.set(t, e, i, n);
                }
            }), a = s(function t() {
                n(this, t), console.log("not haver super class");
            }), o = function(t) {
                e(o, t);
                var a = i(o);
                function o() {
                    var t;
                    return n(this, o), (t = a.call(this)).width = 154, t.height = 150, t.Laya = window.Laya, 
                    t.color = "#E0E0E0", t.titleText, t.contentText, t.confrimText, t.beginHtml, t.initView(), 
                    t.status = "0", t;
                }
                return s(o, [ {
                    key: "initView",
                    value: function() {
                        this.bgImage = new this.Laya.Image(), this.bgImage.width = this.width, this.bgImage.height = this.height, 
                        this.addChild(this.bgImage), this.titleText = new this.Laya.HTMLDivElement(), this.contentText = new this.Laya.HTMLDivElement(), 
                        this.confrimText = new this.Laya.HTMLDivElement(), this.titleText.style.width = 154, 
                        this.titleText.style.align = "center", this.titleText.x = 0, this.titleText.y = 43, 
                        this.contentText.style.width = 154, this.contentText.style.align = "center", this.contentText.x = 0, 
                        this.contentText.y = 73, this.confrimText.style.width = 154, this.confrimText.style.align = "center", 
                        this.confrimText.x = 0, this.confrimText.y = 117, this.addChild(this.titleText), 
                        this.addChild(this.contentText), this.addChild(this.confrimText);
                    }
                }, {
                    key: "setTitle",
                    value: function(t) {
                        if (t = t.replace(/ /g, ""), "2" == this.status) {
                            this.setColor("#ffeeaa"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#4f0d00;' align='center' >");
                            var e = /[0-9]\d*/g, i = t.match(e);
                            t = t.replace(e, "<span color='#11ee33' style='fontSize:23;stroke:4;strokeColor:#074727;' align='center'>".concat(i, "</span>").concat(this.beginHtml));
                        } else this.setColor("#E0E0E0"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#2A2A2A;' align='center' >");
                        this.titleText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setContent",
                    value: function(t) {
                        if (t = t.replace(/ /g, ""), "2" == this.status) {
                            this.setColor("#ffeeaa"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#4f0d00;' align='center' >");
                            var e = /[+].*[0-9]\d*/g, i = t.match(e);
                            t = t.replace(e, "<span color='#11ee33' style='fontSize:23;stroke:4;strokeColor:#074727;' align='center'>".concat(i, "</span>").concat(this.beginHtml));
                        } else this.setColor("#E0E0E0"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#2A2A2A;' align='center' >");
                        this.contentText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setConfirmText",
                    value: function(t) {
                        t = t.replace(/ /g, ""), this.confrimText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setColor",
                    value: function(t) {
                        this.color = t;
                    }
                }, {
                    key: "setImg",
                    value: function(t) {
                        var e = this, i = 2 != t ? "https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png" : "https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png";
                        this.Laya.loader.load([ i ], {
                            runWith: function() {
                                e.bgImage.skin = i;
                            }
                        });
                    }
                } ]), o;
            }(window.Laya.Box || a), r = function() {
                function t(e) {
                    n(this, t), this.superObj = e, this.superObj.setUpdataView(this.updataView.bind(this)), 
                    this.viewJson = {
                        x: 0,
                        type: "View",
                        selectedBox: 2,
                        selecteID: 118,
                        searchKey: "View,redPacketView",
                        props: {
                            width: 750,
                            sceneWidth: 750,
                            sceneHeight: 1334,
                            sceneColor: "#000000",
                            name: "redPacketView",
                            height: 1334
                        },
                        nodeParent: -1,
                        maxID: 119,
                        label: "redPacketView",
                        isOpen: !0,
                        isDirectory: !0,
                        isAniNode: !0,
                        hasChild: !0,
                        compId: 2,
                        child: [ {
                            x: 15,
                            type: "Clip",
                            searchKey: "Clip,redPacket",
                            props: {
                                y: 381,
                                x: 21,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao.png",
                                name: "redPacket",
                                interval: 100,
                                clipY: 1,
                                clipX: 6,
                                autoPlay: !0
                            },
                            nodeParent: 2,
                            label: "redPacket",
                            isDirectory: !1,
                            isAniNode: !0,
                            hasChild: !1,
                            compId: 117,
                            child: []
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,container",
                            props: {
                                y: 668,
                                x: 2,
                                width: 750,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/bg.jpg",
                                name: "container",
                                mouseEnabled: !0,
                                height: 667
                            },
                            nodeParent: 2,
                            label: "container",
                            isOpen: !1,
                            isDirectory: !0,
                            isAniNode: !0,
                            hasChild: !0,
                            compId: 73,
                            child: [ {
                                type: "View",
                                searchKey: "View",
                                props: {
                                    y: 0,
                                    x: -1,
                                    mouseEnabled: !0
                                },
                                nodeParent: 73,
                                label: "View",
                                isOpen: !1,
                                isDirectory: !0,
                                isAniNode: !0,
                                hasChild: !0,
                                compId: 93,
                                child: [ {
                                    type: "Label",
                                    searchKey: "Label,name",
                                    props: {
                                        y: 43,
                                        x: 28,
                                        width: 255,
                                        valign: "middle",
                                        text: "S2700.一二三四五六七",
                                        padding: "0,12,0,12",
                                        name: "name",
                                        height: 40,
                                        fontSize: 22,
                                        font: "SimHei",
                                        color: "#579E30",
                                        bold: !0,
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "name",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 75,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 44,
                                        x: 292,
                                        width: 147,
                                        valign: "middle",
                                        text: "开服天数：第",
                                        padding: "0,12,0,12",
                                        height: 38,
                                        fontSize: 22,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 76,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label,server_day",
                                    props: {
                                        y: 44,
                                        x: 439,
                                        width: 29,
                                        valign: "middle",
                                        text: "88",
                                        name: "server_day",
                                        height: 38,
                                        fontSize: 22,
                                        font: "SimHei",
                                        color: "#579E30",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "server_day",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 77,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 43,
                                        x: 464,
                                        width: 27,
                                        valign: "middle",
                                        text: "天",
                                        height: 38,
                                        fontSize: 22,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 78,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Image",
                                    searchKey: "Image,tips",
                                    props: {
                                        y: 43,
                                        x: 511,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/rule.jpg",
                                        name: "tips",
                                        mouseEnabled: !0
                                    },
                                    nodeParent: 93,
                                    label: "tips",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 79,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Image",
                                    searchKey: "Image,closeButton",
                                    props: {
                                        y: -1,
                                        x: 668,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/close.png",
                                        name: "closeButton",
                                        mouseEnabled: !0
                                    },
                                    nodeParent: 93,
                                    label: "closeButton",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 80,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 118,
                                        x: 58,
                                        width: 110,
                                        text: "余额（元）",
                                        height: 30,
                                        fontSize: 27,
                                        color: "#EDB67B",
                                        bold: !0
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 81,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label,money",
                                    props: {
                                        y: 148,
                                        x: 58,
                                        width: 287,
                                        text: "88.88",
                                        name: "money",
                                        height: 100,
                                        fontSize: 100,
                                        color: "#EDB878"
                                    },
                                    nodeParent: 93,
                                    label: "money",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 82,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Image",
                                    searchKey: "Image,cashButton",
                                    props: {
                                        y: 148,
                                        x: 491,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/cash.png",
                                        name: "cashButton",
                                        mouseEnabled: !0
                                    },
                                    nodeParent: 93,
                                    label: "cashButton",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 83,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Image",
                                    searchKey: "Image",
                                    props: {
                                        y: 281,
                                        x: 127,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/clock.png"
                                    },
                                    nodeParent: 93,
                                    label: "Image",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 84,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 270,
                                        x: 166,
                                        width: 225,
                                        valign: "middle",
                                        text: "活动时间倒计时：",
                                        height: 50,
                                        fontSize: 26,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 86,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label,server_act_day",
                                    props: {
                                        y: 270,
                                        x: 362,
                                        valign: "middle",
                                        text: "00",
                                        name: "server_act_day",
                                        height: 50,
                                        fontSize: 24,
                                        font: "SimHei",
                                        color: "#5DCE36",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "server_act_day",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 87,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 270,
                                        x: 389,
                                        valign: "middle",
                                        text: "天",
                                        height: 50,
                                        fontSize: 26,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 88,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label,server_act_hour",
                                    props: {
                                        y: 270,
                                        x: 424,
                                        valign: "middle",
                                        text: "00",
                                        name: "server_act_hour",
                                        height: 50,
                                        fontSize: 24,
                                        font: "SimHei",
                                        color: "#5DCE36",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "server_act_hour",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 89,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 270,
                                        x: 451,
                                        valign: "middle",
                                        text: "时",
                                        height: 50,
                                        fontSize: 26,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 90,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label,server_act_minute",
                                    props: {
                                        y: 270,
                                        x: 486,
                                        valign: "middle",
                                        text: "00",
                                        name: "server_act_minute",
                                        height: 50,
                                        fontSize: 24,
                                        font: "SimHei",
                                        color: "#5DCE36",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "server_act_minute",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 91,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "Label",
                                    searchKey: "Label",
                                    props: {
                                        y: 270,
                                        x: 513,
                                        valign: "middle",
                                        text: "分钟",
                                        height: 50,
                                        fontSize: 26,
                                        font: "SimHei",
                                        color: "#ffffff",
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "Label",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 92,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    type: "List",
                                    searchKey: "List,act_list",
                                    props: {
                                        y: 330,
                                        x: 36,
                                        width: 684,
                                        spaceX: 15,
                                        repeatY: 2,
                                        repeatX: 4,
                                        name: "act_list",
                                        mouseEnabled: !0,
                                        height: 312
                                    },
                                    nodeParent: 93,
                                    label: "act_list",
                                    isOpen: !0,
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 94,
                                    child: [],
                                    $HIDDEN: !1
                                } ],
                                $HIDDEN: !1
                            } ],
                            $HIDDEN: !1
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,tipsContainer",
                            props: {
                                y: 708,
                                x: 39,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/bg2.png",
                                name: "tipsContainer"
                            },
                            nodeParent: 2,
                            label: "tipsContainer",
                            isOpen: !1,
                            isDirectory: !0,
                            isAniNode: !0,
                            hasChild: !0,
                            compId: 99,
                            child: [ {
                                type: "Image",
                                searchKey: "Image,tipsCloseButton",
                                props: {
                                    y: 33,
                                    x: 552,
                                    skin: "https://frontcdn.17a.cn/wx/miniapp/icon/close.png",
                                    name: "tipsCloseButton"
                                },
                                nodeParent: 99,
                                label: "tipsCloseButton",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 100,
                                child: [],
                                $HIDDEN: !1
                            }, {
                                type: "Label",
                                searchKey: "Label,tipsContent",
                                props: {
                                    y: 132,
                                    x: 58,
                                    wordWrap: !0,
                                    width: 552,
                                    valign: "top",
                                    name: "tipsContent",
                                    leading: 7,
                                    height: 385,
                                    fontSize: 25,
                                    font: "SimHei",
                                    color: "#ffffff",
                                    align: "left"
                                },
                                nodeParent: 99,
                                label: "tipsContent",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 101,
                                child: [],
                                $HIDDEN: !1
                            } ],
                            $HIDDEN: !1
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,redPacketStatic",
                            props: {
                                y: 391,
                                x: 41,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png",
                                name: "redPacketStatic"
                            },
                            nodeParent: 2,
                            label: "redPacketStatic",
                            isDirectory: !1,
                            isAniNode: !0,
                            hasChild: !1,
                            compId: 118,
                            child: []
                        } ],
                        animations: [ {
                            nodes: [],
                            name: "ani1",
                            id: 1,
                            frameRate: 24,
                            action: 0
                        } ],
                        $HIDDEN: !1
                    }, this.redPacketView = null, this.name, this.server_day, this.tips, this.money, 
                    this.cashButton, this.server_act_day, this.server_act_hour, this.server_act_minute, 
                    this.act_list, this.initFlag = !1, this.initView(), this.YDMTimer = 0, this.container, 
                    this.redPacketFloatIco, this.redPacketStaticFloatIcon, this.tipsContainer, this.tipsContent, 
                    this.tipsCloseButton, this.clickTimerId = 0;
                }
                return s(t, [ {
                    key: "initView",
                    value: function() {
                        var t = this;
                        this.superObj.getIsShow() && this.viewBGLoader(function() {
                            t.redPacketView = window.Laya.ClassUtils.createByJson(JSON.stringify(t.viewJson)), 
                            window.Laya.stage.addChild(t.redPacketView), t.container = t.redPacketView._childs[1];
                            var e = window.Laya.stage.width / 750;
                            t.redPacketView.scaleX = e, t.redPacketView.scaleY = e, t.redPacketView.y += window.Laya.stage.height - 1334 * e, 
                            t.redPacketView.x = -2, t.redPacketView.width = 0, t.redPacketView.height = 0, t.redPacketFloatIcon = t.redPacketView._childs[0], 
                            t.redPacketStaticFloatIcon = t.redPacketView._childs[3], t.tipsContainer = t.redPacketView._childs[2], 
                            t.tipsContent = t.tipsContainer._childs[1], t.tipsCloseButton = t.tipsContainer._childs[0], 
                            t.firstView = t.container._childs[0], t.name = t.firstView._childs[0], t.server_day = t.firstView._childs[2], 
                            t.tips = t.firstView._childs[4], t.money = t.firstView._childs[7], t.cashButton = t.firstView._childs[8], 
                            t.server_act_day = t.firstView._childs[11], t.server_act_hour = t.firstView._childs[13], 
                            t.server_act_minute = t.firstView._childs[15], t.act_list = t.firstView._childs[17], 
                            t.firstView.on(Laya.Event.MOUSE_UP, t, function(t) {
                                switch (t.target.name) {
                                  case "closeButton":
                                    this.container.visible = !1, this.tipsContainer.visible = !1;
                                    break;

                                  case "tips":
                                    this.tipsContainer.visible = !0;
                                    break;

                                  case "cashButton":
                                    this.superObj.withdraw();
                                }
                            }), t.tipsCloseButton.on(Laya.Event.MOUSE_UP, t, function(t) {
                                this.tipsContainer.visible = !1;
                            }), t.redPacketFloatIcon.on(Laya.Event.MOUSE_UP, t, function(t) {
                                this.container.visible = !this.container.visible, this.redPacketFloatIcon.visible = !1, 
                                this.redPacketStaticFloatIcon.visible = !0, this.container.visible && this.superObj.refresh();
                            }), t.redPacketStaticFloatIcon.on(Laya.Event.MOUSE_UP, t, function(t) {
                                this.container.visible = !this.container.visible, this.container.visible && this.superObj.refresh();
                            }), t.container.visible = !1, t.initFlag = !0, t.act_list.itemRender = o, t.act_list.vScrollBarSkin = "", 
                            t.act_list.selectEnable = !0, t.act_list.mouseHandler = new window.Laya.Handler(t, t.onSelect), 
                            t.act_list.renderHandler = new window.Laya.Handler(t, t.updateItem), t.updataView();
                        });
                    }
                }, {
                    key: "onSelect",
                    value: function(t, e) {
                        var i = this;
                        0 != this.clickTimerId && clearTimeout(this.clickTimerId), this.clickTimerId = setTimeout(function() {
                            var t, n, s;
                            t = i.act_list.array[e].id, n = i.act_list.array[e].status, s = i.act_list.array[e].category, 
                            i.superObj.finsh(t, n, s, e);
                        }, 300);
                    }
                }, {
                    key: "updateItem",
                    value: function(t, e) {
                        var i = t.dataSource.name, n = t.dataSource.content, s = t.dataSource.status, a = t.dataSource.category || "", o = "2" == s ? "待领取" : "1" == s ? "已领取" : "未完成";
                        t.setImg(s), t.setTitle(i), t.setContent(n), "shareTask" == a && "0" == s && (o = "去分享"), 
                        t.setConfirmText(o);
                    }
                }, {
                    key: "viewBGLoader",
                    value: function(t) {
                        var e = new Array(), i = new Proxy(e, {
                            get: function(t, e, i) {
                                return Reflect.get(t, e, i);
                            },
                            set: function(t, e, i, n) {
                                return Reflect.set(t, e, i, n);
                            }
                        });
                        !function t(e, i) {
                            var n = e.child, s = "";
                            for (var a in e.props && (s = e.props.skin || e.props.texture) && i.push(s), n) t(n[a], i);
                        }(this.viewJson, i), i = Array.from(new Set(i)), windwo.Laya.loader.load(i, {
                            runWith: function() {
                                console.log(i, "[肆狼] loaderimgs"), t();
                            }
                        });
                    }
                }, {
                    key: "updataView",
                    value: function() {
                        var t = this, e = setInterval(function() {
                            t.initFlag && (t.updata(), clearInterval(e));
                        }, 300);
                    }
                }, {
                    key: "updata",
                    value: function() {
                        var t = this;
                        this.name.text = this.superObj.getName(), this.server_day.text = this.superObj.getServerDay(), 
                        this.money.text = this.superObj.getMoney(), 0 != this.YDMTimer && clearInterval(this.YDMTimer);
                        var e, i, n, s, a, o = 1e3 * this.superObj.getCycleTime();
                        this.YDMTimer = setInterval(function() {
                            (o -= 1e3) > 0 ? (o >= 864e5 ? (e = Math.floor(o / 864e5), s = o % 864e5, i = Math.floor(s / 36e5), 
                            a = s % 36e5, n = Math.floor(a / 6e4)) : o >= 36e5 ? (e = 0, s = o / 60 / 1e3 / 60, 
                            i = parseInt(o / 60 / 1e3 / 60), n = Math.ceil((o - 60 * i * 1e3 * 60) / 1e3 / 60)) : (e = 0, 
                            i = 0, n = parseInt(o / 1e3 / 60)), e = t.bedeckNumber(e), i = t.bedeckNumber(i), 
                            n = t.bedeckNumber(n), t.server_act_day.text = e, t.server_act_hour.text = i, t.server_act_minute.text = n) : (t.server_act_day.text = "00", 
                            t.server_act_hour.text = "00", t.server_act_minute.text = "00", clearInterval(t.YDMTimer));
                        }, 1e3), this.tipsContent.text = this.superObj.getActContent(), this.act_list.array = this.superObj.getActivityList(), 
                        this.act_list.refresh();
                    }
                }, {
                    key: "bedeckNumber",
                    value: function(t) {
                        return t < 10 ? "0" + t : t;
                    }
                } ]), t;
            }();
            window.SLSuperObject.setInitCallBack(function() {
                new r(t);
            });
        }
    }, {
        key: "getSuperObjectClass",
        value: function() {
            return window.SLSuperObject ? SLSuperObject : new (function() {
                function t() {
                    n(this, t), this.name = "", this.serverDay = 0, this.money = "0.00", this.activityTitle = "", 
                    this.activityList = [], this.finsh = function() {}, this.withdraw = function() {}, 
                    this.isShow = !1, this.updataView = function() {}, this.shareTaskCallBack = function(t) {}, 
                    this.refresh = function() {}, this.initCallBack = function() {}, this.content = "", 
                    this.beginTime = 0, this.endTime = 0, this.cycleTime = 0;
                }
                return s(t, [ {
                    key: "setName",
                    value: function(t) {
                        this.name = t;
                    }
                }, {
                    key: "getName",
                    value: function() {
                        return this.name;
                    }
                }, {
                    key: "setRefresh",
                    value: function(t) {
                        this.refresh = t;
                    }
                }, {
                    key: "setServerDay",
                    value: function(t) {
                        this.serverDay = t;
                    }
                }, {
                    key: "getServerDay",
                    value: function() {
                        return this.serverDay;
                    }
                }, {
                    key: "setMoney",
                    value: function(t) {
                        this.money = t;
                    }
                }, {
                    key: "getMoney",
                    value: function() {
                        return this.money;
                    }
                }, {
                    key: "setActivityTitle",
                    value: function(t) {
                        this.activityTitle = t;
                    }
                }, {
                    key: "getActivityTitle",
                    value: function() {
                        return this.activityTitle;
                    }
                }, {
                    key: "setActivityList",
                    value: function(t) {
                        this.activityList = t;
                    }
                }, {
                    key: "getActivityList",
                    value: function() {
                        return this.activityList;
                    }
                }, {
                    key: "setFinishCallBack",
                    value: function(t) {
                        this.finsh = t;
                    }
                }, {
                    key: "setWithdraw",
                    value: function(t) {
                        this.withdraw = t;
                    }
                }, {
                    key: "setIsShow",
                    value: function(t) {
                        this.isShow = t;
                    }
                }, {
                    key: "getIsShow",
                    value: function() {
                        return this.isShow;
                    }
                }, {
                    key: "setUpdataView",
                    value: function(t) {
                        this.updataView = t;
                    }
                }, {
                    key: "setShareTaskCallBack",
                    value: function(t) {
                        this.shareTaskCallBack = t;
                    }
                }, {
                    key: "setActContent",
                    value: function(t) {
                        this.content = t;
                    }
                }, {
                    key: "getActContent",
                    value: function() {
                        return this.content;
                    }
                }, {
                    key: "setInitCallBack",
                    value: function(t) {
                        return this.initCallBack = t, this;
                    }
                }, {
                    key: "setBeginTime",
                    value: function(t) {
                        this.beginTime = t;
                    }
                }, {
                    key: "getBeginTime",
                    value: function() {
                        return this.beginTime;
                    }
                }, {
                    key: "setEndTime",
                    value: function(t) {
                        this.endTime = t;
                    }
                }, {
                    key: "getEndTime",
                    value: function() {
                        return this.endTime;
                    }
                }, {
                    key: "getCycleTime",
                    value: function() {
                        return this.cycleTime;
                    }
                }, {
                    key: "setCycleTime",
                    value: function(t) {
                        this.cycleTime = t;
                    }
                } ]), t;
            }())();
        }
    }, {
        key: "redPacket3DataModelInit",
        value: function(t) {
            var e, i, n, s, a, o, r, c, l, h = this, d = function(t) {
                return t.data && t.data.msg && console.log("[肆狼] redPacket3 data model, return message:" + t.data.msg), 
                t.data && 0 == t.data.code;
            }, u = !0, p = function() {
                var p = this;
                console.log("[肆狼] 获取红包3.0信息..."), h.request({
                    urltype: 3,
                    url: "/2.0/activity/check",
                    header: {
                        "silang-token": h.redPacket.userToken
                    },
                    pdata: {
                        serverid: h.redPacket.args.serverId
                    },
                    callback: function(f) {
                        if (console.log("[肆狼] 红包3.0信息：", f), d(f)) {
                            var m = f.data.data;
                            e = m.server_user.roleName, i = m.acticity.server_open_day, r = m.acticity.begin_time, 
                            c = m.acticity.end_time, l = m.acticity.cycle_time, g = m.acticity.content, i = parseInt(i) < 10 ? "0" + i : i, 
                            o = m.userinfo.now_money, n = m.acticity.name, s = m.tasklist, (a = m.is_open) && wx.onShareAppMessage(function() {
                                for (var t = {
                                    query: "sourceId@" + p.systemArgs.channelId + "=" + p.userInfo.userId + "&shareTaskTime=" + h._actShareTimeStamp() + "&shareServerId=" + h.redPacket.args.serverId
                                }, e = h; null != e.parentSDK; ) e = e.parentSDK, t.query = t.query + "&sourceId@" + e.systemArgs.channelId + "=" + e.userInfo.userId + "&shareTaskTime=" + e._actShareTimeStamp() + "&shareServerId=" + e.redPacket.args.serverId;
                                var i = parseInt(1e3 * Math.random() % 3), n = 0 == i ? "" : "_" + i;
                                return t.imageUrl = h.systemArgs.assHost + "/Archives/wxapp/share/" + h.systemArgs.channelId + n + ".png", 
                                t.title = "发红包，我们是认真的，抢红包，你们准备好了吗？", t;
                            }), t.setName(e), t.setServerDay(i), t.setActivityTitle(n), t.setActivityList(s), 
                            t.setIsShow(a), t.setMoney(o), t.setActContent(g), t.setBeginTime(r), t.setEndTime(c), 
                            t.setCycleTime(l), u && t.initCallBack(), t.updataView(), u = !1;
                        } else t.setIsShow(!1);
                    }
                });
            }.bind(this);
            t.setRefresh(p), t.setShareTaskCallBack(function() {
                h.awaitLoginCallBackByRedPacket(function() {
                    h.request({
                        urltype: 3,
                        url: "/2.0/activity/setshare",
                        header: {
                            "silang-token": h.redPacket.userToken
                        },
                        pdata: {
                            serverid: h.redPacket.args.serverId
                        },
                        callback: function(t) {
                            d(t) && (wx.showToast({
                                title: "分享成功!",
                                icon: "none"
                            }), p());
                        }
                    });
                }.bind(h));
            }.bind(this)), t.setFinishCallBack(function(e, i, n, s) {
                return 0 == i ? "shareTask" == n ? (h.share({
                    query: "shareTaskTime=" + h._actShareTimeStamp() + "&shareServerId=" + h.redPacket.args.serverId,
                    title: "发红包，我们是认真的，抢红包，你们准备好了吗？"
                }), null) : (wx.showToast({
                    title: "请先完成任务",
                    icon: "none"
                }), null) : 1 == i ? (wx.showToast({
                    title: "您已领取",
                    icon: "none"
                }), null) : new Promise(function(i) {
                    h.awaitLoginCallBackByRedPacket(function() {
                        h.request({
                            loading: !0,
                            urltype: 3,
                            header: {
                                "silang-token": h.redPacket.userToken
                            },
                            url: "/2.0/activity/taskfinish",
                            pdata: {
                                id: e,
                                serverid: h.redPacket.args.serverId
                            },
                            callback: function(e) {
                                if (d(e)) {
                                    var n = t.getActivityList(), a = n[s], o = parseFloat(a.money), r = parseFloat(t.getMoney());
                                    r = (r - o).toFixed(), n[s].status = 1, t.setActivityList(n), t.updataView(), p(), 
                                    i(!0);
                                } else i(!1);
                                e.data.msg && wx.showToast({
                                    title: e.data.msg,
                                    icon: "none"
                                });
                            }
                        });
                    }.bind(h));
                });
            }), t.setWithdraw(function() {
                return new Promise(function(e) {
                    wx.showLoading({
                        title: "加载中.."
                    }), h.awaitLoginCallBackByRedPacket(function() {
                        h.request({
                            urltype: 3,
                            url: "/2.0/extract/cash",
                            header: {
                                "silang-token": h.redPacket.userToken
                            },
                            pdata: {
                                serverid: h.redPacket.args.serverId
                            },
                            callback: function(i) {
                                if (wx.hideLoading(), d(i)) {
                                    var n = i.data.data.price;
                                    0 == n ? t.setMoney("0.00") : t.setMoney((parseFloat(t.getMoney()) - n).toFixed(2)), 
                                    t.updataView(), e(!0);
                                } else e(!1);
                                i.data.msg && wx.showToast({
                                    title: i.data.msg,
                                    icon: "none"
                                });
                            }
                        });
                    }.bind(h));
                });
            });
            var g = "";
            return h.awaitLoginCallBackByRedPacket(function() {
                p();
            }.bind(h)), t;
        }
    }, {
        key: "initRedPacket3",
        value: function() {
            var t = 0, e = this, i = setInterval(function() {
                (t += 1) <= 30 ? (window.egret && window.egret.lifecycle.stage && (e.showRedPacket3(), 
                clearInterval(i)), window.Laya && window.Laya.stage && (e.showRedPacket3ByLaya(), 
                clearInterval(i))) : clearInterval(i);
            }.bind(this), 1e3);
        }
    }, {
        key: "showBackflow",
        value: function() {
            this.open_buoy;
            window.SLSuperBackflowObject = this.backflowDataModelInit(this.getSuperBackflowObjectClass());
            var a = new Proxy(window.SLSuperBackflowObject, {
                get: function(t, e, i) {
                    return Reflect.get(t, e, i);
                },
                set: function(t, e, i, n) {
                    return Reflect.set(t, e, i, n);
                }
            }), o = window.egret;
            if (o) {
                var r = window.eui, c = function(a) {
                    e(c, a);
                    var o = i(c);
                    function c() {
                        var e;
                        n(this, c), (e = o.call(this)).slButtonSKin = new r.Skin(), e.slButtonSKin.skinParts = [ "labelDisplay", "iconDisplay" ], 
                        e.slButtonSKin._image1 = new r.Image(), e.slButtonSKin.labelDisplay = new r.Label(), 
                        e.slButtonSKin.iconDisplay = new r.Image(), e.slButtonSKin.labelDisplay.verticalAlign = "middle", 
                        e.slButtonSKin.labelDisplay.textAlign = "center", e.slButtonSKin.labelDisplay.top = "8", 
                        e.slButtonSKin.labelDisplay.bottom = "8", e.slButtonSKin.labelDisplay.left = "8", 
                        e.slButtonSKin.labelDisplay.right = "8", e.slButtonSKin.labelDisplay.textColor = "0xFFFFFF", 
                        e.slButtonSKin.$elementsContent.push(e.slButtonSKin._image1), e.slButtonSKin.$elementsContent.push(e.slButtonSKin.labelDisplay), 
                        e.slButtonSKin.$elementsContent.push(e.slButtonSKin.iconDisplay);
                        var i = {
                            up: e._createState("up"),
                            down: e._createState("down", {
                                traget: "_image1",
                                name: "source",
                                value: ""
                            })
                        };
                        return e.slButtonSKin.states.push(i.up), e.slButtonSKin.states.push(i.down), e.slButtonSKin.$stateValues.statesMap.up = i.up, 
                        e.slButtonSKin.$stateValues.statesMap.down = i.down, e.setSkin(e.slButtonSKin), 
                        e._upImg = "", e._downImg = "", e._labelSize = 30, e._labelStrokeColor = "", e._labelStroke = "", 
                        e._labelColors = "", Object.defineProperties(t(e), {
                            upImg: {
                                set: function(t) {
                                    this._upImg = t, this.skin._image1.source = t;
                                },
                                get: function() {
                                    return this._upImg;
                                }
                            },
                            downImg: {
                                set: function(t) {
                                    this._downImg = t, this.skin.states[1].overrides[0].value = t;
                                },
                                get: function() {
                                    return this._downImg;
                                }
                            },
                            labelSize: {
                                set: function(t) {
                                    this._labelSize = t, this.skin.labelDisplay.size = t;
                                },
                                get: function() {
                                    return this._labelSize;
                                }
                            },
                            labelStrokeColor: {
                                set: function(t) {
                                    var e = t.split(",");
                                    this._labelStrokeColor = e[0].replace("#", "0x"), this.skin.labelDisplay.strokeColor = this._labelStrokeColor;
                                },
                                get: function() {
                                    return this._labelStrokeColor;
                                }
                            },
                            labelStroke: {
                                set: function(t) {
                                    this._labelStroke = t, this.skin.labelDisplay.stroke = this._labelStroke;
                                },
                                get: function() {
                                    return this._labelStroke;
                                }
                            },
                            labelColors: {
                                set: function(t) {
                                    var e = t.split(",");
                                    this._labelColors = e[0].replace("#", "0x"), this.skin.labelDisplay.textColor = this._labelColors;
                                },
                                get: function() {
                                    return this._labelColors;
                                }
                            }
                        }), e.isLoadSkin = !1, e.addEventListener(r.UIEvent.COMPLETE, function() {
                            this.isLoadSkin || (this.isLoadSkin = !0, this.setSkin(this.slButtonSKin));
                        }.bind(t(e)), t(e)), e;
                    }
                    return s(c, [ {
                        key: "init",
                        value: function() {
                            this.setSkin(this.slButtonSKin);
                        }
                    }, {
                        key: "setBackgroundImage",
                        value: function(t, e) {
                            this.upImg = t, this.downImg = e;
                        }
                    }, {
                        key: "_createState",
                        value: function(t, e) {
                            var i = new r.State();
                            if (e) {
                                var n = e && e.traget, s = (t = e && e.name, e && e.value);
                                i.overrides.push(new r.SetProperty(n, t, s));
                            }
                            return i;
                        }
                    } ]), c;
                }(r.Button), l = function(t) {
                    e(o, t);
                    var a = i(o);
                    function o() {
                        var t;
                        return n(this, o), (t = a.call(this)).bgImg, t.titleText, t.contentText, t.confrimText, 
                        t.status = "0", t.beginHtml, t.color = "0xE0E0E0", t.initView(), t;
                    }
                    return s(o, [ {
                        key: "initView",
                        value: function() {
                            this.bgImg = new r.Image(), this.titleText = new r.Label(), this.contentText = new r.Label(), 
                            this.confrimText = new r.Label(), this.titleText.width = 154, this.contentText.width = 154, 
                            this.confrimText.width = 154, this.titleText.y = 43, this.contentText.y = 73, this.confrimText.y = 117, 
                            this.titleText.textAlign = "center", this.contentText.textAlign = "center", this.confrimText.textAlign = "center", 
                            this.addChild(this.bgImg), this.addChild(this.titleText), this.addChild(this.contentText), 
                            this.addChild(this.confrimText);
                        }
                    }, {
                        key: "dataChanged",
                        value: function() {
                            if (this.data) {
                                this.bgImg.source = this.data.bgSource, this.status = this.data.status, this.setTitle(this.data.name), 
                                this.setContent(this.data.content);
                                var t = 2 == this.status ? "待领取" : "1" == this.status ? "已领取" : "未完成";
                                "shareTask" == this.data.category && (t = "去分享"), this.setConfirmText(t);
                            }
                        }
                    }, {
                        key: "setTitle",
                        value: function(t) {
                            if (t = t.replace(/ /g, ""), "2" == this.data.status) {
                                this.setColor("0xffeeaa"), this.beginHtml = "<font color='".concat(this.color, "' size=23 stroke=2 strokeColor='0x4f0d00'>");
                                var e = /[0-9]\d*/g, i = t.match(e);
                                t = t.replace(e, "<font color='0x11ee33' size=23 stroke=2 strokeColor='0x074727'>".concat(i, "</font>").concat(this.beginHtml));
                            } else this.setColor("0xE0E0E0"), this.beginHtml = "<font color='".concat(this.color, "' size='23' stroke='2' strokeColor='0x2A2A2A'>");
                            this.titleText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setContent",
                        value: function(t) {
                            if (t = t.replace(/ /g, ""), "2" == this.data.status) {
                                this.setColor("0xffeeaa"), this.beginHtml = "<font color='".concat(this.color, "' size=23 stroke=2 strokeColor='0x4f0d00' >");
                                var e = /[+].*[0-9]\d*/g, i = t.match(e);
                                t = t.replace(e, "<font color='0x11ee33' size=23 stroke=2 strokeColor='0x074727'>".concat(i, "</font>").concat(this.beginHtml));
                            } else this.setColor("0xE0E0E0"), this.beginHtml = "<font color='".concat(this.color, "' size='23' stroke='2' strokeColor='0x2A2A2A'>");
                            this.contentText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setConfirmText",
                        value: function(t) {
                            t = t.replace(/ /g, ""), this.confrimText.textFlow = new window.egret.HtmlTextParser().parser("".concat(this.beginHtml).concat(t, "</font>"));
                        }
                    }, {
                        key: "setColor",
                        value: function(t) {
                            this.color = t;
                        }
                    } ]), o;
                }(r.ItemRenderer), h = function(t) {
                    e(o, t);
                    var a = i(o);
                    function o() {
                        var t;
                        return n(this, o), (t = a.call(this)).width = 552, t.height = 52, t.label, t.bgImg, 
                        t.confrimText, t.initView(), t;
                    }
                    return s(o, [ {
                        key: "initView",
                        value: function() {
                            this.bgImg = new r.Image(), this.confrimText = new r.Label(), this.addChild(this.bgImg), 
                            this.addChild(this.confrimText), this.bgImg.source = "https://frontcdn.17a.cn/wx/miniapp/icon/egretButtonDown.png", 
                            this.confrimText.textFlow = new window.egret.HtmlTextParser().parser("复制</font>"), 
                            this.label = new r.Label(), this.addEventListener(window.egret.TouchEvent.TOUCH_TAP, function(t) {
                                wx.showModal({
                                    content: "礼包码:" + this.data.code,
                                    showCancel: !1,
                                    confirmText: "一键复制"
                                }), wx.setClipboardData({
                                    data: this.data.code
                                });
                            }, this), this.label.width = this.width - 200, this.label.size = 25, this.label.height = 52, 
                            this.label.verticalAlign = "middle", this.bgImg.x = this.label.x + this.label.width, 
                            this.confrimText.x = this.label.x + this.label.width, this.confrimText.height = 52, 
                            this.confrimText.textAlign = "center", this.confrimText.x = this.bgImg.x + this.bgImg.x / 5, 
                            this.confrimText.y = this.bgImg.y + 15, this.addChild(this.label);
                        }
                    }, {
                        key: "dataChanged",
                        value: function() {
                            this.data && (this.label.text = this.data.name + "\t" + this.data.code);
                        }
                    } ]), o;
                }(r.ItemRenderer), d = function() {
                    function t(e) {
                        n(this, t), this.superObj = e, this.superObj.setUpdataView(this.updataView.bind(this)), 
                        this.viewJson = {
                            type: "Sprite",
                            props: {
                                width: 750,
                                sceneWidth: 750,
                                sceneHeight: 1334,
                                sceneColor: "#000000",
                                name: "mainView",
                                height: 1334
                            },
                            child: [ {
                                type: "MovieClip",
                                props: {
                                    y: 380,
                                    x: 21,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/egretRedPacketAnimatoin.png"
                                },
                                child: []
                            }, {
                                type: "Sprite",
                                props: {
                                    y: 666,
                                    x: 4,
                                    width: 750,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/bg4.png",
                                    name: "container",
                                    touchEnabled: !0,
                                    height: 667
                                },
                                child: [ {
                                    type: "Sprite",
                                    props: {
                                        y: 1,
                                        x: 0,
                                        touchEnabled: !0
                                    },
                                    child: [ {
                                        type: "Label",
                                        props: {
                                            y: 43,
                                            x: 32,
                                            width: 300,
                                            verticalAlign: "middle",
                                            text: "S2700.一二三四五六七",
                                            padding: "0,12,0,12",
                                            name: "name",
                                            height: 40,
                                            size: 20,
                                            fontFamily: "SimHei",
                                            textColor: "#579E30",
                                            bold: !0,
                                            align: "left"
                                        },
                                        child: []
                                    }, {
                                        x: 45,
                                        type: "Image",
                                        props: {
                                            y: 40,
                                            x: 511,
                                            upImg: "https://frontcdn.17a.cn/wx/miniapp/icon/ruleUp.png",
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/ruleDown.png",
                                            name: "tips",
                                            touchEnabled: !0
                                        },
                                        child: []
                                    }, {
                                        x: 45,
                                        type: "Image",
                                        props: {
                                            y: 7,
                                            x: 668,
                                            upImg: "https://frontcdn.17a.cn/wx/miniapp/icon/closeUp.png",
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/closeDown.png",
                                            name: "closeButton",
                                            touchEnabled: !0
                                        },
                                        child: []
                                    }, {
                                        x: 45,
                                        type: "Image",
                                        props: {
                                            y: 225,
                                            x: 175,
                                            source: "https://frontcdn.17a.cn/wx/miniapp/icon/clock.png"
                                        },
                                        child: []
                                    }, {
                                        x: 45,
                                        type: "List",
                                        props: {
                                            y: 285,
                                            x: 36,
                                            width: 684,
                                            spaceY: 10,
                                            spaceX: 15,
                                            repeatY: 2,
                                            repeatX: 4,
                                            name: "act_list",
                                            touchEnabled: !0,
                                            height: 310
                                        },
                                        child: []
                                    }, {
                                        type: "Sprite",
                                        props: {
                                            y: 112,
                                            x: 61,
                                            name: "record"
                                        },
                                        child: [ {
                                            type: "Image",
                                            props: {
                                                y: 0,
                                                x: 0,
                                                source: "https://frontcdn.17a.cn/wx/miniapp/icon/egretButtonDown.png",
                                                name: "record"
                                            },
                                            child: []
                                        }, {
                                            type: "Label",
                                            props: {
                                                y: 15,
                                                x: 45,
                                                text: "领取记录",
                                                size: 26,
                                                fontFamily: "SimHei",
                                                textColor: "#FFFFFF",
                                                name: "record"
                                            },
                                            child: []
                                        } ]
                                    }, {
                                        type: "Sprite",
                                        props: {
                                            y: 112,
                                            x: 275,
                                            name: "customBtn"
                                        },
                                        child: [ {
                                            type: "Image",
                                            props: {
                                                y: 0,
                                                x: 0,
                                                source: "https://frontcdn.17a.cn/wx/miniapp/icon/egretButtonDown.png",
                                                name: "customBtn"
                                            },
                                            child: []
                                        }, {
                                            type: "Label",
                                            props: {
                                                y: 15,
                                                x: 0,
                                                text: "隐藏按钮",
                                                textAlign: "center",
                                                width: 200,
                                                size: 26,
                                                fontFamily: "SimHei",
                                                textColor: "#FFFFFF",
                                                name: "customBtn"
                                            },
                                            child: []
                                        } ]
                                    } ]
                                } ]
                            }, {
                                type: "Sprite",
                                props: {
                                    y: 708,
                                    x: 40,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/bg3.png",
                                    name: "tipsContainer"
                                },
                                child: [ {
                                    type: "Image",
                                    props: {
                                        y: 33,
                                        x: 552,
                                        upImg: "https://frontcdn.17a.cn/wx/miniapp/icon/closeUp.png",
                                        source: "https://frontcdn.17a.cn/wx/miniapp/icon/closeDown.png",
                                        name: "tipsCloseButton"
                                    },
                                    child: []
                                }, {
                                    type: "Scroller",
                                    props: {
                                        y: 132,
                                        x: 58,
                                        width: 552,
                                        height: 385
                                    },
                                    child: [ {
                                        type: "Label",
                                        props: {
                                            y: 0,
                                            x: 0,
                                            wordWrap: !0,
                                            width: 552,
                                            verticalAlign: "top",
                                            name: "tipsContent",
                                            lineSpacing: 7,
                                            size: 25,
                                            fontFamily: "SimHei",
                                            textColor: "#ffffff",
                                            textAlign: "left"
                                        },
                                        child: []
                                    } ]
                                }, {
                                    type: "Label",
                                    props: {
                                        y: 43,
                                        x: 152,
                                        width: 370,
                                        verticalAlign: "middle",
                                        textAlign: "center",
                                        text: "活动规则",
                                        name: "tipsTitle",
                                        height: 42,
                                        size: 25,
                                        fontFamily: "SimHei",
                                        textColor: "#CE9B7E",
                                        align: "center"
                                    },
                                    child: []
                                }, {
                                    type: "Scroller",
                                    props: {
                                        y: 132,
                                        x: 57,
                                        width: 552,
                                        height: 385
                                    },
                                    child: [ {
                                        type: "List",
                                        props: {
                                            y: 0,
                                            x: 0,
                                            width: 552,
                                            visible: !1,
                                            name: "tipsList",
                                            repeatY: 7,
                                            repeatX: 1,
                                            touchEnabled: !0
                                        },
                                        child: []
                                    } ]
                                } ]
                            }, {
                                type: "Image",
                                props: {
                                    y: 390,
                                    x: 42,
                                    visible: !1,
                                    source: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png",
                                    name: "redPacketStatic"
                                },
                                child: []
                            } ]
                        }, this.redPacketView = null, this.name, this.server_day, this.tips, this.money, 
                        this.cashButton, this.server_act_day, this.server_act_hour, this.server_act_minute, 
                        this.act_list, this.initFlag = !1, this.initView(), this.YDMTimer = 0, this.container, 
                        this.redPacketFloatIco, this.redPacketStaticFloatIcon, this.tipsContainer, this.tipsContent, 
                        this.tipsCloseButton, this.clickTimerId = 0;
                    }
                    return s(t, [ {
                        key: "initView",
                        value: function() {
                            if (this.superObj.getIsShow() && (this.egret = window.egret, this.eui = window.eui, 
                            this.egret)) {
                                var t = this;
                                t.imgLoader(t.viewJson, function() {
                                    this.redPacketView = t.createByJson(t.viewJson), this.redPacketView = this.redPacketView.$children[0], 
                                    this.egret.lifecycle.stage.addChild(this.redPacketView), window.testView = this.redPacketView, 
                                    this.container = this.redPacketView.$children[1];
                                    var e = t.egret.lifecycle.stage.stageWidth / 750;
                                    this.redPacketView.scaleX = e, this.redPacketView.scaleY = e, this.redPacketView.y += t.egret.lifecycle.stage.stageHeight - 1334 * e, 
                                    this.redPacketView.x = -4, this.redPacketView.width = 0, this.redPacketView.height = 0, 
                                    this.redPacketFloatIcon = this.redPacketView.$children[0], this.redPacketStaticFloatIcon = this.redPacketView.$children[3], 
                                    this.tipsContainer = this.redPacketView.$children[2], this.scrollView = this.tipsContainer.$children[2], 
                                    this.tips_title = this.tipsContainer.$children[3], this.tipsScrollerView = this.tipsContainer.$children[4], 
                                    this.tipsList = this.tipsScrollerView.$children[0], this.tipsScrollerView.removeChild(this.tipsContent), 
                                    this.tipsGroup = new t.eui.Group(), this.tipsGroup.layout = new t.eui.VerticalLayout(), 
                                    this.tipsGroup.addChild(this.tipsList), this.tipsScrollerView.viewport = this.tipsGroup, 
                                    this.tipsList.itemRenderer = h, this.tipsContent = this.scrollView.$children[0], 
                                    this.scrollView.removeChild(this.tipsContent), this.group = new t.eui.Group(), this.group.layout = new t.eui.VerticalLayout(), 
                                    this.group.addChild(this.tipsContent), this.scrollView.viewport = this.group, this.tipsContent.wordWrap = !0, 
                                    this.tipsCloseButton = this.tipsContainer.$children[1], this.firstView = this.container.$children[1], 
                                    this.name = this.firstView.$children[0], this.customBtn = this.firstView.$children[6], 
                                    this.tips = this.firstView.$children[1], this.server_day = new r.Label(), this.server_day.x = 296, 
                                    this.server_day.y = 49, this.server_day.size = 23, this.act_countdown = new r.Label(), 
                                    this.act_countdown.x = 214, this.act_countdown.y = 232, this.server_day.width = 250, 
                                    this.act_countdown.height = "25", this.act_countdown.verticalAlign = "middle", this.act_countdown.size = 23, 
                                    this.firstView.addChild(this.server_day), this.firstView.addChild(this.act_countdown), 
                                    this.act_list = this.firstView.$children[4], this.redPacketFloatIcon.touchEnabled = !0, 
                                    this.redPacketFloatIcon.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.container.visible = !this.container.visible, this.redPacketFloatIcon.visible = !1, 
                                        this.redPacketStaticFloatIcon.visible = !0, this.container.visible && this.superObj.refresh();
                                    }.bind(this), this), this.redPacketStaticFloatIcon.touchEnabled = !0, this.redPacketStaticFloatIcon.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.container.visible = !this.container.visible, this.container.visible && this.superObj.refresh();
                                    }.bind(this), this), this.firstView.touchEnabled = !0, this.firstView.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        var e = this;
                                        switch (t.target.name) {
                                          case "closeButton":
                                            this.container.visible = !1, this.tipsContainer.visible = !1;
                                            break;

                                          case "tips":
                                            this.tips_title.text = "活动规则", this.tipsContent.text = this.superObj.getActContent(), 
                                            this.scrollView.visible = !0, this.tipsList.visible = !1, this.tipsScrollerView.visible = !1, 
                                            this.tipsContainer.visible = !0;
                                            break;

                                          case "record":
                                            a.getRecord().then(function(t) {
                                                if (t) {
                                                    e.tips_title.text = "领取记录";
                                                    for (var i = t, n = new r.ArrayCollection(), s = 0; s < i.length; s++) n.addItem(i[s]);
                                                    e.scrollView.visible = !1, e.tipsList.visible = !0, e.tipsScrollerView.visible = !0, 
                                                    e.tipsContainer.visible = !0, e.tipsList.dataProvider = n, window.testList = e.tipsList, 
                                                    e.tipsList.layout.horizontalGap = 15;
                                                } else wx.showToast({
                                                    title: "暂无记录"
                                                });
                                            });
                                            break;

                                          case "customBtn":
                                            this.tips_title.text = this.superObj.getContent2Title(), this.tipsContent.text = this.superObj.getContent2(), 
                                            this.scrollView.visible = !0, this.tipsList.visible = !1, this.tipsScrollerView.visible = !1, 
                                            this.tipsContainer.visible = !0;
                                        }
                                    }.bind(this), this), this.tipsCloseButton.addEventListener(t.egret.TouchEvent.TOUCH_TAP, function(t) {
                                        this.tipsContainer.visible = !1;
                                    }.bind(this), this), this.initFlag = !0, this.act_list.itemRenderer = l, this.act_list.addEventListener(t.eui.ItemTapEvent.ITEM_TAP, this.itemOnTap, this), 
                                    this.updataView();
                                }.bind(t));
                            }
                        }
                    }, {
                        key: "updataView",
                        value: function() {
                            var t = this, e = setInterval(function() {
                                t.initFlag && (t.updata(), clearInterval(e));
                            }, 300);
                        }
                    }, {
                        key: "itemOnTap",
                        value: function(t) {
                            var e = this;
                            0 != this.clickTimerId && clearTimeout(this.clickTimerId), this.clickTimerId = setTimeout(function() {
                                var i, n, s, a = t.itemIndex, o = e.superObj.getActivityList(), r = null;
                                (a >= 0 && (r = o[a]), r) && (i = r.id, n = r.status, s = r.category, e.superObj.finsh(i, n, s, a));
                            }, 300);
                        }
                    }, {
                        key: "updata",
                        value: function() {
                            var t = this;
                            console.log("[测试] 刷新了数据"), this.superObj.getContent2Title() ? (this.customBtn.$children[1].text = this.superObj.getContent2Title(), 
                            this.customBtn.visible = !0) : (this.customBtn.$children[1].text = "", this.customBtn.visible = !1), 
                            this.name.text = this.superObj.getName(), 0 != this.YDMTimer && clearInterval(this.YDMTimer), 
                            this.server_day.textFlow = new window.egret.HtmlTextParser().parser('<div width="200" color="0xFFFFFF" size="20" textAlign="center" fontFamly="SimHei"> 开服天数：第 <font color="0x538E2D">'.concat(this.superObj.getServerDay(), "</font>天 </div>"));
                            var e, i, n, s, a, o = 1e3 * this.superObj.getCycleTime();
                            this.YDMTimer = setInterval(function() {
                                (o -= 1e3) > 0 ? (o >= 864e5 ? (e = Math.floor(o / 864e5), s = o % 864e5, i = Math.floor(s / 36e5), 
                                a = s % 36e5, n = Math.floor(a / 6e4)) : o >= 36e5 ? (e = 0, s = o / 60 / 1e3 / 60, 
                                i = parseInt(o / 60 / 1e3 / 60), n = Math.ceil((o - 60 * i * 1e3 * 60) / 1e3 / 60)) : (e = 0, 
                                i = 0, n = parseInt(o / 1e3 / 60)), e = t.bedeckNumber(e), i = t.bedeckNumber(i), 
                                n = t.bedeckNumber(n), t.act_countdown.textFlow = new window.egret.HtmlTextParser().parser('<div color="0xFFFFFF"  size="20" fontFamly="SimHei" textAlign="center" width="400">活动时间倒计时：<font color="0x538E2D">'.concat(e, '</font>天<font color="0x538E2D">').concat(i, '</font>时<font color="0x538E2D">').concat(n, "</font>分钟</div>"))) : (e = "00", 
                                i = "00", n = "00", t.act_countdown.textFlow = new window.egret.HtmlTextParser().parser('<div color="0xFFFFFF"  size="20" fontFamly="SimHei" textAlign="center" width="400">活动时间倒计时：<font color="0x538E2D">'.concat(e, '</font>天<font color="0x538E2D">').concat(i, '</font>时<font color="0x538E2D">').concat(n, "</font>分钟</div>")), 
                                clearInterval(t.YDMTimer));
                            }, 1e3), this.tipsContent.text = this.superObj.getActContent().replace(/\\n/g, "\n");
                            for (var c = this.superObj.getActivityList(), l = new r.ArrayCollection(), h = 0; h < c.length; h++) {
                                var d = "2" == c[h].status ? "https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png" : "https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png";
                                c[h].bgSource = d, l.addItem(c[h]);
                            }
                            this.act_list.dataProvider = l, this.act_list.layout.horizontalGap = 15;
                        }
                    }, {
                        key: "bedeckNumber",
                        value: function(t) {
                            return t < 10 ? "0" + t : t;
                        }
                    }, {
                        key: "createByJson",
                        value: function(t) {
                            var e = window.eui, i = new o.Sprite();
                            return function t(n, s) {
                                var a, r = n.type;
                                switch (r) {
                                  case "Sprite":
                                  case "MovieClip":
                                    o[r] ? a = new o[r]() : (a = new e.Image(), n.props.source = "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png", 
                                    console.log("[肆狼] 部分游戏工程过低暂不支持序列图,使用静态图 egret." + r));
                                    break;

                                  case "Button":
                                    a = new c();
                                    break;

                                  default:
                                    if (!e[r]) throw console.log("root", n), "暂不支持构造此类,开发者请检查修改eui." + r;
                                    a = new e[r]();
                                }
                                s ? s.addChild(a) : i = s;
                                var l, h = n.props;
                                if (h) for (var d in h) if (void 0 !== a[d]) a[d] = h[d]; else {
                                    var u = "source" == d, p = "padding" == d;
                                    switch (r) {
                                      case "Label":
                                        if (!p) break;
                                        var g = h[d].split(",");
                                        a.top = g[0], a.right = g[1], a.bottom = g[2], a.left = g[3];
                                        break;

                                      case "Sprite":
                                        if (!u) break;
                                        var f = new e.Image();
                                        f.source = h[d], a.addChild(f);
                                        break;

                                      case "MovieClip":
                                        if (!u) break;
                                        var m = h[d].replace("png", "json");
                                        window.RES.getResByUrl(m, function(t) {
                                            var e = window.RES.getRes(h[d]), i = new o.MovieClipDataFactory(t, e);
                                            a.movieClipData = i.generateMovieClipData("redpacket"), a.gotoAndPlay(0, -1);
                                        }, this, window.RES.ResourceItem.TYPE_JSON);
                                        break;

                                      case "List":
                                        var w = new window.eui.TileLayout();
                                        a.layout = w, "spaceX" == d && (a.layout.verticalGap = h[d]), "spaceY" == d && (a.layout.horizontalGap = h[d]), 
                                        "repeatY" == d && (a.layout.requestedRowCount = h[d]), "repeatX" == d && (console.log("列数", h[d]), 
                                        a.layout.requestedColumnCount = h[d]);
                                        break;

                                      default:
                                        console.log("[肆狼] 白鹭引擎createByJson ".concat(r, ":").concat(d, ",暂不支持"), h[d]);
                                    }
                                }
                                if (l = n.child) for (var y = 0; y < l.length; y++) t(l[y], a);
                            }(t, i), i;
                        }
                    }, {
                        key: "imgLoader",
                        value: function(t, e) {
                            var i = [], n = function(t) {
                                i.push(t);
                            };
                            !function t(e) {
                                var i = e.props;
                                i.source && n(i.source), i.upImg && n(i.upImg), i.downImg && n(i.downImg);
                                var s = e.child;
                                if (s) for (var a = 0; a < s.length; a++) t(s[a]);
                            }(t);
                            var s = window.RES, a = function(t) {
                                t == i.length - 1 && e();
                            };
                            i.push("https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png"), i.push("https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png");
                            for (var o = 0; o < i.length; o++) !function(t) {
                                s.getResByUrl(i[o], function(e) {
                                    a(t);
                                }, this, s.ResourceItem.TYPE_IMAGE);
                            }(o);
                        }
                    } ]), t;
                }();
                window.SLSuperBackflowObject.setInitCallBack(function() {
                    new d(a);
                });
            } else console.log("[肆狼] 全局变量window下无白鹭对象");
        }
    }, {
        key: "showBackflowByLaya",
        value: function() {
            this.open_buoy;
            window.SLSuperBackflowObject = this.backflowDataModelInit(this.getSuperBackflowObjectClass());
            var t = new Proxy(window.SLSuperBackflowObject, {
                get: function(t, e, i) {
                    return Reflect.get(t, e, i);
                },
                set: function(t, e, i, n) {
                    return Reflect.set(t, e, i, n);
                }
            }), a = s(function t() {
                n(this, t), console.log("not haver super class");
            }), o = window.Laya.Box || a, r = function(t) {
                e(o, t);
                var a = i(o);
                function o() {
                    var t;
                    return n(this, o), (t = a.call(this)).width = 154, t.height = 150, t.Laya = window.Laya, 
                    t.color = "#E0E0E0", t.titleText, t.contentText, t.confrimText, t.beginHtml, t.initView(), 
                    t.status = "0", t;
                }
                return s(o, [ {
                    key: "initView",
                    value: function() {
                        this.bgImage = new this.Laya.Image(), this.bgImage.width = this.width, this.bgImage.height = this.height, 
                        this.addChild(this.bgImage), this.titleText = new this.Laya.HTMLDivElement(), this.contentText = new this.Laya.HTMLDivElement(), 
                        this.confrimText = new this.Laya.HTMLDivElement(), this.titleText.style.width = 154, 
                        this.titleText.style.height = 23, this.titleText.style.align = "center", this.titleText.x = 0, 
                        this.titleText.y = 43, this.contentText.style.width = 154, this.contentText.style.height = 23, 
                        this.contentText.style.align = "center", this.contentText.x = 0, this.contentText.y = 73, 
                        this.confrimText.style.width = 154, this.confrimText.style.height = 23, this.confrimText.style.align = "center", 
                        this.confrimText.x = 0, this.confrimText.y = 117, this.addChild(this.titleText), 
                        this.addChild(this.contentText), this.addChild(this.confrimText);
                    }
                }, {
                    key: "setTitle",
                    value: function(t) {
                        if (t = t.replace(/ /g, ""), "2" == this.status) {
                            this.setColor("#ffeeaa"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#4f0d00;' align='center' >");
                            var e = /[0-9]\d*/g, i = t.match(e);
                            t = t.replace(e, "<span color='#11ee33' style='fontSize:23;stroke:4;strokeColor:#074727;' align='center'>".concat(i, "</span>").concat(this.beginHtml));
                        } else this.setColor("#E0E0E0"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#2A2A2A;' align='center' >");
                        this.titleText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setContent",
                    value: function(t) {
                        if (t = t.replace(/ /g, ""), "2" == this.status) {
                            this.setColor("#ffeeaa"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#4f0d00;' align='center' >");
                            var e = /[+].*[0-9]\d*/g, i = t.match(e);
                            t = t.replace(e, "<span color='#11ee33' style='fontSize:23;stroke:4;strokeColor:#074727;' align='center'>".concat(i, "</span>").concat(this.beginHtml));
                        } else this.setColor("#E0E0E0"), this.beginHtml = "<span color='".concat(this.color, "' style='fontSize:23;stroke:4;strokeColor:#2A2A2A;' align='center' >");
                        this.contentText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setConfirmText",
                    value: function(t) {
                        t = t.replace(/ /g, ""), this.confrimText.innerHTML = "".concat(this.beginHtml).concat(t, "</span>");
                    }
                }, {
                    key: "setColor",
                    value: function(t) {
                        this.color = t;
                    }
                }, {
                    key: "setImg",
                    value: function(t) {
                        var e = this, i = 2 != t ? "https://frontcdn.17a.cn/wx/miniapp/icon/button-off.png" : "https://frontcdn.17a.cn/wx/miniapp/icon/button-on.png";
                        this.Laya.loader.load([ i ], {
                            runWith: function() {
                                e.bgImage.skin = i;
                            }
                        });
                    }
                } ]), o;
            }(o), c = function(t) {
                e(o, t);
                var a = i(o);
                function o() {
                    var t;
                    return n(this, o), (t = a.call(this)).Laya = window.Laya, t.giftCode = "", t.code = "", 
                    t.name = "", t.width = 552, t.height = 40, t.initView(), t;
                }
                return s(o, [ {
                    key: "initView",
                    value: function() {
                        this.button = new this.Laya.Button(), this.label = new this.Laya.Label(), this.label.fontSize = 23, 
                        this.label.font = "SimHei", this.label.color = "#FFFFFF", this.button.skin = "https://frontcdn.17a.cn/wx/miniapp/icon/customButton.png", 
                        this.button.label = "复制", this.button.on(Laya.Event.MOUSE_UP, this, function(t) {
                            wx.showModal({
                                content: "礼包码:" + this.code,
                                showCancel: !1,
                                confirmText: "一键复制"
                            }), wx.setClipboardData({
                                data: this.code
                            });
                        }), window.testRItem = this, this.label.width = 520 - this.button.width, this.label.height = this.button.height, 
                        this.height = this.button.height, this.label.valign = "middle", this.button.x = this.label.x + this.label.width, 
                        this.addChild(this.button), this.addChild(this.label);
                    }
                }, {
                    key: "setCode",
                    value: function(t) {
                        this.code = t;
                    }
                }, {
                    key: "setTips",
                    value: function(t) {
                        this.label.text = t;
                    }
                } ]), o;
            }(o), l = function() {
                function e(t) {
                    n(this, e), this.Laya = window.Laya, this.superObj = t, this.superObj.setUpdataView(this.updataView.bind(this)), 
                    this.viewJson = {
                        x: 0,
                        type: "View",
                        selectedBox: 99,
                        selecteID: 126,
                        searchKey: "View,mainView",
                        props: {
                            width: 750,
                            sceneWidth: 750,
                            sceneHeight: 1334,
                            sceneColor: "#000000",
                            name: "mainView",
                            height: 1334
                        },
                        nodeParent: -1,
                        maxID: 127,
                        label: "mainView",
                        isOpen: !0,
                        isDirectory: !0,
                        isAniNode: !0,
                        hasChild: !0,
                        compId: 2,
                        child: [ {
                            x: 15,
                            type: "Clip",
                            searchKey: "Clip,main",
                            props: {
                                y: 380,
                                x: 21,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao.png",
                                name: "main",
                                interval: 100,
                                clipY: 1,
                                clipX: 6,
                                autoPlay: !0
                            },
                            nodeParent: 2,
                            label: "main",
                            isDirectory: !1,
                            isAniNode: !0,
                            hasChild: !1,
                            compId: 117,
                            child: []
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,container",
                            props: {
                                y: 666,
                                x: 4,
                                width: 750,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/bg4.png",
                                name: "container",
                                mouseEnabled: !0,
                                height: 667
                            },
                            nodeParent: 2,
                            label: "container",
                            isOpen: !0,
                            isDirectory: !0,
                            isAniNode: !0,
                            hasChild: !0,
                            compId: 73,
                            child: [ {
                                x: 30,
                                type: "View",
                                searchKey: "View",
                                props: {
                                    y: 1,
                                    x: 0,
                                    mouseEnabled: !0
                                },
                                nodeParent: 73,
                                label: "View",
                                isOpen: !0,
                                isDirectory: !0,
                                isAniNode: !0,
                                hasChild: !0,
                                compId: 93,
                                child: [ {
                                    x: 45,
                                    type: "Label",
                                    searchKey: "Label,name",
                                    props: {
                                        y: 40,
                                        x: 28,
                                        width: 255,
                                        valign: "middle",
                                        text: "S2700.一二三四五六七",
                                        padding: "0,12,0,12",
                                        name: "name",
                                        height: 40,
                                        fontSize: 22,
                                        font: "SimHei",
                                        color: "#579E30",
                                        bold: !0,
                                        align: "left"
                                    },
                                    nodeParent: 93,
                                    label: "name",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 75,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    x: 45,
                                    type: "Button",
                                    searchKey: "Button,tips",
                                    props: {
                                        y: 40,
                                        x: 511,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/rule2.png",
                                        name: "tips",
                                        mouseEnabled: !0
                                    },
                                    nodeParent: 93,
                                    label: "tips",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 79,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    x: 45,
                                    type: "Button",
                                    searchKey: "Button,closeButton",
                                    props: {
                                        y: 7,
                                        x: 668,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/close2.png",
                                        name: "closeButton",
                                        mouseEnabled: !0
                                    },
                                    nodeParent: 93,
                                    label: "closeButton",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 80,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    x: 45,
                                    type: "Image",
                                    searchKey: "Image",
                                    props: {
                                        y: 225,
                                        x: 175,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/clock.png"
                                    },
                                    nodeParent: 93,
                                    label: "Image",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 84,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    x: 45,
                                    type: "List",
                                    searchKey: "List,act_list",
                                    props: {
                                        y: 285,
                                        x: 36,
                                        width: 684,
                                        spaceY: 10,
                                        spaceX: 15,
                                        repeatY: 2,
                                        repeatX: 4,
                                        name: "act_list",
                                        mouseEnabled: !0,
                                        height: 310
                                    },
                                    nodeParent: 93,
                                    label: "act_list",
                                    isOpen: !0,
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 94,
                                    child: [],
                                    $HIDDEN: !1
                                }, {
                                    x: 45,
                                    type: "Button",
                                    searchKey: "Button,record",
                                    props: {
                                        y: 112,
                                        x: 61,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/customButton.png",
                                        name: "record",
                                        labelStrokeColor: "#000,#CCC,#CCC",
                                        labelStroke: 4,
                                        labelSize: 23,
                                        labelColors: "#FFF1B1,#CCC,#CCC",
                                        label: "领取记录"
                                    },
                                    nodeParent: 93,
                                    label: "record",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 124,
                                    child: []
                                }, {
                                    x: 45,
                                    type: "Button",
                                    searchKey: "Button,customBtn",
                                    props: {
                                        y: 112,
                                        x: 275,
                                        visible: !1,
                                        skin: "https://frontcdn.17a.cn/wx/miniapp/icon/customButton.png",
                                        name: "customBtn",
                                        labelStrokeColor: "#000,#CCC,#CCC",
                                        labelStroke: 4,
                                        labelSize: 23,
                                        labelColors: "#FFF1B1,#CCC,#CCC",
                                        label: "隐藏按钮"
                                    },
                                    nodeParent: 93,
                                    label: "customBtn",
                                    isDirectory: !1,
                                    isAniNode: !0,
                                    hasChild: !1,
                                    compId: 125,
                                    child: []
                                } ],
                                $HIDDEN: !1
                            } ],
                            $HIDDEN: !1
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,tipsContainer",
                            props: {
                                y: 708,
                                x: 40,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/bg3.png",
                                name: "tipsContainer"
                            },
                            nodeParent: 2,
                            label: "tipsContainer",
                            isOpen: !0,
                            isDirectory: !0,
                            isAniNode: !0,
                            hasChild: !0,
                            compId: 99,
                            child: [ {
                                x: 30,
                                type: "Button",
                                searchKey: "Button,tipsCloseButton",
                                props: {
                                    y: 33,
                                    x: 552,
                                    skin: "https://frontcdn.17a.cn/wx/miniapp/icon/close2.png",
                                    name: "tipsCloseButton"
                                },
                                nodeParent: 99,
                                label: "tipsCloseButton",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 100,
                                child: [],
                                $HIDDEN: !1
                            }, {
                                x: 30,
                                type: "Text",
                                searchKey: "Text,tipsContent",
                                props: {
                                    y: 132,
                                    x: 57,
                                    wordWrap: !0,
                                    width: 552,
                                    valign: "top",
                                    overflow: "scroll",
                                    name: "tipsContent",
                                    leading: 7,
                                    height: 385,
                                    fontSize: 25,
                                    font: "SimHei",
                                    color: "#ffffff",
                                    align: "left"
                                },
                                nodeParent: 99,
                                label: "tipsContent",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 101,
                                child: [],
                                $HIDDEN: !1
                            }, {
                                x: 30,
                                type: "Label",
                                searchKey: "Label,tipsTitle",
                                props: {
                                    y: 43,
                                    x: 152,
                                    width: 370,
                                    valign: "middle",
                                    text: "活动规则",
                                    name: "tipsTitle",
                                    height: 42,
                                    fontSize: 25,
                                    font: "SimHei",
                                    color: "#CE9B7E",
                                    align: "center"
                                },
                                nodeParent: 99,
                                label: "tipsTitle",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 122,
                                child: []
                            }, {
                                x: 30,
                                type: "List",
                                searchKey: "List,tipsList",
                                props: {
                                    y: 132,
                                    x: 57,
                                    width: 552,
                                    visible: !1,
                                    vScrollBarSkin: "https://frontcdn.17a.cn/wx/miniapp/icon/vscroll.png",
                                    name: "tipsList",
                                    height: 385
                                },
                                nodeParent: 99,
                                label: "tipsList",
                                isDirectory: !1,
                                isAniNode: !0,
                                hasChild: !1,
                                compId: 126,
                                child: []
                            } ],
                            $HIDDEN: !1
                        }, {
                            x: 15,
                            type: "Image",
                            searchKey: "Image,redPacketStatic",
                            props: {
                                y: 390,
                                x: 42,
                                visible: !1,
                                skin: "https://frontcdn.17a.cn/wx/miniapp/icon/hongbao-0.png",
                                name: "redPacketStatic"
                            },
                            nodeParent: 2,
                            label: "redPacketStatic",
                            isOpen: !0,
                            isDirectory: !1,
                            isAniNode: !0,
                            hasChild: !1,
                            compId: 118,
                            child: []
                        } ],
                        animations: [ {
                            nodes: [],
                            name: "ani1",
                            id: 1,
                            frameRate: 24,
                            action: 0
                        } ],
                        $HIDDEN: !1
                    }, this.name, this.server_day, this.tips, this.act_list, this.initFlag = !1, this.initView(), 
                    this.YDMTimer = 0, this.container, this.redPacketFloatIco, this.mainStaticFloat, 
                    this.tipsContainer, this.tipsContent, this.tipsCloseButton, this.clickTimerId = 0;
                }
                return s(e, [ {
                    key: "initView",
                    value: function() {
                        var e = this;
                        this.superObj.getIsShow() && this.viewBGLoader(function() {
                            e.main = window.Laya.ClassUtils.createByJson(JSON.stringify(e.viewJson)), window.test = e.main, 
                            window.Laya.stage.addChild(e.main), e.container = e.main._childs[1];
                            var i = window.Laya.stage.width / 750;
                            e.main.scaleX = i, e.main.scaleY = i, e.main.y += window.Laya.stage.height - 1334 * i, 
                            e.main.x = -2, e.main.width = 0, e.main.height = 0, e.mainFloat = e.main._childs[0], 
                            e.mainStaticFloat = e.main._childs[3], e.tipsContainer = e.main._childs[2], e.tipsContent = e.tipsContainer._childs[1], 
                            e.initTipsRoll(), e.tipsList = e.tipsContainer._childs[3], e.tipsCloseButton = e.tipsContainer._childs[0], 
                            e.firstView = e.container._childs[0], e.name = e.firstView._childs[0], e.tips = e.firstView._childs[1], 
                            e.tips_title = e.tipsContainer._childs[2], e.act_list = e.firstView._childs[4], 
                            e.act_list.mouseEnable = !0, e.record = e.firstView._childs[5], e.customBtn = e.firstView._childs[6], 
                            e.server_day = new e.Laya.HTMLDivElement(), e.server_day.x = 305, e.server_day.y = 49, 
                            e.server_day.mouseEnable = !1, window.server_day = e.server_day, e.server_day.name = "server_day", 
                            e.act_countdown = new e.Laya.HTMLDivElement(), e.act_countdown.x = 214, e.act_countdown.y = 232, 
                            e.act_countdown.mouseEnable = !1, e.act_countdown.style.height = "25", e.act_countdown.name = "act_countdown", 
                            window.act_countdown = e.act_countdown, e.firstView.addChild(e.server_day), e.firstView.addChild(e.act_countdown), 
                            e.firstView.setChildIndex(e.server_day, 0), e.firstView.setChildIndex(e.act_countdown, 0), 
                            e.firstView.on(Laya.Event.MOUSE_UP, e, function(e) {
                                var i = this;
                                switch (e.target.name) {
                                  case "closeButton":
                                    this.container.visible = !1, this.tipsContainer.visible = !1;
                                    break;

                                  case "tips":
                                    this.tips_title.text = "活动规则", this.tipsContent.text = this.superObj.getActContent(), 
                                    this.tipsContent.visible = !0, this.tipsList.visible = !1, this.tipsContainer.visible = !0;
                                    break;

                                  case "customBtn":
                                    this.tips_title.text = this.superObj.getContent2Title(), this.tipsContent.text = this.superObj.getContent2(), 
                                    this.tipsContent.visible = !0, this.tipsList.visible = !1, this.tipsContainer.visible = !0;
                                    break;

                                  case "record":
                                    t.getRecord().then(function(t) {
                                        t ? (i.tipsContent.visible = !1, i.tipsList.visible = !0, i.tips_title.text = "领取记录", 
                                        i.tipsList.array = t, i.tipsList.refresh(), i.tipsContainer.visible = !0) : wx.showToast({
                                            title: "暂无记录"
                                        });
                                    });
                                }
                            }), e.tipsCloseButton.on(Laya.Event.MOUSE_UP, e, function(t) {
                                this.tipsContainer.visible = !1;
                            }), e.mainFloat.on(Laya.Event.MOUSE_UP, e, function(t) {
                                this.container.visible = !this.container.visible, this.mainFloat.visible = !1, this.mainStaticFloat.visible = !0, 
                                this.container.visible && this.superObj.refresh();
                            }), e.mainStaticFloat.on(Laya.Event.MOUSE_UP, e, function(t) {
                                this.container.visible = !this.container.visible, this.container.visible && this.superObj.refresh();
                            }), e.container.visible = !1, e.initFlag = !0, e.act_list.itemRender = r, e.act_list.vScrollBarSkin = "", 
                            e.act_list.selectEnable = !0, e.act_list.mouseHandler = new window.Laya.Handler(e, e.onSelect), 
                            e.act_list.renderHandler = new window.Laya.Handler(e, e.updateItem), e.tipsList.itemRender = c, 
                            e.tipsList.selectEnable = !0, e.tipsList.renderHandler = new window.Laya.Handler(e, e.updateRecordItem), 
                            e.tipsList.repeatX = 1, e.tipsList.repeatY = 7, e.tipsList.spaceY = 10, e.updataView();
                        });
                    }
                }, {
                    key: "initTipsRoll",
                    value: function() {
                        var t = 0, e = 0;
                        new (function() {
                            function i(t) {
                                n(this, i), this.createText(t);
                            }
                            return s(i, [ {
                                key: "createText",
                                value: function(t) {
                                    var e = Laya.Text, i = Laya.Event;
                                    this.txt = t, this.txt.overflow = e.SCROLL, this.txt.on(i.MOUSE_DOWN, this, this.startScrollText);
                                }
                            }, {
                                key: "startScrollText",
                                value: function(i) {
                                    var n = Laya.Event;
                                    t = this.txt.mouseX, e = this.txt.mouseY, Laya.stage.on(n.MOUSE_MOVE, this, this.scrollText), 
                                    Laya.stage.on(n.MOUSE_UP, this, this.finishScrollText);
                                }
                            }, {
                                key: "finishScrollText",
                                value: function(t) {
                                    var e = Laya.Event;
                                    Laya.stage.off(e.MOUSE_MOVE, this, this.scrollText), Laya.stage.off(e.MOUSE_UP, this, this.finishScrollText);
                                }
                            }, {
                                key: "scrollText",
                                value: function(i) {
                                    var n = this.txt.mouseX, s = this.txt.mouseY;
                                    this.txt.scrollX += t - n, this.txt.scrollY += e - s, t = n, e = s;
                                }
                            } ]), i;
                        }())(this.tipsContent);
                    }
                }, {
                    key: "onSelect",
                    value: function(t, e) {
                        var i = this;
                        0 != this.clickTimerId && clearTimeout(this.clickTimerId), this.clickTimerId = setTimeout(function() {
                            var t, n, s;
                            t = i.act_list.array[e].id, n = i.act_list.array[e].status, s = i.act_list.array[e].category, 
                            i.superObj.finsh(t, n, s, e), console.log("[肆狼] 当前选择的索引：" + e, i.act_list.array[e]);
                        }, 300);
                    }
                }, {
                    key: "updateItem",
                    value: function(t, e) {
                        var i = t.dataSource.name, n = t.dataSource.content, s = t.dataSource.status, a = t.dataSource.category || "", o = "2" == s ? "待领取" : "1" == s ? "已领取" : "未完成";
                        t.setImg(s), t.setTitle(i), t.setContent(n), "shareTask" == a && "0" == s && (o = "去分享"), 
                        t.setConfirmText(o);
                    }
                }, {
                    key: "updateRecordItem",
                    value: function(t, e) {
                        var i = t.code, n = t.name, s = "".concat(n, "\t").concat(i, "\t");
                        t.setCode(i), t.setTips(s);
                    }
                }, {
                    key: "viewBGLoader",
                    value: function(t) {
                        var e = new Array(), i = new Proxy(e, {
                            get: function(t, e, i) {
                                return Reflect.get(t, e, i);
                            },
                            set: function(t, e, i, n) {
                                return Reflect.set(t, e, i, n);
                            }
                        });
                        !function t(e, i) {
                            var n = e.child, s = "";
                            for (var a in e.props && (s = e.props.skin || e.props.texture) && i.push(s), n) t(n[a], i);
                        }(this.viewJson, i), (i = Array.from(new Set(i))).push("https://frontcdn.17a.cn/wx/miniapp/icon/vscroll.png"), 
                        i.push("https://frontcdn.17a.cn/wx/miniapp/icon/vscroll$down.png"), i.push("https://frontcdn.17a.cn/wx/miniapp/icon/vscroll$bar.png"), 
                        i.push("https://frontcdn.17a.cn/wx/miniapp/icon/vscroll$up.png"), window.Laya.loader.load(i, {
                            runWith: function() {
                                t(), console.log(i, "[肆狼] loaderimgs");
                            }
                        });
                    }
                }, {
                    key: "updataView",
                    value: function() {
                        var t = this, e = setInterval(function() {
                            t.initFlag && (t.updata(), clearInterval(e));
                        }, 300);
                    }
                }, {
                    key: "updata",
                    value: function() {
                        var t = this;
                        this.superObj.getContent2Title() ? (this.customBtn.label = this.superObj.getContent2Title(), 
                        this.customBtn.visible = !0) : (this.customBtn.label = "", this.customBtn.visible = !1), 
                        this.name.text = this.superObj.getName(), this.server_day.innerHTML = '<div color="#FFFFFF" style="fontSize:23" align="center" font="SimHei"> 开服天数：第 <span color="#538E2D">'.concat(this.superObj.getServerDay(), "</span> 天 </div>"), 
                        0 != this.YDMTimer && clearInterval(this.YDMTimer);
                        var e, i, n, s, a, o = 1e3 * this.superObj.getCycleTime();
                        this.YDMTimer = setInterval(function() {
                            (o -= 1e3) > 0 ? (o >= 864e5 ? (e = Math.floor(o / 864e5), s = o % 864e5, i = Math.floor(s / 36e5), 
                            a = s % 36e5, n = Math.floor(a / 6e4)) : o >= 36e5 ? (e = 0, s = o / 60 / 1e3 / 60, 
                            i = parseInt(o / 60 / 1e3 / 60), n = Math.ceil((o - 60 * i * 1e3 * 60) / 1e3 / 60)) : (e = 0, 
                            i = 0, n = parseInt(o / 1e3 / 60)), e = t.bedeckNumber(e), i = t.bedeckNumber(i), 
                            n = t.bedeckNumber(n), t.act_countdown.innerHTML = '<div color="#FFFFFF" style="fontSize:23;font:\'SimHei\'" align="center" width="400">活动时间倒计时：<span color="#538E2D">'.concat(e, '</span>天<span color="#538E2D">').concat(i, '</span>时<span color="#538E2D">').concat(n, "</span>分钟</div>")) : (e = "00", 
                            i = "00", n = "00", t.act_countdown.innerHTML = '<div color="#FFFFFF" style="fontSize:23;font:\'SimHei\'" align="center" width="400">活动时间倒计时：<span color="#538E2D">'.concat(e, '</span>天<span color="#538E2D">').concat(i, '</span>时<span color="#538E2D">').concat(n, "</span>分钟</div>"), 
                            clearInterval(t.YDMTimer));
                        }, 1e3), this.act_list.array = this.superObj.getActivityList(), this.act_list.refresh();
                    }
                }, {
                    key: "bedeckNumber",
                    value: function(t) {
                        return t < 10 ? "0" + t : t;
                    }
                } ]), e;
            }();
            window.SLSuperBackflowObject.setInitCallBack(function() {
                new l(t);
            });
        }
    }, {
        key: "getSuperBackflowObjectClass",
        value: function() {
            return window.SLSuperBackflowObject ? SLSuperBackflowObject : new (function() {
                function t() {
                    n(this, t), this.name = "", this.serverDay = 0, this.activityTitle = "", this.activityList = [], 
                    this.finsh = function() {}, this.isShow = !1, this.updataView = function() {}, this.shareTaskCallBack = function(t) {}, 
                    this.refresh = function() {}, this.initCallBack = function() {}, this.content = "", 
                    this.beginTime = 0, this.endTime = 0, this.cycleTime = 0, this.content2 = "", this.content2Title = "", 
                    this.getRecord = function() {};
                }
                return s(t, [ {
                    key: "setRecordFunc",
                    value: function(t) {
                        this.getRecord = t;
                    }
                }, {
                    key: "setContent2",
                    value: function(t) {
                        this.content2 = t;
                    }
                }, {
                    key: "getContent2",
                    value: function() {
                        return this.content2;
                    }
                }, {
                    key: "setContent2Title",
                    value: function(t) {
                        this.content2Title = t;
                    }
                }, {
                    key: "getContent2Title",
                    value: function() {
                        return this.content2Title;
                    }
                }, {
                    key: "setName",
                    value: function(t) {
                        this.name = t;
                    }
                }, {
                    key: "getName",
                    value: function() {
                        return this.name;
                    }
                }, {
                    key: "setRefresh",
                    value: function(t) {
                        this.refresh = t;
                    }
                }, {
                    key: "setServerDay",
                    value: function(t) {
                        this.serverDay = t;
                    }
                }, {
                    key: "getServerDay",
                    value: function() {
                        return this.serverDay;
                    }
                }, {
                    key: "setActivityTitle",
                    value: function(t) {
                        this.activityTitle = t;
                    }
                }, {
                    key: "getActivityTitle",
                    value: function() {
                        return this.activityTitle;
                    }
                }, {
                    key: "setActivityList",
                    value: function(t) {
                        this.activityList = t;
                    }
                }, {
                    key: "getActivityList",
                    value: function() {
                        return this.activityList;
                    }
                }, {
                    key: "setFinishCallBack",
                    value: function(t) {
                        this.finsh = t;
                    }
                }, {
                    key: "setIsShow",
                    value: function(t) {
                        this.isShow = t;
                    }
                }, {
                    key: "getIsShow",
                    value: function() {
                        return this.isShow;
                    }
                }, {
                    key: "setUpdataView",
                    value: function(t) {
                        this.updataView = t;
                    }
                }, {
                    key: "setShareTaskCallBack",
                    value: function(t) {
                        this.shareTaskCallBack = t;
                    }
                }, {
                    key: "setActContent",
                    value: function(t) {
                        this.content = t;
                    }
                }, {
                    key: "getActContent",
                    value: function() {
                        return this.content;
                    }
                }, {
                    key: "setInitCallBack",
                    value: function(t) {
                        return this.initCallBack = t, this;
                    }
                }, {
                    key: "setBeginTime",
                    value: function(t) {
                        this.beginTime = t;
                    }
                }, {
                    key: "getBeginTime",
                    value: function() {
                        return this.beginTime;
                    }
                }, {
                    key: "setEndTime",
                    value: function(t) {
                        this.endTime = t;
                    }
                }, {
                    key: "getEndTime",
                    value: function() {
                        return this.endTime;
                    }
                }, {
                    key: "getCycleTime",
                    value: function() {
                        return this.cycleTime;
                    }
                }, {
                    key: "setCycleTime",
                    value: function(t) {
                        this.cycleTime = t;
                    }
                } ]), t;
            }())();
        }
    }, {
        key: "backflowDataModelInit",
        value: function(t) {
            var e, i, n, s, a, o, r, c, l, h, d = this, u = function(t) {
                return t.data && t.data.msg && console.log("[肆狼] backflow data model, return message:" + t.data.msg), 
                t.data && 0 == t.data.code;
            }, p = !0, g = function() {
                var g = this;
                console.log("[肆狼] 请求回流活动接口..."), d.request({
                    urltype: 3,
                    url: "/reflow/activity/check",
                    header: {
                        "silang-token": d.redPacket.userToken
                    },
                    pdata: {
                        serverid: d.redPacket.args.serverId
                    },
                    callback: function(m) {
                        if (console.log("[肆狼] 回流活动信息：", m), u(m)) {
                            var w = m.data.data;
                            e = w.server_user.roleName, i = w.acticity.server_open_day, o = w.acticity.begin_time, 
                            r = w.acticity.end_time, h = w.acticity.cycle_time, f = w.acticity.content, i = parseInt(i) < 10 ? "0" + i : i, 
                            n = w.acticity.name, c = w.acticity.content2, l = w.acticity.content2_title, s = w.giftlist, 
                            (a = w.is_open) && wx.onShareAppMessage(function() {
                                for (var t = {
                                    query: "sourceId@" + g.systemArgs.channelId + "=" + g.userInfo.userId + "&shareTaskTime=" + d._actShareTimeStamp() + "&shareServerId=" + d.redPacket.args.serverId + "&actFlag=1"
                                }, e = d; null != e.parentSDK; ) e = e.parentSDK, t.query = t.query + "&sourceId@" + e.systemArgs.channelId + "=" + e.userInfo.userId + "&shareTaskTime=" + e._actShareTimeStamp() + "&shareServerId=" + e.redPacket.args.serverId;
                                var i = parseInt(1e3 * Math.random() % 3), n = 0 == i ? "" : "_" + i;
                                return t.imageUrl = d.systemArgs.assHost + "/Archives/wxapp/share/" + d.systemArgs.channelId + n + ".png", 
                                t.title = "发红包，我们是认真的，抢红包，你们准备好了吗？", t;
                            }), t.setName(e), t.setServerDay(i), t.setActivityTitle(n), t.setActivityList(s), 
                            t.setIsShow(a), t.setActContent(f), t.setBeginTime(o), t.setEndTime(r), t.setCycleTime(h), 
                            t.setContent2(c), t.setContent2Title(l), p && t.initCallBack(), t.updataView(), 
                            p = !1;
                        } else t.setIsShow(!1);
                    }
                });
            }.bind(this);
            t.setRefresh(g), t.setShareTaskCallBack(function() {
                d.awaitLoginCallBackByRedPacket(function() {
                    d.request({
                        urltype: 3,
                        url: "/2.0/activity/setshare",
                        header: {
                            "silang-token": d.redPacket.userToken
                        },
                        pdata: {
                            serverid: d.redPacket.args.serverId
                        },
                        callback: function(t) {
                            u(t) && (wx.showToast({
                                title: "分享成功!",
                                icon: "none"
                            }), g());
                        }
                    });
                }.bind(d));
            }.bind(this)), t.setFinishCallBack(function(e, i, n, s) {
                return 0 == i ? "shareTask" == n ? (d.share({
                    query: "shareTaskTime=" + d._actShareTimeStamp() + "&shareServerId=" + d.redPacket.args.serverId + "&actFlag=1",
                    title: "这款游戏真好玩，我想邀请你一起。"
                }), null) : (wx.showToast({
                    title: "请先完成任务",
                    icon: "none"
                }), null) : new Promise(function(i) {
                    wx.showLoading({
                        title: "加载中.."
                    }), d.awaitLoginCallBackByRedPacket(function() {
                        d.request({
                            urltype: 3,
                            header: {
                                "silang-token": d.redPacket.userToken
                            },
                            url: "/reflow/gift/getcode",
                            pdata: {
                                id: e,
                                serverid: d.redPacket.args.serverId
                            },
                            callback: function(e) {
                                if (wx.hideLoading(), u(e)) {
                                    var n = t.getActivityList();
                                    n[s].status = 1, t.setActivityList(n), t.updataView(), console.log("[测试] 接口拿到了数据，并且请求刷新"), 
                                    wx.showModal({
                                        content: "礼包码:" + e.data.data.code,
                                        showCancel: !1,
                                        confirmText: "一键复制"
                                    }), wx.setClipboardData({
                                        data: e.data.data.code
                                    }), g(), i(!0);
                                } else i(!1);
                                e.data.msg && wx.showToast({
                                    title: e.data.msg,
                                    icon: "none"
                                });
                            }
                        });
                    }.bind(d));
                });
            }), t.setRecordFunc(function() {
                return new Promise(function(t) {
                    wx.showLoading({
                        title: "加载中.."
                    }), d.awaitLoginCallBackByRedPacket(function() {
                        d.request({
                            urltype: 3,
                            url: "/reflow/gift/mycodelist",
                            header: {
                                "silang-token": d.redPacket.userToken
                            },
                            pdata: {
                                serverid: d.redPacket.args.serverId
                            },
                            callback: function(e) {
                                if (wx.hideLoading(), u(e)) {
                                    var i = e.data.data;
                                    t(i);
                                } else e.data.msg && wx.showToast({
                                    title: e.data.msg,
                                    icon: "none"
                                }), t(!1);
                            }
                        });
                    }.bind(d));
                });
            });
            var f = "";
            return d.awaitLoginCallBackByRedPacket(function() {
                g();
            }.bind(d)), t;
        }
    }, {
        key: "initBackflow",
        value: function() {
            var t = 0, e = this, i = setInterval(function() {
                (t += 1) <= 30 ? (window.egret && window.egret.lifecycle.stage && (e.showBackflow(), 
                clearInterval(i)), window.Laya && window.Laya.stage && (e.showBackflowByLaya(), 
                clearInterval(i))) : clearInterval(i);
            }.bind(this), 1e3);
        }
    }, {
        key: "showlogin",
        value: function(t) {
            wx.getSetting({
                success: function(e) {
                    e.authSetting["scope.userInfo"] || wx.authorize({
                        scope: "scope.userInfo",
                        success: function() {
                            r(t);
                        },
                        fail: function() {
                            var e = wx.getSystemInfoSync(), i = wx.createUserInfoButton({
                                type: "text",
                                text: "授权登录游戏",
                                style: {
                                    top: e.windowHeight / 2 + e.windowHeight / 4,
                                    left: e.windowWidth / 2 - 100,
                                    width: 200,
                                    height: 40,
                                    lineHeight: 40,
                                    backgroundColor: "#07c160",
                                    color: "#ffffff",
                                    textAlign: "center",
                                    fontSize: 16,
                                    borderRadius: 4
                                }
                            });
                            i.onTap(function() {
                                r(t), i.hide();
                            });
                        }
                    });
                }
            });
        }
    }, {
        key: "login",
        value: function(t) {
            console.log("[肆狼] call login");
            var e = this;
            if (window.loginOpts = t, t.sourceCallback || (t.sourceCallback = t.callback), 0 == e.systemArgs.initFlag) {
                if (t.repeatTimes || (t.repeatTimes = 0), t.repeatTimes += 1, t.repeatTimes > 10) return;
                return console.log("[肆狼] 初始化未完成，2秒后再重新调用", t.repeatTimes), void setTimeout(function() {
                    r(t);
                }, 2e3);
            }
            var i = function() {
                return new Promise(function(i) {
                    null == e.childSDK ? (wx.showLoading({
                        title: "获取用户信息中.."
                    }), wx.login({
                        success: function(n) {
                            var s = {}, a = {
                                channelId: e.systemArgs.channelId,
                                code: n.code
                            };
                            for (var o in s) a[o] = s[o];
                            e.request({
                                url: "/wx/app/login",
                                pdata: a,
                                callback: function(n) {
                                    i(), wx.hideLoading(), n.data.result && 200 == n.data.result ? (console.log("[肆狼] login结果", n), 
                                    e._mLoginCallback(n, t), e.setRegisterUserLaunchOptions()) : wx.showModal({
                                        title: "错误提示",
                                        content: "error:" + n.data.msg,
                                        confirmText: "重新登录",
                                        showCancel: !1,
                                        success: function() {
                                            r(t);
                                        }
                                    });
                                }
                            }), t.success && t.success(n);
                        }
                    })) : e.childSDK.login({
                        sourceCallback: t.sourceCallback,
                        callback: function(n) {
                            wx.showLoading({
                                title: "获取用户信息中.."
                            }), e.request({
                                url: "/wx/app/VerifyChannel",
                                qdata: {
                                    channelId: e.systemArgs.channelId
                                },
                                pdata: {
                                    ch_userToken: n.userToken
                                },
                                callback: function(s) {
                                    for (var a in i(), wx.hideLoading(), n.extData) s.data.data.extData[a] = n.extData[a];
                                    e._mLoginCallback(s, t), e.setRegisterUserLaunchOptions();
                                }
                            });
                        }
                    });
                }.bind(this));
            }.bind(this);
            if (window.loginTimerId) {
                var n = window.loginTimerId;
                clearTimeout(n);
            }
            window.loginTimerId = setTimeout(function() {
                i();
            }, 0);
        }
    }, {
        key: "_mLoginCallback",
        value: function(t, e) {
            this.userInfo.userId = t.data.data.userId, this.userInfo.accessToken = t.data.data.accessToken, 
            this.userInfo.sessionKey = t.data.data.extData.sessionKey, this.userInfo.openId = t.data.data.extData.openId, 
            this.userInfo.unionId = t.data.data.extData.unionId, this.redPacket.userToken = t.data.data.userToken, 
            this.setUserChannelBackLog(), this.isFirstLogin && 1 == this.open_report_subscribe && (this.isFirstLogin = !1, 
            this.upWxSetting()), e.callback && e.callback(t.data.data), this.upRedPacketMSG();
        }
    }, {
        key: "upRedPacket3MSG",
        value: function() {
            var t = JSON.parse(this.headerArgs.LaunchArgs).query, e = t.shareServerId, i = t.shareTaskTime;
            !t.actFlag && e && this.request({
                urltype: 3,
                url: "/2.0/activity/setshare",
                header: {
                    "silang-token": this.redPacket.userToken
                },
                pdata: {
                    serverid: this.redPacket.args.serverId,
                    spread_serverid: e,
                    spread_time: i
                },
                callback: function(t) {
                    console.log("[肆狼] 红包3.0上报邀请者的信息", t);
                }
            });
        }
    }, {
        key: "upBackflowMsg",
        value: function() {
            var t = JSON.parse(this.headerArgs.LaunchArgs).query, e = t.shareServerId, i = t.shareTaskTime, n = t.actFlag;
            e && "1" === n && this.request({
                urltype: 3,
                url: "/reflow/activity/setshare",
                header: {
                    "silang-token": this.redPacket.userToken
                },
                pdata: {
                    serverid: this.redPacket.args.serverId,
                    spread_serverid: e,
                    spread_time: i
                },
                callback: function(t) {
                    console.log("[肆狼] 回流活动上报邀请者的信息", t);
                }
            });
        }
    }, {
        key: "awaitLoginCallBackByRedPacket",
        value: function(t) {
            var e = this, i = setInterval(function() {
                e.redPacket.args != {} && (t(), clearInterval(i));
            }, 1e3);
        }
    }, {
        key: "share",
        value: function(t) {
            if (t.query ? t.query += "&" + this.shareQueryStr() : t.query = this.shareQueryStr(), 
            !t.imageUrl) {
                var e = parseInt(1e3 * Math.random() % 3), i = 0 == e ? "" : "_" + e;
                t.imageUrl = this.systemArgs.assHost + "/Archives/wxapp/share/" + this.systemArgs.channelId + i + ".png";
            }
            wx.shareAppMessage(t);
        }
    }, {
        key: "upRedPacketMSG",
        value: function() {
            if (1007 == wx.getLaunchOptionsSync().scene && this.open_red) {
                var t = this.headerArgs.sourceUserId, e = {
                    "X-App-sourceUserId": t,
                    userToken: this.redPacket.userToken,
                    "content-type": "application/x-www-form-urlencoded"
                }, i = {
                    channelId: this.systemArgs.channelId,
                    userId: this.userInfo.userId
                };
                "0" != t && t != this.userInfo.userId && this.request({
                    urltype: 3,
                    url: "/invite/user",
                    method: "POST",
                    header: e,
                    pdata: i,
                    success: function() {}
                });
            }
        }
    }, {
        key: "copyUrl",
        value: function() {
            wx.setClipboardData({
                data: this.systemArgs.assHost + "/game/findlist/" + this.systemArgs.appId + "/" + this.systemArgs.channelId
            });
        }
    }, {
        key: "toMiniD",
        value: function() {
            var t = this;
            if (this.appletInfo.appid && this.appletInfo.articleURL && "" !== this.appletInfo.appid && "" !== this.appletInfo.articleURL) this.toAppletOfWeChat(); else {
                this.copyUrl();
                var e = "https://frontcdn.17a.cn/static/images/wxKf2.jpg", i = {
                    link: this.systemArgs.assHost + "/game/findlist/" + this.systemArgs.appId + "/" + this.systemArgs.channelId,
                    desc: "点击我下载微端",
                    title: "转端下载",
                    img: e
                };
                this.kefJumpCheck().then(function(n) {
                    var s = n.appid;
                    if (n.isKfJump) wx.openCustomerServiceConversation({
                        showMessageCard: !0,
                        sendMessageTitle: i.desc,
                        sendMessagePath: JSON.stringify(i),
                        sessionFrom: JSON.stringify(i),
                        sendMessageImg: e,
                        success: function(t) {
                            console.log("[肆狼] toMiniD tips: jump wxmini", t);
                        }
                    }); else {
                        var a = "wx0d652e5da480573a";
                        "" != s && (a = s), wx.navigateToMiniProgram({
                            appId: a,
                            path: "/pages/hander/index?text=" + encodeURI(e) + "&v_title=" + encodeURI(t.systemArgs.assHost + "/game/findlist/" + t.systemArgs.appId + "/" + t.systemArgs.channelId)
                        });
                    }
                });
            }
        }
    }, {
        key: "kefJumpCheck",
        value: function() {
            var t = this;
            return new Promise(function(e) {
                t.request({
                    urltype: 2,
                    url: "/game/config2",
                    callback: function(t) {
                        if (t && t.data && 0 == t.data.code && t.data.data) {
                            var i = t.data.data.appid, n = 1 == t.data.data.isKfJump;
                            e({
                                appid: i,
                                isKfJump: n
                            });
                        }
                    }
                });
            });
        }
    }, {
        key: "updateUserInfo",
        value: function(t) {
            var e = this, i = this, n = "";
            wx.login({
                success: function(s) {
                    var a = {};
                    if ("" == n) {
                        var o = {
                            channelId: i.systemArgs.channelId,
                            code: s.code
                        };
                        for (var r in a) o[r] = a[r];
                        i.request({
                            url: "/wx/app/login",
                            pdata: o,
                            callback: function(i) {
                                if (!i.data.result || 200 != i.data.result) return n = "调用网络请求，出现返回值问题", void (t.fail && t.fail({
                                    error: n,
                                    res: i
                                }));
                                t.success && (t.callback = t.success), e._mLoginCallback(i, t);
                            }
                        });
                    }
                }
            });
        }
    }, {
        key: "confirmGrade",
        value: function() {
            if (window.sl_moDal) {
                var t = new window.sl_moDal();
                this.onegamelist && this.onegamelist.length > 0 ? t.showModal("更多游戏推荐", "\n\n这款游戏您还喜欢吗，我们为您准备了其他火爆的新游，欢迎点击进入体验。\n\n", "前往新游", "继续游玩", function() {
                    return "弹游戏列表";
                }, null, !1) : t.showModal("转端有礼", this.channel_description, "前往下载", "残忍拒绝", this.toMiniD.bind(this), null, !1);
            }
        }
    }, {
        key: "_isFreeUser",
        value: function() {
            return wx.getLaunchOptionsSync().query.adsId ? 2 : 1;
        }
    }, {
        key: "pswitch",
        value: function(t) {
            console.log("[肆狼] call pswitch");
            var e = this, i = {
                userId: e.userInfo.userId,
                appId: e.systemArgs.appId,
                channelId: e.systemArgs.channelId,
                roleId: t.roleId,
                roleName: t.roleName,
                roleLevel: t.roleLevel,
                serverId: t.serverId,
                serverName: t.serverName,
                roleVip: t.roleVip,
                rolePower: t.rolePower,
                version: "20201112"
            };
            1 != e.jumpstatus && e.checkGoToAppid(t, e.systemArgs.channelId);
            var n = function() {
                return !!wx.getLaunchOptionsSync().query["sourceId@" + this.systemArgs.channelId];
            }.bind(this), s = function() {
                return !!wx.getLaunchOptionsSync().query.adsId;
            }.bind(this);
            e.request({
                urltype: 2,
                url: "/game/pswitch",
                pdata: i,
                callback: function(i) {
                    console.log("[肆狼] pswitch return", i.data);
                    var a = i.data.data[1];
                    if (e.onegamelist = i.data.data[2], e.popGameList(), i.data && 0 == i.data.code) {
                        var o = e.headerArgs.OS.toUpperCase(), r = i.data.data[0];
                        t.callback ? "999" == e.getExtDataByKey("pFlag") ? (console.log("[肆狼] 投放量规则"), ("DEVTOOLS" == o || "IOS" == o || "WINDOWS" == o || n() && "ANDROID" != o) && !s() ? t.callback(r) : ("ANDROID" == o || s()) && t.callback(1)) : (console.log("[肆狼] 原规则"), 
                        t.callback(r)) : console.log("[肆狼] pswitch没有传callback回调进来"), 1 == a && e.checkFirstPop() && e.confirmGrade();
                    }
                }
            });
        }
    }, {
        key: "checkGoToAppid",
        value: function(t, e) {
            var i = this;
            this.request({
                urltype: 5,
                url: "/game/checkGoToAppid",
                pdata: {
                    grade: t.roleLevel || ""
                },
                callback: function(t) {
                    var n, s;
                    i.jumpstatus = 1, console.log("checkGoToAppid", t.data.code, t.data.data), "0" == t.data.code && t.data.data.appid && (n = t.data.data.appid, 
                    s = t.data.data.channelname, i.touchuAfter = function() {
                        wx.showModal({
                            title: "跳转提示",
                            content: "亲爱的玩家您好，因小游戏即将迁移，请点击“确认”，再次点击允许跳转至“" + s + "”继续游戏。账号是互通的，给您带来不便敬请谅解。如遇特殊情况，请关注微信公众号“肆狼热游”咨询人工客服。",
                            showCancel: !1,
                            success: function(t) {
                                console.log("用户点击确定", e), wx.navigateToMiniProgram({
                                    appId: n,
                                    path: "?adsId=jumpfrom" + e,
                                    success: function(t) {
                                        console.log("打开成功", t);
                                    },
                                    fail: function(t) {
                                        console.log("取消了", t);
                                    }
                                });
                            }
                        });
                    }, i.touchuAfter(), wx.onTouchEnd(function(t) {
                        i.touchuAfter();
                    }));
                }
            });
        }
    }, {
        key: "setRegisterUserLaunchOptions",
        value: function(t) {
            this.request({
                urltype: 5,
                url: "/game/setRegisterUserLaunchOptions",
                pdata: {
                    ext_data: this.argsJson || {}
                },
                callback: function(t) {
                    console.log("setRegisterUserLaunchOptions", t);
                }
            });
        }
    }, {
        key: "redSwitch",
        value: function(t) {
            console.log("[肆狼] call redSwitch");
            if (t.serverId && t.serverName && t.callback) {
                var e = {}, i = {
                    roleId: t.roleId,
                    roleName: t.roleName,
                    roleLevel: t.roleLevel,
                    serverId: t.serverId,
                    serverName: t.serverName,
                    roleVip: t.roleVip,
                    rolePower: t.rolePower
                };
                for (var n in i) null != i[n] && null != i[n] && "function" != typeof i[n] && (e[n] = i[n]);
                this.redPacket.args = e, "devtools" == this.headerArgs.OS.toLowerCase() && console.log("[肆狼] 红包相关参数", this.redPacket.args);
                var s = {
                    gameId: this.systemArgs.appId,
                    channelId: this.systemArgs.channelId,
                    userId: this.userInfo.userId
                };
                for (var n in i) s[n] = i[n];
                1 == this.open_red && t.roleLevel >= this.open_grade ? t.callback(1) : t.callback(0);
            } else console.log("[肆狼] serverId、callback 和 serverName 是必要字段");
        }
    }, {
        key: "pay",
        value: function(t) {
            var e = this;
            if (console.log("[肆狼] call pay"), t.productId && t.productName && t.productDesc && t.roleId && t.roleName && t.serverId && t.serverName && t.amount && t.roleLevel) {
                var i = this;
                if (this.userInfo.accessToken.length < 1) wx.showModal({
                    title: "错误提示",
                    content: "你还没登录呢，请先登录",
                    confirmText: "重新登录",
                    showCancel: !1,
                    success: function() {
                        r({
                            callback: function() {
                                i.pay(t);
                            }
                        });
                    }
                }); else {
                    wx.checkSession({
                        fail: function() {
                            e.login({
                                callback: function() {
                                    i.pay(t);
                                }
                            });
                        }
                    });
                    var n = t;
                    n.ch_wxOpenId = this.userInfo.openId, n.ch_sessionKey = this.userInfo.sessionKey, 
                    n.ch_platform = this.headerArgs.OS.toLowerCase(), n.ch_platform, n.ch_platform = "android", 
                    wx.showLoading({
                        title: "请求支付信息.."
                    }), this.request({
                        url: "/wx/app/order",
                        pdata: n,
                        loading: !0,
                        callback: function(e) {
                            if (wx.hideLoading(), e.data && e.data.result && 200 == e.data.result) {
                                if (null != i.childSDK) {
                                    var n = {};
                                    for (var s in t) n[s] = t[s];
                                    return n.orderExt = e.data.data.orderId, n.callback = function(i) {
                                        t.callback && t.callback({
                                            orderId: e.data.data.orderId,
                                            msg: i.msg,
                                            result: i.result
                                        });
                                    }, void i.childSDK.pay(n);
                                }
                                var a = e.data.data;
                                if (a.tradeType) {
                                    if (a.cpCallback = t.callback ? t.callback : function() {}, "JSAPI" == a.tradeType) return delete a.tradeType, 
                                    a.success = function() {
                                        a.cpCallback({
                                            orderId: e.data.myOrderId,
                                            msg: "unknown",
                                            result: 200
                                        });
                                    }, void wx.requestPayment(a);
                                    if ("QRPay" != a.tradeType) {
                                        if ("KFPAY" != a.tradeType) return "WXGAME" == a.tradeType ? (a.orderId = e.data.myOrderId, 
                                        a.requestData || (a.requestData = {}), a.requestData.success = function() {
                                            i.wxGameShip({
                                                orderId: a.orderId,
                                                callback: function() {
                                                    a.cpCallback({
                                                        orderId: a.orderId,
                                                        msg: "unknown",
                                                        result: 200
                                                    });
                                                }
                                            });
                                        }, void i.wxGamePay(a)) : void console.log("[肆狼] pay 提示： 暂时不支持的支付方式", e.data);
                                        wx.showModal({
                                            title: "充值教程",
                                            content: "充值链接已复制剪贴板，请前往客服中心，如果没有自动收到订单入口请粘贴并发送剪贴板内容获取支付入口链接。",
                                            confirmText: "前往粘贴",
                                            showCancel: !1,
                                            fail: function() {
                                                console.log("[肆狼] showModal fail");
                                            },
                                            success: function() {
                                                wx.setClipboardData({
                                                    data: a.url + "\n\n点击上方链接即可充值。\n如有其他疑问可联系\n客服公众号:silanggame\n\n发送并点击本链接即可充值",
                                                    success: function() {}
                                                });
                                                var t = {
                                                    link: a.url,
                                                    desc: "订单号：" + a.orderId,
                                                    title: "订单支付",
                                                    img: "https://apk-1255812642.cos.ap-guangzhou.myqcloud.com/img/dhfz.png"
                                                };
                                                wx.openCustomerServiceConversation({
                                                    showMessageCard: !0,
                                                    sendMessageTitle: t.desc,
                                                    sendMessagePath: JSON.stringify(t),
                                                    sessionFrom: JSON.stringify(t),
                                                    sendMessageImg: "https://apk-1255812642.cos.ap-guangzhou.myqcloud.com/img/dhfz.png",
                                                    success: function(t) {
                                                        console.log("[肆狼] pay tips: jump wxmini", t);
                                                    }
                                                });
                                            }
                                        });
                                    } else {
                                        if (i.open_quality_pay) return void wx.previewImage({
                                            urls: [ a.img ]
                                        });
                                        var o = a.img.split("/"), r = o[o.length - 1], c = r.indexOf("?"), l = r.indexOf("?scene="), h = r.indexOf("&sig"), d = r.substring(0, c), u = r.substring(l + 7, h);
                                        18 == d.toString().length && -1 != l ? wx.navigateToMiniProgram({
                                            appId: d,
                                            path: "/pages/wxpay/mpay?scene=" + u
                                        }) : "MPQR" == d ? wx.showModal({
                                            content: "获取小程序码失败，请联系客服!",
                                            showCancel: !1
                                        }) : wx.previewImage({
                                            urls: [ a.img ]
                                        });
                                    }
                                } else console.log("[肆狼] pay 提示: 服务器忙，请稍后重试", e.data);
                            } else wx.showModal({
                                title: "错误提示",
                                content: "error:" + e.data.msg,
                                confirmText: "确定",
                                showCancel: !1,
                                success: function() {}
                            });
                        }
                    });
                }
            } else console.log("[肆狼] pay 提示： 支付参数不完整");
        }
    }, {
        key: "wxGamePay",
        value: function(t) {
            0 != t.tips.length ? t.tips.length > 0 ? wx.showModal({
                title: "支付提示",
                content: t.tips,
                confirmText: "确定",
                cancelText: "取消",
                success: function(e) {
                    e.cancel ? t.cpCallback({
                        orderId: t.orderId,
                        msg: "cancel",
                        result: 0
                    }) : t.buyPrice > 0 ? wx.requestMidasPayment(t.requestData) : t.requestData.success(e);
                }
            }) : t.requestData.success() : wx.requestMidasPayment(t.requestData);
        }
    }, {
        key: "wxGameShip",
        value: function(t) {
            console.log("[肆狼] call wxGameShip 请求发货：");
            var e = {};
            e.accessToken = this.userInfo.accessToken, e.ch_wxOpenId = this.userInfo.openId, 
            e.ch_sessionKey = this.userInfo.sessionKey, e.ch_platform = this.headerArgs.OS.toLowerCase(), 
            e.ch_platform, e.ch_platform = "android", e.orderId = t.orderId, this.request({
                url: "/wx/app/wxGameShip",
                pdata: e,
                loading: !0,
                callback: function(e) {
                    t.callback(e), e.data && e.data.result && 200 == e.data.result ? (wx.showToast({
                        title: "支付成功"
                    }), setTimeout(wx.hideToast, 3e3)) : wx.showModal({
                        title: "错误提示",
                        content: "error:" + e.data.msg,
                        confirmText: "确定",
                        showCancel: !1,
                        success: function() {}
                    });
                }
            });
        }
    }, {
        key: "shareQueryStr",
        value: function() {
            console.log("[肆狼] call shareQueryStr");
            for (var t = "sourceId@" + this.systemArgs.channelId + "=" + this.userInfo.userId, e = this; null != e.parentSDK; ) t = "sourceId@" + (e = e.parentSDK).systemArgs.channelId + "=" + e.userInfo.userId;
            return 0 == this.userInfo.userId && console.log("[肆狼] 请在授权登录游戏后进行分享，否则无法识别到用户id"), 
            t;
        }
    }, {
        key: "toRedPacketLink",
        value: function(t) {
            console.log("[肆狼] call toRedPacketLink");
            var e = this.redPacket.wxAppId, i = this.systemArgs.redHost, n = JSON.stringify(this.redPacket.args), s = encodeURIComponent(i + "?userToken=" + this.redPacket.userToken + "&channelId=" + this.systemArgs.channelId + "&userId=" + this.userInfo.userId + "&args=" + n);
            wx.navigateToMiniProgram({
                appId: e,
                path: "/pages/webview/index?gameUrl=" + s,
                success: function(e) {
                    void 0 !== t && void 0 !== t.callback && t.callback(e);
                },
                fail: function(e) {
                    void 0 !== t && void 0 !== t.callback && t.callback(e), console.log("[肆狼] toRedPacketLink提示:", "/pages/webview/index?gameUrl=" + s);
                }
            });
        }
    }, {
        key: "toAppletOfWeChat",
        value: function(t) {
            console.log("[肆狼] call toAppletOfWechat");
            var e = this.appletInfo.appid, i = this.appletInfo.articleURL, n = encodeURIComponent(i);
            wx.navigateToMiniProgram({
                appId: e,
                path: "/pages/webview/index?gameUrl=" + n,
                success: function(e) {
                    void 0 !== t && void 0 !== t.callback && t.callback(e);
                },
                fail: function(e) {
                    void 0 !== t && void 0 !== t.callback && t.callback(e), console.log("[肆狼] toAppletOfWechat提示:", "/pages/webview/index?gameUrl=" + n);
                }
            });
        }
    }, {
        key: "setUserStorage",
        value: function(t) {
            null == this.childSDK ? this.request({
                url: "/wx/app/SetUserStorage",
                header: {
                    "content-type": "application/json;charset=utf-8;"
                },
                qdata: {
                    accessToken: this.userInfo.accessToken,
                    openId: this.userInfo.openId,
                    sessionKey: this.userInfo.sessionKey
                },
                pdata: {
                    kv_list: t.kv_list
                },
                success: function(e) {
                    t.callback && t.callback(e);
                }
            }) : this.childSDK.setUserStorage(t);
        }
    }, {
        key: "removeUserStorage",
        value: function(t) {
            null == this.childSDK ? this.request({
                url: "/wx/app/removeUserStorage",
                header: {
                    "content-type": "application/json;charset=utf-8;"
                },
                qdata: {
                    accessToken: this.userInfo.accessToken,
                    openId: this.userInfo.openId,
                    sessionKey: this.userInfo.sessionKey
                },
                pdata: {
                    key: t.keys
                },
                success: function(e) {
                    t.callback && t.callback(e);
                }
            }) : this.childSDK.removeUserStorage(t);
        }
    }, {
        key: "imgSecCheck",
        value: function(t) {
            null == this.childSDK ? this.request({
                url: "/wx/app/ImgCheck",
                header: {
                    "content-type": "application/json;charset=utf-8;"
                },
                qdata: {
                    accessToken: this.userInfo.accessToken
                },
                pdata: {
                    filename: t.filename,
                    media: t.media
                },
                callback: function(e) {
                    t.callback && t.callback(e.data);
                }
            }) : this.childSDK.imgSecCheck(t);
        }
    }, {
        key: "msgSecCheck",
        value: function(t) {
            null == this.childSDK ? this.request({
                url: "/wx/app/MsgCheck",
                header: {
                    "content-type": "application/json;charset=utf-8;"
                },
                qdata: {
                    accessToken: this.userInfo.accessToken
                },
                pdata: {
                    content: t.content,
                    openId: this.userInfo.openId || "",
                    scene: t.scene || ""
                },
                callback: function(e) {
                    t.callback && t.callback(e.data);
                }
            }) : this.childSDK.msgSecCheck(t);
        }
    }, {
        key: "timeFormat",
        value: function(t, e) {
            var i = {
                "M+": e.getMonth() + 1,
                "d+": e.getDate(),
                "h+": e.getHours(),
                "m+": e.getMinutes(),
                "s+": e.getSeconds(),
                "q+": Math.floor((e.getMonth() + 3) / 3),
                S: e.getMilliseconds()
            };
            for (var n in /(y+)/.test(t) && (t = t.replace(RegExp.$1, (e.getFullYear() + "").substr(4 - RegExp.$1.length))), 
            i) new RegExp("(" + n + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[n] : ("00" + i[n]).substr(("" + i[n]).length)));
            return t;
        }
    }, {
        key: "turnminiC",
        value: function(t) {
            this.request({
                url: "/jump/turnminiC",
                urltype: 2,
                header: {
                    "content-type": "application/x-www-form-urlencoded"
                },
                pdata: {
                    access_token: this.userInfo.accessToken,
                    freeUser: this._isFreeUser()
                },
                callback: function(e) {
                    t.callback && t.callback(e.data);
                }
            });
        }
    }, {
        key: "user9",
        value: function(t) {
            if (t.data.userid) {
                var e = {
                    channelid: this.systemArgs.channelId || "",
                    userid: this.userInfo.userId || "",
                    userid_9130: t.data.userid || ""
                }, i = JSON.stringify(e), n = new this.Base64().encode(i), s = this.signFun(n);
                this.request({
                    url: "/report/user9",
                    urltype: 6,
                    header: {
                        "content-type": "application/x-www-form-urlencoded"
                    },
                    pdata: {
                        data: n,
                        sign: s
                    },
                    callback: function(t) {
                        console.log(t);
                    }
                });
            }
        }
    }, {
        key: "md5",
        value: function(t) {
            var e = 0;
            function i(t, e, i, n, s, a) {
                return r((o = r(r(e, t), r(n, a))) << (c = s) | o >>> 32 - c, i);
                var o, c;
            }
            function n(t, e, n, s, a, o, r) {
                return i(e & n | ~e & s, t, e, a, o, r);
            }
            function s(t, e, n, s, a, o, r) {
                return i(e & s | n & ~s, t, e, a, o, r);
            }
            function a(t, e, n, s, a, o, r) {
                return i(e ^ n ^ s, t, e, a, o, r);
            }
            function o(t, e, n, s, a, o, r) {
                return i(n ^ (e | ~s), t, e, a, o, r);
            }
            function r(t, e) {
                var i = (65535 & t) + (65535 & e);
                return (t >> 16) + (e >> 16) + (i >> 16) << 16 | 65535 & i;
            }
            return function(t) {
                for (var i, n = e ? "0123456789ABCDEF" : "0123456789abcdef", s = "", a = 0; a < t.length; a++) i = t.charCodeAt(a), 
                s += n.charAt(i >>> 4 & 15) + n.charAt(15 & i);
                return s;
            }(function(t) {
                return function(t) {
                    for (var e = "", i = 0; i < 32 * t.length; i += 8) e += String.fromCharCode(t[i >> 5] >>> i % 32 & 255);
                    return e;
                }(function(t, e) {
                    t[e >> 5] |= 128 << e % 32, t[14 + (e + 64 >>> 9 << 4)] = e;
                    for (var i = 1732584193, c = -271733879, l = -1732584194, h = 271733878, d = 0; d < t.length; d += 16) {
                        var u = i, p = c, g = l, f = h;
                        i = n(i, c, l, h, t[d + 0], 7, -680876936), h = n(h, i, c, l, t[d + 1], 12, -389564586), 
                        l = n(l, h, i, c, t[d + 2], 17, 606105819), c = n(c, l, h, i, t[d + 3], 22, -1044525330), 
                        i = n(i, c, l, h, t[d + 4], 7, -176418897), h = n(h, i, c, l, t[d + 5], 12, 1200080426), 
                        l = n(l, h, i, c, t[d + 6], 17, -1473231341), c = n(c, l, h, i, t[d + 7], 22, -45705983), 
                        i = n(i, c, l, h, t[d + 8], 7, 1770035416), h = n(h, i, c, l, t[d + 9], 12, -1958414417), 
                        l = n(l, h, i, c, t[d + 10], 17, -42063), c = n(c, l, h, i, t[d + 11], 22, -1990404162), 
                        i = n(i, c, l, h, t[d + 12], 7, 1804603682), h = n(h, i, c, l, t[d + 13], 12, -40341101), 
                        l = n(l, h, i, c, t[d + 14], 17, -1502002290), c = n(c, l, h, i, t[d + 15], 22, 1236535329), 
                        i = s(i, c, l, h, t[d + 1], 5, -165796510), h = s(h, i, c, l, t[d + 6], 9, -1069501632), 
                        l = s(l, h, i, c, t[d + 11], 14, 643717713), c = s(c, l, h, i, t[d + 0], 20, -373897302), 
                        i = s(i, c, l, h, t[d + 5], 5, -701558691), h = s(h, i, c, l, t[d + 10], 9, 38016083), 
                        l = s(l, h, i, c, t[d + 15], 14, -660478335), c = s(c, l, h, i, t[d + 4], 20, -405537848), 
                        i = s(i, c, l, h, t[d + 9], 5, 568446438), h = s(h, i, c, l, t[d + 14], 9, -1019803690), 
                        l = s(l, h, i, c, t[d + 3], 14, -187363961), c = s(c, l, h, i, t[d + 8], 20, 1163531501), 
                        i = s(i, c, l, h, t[d + 13], 5, -1444681467), h = s(h, i, c, l, t[d + 2], 9, -51403784), 
                        l = s(l, h, i, c, t[d + 7], 14, 1735328473), c = s(c, l, h, i, t[d + 12], 20, -1926607734), 
                        i = a(i, c, l, h, t[d + 5], 4, -378558), h = a(h, i, c, l, t[d + 8], 11, -2022574463), 
                        l = a(l, h, i, c, t[d + 11], 16, 1839030562), c = a(c, l, h, i, t[d + 14], 23, -35309556), 
                        i = a(i, c, l, h, t[d + 1], 4, -1530992060), h = a(h, i, c, l, t[d + 4], 11, 1272893353), 
                        l = a(l, h, i, c, t[d + 7], 16, -155497632), c = a(c, l, h, i, t[d + 10], 23, -1094730640), 
                        i = a(i, c, l, h, t[d + 13], 4, 681279174), h = a(h, i, c, l, t[d + 0], 11, -358537222), 
                        l = a(l, h, i, c, t[d + 3], 16, -722521979), c = a(c, l, h, i, t[d + 6], 23, 76029189), 
                        i = a(i, c, l, h, t[d + 9], 4, -640364487), h = a(h, i, c, l, t[d + 12], 11, -421815835), 
                        l = a(l, h, i, c, t[d + 15], 16, 530742520), c = a(c, l, h, i, t[d + 2], 23, -995338651), 
                        i = o(i, c, l, h, t[d + 0], 6, -198630844), h = o(h, i, c, l, t[d + 7], 10, 1126891415), 
                        l = o(l, h, i, c, t[d + 14], 15, -1416354905), c = o(c, l, h, i, t[d + 5], 21, -57434055), 
                        i = o(i, c, l, h, t[d + 12], 6, 1700485571), h = o(h, i, c, l, t[d + 3], 10, -1894986606), 
                        l = o(l, h, i, c, t[d + 10], 15, -1051523), c = o(c, l, h, i, t[d + 1], 21, -2054922799), 
                        i = o(i, c, l, h, t[d + 8], 6, 1873313359), h = o(h, i, c, l, t[d + 15], 10, -30611744), 
                        l = o(l, h, i, c, t[d + 6], 15, -1560198380), c = o(c, l, h, i, t[d + 13], 21, 1309151649), 
                        i = o(i, c, l, h, t[d + 4], 6, -145523070), h = o(h, i, c, l, t[d + 11], 10, -1120210379), 
                        l = o(l, h, i, c, t[d + 2], 15, 718787259), c = o(c, l, h, i, t[d + 9], 21, -343485551), 
                        i = r(i, u), c = r(c, p), l = r(l, g), h = r(h, f);
                    }
                    return Array(i, c, l, h);
                }(function(t) {
                    for (var e = Array(t.length >> 2), i = 0; i < e.length; i++) e[i] = 0;
                    for (i = 0; i < 8 * t.length; i += 8) e[i >> 5] |= (255 & t.charCodeAt(i / 8)) << i % 32;
                    return e;
                }(t), 8 * t.length));
            }(function(t) {
                for (var e, i, n = "", s = -1; ++s < t.length; ) e = t.charCodeAt(s), i = s + 1 < t.length ? t.charCodeAt(s + 1) : 0, 
                55296 <= e && e <= 56319 && 56320 <= i && i <= 57343 && (e = 65536 + ((1023 & e) << 10) + (1023 & i), 
                s++), e <= 127 ? n += String.fromCharCode(e) : e <= 2047 ? n += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? n += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (n += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
                return n;
            }(t)));
        }
    }, {
        key: "signFun",
        value: function(t) {
            return this.md5(t + "reportagentapi");
        }
    }, {
        key: "Base64",
        value: function() {
            var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
            this.encode = function(i) {
                var n, s, a, o, r, c, l, h = "", d = 0;
                for (i = e(i); d < i.length; ) o = (n = i.charCodeAt(d++)) >> 2, r = (3 & n) << 4 | (s = i.charCodeAt(d++)) >> 4, 
                c = (15 & s) << 2 | (a = i.charCodeAt(d++)) >> 6, l = 63 & a, isNaN(s) ? c = l = 64 : isNaN(a) && (l = 64), 
                h = h + t.charAt(o) + t.charAt(r) + t.charAt(c) + t.charAt(l);
                return h;
            }, this.decode = function(e) {
                var n, s, a, o, r, c, l = "", h = 0;
                if (null != e && null != e) {
                    for (e = e.replace(/[^A-Za-z0-9\+\/\=]/g, ""); h < e.length; ) n = t.indexOf(e.charAt(h++)) << 2 | (o = t.indexOf(e.charAt(h++))) >> 4, 
                    s = (15 & o) << 4 | (r = t.indexOf(e.charAt(h++))) >> 2, a = (3 & r) << 6 | (c = t.indexOf(e.charAt(h++))), 
                    l += String.fromCharCode(n), 64 != r && (l += String.fromCharCode(s)), 64 != c && (l += String.fromCharCode(a));
                    return l = i(l);
                }
            };
            var e = function(t) {
                t = t.replace(/\r\n/g, "\n");
                for (var e = "", i = 0; i < t.length; i++) {
                    var n = t.charCodeAt(i);
                    n < 128 ? e += String.fromCharCode(n) : n > 127 && n < 2048 ? (e += String.fromCharCode(n >> 6 | 192), 
                    e += String.fromCharCode(63 & n | 128)) : (e += String.fromCharCode(n >> 12 | 224), 
                    e += String.fromCharCode(n >> 6 & 63 | 128), e += String.fromCharCode(63 & n | 128));
                }
                return e;
            }, i = function(t) {
                for (var e = "", i = 0, n = s = 0, s = 0, a = 0; i < t.length; ) (n = t.charCodeAt(i)) < 128 ? (e += String.fromCharCode(n), 
                i++) : n > 191 && n < 224 ? (s = t.charCodeAt(i + 1), e += String.fromCharCode((31 & n) << 6 | 63 & s), 
                i += 2) : (s = t.charCodeAt(i + 1), a = t.charCodeAt(i + 2), e += String.fromCharCode((15 & n) << 12 | (63 & s) << 6 | 63 & a), 
                i += 3);
                return e;
            };
        }
    }, {
        key: "request",
        value: function(t) {
            if (t.url) {
                var e = t.header;
                for (var i in e || (e = {}), this.headerArgs) 0 != this.headerArgs[i].length && (e["X-App-" + i] = this.headerArgs[i]);
                if (e["X-App-PackId"] = this.systemArgs.channelId + "." + this.systemArgs.version + "." + this.userInfo.adsId.replace("wxapp", "wxapp@" + this.headerArgs.OS), 
                e["X-App-Sign"] = "wxapp", e["X-App-Time"] = new Date().getTime() + this.systemArgs.timeOffset, 
                e["content-type"] || (e["content-type"] = "application/x-www-form-urlencoded; charset=UTF-8"), 
                this.userInfo.accessToken.length > 0 && (e["X-App-AccessToken"] = this.userInfo.accessToken), 
                -1 != t.url.indexOf("http")) var n = t.url; else if (2 == t.urltype) n = this.systemArgs.assHost + t.url; else if (3 == t.urltype) n = this.systemArgs.redHost + t.url; else if (5 == t.urltype) n = this.systemArgs.domainHost + t.url; else if (6 == t.urltype) n = this.systemArgs.agentHost + t.url; else n = this.systemArgs.sdkHost + t.url;
                if (t.qdata) {
                    var s = "";
                    for (var a in t.qdata) s += "&" + a + "=" + encodeURIComponent(t.qdata[a]);
                    -1 != n.indexOf("?") ? n += s : n = n + "?" + s.substring(1);
                }
                t.loading && wx.showLoading({
                    title: "Loading..."
                });
                var o = {};
                for (var r in t.pdata) null != t.pdata[r] && null != t.pdata[r] && "function" != typeof t.pdata[r] && (o[r] = t.pdata[r]);
                wx.request({
                    url: n,
                    header: e,
                    method: t.method ? t.method : "POST",
                    dataType: t.dataType ? t.dataType : "json",
                    data: o,
                    success: function(e) {
                        t.callback && t.callback && t.callback(e);
                    },
                    fail: function(e) {
                        t.callback && t.callback({
                            data: {
                                result: 500,
                                code: 500,
                                msg: e.errMsg
                            }
                        });
                    },
                    complete: function() {
                        t.loading && wx.hideLoading();
                    }
                });
            } else console.error("[肆狼] 网络请求错误： 参数有误!");
        }
    } ]), a;
}();

exports.default = a;

var o = new a();

function r(t) {
    o.login(t);
}

function c() {
    return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
}

gmodule.exports = {
    init: function(t) {
        o.init(t);
    },
    gameReport: function(t) {
        return o.gameReport(t);
    },
    login: r,
    pay: function(t) {
        o.pay(t);
    },
    getUserInfo: function(t) {
        wx.checkSession({
            success: function() {
                t(userInfo);
            },
            fail: function() {
                r({
                    callback: function() {
                        t(userInfo);
                    }
                });
            }
        });
    },
    setUserStorage: function(t) {
        o.setUserStorage(t);
    },
    removeUserStorage: function(t) {
        o.removeUserStorage(t);
    },
    imgSecCheck: function(t) {
        o.imgSecCheck(t);
    },
    msgSecCheck: function(t) {
        o.msgSecCheck(t);
    },
    pswitch: function(t) {
        o.pswitch(t);
    },
    shareQueryStr: function() {
        return o.shareQueryStr();
    },
    toRedPacketLink: function(t) {
        o.toRedPacketLink(t);
    },
    redSwitch: function(t) {
        o.redSwitch(t);
    },
    updateUserInfo: function(t) {
        o.updateUserInfo(t);
    },
    templateMsgComplete: function(t) {
        return o.templateMsgComplete(t);
    },
    toMiniD: function(t) {
        return o.toMiniD(t);
    },
    getRewarderdVideo: function(t) {
        return o.getRewarderdVideo(t);
    },
    turnminiC: function(t) {
        return o.turnminiC(t);
    },
    H5Core: o
};