<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.fc = window.fc || {}, window.fc.view = window.fc.view || {}, function (e, t) {
    "use strict";
    var s = fc.framework.GameFrame, i = fc.framework.Channel, n = fc.framework.MiscUtils, o = fc.plugin.BannerCtrl, a = fc.define.Event, ii0 = fc.framework.Channel;
    function linkView2Script(e, t, s) {
        var i;
        if (i = t.getChildByName("fullUI")) {
            for (let t = s.length - 1; t &gt;= 0; t--) {
                const n = i.getChildByName(s[t]);
                n &amp;&amp; (e[s[t]] = n, s.splice(t, 1));
            }
            if (0 == s.length) return;
        }
        if (i = t.getChildByName("topUI")) {
            for (let t = s.length - 1; t &gt;= 0; t--) {
                const n = i.getChildByName(s[t]);
                n &amp;&amp; (e[s[t]] = n, s.splice(t, 1));
            }
            if (0 == s.length) return;
        }
        if (i = t.getChildByName("middleUI")) {
            for (let t = s.length - 1; t &gt;= 0; t--) {
                const n = i.getChildByName(s[t]);
                n &amp;&amp; (e[s[t]] = n, s.splice(t, 1));
            }
            if (0 == s.length) return;
        }
        if (i = t.getChildByName("bottomUI")) {
            for (let t = s.length - 1; t &gt;= 0; t--) {
                const n = i.getChildByName(s[t]);
                n &amp;&amp; (e[s[t]] = n, s.splice(t, 1));
            }
            if (0 == s.length) return;
        }
        if (i = t) {
            for (let t = s.length - 1; t &gt;= 0; t--) {
                const n = i.getChildByName(s[t]);
                n &amp;&amp; (e[s[t]] = n, s.splice(t, 1));
            }
            if (0 == s.length) return;
        }
    }
    function getReliveType() {
        var e = s.pluginCfg;
        if (!e) return 0;
        var t = function () {
            var e = s.getLocalStorage("fc_reliveInfo");
            if (e) {
                var t = e.split(","), i = t[t.length - 1];
                return i = Number(i), n.isToday(i) ? Number(t[0]) : 0;
            }
            return 0;
        }();
        if (e.pg_revive_video_num) {
            if (-1 == e.pg_revive_video_num) return 1;
            if (t &lt; e.pg_revive_video_num) return 1;
        }
        if (e.pg_revive_share_num) {
            if (-1 == e.pg_revive_share_num &amp;&amp; i.isShareEnable()) return 2;
            if (t &lt; e.pg_revive_share_num &amp;&amp; i.isShareEnable()) return 2;
        }
        return 0;
    }
    function accRelivedTimeToday() {
        var e = s.getLocalStorage("fc_reliveInfo");
        if (e) {
            var t = e.split(","), i = Number(t[0]);
            i++, s.setLocalStorage("fc_reliveInfo", `${i},${Date.now()}`);
        } else s.setLocalStorage("fc_reliveInfo", `1,${Date.now()}`);
    }
    function video2Strength() {
        return s.pluginCfg &amp;&amp; s.pluginCfg.pg_video_2_sp ? s.pluginCfg.pg_video_2_sp : 10;
    }
    function getMaxStrength() {
        var e = s.pluginCfg;
        return 5;
    }
    function isMistakenActive() {
        var e;
        return "zs" == fc.platform.PlatformConfig.platformTag ? (e = s.adZsCfg) &amp;&amp; e.zs_switch &amp;&amp; s.appInfo.version != e.zs_version : (e = s.pluginCfg) &amp;&amp; e.pg_switch &amp;&amp; s.appInfo.version != e.pg_version &amp;&amp; s.playerInfo.levelId &gt;= e.pg_ad_lv;
    }
    function isVideoMistakenActive() {
        return "zs" == fc.platform.PlatformConfig.platformTag ? isMistakenActive() : isMistakenActive() &amp;&amp; s.pluginCfg.pg_ad_switch;
    }
    function getBtnDelayTime() {
        return s.pluginCfg ? s.pluginCfg.pg_button_delay_time : 0;
    }
    function isEnableCancelVideoModal() {
        return false;
    }
    function showModal(e) {
        i.showModal(s.langCfg.videocanceltitle, s.langCfg.videocanceldesc, s.langCfg.ok, s.langCfg.cancel, e);
    }
    function isVipValid() {
        var e = s.playerInfo;
        return null != e.vipTimestamp &amp;&amp; Date.now() - e.vipTimestamp &lt; 864e5;
    }
    t.ClassUtils.regClass("fc.view.IntroducePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.introduce = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["introduce"]), s.pluginCfg.introduceCfg &amp;&amp; (this.introduce.skin = s.pluginCfg.introduceCfg),
                this.introduce.on(t.Event.CLICK, this, this.closeIntroduce);
        }
        onDestroy() {
            super.onDestroy(), this.introduce.off(t.Event.CLICK, this, this.closeIntroduce);
        }
        closeIntroduce() {
            s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.LoadingPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.loadingLab = null, this.loadingImg = null, this.loadingProgress = null,
                this.mDstVal = 0, this.mCurVal = 0, this.mTotalWidth = 1, this.autoClose = !1;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["loadingLab", "loadingImg", "loadingProgress"]),
                this.loadingImg &amp;&amp; (this.mTotalWidth = this.loadingImg.displayWidth), t.stage.on(a.LOADING_PROGRESS, this, this.onLoadInfoUpdate),
                t.stage.on(a.UI_LOADING_COMPLETED, this, this.onLoadingCompleted);
        }
        onDestroy() {
            super.onDestroy(), t.stage.off(a.LOADING_PROGRESS, this, this.onLoadInfoUpdate),
                t.stage.off(a.UI_LOADING_COMPLETED, this, this.onLoadingCompleted);
        }
        onLoadInfoUpdate(e) {
            this.mDstVal = e;
        }
        onLoadingCompleted() {
            this.mCurVal &gt;= 1 ? s.closeAllViews() : this.autoClose = !0;
        }
        onUpdate() {
            if (this.mCurVal &lt; this.mDstVal) {
                this.mCurVal += .04, this.mCurVal &gt; this.mDstVal &amp;&amp; (this.mCurVal = this.mDstVal);
                const e = this.mCurVal;
                this.loadingProgress.width = this.mTotalWidth * e, this.loadingLab.text = `${Math.floor(100 * e)}%`;
            }
            this.autoClose &amp;&amp; this.mCurVal &gt;= 1 &amp;&amp; (this.autoClose = !1, s.closeAllViews());
        }
    });
    t.ClassUtils.regClass("fc.view.HomePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.signBtn = null, this.storeBtn = null, this.shareBtn = null, this.startBtn = null,
                this.turntableBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["signBtn", "storeBtn", "shareBtn", "startBtn", "turntableBtn"]),
                this.signBtn.visible = w.isSignOpened(), this.shareBtn.visible = w.isShareOpened(),
                this.storeBtn.visible = w.isStoreOpened(), this.turntableBtn.visible = w.isTurntableOpened(),
                this.signBtn.on(t.Event.CLICK, this, this.openSign), this.storeBtn.on(t.Event.CLICK, this, this.openStore),
                this.shareBtn.on(t.Event.CLICK, this, this.openShare), this.startBtn.on(t.Event.CLICK, this, this.startGame),
                this.turntableBtn.on(t.Event.CLICK, this, this.openTurntable), t.stage.on(a.UI_VIEW_OPENED, this, this.onViewOpened),
                t.stage.on(a.UI_VIEW_CLOSED, this, this.onViewClosed);
        }
        onDestroy() {
            super.onDestroy(), this.signBtn.off(t.Event.CLICK, this, this.openSign),
                this.storeBtn.off(t.Event.CLICK, this, this.openStore),
                this.shareBtn.off(t.Event.CLICK, this, this.openShare),
                this.startBtn.off(t.Event.CLICK, this, this.startGame),
                this.turntableBtn.off(t.Event.CLICK, this, this.openTurntable),
                t.stage.off(a.UI_VIEW_OPENED, this, this.onViewOpened),
                t.stage.off(a.UI_VIEW_CLOSED, this, this.onViewClosed);
        }
        openSign() {
            s.playClickSound(), s.openView(m.Sign, null, null);
        }
        openStore() {
            s.playClickSound(),
                YYGGames.showInterstitial(() =&gt; {
                    s.openView(m.Store, null, null);
                })
        }
        openTurntable() {
            s.playClickSound(), s.openView(m.Turntable, null, null);
        }
        openShare() {
            s.playClickSound(), i.shareAppMessage({
                title: w.getShareTitle(),
                imageUrl: w.getShareImage(),
                desc: w.getShareDesc()
            });
        }
        startGame() {
            s.playClickSound(),
                //  w.isEnableStartVideo() ? (this.startBtn.mouseEnabled = !1,
                //     ii0.playVideo(t.Handler.create(this, function () {
                //         this.playGame(), this.startBtn.mouseEnabled = !0;
                //     }), t.Handler.create(this, function () {
                //         this.playGame(), this.startBtn.mouseEnabled = !0;
                //     }), t.Handler.create(this, function () {
                //         this.playGame(), this.startBtn.mouseEnabled = !0;
                //     }))) : 

                this.playGame();
        }
        playGame() {
            var e = s.playerInfo;
            // w.isStrengthOpened() ? 

            e.strength &gt;= w.getGameCostStrength() ? (YYGGames.showInterstitial(() =&gt; {
                e.strength -= w.getGameCostStrength(),
                    s.savePlayerInfo({
                        strength: e.strength
                    }), s.go2Game(), s.closeView(this.owner), t.stage.event(a.STRENGTH_UPDATE)
            })) : s.openView(m.Strength, null, null)
            //:  (s.go2Game(),s.closeView(this.owner));
        }
        onViewOpened(e, t) {
            "Store" == t &amp;&amp; (this.owner.visible = !1);
        }
        onViewClosed(e, t) {
            "Store" == t &amp;&amp; (this.owner.visible = !0);
        }
    });
    t.ClassUtils.regClass("fc.view.GamePage", class extends fc.plugin.BaseView {
        constructor() {
            super();
        }
        onAwake() {
            super.onAwake();
        }
        onDestroy() {
            super.onDestroy();
        }
    });
    t.ClassUtils.regClass("fc.view.FailedPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.awardLab = null, this.awardBox = null, this.awardVal = null, this.reliveBtn = null,
                this.continueBtn = 0, this.reliveType = 0;
        }
        initView(e) {
            this.awardVal = e &amp;&amp; e.award ? e.award : 0;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["reliveBtn", "continueBtn", "awardLab", "awardBox"]),
                this.reliveBtn &amp;&amp; this.reliveBtn.on(t.Event.CLICK, this, this.on2Relive),
                this.continueBtn &amp;&amp; this.continueBtn.on(t.Event.CLICK, this, this.on2Continue),
                this.freshReliveBtn(), this.continueBtn.addComponent(c), this.reliveBtn.visible = !1,
                this.awardBox.visible = !1, this.awardLab.visible = !1;
        }
        onStart() {
            super.onStart(), this.awardVal &gt; 0 &amp;&amp; (this.awardLab.value = `${this.awardVal}`,
                this.awardBox.visible = !0, this.awardLab.visible = !0), this.freshReliveBtn();
        }
        onDestroy() {
            super.onDestroy(), this.reliveBtn &amp;&amp; this.reliveBtn.off(t.Event.CLICK, this, this.on2Relive),
                this.continueBtn &amp;&amp; this.continueBtn.off(t.Event.CLICK, this, this.on2Continue);
        }
        on2Relive() {
            s.playClickSound(), 1 == this.reliveType ? (this.reliveBtn.mouseEnabled = !1, this.continueBtn.mouseEnabled = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    s.go2Relive(), s.closeView(this.owner), accRelivedTimeToday();
                }), t.Handler.create(this, function () {
                    this.reliveBtn.mouseEnabled = !0, this.continueBtn.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.reliveBtn.mouseEnabled = !0, this.continueBtn.mouseEnabled = !0, this.freshReliveBtn();
                }))) : 2 == this.reliveType &amp;&amp; (this.reliveBtn.mouseEnabled = !1, this.continueBtn.mouseEnabled = !1,
                    t.stage.timerOnce(1e3, this, () =&gt; {
                        this.reliveBtn.mouseEnabled = !0, this.continueBtn.mouseEnabled = !0;
                    }), t.stage.once(a.DEVICE_HIDE, this, this.onShareOpen), i.shareAppMessage({
                        title: w.getShareTitle(),
                        imageUrl: w.getShareImage(),
                        desc: w.getShareDesc()
                    }, t.Handler.create(this, function () {
                        s.go2Relive(), s.closeView(this.owner), accRelivedTimeToday();
                    }), t.Handler.create(this, function () {
                        this.reliveBtn.mouseEnabled = !0, this.continueBtn.mouseEnabled = !0;
                    })));
        }
        on2Continue() {
            s.playClickSound(),
                YYGGames.showInterstitial(() =&gt; {
                    this.awardVal &gt; 0 ? (s.overGame({
                        gold: s.playerInfo.gold + this.awardVal
                    }), window.prompt0("Coin +" + this.awardVal)) : s.overGame(), s.closeView(this.owner);
                })
        }
        freshReliveBtn() {
            var e;
            !(e = s.pluginCfg) || !e.pg_revive_share_num &amp;&amp; !e.pg_revive_video_num || !e.pg_revive_per_game ||
                s.relivedTime &gt;= e.pg_revive_per_game &amp;&amp; e.pg_revive_per_game &gt; 0 || !getReliveType() ? (this.reliveBtn.visible = !1,
                    this.reliveBtn.alpha = 0) : (this.reliveType = getReliveType(), 0 == this.reliveType ? this.reliveBtn.visible = !1 :
                        (this.reliveBtn.visible = !0,
                            this.reliveBtn.skin = 1 == this.reliveType ? "fc-res/main/img_btn_video_relive.png" :
                                "fc-res/main/img_btn_share_relive.png"));
        }
    });
    t.ClassUtils.regClass("fc.view.SuccessPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.homeBtn = null, this.playVideoBtn = null, this.awardLab = null, this.awardBox = null,
                this.awardVal = 0;
        }
        initView(e) {
            this.awardVal = e &amp;&amp; e.award ? e.award : 0;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["homeBtn", "playVideoBtn", "awardLab", "awardBox"]),
                this.homeBtn.on(t.Event.CLICK, this, this.on2Home), this.playVideoBtn.on(t.Event.CLICK, this, this.onPlayVideo),
                this.playVideoBtn.visible = !1, this.awardBox.visible = !1, this.awardLab.visible = !1,
                this.homeBtn.addComponent(c);
        }
        onStart() {
            super.onStart(), this.awardVal &gt; 0 &amp;&amp; (this.awardLab.value = `${this.awardVal}`,
                this.playVideoBtn.visible = true, this.awardBox.visible = !0, this.awardLab.visible = !0);
        }
        onDestroy() {
            super.onDestroy(), this.homeBtn.off(t.Event.CLICK, this, this.on2Home), this.playVideoBtn.off(t.Event.CLICK, this, this.onPlayVideo);
        }
        on2Home() {
            this.homeBtn.mouseEnabled = !1, this.playVideoBtn.mouseEnabled = !1, s.playClickSound(),
                YYGGames.showInterstitial(() =&gt; {
                    s.overGame({
                        levelId: s.playerInfo.levelId + 1,
                        gold: s.playerInfo.gold + this.awardVal
                    }), s.closeView(this.owner);
                    window.prompt0("Coin +" + this.awardVal)
                })
        }
        onPlayVideo() {
            s.playClickSound(),

                this.homeBtn.mouseEnabled = !1, this.playVideoBtn.mouseEnabled = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    s.overGame({
                        levelId: s.playerInfo.levelId + 1,
                        gold: s.playerInfo.gold + 2 * this.awardVal
                    }), s.closeView(this.owner);
                    window.prompt0("Coin +" + 2 * this.awardVal)
                }), t.Handler.create(this, function () {
                    this.homeBtn.mouseEnabled = !0, this.playVideoBtn.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.homeBtn.mouseEnabled = !0, this.playVideoBtn.mouseEnabled = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.AwardPage", class extends fc.plugin.BaseView {//èŽ·å–é”¤å­
        constructor() {
            super(), this.awardDesc = null, this.confirmBtn = null, this.awardObj = null, this.mTexture = null,
                this.awardData = null;
        }
        initView(e) {
            this.awardData = e, this.awardDesc &amp;&amp; (this.awardDesc.text = this.awardData.desc,
                t.stage.event(a.TEXTURE_CAMERA_INIT, [this.awardData.subPkg, this.awardData.prefab, this.awardData.showAnim]));
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["awardObj", "awardDesc", "confirmBtn"]),
                this.mTexture = new t.Texture(fc.plugin.TextureCamera.RenderTexture, t.Texture.DEF_UV),
                this.awardObj.graphics.drawTexture(this.mTexture), null != this.awardData &amp;&amp; t.stage.event(a.TEXTURE_CAMERA_INIT, [this.awardData.subPkg, this.awardData.prefab, this.awardData.showAnim]),
                this.confirmBtn.on(t.Event.CLICK, this, this.closeView);
        }
        onDestroy() {
            super.onDestroy(), this.awardObj.graphics.clear(), this.mTexture.bitmap = null,
                this.mTexture.destroy(), this.mTexture = null, t.stage.event(a.TEXTURE_CAMERA_CLEAR),
                this.confirmBtn.off(t.Event.CLICK, this, this.closeView);
        }
        closeView() {
            var e = s.playerInfo;
            e.goodsInUse[this.awardData.type] = this.awardData.id, e.goodsInBag[this.awardData.type].push(this.awardData.id),
                s.savePlayerInfo(e), s.showToastMsg(`${s.langCfg.gettxt} ${this.awardData.name}`),
                s.playClickSound(), s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.UnlockPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.playBtn = null, this.s_switchPos = null, this.s_allAd = null, this.s_miniCancel = null,
                this.s_cancelDelay_0 = null, this.s_cancelDelay_1 = null, this.s_checkMove = null,
                this.trialObj = null, this.curBtnGroup = null, this.mTexture = null, this.mCurTrialGoods = null;
        }
        initView(e) {
            this.mNextStepCb = e &amp;&amp; e.nextCb ? e.nextCb : null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["playBtn", "trialObj", "s_switchPos", "s_allAd", "s_miniCancel", "s_cancelDelay_0", "s_cancelDelay_1", "s_checkMove"]),
                this.s_switchPos.visible = !1, this.s_allAd.visible = !1, this.s_miniCancel.visible = !1,
                this.s_cancelDelay_0.visible = !1, this.s_cancelDelay_1.visible = !1, this.s_checkMove.visible = !1;
            let e = s.pluginCfg.pg_video_style;
            switch (isMistakenActive() ? e[Math.floor(Math.random() * e.length)] : 0) {
                case 0:
                    this.s_switchPos.visible = !0, this.s_switchPos.addComponent(g), this.curBtnGroup = this.s_switchPos;
                    break;

                case 1:
                    this.s_allAd.visible = !0, this.s_allAd.addComponent(p), this.curBtnGroup = this.s_allAd;
                    break;

                case 2:
                    this.s_miniCancel.visible = !0, this.s_miniCancel.addComponent(v), this.curBtnGroup = this.s_miniCancel;
                    break;

                case 3:
                    this.s_cancelDelay_0.visible = !0, this.s_cancelDelay_0.addComponent(u), this.curBtnGroup = this.s_cancelDelay_0;
                    break;

                case 4:
                    this.s_cancelDelay_1.visible = !0, this.s_cancelDelay_1.addComponent(u), this.curBtnGroup = this.s_cancelDelay_1;
                    break;

                case 5:
                    this.s_checkMove.visible = !0, this.s_checkMove.addComponent(f), this.curBtnGroup = this.s_checkMove,
                        s.closeView(m.NativeAdb), o.hideBanner(m.Trial);
            }
            var i = s.goodsCfg, n = s.playerInfo;
            this.mTexture = new t.Texture(fc.plugin.TextureCamera.RenderTexture, t.Texture.DEF_UV),
                this.trialObj.graphics.drawTexture(this.mTexture);
            for (var l = [], h = 0; h &lt; i.length; h++) {
                var r = i[h];
                for (let e = 0; e &lt; r.length; e++) {
                    const t = r[e];
                    0 != t.recommend &amp;&amp; -1 == n.goodsInBag[h].indexOf(e) &amp;&amp; l.push(t);
                }
            }
            this.mCurTrialGoods = l[Math.floor(Math.random() * l.length)], t.stage.event(a.TEXTURE_CAMERA_INIT, [this.mCurTrialGoods.subPkg, this.mCurTrialGoods.prefab, this.mCurTrialGoods.showAnim]),
                t.stage.on(d.PLAY_VIDEO, this, this.openVideo), t.stage.on(d.JUMP_AWARD, this, this.closeView),
                isVideoMistakenActive() &amp;&amp; this.playBtn.on(t.Event.CLICK, this, this.openVideo);
        }
        onDestroy() {
            super.onDestroy(), this.trialObj.graphics.clear(), this.mTexture.bitmap = null,
                this.mTexture.destroy(), this.mTexture = null, t.stage.event(a.TEXTURE_CAMERA_CLEAR),
                t.stage.off(d.PLAY_VIDEO, this, this.openVideo), t.stage.off(d.JUMP_AWARD, this, this.closeView),
                isVideoMistakenActive() &amp;&amp; this.playBtn.off(t.Event.CLICK, this, this.openVideo);
        }
        closeView() {
            s.closeView(this.owner);
        }
        unlockGoods() {
            var e = s.playerInfo;
            e.goodsInUse[this.mCurTrialGoods.type] = this.mCurTrialGoods.id, e.goodsInBag[this.mCurTrialGoods.type].push(this.mCurTrialGoods.id),
                s.savePlayerInfo(e), s.showToastMsg(`${s.langCfg.gettxt} ${this.mCurTrialGoods.name}`),
                t.stage.event(a.CHANGE_CUR_MODEL, [this.mCurTrialGoods.prefab, this.mCurTrialGoods.showAnim, this.mCurTrialGoods]),
                this.owner.timerOnce(1e3, this, function () {
                    s.closeView(this.owner);
                });
        }
        openVideo() {
            s.playClickSound(),

                this.curBtnGroup.mouseEnabled = !1, this.playBtn.visible = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    this.unlockGoods();
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0;
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.AdHomePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.continueBtn = null, this.clickNum = 1, this.bannerVisible = !1, this.frameNum = 0,
                this.enalbeBanner = !0;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["continueBtn"]), this.continueBtn &amp;&amp; this.continueBtn.on(t.Event.CLICK, this, this.onContinue),
                this.continueBtn.addComponent(c), t.stage.on(a.DEVICE_HIDE, this, this.onAppHide),
                t.stage.on(a.DEVICE_SHOW, this, this.onAppShow);
        }
        onDestroy() {
            super.onDestroy(), this.continueBtn &amp;&amp; this.continueBtn.off(t.Event.CLICK, this, this.onContinue),
                t.stage.off(a.DEVICE_HIDE, this, this.onAppHide), t.stage.off(a.DEVICE_SHOW, this, this.onAppShow);
        }
        onEnable() {
            super.onEnable();
        }
        onStart() {
            super.onStart();
        }
        onContinue() {
            s.playClickSound(), i.hideBannerAd(), s.closeView(this.owner);
        }
        onAppHide() {
            i.hideBannerAd();
        }
        onAppShow() {
            i.hideBannerAd(), s.playClickSound(), s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.MoreInfoPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.closeBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["closeBtn"]), this.closeBtn &amp;&amp; this.closeBtn.on(t.Event.CLICK, this, this.closeView),
                this.closeBtn.addComponent(c);
        }
        onDestroy() {
            super.onDestroy(), this.closeBtn &amp;&amp; this.closeBtn.off(t.Event.CLICK, this, this.closeView);
        }
        closeView() {
            s.playClickSound(), s.closeView(this.owner), w.isEnableInsertAd() &amp;&amp; fc.framework.GameFrame.openView("InsertAd", {}, null);
        }
    });
    t.ClassUtils.regClass("fc.view.KnockPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.openBtn = null, this.closeBtn = null, this.progressBar = null, this.progressBg = null,
                this.mHammerAni = null, this.mIsAdOpened = !1, this.progressWidth = 1, this.progressHeight = 1,
                this.mOpenProgress = 0, this.mNextStepCb = null;
        }
        initView(e) {
            this.mNextStepCb = e;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["openBtn", "closeBtn", "progressBar", "progressBg"]),
                this.mOpenProgress = 0, this.mIsAdOpened = !1, this.progressWidth = this.progressBg.displayWidth,
                this.progressHeight = this.progressBg.displayHeight, this.mHammerAni = this.owner.knockAni,
                this.openBtn.on(t.Event.MOUSE_UP, this, this.onFingerUp), this.closeBtn.on(t.Event.MOUSE_UP, this, this.onCloseView),
                "zs" == fc.platform.PlatformConfig.platformTag ? this.closeBtn.visible = !1 : this.closeBtn.visible = !isMistakenActive();
        }
        onDestroy() {
            super.onDestroy(), this.openBtn.off(t.Event.MOUSE_UP, this, this.onFingerUp), this.closeBtn.off(t.Event.MOUSE_UP, this, this.onCloseView),
                t.stage.off(a.DEVICE_SHOW, this, this.onTreasureOpen), this.mIsAdOpened &amp;&amp; fc.framework.Channel.hideBannerAd();
        }
        onUpdate() {
            this.mOpenProgress &gt;= 1 || (this.mOpenProgress -= s.pluginCfg.pg_fastclick_progress_back,
                this.mOpenProgress = Math.max(0, this.mOpenProgress), this.updateOpenPorgress(this.mOpenProgress));
        }
        onFingerUp() {
            var e;
            s.playClickSound(), this.mOpenProgress &gt;= 1 || (this.mOpenProgress += s.pluginCfg.pg_fastclick_progress_add,
                !this.mIsAdOpened &amp;&amp; (e = this.mOpenProgress) &gt; s.pluginCfg.pg_fastclick_ad_percent[0] &amp;&amp; e &lt; s.pluginCfg.pg_fastclick_ad_percent[1] &amp;&amp; (this.mIsAdOpened = !0,
                    i.showBannerAd(), t.stage.on(a.DEVICE_SHOW, this, this.onTreasureOpen), this.owner.timerOnce(2e3, this, function () {
                        i.hideBannerAd();
                    })), this.mOpenProgress &gt;= 1 &amp;&amp; this.onTreasureOpen(), this.updateOpenPorgress(this.mOpenProgress),
                this.mHammerAni &amp;&amp; this.mHammerAni.play(0, !1));
        }
        onTreasureOpen() {
            i.hideBannerAd(), t.stage.event(a.KNOCK_COMPLETED), t.timer.once(1e3, this, this.onCloseView);
        }
        onCloseView() {
            s.playClickSound(), s.closeView(this.owner);
        }
        updateOpenPorgress(e) {
            var t = Math.min(1, Math.max(0, e));
            this.progressWidth &lt; this.progressHeight ? this.progressBar &amp;&amp; (this.progressBar.height = Math.max(1, this.progressHeight * t)) : this.progressBar &amp;&amp; (this.progressBar.width = Math.max(1, this.progressWidth * t));
        }
    });
    t.ClassUtils.regClass("fc.view.NativeAdPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.nativeAd = null, this.adImage = null, this.adTitle = null, this.adDesc = null,
                this.adBtn = null, this.closeBtn = null, this.nativeAdId = null, this.adBg = null,
                this.passedTime = 0, this.isAdReady = !1, this.initialized = !1;
        }
        onAwake() {
            if (super.onAwake(), linkView2Script(this, this.owner, ["nativeAd"]), this.adBg = this.nativeAd.getChildByName("adBg"),
                this.adImage = this.nativeAd.getChildByName("adImage"), this.adTitle = this.nativeAd.getChildByName("adTitle"),
                this.adDesc = this.nativeAd.getChildByName("adDesc"), this.adBtn = this.nativeAd.getChildByName("adBtn"),
                this.closeBtn = this.nativeAd.getChildByName("closeBtn"), this.closeBtn2 = this.nativeAd.getChildByName("closeBtn2"),
                this.closeBtn2 &amp;&amp; (this.closeBtn2.visible = isMistakenActive(), isMistakenActive() &amp;&amp; Math.random() &gt; .5)) {
                var e = this.closeBtn2.x, s = this.closeBtn2.y, i = this.closeBtn.x, n = this.closeBtn.y;
                this.closeBtn.x = e, this.closeBtn.y = s, this.closeBtn2.x = i, this.closeBtn2.y = n;
            }
            this.adBtn2 = this.nativeAd.getChildByName("adBtn2"), this.adBtn2 &amp;&amp; (this.adBtn2.visible = isMistakenActive()),
                this.nativeAd.alpha = 0, this.isAdReady = !1, this.passedTime = 0, this.initialized = !0,
                t.stage.on(a.UI_VIEW_CLOSED, this, this.onViewClosed);
        }
        onStart() {
            this.isAdReady = !1, this.passedTime = 0, i.createNativeAd(t.Handler.create(this, this.onAdError)),
                i.loadNativeAd(t.Handler.create(this, this.onAdLoaded), t.Handler.create(this, this.onAdError));
        }
        onUpdate() {
            this.isAdReady || (this.passedTime += 16, this.passedTime &gt;= 5e3 &amp;&amp; (this.isAdReady = !0,
                this.closeAd()));
        }
        onDestroy() {
            super.onDestroy(), this.adBg.off(t.Event.CLICK, this, this.openAd), this.adBtn.off(t.Event.CLICK, this, this.openAd),
                this.closeBtn.off(t.Event.CLICK, this, this.closeAd), t.stage.off(a.UI_VIEW_CLOSED, this, this.onViewClosed);
        }
        onViewClosed(e, t) {
            t != m.NativeAdb &amp;&amp; t != m.NativeAdm &amp;&amp; (this.isAdReady = !0, this.owner.frameOnce(1, this, this.closeAd));
        }
        onAdError(e) {
            this.isAdReady = !0, console.log("onNativeAdError", e), console.log(e), this.owner.frameOnce(1, this, this.closeAd);
        }
        onAdLoaded(e) {
            if (console.log("onNativeAdLoaded", e), this.isAdReady = !0, e &amp;&amp; e.adList &amp;&amp; 0 != e.adList.length) {
                this.adBg.on(t.Event.CLICK, this, this.openAd);
                var s, n = e.adList[Math.floor(Math.random() * e.adList.length)];
                s = n.imgUrlList &amp;&amp; n.imgUrlList.length &gt; 0 ? n.imgUrlList[Math.floor(Math.random() * n.imgUrlList.length)] : n.iconUrlList &amp;&amp; n.iconUrlList.length &gt; 0 ? n.iconUrlList[Math.floor(Math.random() * n.iconUrlList.length)] : n.icon ? n.iconUrl : n.logoUrl ? n.logoUrl : null,
                    this.nativeAdId = n.adId, console.log("onAdLoaded:" + n.title), null != s &amp;&amp; this.adImage.loadImage(s, null),
                    this.adDesc.text = n.desc, this.adTitle.text = n.title, this.adBtn.label = n.clickBtnTxt &amp;&amp; n.clickBtnTxt.length &gt; 0 ? n.clickBtnTxt : "ç‚¹å‡»æŸ¥çœ‹",
                    this.adBtn.on(t.Event.CLICK, this, this.openAd), this.closeBtn.on(t.Event.CLICK, this, this.closeAd),
                    this.nativeAd.alpha = 1, this.closeBtn.addComponent(r), i.reportNativeAdShow(this.nativeAdId),
                    console.log("reportNativeAdShow:", this.nativeAdId);
            } else this.owner.frameOnce(1, this, this.closeAd);
        }
        closeAd() {
            s.playClickSound(), s.closeView(this.owner);
        }
        openAd() {
            s.playClickSound(), i.reportNativeAdClick(this.nativeAdId), console.log("reportNativeAdClick:", this.nativeAdId);
        }
    });
    t.ClassUtils.regClass("fc.view.SignPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.closeBtn = null, this.awardList = null, this.signBtn = null, this.signBtnLab = null,
                this.videoBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["closeBtn", "awardList", "signBtn", "videoBtn"]);
            var e = s.playerInfo;
            this.initAwardList();
            var i = e.signedDays;
            if (n.isToday(e.signTime)) this.freshAwardListState(i - 1, !0), this.videoBtn.visible = !1,
                this.signBtn.visible = !1; else {
                if (this.freshAwardListState(i, !1), this.videoBtn.visible = !0, this.signBtn.visible = !0,
                    isMistakenActive() &amp;&amp; Math.random() &gt; .5) {
                    var o = this.signBtn.y, a = this.videoBtn.y;
                    this.signBtn.y = a, this.videoBtn.y = o;
                }
                this.signBtn.addComponent(c), this.closeBtn.addComponent(r);
            }
            this.signBtn.on(t.Event.CLICK, this, this.onSign), this.closeBtn.on(t.Event.CLICK, this, this.onClose),
                this.videoBtn.on(t.Event.CLICK, this, this.onVideoAward);
        }
        onDestroy() {
            super.onDestroy(), this.signBtn.off(t.Event.CLICK, this, this.onSign), this.closeBtn.off(t.Event.CLICK, this, this.onClose),
                this.videoBtn.off(t.Event.CLICK, this, this.onVideoAward);
        }
        onSign() {
            s.playClickSound();
            var e = s.playerInfo;
            if (!n.isToday(e.signTime)) {
                var i = e.signedDays, o = s.pluginCfg.signAward[i].count;
                s.savePlayerInfo({
                    signTime: Date.now(),
                    signedDays: e.signedDays + 1,
                    gold: e.gold + o
                }), t.stage.event(a.GOLD_UPDATE), s.closeView(this.owner), s.showToastMsg(`${s.langCfg.getcointxt} ${o}`);
            }
        }
        onClose() {
            s.playClickSound(), s.closeView(this.owner);
        }
        onVideoAward() {
            s.playClickSound();
            var e = s.playerInfo;
            if (!n.isToday(e.signTime)) {

                this.signBtn.mouseEnabled = !1, this.videoBtn.mouseEnabled = !1, this.closeBtn.mouseEnabled = !1;
                var o = this.owner;
                ii0.playVideo(t.Handler.create(this, function () {
                    var i = e.signedDays, n = 2 * s.pluginCfg.signAward[i].count;
                    s.savePlayerInfo({
                        signTime: Date.now(),
                        signedDays: e.signedDays + 1,
                        gold: e.gold + n
                    }), t.stage.event(a.GOLD_UPDATE), s.showToastMsg(`${s.langCfg.getcointxt} ${n}`),
                        s.closeView(o);
                }), t.Handler.create(this, function () {
                    this.signBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.signBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0,
                        s.showToastMsg(s.langCfg.novideotxt);
                }));

            }
        }
        initAwardList() {
            var e = s.pluginCfg.signAward;
            for (let s = 0; s &lt; e.length; s++) {
                const n = this.awardList.getChildAt(s);
                if (null == n) return void console.warn("[SignPage]initAwardList:", "invalid sign idx");
                const o = e[s];
                if (o.icon) {
                    var t = n.getChildByName("icon");
                    t.skin &amp;&amp; (t.skin = o.icon);
                }
                if (o.count) {
                    var i = n.getChildByName("award");
                    i &amp;&amp; (i.text = `x${o.count}`);
                }
            }
        }
        freshAwardListState(e, t) {
            const s = "fc-res/sign/img_state_frame_signed.png";
            for (let i = 0; i &lt; this.awardList.numChildren - 1; i++) {
                const n = this.awardList.getChildAt(i), o = n.getChildByName("state"), a = n.getChildByName("icon"), l = n.getChildByName("day"), h = n.getChildByName("title"), r = n.getChildByName("award");
                e &gt; i ? (n.skin = "fc-res/sign/img_state_signed.png", o.visible = !0, o.skin = s,
                    a.gray = !0, l.gray = !0, l.color = "#4e7699", h.gray = !0, h.color = "#4e7699",
                    r.gray = !0, r.color = "#4e7699") : e == i ? (n.skin = "fc-res/sign/img_state_today.png",
                        o.visible = !0, o.skin = t ? s : "fc-res/sign/img_state_frame_today.png", a.gray = !1,
                        l.gray = !1, l.color = "#7b6637", h.gray = !1, h.color = "#7b6637", r.gray = !1,
                        r.color = "#7b6637") : (n.skin = "fc-res/sign/img_state_unsigned.png", o.visible = !1,
                            a.gray = !1, l.gray = !1, l.color = "#7b6637", h.gray = !1, h.color = "#7b6637",
                            r.gray = !1, r.color = "#7b6637");
            }
        }
    });
    t.ClassUtils.regClass("fc.view.StrengthPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.closeBtn = null, this.videoBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["closeBtn", "videoBtn"]),
                this.closeBtn.addComponent(r), this.closeBtn &amp;&amp; this.closeBtn.on(t.Event.CLICK, this, this.closeView),
                this.videoBtn &amp;&amp; this.videoBtn.on(t.Event.CLICK, this, this.openVideo);
        }
        onDestroy() {
            super.onDestroy(), this.closeBtn &amp;&amp; this.closeBtn.off(t.Event.CLICK, this, this.closeView),
                this.videoBtn &amp;&amp; this.videoBtn.off(t.Event.CLICK, this, this.openVideo);
        }
        closeView() {
            s.playClickSound(), s.closeView(this.owner);
        }
        openVideo() {
            s.playClickSound(),

                this.videoBtn.mouseEnabled = !1, this.closeBtn.mouseEnabled = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    var e = s.playerInfo;
                    e.strength += video2Strength(), s.savePlayerInfo({
                        strength: e.strength
                    }), t.stage.event(a.STRENGTH_UPDATE), this.closeView();
                }), t.Handler.create(this, function () {
                    this.videoBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.videoBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.StorePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.pageTag = null, this.goodsList = null, this.closeBtn = null, this.showObj = null,
                this.mTexture = null, this.goodsName = null, this.goodsNameBg = null, this.goldVal = null,
                this.goodsType = 0, this.goodsIdx = 0, this.doubleClickBuy = !1, this.curSelectIdx = -1;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["pageTag", "goodsList", "closeBtn", "showObj", "goodsName",
                "goodsNameBg", "goldVal", "strengthAddBtn"]),
                this.doubleClickBuy = !!s.pluginCfg &amp;&amp; 1 == s.pluginCfg.pg_store_double_click_buy;
            var e = s.pluginCfg ? s.pluginCfg.storeCfg : null;
            if (null != e) {
                var i = [];
                for (let t = 0; t &lt; e.length; t++) i.push({
                    skin: e[t]
                });
                this.pageTag.selectHandler = t.Handler.create(this, this.onSelectTab, null, !1),
                    this.pageTag.renderHandler = t.Handler.create(this, this.onRenderTab, null, !1),
                    this.pageTag.array = i, this.pageTag.selectedIndex = 0, this.pageTag.selectEnable = !0,
                    this.pageTag.hScrollBarSkin = "";
            } else this.pageTag.visible = !1, this.onSelectTab(0);
            this.goodsList.selectHandler = t.Handler.create(this, this.onSelectItem, null, !1),
                this.goodsList.renderHandler = t.Handler.create(this, this.onRenderItem, null, !1),
                this.goodsList.vScrollBarSkin = "", this.goodsName.visible = !1, this.goodsNameBg.visible = !1,
                this.goldVal.value = s.playerInfo.gold.toString(),
                this.mTexture = new t.Texture(fc.plugin.TextureCamera.RenderTexture, t.Texture.DEF_UV),
                this.showObj.graphics.drawTexture(this.mTexture),
                this.closeBtn &amp;&amp; this.closeBtn.on(t.Event.CLICK, this, this.closeView),
                t.stage.on(a.GOLD_UPDATE, this, this.updateGold), t.stage.on(a.STORE_UPDATE, this, this.updateStore);
            this.strengthAddBtn.on(Laya.Event.CLICK, this, this.addCoin);
        }

        addCoin() {
            var e = s.playerInfo;
            YYGGames.showReward(() =&gt; {
                e.gold += 500,
                    s.savePlayerInfo({
                        gold: e.gold
                    }), t.stage.event(a.GOLD_UPDATE);
                window.prompt0("Coin +500");
            })
        }

        onDestroy() {
            super.onDestroy(), this.showObj.graphics.clear(), this.mTexture.bitmap = null, this.mTexture.destroy(),
                this.strengthAddBtn.off(Laya.Event.CLICK, this, this.addCoin).
                    this.mTexture = null, t.stage.event(a.TEXTURE_CAMERA_CLEAR), t.stage.off(a.GOLD_UPDATE, this, this.updateGold);
        }

        updateGold() {
            this.goldVal.value = s.playerInfo.gold.toString();
        }

        updateStore() {
            this.onSelectTab(this.goodsType);
        }

        onSelectTab(e) {
            if (this.curSelectIdx = -1, null != this.pageTag.array &amp;&amp; 0 != this.pageTag.array.length) {
                var i = this.pageTag.getItem(this.goodsType), n = this.goodsType;
                if (this.goodsType = e, this.pageTag.setItem(n, i), -1 != e) {
                    this.goodsType = e;
                    var o = this.pageTag.getItem(this.goodsType);
                    this.pageTag.setItem(this.goodsType, o);
                    var l = s.goodsCfg[this.goodsType];
                    this.goodsList.array = l, this.goodsList.selectedIndex = -1, this.goodsIdx = s.playerInfo.goodsInUse[this.goodsType];
                    for (let e = 0; e &lt; l.length; e++) {
                        const s = l[e];
                        if (s.id == this.goodsIdx) {
                            this.goodsList.selectedIndex = e, t.stage.event(a.TEXTURE_CAMERA_INIT, [s.subPkg, s.prefab, s.showAnim]);
                            break;
                        }
                    }
                }
            }
        }

        onRenderTab(e, t) {
            e.index = t == this.pageTag.selectedIndex ? 1 : 0;
        }

        onSelectItem(e) {
            if (null != this.goodsList.array &amp;&amp; 0 != this.goodsList.array.length &amp;&amp; -1 != e) {
                (l = this.goodsList.getItem(this.goodsIdx)).update = !l.update, this.goodsList.setItem(this.goodsIdx, l),
                    s.playClickSound(), this.goodsIdx = e;
                var n = this.goodsList.array[this.goodsIdx];
                t.stage.event(a.TEXTURE_CAMERA_INIT, [n.subPkg, n.prefab, n.showAnim]), n.name &amp;&amp; n.name.length &gt; 0 ? (this.goodsName.text = n.name,
                    this.goodsName.visible = !0, this.goodsNameBg.visible = !0) : (this.goodsName.visible = !1,
                        this.goodsNameBg.visible = !1);
                var o = s.playerInfo;
                if (-1 != o.goodsInBag[this.goodsType].indexOf(n.id)) o.goodsInUse[this.goodsType] = this.goodsIdx,
                    s.savePlayerInfo(o), t.stage.event(a.STORE_USE_ITEM, [this.goodsType, n]); else if (!this.doubleClickBuy || this.curSelectIdx == e) if (0 == n.buy) o.gold &gt;= n.price ? (o.gold -= n.price,
                        o.goodsInUse[this.goodsType] = this.goodsIdx, o.goodsInBag[this.goodsType].push(this.goodsIdx),
                        s.savePlayerInfo(o), s.showToastMsg(`${s.langCfg.gettxt} ${n.name}`), t.stage.event(a.GOLD_UPDATE),
                        t.stage.event(a.STORE_UNLOCK_ITEM, [this.goodsType, n]), t.stage.event(a.STORE_USE_ITEM, [this.goodsType, n])) : s.showToastMsg(s.langCfg.nocointxt),
                        (l = this.goodsList.getItem(this.goodsIdx)).update = !l.update, this.goodsList.setItem(this.goodsIdx, l); else if (1 == n.buy) {
                            var l;

                            this.goodsList.mouseEnabled = !1, this.pageTag.mouseEnabled = !1,
                                ii0.playVideo(t.Handler.create(this, function () {
                                    this.goodsList.mouseEnabled = !0, this.pageTag.mouseEnabled = !0, o.goodsInUse[this.goodsType] = this.goodsIdx,
                                        o.goodsInBag[this.goodsType].push(this.goodsIdx), s.savePlayerInfo(o);
                                    var e = this.goodsList.getItem(this.goodsIdx);
                                    e.update = !e.update, this.goodsList.setItem(this.goodsIdx, e), t.stage.event(a.STORE_UNLOCK_ITEM, [this.goodsType, n]),
                                        t.stage.event(a.STORE_USE_ITEM, [this.goodsType, n]), s.showToastMsg(`${s.langCfg.gettxt} ${n.name}`);
                                }), t.Handler.create(this, function () {
                                    this.goodsList.mouseEnabled = !0, this.pageTag.mouseEnabled = !0;
                                }), t.Handler.create(this, function () {
                                    this.goodsList.mouseEnabled = !0, this.pageTag.mouseEnabled = !0, s.showToastMsg(s.langCfg.novideotxt);
                                }))

                        } else 2 == n.buy &amp;&amp; s.showToastMsg(n.unlockDesc ? n.unlockDesc : s.langCfg.unlock);
                this.curSelectIdx = e, this.goodsList._selectedIndex = -1;
            }
        }

        onRenderItem(e, t) {
            var i = this.goodsList.array[t];
            if (i) {
                var n = s.playerInfo.goodsInBag[this.goodsType], o = s.playerInfo.goodsInUse[this.goodsType], a = e.getChildByName("price"), l = e.getChildByName("bg");
                -1 != n.indexOf(i.id) ? (l.index = t == o ? 2 : 3, a.visible = !1) : 0 == i.buy ? (l.index = 0,
                    a.visible = !0, a.value = i.price.toString()) : 1 == i.buy ? (l.index = 1, a.visible = !1) : 2 == i.buy &amp;&amp; (l.index = 4,
                        a.visible = !1), e.getChildByName("icon").skin = i.iconUrl;
            } else console.warn("[StorePage]onRenderItem:", "invalid goodsData, ", t);
        }

        closeView() {
            s.playClickSound(),
                YYGGames.showInterstitial(() =&gt; {
                    s.closeView(this.owner);
                })
        }
    });
    t.ClassUtils.regClass("fc.view.VipPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.vipStateDesc = null, this.vipAwardDesc = null, this.vipBtn = null,
                this.vipBtnIcon = null, this.vipBtnDesc = null, this.closeBtn = null, this.vipExchangeType = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["vipStateDesc", "vipAwardDesc", "closeBtn", "vipBtn", "vipBtnIcon", "vipBtnDesc"]);
            var e = null == s.playerInfo.vipTimestamp ? 0 : s.playerInfo.vipTimestamp;
            e = Date.now() - e;
            var n = s.pluginCfg.pg_vip_config;
            e &gt; 864e5 ? (this.vipAwardDesc.text = n.awardDesc, this.vipExchangeType = n.exchangeType,
                1 == this.vipExchangeType &amp;&amp; 0 == i.isVideoEnable() &amp;&amp;
                    1 == i.isShareEnable() ? this.vipExchangeType = 0 : 0 == this.vipExchangeType &amp;&amp; 0 == i.isShareEnable() &amp;&amp; (this.vipExchangeType = 1),
                this.freshExchangeBtn(), this.vipBtn.on(t.Event.CLICK, this, this.exchangeVip),
                this.vipStateDesc.text = s.langCfg.becomeVip) : (this.closeBtn.y = this.vipBtn.y,
                    this.vipBtn.visible = !1, this.vipBtn.visible = !1, this.vipBtnIcon.visible = !1,
                    this.vipBtnDesc.visible = !1, e = (864e5 - e) / 6e4, this.vipStateDesc.text = s.langCfg.vipLeft + Math.floor(e) + s.langCfg.vipTimeUnit),
                this.closeBtn.on(t.Event.CLICK, this, this.closePage);
        }
        onDestroy() {
            this.vipBtn.off(t.Event.CLICK, this, this.exchangeVip), this.closeBtn.off(t.Event.CLICK, this, this.closePage);
        }
        exchangeVip() {
            s.playClickSound(), this.vipBtn.mouseEnabled = !1, this.closeBtn.mouseEnabled = !1,
                0 == this.vipExchangeType ? (this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0,
                    i.shareAppMessage(null, t.Handler.create(this, this.onExchengeSuccess), t.Handler.create(this, function () {
                        this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0;
                    }))) : (ii0.playVideo(t.Handler.create(this, this.onExchengeSuccess), t.Handler.create(this, function () {
                        this.onExchengeSuccess();
                    }), t.Handler.create(this, function () {
                        this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0;
                    })), ii0.playVideo(t.Handler.create(this, this.onExchengeSuccess), t.Handler.create(this, function () {
                        this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, w.isEnableCancelVideoModal() &amp;&amp; w.showVideoConfirmModal(t.Handler.create(this, function (e) {
                            e &amp;&amp; e.confirm &amp;&amp; this.exchangeVip();
                        }));
                    }), t.Handler.create(this, function () {
                        this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0;
                    })));
        }
        closePage() {
            s.closeView(this.owner);
        }
        freshExchangeBtn() {
            0 == this.vipExchangeType ? (this.vipBtnDesc.text = "åˆ†äº«é¢†å–", this.vipBtnIcon.skin = "fc-res/tip/btn_icon_share.png") : (this.vipBtnDesc.text = "è§†é¢‘é¢†å–",
                this.vipBtnIcon.skin = "fc-res/tip/btn_icon_video.png");
        }
        onExchengeSuccess() {
            if (!isVipValid()) {
                this.vipBtn.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, s.savePlayerInfo({
                    isVip: 1,
                    vipTimestamp: Date.now()
                }), t.stage.event(fc.define.Event.VIP_UPDATE);
                var e = Date.now() - s.playerInfo.vipTimestamp, n = s.pluginCfg.pg_vip_config;
                e &gt; 864e5 ? (this.vipAwardDesc.text = n.awardDesc, this.vipExchangeType = n.exchangeType,
                    1 == this.vipExchangeType &amp;&amp; 0 == i.isVideoEnable() &amp;&amp; 1 == i.isShareEnable() ? this.vipExchangeType = 0 :
                        0 == this.vipExchangeType &amp;&amp; 0 == i.isShareEnable() &amp;&amp; (this.vipExchangeType = 1),
                    this.freshExchangeBtn(), this.vipBtn.on(t.Event.CLICK, this, this.exchangeVip),
                    this.vipStateDesc.text = s.langCfg.becomeVip) : (this.closeBtn.y = this.vipBtn.y,
                        this.vipBtn.visible = !1, this.vipBtn.visible = !1, this.vipBtnIcon.visible = !1,
                        this.vipBtnDesc.visible = !1, e = (864e5 - e) / 6e4, this.vipStateDesc.text = s.langCfg.vipLeft + Math.floor(e) + s.langCfg.vipTimeUnit);
            }
        }
    });
    t.ClassUtils.regClass("fc.view.SecretBoxPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.awardList = null, this.closeBtn = null, this.videoBtn = null, this.videoDesc = null,
                this.keyIcon = null, this.keyNum = null, this.keyVal = 3;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["awardList", "closeBtn", "videoBtn", "videoDesc", "keyIcon", "keyNum"]),
                this.closeBtn &amp;&amp; this.closeBtn.on(t.Event.CLICK, this, this.closeView), this.videoBtn &amp;&amp; this.videoBtn.on(t.Event.CLICK, this, this.playVideoGetKey),
                this.closeBtn.addComponent(r), this.videoBtn.visible = !1, this.videoDesc.visible = !1,
                this.keyIcon.visible = !0, this.keyNum.visible = !0, this.keyNum.value = `*${this.keyVal}`,
                this.awardList.selectEnable = !0, this.awardList.selectHandler = t.Handler.create(this, this.openBox, null, !1),
                this.awardList.renderHandler = t.Handler.create(this, this.renderBox, null, !1);
            var e = [], i = s.pluginCfg.secretBox;
            for (let t = 0; t &lt; i.length; t++) e.push(t);
            for (var n = []; e.length &gt; 0;) {
                const t = Math.floor(Math.random() * e.length), s = e[t];
                e.splice(t, 1);
                var o = i[s];
                o.opened = 0, n.push(o);
            }
            this.awardList.array = n;
        }
        onDestroy() {
            super.onDestroy();
        }
        renderBox(e, t) {
            var i = this.awardList.array[t], n = e.getChildByName("box"), o = e.getChildByName("gold"), a = e.getChildByName("num"), l = e.getChildByName("icon");
            if (1 == i.opened) if (n.visible = !1, null == i.goodsType) o.visible = !0, a.visible = !0,
                a.value = i.count.toString(), l.visible = !1; else {
                o.visible = !1, a.visible = !1, l.visible = !0;
                var h = s.goodsData[i.goodsType];
                for (let e = 0; e &lt; h.length; e++) if (h[e].id == i.goodsId) {
                    l.skin = h[e].iconUrl;
                    break;
                }
            } else o.visible = !1, a.visible = !1, l.visible = !1, n.visible = !0, i.ad ? n.skin = "fc-res/secretBox/img_box_video.png" : n.skin = "fc-res/secretBox/img_box_normal.png";
        }
        openBox(e) {
            if (s.playClickSound(), -1 != e) {
                this.awardList._selectedIndex = -1;
                var t = this.awardList.getItem(e);
                t.opened || (t.ad ? this.playVideoOpenBox(e) : this.keyVal &gt; 0 ? this.saveAward(e) : isVideoMistakenActive() ? this.playVideoGetKey() : s.showToastMsg(s.langCfg.nokeytxt));
            }
        }
        closeView() {
            s.playClickSound(), s.closeView(this.owner);
        }
        playVideoOpenBox(e) {
            s.playClickSound(),

                this.awardList.mouseEnabled = !1, this.closeBtn.mouseEnabled = !1,
                this.videoBtn.mouseEnabled = !1, ii0.playVideo(t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0,
                        this.saveAward(e);
                }), t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0,
                        s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
        playVideoGetKey() {
            s.playClickSound(),

                this.awardList.mouseEnabled = !1, this.closeBtn.mouseEnabled = !1,
                this.videoBtn.mouseEnabled = !1, ii0.playVideo(t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0,
                        this.keyVal = 3, this.keyNum.visible = !0, this.keyNum.value = `*${this.keyVal}`,
                        this.keyIcon.visible = !0, this.videoBtn.visible = !1, this.videoDesc.visible = !1;
                }), t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0,
                        isEnableCancelVideoModal() &amp;&amp; showModal(t.Handler.create(this, function (e) {
                            e &amp;&amp; e.confirm &amp;&amp; this.playVideoGetKey();
                        }));
                }), t.Handler.create(this, function () {
                    this.awardList.mouseEnabled = !0, this.closeBtn.mouseEnabled = !0, this.videoBtn.mouseEnabled = !0,
                        s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
        saveAward(e) {
            s.playClickSound();
            var t = this.awardList.array[e];
            if (null == t.goodsType) s.savePlayerInfo({
                gold: s.playerInfo.gold + t.count
            }), s.showToastMsg(`${s.langCfg.getcointxt} ${t.count}`); else {
                var i = s.goodsData[t.goodsType];
                for (let e = 0; e &lt; i.length; e++) if (i[e].id == t.goodsId) {
                    s.playerInfo.goodsInBag[t.goodsType].push(t.goodsId), s.savePlayerInfo(s.playerInfo),
                        s.showToastMsg(`${s.langCfg.gettxt} ${i[e].name}`);
                    break;
                }
            }
            var n = this.awardList.getItem(e);
            n.opened = 1, n.update = !n.update, this.awardList.setItem(e, n), t.ad || (this.keyVal -= 1,
                this.keyNum.value = `*${this.keyVal}`), 0 == this.keyVal &amp;&amp; (this.keyNum.visible = !1,
                    this.keyIcon.visible = !1, this.videoBtn.visible = !0, this.videoDesc.visible = !0,
                    s.showToastMsg(s.langCfg.nokeytxt));
        }
    });
    t.ClassUtils.regClass("fc.view.SecretAwardPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.playBtn = null, this.s_switchPos = null, this.s_allAd = null, this.s_miniCancel = null,
                this.s_cancelDelay_0 = null, this.s_cancelDelay_1 = null, this.s_checkMove = null,
                this.curBtnGroup = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["playBtn", "s_switchPos", "s_allAd", "s_miniCancel", "s_cancelDelay_0", "s_cancelDelay_1", "s_checkMove"]),
                this.s_switchPos.visible = !1, this.s_allAd.visible = !1, this.s_miniCancel.visible = !1,
                this.s_cancelDelay_0.visible = !1, this.s_cancelDelay_1.visible = !1, this.s_checkMove.visible = !1;
            let e = s.pluginCfg.pg_video_style;
            switch (isMistakenActive() ? e[Math.floor(Math.random() * e.length)] : 0) {
                case 0:
                    this.s_switchPos.visible = !0, this.s_switchPos.addComponent(g), this.curBtnGroup = this.s_switchPos;
                    break;

                case 1:
                    this.s_allAd.visible = !0, this.s_allAd.addComponent(p), this.curBtnGroup = this.s_allAd;
                    break;

                case 2:
                    this.s_miniCancel.visible = !0, this.s_miniCancel.addComponent(v), this.curBtnGroup = this.s_miniCancel;
                    break;

                case 3:
                    this.s_cancelDelay_0.visible = !0, this.s_cancelDelay_0.addComponent(u), this.curBtnGroup = this.s_cancelDelay_0;
                    break;

                case 4:
                    this.s_cancelDelay_1.visible = !0, this.s_cancelDelay_1.addComponent(u), this.curBtnGroup = this.s_cancelDelay_1;
                    break;

                case 5:
                    this.s_checkMove.visible = !0, this.s_checkMove.addComponent(f), this.curBtnGroup = this.s_checkMove,
                        s.closeView(m.NativeAdb), o.hideBanner(m.SecretAward);
            }
            t.stage.on(d.PLAY_VIDEO, this, this.openVideo), t.stage.on(d.JUMP_AWARD, this, this.onJumpAward),
                isVideoMistakenActive() &amp;&amp; this.playBtn.on(t.Event.CLICK, this, this.openVideo);
        }
        onDestroy() {
            super.onDestroy(), t.stage.off(d.PLAY_VIDEO, this, this.openVideo), t.stage.off(d.JUMP_AWARD, this, this.onJumpAward),
                isVideoMistakenActive() &amp;&amp; this.playBtn.off(t.Event.CLICK, this, this.openVideo);
        }
        onGetAward() {
            var e = 0, i = s.pluginCfg.secretAward;
            for (let t = 0; t &lt; i.length; t++) {
                const s = i[t];
                e += s.rate ? s.rate : 1;
            }
            var n = Math.floor(Math.random() * e), o = i.length - 1;
            for (let e = 0; e &lt; i.length; e++) {
                const t = i[e];
                if ((n -= t.rate ? t.rate : 1) &lt;= 0) {
                    o = e;
                    break;
                }
            }
            var l = s.pluginCfg.secretAward[o];
            this.saveAward(l), t.stage.event(a.GOLD_UPDATE), s.closeView(this.owner);
        }
        onJumpAward() {
            s.playClickSound(), s.closeView(this.owner);
        }
        saveAward(e) {
            if (null == e.goodsType) s.savePlayerInfo({
                gold: s.playerInfo.gold + e.count
            }), s.showToastMsg(`${s.langCfg.getcointxt} ${e.count}`), t.stage.event(a.GOLD_UPDATE); else {
                var i = s.goodsData[e.goodsType];
                for (let t = 0; t &lt; i.length; t++) if (i[t].id == e.goodsId) {
                    s.playerInfo.goodsInBag[e.goodsType].push(e.goodsId), s.savePlayerInfo(s.playerInfo),
                        s.showToastMsg(`${s.langCfg.gettxt} ${i[t].name}`);
                    break;
                }
            }
        }
        openVideo() {
            s.playClickSound(),

                this.curBtnGroup.mouseEnabled = !1,
                this.playBtn.visible = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    this.onGetAward();
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0, isEnableCancelVideoModal() &amp;&amp; showModal(t.Handler.create(this, function (e) {
                        e &amp;&amp; e.confirm &amp;&amp; this.openVideo();
                    }));
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.TrialPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.playBtn = null, this.s_switchPos = null, this.s_allAd = null, this.s_miniCancel = null,
                this.s_cancelDelay_0 = null, this.s_cancelDelay_1 = null, this.s_checkMove = null,
                this.trialObj = null, this.curBtnGroup = null, this.mTexture = null, this.mCurTrialGoods = null;
        }
        initView(e) {
            this.mNextStepCb = e &amp;&amp; e.nextCb ? e.nextCb : null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["playBtn", "trialObj", "s_switchPos", "s_allAd", "s_miniCancel", "s_cancelDelay_0", "s_cancelDelay_1", "s_checkMove"]),
                this.s_switchPos.visible = !1, this.s_allAd.visible = !1, this.s_miniCancel.visible = !1,
                this.s_cancelDelay_0.visible = !1, this.s_cancelDelay_1.visible = !1, this.s_checkMove.visible = !1;
            let e = s.pluginCfg.pg_video_style;
            switch (isMistakenActive() ? e[Math.floor(Math.random() * e.length)] : 0) {
                case 0:
                    this.s_switchPos.visible = !0, this.s_switchPos.addComponent(g), this.curBtnGroup = this.s_switchPos;
                    break;

                case 1:
                    this.s_allAd.visible = !0, this.s_allAd.addComponent(p), this.curBtnGroup = this.s_allAd;
                    break;

                case 2:
                    this.s_miniCancel.visible = !0, this.s_miniCancel.addComponent(v), this.curBtnGroup = this.s_miniCancel;
                    break;

                case 3:
                    this.s_cancelDelay_0.visible = !0, this.s_cancelDelay_0.addComponent(u), this.curBtnGroup = this.s_cancelDelay_0;
                    break;

                case 4:
                    this.s_cancelDelay_1.visible = !0, this.s_cancelDelay_1.addComponent(u), this.curBtnGroup = this.s_cancelDelay_1;
                    break;

                case 5:
                    this.s_checkMove.visible = !0, this.s_checkMove.addComponent(f), this.curBtnGroup = this.s_checkMove,
                        s.closeView(m.NativeAdb), o.hideBanner(m.Trial);
            }
            var i = s.goodsCfg, n = s.playerInfo;
            this.mTexture = new t.Texture(fc.plugin.TextureCamera.RenderTexture, t.Texture.DEF_UV),
                this.trialObj.graphics.drawTexture(this.mTexture);
            for (var l = [], h = 0; h &lt; i.length; h++) {
                var r = i[h];
                for (let e = 0; e &lt; r.length; e++) {
                    const t = r[e];
                    0 != t.recommend &amp;&amp; -1 == n.goodsInBag[h].indexOf(e) &amp;&amp; l.push(t);
                }
            }
            this.mCurTrialGoods = l[Math.floor(Math.random() * l.length)], t.stage.event(a.TEXTURE_CAMERA_INIT, [this.mCurTrialGoods.subPkg, this.mCurTrialGoods.prefab, this.mCurTrialGoods.showAnim]),
                t.stage.on(d.PLAY_VIDEO, this, this.openVideo), t.stage.on(d.JUMP_AWARD, this, this.closeView),
                isVideoMistakenActive() &amp;&amp; this.playBtn.on(t.Event.CLICK, this, this.openVideo);
        }
        onDestroy() {
            super.onDestroy(), this.trialObj.graphics.clear(), this.mTexture.bitmap = null,
                this.mTexture.destroy(), this.mTexture = null, t.stage.event(a.TEXTURE_CAMERA_CLEAR),
                t.stage.off(d.PLAY_VIDEO, this, this.openVideo), t.stage.off(d.JUMP_AWARD, this, this.closeView),
                isVideoMistakenActive() &amp;&amp; this.playBtn.off(t.Event.CLICK, this, this.openVideo);
        }
        closeView() {
            s.closeView(this.owner);
        }
        changeMainRole() {
            t.stage.event(a.CHANGE_CUR_MODEL, [this.mCurTrialGoods.prefab, this.mCurTrialGoods.showAnim, this.mCurTrialGoods]),
                this.owner.timerOnce(1e3, this, function () {
                    s.closeView(this.owner);
                });
        }
        openVideo() {
            s.playClickSound(),

                this.curBtnGroup.mouseEnabled = !1, this.playBtn.visible = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    this.changeMainRole();
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0, isEnableCancelVideoModal() &amp;&amp; showModal(t.Handler.create(this, function (e) {
                        e &amp;&amp; e.confirm &amp;&amp; this.openVideo();
                    }));
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.mouseEnabled = !0, this.playBtn.visible = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.TurntablePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.playBtn = null, this.s_switchPos = null, this.s_allAd = null, this.s_miniCancel = null,
                this.s_cancelDelay_0 = null, this.s_cancelDelay_1 = null, this.s_checkMove = null,
                this.awardList = null, this.maxSpd = 360, this.minSpd = 30, this.spdAcc = 66, this.rotSpd = 0,
                this.running = !1, this.eugler = 0, this.step = 0, this.awardIdx = 0, this.awardRangeS = 0,
                this.awardRangeE = 0, this.curBtnGroup = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["playBtn", "awardList", "s_switchPos", "s_allAd", "s_miniCancel", "s_cancelDelay_0",
                "s_cancelDelay_1", "s_checkMove"]),
                this.s_switchPos.visible = !1, this.s_allAd.visible = !1, this.s_miniCancel.visible = !1,
                this.s_switchPos.idss = 1,
                this.s_cancelDelay_0.visible = !1, this.s_cancelDelay_1.visible = !1, this.s_checkMove.visible = !1;
            let e = s.pluginCfg.pg_video_style;
            switch (isMistakenActive() ? e[Math.floor(Math.random() * e.length)] : 0) {
                case 0:
                    this.s_switchPos.visible = !0, this.s_switchPos.addComponent(g), this.curBtnGroup = this.s_switchPos;
                    break;

                case 1:
                    this.s_allAd.visible = !0, this.s_allAd.addComponent(p), this.curBtnGroup = this.s_allAd;
                    break;

                case 2:
                    this.s_miniCancel.visible = !0, this.s_miniCancel.addComponent(v), this.curBtnGroup = this.s_miniCancel;
                    break;

                case 3:
                    this.s_cancelDelay_0.visible = !0, this.s_cancelDelay_0.addComponent(u), this.curBtnGroup = this.s_cancelDelay_0;
                    break;

                case 4:
                    this.s_cancelDelay_1.visible = !0, this.s_cancelDelay_1.addComponent(u), this.curBtnGroup = this.s_cancelDelay_1;
                    break;

                case 5:
                    this.s_checkMove.visible = !0, this.s_checkMove.addComponent(f), this.curBtnGroup = this.s_checkMove,
                        s.closeView(m.NativeAdb), o.hideBanner(m.Turntable);
            }
            t.stage.on(d.PLAY_VIDEO, this, this.openVideo), t.stage.on(d.JUMP_AWARD, this, this.closeView),
                isVideoMistakenActive() &amp;&amp; this.playBtn.on(t.Event.CLICK, this, this.openVideo),
                Laya.stage.on("rotateTurntableFirst", this, this.rotateTurntable),
                this.initAward();
        }
        onDestroy() {
            super.onDestroy(), t.stage.off(d.PLAY_VIDEO, this, this.openVideo), t.stage.off(d.JUMP_AWARD, this, this.closeView),
                Laya.stage.off("rotateTurntableFirst", this, this.rotateTurntable),
                isVideoMistakenActive() &amp;&amp; this.playBtn.off(t.Event.CLICK, this, this.openVideo);
        }
        onUpdate() {
            if (this.running) if (this.eugler += .01 * 16 * this.rotSpd, 0 == this.step) this.rotSpd += .01 * 16 * this.spdAcc,
                this.rotSpd &gt;= this.maxSpd &amp;&amp; (this.step = 1, this.rotSpd = this.maxSpd), this.awardList.rotation = this.eugler;
            else if (1 == this.step) this.rotSpd -= .01 * 16 * this.spdAcc,
                this.rotSpd &lt;= this.minSpd &amp;&amp; (this.step = 2, this.rotSpd = this.minSpd), this.awardList.rotation = this.eugler;
            else if (2 == this.step) {
                var e = this.eugler % 360;
                e &lt; 0 &amp;&amp; (e += 360), this.awardRangeS &lt; this.awardRangeE ? e &lt; this.awardRangeE &amp;&amp; e &gt; this.awardRangeS &amp;&amp; (this.step = 3) : e &lt; this.awardRangeE &amp;&amp; e &gt; 0 ? this.step = 3 : e &lt; 360 &amp;&amp; e &gt; this.awardRangeS &amp;&amp; (this.step = 3),
                    this.awardList.rotation = this.eugler;
            } else 3 == this.step &amp;&amp; (this.running = !1, this.saveAward(this.awardIdx));
        }
        initAward() {
            var e = s.pluginCfg.turntableAward;
            for (let o = 0; o &lt; this.awardList.numChildren; o++) {
                const a = this.awardList.getChildAt(o), l = e[o];
                var t = a.getChildByName("num"), i = a.getChildByName("icon");
                if (null == l.goodsType) t.visible = !0, t.value = l.count.toString(); else {
                    t.visible = !1;
                    var n = s.goodsData[l.goodsType];
                    for (let e = 0; e &lt; n.length; e++) if (n[e].id == l.goodsId) {
                        i.skin = n[e].iconUrl;
                        break;
                    }
                }
            }
        }
        closeView() {
            s.closeView(this.owner);
        }
        rotateTurntable() {
            this.step = 0, this.running = !0, this.rotSpd = this.minSpd;
            var e = 0, t = s.pluginCfg.turntableAward;
            for (let s = 0; s &lt; t.length; s++) {
                const i = t[s];
                e += i.rate ? i.rate : 1;
            }
            var i = Math.floor(Math.random() * e);
            this.awardIdx = t.length - 1;
            for (let e = 0; e &lt; t.length; e++) {
                const s = t[e];
                if ((i -= s.rate ? s.rate : 1) &lt;= 0) {
                    this.awardIdx = e;
                    break;
                }
            }
            this.awardRangeS = 45 * this.awardIdx - 15, this.awardRangeS &lt; 0 &amp;&amp; (this.awardRangeS += 360),
                this.awardRangeE = 45 * this.awardIdx + 15;
        }
        saveAward(e) {
            var i = s.pluginCfg.turntableAward[e];
            if (null == i.goodsType) s.savePlayerInfo({
                gold: s.playerInfo.gold + i.count
            }), s.showToastMsg(`${s.langCfg.getcointxt} ${i.count}`), t.stage.event(a.GOLD_UPDATE); else {
                var n = s.goodsData[i.goodsType];
                for (let e = 0; e &lt; n.length; e++) if (n[e].id == i.goodsId) {
                    s.playerInfo.goodsInBag[i.goodsType].push(i.goodsId), s.savePlayerInfo(s.playerInfo),
                        s.showToastMsg(`${s.langCfg.gettxt} ${n[e].name}`);
                    break;
                }
            }
            this.running = !1, this.curBtnGroup &amp;&amp; (this.curBtnGroup.visible = !0), this.playBtn.visible = !0;
        }
        openVideo() {
            s.playClickSound(),
                this.curBtnGroup.visible = !1,
                this.playBtn.visible = !1,
                ii0.playVideo(t.Handler.create(this, function () {
                    this.rotateTurntable();
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.visible = !0, this.playBtn.visible = !0, isEnableCancelVideoModal() &amp;&amp; showModal(t.Handler.create(this, function (e) {
                        e &amp;&amp; e.confirm &amp;&amp; this.openVideo();
                    }));
                }), t.Handler.create(this, function () {
                    this.curBtnGroup.visible = !0, this.playBtn.visible = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))

        }
    });
    t.ClassUtils.regClass("fc.view.InsertAdPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.outTime = !1;
        }
        onAwake() {
            super.onAwake(), this.owner.visible = !1, console.log("insertAdPage loaded"), i.loadInsertAd(t.Handler.create(this, this.onVideoLoaded), t.Handler.create(this, this.closeView)) || s.closeView(this.owner),
                this.owner.timerOnce(5e3, this, this.onLoadOutTime);
        }
        onLoadOutTime() {
            this.outTime = !0, s.closeView(this.owner);
        }
        onVideoLoaded() {
            console.log("insertAd ready"), this.outTime ? console.log("insertAd load out time") : (this.owner.visible = !0,
                this.owner.clearTimer(this, this.onLoadOutTime), i.showInsertAd(t.Handler.create(this, this.onVideoClose), t.Handler.create(this, this.closeView)) || s.closeView(this.owner));
        }
        onVideoClose() {
            s.closeView(this.owner);
        }
        closeView() {
            s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.FullScreenAdPage", class extends fc.plugin.BaseView {
        constructor() {
            super();
        }
        onAwake() {
            super.onAwake(), console.log("fullScreenAdPage loaded"), i.loadFullScreenAd(t.Handler.create(this, this.onVideoLoaded), t.Handler.create(this, this.closeView)) || s.closeView(this.owner),
                this.owner.timerOnce(5e3, this, this.onLoadOutTime);
        }
        onLoadOutTime() {
            this.outTime = !0, s.closeView(this.owner);
        }
        onVideoLoaded() {
            console.log("fullScreenAd ready"), this.outTime ? console.log("fullScreenAd load out time") : (this.owner.clearTimer(this, this.onLoadOutTime),
                i.showFullScreenAd(t.Handler.create(this, this.onVideoClose), t.Handler.create(this, this.closeView)) || s.closeView(this.owner));
        }
        onVideoClose() {
            s.closeView(this.owner);
        }
        closeView() {
            s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.ExitPage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.confirmBtn = null, this.cancelBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["confirmBtn", "cancelBtn"]),
                this.confirmBtn.on(t.Event.CLICK, this, this.exitGame), this.cancelBtn.on(t.Event.CLICK, this, this.backGame);
        }
        onDestroy() {
            super.onDestroy(), this.confirmBtn.off(t.Event.CLICK, this, this.exitGame), this.cancelBtn.off(t.Event.CLICK, this, this.backGame);
        }
        exitGame() {
            s.playClickSound(), s.exitApplication();
        }
        backGame() {
            s.playClickSound(), s.closeView(this.owner);
        }
    });
    t.ClassUtils.regClass("fc.view.PausePage", class extends fc.plugin.BaseView {
        constructor() {
            super(), this.continueBtn = null, this.backHomeBtn = null;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["continueBtn", "backHomeBtn"]),
                s.pause(), this.continueBtn.on(t.Event.CLICK, this, this.continueGame), this.backHomeBtn.on(t.Event.CLICK, this, this.backHome);
        }
        onDestroy() {
            super.onDestroy(), s.resume(), this.continueBtn.off(t.Event.CLICK, this, this.continueGame),
                this.backHomeBtn.off(t.Event.CLICK, this, this.backHome);
        }
        continueGame() {
            s.resume(), s.playClickSound(), s.closeView(this.owner);
        }
        backHome() {
            s.back2Home(), s.playClickSound(), s.closeAllViews();
        }
    });
    class l extends t.Script {
        constructor() {
            super(), this.goldVal = null;
        }
        onAwake() {
            linkView2Script(this, this.owner, ["goldVal"]), t.stage.on(a.GOLD_UPDATE, this, this.onGoldUpdate),
                this.goldVal.value = s.playerInfo.gold.toString();
        }
        onDestroy() {
            t.stage.off(a.GOLD_UPDATE, this, this.onGoldUpdate);
        }
        onGoldUpdate(e) {
            this.goldVal.value = e ? e.toString() : s.playerInfo.gold.toString();
        }
    }
    t.ClassUtils.regClass("fc.view.GoldShow", l);
    t.ClassUtils.regClass("fc.view.GoldShowAdd", class extends l {
        constructor() {
            super();
        }
        onAwake() {
            super.onAwake(), this.owner.on(t.Event.CLICK, this, this.toAddGold);
        }
        onDestroy() {
            super.onDestroy(), this.owner.off(t.Event.CLICK, this, this.toAddGold);
        }
        toAddGold() {
            s.playClickSound(),
                this.owner.mouseEnabled = !1, ii0.playVideo(t.Handler.create(this, function () {
                    var e = s.playerInfo;
                    e.gold += 500,
                        s.savePlayerInfo({
                            gold: e.gold
                        }), t.stage.event(a.GOLD_UPDATE), this.owner.mouseEnabled = !0;
                    window.prompt0("Coin +500");
                }), t.Handler.create(this, function () {
                    this.owner.mouseEnabled = !0;
                }), t.Handler.create(this, function () {
                    this.owner.mouseEnabled = !0, s.showToastMsg(s.langCfg.novideotxt);
                }))
        }
    });
    class h extends t.Script {////////////////////////
        constructor() {
            super(), this.strengthVal = null, this.passedTime = 0, this.spRecoverInterval = 3e5
            // ,window.spRecoverTimeStamp = 0;
        }
        onAwake() {
            linkView2Script(this, this.owner, ["strengthVal", "lab_time"]), t.stage.on(a.STRENGTH_UPDATE, this, this.onStrengthUpdate);
            var e, i, n = s.playerInfo;
            this.strengthVal.value = n.strength.toString(),
                this.spRecoverInterval = 3e5,//(e = s.pluginCfg) &amp;&amp; e.pg_sp_recover_interval ?6e4 * e.pg_sp_recover_interval :
                window.spRecoverTimeStamp = (i = s.getLocalStorage("fc_spRecoverTimestamp")) ? Number(i) :
                    (s.setLocalStorage("fc_spRecoverTimestamp", Date.now()), 0);
        }
        onDestroy() {
            t.stage.off(a.STRENGTH_UPDATE, this, this.onStrengthUpdate);
        }
        onUpdate() {
            var e, i;
            if (!(s.playerInfo.strength &gt;= getMaxStrength())) {
                this.passedTime = Date.now() - window.spRecoverTimeStamp;
                if ((this.passedTime &gt; this.spRecoverInterval)) {////////////////////////////
                    var n = Math.floor(this.passedTime / this.spRecoverInterval);
                    window.spRecoverTimeStamp = Date.now() - this.passedTime % this.spRecoverInterval;
                    var o = s.playerInfo;
                    o.strength += n * ((i = s.pluginCfg) &amp;&amp; i.pg_sp_recover_per_time ? i.pg_sp_recover_per_time : 0),
                        o.strength &gt; getMaxStrength() ? (o.strength = getMaxStrength()) : null,
                        s.savePlayerInfo({
                            strength: s.playerInfo.strength
                        }),
                        e = window.spRecoverTimeStamp,
                        s.setLocalStorage("fc_spRecoverTimestamp", e || Date.now());
                    t.stage.event(a.STRENGTH_UPDATE);
                    this.passedTime = Date.now() - window.spRecoverTimeStamp;
                } else {

                }
                this.lab_time &amp;&amp; (this.lab_time.visible = true);
                let lastTime = this.spRecoverInterval - this.passedTime
                let m = Math.floor((lastTime / 1000) / 60);
                let s0 = Math.floor(lastTime / 1000 - m * 60);
                if ((m + "").length == 1) {
                    m = "0" + m
                }
                if ((s0 + "").length == 1) {
                    s0 = "0" + s0
                }


                this.lab_time &amp;&amp; (this.lab_time.text = m + ":" + s0);
            } else {
                this.lab_time &amp;&amp; (this.lab_time.visible = false);
            }

        }
        onStrengthUpdate() {
            window.spRecoverTimeStamp = (i = s.getLocalStorage("fc_spRecoverTimestamp")) ? Number(i) :
                (s.setLocalStorage("fc_spRecoverTimestamp", Date.now()), 0);
            var e = s.playerInfo;
            this.strengthVal.value = e.strength.toString();
        }
    }
    t.ClassUtils.regClass("fc.view.StrengthShow", h);
    t.ClassUtils.regClass("fc.view.StrengthShowAdd", class extends h {
        constructor() {
            super();
        }
        onAwake() {
            super.onAwake(), this.owner.on(t.Event.CLICK, this, this.toAddStrength);
        }
        onDestroy() {
            super.onDestroy(), this.owner.off(t.Event.CLICK, this, this.toAddStrength);
        }
        toAddStrength() {
            s.playClickSound(), this.owner.mouseEnabled = !1, ii0.playVideo(t.Handler.create(this, function () {
                var e = s.playerInfo;
                e.strength += 5, s.savePlayerInfo({
                    strength: e.strength
                }), t.stage.event(a.STRENGTH_UPDATE), this.owner.mouseEnabled = !0;
                window.prompt0("Energy +5");
            }), t.Handler.create(this, function () {
                this.owner.mouseEnabled = !0;
            }), t.Handler.create(this, function () {
                this.owner.mouseEnabled = !0, s.showToastMsg(s.langCfg.novideotxt);
            }))
        }
    });
    t.ClassUtils.regClass("fc.view.VipBtn", class extends t.Script {
        constructor() {
            super(), this.lightBg = null, this.vipIcon = null, this.animTime = 0;
        }
        onAwake() {
            super.onAwake(), linkView2Script(this, this.owner, ["lightBg", "vipIcon"]);
        }
        onUpdate() {
            this.animTime += 16, this.lightBg.rotation = .001 * this.animTime * Number(90),
                this.vipIcon.scaleX = this.vipIcon.scaleY = 1 + .1 * Math.abs(Math.sin(this.animTime / 1e3 * Math.PI));
        }
        onClick() {
            // s.openView(m.Vip, null, null);
        }
    });
    t.ClassUtils.regClass("fc.view.ResetBtn", class extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            super.onAwake(), this.owner.on(t.Event.CLICK, this, this.resetGame);
        }
        onDestroy() {
            super.onDestroy(), this.owner.off(t.Event.CLICK, this, this.resetGame);
        }
        resetGame() {
            s.playClickSound(), s.resetGame(), s.closeAllViews();
        }
    });
    class r extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            if (super.onAwake(), isMistakenActive()) {
                var e = getBtnDelayTime();
                e &amp;&amp; (this.owner.visible = !1, t.stage.timerOnce(e, this, this.onShowBtn, null, !1));
            }
        }
        onDestroy() {
            t.Tween.clearAll(this.owner), t.stage.clearTimer(this, this.onShowBtn);
        }
        onShowBtn() {
            this.owner.visible = !0;
        }
    }
    t.ClassUtils.regClass("fc.view.DelayShow", r);
    class c extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            if (super.onAwake(), isMistakenActive()) if (0 == ("zs" == fc.platform.PlatformConfig.platformTag ? 0 : s.pluginCfg ? s.pluginCfg.pg_button_show_style : 0)) {
                var e = "zs" == fc.platform.PlatformConfig.platformTag ? s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_banner_vertical_enable ? 2e3 : 0 : s.pluginCfg ? s.pluginCfg.pg_text_move_time : 0;
                if (0 == e) return;
                this.owner.mouseEnabled = !1;
                var i = this.owner.y;
                this.owner.y = 640 - this.owner.height, t.Tween.to(this.owner, {
                    y: i
                }, e, null, t.Handler.create(this, function () {
                    this.owner.mouseEnabled = !0;
                }), e);
            } else {
                var n = getBtnDelayTime();
                if (0 == n) return;
                this.owner.visible = !1, t.stage.timerOnce(n, this, this.onShowBtn, null, !1);
            }
        }
        onDestroy() {
            t.Tween.clearAll(this.owner), t.stage.clearTimer(this, this.onShowBtn);
        }
        onShowBtn() {
            this.owner.visible = !0;
        }
    }
    t.ClassUtils.regClass("fc.view.MistakenBtn", c);
    t.ClassUtils.regClass("fc.view.MoreRecommendBtn", class extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            this.owner.mouseEnabled = !0;
        }
        onClick() {
            s.playClickSound(), this.owner.mouseEnabled = !1, s.openView("MoreInfo", null, t.Handler.create(this, function () {
                this.owner.mouseEnabled = !0;
            }), !1);
        }
    });
    t.ClassUtils.regClass("fc.view.MoreGameBtn", class extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            this.owner.mouseEnabled = !0;
        }
        onClick() {
            s.playClickSound(), this.owner.mouseEnabled = !1, s.openView("AdHome3", null, t.Handler.create(this, function () {
                this.owner.mouseEnabled = !0;
            }), !1);
        }
    });
    t.ClassUtils.regClass("fc.view.MoreGameBoxBtn", class extends t.Script {
        constructor() {
            super(), this.clickTime = 0;
        }
        onAwake() {
            this.owner.mouseEnabled = !0;
        }
        onStart() {
            this.owner.visible = i.isGameBoxValid();
        }
        onClick() {
            if (s.playClickSound(), Date.now() - this.clickTime &lt; 1e3) console.log("MoreGameBoxBtn click too often"); else {
                this.clickTime = Date.now();
                var e = t.Handler.create(this, function (e) {
                    e &amp;&amp; s.showToastMsg(e);
                });
                i.showGameBox(e, e, e);
            }
        }
    });
    t.ClassUtils.regClass("fc.view.AdHomeBtn", class extends t.Script {
        constructor() {
            super();
        }
        onAwake() {
            this.owner.mouseEnabled = !0;
        }
        onClick() {
            s.playClickSound(), this.owner.mouseEnabled = !1, s.openView("AdHome", null, t.Handler.create(this, function () {
                this.owner.mouseEnabled = !0;
            }), !1);
        }
    });
    t.ClassUtils.regClass("fc.view.AniLoopPlay", class extends t.Script {
        constructor() {
            super();
        }
        onStart() {
            super.onStart();
            for (const e in this.owner) if (Object.prototype.hasOwnProperty.call(this.owner, e)) {
                const s = this.owner[e];
                s &amp;&amp; "object" == typeof s &amp;&amp; s instanceof t.FrameAnimation &amp;&amp; (s.stop(), s.play(0, !0));
            }
        }
    });
    class d { }
    d.PLAY_VIDEO = "PLAY_VIDEO", d.JUMP_AWARD = "JUMP_AWARD";
    class g extends t.Script {
        constructor() {
            super(), this.firstBtn = null, this.secondBtn = null, this.skinRoot = "", this.playBtnIdx = 0;
        }
        onAwake() {
            this.firstBtn = this.owner.getChildByName("firstBtn"), this.secondBtn = this.owner.getChildByName("secondBtn"),
                this.skinRoot = this.firstBtn.skin, this.skinRoot = this.skinRoot.substring(0, this.skinRoot.lastIndexOf("/") + 1),
                this.firstBtn &amp;&amp; this.firstBtn.on(t.Event.CLICK, this, this.onClickFstBtn), this.secondBtn &amp;&amp; this.secondBtn.on(t.Event.CLICK, this, this.onClickSndBtn),
                // isVideoMistakenActive() ? (
                //     this.playBtnIdx = Math.floor(2 * Math.random()),
                //     0 == this.playBtnIdx ? (this.firstBtn.skin = this.skinRoot + "img_suiji.png"
                //         //  ,this.secondBtn.skin = this.skinRoot + "img_suihou.png"
                //     ) : (this.firstBtn.skin = this.skinRoot + "img_suihou.png"
                //         // ,this.secondBtn.skin = this.skinRoot + "img_suiji.png"
                //         )
                //     ) :
                (this.playBtnIdx = 0//,

                    // ,this.secondBtn.skin = this.skinRoot + "img_tiaoguo.png"
                );

            let freeTurnTable = s.getLocalStorage("freeTurnTable");
            if (!freeTurnTable &amp;&amp; this.owner.idss &amp;&amp; this.owner.idss == 1) {
                this.firstBtn.skin = this.skinRoot + "img_liji0.png"
            } else {
                this.firstBtn.skin = this.skinRoot + "img_liji.png"
            }
        }
        onDestroy() {
            this.firstBtn &amp;&amp; this.firstBtn.off(t.Event.CLICK, this, this.onClickFstBtn),
                this.secondBtn &amp;&amp; this.secondBtn.off(t.Event.CLICK, this, this.onClickSndBtn);
        }
        onClickFstBtn() {
            s.playClickSound();
            let freeTurnTable = s.getLocalStorage("freeTurnTable");
            if (!freeTurnTable &amp;&amp; this.owner.idss &amp;&amp; this.owner.idss == 1) {
                Laya.stage.event("rotateTurntableFirst");
                s.setLocalStorage("freeTurnTable", true);
                this.firstBtn.skin = this.skinRoot + "img_liji.png"
            } else {
                t.stage.event(d.PLAY_VIDEO);
            }
            // 0 != this.playBtnIdx ? t.stage.event(d.JUMP_AWARD) : 
        }
        onClickSndBtn() {
            s.playClickSound(),// 1 != this.playBtnIdx ?
                t.stage.event(d.JUMP_AWARD)
            // : t.stage.event(d.PLAY_VIDEO);
        }
    }
    class p extends t.Script {
        constructor() {
            super(), this.playVideoBtn = null, this.jumpBtn = null, this.checkBtn = null, this.checkBlock = null,
                this.skinRoot = "";
        }
        onAwake() {
            this.playVideoBtn = this.owner.getChildByName("playVideoBtn"), this.jumpBtn = this.owner.getChildByName("jumpBtn"),
                this.checkBtn = this.owner.getChildByName("checkBtn"), this.checkBlock = this.checkBtn &amp;&amp; this.checkBtn.getChildByName("checkBlock"),
                this.skinRoot = this.playVideoBtn.skin, this.skinRoot = this.skinRoot.substring(0, this.skinRoot.lastIndexOf("/") + 1),
                this.playVideoBtn &amp;&amp; this.playVideoBtn.on(t.Event.CLICK, this, this.openVideo),
                this.jumpBtn &amp;&amp; this.jumpBtn.on(t.Event.CLICK, this, this.toJump), this.checkBtn &amp;&amp; this.checkBtn.on(t.Event.CLICK, this, this.onClickCheck),
                this.checkBlock &amp;&amp; (isVideoMistakenActive() ? (this.checkBlock.visible = !0, this.playVideoBtn.skin = this.skinRoot + "img_liji.png",
                    this.jumpBtn.skin = this.skinRoot + "img_zanshi.png") : (this.checkBlock.visible = !1,
                        this.playVideoBtn.skin = this.skinRoot + "img_liji.png", this.jumpBtn.skin = this.skinRoot + "img_zanbu.png"));
        }
        onDestroy() {
            this.playVideoBtn &amp;&amp; this.playVideoBtn.off(t.Event.CLICK, this, this.openVideo),
                this.jumpBtn &amp;&amp; this.jumpBtn.off(t.Event.CLICK, this, this.toJump), this.checkBtn &amp;&amp; this.checkBtn.off(t.Event.CLICK, this, this.onClickCheck);
        }
        openVideo() {
            s.playClickSound(), t.stage.event(d.PLAY_VIDEO);
        }
        toJump() {
            s.playClickSound(), this.checkBlock &amp;&amp; this.checkBlock.visible ? t.stage.event(d.PLAY_VIDEO) : t.stage.event(d.JUMP_AWARD);
        }
        onClickCheck() {
            s.playClickSound(), this.checkBlock &amp;&amp; (this.checkBlock.visible = !this.checkBlock.visible,
                this.checkBlock.visible ? (this.playVideoBtn.skin = this.skinRoot + "img_liji.png",
                    this.jumpBtn.skin = this.skinRoot + "img_zanshi.png") : (this.playVideoBtn.skin = this.skinRoot + "img_liji.png",
                        this.jumpBtn.skin = this.skinRoot + "img_zanbu.png"));
        }
    }
    class u extends t.Script {
        constructor() {
            super(), this.playVideoBtn = null, this.jumpBtn = null, this.skinRoot = "";
        }
        onAwake() {
            this.playVideoBtn = this.owner.getChildByName("playVideoBtn"), this.jumpBtn = this.owner.getChildByName("jumpBtn"),
                this.skinRoot = this.playVideoBtn.skin, this.skinRoot = this.skinRoot.substring(0, this.skinRoot.lastIndexOf("/") + 1),
                this.playVideoBtn &amp;&amp; this.playVideoBtn.on(t.Event.CLICK, this, this.openVideo),
                this.jumpBtn &amp;&amp; this.jumpBtn.on(t.Event.CLICK, this, this.toJump), isVideoMistakenActive() ? (this.jumpBtn.visible = !1,
                    this.owner.timerOnce(getBtnDelayTime(), this, function () {
                        this.jumpBtn.visible = !0;
                    })) : this.jumpBtn.visible = !0;
        }
        onDestroy() {
            this.playVideoBtn &amp;&amp; this.playVideoBtn.off(t.Event.CLICK, this, this.openVideo),
                this.jumpBtn &amp;&amp; this.jumpBtn.off(t.Event.CLICK, this, this.toJump);
        }
        openVideo() {
            s.playClickSound(), t.stage.event(d.PLAY_VIDEO);
        }
        toJump() {
            s.playClickSound(), t.stage.event(d.JUMP_AWARD);
        }
    }
    class v extends t.Script {
        constructor() {
            super(), this.opBtn = null, this.exitBtn = null, this.checkBtn = null, this.checkBlock = null,
                this.skinRoot = "";
        }
        onAwake() {
            this.opBtn = this.owner.getChildByName("opBtn"), this.exitBtn = this.owner.getChildByName("exitBtn"),
                this.checkBtn = this.owner.getChildByName("checkBtn"), this.checkBlock = this.checkBtn &amp;&amp; this.checkBtn.getChildByName("checkBlock"),
                this.skinRoot = this.opBtn.skin, this.skinRoot = this.skinRoot.substring(0, this.skinRoot.lastIndexOf("/") + 1),
                this.opBtn &amp;&amp; this.opBtn.on(t.Event.CLICK, this, this.onClickBtn), this.exitBtn &amp;&amp; this.exitBtn.on(t.Event.CLICK, this, this.toJump),
                this.checkBtn &amp;&amp; this.checkBtn.on(t.Event.CLICK, this, this.onClickCheck), this.checkBlock &amp;&amp; (isVideoMistakenActive() ? (this.checkBlock.visible = !0,
                    this.opBtn.skin = this.skinRoot + "img_lingqu.png") : (this.checkBlock.visible = !1,
                        this.opBtn.skin = this.skinRoot + "img_fangqi.png"));
        }
        onDestroy() {
            this.opBtn &amp;&amp; this.opBtn.off(t.Event.CLICK, this, this.onClickBtn), this.exitBtn &amp;&amp; this.opBtn.off(t.Event.CLICK, this, this.toJump),
                this.checkBtn &amp;&amp; this.checkBtn.off(t.Event.CLICK, this, this.onClickCheck);
        }
        onClickCheck() {
            s.playClickSound(), this.checkBlock &amp;&amp; (this.checkBlock.visible = !this.checkBlock.visible,
                this.checkBlock.visible ? this.opBtn.skin = this.skinRoot + "img_lingqu.png" : this.opBtn.skin = this.skinRoot + "img_fangqi.png");
        }
        onClickBtn() {
            s.playClickSound(), this.checkBlock &amp;&amp; this.checkBlock.visible ? t.stage.event(d.PLAY_VIDEO) : t.stage.event(d.JUMP_AWARD);
        }
        toJump() {
            s.playClickSound(), t.stage.event(d.JUMP_AWARD);
        }
        openVideo() {
            s.playClickSound(), t.stage.event(d.PLAY_VIDEO);
        }
    }
    class f extends t.Script {
        constructor() {
            super(), this.opBtn = null, this.checkBtn = null, this.checkBlock = null, this.skinRoot = "";
        }
        onAwake() {
            this.opBtn = this.owner.getChildByName("opBtn"), this.checkBtn = this.owner.getChildByName("checkBtn"),
                this.checkBlock = this.checkBtn &amp;&amp; this.checkBtn.getChildByName("checkBlock"), this.skinRoot = this.opBtn.skin,
                this.skinRoot = this.skinRoot.substring(0, this.skinRoot.lastIndexOf("/") + 1),
                this.opBtn &amp;&amp; this.opBtn.on(t.Event.CLICK, this, this.onClickBtn), this.checkBtn &amp;&amp; this.checkBtn.on(t.Event.CLICK, this, this.onClickCheck),
                this.checkBtn &amp;&amp; (isVideoMistakenActive() ? (this.checkBlock.visible = !0, this.checkBtn.y = 600,
                    this.opBtn.skin = this.skinRoot + "img_liji.png") : (this.checkBlock.visible = !1,
                        this.opBtn.skin = this.skinRoot + "img_tiaoguo.png"));
        }
        onDestroy() {
            this.opBtn &amp;&amp; this.opBtn.off(t.Event.CLICK, this, this.onClickBtn), this.checkBtn &amp;&amp; this.checkBtn.off(t.Event.CLICK, this, this.onClickCheck);
        }
        onClickCheck() {
            this.checkBlock &amp;&amp; (this.checkBlock.visible = !this.checkBlock.visible, this.checkBlock.visible ? this.opBtn.skin = this.skinRoot + "img_liji.png" : this.opBtn.skin = this.skinRoot + "img_tiaoguo.png");
        }
        onClickBtn() {
            s.playClickSound(), this.checkBlock &amp;&amp; this.checkBlock.visible ? t.stage.event(d.PLAY_VIDEO) : t.stage.event(d.JUMP_AWARD);
        }
        openVideo() {
            s.playClickSound(), t.stage.event(d.PLAY_VIDEO);
        }
    }
    class m { }
    m.Introduce = "Introduce", m.Loading = "Loading", m.Home = "Home", m.Game = "Game",
        m.Success = "Success", m.Failed = "Failed", m.AdHome = "AdHome", m.AdHome2 = "AdHome2",
        m.AdHome3 = "AdHome3", m.Award = "Award", m.Unlock = "Unlock", m.MoreInfo = "MoreInfo",
        m.Knock = "Knock", m.Sign = "Sign", m.Store = "Store", m.Strength = "Strength",
        m.SecretBox = "SecretBox", m.SecretAward = "SecretAward", m.Trial = "Trial", m.Turntable = "Turntable",
        m.InsertAd = "InsertAd", m.FullScreenAd = "FullScreenAd", m.NativeAdb = "NativeAdb",
        m.NativeAdm = "NativeAdm", m.ShareRec = "ShareRec", m.Pause = "Pause", m.Exit = "Exit"
    // ,m.Vip = "Vip";
    class C { }
    C.Guide = 100, C.Sign = 101, C.Store = 102, C.Trial = 103, C.Vip = 104, C.ShareRec = 105,
        C.Turntable = 106, C.SecretBox = 107, C.SecretAward = 108, C.NativeAd = 200, C.InsertAd = 201,
        C.FullScreenAd = 202, C.MoreGame = 300;
    class w {
        static isVip() {
            return 1 == s.playerInfo.isVip;
        }
        static isVipValid() {
            return isVipValid();
        }
        static isVipOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; null != e.pg_vip_config;
        }
        static isMistakenActive() {
            return isMistakenActive();
        }
        static isVideoMistakenActive() {
            return isVideoMistakenActive();
        }
        static isEnableCancelVideoModal() {
            return false;
        }
        static showVideoConfirmModal(e) {
            showModal(e);
        }
        static isResetGameOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 1 == e.pg_reset_switch;
        }
        static isStrengthOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; e.pg_sp_switch &amp;&amp; e.pg_sp_cost &amp;&amp; e.pg_sp_max;
        }
        static isSignOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 0 != e.pg_sign_opened &amp;&amp; s.playerInfo.signedDays &lt; 7;
        }
        static isTurntableOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 0 != e.pg_turntable_opened;
        }
        static isStoreOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 0 != e.pg_store_opened;
        }
        static isShareOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 0 != e.pg_share_opened;
        }
        static isRecommendOpened() {
            var e = s.pluginCfg;
            return e &amp;&amp; 0 != e.pg_recommend_opened;
        }
        static isEnableExportAd() {
            return "zs" == fc.platform.PlatformConfig.platformTag || isMistakenActive();
        }
        static isEnablePopNativeAd() {
            return this.gameTime &gt;= 1 &amp;&amp; !this.isEnablePopSign() &amp;&amp; !this.isEnablePopStore();
        }
        static isEnablePopHomeAd() {
            return "zs" == fc.platform.PlatformConfig.platformTag ? this.isMistakenActive() &amp;&amp; 1 == s.adZsCfg.zs_sidebar &amp;&amp; this.gameTime &gt;= 1 : this.isEnableExportAd() &amp;&amp; !this.isEnablePopStore() &amp;&amp; !this.isEnablePopSign() &amp;&amp; 1 == s.pluginCfg.pg_dialog_jump &amp;&amp; this.gameTime &gt;= 1;
        }
        static isEnablePopAdHome() {
            return "zs" == fc.platform.PlatformConfig.platformTag ? s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_full_screen_1 : this.isEnableExportAd() &amp;&amp; 1 == s.pluginCfg.pg_full_screen_jump;
        }
        static isEnablePopAdHome2() {
            return s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_full_screen_2;
        }
        static isEnablePopAdHome3() {
            return s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_full_screen_3;
        }
        static isEnablePopAdLoading() {
            return this.isMistakenActive() &amp;&amp; 1 == s.adZsCfg.zs_opening_jump &amp;&amp; this.gameTime &lt;= 0;
        }
        static isEnableStartVideo() {
            return this.isMistakenActive() &amp;&amp; 1 == s.adZsCfg.zs_start_video_switch;
        }
        static isEnableInsertAd() {
            return s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_cell_advertisement;
        }
        static isEnableFalseNews() {
            return this.isMistakenActive() &amp;&amp; 1 == s.adZsCfg.zs_text_message &amp;&amp; this.gameTime &lt;= 0;
        }
        static isEnablePopSign() {
            return this.isSignOpened() &amp;&amp; 1 == this.gameTime &amp;&amp; s.playerInfo.signedDays &lt; 7;
        }
        static isEnablePopStore() {
            return this.isStoreOpened() &amp;&amp; (1 == this.gameTime &amp;&amp; s.playerInfo.signedDays &gt;= 7 || 2 == this.gameTime);
        }
        static isEnablePopTrial() {
            if ("zs" == fc.platform.PlatformConfig.platformTag) return s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_video_point;
            var e = s.pluginCfg, t = s.playerInfo;
            if (!e || 1 != e.pg_trial_switch || null == t.levelId || t.levelId &lt; e.pg_trial_lv) return !1;
            var i = s.goodsCfg;
            for (let e = 0; e &lt; i.length; e++) {
                var n = i[e];
                for (let s = 0; s &lt; n.length; s++) {
                    const i = n[s];
                    if (0 != i.recommend &amp;&amp; -1 == t.goodsInBag[e].indexOf(i.id)) return !0;
                }
            }
            return !1;
        }
        static isEnablePopCrazyKnock() {
            if ("zs" == fc.platform.PlatformConfig.platformTag) {
                if (!this.isMistakenActive()) return !1;
                var e = s.playerInfo;
                let t = s.adZsCfg.zs_click_award_num;
                if (fc.framework.MiscUtils.isNumber(t)) {
                    if (-1 == t) return !0;
                    if (Number(t) &gt; Number(this.todayKnockTime)) return !0;
                }
                if (t &amp;&amp; t.length &gt; 0) {
                    if (1 == t.length &amp;&amp; -1 == t[0]) return !0;
                    if (-1 != t.indexOf(e.levelId)) return !0;
                }
                return !1;
            }
            var i = s.pluginCfg, n = (e = s.playerInfo, t.Browser.onWeiXin ? t.Browser.onAndroid ? "android" : "ios" : "unknown");
            return i &amp;&amp; s.appInfo.version != i.pg_version &amp;&amp; i.pg_switch &amp;&amp; i.pg_fastclick_switch &gt; 0 &amp;&amp; i.pg_fastclick_system &amp;&amp; -1 == i.pg_fastclick_system.indexOf(n) &amp;&amp; e.levelId &gt; i.pg_fastclick_switch &amp;&amp; e.levelId % i.pg_fastclick_switch == 0 &amp;&amp; this.todayKnockTime &lt; i.pg_fastclick_num;
        }
        static isEnablePopSecretAward() {
            if ("zs" == fc.platform.PlatformConfig.platformTag) return s.adZsCfg &amp;&amp; 1 == s.adZsCfg.zs_video_point;
            var e = s.pluginCfg;
            return e &amp;&amp; s.appInfo.version != e.pg_version &amp;&amp; 1 == e.pg_lucky_reward_switch;
        }
        static isEnablePopInsertAd() {
            return i.isInsertAdEnable() &amp;&amp; !this.isEnablePopStore() &amp;&amp; !this.isEnablePopSign() &amp;&amp; this.gameTime &gt;= 1;
        }
        static isEnablePopShareRec() {
            return i.canShareRecorder();
        }
        static isEnablePopVip() {
            return 0 == this.isVipValid() &amp;&amp; this.isVipOpened() &amp;&amp; 1 == this.gameTime;
        }
        static loadExportAd(e) {
            if ("zs" == fc.platform.PlatformConfig.platformTag) i.loadAd(e); else {
                var n = s.pluginCfg;
                if (n &amp;&amp; n.pg_export_list &amp;&amp; n.pg_export_list.length &gt; 0) {
                    var o = t.loader.getRes(n.pg_export_list);
                    o ? t.stage.frameOnce(1, this, function () {
                        e(o);
                    }) : t.loader.load(n.pg_export_list, t.Handler.create(this, function (t) {
                        e(t);
                    }));
                } else t.stage.frameOnce(1, this, function () {
                    e([]);
                });
            }
        }
        static navigate2Mini(e, t, s, n) {
            "zs" == fc.platform.PlatformConfig.platformTag ? i.navigate2Mini(e, null, null, t, s, n) : i.navigate2Mini(e.app_id, e.path, e.extra_data, t, s, n);
        }
        static getGameCostStrength() {
            var e = s.pluginCfg;
            return 1;
        }
        static getShareImage() {
            var e = s.pluginCfg;
            return e ? e.pg_share_img : null;
        }
        static getShareTitle() {
            var e = s.pluginCfg;
            return e ? e.pg_share_title : null;
        }
        static getShareTopic() {
            var e = s.pluginCfg;
            return e ? e.pg_share_topic : null;
        }
        static getShareDesc() {
            var e = s.pluginCfg;
            return e ? e.pg_share_desc : null;
        }
        static getShareRecAward() {
            var e = s.pluginCfg;
            return e ? e.pg_share_rec_award : null;
        }
    }
    w.gameTime = 0, w.todayKnockTime = 0, e.ViewId = m, e.ViewCheckCode = C, e.ActivityCenter = w,
        e.DelayShow = r, e.linkView2Script = linkView2Script;
}(window.fc.view, Laya);</pre></body></html>