// Author Maasea Build: 2023/12/15 19:46:49
(() => {
    (function (l) {
        function e() {
        }

        function t() {
        }

        var n = String.fromCharCode, i = {}.toString, r = i.call(l.SharedArrayBuffer), f = i(), s = l.Uint8Array,
            o = s || Array, a = s ? ArrayBuffer : o, u = a.isView || function (B) {
                return B && "length" in B
            }, g = i.call(a.prototype);
        a = t.prototype;
        var k = l.TextEncoder, m = new (s ? Uint16Array : o)(32);
        e.prototype.decode = function (B) {
            if (!u(B)) {
                var L = i.call(B);
                if (L !== g && L !== r && L !== f) throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");
                B = s ? new o(B) : B || []
            }
            for (var N = L = "", w = 0, R = B.length | 0, le = R - 32 | 0, O, W, $ = 0, J = 0, D, j = 0, S = -1; w < R;) {
                for (O = w <= le ? 32 : R - w | 0; j < O; w = w + 1 | 0, j = j + 1 | 0) {
                    switch (W = B[w] & 255, W >> 4) {
                        case 15:
                            if (D = B[w = w + 1 | 0] & 255, D >> 6 !== 2 || 247 < W) {
                                w = w - 1 | 0;
                                break
                            }
                            $ = (W & 7) << 6 | D & 63, J = 5, W = 256;
                        case 14:
                            D = B[w = w + 1 | 0] & 255, $ <<= 6, $ |= (W & 15) << 6 | D & 63, J = D >> 6 === 2 ? J + 4 | 0 : 24, W = W + 256 & 768;
                        case 13:
                        case 12:
                            D = B[w = w + 1 | 0] & 255, $ <<= 6, $ |= (W & 31) << 6 | D & 63, J = J + 7 | 0, w < R && D >> 6 === 2 && $ >> J && 1114112 > $ ? (W = $, $ = $ - 65536 | 0, 0 <= $ && (S = ($ >> 10) + 55296 | 0, W = ($ & 1023) + 56320 | 0, 31 > j ? (m[j] = S, j = j + 1 | 0, S = -1) : (D = S, S = W, W = D))) : (W >>= 8, w = w - W - 1 | 0, W = 65533), $ = J = 0, O = w <= le ? 32 : R - w | 0;
                        default:
                            m[j] = W;
                            continue;
                        case 11:
                        case 10:
                        case 9:
                        case 8:
                    }
                    m[j] = 65533
                }
                if (N += n(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15], m[16], m[17], m[18], m[19], m[20], m[21], m[22], m[23], m[24], m[25], m[26], m[27], m[28], m[29], m[30], m[31]), 32 > j && (N = N.slice(0, j - 32 | 0)), w < R) {
                    if (m[0] = S, j = ~S >>> 31, S = -1, N.length < L.length) continue
                } else S !== -1 && (N += n(S));
                L += N, N = ""
            }
            return L
        }, a.encode = function (B) {
            B = B === void 0 ? "" : "" + B;
            var L = B.length | 0, N = new o((L << 1) + 8 | 0), w, R = 0, le = !s;
            for (w = 0; w < L; w = w + 1 | 0, R = R + 1 | 0) {
                var O = B.charCodeAt(w) | 0;
                if (127 >= O) N[R] = O; else {
                    if (2047 >= O) N[R] = 192 | O >> 6; else {
                        e:{
                            if (55296 <= O) if (56319 >= O) {
                                var W = B.charCodeAt(w = w + 1 | 0) | 0;
                                if (56320 <= W && 57343 >= W) {
                                    if (O = (O << 10) + W - 56613888 | 0, 65535 < O) {
                                        N[R] = 240 | O >> 18, N[R = R + 1 | 0] = 128 | O >> 12 & 63, N[R = R + 1 | 0] = 128 | O >> 6 & 63, N[R = R + 1 | 0] = 128 | O & 63;
                                        continue
                                    }
                                    break e
                                }
                                O = 65533
                            } else 57343 >= O && (O = 65533);
                            !le && w << 1 < R && w << 1 < (R - 7 | 0) && (le = !0, W = new o(3 * L), W.set(N), N = W)
                        }
                        N[R] = 224 | O >> 12, N[R = R + 1 | 0] = 128 | O >> 6 & 63
                    }
                    N[R = R + 1 | 0] = 128 | O & 63
                }
            }
            return s ? N.subarray(0, R) : N.slice(0, R)
        }, k || (l.TextDecoder = e, l.TextEncoder = t)
    })(globalThis);

    function ce(l) {
        let e = typeof l;
        if (e == "object") {
            if (Array.isArray(l)) return "array";
            if (l === null) return "null"
        }
        return e
    }

    function Ai(l) {
        return l !== null && typeof l == "object" && !Array.isArray(l)
    }

    var M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), de = [];
    for (let l = 0; l < M.length; l++) de[M[l].charCodeAt(0)] = l;
    de["-".charCodeAt(0)] = M.indexOf("+");
    de["_".charCodeAt(0)] = M.indexOf("/");

    function _i(l) {
        let e = l.length * 3 / 4;
        l[l.length - 2] == "=" ? e -= 2 : l[l.length - 1] == "=" && (e -= 1);
        let t = new Uint8Array(e), n = 0, i = 0, r, f = 0;
        for (let s = 0; s < l.length; s++) {
            if (r = de[l.charCodeAt(s)], r === void 0) switch (l[s]) {
                case"=":
                    i = 0;
                case`
`:
                case"\r":
                case"	":
                case" ":
                    continue;
                default:
                    throw Error("invalid base64 string.")
            }
            switch (i) {
                case 0:
                    f = r, i = 1;
                    break;
                case 1:
                    t[n++] = f << 2 | (r & 48) >> 4, f = r, i = 2;
                    break;
                case 2:
                    t[n++] = (f & 15) << 4 | (r & 60) >> 2, f = r, i = 3;
                    break;
                case 3:
                    t[n++] = (f & 3) << 6 | r, i = 0;
                    break
            }
        }
        if (i == 1) throw Error("invalid base64 string.");
        return t.subarray(0, n)
    }

    function Vi(l) {
        let e = "", t = 0, n, i = 0;
        for (let r = 0; r < l.length; r++) switch (n = l[r], t) {
            case 0:
                e += M[n >> 2], i = (n & 3) << 4, t = 1;
                break;
            case 1:
                e += M[i | n >> 4], i = (n & 15) << 2, t = 2;
                break;
            case 2:
                e += M[i | n >> 6], e += M[n & 63], t = 0;
                break
        }
        return t && (e += M[i], e += "=", t == 1 && (e += "=")), e
    }

    var c;
    (function (l) {
        l.symbol = Symbol.for("protobuf-ts/unknown"), l.onRead = (t, n, i, r, f) => {
            (e(n) ? n[l.symbol] : n[l.symbol] = []).push({no: i, wireType: r, data: f})
        }, l.onWrite = (t, n, i) => {
            for (let {no: r, wireType: f, data: s} of l.list(n)) i.tag(r, f).raw(s)
        }, l.list = (t, n) => {
            if (e(t)) {
                let i = t[l.symbol];
                return n ? i.filter(r => r.no == n) : i
            }
            return []
        }, l.last = (t, n) => l.list(t, n).slice(-1)[0];
        let e = t => t && Array.isArray(t[l.symbol])
    })(c || (c = {}));
    var d;
    (function (l) {
        l[l.Varint = 0] = "Varint", l[l.Bit64 = 1] = "Bit64", l[l.LengthDelimited = 2] = "LengthDelimited", l[l.StartGroup = 3] = "StartGroup", l[l.EndGroup = 4] = "EndGroup", l[l.Bit32 = 5] = "Bit32"
    })(d || (d = {}));

    function vi() {
        let l = 0, e = 0;
        for (let n = 0; n < 28; n += 7) {
            let i = this.buf[this.pos++];
            if (l |= (i & 127) << n, !(i & 128)) return this.assertBounds(), [l, e]
        }
        let t = this.buf[this.pos++];
        if (l |= (t & 15) << 28, e = (t & 112) >> 4, !(t & 128)) return this.assertBounds(), [l, e];
        for (let n = 3; n <= 31; n += 7) {
            let i = this.buf[this.pos++];
            if (e |= (i & 127) << n, !(i & 128)) return this.assertBounds(), [l, e]
        }
        throw new Error("invalid varint")
    }

    function pe(l, e, t) {
        for (let r = 0; r < 28; r = r + 7) {
            let f = l >>> r, s = !(!(f >>> 7) && e == 0), o = (s ? f | 128 : f) & 255;
            if (t.push(o), !s) return
        }
        let n = l >>> 28 & 15 | (e & 7) << 4, i = !!(e >> 3);
        if (t.push((i ? n | 128 : n) & 255), !!i) {
            for (let r = 3; r < 31; r = r + 7) {
                let f = e >>> r, s = !!(f >>> 7), o = (s ? f | 128 : f) & 255;
                if (t.push(o), !s) return
            }
            t.push(e >>> 31 & 1)
        }
    }

    var he = (1 << 16) * (1 << 16);

    function $e(l) {
        let e = l[0] == "-";
        e && (l = l.slice(1));
        let t = 1e6, n = 0, i = 0;

        function r(f, s) {
            let o = Number(l.slice(f, s));
            i *= t, n = n * t + o, n >= he && (i = i + (n / he | 0), n = n % he)
        }

        return r(-24, -18), r(-18, -12), r(-12, -6), r(-6), [e, n, i]
    }

    function ye(l, e) {
        if (e <= 2097151) return "" + (he * e + (l >>> 0));
        let t = l & 16777215, n = (l >>> 24 | e << 8) >>> 0 & 16777215, i = e >> 16 & 65535,
            r = t + n * 6777216 + i * 6710656, f = n + i * 8147497, s = i * 2, o = 1e7;
        r >= o && (f += Math.floor(r / o), r %= o), f >= o && (s += Math.floor(f / o), f %= o);

        function a(u, g) {
            let k = u ? String(u) : "";
            return g ? "0000000".slice(k.length) + k : k
        }

        return a(s, 0) + a(f, s) + a(r, 1)
    }

    function Ce(l, e) {
        if (l >= 0) {
            for (; l > 127;) e.push(l & 127 | 128), l = l >>> 7;
            e.push(l)
        } else {
            for (let t = 0; t < 9; t++) e.push(l & 127 | 128), l = l >> 7;
            e.push(1)
        }
    }

    function Ki() {
        let l = this.buf[this.pos++], e = l & 127;
        if (!(l & 128)) return this.assertBounds(), e;
        if (l = this.buf[this.pos++], e |= (l & 127) << 7, !(l & 128)) return this.assertBounds(), e;
        if (l = this.buf[this.pos++], e |= (l & 127) << 14, !(l & 128)) return this.assertBounds(), e;
        if (l = this.buf[this.pos++], e |= (l & 127) << 21, !(l & 128)) return this.assertBounds(), e;
        l = this.buf[this.pos++], e |= (l & 15) << 28;
        for (let t = 5; l & 128 && t < 10; t++) l = this.buf[this.pos++];
        if (l & 128) throw new Error("invalid varint");
        return this.assertBounds(), e >>> 0
    }

    function mr() {
        let l = new DataView(new ArrayBuffer(8));
        return globalThis.BigInt !== void 0 && typeof l.getBigInt64 == "function" && typeof l.getBigUint64 == "function" && typeof l.setBigInt64 == "function" && typeof l.setBigUint64 == "function" ? {
            MIN: BigInt("-9223372036854775808"),
            MAX: BigInt("9223372036854775807"),
            UMIN: BigInt("0"),
            UMAX: BigInt("18446744073709551615"),
            C: BigInt,
            V: l
        } : void 0
    }

    var I = mr();

    function Gi(l) {
        if (!l) throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")
    }

    var Ji = /^-?[0-9]+$/, Fe = (1 << 16) * (1 << 16), me = class {
        constructor(e, t) {
            this.lo = e | 0, this.hi = t | 0
        }

        isZero() {
            return this.lo == 0 && this.hi == 0
        }

        toNumber() {
            let e = this.hi * Fe + (this.lo >>> 0);
            if (!Number.isSafeInteger(e)) throw new Error("cannot convert to safe number");
            return e
        }
    }, x = class extends me {
        static from(e) {
            if (I) switch (typeof e) {
                case"string":
                    if (e == "0") return this.ZERO;
                    if (e == "") throw new Error("string is no integer");
                    e = I.C(e);
                case"number":
                    if (e === 0) return this.ZERO;
                    e = I.C(e);
                case"bigint":
                    if (!e) return this.ZERO;
                    if (e < I.UMIN) throw new Error("signed value for ulong");
                    if (e > I.UMAX) throw new Error("ulong too large");
                    return I.V.setBigUint64(0, e, !0), new x(I.V.getInt32(0, !0), I.V.getInt32(4, !0))
            } else switch (typeof e) {
                case"string":
                    if (e == "0") return this.ZERO;
                    if (e = e.trim(), !Ji.test(e)) throw new Error("string is no integer");
                    let [t, n, i] = $e(e);
                    if (t) throw new Error("signed value");
                    return new x(n, i);
                case"number":
                    if (e == 0) return this.ZERO;
                    if (!Number.isSafeInteger(e)) throw new Error("number is no integer");
                    if (e < 0) throw new Error("signed value for ulong");
                    return new x(e, e / Fe)
            }
            throw new Error("unknown value " + typeof e)
        }

        toString() {
            return I ? this.toBigInt().toString() : ye(this.lo, this.hi)
        }

        toBigInt() {
            return Gi(I), I.V.setInt32(0, this.lo, !0), I.V.setInt32(4, this.hi, !0), I.V.getBigUint64(0, !0)
        }
    };
    x.ZERO = new x(0, 0);
    var T = class extends me {
        static from(e) {
            if (I) switch (typeof e) {
                case"string":
                    if (e == "0") return this.ZERO;
                    if (e == "") throw new Error("string is no integer");
                    e = I.C(e);
                case"number":
                    if (e === 0) return this.ZERO;
                    e = I.C(e);
                case"bigint":
                    if (!e) return this.ZERO;
                    if (e < I.MIN) throw new Error("ulong too small");
                    if (e > I.MAX) throw new Error("ulong too large");
                    return I.V.setBigInt64(0, e, !0), new T(I.V.getInt32(0, !0), I.V.getInt32(4, !0))
            } else switch (typeof e) {
                case"string":
                    if (e == "0") return this.ZERO;
                    if (e = e.trim(), !Ji.test(e)) throw new Error("string is no integer");
                    let [t, n, i] = $e(e), r = new T(n, i);
                    return t ? r.negate() : r;
                case"number":
                    if (e == 0) return this.ZERO;
                    if (!Number.isSafeInteger(e)) throw new Error("number is no integer");
                    return e > 0 ? new T(e, e / Fe) : new T(-e, -e / Fe).negate()
            }
            throw new Error("unknown value " + typeof e)
        }

        isNegative() {
            return (this.hi & 2147483648) !== 0
        }

        negate() {
            let e = ~this.hi, t = this.lo;
            return t ? t = ~t + 1 : e += 1, new T(t, e)
        }

        toString() {
            if (I) return this.toBigInt().toString();
            if (this.isNegative()) {
                let e = this.negate();
                return "-" + ye(e.lo, e.hi)
            }
            return ye(this.lo, this.hi)
        }

        toBigInt() {
            return Gi(I), I.V.setInt32(0, this.lo, !0), I.V.setInt32(4, this.hi, !0), I.V.getBigInt64(0, !0)
        }
    };
    T.ZERO = new T(0, 0);
    var Xi = {readUnknownField: !0, readerFactory: l => new Le(l)};

    function qi(l) {
        return l ? Object.assign(Object.assign({}, Xi), l) : Xi
    }

    var Le = class {
        constructor(e, t) {
            this.varint64 = vi, this.uint32 = Ki, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder("utf-8", {
                fatal: !0,
                ignoreBOM: !0
            })
        }

        tag() {
            let e = this.uint32(), t = e >>> 3, n = e & 7;
            if (t <= 0 || n < 0 || n > 5) throw new Error("illegal tag: field no " + t + " wire type " + n);
            return [t, n]
        }

        skip(e) {
            let t = this.pos;
            switch (e) {
                case d.Varint:
                    for (; this.buf[this.pos++] & 128;) ;
                    break;
                case d.Bit64:
                    this.pos += 4;
                case d.Bit32:
                    this.pos += 4;
                    break;
                case d.LengthDelimited:
                    let n = this.uint32();
                    this.pos += n;
                    break;
                case d.StartGroup:
                    let i;
                    for (; (i = this.tag()[1]) !== d.EndGroup;) this.skip(i);
                    break;
                default:
                    throw new Error("cant skip wire type " + e)
            }
            return this.assertBounds(), this.buf.subarray(t, this.pos)
        }

        assertBounds() {
            if (this.pos > this.len) throw new RangeError("premature EOF")
        }

        int32() {
            return this.uint32() | 0
        }

        sint32() {
            let e = this.uint32();
            return e >>> 1 ^ -(e & 1)
        }

        int64() {
            return new T(...this.varint64())
        }

        uint64() {
            return new x(...this.varint64())
        }

        sint64() {
            let [e, t] = this.varint64(), n = -(e & 1);
            return e = (e >>> 1 | (t & 1) << 31) ^ n, t = t >>> 1 ^ n, new T(e, t)
        }

        bool() {
            let [e, t] = this.varint64();
            return e !== 0 || t !== 0
        }

        fixed32() {
            return this.view.getUint32((this.pos += 4) - 4, !0)
        }

        sfixed32() {
            return this.view.getInt32((this.pos += 4) - 4, !0)
        }

        fixed64() {
            return new x(this.sfixed32(), this.sfixed32())
        }

        sfixed64() {
            return new T(this.sfixed32(), this.sfixed32())
        }

        float() {
            return this.view.getFloat32((this.pos += 4) - 4, !0)
        }

        double() {
            return this.view.getFloat64((this.pos += 8) - 8, !0)
        }

        bytes() {
            let e = this.uint32(), t = this.pos;
            return this.pos += e, this.assertBounds(), this.buf.subarray(t, t + e)
        }

        string() {
            return this.textDecoder.decode(this.bytes())
        }
    };

    function b(l, e) {
        if (!l) throw new Error(e)
    }

    var gr = 34028234663852886e22, wr = -34028234663852886e22, br = 4294967295, kr = 2147483647, Br = -2147483648;

    function v(l) {
        if (typeof l != "number") throw new Error("invalid int 32: " + typeof l);
        if (!Number.isInteger(l) || l > kr || l < Br) throw new Error("invalid int 32: " + l)
    }

    function X(l) {
        if (typeof l != "number") throw new Error("invalid uint 32: " + typeof l);
        if (!Number.isInteger(l) || l > br || l < 0) throw new Error("invalid uint 32: " + l)
    }

    function q(l) {
        if (typeof l != "number") throw new Error("invalid float 32: " + typeof l);
        if (Number.isFinite(l) && (l > gr || l < wr)) throw new Error("invalid float 32: " + l)
    }

    var Yi = {writeUnknownFields: !0, writerFactory: () => new je};

    function Zi(l) {
        return l ? Object.assign(Object.assign({}, Yi), l) : Yi
    }

    var je = class {
        constructor(e) {
            this.stack = [], this.textEncoder = e ?? new TextEncoder, this.chunks = [], this.buf = []
        }

        finish() {
            this.chunks.push(new Uint8Array(this.buf));
            let e = 0;
            for (let i = 0; i < this.chunks.length; i++) e += this.chunks[i].length;
            let t = new Uint8Array(e), n = 0;
            for (let i = 0; i < this.chunks.length; i++) t.set(this.chunks[i], n), n += this.chunks[i].length;
            return this.chunks = [], t
        }

        fork() {
            return this.stack.push({chunks: this.chunks, buf: this.buf}), this.chunks = [], this.buf = [], this
        }

        join() {
            let e = this.finish(), t = this.stack.pop();
            if (!t) throw new Error("invalid state, fork stack empty");
            return this.chunks = t.chunks, this.buf = t.buf, this.uint32(e.byteLength), this.raw(e)
        }

        tag(e, t) {
            return this.uint32((e << 3 | t) >>> 0)
        }

        raw(e) {
            return this.buf.length && (this.chunks.push(new Uint8Array(this.buf)), this.buf = []), this.chunks.push(e), this
        }

        uint32(e) {
            for (X(e); e > 127;) this.buf.push(e & 127 | 128), e = e >>> 7;
            return this.buf.push(e), this
        }

        int32(e) {
            return v(e), Ce(e, this.buf), this
        }

        bool(e) {
            return this.buf.push(e ? 1 : 0), this
        }

        bytes(e) {
            return this.uint32(e.byteLength), this.raw(e)
        }

        string(e) {
            let t = this.textEncoder.encode(e);
            return this.uint32(t.byteLength), this.raw(t)
        }

        float(e) {
            q(e);
            let t = new Uint8Array(4);
            return new DataView(t.buffer).setFloat32(0, e, !0), this.raw(t)
        }

        double(e) {
            let t = new Uint8Array(8);
            return new DataView(t.buffer).setFloat64(0, e, !0), this.raw(t)
        }

        fixed32(e) {
            X(e);
            let t = new Uint8Array(4);
            return new DataView(t.buffer).setUint32(0, e, !0), this.raw(t)
        }

        sfixed32(e) {
            v(e);
            let t = new Uint8Array(4);
            return new DataView(t.buffer).setInt32(0, e, !0), this.raw(t)
        }

        sint32(e) {
            return v(e), e = (e << 1 ^ e >> 31) >>> 0, Ce(e, this.buf), this
        }

        sfixed64(e) {
            let t = new Uint8Array(8), n = new DataView(t.buffer), i = T.from(e);
            return n.setInt32(0, i.lo, !0), n.setInt32(4, i.hi, !0), this.raw(t)
        }

        fixed64(e) {
            let t = new Uint8Array(8), n = new DataView(t.buffer), i = x.from(e);
            return n.setInt32(0, i.lo, !0), n.setInt32(4, i.hi, !0), this.raw(t)
        }

        int64(e) {
            let t = T.from(e);
            return pe(t.lo, t.hi, this.buf), this
        }

        sint64(e) {
            let t = T.from(e), n = t.hi >> 31, i = t.lo << 1 ^ n, r = (t.hi << 1 | t.lo >>> 31) ^ n;
            return pe(i, r, this.buf), this
        }

        uint64(e) {
            let t = x.from(e);
            return pe(t.lo, t.hi, this.buf), this
        }
    };
    var zi = {emitDefaultValues: !1, enumAsInteger: !1, useProtoFieldName: !1, prettySpaces: 0},
        Qi = {ignoreUnknownFields: !1};

    function Hi(l) {
        return l ? Object.assign(Object.assign({}, Qi), l) : Qi
    }

    function er(l) {
        return l ? Object.assign(Object.assign({}, zi), l) : zi
    }

    var y = Symbol.for("protobuf-ts/message-type");

    function De(l) {
        let e = !1, t = [];
        for (let n = 0; n < l.length; n++) {
            let i = l.charAt(n);
            i == "_" ? e = !0 : /\d/.test(i) ? (t.push(i), e = !0) : e ? (t.push(i.toUpperCase()), e = !1) : n == 0 ? t.push(i.toLowerCase()) : t.push(i)
        }
        return t.join("")
    }

    var h;
    (function (l) {
        l[l.DOUBLE = 1] = "DOUBLE", l[l.FLOAT = 2] = "FLOAT", l[l.INT64 = 3] = "INT64", l[l.UINT64 = 4] = "UINT64", l[l.INT32 = 5] = "INT32", l[l.FIXED64 = 6] = "FIXED64", l[l.FIXED32 = 7] = "FIXED32", l[l.BOOL = 8] = "BOOL", l[l.STRING = 9] = "STRING", l[l.BYTES = 12] = "BYTES", l[l.UINT32 = 13] = "UINT32", l[l.SFIXED32 = 15] = "SFIXED32", l[l.SFIXED64 = 16] = "SFIXED64", l[l.SINT32 = 17] = "SINT32", l[l.SINT64 = 18] = "SINT64"
    })(h || (h = {}));
    var E;
    (function (l) {
        l[l.BIGINT = 0] = "BIGINT", l[l.STRING = 1] = "STRING", l[l.NUMBER = 2] = "NUMBER"
    })(E || (E = {}));
    var fe;
    (function (l) {
        l[l.NO = 0] = "NO", l[l.PACKED = 1] = "PACKED", l[l.UNPACKED = 2] = "UNPACKED"
    })(fe || (fe = {}));

    function tr(l) {
        var e, t, n, i;
        return l.localName = (e = l.localName) !== null && e !== void 0 ? e : De(l.name), l.jsonName = (t = l.jsonName) !== null && t !== void 0 ? t : De(l.name), l.repeat = (n = l.repeat) !== null && n !== void 0 ? n : fe.NO, l.opt = (i = l.opt) !== null && i !== void 0 ? i : l.repeat || l.oneof ? !1 : l.kind == "message", l
    }

    function nr(l) {
        if (typeof l != "object" || l === null || !l.hasOwnProperty("oneofKind")) return !1;
        switch (typeof l.oneofKind) {
            case"string":
                return l[l.oneofKind] === void 0 ? !1 : Object.keys(l).length == 2;
            case"undefined":
                return Object.keys(l).length == 1;
            default:
                return !1
        }
    }

    var ge = class {
        constructor(e) {
            var t;
            this.fields = (t = e.fields) !== null && t !== void 0 ? t : []
        }

        prepare() {
            if (this.data) return;
            let e = [], t = [], n = [];
            for (let i of this.fields) if (i.oneof) n.includes(i.oneof) || (n.push(i.oneof), e.push(i.oneof), t.push(i.oneof)); else switch (t.push(i.localName), i.kind) {
                case"scalar":
                case"enum":
                    (!i.opt || i.repeat) && e.push(i.localName);
                    break;
                case"message":
                    i.repeat && e.push(i.localName);
                    break;
                case"map":
                    e.push(i.localName);
                    break
            }
            this.data = {req: e, known: t, oneofs: Object.values(n)}
        }

        is(e, t, n = !1) {
            if (t < 0) return !0;
            if (e == null || typeof e != "object") return !1;
            this.prepare();
            let i = Object.keys(e), r = this.data;
            if (i.length < r.req.length || r.req.some(f => !i.includes(f)) || !n && i.some(f => !r.known.includes(f))) return !1;
            if (t < 1) return !0;
            for (let f of r.oneofs) {
                let s = e[f];
                if (!nr(s)) return !1;
                if (s.oneofKind === void 0) continue;
                let o = this.fields.find(a => a.localName === s.oneofKind);
                if (!o || !this.field(s[s.oneofKind], o, n, t)) return !1
            }
            for (let f of this.fields) if (f.oneof === void 0 && !this.field(e[f.localName], f, n, t)) return !1;
            return !0
        }

        field(e, t, n, i) {
            let r = t.repeat;
            switch (t.kind) {
                case"scalar":
                    return e === void 0 ? t.opt : r ? this.scalars(e, t.T, i, t.L) : this.scalar(e, t.T, t.L);
                case"enum":
                    return e === void 0 ? t.opt : r ? this.scalars(e, h.INT32, i) : this.scalar(e, h.INT32);
                case"message":
                    return e === void 0 ? !0 : r ? this.messages(e, t.T(), n, i) : this.message(e, t.T(), n, i);
                case"map":
                    if (typeof e != "object" || e === null) return !1;
                    if (i < 2) return !0;
                    if (!this.mapKeys(e, t.K, i)) return !1;
                    switch (t.V.kind) {
                        case"scalar":
                            return this.scalars(Object.values(e), t.V.T, i, t.V.L);
                        case"enum":
                            return this.scalars(Object.values(e), h.INT32, i);
                        case"message":
                            return this.messages(Object.values(e), t.V.T(), n, i)
                    }
                    break
            }
            return !0
        }

        message(e, t, n, i) {
            return n ? t.isAssignable(e, i) : t.is(e, i)
        }

        messages(e, t, n, i) {
            if (!Array.isArray(e)) return !1;
            if (i < 2) return !0;
            if (n) {
                for (let r = 0; r < e.length && r < i; r++) if (!t.isAssignable(e[r], i - 1)) return !1
            } else for (let r = 0; r < e.length && r < i; r++) if (!t.is(e[r], i - 1)) return !1;
            return !0
        }

        scalar(e, t, n) {
            let i = typeof e;
            switch (t) {
                case h.UINT64:
                case h.FIXED64:
                case h.INT64:
                case h.SFIXED64:
                case h.SINT64:
                    switch (n) {
                        case E.BIGINT:
                            return i == "bigint";
                        case E.NUMBER:
                            return i == "number" && !isNaN(e);
                        default:
                            return i == "string"
                    }
                case h.BOOL:
                    return i == "boolean";
                case h.STRING:
                    return i == "string";
                case h.BYTES:
                    return e instanceof Uint8Array;
                case h.DOUBLE:
                case h.FLOAT:
                    return i == "number" && !isNaN(e);
                default:
                    return i == "number" && Number.isInteger(e)
            }
        }

        scalars(e, t, n, i) {
            if (!Array.isArray(e)) return !1;
            if (n < 2) return !0;
            if (Array.isArray(e)) {
                for (let r = 0; r < e.length && r < n; r++) if (!this.scalar(e[r], t, i)) return !1
            }
            return !0
        }

        mapKeys(e, t, n) {
            let i = Object.keys(e);
            switch (t) {
                case h.INT32:
                case h.FIXED32:
                case h.SFIXED32:
                case h.SINT32:
                case h.UINT32:
                    return this.scalars(i.slice(0, n).map(r => parseInt(r)), t, n);
                case h.BOOL:
                    return this.scalars(i.slice(0, n).map(r => r == "true" ? !0 : r == "false" ? !1 : r), t, n);
                default:
                    return this.scalars(i, t, n, E.STRING)
            }
        }
    };

    function C(l, e) {
        switch (e) {
            case E.BIGINT:
                return l.toBigInt();
            case E.NUMBER:
                return l.toNumber();
            default:
                return l.toString()
        }
    }

    var we = class {
        constructor(e) {
            this.info = e
        }

        prepare() {
            var e;
            if (this.fMap === void 0) {
                this.fMap = {};
                let t = (e = this.info.fields) !== null && e !== void 0 ? e : [];
                for (let n of t) this.fMap[n.name] = n, this.fMap[n.jsonName] = n, this.fMap[n.localName] = n
            }
        }

        assert(e, t, n) {
            if (!e) {
                let i = ce(n);
                throw (i == "number" || i == "boolean") && (i = n.toString()), new Error(`Cannot parse JSON ${i} for ${this.info.typeName}#${t}`)
            }
        }

        read(e, t, n) {
            this.prepare();
            let i = [];
            for (let [r, f] of Object.entries(e)) {
                let s = this.fMap[r];
                if (!s) {
                    if (!n.ignoreUnknownFields) throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${r}`);
                    continue
                }
                let o = s.localName, a;
                if (s.oneof) {
                    if (i.includes(s.oneof)) throw new Error(`Multiple members of the oneof group "${s.oneof}" of ${this.info.typeName} are present in JSON.`);
                    i.push(s.oneof), a = t[s.oneof] = {oneofKind: o}
                } else a = t;
                if (s.kind == "map") {
                    if (f === null) continue;
                    this.assert(Ai(f), s.name, f);
                    let u = a[o];
                    for (let [g, k] of Object.entries(f)) {
                        this.assert(k !== null, s.name + " map value", null);
                        let m;
                        switch (s.V.kind) {
                            case"message":
                                m = s.V.T().internalJsonRead(k, n);
                                break;
                            case"enum":
                                if (m = this.enum(s.V.T(), k, s.name, n.ignoreUnknownFields), m === !1) continue;
                                break;
                            case"scalar":
                                m = this.scalar(k, s.V.T, s.V.L, s.name);
                                break
                        }
                        this.assert(m !== void 0, s.name + " map value", k);
                        let B = g;
                        s.K == h.BOOL && (B = B == "true" ? !0 : B == "false" ? !1 : B), B = this.scalar(B, s.K, E.STRING, s.name).toString(), u[B] = m
                    }
                } else if (s.repeat) {
                    if (f === null) continue;
                    this.assert(Array.isArray(f), s.name, f);
                    let u = a[o];
                    for (let g of f) {
                        this.assert(g !== null, s.name, null);
                        let k;
                        switch (s.kind) {
                            case"message":
                                k = s.T().internalJsonRead(g, n);
                                break;
                            case"enum":
                                if (k = this.enum(s.T(), g, s.name, n.ignoreUnknownFields), k === !1) continue;
                                break;
                            case"scalar":
                                k = this.scalar(g, s.T, s.L, s.name);
                                break
                        }
                        this.assert(k !== void 0, s.name, f), u.push(k)
                    }
                } else switch (s.kind) {
                    case"message":
                        if (f === null && s.T().typeName != "google.protobuf.Value") {
                            this.assert(s.oneof === void 0, s.name + " (oneof member)", null);
                            continue
                        }
                        a[o] = s.T().internalJsonRead(f, n, a[o]);
                        break;
                    case"enum":
                        let u = this.enum(s.T(), f, s.name, n.ignoreUnknownFields);
                        if (u === !1) continue;
                        a[o] = u;
                        break;
                    case"scalar":
                        a[o] = this.scalar(f, s.T, s.L, s.name);
                        break
                }
            }
        }

        enum(e, t, n, i) {
            if (e[0] == "google.protobuf.NullValue" && b(t === null, `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`), t === null) return 0;
            switch (typeof t) {
                case"number":
                    return b(Number.isInteger(t), `Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`), t;
                case"string":
                    let r = t;
                    e[2] && t.substring(0, e[2].length) === e[2] && (r = t.substring(e[2].length));
                    let f = e[1][r];
                    return typeof f > "u" && i ? !1 : (b(typeof f == "number", `Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`), f)
            }
            b(!1, `Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)
        }

        scalar(e, t, n, i) {
            let r;
            try {
                switch (t) {
                    case h.DOUBLE:
                    case h.FLOAT:
                        if (e === null) return 0;
                        if (e === "NaN") return Number.NaN;
                        if (e === "Infinity") return Number.POSITIVE_INFINITY;
                        if (e === "-Infinity") return Number.NEGATIVE_INFINITY;
                        if (e === "") {
                            r = "empty string";
                            break
                        }
                        if (typeof e == "string" && e.trim().length !== e.length) {
                            r = "extra whitespace";
                            break
                        }
                        if (typeof e != "string" && typeof e != "number") break;
                        let f = Number(e);
                        if (Number.isNaN(f)) {
                            r = "not a number";
                            break
                        }
                        if (!Number.isFinite(f)) {
                            r = "too large or small";
                            break
                        }
                        return t == h.FLOAT && q(f), f;
                    case h.INT32:
                    case h.FIXED32:
                    case h.SFIXED32:
                    case h.SINT32:
                    case h.UINT32:
                        if (e === null) return 0;
                        let s;
                        if (typeof e == "number" ? s = e : e === "" ? r = "empty string" : typeof e == "string" && (e.trim().length !== e.length ? r = "extra whitespace" : s = Number(e)), s === void 0) break;
                        return t == h.UINT32 ? X(s) : v(s), s;
                    case h.INT64:
                    case h.SFIXED64:
                    case h.SINT64:
                        if (e === null) return C(T.ZERO, n);
                        if (typeof e != "number" && typeof e != "string") break;
                        return C(T.from(e), n);
                    case h.FIXED64:
                    case h.UINT64:
                        if (e === null) return C(x.ZERO, n);
                        if (typeof e != "number" && typeof e != "string") break;
                        return C(x.from(e), n);
                    case h.BOOL:
                        if (e === null) return !1;
                        if (typeof e != "boolean") break;
                        return e;
                    case h.STRING:
                        if (e === null) return "";
                        if (typeof e != "string") {
                            r = "extra whitespace";
                            break
                        }
                        try {
                            encodeURIComponent(e)
                        } catch (o) {
                            o = "invalid UTF8";
                            break
                        }
                        return e;
                    case h.BYTES:
                        if (e === null || e === "") return new Uint8Array(0);
                        if (typeof e != "string") break;
                        return _i(e)
                }
            } catch (f) {
                r = f.message
            }
            this.assert(!1, i + (r ? " - " + r : ""), e)
        }
    };
    var be = class {
        constructor(e) {
            var t;
            this.fields = (t = e.fields) !== null && t !== void 0 ? t : []
        }

        write(e, t) {
            let n = {}, i = e;
            for (let r of this.fields) {
                if (!r.oneof) {
                    let a = this.field(r, i[r.localName], t);
                    a !== void 0 && (n[t.useProtoFieldName ? r.name : r.jsonName] = a);
                    continue
                }
                let f = i[r.oneof];
                if (f.oneofKind !== r.localName) continue;
                let s = r.kind == "scalar" || r.kind == "enum" ? Object.assign(Object.assign({}, t), {emitDefaultValues: !0}) : t,
                    o = this.field(r, f[r.localName], s);
                b(o !== void 0), n[t.useProtoFieldName ? r.name : r.jsonName] = o
            }
            return n
        }

        field(e, t, n) {
            let i;
            if (e.kind == "map") {
                b(typeof t == "object" && t !== null);
                let r = {};
                switch (e.V.kind) {
                    case"scalar":
                        for (let [o, a] of Object.entries(t)) {
                            let u = this.scalar(e.V.T, a, e.name, !1, !0);
                            b(u !== void 0), r[o.toString()] = u
                        }
                        break;
                    case"message":
                        let f = e.V.T();
                        for (let [o, a] of Object.entries(t)) {
                            let u = this.message(f, a, e.name, n);
                            b(u !== void 0), r[o.toString()] = u
                        }
                        break;
                    case"enum":
                        let s = e.V.T();
                        for (let [o, a] of Object.entries(t)) {
                            b(a === void 0 || typeof a == "number");
                            let u = this.enum(s, a, e.name, !1, !0, n.enumAsInteger);
                            b(u !== void 0), r[o.toString()] = u
                        }
                        break
                }
                (n.emitDefaultValues || Object.keys(r).length > 0) && (i = r)
            } else if (e.repeat) {
                b(Array.isArray(t));
                let r = [];
                switch (e.kind) {
                    case"scalar":
                        for (let o = 0; o < t.length; o++) {
                            let a = this.scalar(e.T, t[o], e.name, e.opt, !0);
                            b(a !== void 0), r.push(a)
                        }
                        break;
                    case"enum":
                        let f = e.T();
                        for (let o = 0; o < t.length; o++) {
                            b(t[o] === void 0 || typeof t[o] == "number");
                            let a = this.enum(f, t[o], e.name, e.opt, !0, n.enumAsInteger);
                            b(a !== void 0), r.push(a)
                        }
                        break;
                    case"message":
                        let s = e.T();
                        for (let o = 0; o < t.length; o++) {
                            let a = this.message(s, t[o], e.name, n);
                            b(a !== void 0), r.push(a)
                        }
                        break
                }
                (n.emitDefaultValues || r.length > 0 || n.emitDefaultValues) && (i = r)
            } else switch (e.kind) {
                case"scalar":
                    i = this.scalar(e.T, t, e.name, e.opt, n.emitDefaultValues);
                    break;
                case"enum":
                    i = this.enum(e.T(), t, e.name, e.opt, n.emitDefaultValues, n.enumAsInteger);
                    break;
                case"message":
                    i = this.message(e.T(), t, e.name, n);
                    break
            }
            return i
        }

        enum(e, t, n, i, r, f) {
            if (e[0] == "google.protobuf.NullValue") return null;
            if (t === void 0) {
                b(i);
                return
            }
            if (!(t === 0 && !r && !i)) return b(typeof t == "number"), b(Number.isInteger(t)), f || !e[1].hasOwnProperty(t) ? t : e[2] ? e[2] + e[1][t] : e[1][t]
        }

        message(e, t, n, i) {
            return t === void 0 ? i.emitDefaultValues ? null : void 0 : e.internalJsonWrite(t, i)
        }

        scalar(e, t, n, i, r) {
            if (t === void 0) {
                b(i);
                return
            }
            let f = r || i;
            switch (e) {
                case h.INT32:
                case h.SFIXED32:
                case h.SINT32:
                    return t === 0 ? f ? 0 : void 0 : (v(t), t);
                case h.FIXED32:
                case h.UINT32:
                    return t === 0 ? f ? 0 : void 0 : (X(t), t);
                case h.FLOAT:
                    q(t);
                case h.DOUBLE:
                    return t === 0 ? f ? 0 : void 0 : (b(typeof t == "number"), Number.isNaN(t) ? "NaN" : t === Number.POSITIVE_INFINITY ? "Infinity" : t === Number.NEGATIVE_INFINITY ? "-Infinity" : t);
                case h.STRING:
                    return t === "" ? f ? "" : void 0 : (b(typeof t == "string"), t);
                case h.BOOL:
                    return t === !1 ? f ? !1 : void 0 : (b(typeof t == "boolean"), t);
                case h.UINT64:
                case h.FIXED64:
                    b(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
                    let s = x.from(t);
                    return s.isZero() && !f ? void 0 : s.toString();
                case h.INT64:
                case h.SFIXED64:
                case h.SINT64:
                    b(typeof t == "number" || typeof t == "string" || typeof t == "bigint");
                    let o = T.from(t);
                    return o.isZero() && !f ? void 0 : o.toString();
                case h.BYTES:
                    return b(t instanceof Uint8Array), t.byteLength ? Vi(t) : f ? "" : void 0
            }
        }
    };

    function ue(l, e = E.STRING) {
        switch (l) {
            case h.BOOL:
                return !1;
            case h.UINT64:
            case h.FIXED64:
                return C(x.ZERO, e);
            case h.INT64:
            case h.SFIXED64:
            case h.SINT64:
                return C(T.ZERO, e);
            case h.DOUBLE:
            case h.FLOAT:
                return 0;
            case h.BYTES:
                return new Uint8Array(0);
            case h.STRING:
                return "";
            default:
                return 0
        }
    }

    var ke = class {
        constructor(e) {
            this.info = e
        }

        prepare() {
            var e;
            if (!this.fieldNoToField) {
                let t = (e = this.info.fields) !== null && e !== void 0 ? e : [];
                this.fieldNoToField = new Map(t.map(n => [n.no, n]))
            }
        }

        read(e, t, n, i) {
            this.prepare();
            let r = i === void 0 ? e.len : e.pos + i;
            for (; e.pos < r;) {
                let [f, s] = e.tag(), o = this.fieldNoToField.get(f);
                if (!o) {
                    let k = n.readUnknownField;
                    if (k == "throw") throw new Error(`Unknown field ${f} (wire type ${s}) for ${this.info.typeName}`);
                    let m = e.skip(s);
                    k !== !1 && (k === !0 ? c.onRead : k)(this.info.typeName, t, f, s, m);
                    continue
                }
                let a = t, u = o.repeat, g = o.localName;
                switch (o.oneof && (a = a[o.oneof], a.oneofKind !== g && (a = t[o.oneof] = {oneofKind: g})), o.kind) {
                    case"scalar":
                    case"enum":
                        let k = o.kind == "enum" ? h.INT32 : o.T, m = o.kind == "scalar" ? o.L : void 0;
                        if (u) {
                            let N = a[g];
                            if (s == d.LengthDelimited && k != h.STRING && k != h.BYTES) {
                                let w = e.uint32() + e.pos;
                                for (; e.pos < w;) N.push(this.scalar(e, k, m))
                            } else N.push(this.scalar(e, k, m))
                        } else a[g] = this.scalar(e, k, m);
                        break;
                    case"message":
                        if (u) {
                            let N = a[g], w = o.T().internalBinaryRead(e, e.uint32(), n);
                            N.push(w)
                        } else a[g] = o.T().internalBinaryRead(e, e.uint32(), n, a[g]);
                        break;
                    case"map":
                        let [B, L] = this.mapEntry(o, e, n);
                        a[g][B] = L;
                        break
                }
            }
        }

        mapEntry(e, t, n) {
            let i = t.uint32(), r = t.pos + i, f, s;
            for (; t.pos < r;) {
                let [o, a] = t.tag();
                switch (o) {
                    case 1:
                        e.K == h.BOOL ? f = t.bool().toString() : f = this.scalar(t, e.K, E.STRING);
                        break;
                    case 2:
                        switch (e.V.kind) {
                            case"scalar":
                                s = this.scalar(t, e.V.T, e.V.L);
                                break;
                            case"enum":
                                s = t.int32();
                                break;
                            case"message":
                                s = e.V.T().internalBinaryRead(t, t.uint32(), n);
                                break
                        }
                        break;
                    default:
                        throw new Error(`Unknown field ${o} (wire type ${a}) in map entry for ${this.info.typeName}#${e.name}`)
                }
            }
            if (f === void 0) {
                let o = ue(e.K);
                f = e.K == h.BOOL ? o.toString() : o
            }
            if (s === void 0) switch (e.V.kind) {
                case"scalar":
                    s = ue(e.V.T, e.V.L);
                    break;
                case"enum":
                    s = 0;
                    break;
                case"message":
                    s = e.V.T().create();
                    break
            }
            return [f, s]
        }

        scalar(e, t, n) {
            switch (t) {
                case h.INT32:
                    return e.int32();
                case h.STRING:
                    return e.string();
                case h.BOOL:
                    return e.bool();
                case h.DOUBLE:
                    return e.double();
                case h.FLOAT:
                    return e.float();
                case h.INT64:
                    return C(e.int64(), n);
                case h.UINT64:
                    return C(e.uint64(), n);
                case h.FIXED64:
                    return C(e.fixed64(), n);
                case h.FIXED32:
                    return e.fixed32();
                case h.BYTES:
                    return e.bytes();
                case h.UINT32:
                    return e.uint32();
                case h.SFIXED32:
                    return e.sfixed32();
                case h.SFIXED64:
                    return C(e.sfixed64(), n);
                case h.SINT32:
                    return e.sint32();
                case h.SINT64:
                    return C(e.sint64(), n)
            }
        }
    };
    var Be = class {
        constructor(e) {
            this.info = e
        }

        prepare() {
            if (!this.fields) {
                let e = this.info.fields ? this.info.fields.concat() : [];
                this.fields = e.sort((t, n) => t.no - n.no)
            }
        }

        write(e, t, n) {
            this.prepare();
            for (let r of this.fields) {
                let f, s, o = r.repeat, a = r.localName;
                if (r.oneof) {
                    let u = e[r.oneof];
                    if (u.oneofKind !== a) continue;
                    f = u[a], s = !0
                } else f = e[a], s = !1;
                switch (r.kind) {
                    case"scalar":
                    case"enum":
                        let u = r.kind == "enum" ? h.INT32 : r.T;
                        if (o) if (b(Array.isArray(f)), o == fe.PACKED) this.packed(t, u, r.no, f); else for (let g of f) this.scalar(t, u, r.no, g, !0); else f === void 0 ? b(r.opt) : this.scalar(t, u, r.no, f, s || r.opt);
                        break;
                    case"message":
                        if (o) {
                            b(Array.isArray(f));
                            for (let g of f) this.message(t, n, r.T(), r.no, g)
                        } else this.message(t, n, r.T(), r.no, f);
                        break;
                    case"map":
                        b(typeof f == "object" && f !== null);
                        for (let [g, k] of Object.entries(f)) this.mapEntry(t, n, r, g, k);
                        break
                }
            }
            let i = n.writeUnknownFields;
            i !== !1 && (i === !0 ? c.onWrite : i)(this.info.typeName, e, t)
        }

        mapEntry(e, t, n, i, r) {
            e.tag(n.no, d.LengthDelimited), e.fork();
            let f = i;
            switch (n.K) {
                case h.INT32:
                case h.FIXED32:
                case h.UINT32:
                case h.SFIXED32:
                case h.SINT32:
                    f = Number.parseInt(i);
                    break;
                case h.BOOL:
                    b(i == "true" || i == "false"), f = i == "true";
                    break
            }
            switch (this.scalar(e, n.K, 1, f, !0), n.V.kind) {
                case"scalar":
                    this.scalar(e, n.V.T, 2, r, !0);
                    break;
                case"enum":
                    this.scalar(e, h.INT32, 2, r, !0);
                    break;
                case"message":
                    this.message(e, t, n.V.T(), 2, r);
                    break
            }
            e.join()
        }

        message(e, t, n, i, r) {
            r !== void 0 && (n.internalBinaryWrite(r, e.tag(i, d.LengthDelimited).fork(), t), e.join())
        }

        scalar(e, t, n, i, r) {
            let [f, s, o] = this.scalarInfo(t, i);
            (!o || r) && (e.tag(n, f), e[s](i))
        }

        packed(e, t, n, i) {
            if (!i.length) return;
            b(t !== h.BYTES && t !== h.STRING), e.tag(n, d.LengthDelimited), e.fork();
            let [, r] = this.scalarInfo(t);
            for (let f = 0; f < i.length; f++) e[r](i[f]);
            e.join()
        }

        scalarInfo(e, t) {
            let n = d.Varint, i, r = t === void 0, f = t === 0;
            switch (e) {
                case h.INT32:
                    i = "int32";
                    break;
                case h.STRING:
                    f = r || !t.length, n = d.LengthDelimited, i = "string";
                    break;
                case h.BOOL:
                    f = t === !1, i = "bool";
                    break;
                case h.UINT32:
                    i = "uint32";
                    break;
                case h.DOUBLE:
                    n = d.Bit64, i = "double";
                    break;
                case h.FLOAT:
                    n = d.Bit32, i = "float";
                    break;
                case h.INT64:
                    f = r || T.from(t).isZero(), i = "int64";
                    break;
                case h.UINT64:
                    f = r || x.from(t).isZero(), i = "uint64";
                    break;
                case h.FIXED64:
                    f = r || x.from(t).isZero(), n = d.Bit64, i = "fixed64";
                    break;
                case h.BYTES:
                    f = r || !t.byteLength, n = d.LengthDelimited, i = "bytes";
                    break;
                case h.FIXED32:
                    n = d.Bit32, i = "fixed32";
                    break;
                case h.SFIXED32:
                    n = d.Bit32, i = "sfixed32";
                    break;
                case h.SFIXED64:
                    f = r || T.from(t).isZero(), n = d.Bit64, i = "sfixed64";
                    break;
                case h.SINT32:
                    i = "sint32";
                    break;
                case h.SINT64:
                    f = r || T.from(t).isZero(), i = "sint64";
                    break
            }
            return [n, i, r || f]
        }
    };

    function ir(l) {
        let e = {};
        Object.defineProperty(e, y, {enumerable: !1, value: l});
        for (let t of l.fields) {
            let n = t.localName;
            if (!t.opt) if (t.oneof) e[t.oneof] = {oneofKind: void 0}; else if (t.repeat) e[n] = []; else switch (t.kind) {
                case"scalar":
                    e[n] = ue(t.T, t.L);
                    break;
                case"enum":
                    e[n] = 0;
                    break;
                case"map":
                    e[n] = {};
                    break
            }
        }
        return e
    }

    function p(l, e, t) {
        let n, i = t, r;
        for (let f of l.fields) {
            let s = f.localName;
            if (f.oneof) {
                let o = i[f.oneof];
                if (o?.oneofKind == null) continue;
                if (n = o[s], r = e[f.oneof], r.oneofKind = o.oneofKind, n == null) {
                    delete r[s];
                    continue
                }
            } else if (n = i[s], r = e, n == null) continue;
            switch (f.repeat && (r[s].length = n.length), f.kind) {
                case"scalar":
                case"enum":
                    if (f.repeat) for (let a = 0; a < n.length; a++) r[s][a] = n[a]; else r[s] = n;
                    break;
                case"message":
                    let o = f.T();
                    if (f.repeat) for (let a = 0; a < n.length; a++) r[s][a] = o.create(n[a]); else r[s] === void 0 ? r[s] = o.create(n) : o.mergePartial(r[s], n);
                    break;
                case"map":
                    switch (f.V.kind) {
                        case"scalar":
                        case"enum":
                            Object.assign(r[s], n);
                            break;
                        case"message":
                            let a = f.V.T();
                            for (let u of Object.keys(n)) r[s][u] = a.create(n[u]);
                            break
                    }
                    break
            }
        }
    }

    function sr(l, e, t) {
        if (e === t) return !0;
        if (!e || !t) return !1;
        for (let n of l.fields) {
            let i = n.localName, r = n.oneof ? e[n.oneof][i] : e[i], f = n.oneof ? t[n.oneof][i] : t[i];
            switch (n.kind) {
                case"enum":
                case"scalar":
                    let s = n.kind == "enum" ? h.INT32 : n.T;
                    if (!(n.repeat ? rr(s, r, f) : or(s, r, f))) return !1;
                    break;
                case"map":
                    if (!(n.V.kind == "message" ? ar(n.V.T(), Te(r), Te(f)) : rr(n.V.kind == "enum" ? h.INT32 : n.V.T, Te(r), Te(f)))) return !1;
                    break;
                case"message":
                    let o = n.T();
                    if (!(n.repeat ? ar(o, r, f) : o.equals(r, f))) return !1;
                    break
            }
        }
        return !0
    }

    var Te = Object.values;

    function or(l, e, t) {
        if (e === t) return !0;
        if (l !== h.BYTES) return !1;
        let n = e, i = t;
        if (n.length !== i.length) return !1;
        for (let r = 0; r < n.length; r++) if (n[r] != i[r]) return !1;
        return !0
    }

    function rr(l, e, t) {
        if (e.length !== t.length) return !1;
        for (let n = 0; n < e.length; n++) if (!or(l, e[n], t[n])) return !1;
        return !0
    }

    function ar(l, e, t) {
        if (e.length !== t.length) return !1;
        for (let n = 0; n < e.length; n++) if (!l.equals(e[n], t[n])) return !1;
        return !0
    }

    var F = class {
        constructor(e, t, n) {
            this.defaultCheckDepth = 16, this.typeName = e, this.fields = t.map(tr), this.options = n ?? {}, this.refTypeCheck = new ge(this), this.refJsonReader = new we(this), this.refJsonWriter = new be(this), this.refBinReader = new ke(this), this.refBinWriter = new Be(this)
        }

        create(e) {
            let t = ir(this);
            return e !== void 0 && p(this, t, e), t
        }

        clone(e) {
            let t = this.create();
            return p(this, t, e), t
        }

        equals(e, t) {
            return sr(this, e, t)
        }

        is(e, t = this.defaultCheckDepth) {
            return this.refTypeCheck.is(e, t, !1)
        }

        isAssignable(e, t = this.defaultCheckDepth) {
            return this.refTypeCheck.is(e, t, !0)
        }

        mergePartial(e, t) {
            p(this, e, t)
        }

        fromBinary(e, t) {
            let n = qi(t);
            return this.internalBinaryRead(n.readerFactory(e), e.byteLength, n)
        }

        fromJson(e, t) {
            return this.internalJsonRead(e, Hi(t))
        }

        fromJsonString(e, t) {
            let n = JSON.parse(e);
            return this.fromJson(n, t)
        }

        toJson(e, t) {
            return this.internalJsonWrite(e, er(t))
        }

        toJsonString(e, t) {
            var n;
            let i = this.toJson(e, t);
            return JSON.stringify(i, null, (n = t?.prettySpaces) !== null && n !== void 0 ? n : 0)
        }

        toBinary(e, t) {
            let n = Zi(t);
            return this.internalBinaryWrite(e, n.writerFactory(), n).finish()
        }

        internalJsonRead(e, t, n) {
            if (e !== null && typeof e == "object" && !Array.isArray(e)) {
                let i = n ?? this.create();
                return this.refJsonReader.read(e, i, t), i
            }
            throw new Error(`Unable to parse message ${this.typeName} from JSON ${ce(e)}.`)
        }

        internalJsonWrite(e, t) {
            return this.refJsonWriter.write(e, t)
        }

        internalBinaryWrite(e, t, n) {
            return this.refBinWriter.write(e, t, n), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create();
            return this.refBinReader.read(e, r, n, t), r
        }
    };
    var en = class extends F {
        constructor() {
            super("Browse", [{no: 1, name: "responseContext", kind: "message", T: () => Se}, {
                no: 9,
                name: "n1F9",
                kind: "message",
                T: () => _e
            }, {no: 10, name: "n1F10", kind: "message", T: () => z}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.responseContext = Se.internalBinaryRead(e, e.uint32(), n, r.responseContext);
                        break;
                    case 9:
                        r.n1F9 = _e.internalBinaryRead(e, e.uint32(), n, r.n1F9);
                        break;
                    case 10:
                        r.n1F10 = z.internalBinaryRead(e, e.uint32(), n, r.n1F10);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.responseContext && Se.internalBinaryWrite(e.responseContext, t.tag(1, d.LengthDelimited).fork(), n).join(), e.n1F9 && _e.internalBinaryWrite(e.n1F9, t.tag(9, d.LengthDelimited).fork(), n).join(), e.n1F10 && z.internalBinaryWrite(e.n1F10, t.tag(10, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, lr = new en, tn = class extends F {
        constructor() {
            super("ResponseContext", [{no: 6, name: "serviceTrackingParams", kind: "message", repeat: 1, T: () => Me}])
        }

        create(e) {
            let t = {serviceTrackingParams: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 6:
                        r.serviceTrackingParams.push(Me.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.serviceTrackingParams.length; r++) Me.internalBinaryWrite(e.serviceTrackingParams[r], t.tag(6, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Se = new tn, nn = class extends F {
        constructor() {
            super("ServiceTrackingParams", [{no: 1, name: "service", kind: "scalar", T: 5}, {
                no: 2,
                name: "params",
                kind: "message",
                repeat: 1,
                T: () => Ae
            }])
        }

        create(e) {
            let t = {service: 0, params: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.service = e.int32();
                        break;
                    case 2:
                        r.params.push(Ae.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.service !== 0 && t.tag(1, d.Varint).int32(e.service);
            for (let r = 0; r < e.params.length; r++) Ae.internalBinaryWrite(e.params[r], t.tag(2, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Me = new nn, rn = class extends F {
        constructor() {
            super("Params", [{no: 1, name: "key", kind: "scalar", T: 9}, {no: 2, name: "value", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {key: "", value: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.key = e.string();
                        break;
                    case 2:
                        r.value = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.key !== "" && t.tag(1, d.LengthDelimited).string(e.key), e.value !== "" && t.tag(2, d.LengthDelimited).string(e.value);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ae = new rn, an = class extends F {
        constructor() {
            super("n1F9", [{no: 58173949, name: "m2F58173949", kind: "message", T: () => Ve}, {
                no: 153515154,
                name: "n6F153515154",
                kind: "message",
                T: () => ee
            }, {no: 49399797, name: "n2F49399797", kind: "message", T: () => P}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 58173949:
                        r.m2F58173949 = Ve.internalBinaryRead(e, e.uint32(), n, r.m2F58173949);
                        break;
                    case 153515154:
                        r.n6F153515154 = ee.internalBinaryRead(e, e.uint32(), n, r.n6F153515154);
                        break;
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.m2F58173949 && Ve.internalBinaryWrite(e.m2F58173949, t.tag(58173949, d.LengthDelimited).fork(), n).join(), e.n6F153515154 && ee.internalBinaryWrite(e.n6F153515154, t.tag(153515154, d.LengthDelimited).fork(), n).join(), e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, _e = new an, sn = class extends F {
        constructor() {
            super("n1F10", [{no: 49399797, name: "n2F49399797", kind: "message", T: () => P}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, z = new sn, on = class extends F {
        constructor() {
            super("m2F58173949", [{no: 1, name: "m3F1", kind: "message", repeat: 1, T: () => ve}])
        }

        create(e) {
            let t = {m3F1: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.m3F1.push(ve.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.m3F1.length; r++) ve.internalBinaryWrite(e.m3F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ve = new on, ln = class extends F {
        constructor() {
            super("m3F1", [{no: 58174010, name: "m4F58174010", kind: "message", T: () => Ke}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 58174010:
                        r.m4F58174010 = Ke.internalBinaryRead(e, e.uint32(), n, r.m4F58174010);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.m4F58174010 && Ke.internalBinaryWrite(e.m4F58174010, t.tag(58174010, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ve = new ln, fn = class extends F {
        constructor() {
            super("m4F58174010", [{no: 4, name: "n1F10", kind: "message", T: () => z}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 4:
                        r.n1F10 = z.internalBinaryRead(e, e.uint32(), n, r.n1F10);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n1F10 && z.internalBinaryWrite(e.n1F10, t.tag(4, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ke = new fn, un = class extends F {
        constructor() {
            super("n2F49399797", [{no: 1, name: "n3F1", kind: "message", repeat: 1, T: () => Ge}])
        }

        create(e) {
            let t = {n3F1: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n3F1.push(Ge.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.n3F1.length; r++) Ge.internalBinaryWrite(e.n3F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, P = new un, cn = class extends F {
        constructor() {
            super("n3F1", [{no: 50195462, name: "n4F50195462", kind: "message", T: () => Q}, {
                no: 51845067,
                name: "n4F51845067",
                kind: "message",
                T: () => Je
            }, {no: 221496734, name: "m4F221496734", kind: "message", T: () => Xe}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 50195462:
                        r.n4F50195462 = Q.internalBinaryRead(e, e.uint32(), n, r.n4F50195462);
                        break;
                    case 51845067:
                        r.n4F51845067 = Je.internalBinaryRead(e, e.uint32(), n, r.n4F51845067);
                        break;
                    case 221496734:
                        r.m4F221496734 = Xe.internalBinaryRead(e, e.uint32(), n, r.m4F221496734);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n4F50195462 && Q.internalBinaryWrite(e.n4F50195462, t.tag(50195462, d.LengthDelimited).fork(), n).join(), e.n4F51845067 && Je.internalBinaryWrite(e.n4F51845067, t.tag(51845067, d.LengthDelimited).fork(), n).join(), e.m4F221496734 && Xe.internalBinaryWrite(e.m4F221496734, t.tag(221496734, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ge = new cn, dn = class extends F {
        constructor() {
            super("n4F50195462", [{no: 1, name: "n5F1", kind: "message", repeat: 1, T: () => H}])
        }

        create(e) {
            let t = {n5F1: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n5F1.push(H.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.n5F1.length; r++) H.internalBinaryWrite(e.n5F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Q = new dn, hn = class extends F {
        constructor() {
            super("n4F51845067", [{no: 5, name: "n5F5", kind: "message", T: () => Ye}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 5:
                        r.n5F5 = Ye.internalBinaryRead(e, e.uint32(), n, r.n5F5);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n5F5 && Ye.internalBinaryWrite(e.n5F5, t.tag(5, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Je = new hn, pn = class extends F {
        constructor() {
            super("n4F221496734", [{no: 3, name: "n5F3", kind: "message", T: () => qe}, {
                no: 10,
                name: "n5F10",
                kind: "message",
                T: () => He
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 3:
                        r.n5F3 = qe.internalBinaryRead(e, e.uint32(), n, r.n5F3);
                        break;
                    case 10:
                        r.n5F10 = He.internalBinaryRead(e, e.uint32(), n, r.n5F10);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n5F3 && qe.internalBinaryWrite(e.n5F3, t.tag(3, d.LengthDelimited).fork(), n).join(), e.n5F10 && He.internalBinaryWrite(e.n5F10, t.tag(10, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Xe = new pn, yn = class extends F {
        constructor() {
            super("n5F1", [{no: 153515154, name: "n6F153515154", kind: "message", T: () => ee}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 153515154:
                        r.n6F153515154 = ee.internalBinaryRead(e, e.uint32(), n, r.n6F153515154);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n6F153515154 && ee.internalBinaryWrite(e.n6F153515154, t.tag(153515154, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, H = new yn, Fn = class extends F {
        constructor() {
            super("n5F3", [{no: 1, name: "n6F1", kind: "message", T: () => Ze}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n6F1 = Ze.internalBinaryRead(e, e.uint32(), n, r.n6F1);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n6F1 && Ze.internalBinaryWrite(e.n6F1, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, qe = new Fn, mn = class extends F {
        constructor() {
            super("n5F5", [{no: 51431404, name: "n6F51431404", kind: "message", T: () => ze}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 51431404:
                        r.n6F51431404 = ze.internalBinaryRead(e, e.uint32(), n, r.n6F51431404);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n6F51431404 && ze.internalBinaryWrite(e.n6F51431404, t.tag(51431404, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ye = new mn, gn = class extends F {
        constructor() {
            super("n6F1", [{no: 1, name: "staticLyric", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {staticLyric: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.staticLyric = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.staticLyric !== "" && t.tag(1, d.LengthDelimited).string(e.staticLyric);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ze = new gn, wn = class extends F {
        constructor() {
            super("n6F153515154", [{no: 172660663, name: "n7F172660663", kind: "message", T: () => Qe}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 172660663:
                        r.n7F172660663 = Qe.internalBinaryRead(e, e.uint32(), n, r.n7F172660663);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n7F172660663 && Qe.internalBinaryWrite(e.n7F172660663, t.tag(172660663, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ee = new wn, bn = class extends F {
        constructor() {
            super("n6F51431404", [{no: 1, name: "n5F1", kind: "message", repeat: 1, T: () => H}])
        }

        create(e) {
            let t = {n5F1: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n5F1.push(H.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.n5F1.length; r++) H.internalBinaryWrite(e.n5F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ze = new bn, kn = class extends F {
        constructor() {
            super("n7F172660663", [{no: 1, name: "n8F1", kind: "message", T: () => te}, {
                no: 2,
                name: "n8F2",
                kind: "message",
                T: () => ne
            }, {no: 3, name: "n8F3", kind: "message", T: () => et}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n8F1 = te.internalBinaryRead(e, e.uint32(), n, r.n8F1);
                        break;
                    case 2:
                        r.n8F2 = ne.internalBinaryRead(e, e.uint32(), n, r.n8F2);
                        break;
                    case 3:
                        r.n8F3 = et.internalBinaryRead(e, e.uint32(), n, r.n8F3);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n8F1 && te.internalBinaryWrite(e.n8F1, t.tag(1, d.LengthDelimited).fork(), n).join(), e.n8F2 && ne.internalBinaryWrite(e.n8F2, t.tag(2, d.LengthDelimited).fork(), n).join(), e.n8F3 && et.internalBinaryWrite(e.n8F3, t.tag(3, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Qe = new kn, Bn = class extends F {
        constructor() {
            super("n5F10", [{no: 1, name: "origin", kind: "message", T: () => tt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.origin = tt.internalBinaryRead(e, e.uint32(), n, r.origin);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.origin && tt.internalBinaryWrite(e.origin, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, He = new Bn, Tn = class extends F {
        constructor() {
            super("n8F1", [{no: 168777401, name: "n9F168777401", kind: "message", T: () => nt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 168777401:
                        r.n9F168777401 = nt.internalBinaryRead(e, e.uint32(), n, r.n9F168777401);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n9F168777401 && nt.internalBinaryWrite(e.n9F168777401, t.tag(168777401, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, te = new Tn, Rn = class extends F {
        constructor() {
            super("n8F2", [{no: 183314536, name: "n9F183314536", kind: "message", T: () => it}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 183314536:
                        r.n9F183314536 = it.internalBinaryRead(e, e.uint32(), n, r.n9F183314536);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n9F183314536 && it.internalBinaryWrite(e.n9F183314536, t.tag(183314536, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ne = new Rn, Nn = class extends F {
        constructor() {
            super("n8F3", [{no: 1, name: "n8F1", kind: "message", T: () => te}, {
                no: 2,
                name: "n8F2",
                kind: "message",
                T: () => ne
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n8F1 = te.internalBinaryRead(e, e.uint32(), n, r.n8F1);
                        break;
                    case 2:
                        r.n8F2 = ne.internalBinaryRead(e, e.uint32(), n, r.n8F2);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n8F1 && te.internalBinaryWrite(e.n8F1, t.tag(1, d.LengthDelimited).fork(), n).join(), e.n8F2 && ne.internalBinaryWrite(e.n8F2, t.tag(2, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, et = new Nn, In = class extends F {
        constructor() {
            super("Origin", [{no: 1, name: "originText", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {originText: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.originText = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.originText !== "" && t.tag(1, d.LengthDelimited).string(e.originText);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, tt = new In, Wn = class extends F {
        constructor() {
            super("n9F168777401", [{no: 3, name: "n10F3", kind: "message", T: () => rt}, {
                no: 5,
                name: "n10F5",
                kind: "message",
                T: () => at
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 3:
                        r.n10F3 = rt.internalBinaryRead(e, e.uint32(), n, r.n10F3);
                        break;
                    case 5:
                        r.n10F5 = at.internalBinaryRead(e, e.uint32(), n, r.n10F5);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n10F3 && rt.internalBinaryWrite(e.n10F3, t.tag(3, d.LengthDelimited).fork(), n).join(), e.n10F5 && at.internalBinaryWrite(e.n10F5, t.tag(5, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, nt = new Wn, xn = class extends F {
        constructor() {
            super("n9F183314536", [{no: 1, name: "type", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {type: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.type = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.type !== "" && t.tag(1, d.LengthDelimited).string(e.type);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, it = new xn, On = class extends F {
        constructor() {
            super("n10F3", [{no: 172035250, name: "n11F172035250", kind: "message", T: () => ft}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 172035250:
                        r.n11F172035250 = ft.internalBinaryRead(e, e.uint32(), n, r.n11F172035250);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n11F172035250 && ft.internalBinaryWrite(e.n11F172035250, t.tag(172035250, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, rt = new On, Pn = class extends F {
        constructor() {
            super("n10F5", [{no: 465160965, name: "n11F465160965", kind: "message", T: () => st}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 465160965:
                        r.n11F465160965 = st.internalBinaryRead(e, e.uint32(), n, r.n11F465160965);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n11F465160965 && st.internalBinaryWrite(e.n11F465160965, t.tag(465160965, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, at = new Pn, Un = class extends F {
        constructor() {
            super("n11F465160965", [{no: 4, name: "n12F4", kind: "message", T: () => ot}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 4:
                        r.n12F4 = ot.internalBinaryRead(e, e.uint32(), n, r.n12F4);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n12F4 && ot.internalBinaryWrite(e.n12F4, t.tag(4, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, st = new Un, En = class extends F {
        constructor() {
            super("n12F4", [{no: 1, name: "n13F1", kind: "message", repeat: 1, T: () => lt}, {
                no: 2,
                name: "originText",
                kind: "scalar",
                T: 9
            }])
        }

        create(e) {
            let t = {n13F1: [], originText: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n13F1.push(lt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 2:
                        r.originText = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.n13F1.length; r++) lt.internalBinaryWrite(e.n13F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            e.originText !== "" && t.tag(2, d.LengthDelimited).string(e.originText);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ot = new En, $n = class extends F {
        constructor() {
            super("n13F1", [{no: 1, name: "f1", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {f1: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.f1 = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f1 !== "" && t.tag(1, d.LengthDelimited).string(e.f1);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, lt = new $n, Cn = class extends F {
        constructor() {
            super("n11F172035250", [{no: 1, name: "type", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {type: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.type = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.type !== "" && t.tag(1, d.LengthDelimited).string(e.type);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ft = new Cn, Ln = class extends F {
        constructor() {
            super("Next", [{no: 7, name: "a1F7", kind: "message", T: () => ut}, {
                no: 8,
                name: "a1F8",
                kind: "message",
                T: () => ct
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 7:
                        r.a1F7 = ut.internalBinaryRead(e, e.uint32(), n, r.a1F7);
                        break;
                    case 8:
                        r.a1F8 = ct.internalBinaryRead(e, e.uint32(), n, r.a1F8);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.a1F7 && ut.internalBinaryWrite(e.a1F7, t.tag(7, d.LengthDelimited).fork(), n).join(), e.a1F8 && ct.internalBinaryWrite(e.a1F8, t.tag(8, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, fr = new Ln, jn = class extends F {
        constructor() {
            super("a1F7", [{no: 51779735, name: "a2F51779735", kind: "message", T: () => wt}, {
                no: 125354411,
                name: "musicPlayRender",
                kind: "message",
                T: () => dt
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 51779735:
                        r.a2F51779735 = wt.internalBinaryRead(e, e.uint32(), n, r.a2F51779735);
                        break;
                    case 125354411:
                        r.musicPlayRender = dt.internalBinaryRead(e, e.uint32(), n, r.musicPlayRender);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.a2F51779735 && wt.internalBinaryWrite(e.a2F51779735, t.tag(51779735, d.LengthDelimited).fork(), n).join(), e.musicPlayRender && dt.internalBinaryWrite(e.musicPlayRender, t.tag(125354411, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ut = new jn, Dn = class extends F {
        constructor() {
            super("a1F8", [{no: 49399797, name: "n2F49399797", kind: "message", T: () => P}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ct = new Dn, Sn = class extends F {
        constructor() {
            super("MusicPlayRender", [{no: 7, name: "bottomRender", kind: "message", T: () => ht}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 7:
                        r.bottomRender = ht.internalBinaryRead(e, e.uint32(), n, r.bottomRender);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.bottomRender && ht.internalBinaryWrite(e.bottomRender, t.tag(7, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, dt = new Sn, Mn = class extends F {
        constructor() {
            super("BottomRender", [{no: 91700600, name: "sectionTab", kind: "message", T: () => pt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 91700600:
                        r.sectionTab = pt.internalBinaryRead(e, e.uint32(), n, r.sectionTab);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.sectionTab && pt.internalBinaryWrite(e.sectionTab, t.tag(91700600, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ht = new Mn, An = class extends F {
        constructor() {
            super("SectionTab", [{no: 1, name: "items", kind: "message", repeat: 1, T: () => yt}])
        }

        create(e) {
            let t = {items: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.items.push(yt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.items.length; r++) yt.internalBinaryWrite(e.items[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, pt = new An, _n = class extends F {
        constructor() {
            super("Item", [{no: 58174010, name: "tab", kind: "message", T: () => Ft}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 58174010:
                        r.tab = Ft.internalBinaryRead(e, e.uint32(), n, r.tab);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.tab && Ft.internalBinaryWrite(e.tab, t.tag(58174010, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, yt = new _n, Vn = class extends F {
        constructor() {
            super("Tab", [{no: 1, name: "info", kind: "message", T: () => mt}, {
                no: 2,
                name: "name",
                kind: "scalar",
                T: 9
            }])
        }

        create(e) {
            let t = {name: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.info = mt.internalBinaryRead(e, e.uint32(), n, r.info);
                        break;
                    case 2:
                        r.name = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.info && mt.internalBinaryWrite(e.info, t.tag(1, d.LengthDelimited).fork(), n).join(), e.name !== "" && t.tag(2, d.LengthDelimited).string(e.name);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ft = new Vn, vn = class extends F {
        constructor() {
            super("Info", [{no: 48687626, name: "BrowseInfo", kind: "message", jsonName: "BrowseInfo", T: () => gt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 48687626:
                        r.browseInfo = gt.internalBinaryRead(e, e.uint32(), n, r.browseInfo);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.browseInfo && gt.internalBinaryWrite(e.browseInfo, t.tag(48687626, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, mt = new vn, Kn = class extends F {
        constructor() {
            super("BrowseInfo", [{no: 2, name: "browseId", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {browseId: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 2:
                        r.browseId = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.browseId !== "" && t.tag(2, d.LengthDelimited).string(e.browseId);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, gt = new Kn, Gn = class extends F {
        constructor() {
            super("a2F51779735", [{no: 1, name: "a3F1", kind: "message", T: () => bt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.a3F1 = bt.internalBinaryRead(e, e.uint32(), n, r.a3F1);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.a3F1 && bt.internalBinaryWrite(e.a3F1, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, wt = new Gn, Jn = class extends F {
        constructor() {
            super("a3F1", [{no: 49399797, name: "n2F49399797", kind: "message", T: () => P}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, bt = new Jn, Xn = class extends F {
        constructor() {
            super("Search", [{no: 4, name: "s1F4", kind: "message", T: () => kt}, {
                no: 7,
                name: "s1F7",
                kind: "message",
                T: () => Bt
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 4:
                        r.s1F4 = kt.internalBinaryRead(e, e.uint32(), n, r.s1F4);
                        break;
                    case 7:
                        r.s1F7 = Bt.internalBinaryRead(e, e.uint32(), n, r.s1F7);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.s1F4 && kt.internalBinaryWrite(e.s1F4, t.tag(4, d.LengthDelimited).fork(), n).join(), e.s1F7 && Bt.internalBinaryWrite(e.s1F7, t.tag(7, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ur = new Xn, qn = class extends F {
        constructor() {
            super("s1F4", [{no: 49399797, name: "n2F49399797", kind: "message", T: () => P}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, kt = new qn, Yn = class extends F {
        constructor() {
            super("s1F7", [{no: 50195462, name: "n4F50195462", kind: "message", T: () => Q}, {
                no: 49399797,
                name: "n2F49399797",
                kind: "message",
                T: () => P
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 50195462:
                        r.n4F50195462 = Q.internalBinaryRead(e, e.uint32(), n, r.n4F50195462);
                        break;
                    case 49399797:
                        r.n2F49399797 = P.internalBinaryRead(e, e.uint32(), n, r.n2F49399797);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n4F50195462 && Q.internalBinaryWrite(e.n4F50195462, t.tag(50195462, d.LengthDelimited).fork(), n).join(), e.n2F49399797 && P.internalBinaryWrite(e.n2F49399797, t.tag(49399797, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Bt = new Yn, Zn = class extends F {
        constructor() {
            super("Shorts", [{no: 2, name: "t1F2", kind: "message", repeat: 1, T: () => Tt}])
        }

        create(e) {
            let t = {t1F2: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 2:
                        r.t1F2.push(Tt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.t1F2.length; r++) Tt.internalBinaryWrite(e.t1F2[r], t.tag(2, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, cr = new Zn, zn = class extends F {
        constructor() {
            super("t1F2", [{no: 1, name: "n2F1", kind: "message", T: () => Rt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.n2F1 = Rt.internalBinaryRead(e, e.uint32(), n, r.n2F1);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n2F1 && Rt.internalBinaryWrite(e.n2F1, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Tt = new zn, Qn = class extends F {
        constructor() {
            super("n2F1", [{no: 139608561, name: "n3F139608561", kind: "message", T: () => Nt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 139608561:
                        r.n3F139608561 = Nt.internalBinaryRead(e, e.uint32(), n, r.n3F139608561);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n3F139608561 && Nt.internalBinaryWrite(e.n3F139608561, t.tag(139608561, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Rt = new Qn, Hn = class extends F {
        constructor() {
            super("n3F139608561", [{no: 8, name: "n4F8", kind: "message", T: () => It}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 8:
                        r.n4F8 = It.internalBinaryRead(e, e.uint32(), n, r.n4F8);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n4F8 && It.internalBinaryWrite(e.n4F8, t.tag(8, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Nt = new Hn, ei = class extends F {
        constructor() {
            super("n4F8", [{no: 139970731, name: "n4F139970731", kind: "message", T: () => Wt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 139970731:
                        r.n4F139970731 = Wt.internalBinaryRead(e, e.uint32(), n, r.n4F139970731);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.n4F139970731 && Wt.internalBinaryWrite(e.n4F139970731, t.tag(139970731, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, It = new ei, ti = class extends F {
        constructor() {
            super("n4F139970731", [{no: 12, name: "f1", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {f1: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 12:
                        r.f1 = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f1 !== 0 && t.tag(12, d.Varint).int32(e.f1);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Wt = new ti, ni = class extends F {
        constructor() {
            super("Guide", [{no: 4, name: "g1F4", kind: "message", repeat: 1, T: () => xt}, {
                no: 6,
                name: "g1F6",
                kind: "message",
                repeat: 1,
                T: () => Ot
            }])
        }

        create(e) {
            let t = {g1F4: [], g1F6: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 4:
                        r.g1F4.push(xt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 6:
                        r.g1F6.push(Ot.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.g1F4.length; r++) xt.internalBinaryWrite(e.g1F4[r], t.tag(4, d.LengthDelimited).fork(), n).join();
            for (let r = 0; r < e.g1F6.length; r++) Ot.internalBinaryWrite(e.g1F6[r], t.tag(6, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, dr = new ni, ii = class extends F {
        constructor() {
            super("g1F4", [{no: 117866661, name: "g2F117866661", kind: "message", T: () => ie}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 117866661:
                        r.g2F117866661 = ie.internalBinaryRead(e, e.uint32(), n, r.g2F117866661);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.g2F117866661 && ie.internalBinaryWrite(e.g2F117866661, t.tag(117866661, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, xt = new ii, ri = class extends F {
        constructor() {
            super("g1F6", [{no: 117866661, name: "g2F117866661", kind: "message", T: () => ie}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 117866661:
                        r.g2F117866661 = ie.internalBinaryRead(e, e.uint32(), n, r.g2F117866661);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.g2F117866661 && ie.internalBinaryWrite(e.g2F117866661, t.tag(117866661, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ot = new ri, ai = class extends F {
        constructor() {
            super("g2F117866661", [{no: 1, name: "g3F1", kind: "message", repeat: 1, T: () => Pt}])
        }

        create(e) {
            let t = {g3F1: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.g3F1.push(Pt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.g3F1.length; r++) Pt.internalBinaryWrite(e.g3F1[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ie = new ai, si = class extends F {
        constructor() {
            super("g3F1", [{no: 318370163, name: "iconRender", kind: "message", T: () => Y}, {
                no: 117501096,
                name: "labelRender",
                kind: "message",
                T: () => Y
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 318370163:
                        r.iconRender = Y.internalBinaryRead(e, e.uint32(), n, r.iconRender);
                        break;
                    case 117501096:
                        r.labelRender = Y.internalBinaryRead(e, e.uint32(), n, r.labelRender);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.iconRender && Y.internalBinaryWrite(e.iconRender, t.tag(318370163, d.LengthDelimited).fork(), n).join(), e.labelRender && Y.internalBinaryWrite(e.labelRender, t.tag(117501096, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Pt = new si, oi = class extends F {
        constructor() {
            super("guideEntryRenderer", [{no: 1, name: "browseId", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {browseId: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.browseId = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.browseId !== "" && t.tag(1, d.LengthDelimited).string(e.browseId);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Y = new oi, li = class extends F {
        constructor() {
            super("Name", [{no: 1, name: "runs", kind: "message", repeat: 1, T: () => Ut}])
        }

        create(e) {
            let t = {runs: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.runs.push(Ut.internalBinaryRead(e, e.uint32(), n));
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.runs.length; r++) Ut.internalBinaryWrite(e.runs[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, re = new li, fi = class extends F {
        constructor() {
            super("Name.Runs", [{no: 1, name: "text", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {text: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.text = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.text !== "" && t.tag(1, d.LengthDelimited).string(e.text);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ut = new fi, ui = class extends F {
        constructor() {
            super("Player", [{no: 7, name: "p1F7", kind: "message", repeat: 1, T: () => St}, {
                no: 2,
                name: "p1F2",
                kind: "message",
                T: () => Dt
            }, {no: 10, name: "captions", kind: "message", T: () => Et}])
        }

        create(e) {
            let t = {p1F7: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 7:
                        r.p1F7.push(St.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 2:
                        r.p1F2 = Dt.internalBinaryRead(e, e.uint32(), n, r.p1F2);
                        break;
                    case 10:
                        r.captions = Et.internalBinaryRead(e, e.uint32(), n, r.captions);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.p1F7.length; r++) St.internalBinaryWrite(e.p1F7[r], t.tag(7, d.LengthDelimited).fork(), n).join();
            e.p1F2 && Dt.internalBinaryWrite(e.p1F2, t.tag(2, d.LengthDelimited).fork(), n).join(), e.captions && Et.internalBinaryWrite(e.captions, t.tag(10, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, hr = new ui, ci = class extends F {
        constructor() {
            super("Player.Captions", [{
                no: 51621377,
                name: "playerCaptionsTracklistRenderer",
                kind: "message",
                T: () => $t
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 51621377:
                        r.playerCaptionsTracklistRenderer = $t.internalBinaryRead(e, e.uint32(), n, r.playerCaptionsTracklistRenderer);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.playerCaptionsTracklistRenderer && $t.internalBinaryWrite(e.playerCaptionsTracklistRenderer, t.tag(51621377, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Et = new ci, di = class extends F {
        constructor() {
            super("Player.Captions.PlayerCaptionsTracklistRenderer", [{
                no: 1,
                name: "captionTracks",
                kind: "message",
                repeat: 1,
                T: () => Ct
            }, {no: 2, name: "audioTracks", kind: "message", repeat: 1, T: () => Lt}, {
                no: 3,
                name: "translationLanguages",
                kind: "message",
                repeat: 1,
                T: () => jt
            }, {no: 4, name: "defaultAudioTrackIndex", kind: "scalar", opt: !0, T: 5}, {
                no: 6,
                name: "defaultCaptionTrackIndex",
                kind: "scalar",
                opt: !0,
                T: 5
            }])
        }

        create(e) {
            let t = {captionTracks: [], audioTracks: [], translationLanguages: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.captionTracks.push(Ct.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 2:
                        r.audioTracks.push(Lt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 3:
                        r.translationLanguages.push(jt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 4:
                        r.defaultAudioTrackIndex = e.int32();
                        break;
                    case 6:
                        r.defaultCaptionTrackIndex = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.captionTracks.length; r++) Ct.internalBinaryWrite(e.captionTracks[r], t.tag(1, d.LengthDelimited).fork(), n).join();
            for (let r = 0; r < e.audioTracks.length; r++) Lt.internalBinaryWrite(e.audioTracks[r], t.tag(2, d.LengthDelimited).fork(), n).join();
            for (let r = 0; r < e.translationLanguages.length; r++) jt.internalBinaryWrite(e.translationLanguages[r], t.tag(3, d.LengthDelimited).fork(), n).join();
            e.defaultAudioTrackIndex !== void 0 && t.tag(4, d.Varint).int32(e.defaultAudioTrackIndex), e.defaultCaptionTrackIndex !== void 0 && t.tag(6, d.Varint).int32(e.defaultCaptionTrackIndex);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, $t = new di, hi = class extends F {
        constructor() {
            super("Player.Captions.PlayerCaptionsTracklistRenderer.CaptionTracks", [{
                no: 1,
                name: "baseUrl",
                kind: "scalar",
                T: 9
            }, {no: 2, name: "name", kind: "message", T: () => re}, {
                no: 3,
                name: "vssId",
                kind: "scalar",
                T: 9
            }, {no: 4, name: "languageCode", kind: "scalar", T: 9}, {
                no: 5,
                name: "kind",
                kind: "scalar",
                opt: !0,
                T: 9
            }, {no: 6, name: "rtl", kind: "scalar", opt: !0, T: 8}, {
                no: 7,
                name: "isTranslatable",
                kind: "scalar",
                T: 8
            }])
        }

        create(e) {
            let t = {baseUrl: "", vssId: "", languageCode: "", isTranslatable: !1};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.baseUrl = e.string();
                        break;
                    case 2:
                        r.name = re.internalBinaryRead(e, e.uint32(), n, r.name);
                        break;
                    case 3:
                        r.vssId = e.string();
                        break;
                    case 4:
                        r.languageCode = e.string();
                        break;
                    case 5:
                        r.kind = e.string();
                        break;
                    case 6:
                        r.rtl = e.bool();
                        break;
                    case 7:
                        r.isTranslatable = e.bool();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.baseUrl !== "" && t.tag(1, d.LengthDelimited).string(e.baseUrl), e.name && re.internalBinaryWrite(e.name, t.tag(2, d.LengthDelimited).fork(), n).join(), e.vssId !== "" && t.tag(3, d.LengthDelimited).string(e.vssId), e.languageCode !== "" && t.tag(4, d.LengthDelimited).string(e.languageCode), e.kind !== void 0 && t.tag(5, d.LengthDelimited).string(e.kind), e.rtl !== void 0 && t.tag(6, d.Varint).bool(e.rtl), e.isTranslatable !== !1 && t.tag(7, d.Varint).bool(e.isTranslatable);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ct = new hi, pi = class extends F {
        constructor() {
            super("Player.Captions.PlayerCaptionsTracklistRenderer.AudioTracks", [{
                no: 2,
                name: "captionTrackIndices",
                kind: "scalar",
                repeat: 2,
                T: 5
            }, {no: 3, name: "defaultCaptionTrackIndex", kind: "scalar", opt: !0, T: 5}, {
                no: 4,
                name: "forcedCaptionTrackIndex",
                kind: "scalar",
                opt: !0,
                T: 5
            }, {no: 5, name: "visibility", kind: "scalar", opt: !0, T: 5}, {
                no: 6,
                name: "hasDefaultTrack",
                kind: "scalar",
                opt: !0,
                T: 8
            }, {no: 7, name: "hasForcedTrack", kind: "scalar", opt: !0, T: 8}, {
                no: 8,
                name: "audioTrackId",
                kind: "scalar",
                opt: !0,
                T: 9
            }, {no: 11, name: "captionsInitialState", kind: "scalar", opt: !0, T: 5}])
        }

        create(e) {
            let t = {captionTrackIndices: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 2:
                        if (o === d.LengthDelimited) for (let g = e.int32() + e.pos; e.pos < g;) r.captionTrackIndices.push(e.int32()); else r.captionTrackIndices.push(e.int32());
                        break;
                    case 3:
                        r.defaultCaptionTrackIndex = e.int32();
                        break;
                    case 4:
                        r.forcedCaptionTrackIndex = e.int32();
                        break;
                    case 5:
                        r.visibility = e.int32();
                        break;
                    case 6:
                        r.hasDefaultTrack = e.bool();
                        break;
                    case 7:
                        r.hasForcedTrack = e.bool();
                        break;
                    case 8:
                        r.audioTrackId = e.string();
                        break;
                    case 11:
                        r.captionsInitialState = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.captionTrackIndices.length; r++) t.tag(2, d.Varint).int32(e.captionTrackIndices[r]);
            e.defaultCaptionTrackIndex !== void 0 && t.tag(3, d.Varint).int32(e.defaultCaptionTrackIndex), e.forcedCaptionTrackIndex !== void 0 && t.tag(4, d.Varint).int32(e.forcedCaptionTrackIndex), e.visibility !== void 0 && t.tag(5, d.Varint).int32(e.visibility), e.hasDefaultTrack !== void 0 && t.tag(6, d.Varint).bool(e.hasDefaultTrack), e.hasForcedTrack !== void 0 && t.tag(7, d.Varint).bool(e.hasForcedTrack), e.audioTrackId !== void 0 && t.tag(8, d.LengthDelimited).string(e.audioTrackId), e.captionsInitialState !== void 0 && t.tag(11, d.Varint).int32(e.captionsInitialState);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Lt = new pi, yi = class extends F {
        constructor() {
            super("Player.Captions.PlayerCaptionsTracklistRenderer.TranslationLanguages", [{
                no: 1,
                name: "languageCode",
                kind: "scalar",
                T: 9
            }, {no: 2, name: "languageName", kind: "message", T: () => re}])
        }

        create(e) {
            let t = {languageCode: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.languageCode = e.string();
                        break;
                    case 2:
                        r.languageName = re.internalBinaryRead(e, e.uint32(), n, r.languageName);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.languageCode !== "" && t.tag(1, d.LengthDelimited).string(e.languageCode), e.languageName && re.internalBinaryWrite(e.languageName, t.tag(2, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, jt = new yi, Fi = class extends F {
        constructor() {
            super("p1F2", [{no: 21, name: "p2F21", kind: "message", T: () => At}, {
                no: 11,
                name: "p2F11",
                kind: "message",
                T: () => _t
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 21:
                        r.p2F21 = At.internalBinaryRead(e, e.uint32(), n, r.p2F21);
                        break;
                    case 11:
                        r.p2F11 = _t.internalBinaryRead(e, e.uint32(), n, r.p2F11);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.p2F21 && At.internalBinaryWrite(e.p2F21, t.tag(21, d.LengthDelimited).fork(), n).join(), e.p2F11 && _t.internalBinaryWrite(e.p2F11, t.tag(11, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Dt = new Fi, mi = class extends F {
        constructor() {
            super("p1F7", [{no: 84813246, name: "p2F84813246", kind: "message", T: () => Mt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 84813246:
                        r.p2F84813246 = Mt.internalBinaryRead(e, e.uint32(), n, r.p2F84813246);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.p2F84813246 && Mt.internalBinaryWrite(e.p2F84813246, t.tag(84813246, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, St = new mi, gi = class extends F {
        constructor() {
            super("p2F84813246", [{no: 3, name: "v", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {v: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 3:
                        r.v = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.v !== 0 && t.tag(3, d.Varint).int32(e.v);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Mt = new gi, wi = class extends F {
        constructor() {
            super("p2F21", [{no: 151635310, name: "p3F151635310", kind: "message", T: () => Vt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 151635310:
                        r.p3F151635310 = Vt.internalBinaryRead(e, e.uint32(), n, r.p3F151635310);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.p3F151635310 && Vt.internalBinaryWrite(e.p3F151635310, t.tag(151635310, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, At = new wi, bi = class extends F {
        constructor() {
            super("p2F11", [{no: 64657230, name: "p3F64657230", kind: "message", T: () => vt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 64657230:
                        r.p3F64657230 = vt.internalBinaryRead(e, e.uint32(), n, r.p3F64657230);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.p3F64657230 && vt.internalBinaryWrite(e.p3F64657230, t.tag(64657230, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, _t = new bi, ki = class extends F {
        constructor() {
            super("p3F151635310", [{no: 1, name: "pip", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {pip: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.pip = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.pip !== 0 && t.tag(1, d.Varint).int32(e.pip);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Vt = new ki, Bi = class extends F {
        constructor() {
            super("p3F64657230", [{no: 1, name: "backPlay", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {backPlay: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.backPlay = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.backPlay !== 0 && t.tag(1, d.Varint).int32(e.backPlay);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, vt = new Bi, Ti = class extends F {
        constructor() {
            super("Setting", [{no: 6, name: "st1F6", kind: "message", repeat: 1, T: () => Kt}, {
                no: 7,
                name: "st1F7",
                kind: "message",
                T: () => Gt
            }, {no: 10, name: "st1F10", kind: "message", T: () => Jt}])
        }

        create(e) {
            let t = {st1F6: []};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 6:
                        r.st1F6.push(Kt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 7:
                        r.st1F7 = Gt.internalBinaryRead(e, e.uint32(), n, r.st1F7);
                        break;
                    case 10:
                        r.st1F10 = Jt.internalBinaryRead(e, e.uint32(), n, r.st1F10);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.st1F6.length; r++) Kt.internalBinaryWrite(e.st1F6[r], t.tag(6, d.LengthDelimited).fork(), n).join();
            e.st1F7 && Gt.internalBinaryWrite(e.st1F7, t.tag(7, d.LengthDelimited).fork(), n).join(), e.st1F10 && Jt.internalBinaryWrite(e.st1F10, t.tag(10, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, pr = new Ti, Ri = class extends F {
        constructor() {
            super("st1F6", [{no: 88478200, name: "st2F88478200", kind: "message", T: () => se}, {
                no: 66930374,
                name: "st2F66930374",
                kind: "message",
                T: () => Xt
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 88478200:
                        r.st2F88478200 = se.internalBinaryRead(e, e.uint32(), n, r.st2F88478200);
                        break;
                    case 66930374:
                        r.st2F66930374 = Xt.internalBinaryRead(e, e.uint32(), n, r.st2F66930374);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st2F88478200 && se.internalBinaryWrite(e.st2F88478200, t.tag(88478200, d.LengthDelimited).fork(), n).join(), e.st2F66930374 && Xt.internalBinaryWrite(e.st2F66930374, t.tag(66930374, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Kt = new Ri, Ni = class extends F {
        constructor() {
            super("st1F7", [{no: 88478200, name: "st2F88478200", kind: "message", T: () => se}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 88478200:
                        r.st2F88478200 = se.internalBinaryRead(e, e.uint32(), n, r.st2F88478200);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st2F88478200 && se.internalBinaryWrite(e.st2F88478200, t.tag(88478200, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Gt = new Ni, Ii = class extends F {
        constructor() {
            super("st1F10", [{no: 4, name: "st2F4", kind: "message", T: () => ae}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 4:
                        r.st2F4 = ae.internalBinaryRead(e, e.uint32(), n, r.st2F4);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st2F4 && ae.internalBinaryWrite(e.st2F4, t.tag(4, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Jt = new Ii, Wi = class extends F {
        constructor() {
            super("st2F4", [{no: 1, name: "f1", kind: "scalar", T: 4}, {
                no: 2,
                name: "f2",
                kind: "scalar",
                T: 7
            }, {no: 3, name: "f3", kind: "scalar", T: 7}])
        }

        create(e) {
            let t = {f1: "0", f2: 0, f3: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.f1 = e.uint64().toString();
                        break;
                    case 2:
                        r.f2 = e.fixed32();
                        break;
                    case 3:
                        r.f3 = e.fixed32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f1 !== "0" && t.tag(1, d.Varint).uint64(e.f1), e.f2 !== 0 && t.tag(2, d.Bit32).fixed32(e.f2), e.f3 !== 0 && t.tag(3, d.Bit32).fixed32(e.f3);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, ae = new Wi, xi = class extends F {
        constructor() {
            super("st2F88478200", [{no: 2, name: "f2", kind: "scalar", T: 5}, {
                no: 3,
                name: "f3",
                kind: "scalar",
                T: 5
            }, {no: 5, name: "st3F5", kind: "message", T: () => A}, {no: 6, name: "f6", kind: "scalar", T: 5}, {
                no: 7,
                name: "f7",
                kind: "scalar",
                T: 5
            }, {no: 8, name: "f8", kind: "scalar", T: 5}, {no: 9, name: "f9", kind: "scalar", T: 5}, {
                no: 10,
                name: "f10",
                kind: "scalar",
                T: 5
            }, {no: 12, name: "f12", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {f2: 0, f3: 0, f6: 0, f7: 0, f8: 0, f9: 0, f10: 0, f12: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 2:
                        r.f2 = e.int32();
                        break;
                    case 3:
                        r.f3 = e.int32();
                        break;
                    case 5:
                        r.st3F5 = A.internalBinaryRead(e, e.uint32(), n, r.st3F5);
                        break;
                    case 6:
                        r.f6 = e.int32();
                        break;
                    case 7:
                        r.f7 = e.int32();
                        break;
                    case 8:
                        r.f8 = e.int32();
                        break;
                    case 9:
                        r.f9 = e.int32();
                        break;
                    case 10:
                        r.f10 = e.int32();
                        break;
                    case 12:
                        r.f12 = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f2 !== 0 && t.tag(2, d.Varint).int32(e.f2), e.f3 !== 0 && t.tag(3, d.Varint).int32(e.f3), e.st3F5 && A.internalBinaryWrite(e.st3F5, t.tag(5, d.LengthDelimited).fork(), n).join(), e.f6 !== 0 && t.tag(6, d.Varint).int32(e.f6), e.f7 !== 0 && t.tag(7, d.Varint).int32(e.f7), e.f8 !== 0 && t.tag(8, d.Varint).int32(e.f8), e.f9 !== 0 && t.tag(9, d.Varint).int32(e.f9), e.f10 !== 0 && t.tag(10, d.Varint).int32(e.f10), e.f12 !== 0 && t.tag(12, d.Varint).int32(e.f12);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, se = new xi, Oi = class extends F {
        constructor() {
            super("st2F66930374", [{no: 3, name: "st3F3", kind: "message", repeat: 1, T: () => qt}, {
                no: 4,
                name: "num",
                kind: "scalar",
                T: 5
            }])
        }

        create(e) {
            let t = {st3F3: [], num: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 3:
                        r.st3F3.push(qt.internalBinaryRead(e, e.uint32(), n));
                        break;
                    case 4:
                        r.num = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            for (let r = 0; r < e.st3F3.length; r++) qt.internalBinaryWrite(e.st3F3[r], t.tag(3, d.LengthDelimited).fork(), n).join();
            e.num !== 0 && t.tag(4, d.Varint).int32(e.num);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Xt = new Oi, Pi = class extends F {
        constructor() {
            super("st3F1", [{no: 1, name: "st4F1", kind: "message", T: () => Yt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.st4F1 = Yt.internalBinaryRead(e, e.uint32(), n, r.st4F1);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st4F1 && Yt.internalBinaryWrite(e.st4F1, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Is = new Pi, Ui = class extends F {
        constructor() {
            super("st3F3", [{no: 61331416, name: "st4F61331416", kind: "message", T: () => Zt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 61331416:
                        r.st4F61331416 = Zt.internalBinaryRead(e, e.uint32(), n, r.st4F61331416);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st4F61331416 && Zt.internalBinaryWrite(e.st4F61331416, t.tag(61331416, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, qt = new Ui, Ei = class extends F {
        constructor() {
            super("st3F5", [{no: 1, name: "f1", kind: "scalar", T: 5}, {
                no: 2,
                name: "f2",
                kind: "scalar",
                T: 5
            }, {no: 3, name: "f3", kind: "scalar", T: 5}, {no: 4, name: "st2F4", kind: "message", T: () => ae}])
        }

        create(e) {
            let t = {f1: 0, f2: 0, f3: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.f1 = e.int32();
                        break;
                    case 2:
                        r.f2 = e.int32();
                        break;
                    case 3:
                        r.f3 = e.int32();
                        break;
                    case 4:
                        r.st2F4 = ae.internalBinaryRead(e, e.uint32(), n, r.st2F4);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f1 !== 0 && t.tag(1, d.Varint).int32(e.f1), e.f2 !== 0 && t.tag(2, d.Varint).int32(e.f2), e.f3 !== 0 && t.tag(3, d.Varint).int32(e.f3), e.st2F4 && ae.internalBinaryWrite(e.st2F4, t.tag(4, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, A = new Ei, $i = class extends F {
        constructor() {
            super("st4F1", [{no: 1, name: "title", kind: "scalar", T: 9}])
        }

        create(e) {
            let t = {title: ""};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.title = e.string();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.title !== "" && t.tag(1, d.LengthDelimited).string(e.title);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Yt = new $i, Ci = class extends F {
        constructor() {
            super("st4F61331416", [{no: 5, name: "st5F5", kind: "message", T: () => Z}, {
                no: 6,
                name: "st5F6",
                kind: "message",
                T: () => Z
            }, {no: 13, name: "st3F5", kind: "message", T: () => A}, {no: 15, name: "f15", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {f15: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 5:
                        r.st5F5 = Z.internalBinaryRead(e, e.uint32(), n, r.st5F5);
                        break;
                    case 6:
                        r.st5F6 = Z.internalBinaryRead(e, e.uint32(), n, r.st5F6);
                        break;
                    case 13:
                        r.st3F5 = A.internalBinaryRead(e, e.uint32(), n, r.st3F5);
                        break;
                    case 15:
                        r.f15 = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st5F5 && Z.internalBinaryWrite(e.st5F5, t.tag(5, d.LengthDelimited).fork(), n).join(), e.st5F6 && Z.internalBinaryWrite(e.st5F6, t.tag(6, d.LengthDelimited).fork(), n).join(), e.st3F5 && A.internalBinaryWrite(e.st3F5, t.tag(13, d.LengthDelimited).fork(), n).join(), e.f15 !== 0 && t.tag(15, d.Varint).int32(e.f15);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Zt = new Ci, Li = class extends F {
        constructor() {
            super("st5F5", [{no: 2, name: "st3F5", kind: "message", T: () => A}, {
                no: 81212182,
                name: "st6F81212182",
                kind: "message",
                T: () => zt
            }])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 2:
                        r.st3F5 = A.internalBinaryRead(e, e.uint32(), n, r.st3F5);
                        break;
                    case 81212182:
                        r.st6F81212182 = zt.internalBinaryRead(e, e.uint32(), n, r.st6F81212182);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st3F5 && A.internalBinaryWrite(e.st3F5, t.tag(2, d.LengthDelimited).fork(), n).join(), e.st6F81212182 && zt.internalBinaryWrite(e.st6F81212182, t.tag(81212182, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Z = new Li, ji = class extends F {
        constructor() {
            super("st6F81212182", [{no: 1, name: "st7F1", kind: "message", T: () => Qt}])
        }

        create(e) {
            let t = {};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.st7F1 = Qt.internalBinaryRead(e, e.uint32(), n, r.st7F1);
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st7F1 && Qt.internalBinaryWrite(e.st7F1, t.tag(1, d.LengthDelimited).fork(), n).join();
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, zt = new ji, Di = class extends F {
        constructor() {
            super("st7F1", [{no: 1, name: "st8F1", kind: "message", T: () => Ht}, {
                no: 3,
                name: "f3",
                kind: "scalar",
                T: 5
            }])
        }

        create(e) {
            let t = {f3: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.st8F1 = Ht.internalBinaryRead(e, e.uint32(), n, r.st8F1);
                        break;
                    case 3:
                        r.f3 = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.st8F1 && Ht.internalBinaryWrite(e.st8F1, t.tag(1, d.LengthDelimited).fork(), n).join(), e.f3 !== 0 && t.tag(3, d.Varint).int32(e.f3);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Qt = new Di, Si = class extends F {
        constructor() {
            super("st8F1", [{no: 1, name: "f1", kind: "scalar", T: 5}])
        }

        create(e) {
            let t = {f1: 0};
            return globalThis.Object.defineProperty(t, y, {
                enumerable: !1,
                value: this
            }), e !== void 0 && p(this, t, e), t
        }

        internalBinaryRead(e, t, n, i) {
            let r = i ?? this.create(), f = e.pos + t;
            for (; e.pos < f;) {
                let [s, o] = e.tag();
                switch (s) {
                    case 1:
                        r.f1 = e.int32();
                        break;
                    default:
                        let a = n.readUnknownField;
                        if (a === "throw") throw new globalThis.Error(`Unknown field ${s} (wire type ${o}) for ${this.typeName}`);
                        let u = e.skip(o);
                        a !== !1 && (a === !0 ? c.onRead : a)(this.typeName, r, s, o, u)
                }
            }
            return r
        }

        internalBinaryWrite(e, t, n) {
            e.f1 !== 0 && t.tag(1, d.Varint).int32(e.f1);
            let i = n.writeUnknownFields;
            return i !== !1 && (i == !0 ? c.onWrite : i)(this.typeName, e, t), t
        }
    }, Ht = new Si;
    var oe = class {
        constructor(e, t, n) {
            this._times = new Map;
            this.name = e ?? "", this.debug = n?.debug ?? !1, e && this.log(`${e} Start`), this.className = t ?? "", this.init()
        }

        static getInstance(e, t) {
            let n = typeof $task < "u" ? "QuanX" : "Surge";
            return oe.instances[n] || (oe.instances[n] = oe.classNames[n](e, n, t)), oe.instances[n]
        }

        createProxy(e) {
            return new Proxy(e, {get: this.getFn, set: this.setFn})
        }

        getFn(e, t, n) {
            return e[t]
        }

        setFn(e, t, n, i) {
            return e[t] = n, !0
        }

        getJSON(e, t = {}) {
            let n = this.getVal(e);
            return n ? JSON.parse(n) : t
        }

        setJSON(e, t) {
            this.setVal(JSON.stringify(e), t)
        }

        msg(e = this.name, t = "", n = "", i) {
        }

        log(e) {
            this.debug && (typeof e == "object" && (e = JSON.stringify(e)), console.log(e))
        }

        timeStart(e) {
            this._times = this._times || {}, this._times[e] = Date.now()
        }

        timeEnd(e) {
            if (this._times?.has(e)) {
                let t = Date.now() - this._times[e];
                this.log(`${e}: ${t}ms`), this._times.delete(e)
            } else this.log(`Timer with label ${e} does not exist.`)
        }

        exit() {
            $done({})
        }

        reject() {
            $done()
        }
    }, V = oe;
    V.instances = {}, V.classNames = {QuanX: (e, t, n) => new Ne(e, t, n), Surge: (e, t, n) => new Re(e, t, n)};
    var Ie = class extends V {
        getFn(e, t, n) {
            let i = Ie.clientAdapter[t] || t;
            return super.getFn(e, i, n)
        }

        setFn(e, t, n, i) {
            let r = Ie.clientAdapter[t] || t;
            return super.setFn(e, r, n, i)
        }

        init() {
            try {
                this.request = this.createProxy($request), this.response = this.createProxy($response)
            } catch (e) {
                this.log(e.toString())
            }
        }

        getVal(e) {
            return $persistentStore.read(e)
        }

        setVal(e, t) {
            $persistentStore.write(e, t)
        }

        msg(e = this.name, t = "", n = "", i) {
            $notification.post(e, t, n, {url: i ?? ""})
        }

        async fetch(e) {
            return await new Promise((t, n) => {
                let {method: i, body: r, bodyBytes: f, ...s} = e, o = f ?? r, a = o instanceof Uint8Array;
                $httpClient[i.toLowerCase()]({...s, body: o, "binary-mode": a}, (u, g, k) => {
                    u && n(u);
                    let m = a ? "bodyBytes" : "body";
                    t({status: g.status || g.statusCode, headers: g.headers, [m]: k})
                })
            })
        }

        done(e) {
            let t = e.response ?? e, n, i;
            t.bodyBytes ? (n = t.bodyBytes, delete t.bodyBytes, i = {...e}, i.response ? i.response.body = n : i.body = n) : i = e, $done(i)
        }
    }, Re = Ie;
    Re.clientAdapter = {bodyBytes: "body"};
    var _ = class extends V {
        static transferBodyBytes(e, t) {
            return e instanceof ArrayBuffer ? t === "Uint8Array" ? new Uint8Array(e) : e : e instanceof Uint8Array && t === "ArrayBuffer" ? e.buffer.slice(e.byteOffset, e.byteLength + e.byteOffset) : e
        }

        init() {
            try {
                this.request = this.createProxy($request), this.response = this.createProxy($response)
            } catch (e) {
                this.log(e.toString())
            }
        }

        getFn(e, t, n) {
            let i = _.clientAdapter[t] || t, r = super.getFn(e, i, n);
            return t === "bodyBytes" && (r = _.transferBodyBytes(r, "Uint8Array")), r
        }

        setFn(e, t, n, i) {
            let r = _.clientAdapter[t] || t, f = n;
            return t === "bodyBytes" && (f = _.transferBodyBytes(f, "Uint8Array")), super.setFn(e, r, f, i)
        }

        getVal(e) {
            return $prefs.valueForKey(e)?.replace(/\0/g, "")
        }

        setVal(e, t) {
            $prefs.setValueForKey(e, t)
        }

        msg(e = this.name, t = "", n = "", i) {
            $notify(e, t, n, {"open-url": i ?? ""})
        }

        async fetch(e) {
            return await new Promise(t => {
                let n = {url: "", method: "GET"};
                for (let [i, r] of Object.entries(e)) i === "id" ? n.sessionIndex = r : i === "bodyBytes" ? n.bodyBytes = _.transferBodyBytes(r, "ArrayBuffer") : n[i] = r;
                e.bodyBytes && delete n.body, $task.fetch(n).then(i => {
                    let r = {status: 200, headers: {}};
                    for (let [f, s] of Object.entries(i)) f === "sessionIndex" ? r.id = s : f === "bodyBytes" ? r.bodyBytes = _.transferBodyBytes(s, "Uint8Array") : f === "statusCode" ? r.status = s : r[f] = s;
                    t(r)
                })
            })
        }

        done(e) {
            let t = e.response ?? e, n = {};
            for (let [i, r] of Object.entries(t)) i === "status" ? n.status = `HTTP/1.1 ${r}` : i === "bodyBytes" ? n.bodyBytes = _.transferBodyBytes(r, "ArrayBuffer") : n[i] = r;
            $done(n)
        }
    }, Ne = _;
    Ne.clientAdapter = {id: "sessionIndex", status: "statusCode"};
    var U = V.getInstance("YouTube", {debug: !1});
    var K = class {
        constructor(e, t) {
            this.decoder = new TextDecoder("utf-8", {fatal: !1, ignoreBOM: !0});
            U.log(t), this.msgType = e, Object.assign(this, U.getJSON("YouTubeAdvertiseInfo", {
                whiteNo: [],
                blackNo: [],
                whiteEml: [],
                blackEml: ["cell_divider.eml"]
            }))
        }

        fromBinary(e) {
            return this.message = this.msgType.fromBinary(e), this
        }

        toBinary() {
            return this.msgType.toBinary(this.message)
        }

        save() {
            if (this.needSave) {
                U.log("Update Config");
                let e = {
                    whiteNo: this.whiteNo,
                    blackNo: this.blackNo,
                    whiteEml: this.whiteEml,
                    blackEml: this.blackEml
                };
                U.setJSON(e, "YouTubeAdvertiseInfo")
            }
        }

        done(e) {
            this.save();
            let t = e.bodyBytes;
            this.needProcess && (t = this.toBinary()), e.headers["Content-Encoding"] = "identity", e.headers["Content-Length"] = (t?.length ?? 0)?.toString(), U.done({
                response: {
                    ...e,
                    bodyBytes: t
                }
            })
        }

        doneResponse() {
            this.save(), this.needProcess && U.done({bodyBytes: this.toBinary()}), U.exit()
        }

        iterate(e = {}, t, n) {
            let i = typeof e == "object" ? [e] : [];
            for (; i.length;) {
                let r = i.pop(), f = Object.keys(r);
                if (typeof t == "symbol") {
                    for (let s of Object.getOwnPropertySymbols(r)) if (Symbol.keyFor(s) === Symbol.keyFor(t)) {
                        n(r, i);
                        break
                    }
                }
                for (let s of f) s === t ? n(r, i) : typeof r[s] == "object" && i.push(r[s])
            }
        }

        isAdvertise(e) {
            let t = c.list(e)[0], n = t ? this.handleFieldNo(t) : this.handleFieldEml(e);
            return n && (this.needProcess = !0), n
        }

        handleFieldNo(e) {
            let t = e.no;
            if (this.whiteNo.includes(t)) return !1;
            if (this.blackNo.includes(t)) return !0;
            let i = this.decoder.decode(e.data).includes("pagead");
            return i ? this.blackNo.push(t) : this.whiteNo.push(t), this.needSave = !0, i
        }

        handleFieldEml(e) {
            let t = !1, n = !0, i = "";
            return this.iterate(e, "type", (r, f) => {
                i = r.type.split("|")[0], this.whiteEml.includes(i) ? t = !1 : this.blackEml.includes(i) || /shorts(?!_pivot_item)/.test(i) ? t = !0 : n = !1, n && (f.length = 0)
            }), n || (this.iterate(e, Symbol.for("protobuf-ts/unknown"), (r, f) => {
                let s = c.list(r);
                for (let o of s) if (o.data.length > 1e3 && (t = this.decoder.decode(o.data).includes("pagead"), t)) {
                    f.length = 0;
                    break
                }
            }), t ? this.blackEml.push(i) : this.whiteEml.push(i), this.needSave = !0), t
        }
    };

    function Tr(l) {
        let n = ".", i = "+-a^+6", r = "+-3^+b+-f", f, s, o;
        for (f = [], s = 0, o = 0; o < l.length; o++) {
            let a = l.charCodeAt(o);
            128 > a ? f[s++] = a : (2048 > a ? f[s++] = a >> 6 | 192 : ((a & 64512) == 55296 && o + 1 < l.length && (l.charCodeAt(o + 1) & 64512) == 56320 ? (a = 65536 + ((a & 1023) << 10) + (l.charCodeAt(++o) & 1023), f[s++] = a >> 18 | 240, f[s++] = a >> 12 & 63 | 128) : f[s++] = a >> 12 | 224, f[s++] = a >> 6 & 63 | 128), f[s++] = a & 63 | 128)
        }
        for (l = 406644, s = 0; s < f.length; s++) l += f[s], l = yr(l, i);
        return l = yr(l, r), l ^= 3293161072, 0 > l && (l = (l & 2147483647) + 2147483648), l %= 1e6, l.toString() + n + (l ^ 406644)
    }

    function yr(l, e) {
        let t = "a", n = "+", i;
        for (let r = 0; r < e.length - 2; r += 3) i = e.charAt(r + 2), i = i >= t ? i.charCodeAt(0) - 87 : Number(i), i = e.charAt(r + 1) == n ? l >>> i : l << i, l = e.charAt(r) == n ? l + i & 4294967295 : l ^ i;
        return l
    }

    function Fr(l) {
        return `https://translate.google.com/translate_a/single?client=gtx&sl=auto&tl=zh-CN&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&source=bh&ssel=0&tsel=0&kc=1&tk=${Tr(l)}&q=${encodeURIComponent(l)}`
    }

    var G = class extends K {
        constructor(t = lr, n = "Browse") {
            super(t, n)
        }

        pure() {
            return this.iterate(this.message, "n5F1", n => {
                for (let i = n.n5F1?.length - 1; i >= 0; i--) this.isAdvertise(n.n5F1[i]) && n.n5F1.splice(i, 1)
            }), this.getBrowseId().startsWith("MPLYt") && (this.needTranslate = !0), this
        }

        getBrowseId() {
            let t = "";
            return this.iterate(this.message?.responseContext, "key", (n, i) => {
                n.key === "browse_id" && (t = n.value, i.length = 0)
            }), t
        }

        async translate() {
            let t = "", n, i = !1;
            if (this.iterate(this.message, "n13F1", (s, o) => {
                n = s, t = s.n13F1.map(a => a.f1).join(`
`), i = !0, o.length = 0
            }), i || this.iterate(this.message, "staticLyric", (s, o) => {
                n = s, t = s.staticLyric, o.length = 0, i = !0
            }), !i) return;
            let r = Fr(t), f = await U.fetch({method: "GET", url: r});
            if (f.status === 200 && f.body) {
                let s = JSON.parse(f.body), o = " & Translated by Google", a = s[2].includes("zh");
                n.staticLyric ? (n.staticLyric = s[0].map(u => a ? u[0] : u[1] + u[0] || "").join(`\r
`), this.iterate(this.message, "originText", (u, g) => {
                    u.originText += o, g.length = 0
                })) : n.n13F1.length <= s[0].length && (n.n13F1.forEach((u, g) => {
                    u.f1 = a ? s[0][g][0] : u.f1 + `
${s[0][g][0]}`
                }), n.originText += o), this.needProcess = !0
            }
        }
    }, We = class extends G {
        constructor(e = fr, t = "Next") {
            super(e, t)
        }

        pure() {
            return super.pure(), this
        }

        addTranslateTab() {
            this.iterate(this.message?.a1F7?.musicPlayRender, "items", (e, t) => {
                let n = e.items.find(i => i.tab.info?.browseInfo?.browseId.startsWith("MPLYt"));
                n && (n.tab.name = n.tab.name + "\u21C4"), this.needProcess = !0, t.length = 0
            })
        }
    }, xe = class extends K {
        constructor(e = hr, t = "Player") {
            super(e, t)
        }

        pure() {
            this.message.p1F7?.length && (this.message.p1F7.length = 0);
            let e = this.message?.p1F2?.p2F21?.p3F151635310;
            typeof e == "object" && (e.pip = 1);
            let t = {p2F11: {p3F64657230: {backPlay: 1}}};
            return typeof this.message?.p1F2 == "object" && Object.assign(this.message.p1F2, t), this.iterate(this.message, "captionTracks", (n, i) => {
                let r = n.captionTracks;
                if (Array.isArray(r)) for (let f of r) f.isTranslatable = !0;
                n.translationLanguages = [{
                    languageCode: "de",
                    languageName: {runs: [{text: "Deutsch"}]}
                }, {
                    languageCode: "ru",
                    languageName: {runs: [{text: "\u0420\u0443\u0441\u0441\u043A\u0438\u0439"}]}
                }, {languageCode: "fr", languageName: {runs: [{text: "Fran\xE7ais"}]}}, {
                    languageCode: "fil",
                    languageName: {runs: [{text: "Filipino"}]}
                }, {languageCode: "ko", languageName: {runs: [{text: "\uD55C\uAD6D\uC5B4"}]}}, {
                    languageCode: "ja",
                    languageName: {runs: [{text: "\u65E5\u672C\u8A9E"}]}
                }, {languageCode: "en", languageName: {runs: [{text: "English"}]}}, {
                    languageCode: "vi",
                    languageName: {runs: [{text: "Ti\u1EBFng Vi\u1EC7t"}]}
                }, {
                    languageCode: "zh-Hant",
                    languageName: {runs: [{text: "\u4E2D\u6587\uFF08\u7E41\u9AD4\uFF09"}]}
                }, {
                    languageCode: "zh-Hans",
                    languageName: {runs: [{text: "\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09"}]}
                }, {
                    languageCode: "und",
                    languageName: {runs: [{text: "@VirgilClyne"}]}
                }], n?.defaultCaptionTrackIndex || (n.defaultCaptionTrackIndex = 0), i.length = 0
            }), this.needProcess = !0, this
        }
    }, Oe = class extends G {
        constructor(e = ur, t = "Search") {
            super(e, t)
        }
    }, Pe = class extends K {
        constructor(e = cr, t = "Shorts") {
            super(e, t)
        }

        pure() {
            let e = this.message.t1F2?.length;
            if (e) for (let t = e - 1; t >= 0; t--) this.message.t1F2[t].n2F1?.n3F139608561?.n4F8 || (this.message.t1F2.splice(t, 1), this.needProcess = !0);
            return this
        }
    }, Ue = class extends K {
        constructor(e = dr, t = "Guide") {
            super(e, t)
        }

        pure() {
            let e = ["FEmusic_immersive", "SPunlimited", "FEuploads"];
            return this.iterate(this.message, "g3F1", t => {
                for (let n = t.g3F1.length - 1; n >= 0; n--) {
                    let i = t.g3F1[n]?.iconRender?.browseId || t.g3F1[n]?.labelRender?.browseId;
                    e.includes(i) && (t.g3F1.splice(n, 1), this.needProcess = !0)
                }
            }), this
        }
    }, Ee = class extends K {
        constructor(e = pr, t = "Setting") {
            super(e, t)
        }

        pure() {
            this.iterate(this.message, "num", t => {
                if (t.num === 10005) {
                    let n = {f1: 135, f2: 20434, f3: 2, st2F4: this.message.st1F10.st2F4}, i = {
                        st4F61331416: {
                            f15: 0,
                            st5F5: {st3F5: n, st6F81212182: {st7F1: {st8F1: {f1: 151}, f3: 1}}},
                            st5F6: {st3F5: n, st6F81212182: {st7F1: {st8F1: {f1: 151}, f3: 0}}},
                            st3F5: n
                        }
                    };
                    t.st3F3.push(i)
                }
            });
            let e = {
                st2F88478200: {
                    f2: 1,
                    f3: 1,
                    st3F5: {f1: 2, f2: 20020, f3: 8, st2F4: this.message.st1F10.st2F4},
                    f6: 0,
                    f7: 1,
                    f8: 1,
                    f9: 1,
                    f10: 1,
                    f12: 1
                }
            };
            return this.message.st1F6.push(JSON.parse(JSON.stringify(e))), e.st2F88478200.st3F5.f1 = 1, e.st2F88478200.st3F5.f3 = 9, this.message.st1F7 = e, this.needProcess = !0, this
        }
    };
    var Rr = new Map([["browse", G], ["next", We], ["player", xe], ["search", Oe], ["reel_watch_sequence", Pe], ["guide", Ue], ["get_setting", Ee]]);

    function Mi(l) {
        for (let [e, t] of Rr.entries()) if (l.includes(e)) return new t;
        return null
    }

    async function Nr() {
        let l = Mi(U.request.url);
        if (l) try {
            let e = U.response.bodyBytes;
            l.fromBinary(e).pure(), l instanceof G && l.needTranslate && await l.translate(), l.doneResponse()
        } catch (e) {
            console.log(e.toString()), U.exit()
        } else U.msg("YouTube Enhance", "\u811A\u672C\u9700\u8981\u66F4\u65B0", "\u5916\u90E8\u8D44\u6E90 -> \u5168\u90E8\u66F4\u65B0"), U.exit()
    }

    Nr();
})();