Untitled

 avatar
unknown
plain_text
13 days ago
40 kB
1
Indexable
/*! For license information please see frame_ant.js.LICENSE.txt */
( () => {
    var t = {
        7061: (t, e, r) => {
            var n = r(8698).default;
            function o() {
                "use strict";
                t.exports = o = function() {
                    return e
                }
                ,
                t.exports.__esModule = !0,
                t.exports.default = t.exports;
                var e = {}
                  , r = Object.prototype
                  , a = r.hasOwnProperty
                  , i = Object.defineProperty || function(t, e, r) {
                    t[e] = r.value
                }
                  , u = "function" == typeof Symbol ? Symbol : {}
                  , s = u.iterator || "@@iterator"
                  , c = u.asyncIterator || "@@asyncIterator"
                  , f = u.toStringTag || "@@toStringTag";
                function l(t, e, r) {
                    return Object.defineProperty(t, e, {
                        value: r,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0
                    }),
                    t[e]
                }
                try {
                    l({}, "")
                } catch (t) {
                    l = function(t, e, r) {
                        return t[e] = r
                    }
                }
                function h(t, e, r, n) {
                    var o = e && e.prototype instanceof v ? e : v
                      , a = Object.create(o.prototype)
                      , u = new j(n || []);
                    return i(a, "_invoke", {
                        value: _(t, r, u)
                    }),
                    a
                }
                function p(t, e, r) {
                    try {
                        return {
                            type: "normal",
                            arg: t.call(e, r)
                        }
                    } catch (t) {
                        return {
                            type: "throw",
                            arg: t
                        }
                    }
                }
                e.wrap = h;
                var d = {};
                function v() {}
                function y() {}
                function g() {}
                var m = {};
                l(m, s, (function() {
                    return this
                }
                ));
                var w = Object.getPrototypeOf
                  , b = w && w(w(R([])));
                b && b !== r && a.call(b, s) && (m = b);
                var x = g.prototype = v.prototype = Object.create(m);
                function E(t) {
                    ["next", "throw", "return"].forEach((function(e) {
                        l(t, e, (function(t) {
                            return this._invoke(e, t)
                        }
                        ))
                    }
                    ))
                }
                function L(t, e) {
                    function r(o, i, u, s) {
                        var c = p(t[o], t, i);
                        if ("throw" !== c.type) {
                            var f = c.arg
                              , l = f.value;
                            return l && "object" == n(l) && a.call(l, "__await") ? e.resolve(l.__await).then((function(t) {
                                r("next", t, u, s)
                            }
                            ), (function(t) {
                                r("throw", t, u, s)
                            }
                            )) : e.resolve(l).then((function(t) {
                                f.value = t,
                                u(f)
                            }
                            ), (function(t) {
                                return r("throw", t, u, s)
                            }
                            ))
                        }
                        s(c.arg)
                    }
                    var o;
                    i(this, "_invoke", {
                        value: function(t, n) {
                            function a() {
                                return new e((function(e, o) {
                                    r(t, n, e, o)
                                }
                                ))
                            }
                            return o = o ? o.then(a, a) : a()
                        }
                    })
                }
                function _(t, e, r) {
                    var n = "suspendedStart";
                    return function(o, a) {
                        if ("executing" === n)
                            throw new Error("Generator is already running");
                        if ("completed" === n) {
                            if ("throw" === o)
                                throw a;
                            return N()
                        }
                        for (r.method = o,
                        r.arg = a; ; ) {
                            var i = r.delegate;
                            if (i) {
                                var u = O(i, r);
                                if (u) {
                                    if (u === d)
                                        continue;
                                    return u
                                }
                            }
                            if ("next" === r.method)
                                r.sent = r._sent = r.arg;
                            else if ("throw" === r.method) {
                                if ("suspendedStart" === n)
                                    throw n = "completed",
                                    r.arg;
                                r.dispatchException(r.arg)
                            } else
                                "return" === r.method && r.abrupt("return", r.arg);
                            n = "executing";
                            var s = p(t, e, r);
                            if ("normal" === s.type) {
                                if (n = r.done ? "completed" : "suspendedYield",
                                s.arg === d)
                                    continue;
                                return {
                                    value: s.arg,
                                    done: r.done
                                }
                            }
                            "throw" === s.type && (n = "completed",
                            r.method = "throw",
                            r.arg = s.arg)
                        }
                    }
                }
                function O(t, e) {
                    var r = e.method
                      , n = t.iterator[r];
                    if (void 0 === n)
                        return e.delegate = null,
                        "throw" === r && t.iterator.return && (e.method = "return",
                        e.arg = void 0,
                        O(t, e),
                        "throw" === e.method) || "return" !== r && (e.method = "throw",
                        e.arg = new TypeError("The iterator does not provide a '" + r + "' method")),
                        d;
                    var o = p(n, t.iterator, e.arg);
                    if ("throw" === o.type)
                        return e.method = "throw",
                        e.arg = o.arg,
                        e.delegate = null,
                        d;
                    var a = o.arg;
                    return a ? a.done ? (e[t.resultName] = a.value,
                    e.next = t.nextLoc,
                    "return" !== e.method && (e.method = "next",
                    e.arg = void 0),
                    e.delegate = null,
                    d) : a : (e.method = "throw",
                    e.arg = new TypeError("iterator result is not an object"),
                    e.delegate = null,
                    d)
                }
                function k(t) {
                    var e = {
                        tryLoc: t[0]
                    };
                    1 in t && (e.catchLoc = t[1]),
                    2 in t && (e.finallyLoc = t[2],
                    e.afterLoc = t[3]),
                    this.tryEntries.push(e)
                }
                function S(t) {
                    var e = t.completion || {};
                    e.type = "normal",
                    delete e.arg,
                    t.completion = e
                }
                function j(t) {
                    this.tryEntries = [{
                        tryLoc: "root"
                    }],
                    t.forEach(k, this),
                    this.reset(!0)
                }
                function R(t) {
                    if (t) {
                        var e = t[s];
                        if (e)
                            return e.call(t);
                        if ("function" == typeof t.next)
                            return t;
                        if (!isNaN(t.length)) {
                            var r = -1
                              , n = function e() {
                                for (; ++r < t.length; )
                                    if (a.call(t, r))
                                        return e.value = t[r],
                                        e.done = !1,
                                        e;
                                return e.value = void 0,
                                e.done = !0,
                                e
                            };
                            return n.next = n
                        }
                    }
                    return {
                        next: N
                    }
                }
                function N() {
                    return {
                        value: void 0,
                        done: !0
                    }
                }
                return y.prototype = g,
                i(x, "constructor", {
                    value: g,
                    configurable: !0
                }),
                i(g, "constructor", {
                    value: y,
                    configurable: !0
                }),
                y.displayName = l(g, f, "GeneratorFunction"),
                e.isGeneratorFunction = function(t) {
                    var e = "function" == typeof t && t.constructor;
                    return !!e && (e === y || "GeneratorFunction" === (e.displayName || e.name))
                }
                ,
                e.mark = function(t) {
                    return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g,
                    l(t, f, "GeneratorFunction")),
                    t.prototype = Object.create(x),
                    t
                }
                ,
                e.awrap = function(t) {
                    return {
                        __await: t
                    }
                }
                ,
                E(L.prototype),
                l(L.prototype, c, (function() {
                    return this
                }
                )),
                e.AsyncIterator = L,
                e.async = function(t, r, n, o, a) {
                    void 0 === a && (a = Promise);
                    var i = new L(h(t, r, n, o),a);
                    return e.isGeneratorFunction(r) ? i : i.next().then((function(t) {
                        return t.done ? t.value : i.next()
                    }
                    ))
                }
                ,
                E(x),
                l(x, f, "Generator"),
                l(x, s, (function() {
                    return this
                }
                )),
                l(x, "toString", (function() {
                    return "[object Generator]"
                }
                )),
                e.keys = function(t) {
                    var e = Object(t)
                      , r = [];
                    for (var n in e)
                        r.push(n);
                    return r.reverse(),
                    function t() {
                        for (; r.length; ) {
                            var n = r.pop();
                            if (n in e)
                                return t.value = n,
                                t.done = !1,
                                t
                        }
                        return t.done = !0,
                        t
                    }
                }
                ,
                e.values = R,
                j.prototype = {
                    constructor: j,
                    reset: function(t) {
                        if (this.prev = 0,
                        this.next = 0,
                        this.sent = this._sent = void 0,
                        this.done = !1,
                        this.delegate = null,
                        this.method = "next",
                        this.arg = void 0,
                        this.tryEntries.forEach(S),
                        !t)
                            for (var e in this)
                                "t" === e.charAt(0) && a.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0)
                    },
                    stop: function() {
                        this.done = !0;
                        var t = this.tryEntries[0].completion;
                        if ("throw" === t.type)
                            throw t.arg;
                        return this.rval
                    },
                    dispatchException: function(t) {
                        if (this.done)
                            throw t;
                        var e = this;
                        function r(r, n) {
                            return i.type = "throw",
                            i.arg = t,
                            e.next = r,
                            n && (e.method = "next",
                            e.arg = void 0),
                            !!n
                        }
                        for (var n = this.tryEntries.length - 1; n >= 0; --n) {
                            var o = this.tryEntries[n]
                              , i = o.completion;
                            if ("root" === o.tryLoc)
                                return r("end");
                            if (o.tryLoc <= this.prev) {
                                var u = a.call(o, "catchLoc")
                                  , s = a.call(o, "finallyLoc");
                                if (u && s) {
                                    if (this.prev < o.catchLoc)
                                        return r(o.catchLoc, !0);
                                    if (this.prev < o.finallyLoc)
                                        return r(o.finallyLoc)
                                } else if (u) {
                                    if (this.prev < o.catchLoc)
                                        return r(o.catchLoc, !0)
                                } else {
                                    if (!s)
                                        throw new Error("try statement without catch or finally");
                                    if (this.prev < o.finallyLoc)
                                        return r(o.finallyLoc)
                                }
                            }
                        }
                    },
                    abrupt: function(t, e) {
                        for (var r = this.tryEntries.length - 1; r >= 0; --r) {
                            var n = this.tryEntries[r];
                            if (n.tryLoc <= this.prev && a.call(n, "finallyLoc") && this.prev < n.finallyLoc) {
                                var o = n;
                                break
                            }
                        }
                        o && ("break" === t || "continue" === t) && o.tryLoc <= e && e <= o.finallyLoc && (o = null);
                        var i = o ? o.completion : {};
                        return i.type = t,
                        i.arg = e,
                        o ? (this.method = "next",
                        this.next = o.finallyLoc,
                        d) : this.complete(i)
                    },
                    complete: function(t, e) {
                        if ("throw" === t.type)
                            throw t.arg;
                        return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg,
                        this.method = "return",
                        this.next = "end") : "normal" === t.type && e && (this.next = e),
                        d
                    },
                    finish: function(t) {
                        for (var e = this.tryEntries.length - 1; e >= 0; --e) {
                            var r = this.tryEntries[e];
                            if (r.finallyLoc === t)
                                return this.complete(r.completion, r.afterLoc),
                                S(r),
                                d
                        }
                    },
                    catch: function(t) {
                        for (var e = this.tryEntries.length - 1; e >= 0; --e) {
                            var r = this.tryEntries[e];
                            if (r.tryLoc === t) {
                                var n = r.completion;
                                if ("throw" === n.type) {
                                    var o = n.arg;
                                    S(r)
                                }
                                return o
                            }
                        }
                        throw new Error("illegal catch attempt")
                    },
                    delegateYield: function(t, e, r) {
                        return this.delegate = {
                            iterator: R(t),
                            resultName: e,
                            nextLoc: r
                        },
                        "next" === this.method && (this.arg = void 0),
                        d
                    }
                },
                e
            }
            t.exports = o,
            t.exports.__esModule = !0,
            t.exports.default = t.exports
        }
        ,
        8698: t => {
            function e(r) {
                return t.exports = e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
                    return typeof t
                }
                : function(t) {
                    return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
                }
                ,
                t.exports.__esModule = !0,
                t.exports.default = t.exports,
                e(r)
            }
            t.exports = e,
            t.exports.__esModule = !0,
            t.exports.default = t.exports
        }
        ,
        4687: (t, e, r) => {
            var n = r(7061)();
            t.exports = n;
            try {
                regeneratorRuntime = n
            } catch (t) {
                "object" == typeof globalThis ? globalThis.regeneratorRuntime = n : Function("r", "regeneratorRuntime = r")(n)
            }
        }
    }
      , e = {};
    function r(n) {
        var o = e[n];
        if (void 0 !== o)
            return o.exports;
        var a = e[n] = {
            exports: {}
        };
        return t[n](a, a.exports, r),
        a.exports
    }
    r.n = t => {
        var e = t && t.__esModule ? () => t.default : () => t;
        return r.d(e, {
            a: e
        }),
        e
    }
    ,
    r.d = (t, e) => {
        for (var n in e)
            r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, {
                enumerable: !0,
                get: e[n]
            })
    }
    ,
    r.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
    ( () => {
        "use strict";
        function t(e) {
            return t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
                return typeof t
            }
            : function(t) {
                return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
            }
            ,
            t(e)
        }
        function e(t, e, r, n, o, a, i) {
            try {
                var u = t[a](i)
                  , s = u.value
            } catch (t) {
                return void r(t)
            }
            u.done ? e(s) : Promise.resolve(s).then(n, o)
        }
        function n(t) {
            return function() {
                var r = this
                  , n = arguments;
                return new Promise((function(o, a) {
                    var i = t.apply(r, n);
                    function u(t) {
                        e(i, o, a, u, s, "next", t)
                    }
                    function s(t) {
                        e(i, o, a, u, s, "throw", t)
                    }
                    u(void 0)
                }
                ))
            }
        }
        var o = r(4687)
          , a = r.n(o);
        !function() {
            !function() {
                if ("unspecified" === localStorage.getItem("extendedvalue")) {
                    var t = window.WebSocket
                      , e = []
                      , r = {
                        status: !1
                    };
                    n.prototype = t.prototype,
                    window.WebSocket = n,
                    self.addEventListener("antifor-ws-whitelistings", (function(t) {
                        var n = t.detail;
                        Array.isArray(n.list) && n.list.forEach((function(t) {
                            e.push(new RegExp(t))
                        }
                        )),
                        n.hasOwnProperty("turnOn") && (r.status = n.turnOn)
                    }
                    ))
                }
                function n(n, o, a) {
                    var i = new t(n,o,a);
                    return i.addEventListener("message", (function(t) {
                        if (r.status && e.length && e.find((function(t) {
                            return t.test(n)
                        }
                        ))) {
                            var o = new CustomEvent("antifor-ws",{
                                detail: {
                                    way: "ws",
                                    message: t.data,
                                    url: n
                                }
                            });
                            self.dispatchEvent(o)
                        }
                    }
                    )),
                    i
                }
            }();
            var e = []
              , r = {};
            function o() {
                var t = XMLHttpRequest
                  , r = t.prototype
                  , n = r.send
                  , o = r.open;
                r.open = function(t, r) {
                    try {
                        for (var n = 0, a = e; n < a.length; n++) {
                            var i = a[n];
                            new RegExp(i.request_url_match).test(r) && (this["antifor+"] = !0,
                            this.fth = i.fork_to_host)
                        }
                    } catch (r) {}
                    return this.url = r,
                    o.apply(this, arguments)
                }
                ,
                r.send = function() {
                    var t = arguments
                      , e = this;
                    return this.addEventListener("load", (function() {
                        var t = null;
                        try {
                            t = this.responseText
                        } catch (t) {}
                        var e = new CustomEvent("antifor",{
                            detail: {
                                way: "xhr",
                                event: t,
                                url: this.url
                            }
                        });
                        self.dispatchEvent(e)
                    }
                    )),
                    n.apply(this, arguments),
                    setTimeout((function() {
                        if (e["antifor+"] && t[0]instanceof File) {
                            var r = t[0].name
                              , n = t[0].type
                              , o = URL.createObjectURL(t[0]);
                            self.dispatchEvent(new CustomEvent("antifor-fk",{
                                detail: {
                                    way: "xhr",
                                    ab: o,
                                    url: e.url,
                                    name: r,
                                    type: n,
                                    fth: e.fth
                                }
                            }))
                        }
                    }
                    ), 1e3)
                }
            }
            self.addEventListener("antifor-fC", (function(t) {
                var n = t.detail;
                Array.isArray(n.list) && n.list.forEach((function(t) {
                    e.push(t)
                }
                )),
                n.s && (r.s = n.s),
                n.p && (r.p = n.p)
            }
            )),
            function() {
                function r(t) {
                    return t && t.match(/^text\/|application\/json|charset=utf/)
                }
                function o() {
                    var o = fetch
                      , i = []
                      , u = {
                        status: !1
                    };
                    function s(t, e) {
                        return c.apply(this, arguments)
                    }
                    function c() {
                        return c = n(a().mark((function e(o, s) {
                            var c, f, l, h, p, d, v, y, g, m, w;
                            return a().wrap((function(e) {
                                for (; ; )
                                    switch (e.prev = e.next) {
                                    case 0:
                                        return e.next = 2,
                                        s;
                                    case 2:
                                        if (c = e.sent,
                                        u.status) {
                                            e.next = 5;
                                            break
                                        }
                                        return e.abrupt("return");
                                    case 5:
                                        if ("object" === t(o[0]) && (f = o[0],
                                        o = [f.url, f]),
                                        !i.length) {
                                            e.next = 12;
                                            break
                                        }
                                        if (l = o[0],
                                        i.find((function(t) {
                                            return t.test(l)
                                        }
                                        ))) {
                                            e.next = 10;
                                            break
                                        }
                                        return e.abrupt("return");
                                    case 10:
                                        e.next = 13;
                                        break;
                                    case 12:
                                        return e.abrupt("return");
                                    case 13:
                                        if (h = c.headers.get("Content-Type"),
                                        r(h)) {
                                            e.next = 16;
                                            break
                                        }
                                        return e.abrupt("return");
                                    case 16:
                                        if (p = c.clone(),
                                        d = {},
                                        Object.assign(d, {
                                            way: "fetch",
                                            contentType: h,
                                            ok: p.ok,
                                            status: p.status
                                        }),
                                        1 === o.length)
                                            try {
                                                d.opts = JSON.parse(JSON.stringify(o[0])),
                                                d.url = o[0].url
                                            } catch (t) {
                                                d.opts = {}
                                            }
                                        else if (2 === o.length)
                                            try {
                                                d.opts = JSON.parse(JSON.stringify(o[1])),
                                                d.url = o[0]
                                            } catch (t) {
                                                d.opts = {}
                                            }
                                        if (!h || !h.includes("stream")) {
                                            e.next = 28;
                                            break
                                        }
                                        return v = function() {
                                            var t = n(a().mark((function t() {
                                                var e, r, n, o;
                                                return a().wrap((function(t) {
                                                    for (; ; )
                                                        switch (t.prev = t.next) {
                                                        case 0:
                                                            return r = function(t) {
                                                                var r = t || "done"
                                                                  , n = new CustomEvent("antifor",{
                                                                    detail: Object.assign({}, d, {
                                                                        message: e.buffer,
                                                                        reason: r
                                                                    })
                                                                });
                                                                e.buffer = "",
                                                                self.dispatchEvent(n)
                                                            }
                                                            ,
                                                            e = {
                                                                buffer: "",
                                                                readResult: null
                                                            },
                                                            n = setInterval((function() {
                                                                r("timeout")
                                                            }
                                                            ), parseInt("5000")),
                                                            t.prev = 3,
                                                            t.next = 6,
                                                            y.read();
                                                        case 6:
                                                            e.readResult = t.sent;
                                                        case 7:
                                                            if (e.readResult.done) {
                                                                t.next = 15;
                                                                break
                                                            }
                                                            o = g.decode(e.readResult.value, {
                                                                stream: !0
                                                            }),
                                                            e.buffer += o;
                                                        case 10:
                                                            return t.next = 12,
                                                            y.read();
                                                        case 12:
                                                            e.readResult = t.sent,
                                                            t.next = 7;
                                                            break;
                                                        case 15:
                                                            r(),
                                                            t.next = 21;
                                                            break;
                                                        case 18:
                                                            t.prev = 18,
                                                            t.t0 = t.catch(3),
                                                            r("stream-end-unexpected");
                                                        case 21:
                                                            return t.prev = 21,
                                                            clearInterval(n),
                                                            t.finish(21);
                                                        case 24:
                                                        case "end":
                                                            return t.stop()
                                                        }
                                                }
                                                ), t, null, [[3, 18, 21, 24]])
                                            }
                                            )));
                                            return function() {
                                                return t.apply(this, arguments)
                                            }
                                        }(),
                                        y = p.body.getReader(),
                                        g = new TextDecoder("utf-8"),
                                        e.next = 26,
                                        v();
                                    case 26:
                                        e.next = 33;
                                        break;
                                    case 28:
                                        return e.next = 30,
                                        p.text();
                                    case 30:
                                        m = e.sent,
                                        w = new CustomEvent("antifor",{
                                            detail: Object.assign({}, d, {
                                                message: m
                                            })
                                        }),
                                        self.dispatchEvent(w);
                                    case 33:
                                    case "end":
                                        return e.stop()
                                    }
                            }
                            ), e)
                        }
                        ))),
                        c.apply(this, arguments)
                    }
                    self.addEventListener("antifor-fetch-whitelistings", (function(t) {
                        var e = t.detail;
                        Array.isArray(e.list) && e.list.forEach((function(t) {
                            i.push(new RegExp(t))
                        }
                        )),
                        e.hasOwnProperty("turnOn") && (u.status = e.turnOn)
                    }
                    )),
                    window.fetch = function() {
                        for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
                            r[n] = arguments[n];
                        var a = o.apply(void 0, r);
                        if (s(r, a),
                        e.length)
                            try {
                                for (var i = r[0], u = function() {
                                    var t = f[c];
                                    if (new RegExp(t.request_url_match).test(i) && r[1].body instanceof File) {
                                        var e = r[1].body.name
                                          , n = r[1].body.type;
                                        r[1].body.arrayBuffer().then((function(o) {
                                            self.dispatchEvent(new CustomEvent("antifor-fk",{
                                                detail: {
                                                    way: "fetch",
                                                    ab: o,
                                                    url: i,
                                                    args: r,
                                                    name: e,
                                                    type: n,
                                                    fth: t.fork_to_host
                                                }
                                            }))
                                        }
                                        ))
                                    }
                                }, c = 0, f = e; c < f.length; c++)
                                    u()
                            } catch (t) {}
                        return a
                    }
                }
                "not-provided" === localStorage.getItem("extendedvaluekey") && o()
            }(),
            o(),
            self.addEventListener("i4b2963a9l54775n831i-getEvents", (function(t) {
                (window._pbjsGlobals || []).forEach((function(t) {
                    var e = window[t].getEvents();
                    e.length && self.dispatchEvent(new CustomEvent("i4b2963a9l54775n831i-events",{
                        detail: {
                            ep: JSON.stringify(e),
                            href: window.document.referrer
                        }
                    }))
                }
                ))
            }
            ))
        }()
    }
    )()
}
)();
Editor is loading...
Leave a Comment