<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var conf = window.zs.wx, sdk = function() {
    var n = {}, t = conf.adApiUrl, e = function(n, t) {
        return n &lt;&lt; t | n &gt;&gt;&gt; 32 - t;
    }, o = function(n, t) {
        var e, o, i, a, r;
        return i = 2147483648 &amp; n, a = 2147483648 &amp; t, r = (1073741823 &amp; n) + (1073741823 &amp; t), 
        (e = 1073741824 &amp; n) &amp; (o = 1073741824 &amp; t) ? 2147483648 ^ r ^ i ^ a : e | o ? 1073741824 &amp; r ? 3221225472 ^ r ^ i ^ a : 1073741824 ^ r ^ i ^ a : r ^ i ^ a;
    }, i = function(n, t, i, a, r, s, u) {
        return n = o(n, o(o(function(n, t, e) {
            return n &amp; t | ~n &amp; e;
        }(t, i, a), r), u)), o(e(n, s), t);
    }, a = function(n, t, i, a, r, s, u) {
        return n = o(n, o(o(function(n, t, e) {
            return n &amp; e | t &amp; ~e;
        }(t, i, a), r), u)), o(e(n, s), t);
    }, r = function(n, t, i, a, r, s, u) {
        return n = o(n, o(o(function(n, t, e) {
            return n ^ t ^ e;
        }(t, i, a), r), u)), o(e(n, s), t);
    }, s = function(n, t, i, a, r, s, u) {
        return n = o(n, o(o(function(n, t, e) {
            return t ^ (n | ~e);
        }(t, i, a), r), u)), o(e(n, s), t);
    }, u = function(n) {
        var t, e = "", o = "";
        for (t = 0; t &lt;= 3; t++) e += (o = "0" + (n &gt;&gt;&gt; 8 * t &amp; 255).toString(16)).substr(o.length - 2, 2);
        return e;
    }, c = function(n) {
        var t, e, c, p, l, d, f, g, h, m = Array();
        for (m = function(n) {
            for (var t, e = n.length, o = e + 8, i = 16 * ((o - o % 64) / 64 + 1), a = Array(i - 1), r = 0, s = 0; s &lt; e; ) r = s % 4 * 8, 
            a[t = (s - s % 4) / 4] = a[t] | n.charCodeAt(s) &lt;&lt; r, s++;
            return r = s % 4 * 8, a[t = (s - s % 4) / 4] = a[t] | 128 &lt;&lt; r, a[i - 2] = e &lt;&lt; 3, 
            a[i - 1] = e &gt;&gt;&gt; 29, a;
        }(n = function(n) {
            n = n.replace(/\x0d\x0a/g, "\n");
            for (var t = "", e = 0; e &lt; n.length; e++) {
                var o = n.charCodeAt(e);
                o &lt; 128 ? t += String.fromCharCode(o) : o &gt; 127 &amp;&amp; o &lt; 2048 ? (t += String.fromCharCode(o &gt;&gt; 6 | 192), 
                t += String.fromCharCode(63 &amp; o | 128)) : (t += String.fromCharCode(o &gt;&gt; 12 | 224), 
                t += String.fromCharCode(o &gt;&gt; 6 &amp; 63 | 128), t += String.fromCharCode(63 &amp; o | 128));
            }
            return t;
        }(n)), d = 1732584193, f = 4023233417, g = 2562383102, h = 271733878, t = 0; t &lt; m.length; t += 16) e = d, 
        c = f, p = g, l = h, d = i(d, f, g, h, m[t + 0], 7, 3614090360), h = i(h, d, f, g, m[t + 1], 12, 3905402710), 
        g = i(g, h, d, f, m[t + 2], 17, 606105819), f = i(f, g, h, d, m[t + 3], 22, 3250441966), 
        d = i(d, f, g, h, m[t + 4], 7, 4118548399), h = i(h, d, f, g, m[t + 5], 12, 1200080426), 
        g = i(g, h, d, f, m[t + 6], 17, 2821735955), f = i(f, g, h, d, m[t + 7], 22, 4249261313), 
        d = i(d, f, g, h, m[t + 8], 7, 1770035416), h = i(h, d, f, g, m[t + 9], 12, 2336552879), 
        g = i(g, h, d, f, m[t + 10], 17, 4294925233), f = i(f, g, h, d, m[t + 11], 22, 2304563134), 
        d = i(d, f, g, h, m[t + 12], 7, 1804603682), h = i(h, d, f, g, m[t + 13], 12, 4254626195), 
        g = i(g, h, d, f, m[t + 14], 17, 2792965006), f = i(f, g, h, d, m[t + 15], 22, 1236535329), 
        d = a(d, f, g, h, m[t + 1], 5, 4129170786), h = a(h, d, f, g, m[t + 6], 9, 3225465664), 
        g = a(g, h, d, f, m[t + 11], 14, 643717713), f = a(f, g, h, d, m[t + 0], 20, 3921069994), 
        d = a(d, f, g, h, m[t + 5], 5, 3593408605), h = a(h, d, f, g, m[t + 10], 9, 38016083), 
        g = a(g, h, d, f, m[t + 15], 14, 3634488961), f = a(f, g, h, d, m[t + 4], 20, 3889429448), 
        d = a(d, f, g, h, m[t + 9], 5, 568446438), h = a(h, d, f, g, m[t + 14], 9, 3275163606), 
        g = a(g, h, d, f, m[t + 3], 14, 4107603335), f = a(f, g, h, d, m[t + 8], 20, 1163531501), 
        d = a(d, f, g, h, m[t + 13], 5, 2850285829), h = a(h, d, f, g, m[t + 2], 9, 4243563512), 
        g = a(g, h, d, f, m[t + 7], 14, 1735328473), f = a(f, g, h, d, m[t + 12], 20, 2368359562), 
        d = r(d, f, g, h, m[t + 5], 4, 4294588738), h = r(h, d, f, g, m[t + 8], 11, 2272392833), 
        g = r(g, h, d, f, m[t + 11], 16, 1839030562), f = r(f, g, h, d, m[t + 14], 23, 4259657740), 
        d = r(d, f, g, h, m[t + 1], 4, 2763975236), h = r(h, d, f, g, m[t + 4], 11, 1272893353), 
        g = r(g, h, d, f, m[t + 7], 16, 4139469664), f = r(f, g, h, d, m[t + 10], 23, 3200236656), 
        d = r(d, f, g, h, m[t + 13], 4, 681279174), h = r(h, d, f, g, m[t + 0], 11, 3936430074), 
        g = r(g, h, d, f, m[t + 3], 16, 3572445317), f = r(f, g, h, d, m[t + 6], 23, 76029189), 
        d = r(d, f, g, h, m[t + 9], 4, 3654602809), h = r(h, d, f, g, m[t + 12], 11, 3873151461), 
        g = r(g, h, d, f, m[t + 15], 16, 530742520), f = r(f, g, h, d, m[t + 2], 23, 3299628645), 
        d = s(d, f, g, h, m[t + 0], 6, 4096336452), h = s(h, d, f, g, m[t + 7], 10, 1126891415), 
        g = s(g, h, d, f, m[t + 14], 15, 2878612391), f = s(f, g, h, d, m[t + 5], 21, 4237533241), 
        d = s(d, f, g, h, m[t + 12], 6, 1700485571), h = s(h, d, f, g, m[t + 3], 10, 2399980690), 
        g = s(g, h, d, f, m[t + 10], 15, 4293915773), f = s(f, g, h, d, m[t + 1], 21, 2240044497), 
        d = s(d, f, g, h, m[t + 8], 6, 1873313359), h = s(h, d, f, g, m[t + 15], 10, 4264355552), 
        g = s(g, h, d, f, m[t + 6], 15, 2734768916), f = s(f, g, h, d, m[t + 13], 21, 1309151649), 
        d = s(d, f, g, h, m[t + 4], 6, 4149444226), h = s(h, d, f, g, m[t + 11], 10, 3174756917), 
        g = s(g, h, d, f, m[t + 2], 15, 718787259), f = s(f, g, h, d, m[t + 9], 21, 3951481745), 
        d = o(d, e), f = o(f, c), g = o(g, p), h = o(h, l);
        return (u(d) + u(f) + u(g) + u(h)).toLowerCase();
    }, p = function(n, t) {
        t = t || !0;
        for (var e = Object.keys(n).sort(), o = "", i = 0; i &lt; e.length; i++) o += e[i] + ":" + n[e[i]];
        t &amp;&amp; (o += conf.secret);
        var a = c(o);
        return a = a.toLowerCase();
    }, l = function(n) {
        var t = m("zsAd");
        switch (n) {
          case "1":
            return t.more;

          case "2":
            return t.promotion;

          case "3":
            return t.indexFloat;

          case "7":
            return t.indexLeft;

          case "8":
            return t.gameFloat;

          case "9":
            return t.endPage;

          case "11":
            return t.indexLeftFloat;

          case "12":
            return t.backAd;

          case "13":
            return t.iosLinkAd;
        }
        return null;
    }, d = function(n, t) {
        var e = l(n);
        if (null == e) return console.error("custom link is null"), null;
        for (var o = 0; o &lt; e.length; o++) if (e[o].appid == t) return e[o];
    }, f = function(n, t, e, o, i, a) {
        if ("undefined" == typeof wx) {
            var r = new XMLHttpRequest();
            r.onreadystatechange = function() {
                if (4 == r.readyState) {
                    var n = r.responseText;
                    if (r.status &gt;= 200 &amp;&amp; r.status &lt; 400) {
                        var t = {};
                        try {
                            t = JSON.parse(n);
                        } catch (t) {
                            console.error("json parse error ", n), i &amp;&amp; i(t);
                        }
                        o &amp;&amp; o(t);
                    } else console.error("error ", n), i &amp;&amp; i(n);
                }
            }, r.timeout = 3e3, r.ontimeout = function(n) {
                console.error("error ", n), i &amp;&amp; i(n);
            }, r.open(e, n, !0), "POST" == e ? (r.open("POST", n), r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), 
            r.send(function(n) {
                var t = [];
                for (var e in n) t.push(e + "=" + n[e]);
                return t.join("&amp;");
            }(t))) : r.send();
        } else wx.request({
            url: n,
            data: t,
            header: {
                "content-type": "application/json"
            },
            method: e,
            success: function(n) {
                o &amp;&amp; o(n.data);
            },
            fail: function(n) {
                i &amp;&amp; i(n);
            },
            complete: function(n) {
                a &amp;&amp; a(n);
            }
        });
    }, g = function(t, e) {
        n.zsStorage = n.zsStorage || {}, n.zsStorage[t] = e;
    }, h = function(t) {
        return n.zsStorage = n.zsStorage || {}, n.zsStorage[t];
    }, m = function(n, t) {
        if (t) {
            var e = h(n + "_time");
            return null == e || Date.now() - Number(e) &lt; t ? h(n) : null;
        }
        return h(n);
    }, C = function(n, t) {
        g(n, t), g(n + "_time", Date.now());
    }, I = function(n) {
        return "function" == typeof n;
    }, _ = function(t, e) {
        if ("3" == t.app_type) {
            var o = h(t.appid);
            g(t.appid, null == o ? 1 : Number(o) + 1);
        }
        var i, a, r, s, u, c;
        "undefined" != typeof wx &amp;&amp; (i = t.app_id, a = e, r = Math.round(new Date().getTime() / 1e3).toString(), 
        s = {
            user_id: a,
            from_id: conf.appId,
            to_id: i,
            timestamp: r
        }, u = p(s), c = Object.assign({}, s, {
            sign: u
        }), f("https://ad.ali-yun.wang/api/appad_new/collect", c, "POST", function() {}, function() {
            console.log("appad_new/collect fail");
        }, function() {
            console.log("appad_new/collect complete");
        }), function(t) {
            if (conf.uploadLog) if (null != n.userId) {
                var e = {
                    appid: conf.appId,
                    from_appid: n.srcAppId,
                    to_appid: t,
                    user_id: n.userId
                };
                f("https://ad.ali-yun.wang/api/jump_log/app_to", e, "POST", function() {}, function() {
                    console.log('jump_log/app_to" fail');
                }, function() {
                    console.log('jump_log/app_to" complete');
                });
            } else console.error("userId is null");
        }(t.appid));
    };
    n.userId = null, n.platformId = null, n.srcAppId = "", n.launchScene = "", n.adJumpNum = null, 
    n.adJumpAppId = null, n.isEnableExportAdLinkId = "0", n.init = function(t, e) {
        if (console.log("zsAdSdk.init"), this.userId = t, this.platformId = e, "undefined" == typeof wx) this.launchScene = 1038, 
        this.srcAppId = ""; else {
            var o = wx.getLaunchOptionsSync();
            this.launchScene = o.scene ? o.scene : "", this.srcAppId = o.referrerInfo &amp;&amp; o.referrerInfo.appId ? o.referrerInfo.appId : "";
        }
        !function() {
            if (conf.uploadLog) if (null != n.userId) {
                var t = {
                    appid: conf.appId,
                    from_appid: n.srcAppId,
                    user_id: n.userId,
                    scene: n.launchScene
                };
                f("https://ad.ali-yun.wang/api/jump_log/app_from", t, "POST", function() {}, function() {
                    console.log('jump_log/app_from" fail');
                }, function() {
                    console.log('jump_log/app_from" complete');
                });
            } else console.error("userId is null");
        }();
    }, n.sendVideoLog = function() {
        if (conf.uploadLog) if (null != this.userId) {
            var n = {
                appid: conf.appId,
                from_appid: this.srcAppId,
                user_id: this.userId
            };
            f("https://ad.ali-yun.wang/api/jump_log/app_video", n, "POST", function() {}, function() {
                console.log('jump_log/app_to" fail');
            }, function() {
                console.log('jump_log/app_to" complete');
            });
        } else console.error("userId is null");
    }, n.cfgCbList = [], n.inCfgRequest = !1, n.loadConfig = function(e, o) {
        var i = t, a = Math.round(new Date().getTime() / 1e3).toString(), r = {
            appid: conf.appId,
            timestamp: a
        }, s = p(r), u = Object.assign({}, r, {
            sign: s
        }), c = m("zsCfg", 6e4);
        c ? I(e) &amp;&amp; e(c) : this.inCfgRequest ? this.cfgCbList.push({
            success: e,
            fail: o
        }) : (this.inCfgRequest = !0, this.cfgCbList.push({
            success: e,
            fail: o
        }), f(i, u, "POST", function(t) {
            var e = t.data;
            C("zsCfg", e), n.adJumpNum = e.zs_ad_jump_num, n.adJumpAppId = e.zs_jump_appid, 
            n.isEnableExportAdLinkId = e.zs_export_ad_switch;
            for (var o = 0; o &lt; n.cfgCbList.length; o++) I(n.cfgCbList[o].success) &amp;&amp; n.cfgCbList[o].success(e);
            n.cfgCbList = [], n.inCfgRequest = !1;
        }, function(t) {
            for (var e = 0; e &lt; n.cfgCbList.length; e++) I(n.cfgCbList[e].fail) &amp;&amp; n.cfgCbList[e].fail(t);
            n.cfgCbList = [], n.inCfgRequest = !1;
        }, function(t) {
            n.cfgCbList = [], n.inCfgRequest = !1, console.log("post loadConfig complete");
        }));
    }, n.adCbList = [], n.inAdRequest = !1, n.loadAd = function(t) {
        var e = m("zsAd", 6e4);
        if (e) t(e); else if (this.inAdRequest) this.adCbList.push(t); else {
            this.inAdRequest = !0, this.adCbList.push(t);
            var o = Math.round(new Date().getTime() / 1e3).toString(), i = {
                appid: conf.appId,
                timestamp: o
            }, a = p(i), r = Object.assign({}, i, {
                sign: a
            });
            f("https://ad.ali-yun.wang/api/appad_new/index", r, "POST", function(t) {
                for (var e in n.inAdRequest = !1, t.data) {
                    t.data[e].sort(function() {
                        return Math.random() &gt; .5 ? 1 : -1;
                    });
                }
                var o = {
                    more: t.data["position-1"] || [],
                    promotion: t.data["position-2"] || [],
                    indexFloat: t.data["position-3"] || [],
                    banner: t.data["position-4"] || [],
                    indexLeft: t.data["position-7"] || [],
                    gameFloat: t.data["position-8"] || [],
                    endPage: t.data["position-9"] || [],
                    indexLeftFloat: t.data["position-11"] || [],
                    backAd: t.data["position-12"] || [],
                    iosLinkAd: t.data["position-13"] || []
                };
                C("zsAd", o);
                for (var i = 0; i &lt; n.adCbList.length; i++) I(n.adCbList[i]) &amp;&amp; n.adCbList[i](o);
                n.adCbList = [];
            }, function(t) {
                n.inAdRequest = !1, console.log("requestAdData fail");
                for (var e = {
                    more: [],
                    promotion: [],
                    indexFloat: [],
                    banner: [],
                    indexLeft: [],
                    gameFloat: [],
                    endPage: [],
                    indexLeftFloat: [],
                    backAd: [],
                    iosLinkAd: []
                }, o = 0; o &lt; n.adCbList.length; o++) I(n.adCbList[o]) &amp;&amp; n.adCbList[o](e);
                n.adCbList = [];
            }, function(n) {
                console.log("requestAdData complete");
            });
        }
    }, n.navigate2Mini = function(n, t, e, o, i) {
        var a = n;
        if (null != this.adJumpNum &amp;&amp; "3" == a.app_type) try {
            var r = h(a.appid);
            if (r = null != r ? Number(r) : 0, console.log(a.appid + ":" + r + "," + this.adJumpNum), 
            Number(r) + 1 &gt;= this.adJumpNum) {
                if (1 == this.platformId) {
                    var s = m("zsAd");
                    if (s.iosLinkAd.length &gt; 0) {
                        var u = s.iosLinkAd[Math.floor(s.iosLinkAd.length * Math.random())];
                        console.log("jump:" + JSON.stringify(u)), a = d(a.position_type, u.appid);
                    } else this.adJumpAppId ? (console.log("jump:" + this.adJumpAppId), a = d(a.position_type, this.adJumpAppId)) : console.log("jump self");
                } else console.log("jump link in Android"), a = function(n) {
                    var t = l(n);
                    if (null == t) return console.error("box is null"), null;
                    for (var e = 0; e &lt; t.length; e++) if ("4" == t[e].app_type) return t[e];
                    return console.error("box is null"), null;
                }(a.position_type);
                null == a &amp;&amp; (a = n);
            }
        } catch (n) {
            console.error(n);
        }
        if ("undefined" == typeof wx) return I(o) &amp;&amp; o(), void (I(i) &amp;&amp; i());
        a.extraData = a.extraData || {}, wx.navigateToMiniProgram({
            appId: a.appid,
            path: a.link_path,
            extraData: a.extraData,
            success: function(n) {
                _(a, t), I(e) &amp;&amp; e();
            },
            fail: function(n) {
                I(o) &amp;&amp; o();
            },
            complete: function(n) {
                I(i) &amp;&amp; i();
            }
        });
    }, n.getShareCard = function(n, t) {
        var e = Math.round(new Date().getTime() / 1e3).toString(), o = {
            appid: conf.appId,
            timestamp: e
        }, i = p(o), a = Object.assign({}, o, {
            sign: i
        });
        f("https://ad.ali-yun.wang/api/app_card/item", a, "POST", function(e) {
            I(n) &amp;&amp; e &amp;&amp; e.data ? n(e.data.card) : I(t) &amp;&amp; t(e);
        }, function(n) {
            I(t) &amp;&amp; t(n);
        }, function(n) {
            console.log("post GetShareCard complete!");
        });
    }, n.collectShareCardClick = function(n, t, e, o) {
        var i = Math.round(new Date().getTime() / 1e3).toString(), a = {
            appid: conf.appId,
            card_id: n,
            user_id: t,
            timestamp: i
        }, r = p(a), s = Object.assign({}, a, {
            sign: r
        });
        f("https://ad.ali-yun.wang/api/app_card/collect", s, "POST", function(n) {
            I(e) &amp;&amp; e(n);
        }, function(n) {
            I(o) &amp;&amp; o(n);
        }, function(n) {
            console.log("post CollectShareCardClick complete!");
        });
    };
    var v = [ 1011, 1012, 1013, 1025, 1031, 1032, 1047, 1048, 1049, 1124, 1125, 1126 ];
    n.launchInfo = null, n.isExportValid = function() {
        return !(this.launchInfo &amp;&amp; v.indexOf(this.launchInfo.scene) &gt;= 0) &amp;&amp; (null == this.launchInfo || null == this.launchInfo.query || this.launchInfo.query.customLink != this.isEnableExportAdLinkId);
    }, n.isFromLink = function() {
        return this.launchInfo &amp;&amp; v.indexOf(this.launchInfo.scene) &gt;= 0 ? (console.log("open by code"), 
        !0) : null != this.launchInfo &amp;&amp; null != this.launchInfo.query &amp;&amp; null != this.launchInfo.query.customLink;
    };
    return "undefined" == typeof wx || (n.launchInfo = wx.getLaunchOptionsSync(), console.log("scene:" + n.launchInfo.scene), 
    n.isFromLink() &amp;&amp; console.log("open by link")), n;
}(), theEnv = "undefined" != typeof window ? window : global;

theEnv.zs = theEnv.zs || {}, theEnv.zs.sdk = sdk;</pre></body></html>