;
! function() {
    try {
        var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : {},
            n = (new e.Error).stack;
        n && ((e._debugIds || (e._debugIds = {}))[n] = "331c629b-ccba-1546-9ecc-9253bc2ac408")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 213633, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(23128),
        a = e.i(208956),
        i = e.i(416340),
        o = e.i(604777),
        s = e.i(348320),
        l = e.i(53950),
        u = e.i(248131),
        c = e.i(744788);
    let d = e => {
            let n, a, i, o, s, l, u, c, d = (0, r.c)(9);
            return d[0] === Symbol.for("react.memo_cache_sentinel") ? (n = (0, t.jsx)("circle", {
                cx: "61.017",
                cy: "61.017",
                r: "61.017",
                fill: "url(#paint0_linear_214_459)"
            }), a = (0, t.jsx)("path", {
                d: "M110.322 127.05C101.509 122.755 99.2967 113.409 99.42 108.475H23.0116C22.7458 117.334 16.5712 123.309 11.1292 126.573C8.17913 128.342 5.93207 131.342 5.93207 134.782V142C5.93207 146.418 9.5138 150 13.9321 150H108.949C113.367 150 116.949 146.418 116.949 142V135.962C116.949 131.98 113.901 128.794 110.322 127.05Z",
                fill: "url(#paint1_linear_214_459)"
            }), i = (0, t.jsx)("path", {
                d: "M64.8305 33.0509L99.1526 14.4068L57.6271 33.0509L78.8136 58.0509L64.8305 76.6949L89.8305 58.0509L64.8305 33.0509Z",
                fill: "#B5C9F7"
            }), o = (0, t.jsx)("path", {
                d: "M94.9151 129.661H7.32631C6.741 130.508 5.93207 132.109 5.93207 133.051H94.9151V129.661Z",
                fill: "url(#paint2_linear_214_459)"
            }), d[0] = n, d[1] = a, d[2] = i, d[3] = o) : (n = d[0], a = d[1], i = d[2], o = d[3]), d[4] === Symbol.for("react.memo_cache_sentinel") ? (s = (0, t.jsxs)("linearGradient", {
                id: "paint0_linear_214_459",
                x1: "61.017",
                y1: "0",
                x2: "61.017",
                y2: "122.034",
                gradientUnits: "userSpaceOnUse",
                children: [(0, t.jsx)("stop", {
                    stopColor: "#F3F8FD"
                }), (0, t.jsx)("stop", {
                    offset: "1",
                    stopColor: "#C0D2FB"
                })]
            }), d[4] = s) : s = d[4], d[5] === Symbol.for("react.memo_cache_sentinel") ? (l = (0, t.jsxs)("linearGradient", {
                id: "paint1_linear_214_459",
                x1: "61.4405",
                y1: "108.475",
                x2: "61.4405",
                y2: "150",
                gradientUnits: "userSpaceOnUse",
                children: [(0, t.jsx)("stop", {
                    stopColor: "#40578C"
                }), (0, t.jsx)("stop", {
                    offset: "1"
                })]
            }), d[5] = l) : l = d[5], d[6] === Symbol.for("react.memo_cache_sentinel") ? (u = (0, t.jsxs)("defs", {
                children: [s, l, (0, t.jsxs)("linearGradient", {
                    id: "paint2_linear_214_459",
                    x1: "24.9421",
                    y1: "125.847",
                    x2: "25.4997",
                    y2: "135.215",
                    gradientUnits: "userSpaceOnUse",
                    children: [(0, t.jsx)("stop", {
                        stopColor: "#B7CBF6",
                        stopOpacity: "0.6"
                    }), (0, t.jsx)("stop", {
                        offset: "0.941436",
                        stopColor: "white",
                        stopOpacity: "0"
                    })]
                })]
            }), d[6] = u) : u = d[6], d[7] !== e ? (c = (0, t.jsxs)("svg", {
                xmlns: "http://www.w3.org/2000/svg",
                className: "w-full h-auto",
                viewBox: "0 0 123 150",
                fill: "none",
                ...e,
                children: [n, a, i, o, u]
            }), d[7] = e, d[8] = c) : c = d[8], c
        },
        m = e => {
            if (void 0 !== e) {
                if ("string" == typeof e) return e;
                if ("number" == typeof e || "boolean" == typeof e || "bigint" == typeof e) return String(e);
                try {
                    return JSON.stringify(e)
                } catch {
                    return Object.prototype.toString.call(e)
                }
            }
        };
    e.s(["NotForecasted", 0, e => {
        let p, h, f, g, x, y, v, S, w, b, j, D = (0, r.c)(28),
            {
                status: C,
                source: M,
                reason: T,
                error: k,
                context: _
            } = e,
            N = void 0 === C ? "not-found" : C,
            E = (0, o.useTranslations)(),
            $ = (0, i.useRef)(null);
        D[0] !== _ || D[1] !== k || D[2] !== T || D[3] !== M || D[4] !== N ? (p = () => {
            let e = window.location.href,
                t = `${M??"unknown"}:${N}:${T??N}:${e}`;
            if ($.current === t) return;
            $.current = t;
            let r = {
                component: "NotForecasted",
                status: N,
                source: M ? ? "unknown",
                reason: T ? ? N,
                url: e,
                pathname: window.location.pathname,
                search: window.location.search,
                hash: window.location.hash,
                referrer: document.referrer || void 0,
                userAgent: window.navigator.userAgent,
                locale: window.navigator.language,
                error: (e => {
                    if (e) return e instanceof Error ? {
                        name: e.name,
                        message: e.message,
                        stack: e.stack,
                        cause: m(e.cause),
                        digest: m(e.digest)
                    } : {
                        name: Object.prototype.toString.call(e),
                        message: m(e)
                    }
                })(k),
                ..._
            };
            l.logger.error("NotForecasted page displayed", r), (0, s.initGroundcoverRum)().then(() => (0, s.sendGroundcoverEvent)("not_forecasted_page_displayed", r))
        }, h = [_, k, T, M, N], D[0] = _, D[1] = k, D[2] = T, D[3] = M, D[4] = N, D[5] = p, D[6] = h) : (p = D[5], h = D[6]), (0, i.useEffect)(p, h), D[7] !== E ? (f = E("seo.fourOhFour.heading"), D[7] = E, D[8] = f) : f = D[8], D[9] !== E ? (g = E("seo.fourOhFour.archived"), D[9] = E, D[10] = g) : g = D[10], D[11] !== f || D[12] !== g ? (x = {
            "not-found": f,
            archived: g
        }, D[11] = f, D[12] = g, D[13] = x) : x = D[13];
        let O = x;
        D[14] === Symbol.for("react.memo_cache_sentinel") ? (y = (0, t.jsx)("div", {
            className: "w-24 h-auto",
            children: (0, t.jsx)(d, {})
        }), D[14] = y) : y = D[14];
        let A = O[N];
        return D[15] !== A ? (v = (0, t.jsx)("p", {
            className: "text-2xl font-medium text-center text-text-primary mt-5",
            children: A
        }), D[15] = A, D[16] = v) : v = D[16], D[17] !== N || D[18] !== E ? (S = "not-found" === N && (0, t.jsxs)("p", {
            className: "text-text-secondary text-sm text-center mt-3",
            children: [E("seo.fourOhFour.subheading"), " ", (0, t.jsxs)("span", {
                className: "inline",
                children: [(0, t.jsx)("a", {
                    id: c.INTERCOM_LAUNCHER_ID,
                    children: "Intercom"
                }), " ", E("seo.fourOhFour.or"), " ", (0, t.jsx)("a", {
                    href: "https://help.polymarket.com",
                    target: "_blank",
                    rel: "noopener noreferrer",
                    className: "text-text-brand hover:text-text-brand-hover",
                    children: E("seo.fourOhFour.supportTeam")
                }), "."]
            })]
        }), D[17] = N, D[18] = E, D[19] = S) : S = D[19], D[20] !== E ? (w = E("seo.fourOhFour.goToHome"), D[20] = E, D[21] = w) : w = D[21], D[22] !== w ? (b = (0, t.jsx)(a.default, {
            href: u.Location.Home,
            className: "mt-5",
            children: (0, t.jsx)(n.Button, {
                variant: "default",
                size: "default",
                children: w
            })
        }), D[22] = w, D[23] = b) : b = D[23], D[24] !== S || D[25] !== b || D[26] !== v ? (j = (0, t.jsxs)("div", {
            className: "flex items-center justify-center p-8 w-full min-h-[calc(100vh-200px)] flex-col",
            children: [y, v, S, b]
        }), D[24] = S, D[25] = b, D[26] = v, D[27] = j) : j = D[27], j
    }])
}, 864636, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(76953),
        a = e.i(213633),
        i = e.i(355015);
    let o = e => {
        let i, o = (0, r.c)(4),
            {
                error: s,
                source: l,
                context: u
            } = e,
            c = void 0 === l ? "error-boundary" : l;
        return o[0] !== u || o[1] !== s || o[2] !== c ? (i = (0, t.jsx)(n.default, {
            title: "Polymarket",
            className: "h-screen",
            children: (0, t.jsx)(a.NotForecasted, {
                source: c,
                reason: "error-boundary",
                error: s,
                context: u
            })
        }, "/error"), o[0] = u, o[1] = s, o[2] = c, o[3] = i) : i = o[3], i
    };
    o.getLayout = function(e) {
        return (0, t.jsx)(i.default, {
            page: "error",
            children: e
        })
    }, e.s(["default", 0, o])
}, 609235, e => {
    "use strict";
    var t = e.i(416340),
        r = e.i(180715);
    e.s(["IconBarsFilterOutline12", 0, ({
        strokeWidth: e = 1.5,
        ...n
    }) => t.default.createElement(r.Icon, {
        size: "12px",
        ...n
    }, t.default.createElement("line", {
        x1: ".75",
        y1: "2.75",
        x2: "11.25",
        y2: "2.75",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }), t.default.createElement("line", {
        x1: "2.75",
        y1: "6.25",
        x2: "9.25",
        y2: "6.25",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e,
        "data-color": "color-2"
    }), t.default.createElement("line", {
        x1: "4.75",
        y1: "9.75",
        x2: "7.25",
        y2: "9.75",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }))])
}, 470080, 817109, 737183, 875890, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(918007),
        a = e.i(23128),
        i = e.i(158789),
        o = e.i(604777),
        s = e.i(215959),
        l = e.i(208956),
        u = e.i(609235),
        c = e.i(798631),
        d = e.i(296831),
        m = e.i(336896),
        p = e.i(416340),
        h = e.i(826341),
        f = e.i(840216),
        g = e.i(100825),
        x = e.i(476979),
        y = e.i(593332),
        v = e.i(944891),
        S = e.i(870555),
        w = e.i(86831),
        b = e.i(642396);
    let j = ["price", "american", "decimal", "fractional", "percentage", "indonesian", "hongKong", "malaysian"];

    function D() {
        let e, n, s, l, u, c, d, m, h, x = (0, r.c)(28),
            y = (0, o.useTranslations)(),
            v = (0, f.useSportsStore)(T),
            S = (0, f.useSportsStore)(M),
            D = (0, g.useSportsViewSetting)(),
            k = (0, f.useSportsStore)(C),
            _ = (0, g.useSpreadsViewEnabled)(),
            [N, E] = (0, p.useState)(!1);
        return x[0] !== N ? (e = (0, t.jsx)(i.DropdownMenuTrigger, {
            asChild: !0,
            children: (0, t.jsx)(a.Button, {
                variant: "ghost",
                size: "icon",
                className: "rounded-full",
                children: (0, t.jsx)(b.Sliders, {
                    active: N
                })
            })
        }), x[0] = N, x[1] = e) : e = x[1], x[2] !== y ? (n = y("sports.oddsFormat"), x[2] = y, x[3] = n) : n = x[3], x[4] !== n ? (s = (0, t.jsx)(i.DropdownMenuLabel, {
            className: "mb-0",
            children: n
        }), x[4] = n, x[5] = s) : s = x[5], x[6] !== S ? (l = e => S(e), x[6] = S, x[7] = l) : l = x[7], x[8] !== v || x[9] !== y ? (u = j.map(e => (0, t.jsx)(i.DropdownMenuRadioItem, {
            value: e,
            className: (0, w.cn)("capitalize", v === e && "text-text-primary"),
            children: y(`sports.${e}`)
        }, e)), x[8] = v, x[9] = y, x[10] = u) : u = x[10], x[11] !== v || x[12] !== l || x[13] !== u ? (c = (0, t.jsx)(i.DropdownMenuRadioGroup, {
            value: v,
            onValueChange: l,
            children: u
        }), x[11] = v, x[12] = l, x[13] = u, x[14] = c) : c = x[14], x[15] !== k || x[16] !== D || x[17] !== _ || x[18] !== y ? (d = _ && (0, t.jsxs)(t.Fragment, {
            children: [(0, t.jsx)(i.DropdownMenuSeparator, {}), (0, t.jsx)(i.DropdownMenuCheckboxItem, {
                checked: "aggregate" === D,
                onCheckedChange: e => {
                    k(e ? "aggregate" : "moneyline")
                },
                children: y("sports.showSpreadsTotals")
            })]
        }), x[15] = k, x[16] = D, x[17] = _, x[18] = y, x[19] = d) : d = x[19], x[20] !== s || x[21] !== c || x[22] !== d ? (m = (0, t.jsx)(i.DropdownMenuPortal, {
            children: (0, t.jsxs)(i.DropdownMenuContent, {
                side: "bottom",
                align: "end",
                sideOffset: 6,
                className: "w-[230px]",
                children: [s, c, d]
            })
        }), x[20] = s, x[21] = c, x[22] = d, x[23] = m) : m = x[23], x[24] !== N || x[25] !== e || x[26] !== m ? (h = (0, t.jsxs)(i.DropdownMenu, {
            open: N,
            onOpenChange: E,
            children: [e, m]
        }), x[24] = N, x[25] = e, x[26] = m, x[27] = h) : h = x[27], h
    }

    function C(e) {
        return e.setSportsViewSetting
    }

    function M(e) {
        return e.setOddsFormat
    }

    function T(e) {
        return e.oddsFormat
    }

    function k() {
        let e, n = (0, r.c)(1);
        return n[0] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, t.jsx)(D, {}), n[0] = e) : e = n[0], e
    }
    e.s(["ODDS_FORMATS", 0, j, "ODDS_FORMAT_LABELS", 0, {
        price: "Price",
        american: "American",
        decimal: "Decimal",
        fractional: "Fractional",
        percentage: "Percentage",
        indonesian: "Indonesian",
        hongKong: "Hong Kong",
        malaysian: "Malaysian"
    }], 817109), e.s(["SportsSettingsPopover", 0, k], 737183);
    var _ = e.i(767710);
    let N = "",
        E = !1,
        $ = e => {
            let n, a, i, s, l, u, c, d, m = (0, r.c)(18),
                {
                    compact: h
                } = e,
                g = void 0 !== h && h,
                x = (0, o.useTranslations)(),
                y = (0, f.useSportsStore)(O),
                v = (0, p.useRef)(null),
                [S, w] = (0, p.useState)(E),
                [b, j] = (0, p.useState)(N);
            m[0] !== y ? (n = e => {
                v.current && clearTimeout(v.current), v.current = setTimeout(() => {
                    y(e)
                }, 200)
            }, m[0] = y, m[1] = n) : n = m[1];
            let D = n;
            m[2] !== D ? (a = e => {
                N = e, j(e), D(e)
            }, m[2] = D, m[3] = a) : a = m[3];
            let C = a;
            m[4] !== y ? (i = () => {
                N = "", E = !1, j(""), w(!1), v.current && clearTimeout(v.current), y("")
            }, m[4] = y, m[5] = i) : i = m[5];
            let M = i;
            m[6] === Symbol.for("react.memo_cache_sentinel") ? (s = e => {
                E = e, w(e)
            }, m[6] = s) : s = m[6];
            let T = s;
            return m[7] === Symbol.for("react.memo_cache_sentinel") ? (l = () => () => {
                v.current && clearTimeout(v.current)
            }, u = [], m[7] = l, m[8] = u) : (l = m[7], u = m[8]), (0, p.useEffect)(l, u), m[9] !== x ? (c = x("search.placeholder"), m[9] = x, m[10] = c) : c = m[10], m[11] !== g || m[12] !== C || m[13] !== M || m[14] !== S || m[15] !== b || m[16] !== c ? (d = (0, t.jsx)(_.ExpandableSearchBar, {
                value: b,
                onChange: C,
                inputId: "sports-search-input",
                placeholder: c,
                compact: g,
                expandedWidth: "w-44 lg:w-52",
                onEscape: M,
                onClear: M,
                isOpen: S,
                onOpenChange: T
            }), m[11] = g, m[12] = C, m[13] = M, m[14] = S, m[15] = b, m[16] = c, m[17] = d) : d = m[17], d
        };

    function O(e) {
        return e.setSearchQuery
    }

    function A(e) {
        let n, a, i = (0, r.c)(5),
            {
                className: o,
                children: s
            } = e;
        return i[0] !== o ? (n = (0, S.cn)("text-text-primary font-semibold text-heading-2xl sm:text-heading-3xl", o), i[0] = o, i[1] = n) : n = i[1], i[2] !== s || i[3] !== n ? (a = (0, t.jsx)("h1", {
            className: n,
            children: s
        }), i[2] = s, i[3] = n, i[4] = a) : a = i[4], a
    }
    e.s(["SportsSearchBar", 0, $], 875890);
    let I = [{
            value: "all",
            label: "All Tiers"
        }, {
            value: "s",
            label: "S Tier"
        }, {
            value: "a",
            label: "A Tier"
        }, {
            value: "b",
            label: "B Tier"
        }, {
            value: "c",
            label: "C Tier"
        }, {
            value: "d",
            label: "D Tier"
        }],
        P = {
            initial: {
                opacity: .9
            },
            animate: {
                opacity: 1,
                transition: {
                    type: "tween",
                    duration: .3,
                    ease: "easeOut",
                    delay: 0
                }
            },
            exit: {
                opacity: .9,
                transition: {
                    type: "tween",
                    duration: .3,
                    ease: "easeOut"
                }
            }
        },
        R = e => {
            let n, l, u, d, m, p, h, x, v, w, b, j = (0, r.c)(31),
                {
                    sportSlug: D
                } = e,
                C = (0, o.useTranslations)(),
                M = (0, g.useSportsStoreSelector)("week"),
                T = (0, g.useSportsStoreSelector)("summary", V),
                k = (0, f.useSportsStore)(W);
            j[0] !== T ? (n = T ? [...T].sort(G) : void 0, j[0] = T, j[1] = n) : n = j[1];
            let _ = n,
                N = D === y.SportSlug.EPL || D === y.SportSlug.UCL || D === y.SportSlug.UEL;
            j[2] !== N || j[3] !== C ? (l = N ? C("sports.matchday") : C("sports.week"), j[2] = N, j[3] = C, j[4] = l) : l = j[4];
            let E = `${l} ${M}`;
            if (!Array.isArray(_) || _.length <= 1 || !M) return null;
            j[5] !== E ? (u = (0, t.jsx)("p", {
                className: "text-body-base",
                children: E
            }), j[5] = E, j[6] = u) : u = j[6], j[7] === Symbol.for("react.memo_cache_sentinel") ? (d = (0, t.jsx)(c.IconChevronDownOutline12, {
                className: "text-text-secondary transition-transform duration-200 group-data-[state=open]:rotate-180"
            }), j[7] = d) : d = j[7], j[8] !== u ? (m = (0, t.jsx)(i.DropdownMenuTrigger, {
                asChild: !0,
                children: (0, t.jsxs)(a.Button, {
                    variant: "outline",
                    size: "lg",
                    className: "group rounded-full px-4 gap-2 focus-visible:ring-0 bg-neutral-50 hover:bg-neutral-100 border-0",
                    children: [u, d]
                })
            }), j[8] = u, j[9] = m) : m = j[9];
            let $ = N ? "w-[140px]" : "w-[110px]";
            if (j[10] !== $ ? (p = (0, S.cn)("max-h-[400px] overflow-y-scroll", $), j[10] = $, j[11] = p) : p = j[11], j[12] !== k ? (h = e => k({
                    week: e
                }), j[12] = k, j[13] = h) : h = j[13], j[14] !== _ || j[15] !== N || j[16] !== C) {
                let e;
                j[18] !== N || j[19] !== C ? (e = e => (0, t.jsx)(i.DropdownMenuRadioItem, {
                    value: e.toString(),
                    children: `${N?C("sports.matchday"):C("sports.week")} ${e}`
                }, `sd-wk-${e}`), j[18] = N, j[19] = C, j[20] = e) : e = j[20], x = _.map(e), j[14] = _, j[15] = N, j[16] = C, j[17] = x
            } else x = j[17];
            return j[21] !== h || j[22] !== x || j[23] !== E ? (v = (0, t.jsx)(i.DropdownMenuRadioGroup, {
                value: E,
                onValueChange: h,
                children: x
            }), j[21] = h, j[22] = x, j[23] = E, j[24] = v) : v = j[24], j[25] !== v || j[26] !== p ? (w = (0, t.jsx)(i.DropdownMenuContent, {
                className: p,
                align: "start",
                children: v
            }), j[25] = v, j[26] = p, j[27] = w) : w = j[27], j[28] !== w || j[29] !== m ? (b = (0, t.jsx)(s.motion.div, {
                className: "flex",
                variants: P,
                initial: "initial",
                animate: "animate",
                exit: "exit",
                children: (0, t.jsxs)(i.DropdownMenu, {
                    children: [m, w]
                })
            }), j[28] = w, j[29] = m, j[30] = b) : b = j[30], b
        },
        F = e => {
            let n, o, l, d, m, p, h, g = (0, r.c)(19),
                {
                    sportSlug: y,
                    compact: v
                } = e,
                S = (0, f.useSportsStore)(q),
                w = (0, f.useSportsStore)(Y);
            if (!(0, x.usesBestLines)(y)) return null;
            g[0] !== S ? (n = I.find(e => e.value === S) ? .label ? ? "All Tiers", g[0] = S, g[1] = n) : n = g[1];
            let b = n,
                j = v ? "ghost" : "outline",
                D = v ? "icon" : "lg",
                C = v ? "size-10" : "group rounded-full px-4 gap-2 focus-visible:ring-0 bg-neutral-50 hover:bg-neutral-100 border-0";
            return g[2] !== v || g[3] !== b ? (o = v ? (0, t.jsx)(u.IconBarsFilterOutline12, {
                className: "size-4"
            }) : (0, t.jsxs)(t.Fragment, {
                children: [(0, t.jsx)("p", {
                    children: b
                }), (0, t.jsx)(c.IconChevronDownOutline12, {
                    className: "text-text-secondary transition-transform duration-200 group-data-[state=open]:rotate-180"
                })]
            }), g[2] = v, g[3] = b, g[4] = o) : o = g[4], g[5] !== j || g[6] !== D || g[7] !== C || g[8] !== o ? (l = (0, t.jsx)(i.DropdownMenuTrigger, {
                asChild: !0,
                children: (0, t.jsx)(a.Button, {
                    variant: j,
                    size: D,
                    className: C,
                    children: o
                })
            }), g[5] = j, g[6] = D, g[7] = C, g[8] = o, g[9] = l) : l = g[9], g[10] !== w ? (d = e => w(e), g[10] = w, g[11] = d) : d = g[11], g[12] === Symbol.for("react.memo_cache_sentinel") ? (m = I.map(J), g[12] = m) : m = g[12], g[13] !== d || g[14] !== S ? (p = (0, t.jsx)(i.DropdownMenuContent, {
                className: "w-[120px]",
                align: "start",
                children: (0, t.jsx)(i.DropdownMenuRadioGroup, {
                    value: S,
                    onValueChange: d,
                    children: m
                })
            }), g[13] = d, g[14] = S, g[15] = p) : p = g[15], g[16] !== l || g[17] !== p ? (h = (0, t.jsx)(s.motion.div, {
                className: "flex",
                variants: P,
                initial: "initial",
                animate: "animate",
                exit: "exit",
                children: (0, t.jsxs)(i.DropdownMenu, {
                    children: [l, p]
                })
            }), g[16] = l, g[17] = p, g[18] = h) : h = g[18], h
        },
        L = e => {
            let n, l, u, m, p, g, y, v, S, w, b = (0, r.c)(29),
                {
                    sportSlug: j,
                    compact: D
                } = e,
                C = (0, f.useSportsStore)(Q),
                M = (0, f.useSportsStore)(Z),
                T = (0, f.useSportsStore)(X);
            b[0] !== T ? (n = (0, h.getAvailableTournaments)(T), b[0] = T, b[1] = n) : n = b[1];
            let k = n,
                _ = (0, o.useTranslations)();
            if (!(0, x.usesTournamentFilter)(j) || 0 === k.length) return null;
            b[2] !== _ || b[3] !== C ? (l = "all" === C ? _("sports.allTournaments") : C, b[2] = _, b[3] = C, b[4] = l) : l = b[4];
            let N = l,
                E = D ? "ghost" : "outline",
                $ = D ? "icon" : "lg",
                O = D ? "size-10" : "group rounded-full px-4 gap-2 focus-visible:ring-0 bg-neutral-50 hover:bg-neutral-100 border-0";
            return b[5] !== D || b[6] !== N ? (u = D ? (0, t.jsx)(d.IconTrophyOutline18, {
                className: "size-4"
            }) : (0, t.jsxs)(t.Fragment, {
                children: [(0, t.jsx)("p", {
                    className: "whitespace-nowrap",
                    children: N
                }), (0, t.jsx)(c.IconChevronDownOutline12, {
                    className: "text-text-secondary transition-transform duration-200 group-data-[state=open]:rotate-180"
                })]
            }), b[5] = D, b[6] = N, b[7] = u) : u = b[7], b[8] !== E || b[9] !== $ || b[10] !== O || b[11] !== u ? (m = (0, t.jsx)(i.DropdownMenuTrigger, {
                asChild: !0,
                children: (0, t.jsx)(a.Button, {
                    variant: E,
                    size: $,
                    className: O,
                    children: u
                })
            }), b[8] = E, b[9] = $, b[10] = O, b[11] = u, b[12] = m) : m = b[12], b[13] !== M ? (p = e => M(e), b[13] = M, b[14] = p) : p = b[14], b[15] !== _ ? (g = _("sports.allTournaments"), b[15] = _, b[16] = g) : g = b[16], b[17] !== g ? (y = (0, t.jsx)(i.DropdownMenuRadioItem, {
                value: "all",
                children: g
            }), b[17] = g, b[18] = y) : y = b[18], b[19] !== k ? (v = k.map(ee), b[19] = k, b[20] = v) : v = b[20], b[21] !== y || b[22] !== v || b[23] !== p || b[24] !== C ? (S = (0, t.jsx)(i.DropdownMenuContent, {
                className: "max-h-[400px] overflow-y-scroll",
                align: "start",
                children: (0, t.jsxs)(i.DropdownMenuRadioGroup, {
                    value: C,
                    onValueChange: p,
                    children: [y, v]
                })
            }), b[21] = y, b[22] = v, b[23] = p, b[24] = C, b[25] = S) : S = b[25], b[26] !== S || b[27] !== m ? (w = (0, t.jsx)(s.motion.div, {
                className: "flex",
                variants: P,
                initial: "initial",
                animate: "animate",
                exit: "exit",
                children: (0, t.jsxs)(i.DropdownMenu, {
                    children: [m, S]
                })
            }), b[26] = S, b[27] = m, b[28] = w) : w = b[28], w
        },
        U = {
            [y.SecondarySlug.GAMES]: "sports.games",
            [y.SecondarySlug.PROPS]: "sports.props",
            [y.SecondarySlug.FUTURES]: "sports.futures",
            [y.SecondarySlug.SPECIAL_EVENT]: "sports.events"
        },
        B = e => {
            let i, s, u, c, d, m, p, h, f, g, w, b, j, D, C, M = (0, r.c)(42),
                {
                    sportSlug: T,
                    supportedSecondaryNav: _,
                    secondarySlug: N
                } = e,
                E = (0, o.useTranslations)(),
                O = T === y.SportSlug.FUTURES;
            M[0] !== N || M[1] !== T ? (i = (0, x.isSportSupported)(T) && N === y.SecondarySlug.GAMES, M[0] = N, M[1] = T, M[2] = i) : i = M[2];
            let A = i;
            if (M[3] !== O || M[4] !== N || M[5] !== T || M[6] !== _ || M[7] !== E) {
                m = Symbol.for("react.early_return_sentinel");
                e: {
                    let e = [..._, ...(0, x.getTournamentFiltersForLeague)(T).map(et)];
                    if (!e.length) {
                        m = null;
                        break e
                    }
                    d = "native-shell-secondary-nav flex flex-row items-center max-lg:mt-2 lg:flex-1 lg:min-w-max justify-between",
                    c = "flex flex-col gap-2 lg:flex-row lg:flex-1 lg:justify-between",
                    s = "flex gap-2",
                    u = e.map(e => {
                        let r = (0, x.isEsportsSlug)(T) ? "/esports" : "/sports",
                            n = O ? `/sports/futures/${e}` : `${r}/${T}/${e}`,
                            i = N === e,
                            o = (0, x.getTournamentFilter)(e),
                            s = o ? o.name : U[e] ? E(U[e]) : e.toUpperCase();
                        return (0, t.jsx)(a.Button, {
                            asChild: !0,
                            variant: i ? "default" : "secondary",
                            size: "default",
                            className: (0, S.cn)("rounded-full px-4", O && "uppercase"),
                            children: (0, t.jsx)(l.default, {
                                href: n,
                                children: s
                            })
                        }, n)
                    })
                }
                M[3] = O, M[4] = N, M[5] = T, M[6] = _, M[7] = E, M[8] = s, M[9] = u, M[10] = c, M[11] = d, M[12] = m
            } else s = M[8], u = M[9], c = M[10], d = M[11], m = M[12];
            return m !== Symbol.for("react.early_return_sentinel") ? m : (M[13] !== s || M[14] !== u ? (p = (0, t.jsx)("div", {
                className: s,
                children: u
            }), M[13] = s, M[14] = u, M[15] = p) : p = M[15], M[16] !== N || M[17] !== T ? (h = N === y.SecondarySlug.GAMES && (0, t.jsxs)(t.Fragment, {
                children: [(0, t.jsx)(L, {
                    sportSlug: T
                }), (0, t.jsx)(F, {
                    sportSlug: T
                })]
            }), M[16] = N, M[17] = T, M[18] = h) : h = M[18], M[19] !== O ? (f = !O && (0, t.jsx)($, {}), M[19] = O, M[20] = f) : f = M[20], M[21] !== N || M[22] !== T ? (g = N === y.SecondarySlug.GAMES && (0, t.jsx)(R, {
                sportSlug: T
            }), M[21] = N, M[22] = T, M[23] = g) : g = M[23], M[24] !== g || M[25] !== h || M[26] !== f ? (w = (0, t.jsxs)(v.Media, {
                greaterThanOrEqual: "lg",
                className: "flex w-fit gap-2",
                children: [h, f, g]
            }), M[24] = g, M[25] = h, M[26] = f, M[27] = w) : w = M[27], M[28] !== w || M[29] !== c || M[30] !== p ? (b = (0, t.jsxs)("div", {
                className: c,
                children: [p, w]
            }), M[28] = w, M[29] = c, M[30] = p, M[31] = b) : b = M[31], M[32] !== O || M[33] !== N ? (j = (O || N === y.SecondarySlug.FUTURES) && (0, t.jsx)(v.Media, {
                greaterThanOrEqual: "lg",
                children: (0, t.jsx)(n.PolymarketLogoFull, {
                    className: "h-8 w-[155px] opacity-60 text-text-secondary [&_path]:fill-current"
                })
            }), M[32] = O, M[33] = N, M[34] = j) : j = M[34], M[35] !== A ? (D = A && (0, t.jsx)(v.Media, {
                lessThan: "lg",
                children: (0, t.jsx)("div", {
                    children: (0, t.jsx)(k, {})
                })
            }), M[35] = A, M[36] = D) : D = M[36], M[37] !== b || M[38] !== j || M[39] !== D || M[40] !== d ? (C = (0, t.jsxs)("div", {
                className: d,
                children: [b, j, D]
            }), M[37] = b, M[38] = j, M[39] = D, M[40] = d, M[41] = C) : C = M[41], C)
        };

    function z(e) {
        return e.tournamentFilter
    }

    function H(e) {
        return e.secondarySlug
    }

    function K(e) {
        return e.sportSlug
    }

    function V(e) {
        return e ? .eventWeeks
    }

    function W(e) {
        return e.setWeek
    }

    function G(e, t) {
        return t - e
    }

    function q(e) {
        return e.tierFilter
    }

    function Y(e) {
        return e.setTierFilter
    }

    function J(e) {
        return (0, t.jsx)(i.DropdownMenuRadioItem, {
            value: e.value,
            children: e.label
        }, e.value)
    }

    function Q(e) {
        return e.tournamentFilter
    }

    function Z(e) {
        return e.setTournamentFilter
    }

    function X(e) {
        return e.events
    }

    function ee(e) {
        return (0, t.jsx)(i.DropdownMenuRadioItem, {
            value: e,
            children: e
        }, e)
    }

    function et(e) {
        return e.slug
    }
    e.s(["default", 0, function() {
        let e, a, i, l, u, c, d, p, h, g, S, w, b = (0, r.c)(45),
            j = (0, o.useTranslations)(),
            D = (0, m.useRouter)(),
            C = (0, f.useSportsStore)(K),
            M = (0, f.useSportsStore)(H),
            T = (0, f.useSportsStore)(z);
        b[0] !== M || b[1] !== C ? (e = (0, x.getRouteSportInfo)(C, M), b[0] = M, b[1] = C, b[2] = e) : e = b[2];
        let _ = e;
        b[3] !== M || b[4] !== C ? (a = (0, x.isSportSupported)(C) && M === y.SecondarySlug.GAMES, b[3] = M, b[4] = C, b[5] = a) : a = b[5];
        let N = a;
        if (C === y.SportSlug.LIVE) {
            let e, r, n, a, i;
            b[6] !== D.pathname ? (e = D.pathname.startsWith("/esports"), b[6] = D.pathname, b[7] = e) : e = b[7];
            let o = e;
            b[8] !== o || b[9] !== j ? (r = j(o ? "seo.esports.categoryH1" : "seo.sports.categoryH1"), b[8] = o, b[9] = j, b[10] = r) : r = b[10];
            let s = r;
            return b[11] !== s ? (n = (0, t.jsx)(A, {
                children: s
            }), b[11] = s, b[12] = n) : n = b[12], b[13] === Symbol.for("react.memo_cache_sentinel") ? (a = (0, t.jsx)(v.Media, {
                greaterThanOrEqual: "lg",
                children: (0, t.jsx)($, {
                    compact: !0
                })
            }), b[13] = a) : a = b[13], b[14] !== n ? (i = (0, t.jsxs)("div", {
                className: "flex items-center justify-between mb-4 md:mb-6 min-h-9",
                children: [n, a]
            }), b[14] = n, b[15] = i) : i = b[15], i
        }
        if (!_) return null;
        let {
            supportedSecondaryNav: E,
            displayHeader: O
        } = _, I = "/esports/[league]/[tournament]" === D.pathname && T && "all" !== T ? T : O;
        b[16] !== I ? (i = (0, t.jsx)("div", {
            className: "flex items-center gap-2.5",
            children: (0, t.jsx)(A, {
                children: I
            })
        }), b[16] = I, b[17] = i) : i = b[17], b[18] !== M ? (l = M === y.SecondarySlug.FUTURES && (0, t.jsx)(v.Media, {
            lessThan: "lg",
            className: "flex justify-end items-center gap-2",
            children: (0, t.jsx)(n.PolymarketLogoFull, {
                className: "h-8 w-[155px] opacity-60 text-text-secondary [&_path]:fill-current"
            })
        }), b[18] = M, b[19] = l) : l = b[19], b[20] !== C ? (u = C !== y.SportSlug.FUTURES && (0, t.jsx)(v.Media, {
            lessThan: "lg",
            className: "flex justify-end items-center",
            children: (0, t.jsx)($, {})
        }), b[20] = C, b[21] = u) : u = b[21], b[22] !== N ? (c = N && (0, t.jsx)(v.Media, {
            lessThan: "lg",
            children: (0, t.jsx)("div", {
                className: "native-shell-only justify-end items-center",
                children: (0, t.jsx)(k, {})
            })
        }), b[22] = N, b[23] = c) : c = b[23], b[24] !== M || b[25] !== C ? (d = M === y.SecondarySlug.GAMES && (0, t.jsxs)(v.Media, {
            lessThan: "lg",
            className: "flex justify-end items-center gap-2",
            children: [(0, t.jsx)(L, {
                sportSlug: C,
                compact: !0
            }), (0, t.jsx)(F, {
                sportSlug: C,
                compact: !0
            }), (0, t.jsx)(R, {
                sportSlug: C
            })]
        }), b[24] = M, b[25] = C, b[26] = d) : d = b[26], b[27] !== l || b[28] !== u || b[29] !== c || b[30] !== d ? (p = (0, t.jsxs)("div", {
            className: "flex items-center gap-2",
            children: [l, u, c, d]
        }), b[27] = l, b[28] = u, b[29] = c, b[30] = d, b[31] = p) : p = b[31], b[32] !== N ? (h = N && (0, t.jsx)(v.Media, {
            greaterThanOrEqual: "lg",
            children: (0, t.jsx)(k, {})
        }), b[32] = N, b[33] = h) : h = b[33], b[34] !== i || b[35] !== p || b[36] !== h ? (g = (0, t.jsxs)("div", {
            className: "flex justify-between items-center w-full min-h-10",
            children: [i, p, h]
        }), b[34] = i, b[35] = p, b[36] = h, b[37] = g) : g = b[37];
        let U = M ? ? "";
        return b[38] !== C || b[39] !== E || b[40] !== U ? (S = (0, t.jsx)(B, {
            supportedSecondaryNav: E,
            sportSlug: C,
            secondarySlug: U
        }), b[38] = C, b[39] = E, b[40] = U, b[41] = S) : S = b[41], b[42] !== S || b[43] !== g ? (w = (0, t.jsxs)(s.motion.div, {
            variants: P,
            initial: "initial",
            animate: "animate",
            exit: "exit",
            className: "flex flex-1 flex-col lg:h-max lg:gap-3.5 mb-4 md:mb-6",
            children: [g, S]
        }), b[42] = S, b[43] = g, b[44] = w) : w = b[44], w
    }], 470080)
}, 229629, e => {
    "use strict";
    var t = e.i(416340),
        r = e.i(180715);
    e.s(["IconArrowLeftOutline12", 0, ({
        strokeWidth: e = 1.5,
        ...n
    }) => t.default.createElement(r.Icon, {
        size: "12px",
        ...n
    }, t.default.createElement("line", {
        x1: "11",
        y1: "6",
        x2: "1.25",
        y2: "6",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e,
        "data-color": "color-2"
    }), t.default.createElement("polyline", {
        points: "4.25 2.75 1 6 4.25 9.25",
        fill: "none",
        stroke: "currentColor",
        strokeLinecap: "round",
        strokeLinejoin: "round",
        strokeWidth: e
    }))])
}, 688589, e => {
    "use strict";
    var t = e.i(416340);
    let r = (0, t.createContext)(null),
        n = {
            didCatch: !1,
            error: null
        };
    class a extends t.Component {
        constructor(e) {
            super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = n
        }
        static getDerivedStateFromError(e) {
            return {
                didCatch: !0,
                error: e
            }
        }
        resetErrorBoundary(...e) {
            let {
                error: t
            } = this.state;
            null !== t && (this.props.onReset ? .({
                args: e,
                reason: "imperative-api"
            }), this.setState(n))
        }
        componentDidCatch(e, t) {
            this.props.onError ? .(e, t)
        }
        componentDidUpdate(e, t) {
            let {
                didCatch: r
            } = this.state, {
                resetKeys: a
            } = this.props;
            r && null !== t.error && function(e = [], t = []) {
                return e.length !== t.length || e.some((e, r) => !Object.is(e, t[r]))
            }(e.resetKeys, a) && (this.props.onReset ? .({
                next: a,
                prev: e.resetKeys,
                reason: "keys"
            }), this.setState(n))
        }
        render() {
            let {
                children: e,
                fallbackRender: n,
                FallbackComponent: a,
                fallback: i
            } = this.props, {
                didCatch: o,
                error: s
            } = this.state, l = e;
            if (o) {
                let e = {
                    error: s,
                    resetErrorBoundary: this.resetErrorBoundary
                };
                if ("function" == typeof n) l = n(e);
                else if (a) l = (0, t.createElement)(a, e);
                else if (void 0 !== i) l = i;
                else throw s
            }
            return (0, t.createElement)(r.Provider, {
                value: {
                    didCatch: o,
                    error: s,
                    resetErrorBoundary: this.resetErrorBoundary
                }
            }, l)
        }
    }
    e.s(["ErrorBoundary", 0, a])
}, 204924, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(451058),
        a = e.i(567692),
        i = e.i(416340),
        o = e.i(695097);
    let s = {
        capacity: 48,
        pushThrottleMs: 0,
        popThrottleMs: 0,
        retentionMs: 0
    };
    e.s(["OrderBookProvider", 0, e => {
        let l, u, c, d, m, p = (0, r.c)(12),
            {
                children: h,
                initialConnectionStoreState: f,
                initialBooksStoreState: g
            } = e,
            x = void 0 === f ? s : f;
        p[0] !== x ? (l = () => x, p[0] = x, p[1] = l) : l = p[1];
        let [y] = i.useState(l);
        p[2] !== g ? (u = () => g, p[2] = g, p[3] = u) : u = p[3];
        let [v] = i.useState(u);
        return p[4] !== h ? (c = (0, t.jsx)(o.BooksContextProvider, {
            children: h
        }), p[4] = h, p[5] = c) : c = p[5], p[6] !== y || p[7] !== c ? (d = (0, t.jsx)(n.BookConnectionStoreProvider, {
            initialState: y,
            children: c
        }), p[6] = y, p[7] = c, p[8] = d) : d = p[8], p[9] !== v || p[10] !== d ? (m = (0, t.jsx)(a.BooksStoreProvider, {
            initialState: v,
            children: d
        }), p[9] = v, p[10] = d, p[11] = m) : m = p[11], m
    }])
}, 882261, 642871, e => {
    "use strict";
    var t = e.i(749654),
        r = e.i(77383),
        n = e.i(912398);
    e.s(["isToday", 0, function(e, a) {
        return (0, n.isSameDay)((0, t.constructFrom)(a ? .in || e, e), (0, r.constructNow)(a ? .in || e))
    }], 882261);
    var a = e.i(913182);
    e.s(["isTomorrow", 0, function(e, t) {
        return (0, n.isSameDay)(e, (0, a.addDays)((0, r.constructNow)(t ? .in || e), 1), t)
    }], 642871)
}, 841241, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(184612),
        a = e.i(208956),
        i = e.i(212519),
        o = e.i(870555);

    function s(e) {
        e.stopPropagation()
    }
    e.s(["CreatorChip", 0, e => {
        let l, u, c, d, m, p, h, f = (0, r.c)(17),
            {
                creator: g,
                isMarketCard: x
            } = e,
            {
                creatorImage: y,
                creatorName: v,
                creatorUrl: S
            } = g,
            w = void 0 !== x && x,
            b = w ? 20 : 14,
            j = w && "px-1 py-0.5";
        f[0] !== j ? (l = (0, o.cn)("rounded-md flex items-center gap-1 min-w-0 cursor-pointer group", j), f[0] = j, f[1] = l) : l = f[1], f[2] === Symbol.for("react.memo_cache_sentinel") ? (u = (0, t.jsx)("p", {
            className: "text-xs text-text-secondary font-medium whitespace-nowrap shrink-0",
            children: "Asked by"
        }), f[2] = u) : u = f[2];
        let D = `${v} image`;
        return f[3] !== y || f[4] !== b || f[5] !== D ? (c = (0, t.jsx)("div", {
            className: "relative shrink-0",
            children: (0, t.jsx)(n.default, {
                className: "rounded-full",
                src: y,
                alt: D,
                width: b,
                height: b
            })
        }), f[3] = y, f[4] = b, f[5] = D, f[6] = c) : c = f[6], f[7] !== v ? (d = (0, t.jsx)("p", {
            className: "text-xs font-medium truncate text-text-secondary group-hover:text-text-tertiary",
            children: v
        }), f[7] = v, f[8] = d) : d = f[8], f[9] === Symbol.for("react.memo_cache_sentinel") ? (m = (0, t.jsx)(i.IconBadgeCheckFill18, {
            size: 12,
            className: "text-text-brand shrink-0"
        }), f[9] = m) : m = f[9], f[10] !== l || f[11] !== c || f[12] !== d ? (p = (0, t.jsxs)("div", {
            className: l,
            children: [u, c, d, m]
        }), f[10] = l, f[11] = c, f[12] = d, f[13] = p) : p = f[13], f[14] !== S || f[15] !== p ? (h = (0, t.jsx)(a.default, {
            href: S,
            rel: "noopener noreferrer",
            target: "_blank",
            className: "min-w-0 shrink",
            onClick: s,
            children: p
        }), f[14] = S, f[15] = p, f[16] = h) : h = f[16], h
    }])
}, 546622, e => {
    "use strict";
    e.s(["safeJsonLdStringify", 0, function(e) {
        return JSON.stringify(e).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029")
    }])
}, 934666, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(814703),
        a = e.i(798631),
        i = e.i(416340),
        o = e.i(810912),
        s = e.i(604777),
        l = e.i(546622),
        u = e.i(870555);

    function c(e) {
        return {
            "@type": "Question",
            name: e.question,
            acceptedAnswer: {
                "@type": "Answer",
                text: e.schemaAnswer ? ? ("string" == typeof e.answer ? e.answer : "")
            }
        }
    }
    e.s(["FAQAccordionSection", 0, function(e) {
        let d, m, p, h, f, g, x, y, v, S, w, b = (0, r.c)(32),
            {
                title: j,
                items: D,
                className: C,
                titleClassName: M
            } = e,
            [T, k] = i.default.useState(!1),
            _ = (0, s.useTranslations)();
        b[0] !== D ? (d = D.map(c), b[0] = D, b[1] = d) : d = b[1], b[2] !== d ? (m = {
            "@context": "https://schema.org",
            "@type": "FAQPage",
            mainEntity: d
        }, b[2] = d, b[3] = m) : m = b[3];
        let N = m;
        if (0 === D.length) return null;
        let E = D.length > 5;
        if (b[4] !== C ? (p = (0, u.cn)("w-full", C), b[4] = C, b[5] = p) : p = b[5], b[6] !== N ? (h = (0, l.safeJsonLdStringify)(N), b[6] = N, b[7] = h) : h = b[7], b[8] !== h ? (f = (0, t.jsx)(n.default, {
                children: (0, t.jsx)("script", {
                    type: "application/ld+json",
                    dangerouslySetInnerHTML: {
                        __html: h
                    }
                })
            }), b[8] = h, b[9] = f) : f = b[9], b[10] !== M ? (g = (0, u.cn)("mb-2 text-[16px] font-semibold text-text-primary", M), b[10] = M, b[11] = g) : g = b[11], b[12] !== g || b[13] !== j ? (x = (0, t.jsx)("h2", {
                className: g,
                children: j
            }), b[12] = g, b[13] = j, b[14] = x) : x = b[14], b[15] !== T || b[16] !== D) {
            let e;
            b[18] !== T ? (e = (e, r) => (0, t.jsxs)(o.Accordion.Item, {
                value: `faq-${r}`,
                className: "border-b border-border last:border-b-0",
                style: r >= 5 && !T ? {
                    display: "none"
                } : void 0,
                children: [(0, t.jsx)(o.Accordion.Header, {
                    asChild: !0,
                    children: (0, t.jsx)("h3", {
                        className: "text-[14px] font-normal",
                        children: (0, t.jsxs)(o.Accordion.Trigger, {
                            className: "group flex w-full cursor-pointer items-center justify-between py-5 text-start text-[14px] text-text-primary transition-colors hover:text-text-secondary lg:py-6",
                            children: [(0, t.jsx)("span", {
                                children: e.question
                            }), (0, t.jsx)(a.IconChevronDownOutline12, {
                                className: "ml-4 shrink-0 transform transition-transform duration-200 group-data-[state=open]:rotate-180"
                            })]
                        })
                    })
                }), (0, t.jsx)(o.Accordion.Content, {
                    forceMount: !0,
                    className: "overflow-hidden data-[state=closed]:h-0 data-[state=closed]:opacity-0 data-[state=closed]:animate-accordionSlideUp data-[state=open]:animate-accordionSlideDown",
                    children: (0, t.jsx)("div", {
                        className: "pb-5 text-[14px] leading-relaxed text-text-primary lg:pb-6",
                        children: e.answer
                    })
                })]
            }, `${e.question}-${r}`), b[18] = T, b[19] = e) : e = b[19], y = D.map(e), b[15] = T, b[16] = D, b[17] = y
        } else y = b[17];
        return b[20] !== y ? (v = (0, t.jsx)(o.Accordion.Root, {
            type: "single",
            collapsible: !0,
            className: "w-full",
            children: y
        }), b[20] = y, b[21] = v) : v = b[21], b[22] !== E || b[23] !== T || b[24] !== _ ? (S = E && (0, t.jsxs)("button", {
            type: "button",
            onClick: () => k(!T),
            className: "mt-4 flex cursor-pointer items-center gap-2 text-[14px] text-text-secondary transition-colors hover:text-text-primary",
            children: [(0, t.jsx)("span", {
                children: _(T ? "footer.viewLess" : "footer.viewMore")
            }), (0, t.jsx)(a.IconChevronDownOutline12, {
                className: `transform transition-transform duration-200 ${T?"rotate-180":""}`
            })]
        }), b[22] = E, b[23] = T, b[24] = _, b[25] = S) : S = b[25], b[26] !== S || b[27] !== p || b[28] !== f || b[29] !== x || b[30] !== v ? (w = (0, t.jsxs)("section", {
            className: p,
            children: [f, x, v, S]
        }), b[26] = S, b[27] = p, b[28] = f, b[29] = x, b[30] = v, b[31] = w) : w = b[31], w
    }])
}, 767710, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(23128),
        a = e.i(435894),
        i = e.i(211721),
        o = e.i(736556),
        s = e.i(416340);
    e.s(["ExpandableSearchBar", 0, e => {
        let l, u, c, d, m, p, h, f, g, x, y, v, S, w, b, j, D = (0, r.c)(45),
            {
                value: C,
                onChange: M,
                inputId: T,
                placeholder: k,
                compact: _,
                expandedWidth: N,
                inputClassName: E,
                onEscape: $,
                onClear: O,
                closeOnEscape: A,
                isOpen: I,
                onOpenChange: P
            } = e,
            R = void 0 === k ? "Search" : k,
            F = void 0 !== _ && _,
            L = void 0 !== A && A,
            U = (0, s.useRef)(null),
            B = (0, s.useRef)(null),
            [z, H] = (0, s.useState)(!1),
            K = void 0 !== I ? I : z;
        D[0] !== I || D[1] !== P ? (l = e => {
            void 0 !== I ? P ? .(e) : H(e)
        }, D[0] = I, D[1] = P, D[2] = l) : l = D[2];
        let V = l;
        D[3] !== V || D[4] !== C ? (u = () => {
            let e = e => {
                !B.current || B.current.contains(e.target) || C || V(!1)
            };
            return document.addEventListener("mousedown", e), () => {
                document.removeEventListener("mousedown", e)
            }
        }, c = [C, V], D[3] = V, D[4] = C, D[5] = u, D[6] = c) : (u = D[5], c = D[6]), (0, s.useEffect)(u, c), D[7] !== K ? (d = () => {
            K && U.current && U.current.focus()
        }, m = [K], D[7] = K, D[8] = d, D[9] = m) : (d = D[8], m = D[9]), (0, s.useEffect)(d, m);
        let W = F ? "transition-none size-9" : "transition-none size-10",
            G = `shrink-0 transition-all duration-200 overflow-hidden ${K?"w-0 opacity-0":F?"w-9 opacity-100":"w-10 opacity-100"}`;
        D[10] !== V ? (p = () => V(!0), D[10] = V, D[11] = p) : p = D[11], D[12] === Symbol.for("react.memo_cache_sentinel") ? (h = (0, t.jsx)(o.IconMagnifierOutline18, {}), D[12] = h) : h = D[12], D[13] !== W || D[14] !== p ? (f = (0, t.jsx)(n.Button, {
            variant: "ghost",
            size: "icon",
            className: W,
            onClick: p,
            children: h
        }), D[13] = W, D[14] = p, D[15] = f) : f = D[15], D[16] !== G || D[17] !== f ? (g = (0, t.jsx)("div", {
            className: G,
            children: f
        }), D[16] = G, D[17] = f, D[18] = g) : g = D[18];
        let q = `relative transition-all duration-300 ease-out overflow-hidden ${K?`${void 0===N?"w-52":N} opacity-100`:"w-0 opacity-0"}`;
        D[19] !== M ? (x = e => M(e.target.value), D[19] = M, D[20] = x) : x = D[20], D[21] !== L || D[22] !== $ || D[23] !== V || D[24] !== C ? (y = e => {
            "Enter" === e.key && (e.preventDefault(), U.current ? .blur()), "Escape" === e.key && (U.current ? .blur(), $ ? $() : (L || !C) && V(!1))
        }, D[21] = L, D[22] = $, D[23] = V, D[24] = C, D[25] = y) : y = D[25];
        let Y = `w-full ${F?"h-9":"h-10"} peer pl-9 placeholder:ml-0.5 focus-visible:ring-0 max-lg:text-[16px]! ${E??""}`;
        return D[26] !== T || D[27] !== R || D[28] !== x || D[29] !== y || D[30] !== Y || D[31] !== C ? (v = (0, t.jsx)(a.Input, {
            ref: U,
            variant: "filled",
            id: T,
            placeholder: R,
            value: C,
            onChange: x,
            onKeyDown: y,
            autoComplete: "off",
            className: Y
        }), D[26] = T, D[27] = R, D[28] = x, D[29] = y, D[30] = Y, D[31] = C, D[32] = v) : v = D[32], D[33] === Symbol.for("react.memo_cache_sentinel") ? (S = (0, t.jsx)("div", {
            className: "flex text-text-secondary justify-start pl-3 absolute items-center top-1/2 -translate-y-1/2 pointer-events-none",
            children: (0, t.jsx)(o.IconMagnifierOutline18, {})
        }), D[33] = S) : S = D[33], D[34] !== M || D[35] !== O || D[36] !== C ? (w = C ? (0, t.jsx)("button", {
            type: "button",
            onClick: O ? ? (() => M("")),
            "aria-label": "Clear search",
            className: "h-6 w-6 rounded-full hover:bg-surface-hover flex items-center justify-center shrink-0 text-text-secondary cursor-pointer absolute right-2 top-1/2 -translate-y-1/2",
            children: (0, t.jsx)(i.IconXmarkOutline12, {})
        }) : null, D[34] = M, D[35] = O, D[36] = C, D[37] = w) : w = D[37], D[38] !== q || D[39] !== v || D[40] !== w ? (b = (0, t.jsxs)("div", {
            className: q,
            children: [v, S, w]
        }), D[38] = q, D[39] = v, D[40] = w, D[41] = b) : b = D[41], D[42] !== g || D[43] !== b ? (j = (0, t.jsxs)("div", {
            className: "flex items-center relative",
            ref: B,
            children: [g, b]
        }), D[42] = g, D[43] = b, D[44] = j) : j = D[44], j
    }])
}, 485078, e => {
    "use strict";

    function t(e, t) {
        return `${e}-updown-5m-${t}`
    }
    e.s(["CRYPTO_5M_ASSETS", 0, ["btc", "eth", "sol", "xrp", "doge", "hype", "bnb"], "getFiveMinSlug", 0, t, "getLiveFiveMinuteUpDownPath", 0, function(e = "btc", r = Date.now()) {
        return `/updown/${function(e="btc",r=Date.now()){return t(e,function(e=Date.now(),t=30){let r=function(e=Date.now()){return 300*Math.floor(Math.floor(e/1e3)/300)}(e);return r+300-Math.floor(e/1e3)>t?r:r+300}(r))}(e,r)}`
    }])
}, 305607, e => {
    "use strict";
    e.s(["clamp", 0, function(e, [t, r]) {
        return Math.min(r, Math.max(t, e))
    }])
}, 3269, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(416340),
        a = e.i(305607),
        i = e.i(174617),
        o = e.i(78892),
        s = e.i(608652),
        l = e.i(199786),
        u = e.i(974539),
        c = e.i(300792),
        d = e.i(692166),
        m = e.i(600317),
        p = e.i(508785),
        h = ["PageUp", "PageDown"],
        f = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"],
        g = {
            "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
            "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
            "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
            "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
        },
        x = "Slider",
        [y, v, S] = (0, p.createCollection)(x),
        [w, b] = (0, s.createContextScope)(x, [S]),
        [j, D] = w(x),
        C = n.forwardRef((e, r) => {
            let {
                name: o,
                min: s = 0,
                max: u = 100,
                step: c = 1,
                orientation: d = "horizontal",
                disabled: m = !1,
                minStepsBetweenThumbs: p = 0,
                defaultValue: g = [s],
                value: x,
                onValueChange: v = () => {},
                onValueCommit: S = () => {},
                inverted: w = !1,
                form: b,
                ...D
            } = e, C = n.useRef(new Set), M = n.useRef(0), T = "horizontal" === d, [N = [], E] = (0, l.useControllableState)({
                prop: x,
                defaultProp: g,
                onChange: e => {
                    let t = [...C.current];
                    t[M.current] ? .focus(), v(e)
                }
            }), $ = n.useRef(N);

            function O(e, t, {
                commit: r
            } = {
                commit: !1
            }) {
                let n, i = (String(c).split(".")[1] || "").length,
                    o = Math.round((Math.round((e - s) / c) * c + s) * (n = Math.pow(10, i))) / n,
                    l = (0, a.clamp)(o, [s, u]);
                E((e = []) => {
                    let n = function(e = [], t, r) {
                        let n = [...e];
                        return n[r] = t, n.sort((e, t) => e - t)
                    }(e, l, t);
                    if (! function(e, t) {
                            if (t > 0) return Math.min(...e.slice(0, -1).map((t, r) => e[r + 1] - t)) >= t;
                            return !0
                        }(n, p * c)) return e; {
                        M.current = n.indexOf(l);
                        let t = String(n) !== String(e);
                        return t && r && S(n), t ? n : e
                    }
                })
            }
            return (0, t.jsx)(j, {
                scope: e.__scopeSlider,
                name: o,
                disabled: m,
                min: s,
                max: u,
                valueIndexToChangeRef: M,
                thumbs: C.current,
                values: N,
                orientation: d,
                form: b,
                children: (0, t.jsx)(y.Provider, {
                    scope: e.__scopeSlider,
                    children: (0, t.jsx)(y.Slot, {
                        scope: e.__scopeSlider,
                        children: (0, t.jsx)(T ? k : _, {
                            "aria-disabled": m,
                            "data-disabled": m ? "" : void 0,
                            ...D,
                            ref: r,
                            onPointerDown: (0, i.composeEventHandlers)(D.onPointerDown, () => {
                                m || ($.current = N)
                            }),
                            min: s,
                            max: u,
                            inverted: w,
                            onSlideStart: m ? void 0 : function(e) {
                                let t = function(e, t) {
                                    if (1 === e.length) return 0;
                                    let r = e.map(e => Math.abs(e - t)),
                                        n = Math.min(...r);
                                    return r.indexOf(n)
                                }(N, e);
                                O(e, t)
                            },
                            onSlideMove: m ? void 0 : function(e) {
                                O(e, M.current)
                            },
                            onSlideEnd: m ? void 0 : function() {
                                let e = $.current[M.current];
                                N[M.current] !== e && S(N)
                            },
                            onHomeKeyDown: () => !m && O(s, 0, {
                                commit: !0
                            }),
                            onEndKeyDown: () => !m && O(u, N.length - 1, {
                                commit: !0
                            }),
                            onStepKeyDown: ({
                                event: e,
                                direction: t
                            }) => {
                                if (!m) {
                                    let r = h.includes(e.key) || e.shiftKey && f.includes(e.key),
                                        n = M.current;
                                    O(N[n] + c * (r ? 10 : 1) * t, n, {
                                        commit: !0
                                    })
                                }
                            }
                        })
                    })
                })
            })
        });
    C.displayName = x;
    var [M, T] = w(x, {
        startEdge: "left",
        endEdge: "right",
        size: "width",
        direction: 1
    }), k = n.forwardRef((e, r) => {
        let {
            min: a,
            max: i,
            dir: s,
            inverted: l,
            onSlideStart: c,
            onSlideMove: d,
            onSlideEnd: m,
            onStepKeyDown: p,
            ...h
        } = e, [f, x] = n.useState(null), y = (0, o.useComposedRefs)(r, e => x(e)), v = n.useRef(void 0), S = (0, u.useDirection)(s), w = "ltr" === S, b = w && !l || !w && l;

        function j(e) {
            let t = v.current || f.getBoundingClientRect(),
                r = U([0, t.width], b ? [a, i] : [i, a]);
            return v.current = t, r(e - t.left)
        }
        return (0, t.jsx)(M, {
            scope: e.__scopeSlider,
            startEdge: b ? "left" : "right",
            endEdge: b ? "right" : "left",
            direction: b ? 1 : -1,
            size: "width",
            children: (0, t.jsx)(N, {
                dir: S,
                "data-orientation": "horizontal",
                ...h,
                ref: y,
                style: { ...h.style,
                    "--radix-slider-thumb-transform": "translateX(-50%)"
                },
                onSlideStart: e => {
                    let t = j(e.clientX);
                    c ? .(t)
                },
                onSlideMove: e => {
                    let t = j(e.clientX);
                    d ? .(t)
                },
                onSlideEnd: () => {
                    v.current = void 0, m ? .()
                },
                onStepKeyDown: e => {
                    let t = g[b ? "from-left" : "from-right"].includes(e.key);
                    p ? .({
                        event: e,
                        direction: t ? -1 : 1
                    })
                }
            })
        })
    }), _ = n.forwardRef((e, r) => {
        let {
            min: a,
            max: i,
            inverted: s,
            onSlideStart: l,
            onSlideMove: u,
            onSlideEnd: c,
            onStepKeyDown: d,
            ...m
        } = e, p = n.useRef(null), h = (0, o.useComposedRefs)(r, p), f = n.useRef(void 0), x = !s;

        function y(e) {
            let t = f.current || p.current.getBoundingClientRect(),
                r = U([0, t.height], x ? [i, a] : [a, i]);
            return f.current = t, r(e - t.top)
        }
        return (0, t.jsx)(M, {
            scope: e.__scopeSlider,
            startEdge: x ? "bottom" : "top",
            endEdge: x ? "top" : "bottom",
            size: "height",
            direction: x ? 1 : -1,
            children: (0, t.jsx)(N, {
                "data-orientation": "vertical",
                ...m,
                ref: h,
                style: { ...m.style,
                    "--radix-slider-thumb-transform": "translateY(50%)"
                },
                onSlideStart: e => {
                    let t = y(e.clientY);
                    l ? .(t)
                },
                onSlideMove: e => {
                    let t = y(e.clientY);
                    u ? .(t)
                },
                onSlideEnd: () => {
                    f.current = void 0, c ? .()
                },
                onStepKeyDown: e => {
                    let t = g[x ? "from-bottom" : "from-top"].includes(e.key);
                    d ? .({
                        event: e,
                        direction: t ? -1 : 1
                    })
                }
            })
        })
    }), N = n.forwardRef((e, r) => {
        let {
            __scopeSlider: n,
            onSlideStart: a,
            onSlideMove: o,
            onSlideEnd: s,
            onHomeKeyDown: l,
            onEndKeyDown: u,
            onStepKeyDown: c,
            ...d
        } = e, p = D(x, n);
        return (0, t.jsx)(m.Primitive.span, { ...d,
            ref: r,
            onKeyDown: (0, i.composeEventHandlers)(e.onKeyDown, e => {
                "Home" === e.key ? (l(e), e.preventDefault()) : "End" === e.key ? (u(e), e.preventDefault()) : h.concat(f).includes(e.key) && (c(e), e.preventDefault())
            }),
            onPointerDown: (0, i.composeEventHandlers)(e.onPointerDown, e => {
                let t = e.target;
                t.setPointerCapture(e.pointerId), e.preventDefault(), p.thumbs.has(t) ? t.focus() : a(e)
            }),
            onPointerMove: (0, i.composeEventHandlers)(e.onPointerMove, e => {
                e.target.hasPointerCapture(e.pointerId) && o(e)
            }),
            onPointerUp: (0, i.composeEventHandlers)(e.onPointerUp, e => {
                let t = e.target;
                t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), s(e))
            })
        })
    }), E = "SliderTrack", $ = n.forwardRef((e, r) => {
        let {
            __scopeSlider: n,
            ...a
        } = e, i = D(E, n);
        return (0, t.jsx)(m.Primitive.span, {
            "data-disabled": i.disabled ? "" : void 0,
            "data-orientation": i.orientation,
            ...a,
            ref: r
        })
    });
    $.displayName = E;
    var O = "SliderRange",
        A = n.forwardRef((e, r) => {
            let {
                __scopeSlider: a,
                ...i
            } = e, s = D(O, a), l = T(O, a), u = n.useRef(null), c = (0, o.useComposedRefs)(r, u), d = s.values.length, p = s.values.map(e => L(e, s.min, s.max)), h = d > 1 ? Math.min(...p) : 0, f = 100 - Math.max(...p);
            return (0, t.jsx)(m.Primitive.span, {
                "data-orientation": s.orientation,
                "data-disabled": s.disabled ? "" : void 0,
                ...i,
                ref: c,
                style: { ...e.style,
                    [l.startEdge]: h + "%",
                    [l.endEdge]: f + "%"
                }
            })
        });
    A.displayName = O;
    var I = "SliderThumb",
        P = n.forwardRef((e, r) => {
            let a = v(e.__scopeSlider),
                [i, s] = n.useState(null),
                l = (0, o.useComposedRefs)(r, e => s(e)),
                u = n.useMemo(() => i ? a().findIndex(e => e.ref.current === i) : -1, [a, i]);
            return (0, t.jsx)(R, { ...e,
                ref: l,
                index: u
            })
        }),
        R = n.forwardRef((e, r) => {
            var a, s, l, u, c;
            let p, h, {
                    __scopeSlider: f,
                    index: g,
                    name: x,
                    ...v
                } = e,
                S = D(I, f),
                w = T(I, f),
                [b, j] = n.useState(null),
                C = (0, o.useComposedRefs)(r, e => j(e)),
                M = !b || S.form || !!b.closest("form"),
                k = (0, d.useSize)(b),
                _ = S.values[g],
                N = void 0 === _ ? 0 : L(_, S.min, S.max),
                E = (a = g, (s = S.values.length) > 2 ? `Value ${a+1} of ${s}` : 2 === s ? ["Minimum", "Maximum"][a] : void 0),
                $ = k ? .[w.size],
                O = $ ? (l = $, u = N, c = w.direction, h = U([0, 50], [0, p = l / 2]), (p - h(u) * c) * c) : 0;
            return n.useEffect(() => {
                if (b) return S.thumbs.add(b), () => {
                    S.thumbs.delete(b)
                }
            }, [b, S.thumbs]), (0, t.jsxs)("span", {
                style: {
                    transform: "var(--radix-slider-thumb-transform)",
                    position: "absolute",
                    [w.startEdge]: `calc(${N}% + ${O}px)`
                },
                children: [(0, t.jsx)(y.ItemSlot, {
                    scope: e.__scopeSlider,
                    children: (0, t.jsx)(m.Primitive.span, {
                        role: "slider",
                        "aria-label": e["aria-label"] || E,
                        "aria-valuemin": S.min,
                        "aria-valuenow": _,
                        "aria-valuemax": S.max,
                        "aria-orientation": S.orientation,
                        "data-orientation": S.orientation,
                        "data-disabled": S.disabled ? "" : void 0,
                        tabIndex: S.disabled ? void 0 : 0,
                        ...v,
                        ref: C,
                        style: void 0 === _ ? {
                            display: "none"
                        } : e.style,
                        onFocus: (0, i.composeEventHandlers)(e.onFocus, () => {
                            S.valueIndexToChangeRef.current = g
                        })
                    })
                }), M && (0, t.jsx)(F, {
                    name: x ? ? (S.name ? S.name + (S.values.length > 1 ? "[]" : "") : void 0),
                    form: S.form,
                    value: _
                }, g)]
            })
        });
    P.displayName = I;
    var F = n.forwardRef(({
        __scopeSlider: e,
        value: r,
        ...a
    }, i) => {
        let s = n.useRef(null),
            l = (0, o.useComposedRefs)(s, i),
            u = (0, c.usePrevious)(r);
        return n.useEffect(() => {
            let e = s.current;
            if (!e) return;
            let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value").set;
            if (u !== r && t) {
                let n = new Event("input", {
                    bubbles: !0
                });
                t.call(e, r), e.dispatchEvent(n)
            }
        }, [u, r]), (0, t.jsx)(m.Primitive.input, {
            style: {
                display: "none"
            },
            ...a,
            ref: l,
            defaultValue: r
        })
    });

    function L(e, t, r) {
        return (0, a.clamp)(100 / (r - t) * (e - t), [0, 100])
    }

    function U(e, t) {
        return r => {
            if (e[0] === e[1] || t[0] === t[1]) return t[0];
            let n = (t[1] - t[0]) / (e[1] - e[0]);
            return t[0] + n * (r - e[0])
        }
    }
    F.displayName = "RadioBubbleInput", e.s(["Range", 0, A, "Root", 0, C, "Slider", 0, C, "SliderRange", 0, A, "SliderThumb", 0, P, "SliderTrack", 0, $, "Thumb", 0, P, "Track", 0, $, "createSliderScope", 0, b], 190887);
    var B = e.i(190887),
        B = B,
        z = e.i(86831);

    function H(e) {
        let n, a, i, o, s = (0, r.c)(8);
        return s[0] !== e ? ({
            className: n,
            ...a
        } = e, s[0] = e, s[1] = n, s[2] = a) : (n = s[1], a = s[2]), s[3] !== n ? (i = (0, z.cn)("relative flex w-full touch-none items-center select-none h-[15px] grow", "data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-[15px] data-[orientation=vertical]:h-full", "data-[disabled]:opacity-50", n), s[3] = n, s[4] = i) : i = s[4], s[5] !== a || s[6] !== i ? (o = (0, t.jsx)(B.Root, {
            "data-slot": "slider",
            className: i,
            ...a
        }), s[5] = a, s[6] = i, s[7] = o) : o = s[7], o
    }

    function K(e) {
        let n, a, i, o, s = (0, r.c)(8);
        return s[0] !== e ? ({
            className: n,
            ...a
        } = e, s[0] = e, s[1] = n, s[2] = a) : (n = s[1], a = s[2]), s[3] !== n ? (i = (0, z.cn)("relative grow rounded-full bg-neutral-100 dark:bg-neutral-400", "data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:w-0.5 data-[orientation=vertical]:h-full", n), s[3] = n, s[4] = i) : i = s[4], s[5] !== a || s[6] !== i ? (o = (0, t.jsx)(B.Track, {
            "data-slot": "slider-track",
            className: i,
            ...a
        }), s[5] = a, s[6] = i, s[7] = o) : o = s[7], o
    }

    function V(e) {
        let n, a, i, o, s = (0, r.c)(8);
        return s[0] !== e ? ({
            className: n,
            ...a
        } = e, s[0] = e, s[1] = n, s[2] = a) : (n = s[1], a = s[2]), s[3] !== n ? (i = (0, z.cn)("absolute rounded-[inherit] bg-brand-500", "data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full", n), s[3] = n, s[4] = i) : i = s[4], s[5] !== a || s[6] !== i ? (o = (0, t.jsx)(B.Range, {
            "data-slot": "slider-range",
            className: i,
            ...a
        }), s[5] = a, s[6] = i, s[7] = o) : o = s[7], o
    }

    function W(e) {
        let n, a, i, o, s, l = (0, r.c)(10);
        return l[0] !== e ? ({
            className: a,
            children: n,
            ...i
        } = e, l[0] = e, l[1] = n, l[2] = a, l[3] = i) : (n = l[1], a = l[2], i = l[3]), l[4] !== a ? (o = (0, z.cn)("block size-[15px] shrink-0 rounded-full bg-white shadow-[0_0_1px_rgba(0,0,0,.3),0_1px_4px_rgba(0,0,0,.15)] outline-none", "after:content-[''] after:absolute after:inset-0 after:-z-10 after:bg-black/[0.035] after:scale-100 after:rounded-full after:transition-transform after:duration-200 after:ease-[cubic-bezier(0.22,1,0.36,1)]", "focus:after:scale-[2]", a), l[4] = a, l[5] = o) : o = l[5], l[6] !== n || l[7] !== i || l[8] !== o ? (s = (0, t.jsx)(B.Thumb, {
            "data-slot": "slider-thumb",
            className: o,
            ...i,
            children: n
        }), l[6] = n, l[7] = i, l[8] = o, l[9] = s) : s = l[9], s
    }
    e.s(["Slider", 0, function(e) {
        let n, a, i, o, s, l, u, c, d, m, p, h, f = (0, r.c)(27);
        f[0] !== e ? ({
            className: n,
            trackClassName: l,
            rangeClassName: o,
            thumbClassName: s,
            defaultValue: a,
            value: u,
            ...i
        } = e, f[0] = e, f[1] = n, f[2] = a, f[3] = i, f[4] = o, f[5] = s, f[6] = l, f[7] = u) : (n = f[1], a = f[2], i = f[3], o = f[4], s = f[5], l = f[6], u = f[7]);
        let g = u ? ? a;
        f[8] !== g ? (c = Array.isArray(g) ? g : [g], f[8] = g, f[9] = c) : c = f[9];
        let x = c;
        if (f[10] !== o ? (d = (0, t.jsx)(V, {
                className: o
            }), f[10] = o, f[11] = d) : d = f[11], f[12] !== d || f[13] !== l ? (m = (0, t.jsx)(K, {
                className: l,
                children: d
            }), f[12] = d, f[13] = l, f[14] = m) : m = f[14], f[15] !== s || f[16] !== x) {
            let e;
            f[18] !== s ? (e = (e, r) => (0, t.jsx)(W, {
                className: s
            }, r), f[18] = s, f[19] = e) : e = f[19], p = x.map(e), f[15] = s, f[16] = x, f[17] = p
        } else p = f[17];
        return f[20] !== n || f[21] !== a || f[22] !== i || f[23] !== m || f[24] !== p || f[25] !== u ? (h = (0, t.jsxs)(H, {
            className: n,
            defaultValue: a,
            value: u,
            ...i,
            children: [m, p]
        }), f[20] = n, f[21] = a, f[22] = i, f[23] = m, f[24] = p, f[25] = u, f[26] = h) : h = f[26], h
    }], 3269)
}, 294884, e => {
    "use strict";
    var t = e.i(999061),
        r = e.i(122538),
        n = e.i(964974);
    e.i(416340);
    var a = e.i(778983),
        i = e.i(344558),
        o = e.i(502475),
        s = e.i(510954),
        l = e.i(57096),
        u = e.i(655740),
        c = e.i(631222);
    let d = async e => {
        let [t, r, {
            proxyAddress: n,
            fetchAll: a
        }] = e.queryKey;
        if (i.EXCLUDED_WALLETS.has(n)) return [];
        let o = async ({
                offset: e
            }) => {
                let {
                    data: t
                } = await u.axios.get(`${c.DATA_API}/positions?${new URLSearchParams({user:n,sizeThreshold:".1",redeemable:"true",limit:String(100),offset:e.toString()})}`);
                return {
                    positionDbItems: t,
                    hasMore: t && 100 === t.length
                }
            },
            {
                positionDbItems: s,
                hasMore: l
            } = await o({
                offset: 0
            });
        if (a)
            for (; l;) {
                let {
                    positionDbItems: e,
                    hasMore: t
                } = await o({
                    offset: s.length
                });
                s.push(...e), l = t
            }
        return s
    };

    function m(e) {
        return (0, a.formatTrackedMarketPosition)(e)
    }

    function p(e, t) {
        let r = (0, a.formatPartialPositionMarket)(t);
        return e[r.conditionId] = r, e
    }

    function h(e) {
        return e.market.closed
    }
    e.s(["redeemablePositionsFetcher", 0, d, "useRedeemablePositions", 0, e => {
        let a, i, u, c, f, g, x = (0, t.c)(25),
            {
                proxyAddress: y,
                fetchAll: v
            } = e,
            S = void 0 !== v && v;
        x[0] !== S || x[1] !== y ? (a = s.queryKeys[l.QueryKey.Positions].redeemable({
            proxyAddress: y,
            fetchAll: S
        }), x[0] = S, x[1] = y, x[2] = a) : a = x[2];
        let w = a.queryKey,
            b = !!y;
        x[3] !== a.queryKey || x[4] !== b ? (i = {
            queryKey: w,
            queryFn: d,
            enabled: b,
            refetchOnReconnect: "always",
            refetchOnWindowFocus: "always",
            gcTime: 6e4,
            staleTime: 6e4,
            placeholderData: r.keepPreviousData
        }, x[3] = a.queryKey, x[4] = b, x[5] = i) : i = x[5];
        let {
            data: j,
            refetch: D
        } = (0, n.useQuery)(i);
        x[6] !== y ? (u = {
            proxyAddress: y
        }, x[6] = y, x[7] = u) : u = x[7];
        let {
            optimisticPositions: C
        } = (0, o.default)(u);
        e: {
            let e, t, r, n;
            if (x[8] !== j || x[9] !== C || x[10] !== y) {
                let r = (j ? ? []).map(m);
                t = (j ? ? []).reduce(p, {}), e = (0, o.renderPositionsToUI)({
                    basePositions: r,
                    optimisticPositions: C,
                    source: "useRedeemablePositions",
                    proxyAddress: y
                }).filter(h), C ? .size && C.forEach(e => {
                    if (e.market && e.market.closed) {
                        let r = e.market.conditionId;
                        t[r] || (t[r] = e.market)
                    }
                }), x[8] = j, x[9] = C, x[10] = y, x[11] = e, x[12] = t
            } else e = x[11],
            t = x[12];
            if (!j && !e.length) {
                let e;
                x[13] === Symbol.for("react.memo_cache_sentinel") ? (e = {
                    positions: void 0,
                    markets: void 0
                }, x[13] = e) : e = x[13], c = e;
                break e
            }
            x[14] !== t ? (r = Object.values(t), x[14] = t, x[15] = r) : r = x[15],
            x[16] !== e || x[17] !== r ? (n = {
                positions: e,
                markets: r
            }, x[16] = e, x[17] = r, x[18] = n) : n = x[18],
            c = n
        }
        let {
            positions: M,
            markets: T
        } = c;
        x[19] !== D ? (f = async e => {
            await D(e)
        }, x[19] = D, x[20] = f) : f = x[20];
        let k = f;
        return x[21] !== T || x[22] !== M || x[23] !== k ? (g = {
            positions: M,
            markets: T,
            refetch: k
        }, x[21] = T, x[22] = M, x[23] = k, x[24] = g) : g = x[24], g
    }])
}, 477844, e => {
    "use strict";
    var t, r = e.i(999061),
        n = e.i(518321),
        a = e.i(416340),
        i = e.i(313582),
        o = ((t = {}).Elections = "Elections", t.GlobalElections = "Global Elections", t.Trump = "Trump", t.Mentions = "Mentions", t.Macro = "Macro", t.FedRates = "Fed Rates", t.CanadianElections = "Canadian Elections", t.EarningsCalendar = "Earnings Calendar", t.Movers = "Movers", t.NYC = "NYC Elections", t.Primaries = "Primaries", t);
    e.s(["NavigatedFromIndicator", () => o, "useNavigatedFromIndicator", 0, () => {
        let e, t, o, s, l, u = (0, r.c)(11);
        u[0] === Symbol.for("react.memo_cache_sentinel") ? (e = {
            defaultValue: void 0
        }, u[0] = e) : e = u[0];
        let [c, d] = (0, n.useCookieState)(i.COOKIE_NAVIGATED_FROM_INDICATOR, e);
        u[1] !== c ? (t = () => c, u[1] = c, u[2] = t) : t = u[2];
        let [m, p] = a.default.useState(t);
        return u[3] !== m || u[4] !== c || u[5] !== d ? (o = () => {
            m || p(c);
            let e = setTimeout(() => {
                d(void 0)
            }, 1e3);
            return () => clearTimeout(e)
        }, u[3] = m, u[4] = c, u[5] = d, u[6] = o) : o = u[6], u[7] !== c ? (s = [c], u[7] = c, u[8] = s) : s = u[8], a.default.useEffect(o, s), u[9] !== m ? (l = {
            navigatedFromIndicator: m
        }, u[9] = m, u[10] = l) : l = u[10], l
    }, "useSetNavigatedFromIndicator", 0, () => {
        let e, t, a = (0, r.c)(5),
            [, o] = (0, n.useCookieState)(i.COOKIE_NAVIGATED_FROM_INDICATOR),
            [, s] = (0, n.useCookieState)(i.LS_MARKET_INITIAL_OUTCOME_IDX);
        a[0] !== s || a[1] !== o ? (e = (e, t) => {
            o(e), void 0 !== t && s(t.toString(), {
                path: "/"
            })
        }, a[0] = s, a[1] = o, a[2] = e) : e = a[2];
        let l = e;
        return a[3] !== l ? (t = {
            setNavigatedFromIndicator: l
        }, a[3] = l, a[4] = t) : t = a[4], t
    }])
}, 746002, (e, t, r) => {
    e.e, t.exports = function() {
        "use strict";
        var e = "millisecond",
            t = "second",
            r = "minute",
            n = "hour",
            a = "week",
            i = "month",
            o = "quarter",
            s = "year",
            l = "date",
            u = "Invalid Date",
            c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
            d = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
            m = function(e, t, r) {
                var n = String(e);
                return !n || n.length >= t ? e : "" + Array(t + 1 - n.length).join(r) + e
            },
            p = "en",
            h = {};
        h[p] = {
            name: "en",
            weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
            months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
            ordinal: function(e) {
                var t = ["th", "st", "nd", "rd"],
                    r = e % 100;
                return "[" + e + (t[(r - 20) % 10] || t[r] || t[0]) + "]"
            }
        };
        var f = "$isDayjsObject",
            g = function(e) {
                return e instanceof S || !(!e || !e[f])
            },
            x = function e(t, r, n) {
                var a;
                if (!t) return p;
                if ("string" == typeof t) {
                    var i = t.toLowerCase();
                    h[i] && (a = i), r && (h[i] = r, a = i);
                    var o = t.split("-");
                    if (!a && o.length > 1) return e(o[0])
                } else {
                    var s = t.name;
                    h[s] = t, a = s
                }
                return !n && a && (p = a), a || !n && p
            },
            y = function(e, t) {
                if (g(e)) return e.clone();
                var r = "object" == typeof t ? t : {};
                return r.date = e, r.args = arguments, new S(r)
            },
            v = {
                s: m,
                z: function(e) {
                    var t = -e.utcOffset(),
                        r = Math.abs(t);
                    return (t <= 0 ? "+" : "-") + m(Math.floor(r / 60), 2, "0") + ":" + m(r % 60, 2, "0")
                },
                m: function e(t, r) {
                    if (t.date() < r.date()) return -e(r, t);
                    var n = 12 * (r.year() - t.year()) + (r.month() - t.month()),
                        a = t.clone().add(n, i),
                        o = r - a < 0,
                        s = t.clone().add(n + (o ? -1 : 1), i);
                    return +(-(n + (r - a) / (o ? a - s : s - a)) || 0)
                },
                a: function(e) {
                    return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)
                },
                p: function(u) {
                    return ({
                        M: i,
                        y: s,
                        w: a,
                        d: "day",
                        D: l,
                        h: n,
                        m: r,
                        s: t,
                        ms: e,
                        Q: o
                    })[u] || String(u || "").toLowerCase().replace(/s$/, "")
                },
                u: function(e) {
                    return void 0 === e
                }
            };
        v.l = x, v.i = g, v.w = function(e, t) {
            return y(e, {
                locale: t.$L,
                utc: t.$u,
                x: t.$x,
                $offset: t.$offset
            })
        };
        var S = function() {
                function m(e) {
                    this.$L = x(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[f] = !0
                }
                var p = m.prototype;
                return p.parse = function(e) {
                    this.$d = function(e) {
                        var t = e.date,
                            r = e.utc;
                        if (null === t) return new Date(NaN);
                        if (v.u(t)) return new Date;
                        if (t instanceof Date) return new Date(t);
                        if ("string" == typeof t && !/Z$/i.test(t)) {
                            var n = t.match(c);
                            if (n) {
                                var a = n[2] - 1 || 0,
                                    i = (n[7] || "0").substring(0, 3);
                                return r ? new Date(Date.UTC(n[1], a, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, i)) : new Date(n[1], a, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, i)
                            }
                        }
                        return new Date(t)
                    }(e), this.init()
                }, p.init = function() {
                    var e = this.$d;
                    this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds()
                }, p.$utils = function() {
                    return v
                }, p.isValid = function() {
                    return this.$d.toString() !== u
                }, p.isSame = function(e, t) {
                    var r = y(e);
                    return this.startOf(t) <= r && r <= this.endOf(t)
                }, p.isAfter = function(e, t) {
                    return y(e) < this.startOf(t)
                }, p.isBefore = function(e, t) {
                    return this.endOf(t) < y(e)
                }, p.$g = function(e, t, r) {
                    return v.u(e) ? this[t] : this.set(r, e)
                }, p.unix = function() {
                    return Math.floor(this.valueOf() / 1e3)
                }, p.valueOf = function() {
                    return this.$d.getTime()
                }, p.startOf = function(e, o) {
                    var u = this,
                        c = !!v.u(o) || o,
                        d = v.p(e),
                        m = function(e, t) {
                            var r = v.w(u.$u ? Date.UTC(u.$y, t, e) : new Date(u.$y, t, e), u);
                            return c ? r : r.endOf("day")
                        },
                        p = function(e, t) {
                            return v.w(u.toDate()[e].apply(u.toDate("s"), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(t)), u)
                        },
                        h = this.$W,
                        f = this.$M,
                        g = this.$D,
                        x = "set" + (this.$u ? "UTC" : "");
                    switch (d) {
                        case s:
                            return c ? m(1, 0) : m(31, 11);
                        case i:
                            return c ? m(1, f) : m(0, f + 1);
                        case a:
                            var y = this.$locale().weekStart || 0,
                                S = (h < y ? h + 7 : h) - y;
                            return m(c ? g - S : g + (6 - S), f);
                        case "day":
                        case l:
                            return p(x + "Hours", 0);
                        case n:
                            return p(x + "Minutes", 1);
                        case r:
                            return p(x + "Seconds", 2);
                        case t:
                            return p(x + "Milliseconds", 3);
                        default:
                            return this.clone()
                    }
                }, p.endOf = function(e) {
                    return this.startOf(e, !1)
                }, p.$set = function(a, o) {
                    var u, c = v.p(a),
                        d = "set" + (this.$u ? "UTC" : ""),
                        m = ((u = {}).day = d + "Date", u[l] = d + "Date", u[i] = d + "Month", u[s] = d + "FullYear", u[n] = d + "Hours", u[r] = d + "Minutes", u[t] = d + "Seconds", u[e] = d + "Milliseconds", u)[c],
                        p = "day" === c ? this.$D + (o - this.$W) : o;
                    if (c === i || c === s) {
                        var h = this.clone().set(l, 1);
                        h.$d[m](p), h.init(), this.$d = h.set(l, Math.min(this.$D, h.daysInMonth())).$d
                    } else m && this.$d[m](p);
                    return this.init(), this
                }, p.set = function(e, t) {
                    return this.clone().$set(e, t)
                }, p.get = function(e) {
                    return this[v.p(e)]()
                }, p.add = function(e, o) {
                    var l, u = this;
                    e = Number(e);
                    var c = v.p(o),
                        d = function(t) {
                            var r = y(u);
                            return v.w(r.date(r.date() + Math.round(t * e)), u)
                        };
                    if (c === i) return this.set(i, this.$M + e);
                    if (c === s) return this.set(s, this.$y + e);
                    if ("day" === c) return d(1);
                    if (c === a) return d(7);
                    var m = ((l = {})[r] = 6e4, l[n] = 36e5, l[t] = 1e3, l)[c] || 1,
                        p = this.$d.getTime() + e * m;
                    return v.w(p, this)
                }, p.subtract = function(e, t) {
                    return this.add(-1 * e, t)
                }, p.format = function(e) {
                    var t = this,
                        r = this.$locale();
                    if (!this.isValid()) return r.invalidDate || u;
                    var n = e || "YYYY-MM-DDTHH:mm:ssZ",
                        a = v.z(this),
                        i = this.$H,
                        o = this.$m,
                        s = this.$M,
                        l = r.weekdays,
                        c = r.months,
                        m = r.meridiem,
                        p = function(e, r, a, i) {
                            return e && (e[r] || e(t, n)) || a[r].slice(0, i)
                        },
                        h = function(e) {
                            return v.s(i % 12 || 12, e, "0")
                        },
                        f = m || function(e, t, r) {
                            var n = e < 12 ? "AM" : "PM";
                            return r ? n.toLowerCase() : n
                        };
                    return n.replace(d, function(e, n) {
                        return n || function(e) {
                            switch (e) {
                                case "YY":
                                    return String(t.$y).slice(-2);
                                case "YYYY":
                                    return v.s(t.$y, 4, "0");
                                case "M":
                                    return s + 1;
                                case "MM":
                                    return v.s(s + 1, 2, "0");
                                case "MMM":
                                    return p(r.monthsShort, s, c, 3);
                                case "MMMM":
                                    return p(c, s);
                                case "D":
                                    return t.$D;
                                case "DD":
                                    return v.s(t.$D, 2, "0");
                                case "d":
                                    return String(t.$W);
                                case "dd":
                                    return p(r.weekdaysMin, t.$W, l, 2);
                                case "ddd":
                                    return p(r.weekdaysShort, t.$W, l, 3);
                                case "dddd":
                                    return l[t.$W];
                                case "H":
                                    return String(i);
                                case "HH":
                                    return v.s(i, 2, "0");
                                case "h":
                                    return h(1);
                                case "hh":
                                    return h(2);
                                case "a":
                                    return f(i, o, !0);
                                case "A":
                                    return f(i, o, !1);
                                case "m":
                                    return String(o);
                                case "mm":
                                    return v.s(o, 2, "0");
                                case "s":
                                    return String(t.$s);
                                case "ss":
                                    return v.s(t.$s, 2, "0");
                                case "SSS":
                                    return v.s(t.$ms, 3, "0");
                                case "Z":
                                    return a
                            }
                            return null
                        }(e) || a.replace(":", "")
                    })
                }, p.utcOffset = function() {
                    return -(15 * Math.round(this.$d.getTimezoneOffset() / 15))
                }, p.diff = function(e, l, u) {
                    var c, d = this,
                        m = v.p(l),
                        p = y(e),
                        h = (p.utcOffset() - this.utcOffset()) * 6e4,
                        f = this - p,
                        g = function() {
                            return v.m(d, p)
                        };
                    switch (m) {
                        case s:
                            c = g() / 12;
                            break;
                        case i:
                            c = g();
                            break;
                        case o:
                            c = g() / 3;
                            break;
                        case a:
                            c = (f - h) / 6048e5;
                            break;
                        case "day":
                            c = (f - h) / 864e5;
                            break;
                        case n:
                            c = f / 36e5;
                            break;
                        case r:
                            c = f / 6e4;
                            break;
                        case t:
                            c = f / 1e3;
                            break;
                        default:
                            c = f
                    }
                    return u ? c : v.a(c)
                }, p.daysInMonth = function() {
                    return this.endOf(i).$D
                }, p.$locale = function() {
                    return h[this.$L]
                }, p.locale = function(e, t) {
                    if (!e) return this.$L;
                    var r = this.clone(),
                        n = x(e, t, !0);
                    return n && (r.$L = n), r
                }, p.clone = function() {
                    return v.w(this.$d, this)
                }, p.toDate = function() {
                    return new Date(this.valueOf())
                }, p.toJSON = function() {
                    return this.isValid() ? this.toISOString() : null
                }, p.toISOString = function() {
                    return this.$d.toISOString()
                }, p.toString = function() {
                    return this.$d.toUTCString()
                }, m
            }(),
            w = S.prototype;
        return y.prototype = w, [
            ["$ms", e],
            ["$s", t],
            ["$m", r],
            ["$H", n],
            ["$W", "day"],
            ["$M", i],
            ["$y", s],
            ["$D", l]
        ].forEach(function(e) {
            w[e[1]] = function(t) {
                return this.$g(t, e[0], e[1])
            }
        }), y.extend = function(e, t) {
            return e.$i || (e(t, S, y), e.$i = !0), y
        }, y.locale = x, y.isDayjs = g, y.unix = function(e) {
            return y(1e3 * e)
        }, y.en = h[p], y.Ls = h, y.p = {}, y
    }()
}, 980369, e => {
    "use strict";
    var t = e.i(274466),
        r = e.i(746002),
        n = e.i(416340),
        a = e.i(262614),
        i = e.i(797055),
        o = function(e) {
            if (!e) return 0;
            var t = (0, r.default)(e).valueOf() - Date.now();
            return t < 0 ? 0 : t
        };
    e.s(["useCountDown", 0, function(e) {
        void 0 === e && (e = {});
        var r = e || {},
            s = r.leftTime,
            l = r.targetDate,
            u = r.interval,
            c = void 0 === u ? 1e3 : u,
            d = r.onEnd,
            m = (0, n.useMemo)(function() {
                return (0, i.isNumber)(s) && s > 0 ? Date.now() + s : void 0
            }, [s]),
            p = "leftTime" in e ? m : l,
            h = (0, t.__read)((0, n.useState)(function() {
                return o(p)
            }), 2),
            f = h[0],
            g = h[1],
            x = (0, a.default)(d);
        (0, n.useEffect)(function() {
            if (!p) return void g(0);
            g(o(p));
            var e = setInterval(function() {
                var t, r = o(p);
                g(r), 0 === r && (clearInterval(e), null == (t = x.current) || t.call(x))
            }, c);
            return function() {
                return clearInterval(e)
            }
        }, [p, c]);
        var y = (0, n.useMemo)(function() {
            return {
                days: Math.floor(f / 864e5),
                hours: Math.floor(f / 36e5) % 24,
                minutes: Math.floor(f / 6e4) % 60,
                seconds: Math.floor(f / 1e3) % 60,
                milliseconds: Math.floor(f) % 1e3
            }
        }, [f]);
        return [f, y]
    }], 980369)
}, 844520, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(980369),
        a = e.i(458255),
        i = e.i(604777),
        o = e.i(870555);
    let s = e => {
        let n, i, s, l, u, c, d, m, p, h, f, g, x = (0, r.c)(20);
        return x[0] !== e ? ({
            value: l,
            label: i,
            className: n,
            ...s
        } = e, x[0] = e, x[1] = n, x[2] = i, x[3] = s, x[4] = l) : (n = x[1], i = x[2], s = x[3], l = x[4]), x[5] !== n ? (u = (0, o.cn)("flex flex-col items-center justify-center w-[50px] h-[50px] rounded-md bg-border-secondary gap-1 max-lg:w-12 max-lg:h-12 max-lg:pt-px", n), x[5] = n, x[6] = u) : u = x[6], x[7] === Symbol.for("react.memo_cache_sentinel") ? (c = {
            opacity: 0,
            width: "auto"
        }, x[7] = c) : c = x[7], x[8] === Symbol.for("react.memo_cache_sentinel") ? (d = {
            opacity: 1,
            width: "auto",
            transition: {
                type: "spring",
                duration: .2,
                bounce: .1,
                opacity: {
                    type: "tween",
                    ease: "easeOut",
                    duration: .1,
                    delay: .05
                }
            }
        }, x[8] = d) : d = x[8], x[9] === Symbol.for("react.memo_cache_sentinel") ? (m = {
            opacity: 0,
            width: 0,
            transition: {
                type: "spring",
                duration: .2,
                bounce: .1,
                opacity: {
                    type: "tween",
                    ease: "easeOut",
                    duration: .05
                }
            }
        }, x[9] = m) : m = x[9], x[10] === Symbol.for("react.memo_cache_sentinel") ? (p = (0, t.jsx)(a.AnimatedNumber.Digits, {
            stiffness: 700,
            damping: 45,
            className: "font-medium",
            style: {
                lineHeight: "21px"
            }
        }), x[10] = p) : p = x[10], x[11] !== l ? (h = (0, t.jsx)(a.AnimatedNumber.Root, {
            initial: c,
            animate: d,
            exit: m,
            value: l,
            decimalCount: 0,
            fontSize: 14,
            children: p
        }), x[11] = l, x[12] = h) : h = x[12], x[13] !== i ? (f = (0, t.jsx)("p", {
            className: "font-medium text-[10px] leading-3 text-neutral-500 tracking-[2px] uppercase",
            children: i
        }), x[13] = i, x[14] = f) : f = x[14], x[15] !== s || x[16] !== u || x[17] !== h || x[18] !== f ? (g = (0, t.jsxs)("div", {
            className: u,
            ...s,
            children: [h, f]
        }), x[15] = s, x[16] = u, x[17] = h, x[18] = f, x[19] = g) : g = x[19], g
    };
    e.s(["Countdown", 0, e => {
        let a, o, l, u, c, d, m, p, h, f, g = (0, r.c)(31),
            {
                targetDate: x,
                itemClassName: y
            } = e,
            v = (0, i.useTranslations)();
        g[0] !== x ? (a = {
            targetDate: x
        }, g[0] = x, g[1] = a) : a = g[1];
        let [, S] = (0, n.useCountDown)(a), {
            days: w,
            hours: b,
            minutes: j,
            seconds: D
        } = S;
        return g[2] !== v ? (o = v("time.countdown.days"), g[2] = v, g[3] = o) : o = g[3], g[4] !== w || g[5] !== y || g[6] !== o ? (l = (0, t.jsx)(s, {
            value: w,
            label: o,
            className: y
        }), g[4] = w, g[5] = y, g[6] = o, g[7] = l) : l = g[7], g[8] !== v ? (u = v("time.countdown.hrs"), g[8] = v, g[9] = u) : u = g[9], g[10] !== b || g[11] !== y || g[12] !== u ? (c = (0, t.jsx)(s, {
            value: b,
            label: u,
            className: y
        }), g[10] = b, g[11] = y, g[12] = u, g[13] = c) : c = g[13], g[14] !== v ? (d = v("time.countdown.min"), g[14] = v, g[15] = d) : d = g[15], g[16] !== y || g[17] !== j || g[18] !== d ? (m = (0, t.jsx)(s, {
            value: j,
            label: d,
            className: y
        }), g[16] = y, g[17] = j, g[18] = d, g[19] = m) : m = g[19], g[20] !== v ? (p = v("time.countdown.sec"), g[20] = v, g[21] = p) : p = g[21], g[22] !== y || g[23] !== D || g[24] !== p ? (h = (0, t.jsx)(s, {
            value: D,
            label: p,
            className: y
        }), g[22] = y, g[23] = D, g[24] = p, g[25] = h) : h = g[25], g[26] !== h || g[27] !== l || g[28] !== c || g[29] !== m ? (f = (0, t.jsxs)("div", {
            className: "flex flex-1 justify-end gap-2",
            children: [l, c, m, h]
        }), g[26] = h, g[27] = l, g[28] = c, g[29] = m, g[30] = f) : f = g[30], f
    }])
}, 529311, 752728, e => {
    "use strict";
    var t, r = e.i(999061),
        n = e.i(122538),
        a = e.i(635973),
        i = e.i(416340),
        o = e.i(196593),
        s = e.i(190033),
        l = e.i(510954),
        u = e.i(57096),
        c = e.i(655740),
        d = e.i(631222),
        m = ((t = {}).UPCOMING = "UPCOMING", t.LIVE = "LIVE", t.ENDED = "ENDED", t);
    e.s(["EventStreamStatus", () => m], 752728);
    let p = e => e.live ? m.LIVE : e.ended ? m.ENDED : !e.startTime || new Date(e.startTime).getTime() > Date.now() ? m.UPCOMING : e.markets.every(e => {
            if (e.umaResolutionStatus) return !0;
            try {
                let t = parseFloat(JSON.parse(e.outcomePrices)[0]);
                return t < .01 || t > .99
            } catch {
                return !1
            }
        }) ? m.ENDED : m.LIVE,
        h = async e => {
            let t = new URLSearchParams({
                limit: String(100),
                tag_slug: "mention-markets",
                closed: "false",
                ascending: "true"
            });
            e.pageParam && t.append("after_cursor", e.pageParam);
            let {
                data: r
            } = await c.axios.get(`${d.GAMMA_API_URL}/events/keyset?${t}`);
            return {
                events: (r.events || []).reduce((e, t) => {
                    let r, n;
                    return t.markets.length > 1 && e.push((n = [(r = p(t)) !== m.ENDED && t.startTime ? {
                        type: "start_time",
                        startTime: t.startTime
                    } : null, {
                        type: "stream_status",
                        status: r
                    }, {
                        type: "volume",
                        volume: (0, o.formatToDollar)(t.volume, {
                            minimumFractionDigits: 0,
                            maximumFractionDigits: 0
                        }),
                        isNew: (0, s.getTagVisibility)(t).showNew
                    }].filter(Boolean), {
                        id: t.id,
                        title: t.title,
                        icon: t.icon,
                        image: t.image,
                        imageOptimized: t.imageOptimized,
                        startTime: t.startTime,
                        startDate: t.startDate,
                        volume: t.volume,
                        slug: t.slug,
                        streamStatus: r,
                        statusPills: n,
                        markets: t.markets.sort((e, t) => e.groupItemThreshold ? t.groupItemThreshold ? e.groupItemThreshold - t.groupItemThreshold : 1 : -1).map(e => ({
                            groupItemTitle: e.groupItemTitle,
                            slug: e.slug,
                            outcomes: e.outcomes,
                            outcomePrices: e.outcomePrices,
                            umaResolutionStatus: e.umaResolutionStatus
                        }))
                    })), e
                }, []).sort((e, t) => e.startTime && e.streamStatus !== m.ENDED ? t.startTime && t.streamStatus !== m.ENDED ? new Date(e.startTime).getTime() - new Date(t.startTime).getTime() : -1 : 1),
                nextCursor: r.next_cursor ? ? void 0
            }
        };

    function f(e) {
        return e.nextCursor ? ? void 0
    }

    function g(e) {
        return e.events
    }
    e.s(["useEventStreamStatus", 0, e => {
        let t, n, a, o = (0, r.c)(7),
            {
                event: s
            } = e;
        o[0] !== s ? (t = p(s), o[0] = s, o[1] = t) : t = o[1];
        let [l, u] = (0, i.useState)(t);
        return o[2] !== s || o[3] !== l ? (n = () => {
            let e;
            return s.startTime && l === m.UPCOMING && (e = setTimeout(() => {
                u(p(s))
            }, Math.max(new Date(s.startTime).getTime() - Date.now(), 0) + 1e3)), () => {
                e && clearTimeout(e)
            }
        }, o[2] = s, o[3] = l, o[4] = n) : n = o[4], o[5] !== s ? (a = [s, u], o[5] = s, o[6] = a) : a = o[6], (0, i.useEffect)(n, a), l
    }, "useMentionEvents", 0, () => {
        let e, t, i, o, s = (0, r.c)(10);
        s[0] === Symbol.for("react.memo_cache_sentinel") ? (e = l.queryKeys[u.QueryKey.Events].mentions(), s[0] = e) : e = s[0], s[1] === Symbol.for("react.memo_cache_sentinel") ? (t = {
            queryKey: e.queryKey,
            queryFn: h,
            staleTime: 6e4,
            gcTime: 6e4,
            initialPageParam: null,
            refetchOnMount: !1,
            refetchOnWindowFocus: !1,
            refetchOnReconnect: !1,
            getNextPageParam: f,
            placeholderData: n.keepPreviousData
        }, s[1] = t) : t = s[1];
        let {
            data: c,
            isPending: d,
            fetchNextPage: m,
            hasNextPage: p,
            isFetching: x
        } = (0, a.useInfiniteQuery)(t);
        e: {
            let e;
            if (!c) {
                i = c;
                break e
            }
            s[2] !== c.pages ? (e = c.pages.flatMap(g), s[2] = c.pages, s[3] = e) : e = s[3],
            i = e
        }
        let y = i;
        return s[4] !== m || s[5] !== y || s[6] !== p || s[7] !== x || s[8] !== d ? (o = {
            data: y,
            isPending: d,
            fetchNextPage: m,
            hasNextPage: p,
            isFetching: x
        }, s[4] = m, s[5] = y, s[6] = p, s[7] = x, s[8] = d, s[9] = o) : o = s[9], o
    }], 529311)
}, 919503, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        n = e.i(814703),
        a = e.i(864006);
    let i = e => {
        if (!e) return null;
        let t = new Date(e);
        return Number.isNaN(t.getTime()) ? null : t.toISOString()
    };

    function o(e, t) {
        return {
            "@type": "ListItem",
            position: t + 1,
            name: e.name,
            item: e.url
        }
    }
    e.s(["StructuredData", 0, e => {
        let s, l, u, c, d, m, p, h = (0, r.c)(18),
            {
                type: f,
                event: g,
                market: x,
                breadcrumbItems: y
            } = e,
            v = (0, a.useLocale)(),
            S = (0, a.useMessages)().seo.structuredData;
        if (h[0] !== y || h[1] !== g || h[2] !== v || h[3] !== x || h[4] !== S || h[5] !== f) {
            c = Symbol.for("react.early_return_sentinel");
            e: {
                let e = (() => {
                    switch (f) {
                        case "organization":
                            return {
                                "@context": "https://schema.org",
                                "@graph": [{
                                    "@type": "Organization",
                                    "@id": "https://polymarket.com/#org",
                                    name: "Polymarket",
                                    url: "https://polymarket.com",
                                    description: S.orgDescription,
                                    industry: "Financial Technology",
                                    foundingDate: "2020",
                                    numberOfEmployees: {
                                        "@type": "QuantitativeValue",
                                        minValue: 51,
                                        maxValue: 100
                                    },
                                    logo: "https://polymarket.com/icons/apple-touch-icon.png",
                                    sameAs: ["https://x.com/Polymarket", "https://www.facebook.com/polymarket", "https://www.instagram.com/polymarket", "https://www.tiktok.com/@polymarket", "https://www.linkedin.com/company/polymarket/", "https://discord.gg/polymarket"]
                                }]
                            };
                        case "webApplication":
                            return {
                                "@context": "https://schema.org",
                                "@type": "WebApplication",
                                name: "Polymarket",
                                applicationCategory: "FinanceApplication",
                                operatingSystem: "Web Browser",
                                offers: {
                                    "@type": "Offer",
                                    price: "0",
                                    priceCurrency: "USD"
                                },
                                description: S.webAppDescription,
                                featureList: [S.featureRealTimeMarkets, S.featureCryptoTrading, S.featureMarketCreation, S.featurePortfolioManagement],
                                screenshot: "https://polymarket.com/images/homepage-twitter-card.png"
                            };
                        case "event":
                            {
                                if (!g || !x) return null;
                                let e = "en" !== v ? `/${v}` : "",
                                    t = `https://polymarket.com${e}/event/${g.slug}`,
                                    r = `https://polymarket.com/api/og?mslug=${x.slug}`,
                                    n = i(g.endDate) || i(x.endDate),
                                    a = i(g.creationDate) || i(g.deployingTimestamp) || i(g.startDate);
                                return {
                                    "@context": "https://schema.org",
                                    "@type": "Event",
                                    "@id": `${t}#event`,
                                    inLanguage: v,
                                    name: g.title,
                                    description: S.eventDescription.replace("{title}", g.title),
                                    startDate: a,
                                    endDate: n,
                                    eventStatus: g.closed ? "https://schema.org/EventCancelled" : "https://schema.org/EventScheduled",
                                    eventAttendanceMode: "https://schema.org/OnlineEventAttendanceMode",
                                    location: {
                                        "@type": "VirtualLocation",
                                        url: t
                                    },
                                    image: [r],
                                    url: t,
                                    organizer: {
                                        "@type": "Organization",
                                        name: "Polymarket",
                                        url: "https://polymarket.com"
                                    },
                                    offers: {
                                        "@type": "Offer",
                                        url: t,
                                        price: "0",
                                        priceCurrency: "USD",
                                        availability: g.closed ? "https://schema.org/SoldOut" : "https://schema.org/InStock",
                                        ...a && {
                                            validFrom: a
                                        }
                                    }
                                }
                            }
                        case "dataset":
                            return {
                                "@context": "https://schema.org",
                                "@type": "Dataset",
                                name: S.datasetName,
                                description: S.datasetDescription,
                                creator: {
                                    "@type": "Organization",
                                    name: "Polymarket"
                                },
                                distribution: {
                                    "@type": "DataDownload",
                                    encodingFormat: "application/json",
                                    contentUrl: "https://polymarket.com/api/markets/historical"
                                },
                                temporalCoverage: "2020/..",
                                license: "https://creativecommons.org/licenses/by/4.0/"
                            };
                        case "howTo":
                            return {
                                "@context": "https://schema.org",
                                "@type": "HowTo",
                                name: S.howToName,
                                description: S.howToDescription,
                                image: "https://polymarket.com/images/homepage-twitter-card.png",
                                totalTime: "PT10M",
                                estimatedCost: {
                                    "@type": "MonetaryAmount",
                                    currency: "USD",
                                    value: "0"
                                },
                                supply: {
                                    "@type": "HowToSupply",
                                    name: S.howToSupply
                                },
                                step: [{
                                    "@type": "HowToStep",
                                    name: S.stepCreateAccountName,
                                    text: S.stepCreateAccountText
                                }, {
                                    "@type": "HowToStep",
                                    name: S.stepFundAccountName,
                                    text: S.stepFundAccountText
                                }, {
                                    "@type": "HowToStep",
                                    name: S.stepBrowseMarketsName,
                                    text: S.stepBrowseMarketsText
                                }, {
                                    "@type": "HowToStep",
                                    name: S.stepPlaceTradeName,
                                    text: S.stepPlaceTradeText
                                }]
                            };
                        case "breadcrumb":
                            if (!y || 0 === y.length) return null;
                            return {
                                "@context": "https://schema.org",
                                "@type": "BreadcrumbList",
                                itemListElement: y.map(o)
                            };
                        default:
                            return null
                    }
                })();
                if (!e) {
                    c = null;
                    break e
                }
                s = n.default,
                u = "application/ld+json",
                l = JSON.stringify(e)
            }
            h[0] = y, h[1] = g, h[2] = v, h[3] = x, h[4] = S, h[5] = f, h[6] = s, h[7] = l, h[8] = u, h[9] = c
        } else s = h[6], l = h[7], u = h[8], c = h[9];
        return c !== Symbol.for("react.early_return_sentinel") ? c : (h[10] !== l ? (d = {
            __html: l
        }, h[10] = l, h[11] = d) : d = h[11], h[12] !== u || h[13] !== d ? (m = (0, t.jsx)("script", {
            type: u,
            dangerouslySetInnerHTML: d
        }), h[12] = u, h[13] = d, h[14] = m) : m = h[14], h[15] !== s || h[16] !== m ? (p = (0, t.jsx)(s, {
            children: m
        }), h[15] = s, h[16] = m, h[17] = p) : p = h[17], p)
    }])
}, 403604, e => {
    "use strict";
    var t = e.i(76095);
    let r = {
            politics: "/politics",
            sports: "/sports/live",
            crypto: "/crypto",
            finance: "/finance",
            geopolitics: "/geopolitics",
            earnings: "/earnings",
            tech: "/tech",
            culture: "/pop-culture",
            world: "/world",
            economy: "/economy",
            "climate-science": "/climate-science",
            elections: "/dashboards/global-elections",
            mentions: "/mentions"
        },
        n = new Set(Object.keys(r)),
        a = e => e.split("-").map(e => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
    e.s(["computeCategoryBreadcrumb", 0, function(e) {
        if (!e ? .length) return null;
        let r = e.find(e => e.slug && n.has(e.slug)),
            i = e.find(e => e.slug && !n.has(e.slug) && e.slug !== r ? .slug && (!e.label || !(0, t.isTagExcluded)(e.label)));
        return r ? .slug && i ? .slug ? {
            category: r.slug,
            categoryLabel: r.label || a(r.slug),
            subcategory: i.slug,
            subcategoryLabel: i.label || a(i.slug)
        } : null
    }, "getCategoryUrl", 0, e => r[e] || `/${e}`])
}, 638317, e => {
    "use strict";
    let t = {
            nyc: "new-york-city"
        },
        r = new Map([{
            slug: "ankara",
            label: "Ankara",
            latitude: 39.9334,
            longitude: 32.8597,
            unit: "°C"
        }, {
            slug: "atlanta",
            label: "Atlanta",
            latitude: 33.749,
            longitude: -84.388,
            unit: "°F"
        }, {
            slug: "auckland",
            label: "Auckland",
            latitude: -36.8485,
            longitude: 174.7633,
            unit: "°C"
        }, {
            slug: "beijing",
            label: "Beijing",
            latitude: 40.0799,
            longitude: 116.5862,
            unit: "°C"
        }, {
            slug: "buenos-aires",
            label: "Buenos Aires",
            latitude: -34.6037,
            longitude: -58.3816,
            unit: "°C"
        }, {
            slug: "chengdu",
            label: "Chengdu",
            latitude: 30.5785,
            longitude: 103.9471,
            unit: "°C"
        }, {
            slug: "chicago",
            label: "Chicago",
            latitude: 41.8781,
            longitude: -87.6298,
            unit: "°F"
        }, {
            slug: "chongqing",
            label: "Chongqing",
            latitude: 29.7192,
            longitude: 106.6413,
            unit: "°C"
        }, {
            slug: "dallas",
            label: "Dallas",
            latitude: 32.7767,
            longitude: -96.797,
            unit: "°F"
        }, {
            slug: "hong-kong",
            label: "Hong Kong",
            latitude: 22.3193,
            longitude: 114.1694,
            unit: "°C"
        }, {
            slug: "istanbul",
            label: "Istanbul",
            latitude: 41.2753,
            longitude: 28.7519,
            unit: "°C"
        }, {
            slug: "london",
            label: "London",
            latitude: 51.5074,
            longitude: -.1278,
            unit: "°C"
        }, {
            slug: "lucknow",
            label: "Lucknow",
            latitude: 26.8467,
            longitude: 80.9462,
            unit: "°C"
        }, {
            slug: "macau",
            label: "Macau",
            latitude: 22.1987,
            longitude: 113.5439,
            unit: "°C"
        }, {
            slug: "madrid",
            label: "Madrid",
            latitude: 40.4168,
            longitude: -3.7038,
            unit: "°C"
        }, {
            slug: "miami",
            label: "Miami",
            latitude: 25.7617,
            longitude: -80.1918,
            unit: "°F"
        }, {
            slug: "mexico-city",
            label: "Mexico City",
            latitude: 19.4363,
            longitude: -99.0721,
            unit: "°C"
        }, {
            slug: "milan",
            label: "Milan",
            latitude: 45.4642,
            longitude: 9.19,
            unit: "°C"
        }, {
            slug: "munich",
            label: "Munich",
            latitude: 48.1351,
            longitude: 11.582,
            unit: "°C"
        }, {
            slug: "moscow",
            label: "Moscow",
            latitude: 55.5915,
            longitude: 37.2615,
            unit: "°C"
        }, {
            slug: "new-york-city",
            label: "New York City",
            latitude: 40.7128,
            longitude: -74.006,
            unit: "°F"
        }, {
            slug: "paris",
            label: "Paris",
            latitude: 48.8566,
            longitude: 2.3522,
            unit: "°C"
        }, {
            slug: "sao-paulo",
            label: "São Paulo",
            latitude: -23.5505,
            longitude: -46.6333,
            unit: "°C"
        }, {
            slug: "seattle",
            label: "Seattle",
            latitude: 47.6062,
            longitude: -122.3321,
            unit: "°F"
        }, {
            slug: "seoul",
            label: "Seoul",
            latitude: 37.5665,
            longitude: 126.978,
            unit: "°C"
        }, {
            slug: "shanghai",
            label: "Shanghai",
            latitude: 31.2304,
            longitude: 121.4737,
            unit: "°C"
        }, {
            slug: "shenzhen",
            label: "Shenzhen",
            latitude: 22.6393,
            longitude: 113.8107,
            unit: "°C"
        }, {
            slug: "singapore",
            label: "Singapore",
            latitude: 1.3521,
            longitude: 103.8198,
            unit: "°C"
        }, {
            slug: "taipei",
            label: "Taipei",
            latitude: 25.033,
            longitude: 121.5654,
            unit: "°C"
        }, {
            slug: "tel-aviv",
            label: "Tel Aviv",
            latitude: 32.0853,
            longitude: 34.7818,
            unit: "°C"
        }, {
            slug: "tokyo",
            label: "Tokyo",
            latitude: 35.6762,
            longitude: 139.6503,
            unit: "°C"
        }, {
            slug: "toronto",
            label: "Toronto",
            latitude: 43.6532,
            longitude: -79.3832,
            unit: "°C"
        }, {
            slug: "warsaw",
            label: "Warsaw",
            latitude: 52.2297,
            longitude: 21.0122,
            unit: "°C"
        }, {
            slug: "wuhan",
            label: "Wuhan",
            latitude: 30.7838,
            longitude: 114.2081,
            unit: "°C"
        }].map(e => [e.slug, e])),
        n = new Set(["all", "climate", "climate & science", "climate & weather", "climate-science", "climate-weather", "daily temperature", "hide from new", "hide-from-new", "precipitation", "recurring", "science", "temperature", "weather"]),
        a = e => e ? .trim().toLowerCase() ? ? "",
        i = e => {
            let r = a(e);
            return t[r] ? ? r
        },
        o = e => {
            let t = i(e);
            return t ? r.get(t) ? ? null : null
        },
        s = e => {
            let t = i(e ? .slug),
                r = a(e ? .label);
            return (!!t || !!r) && !n.has(t) && !n.has(r)
        },
        l = e => {
            let t = (e.tags ? ? []).find(s),
                r = i(t ? .slug);
            return r ? {
                slug: r
            } : null
        };
    async function u(e) {
        let t = l(e);
        return t ? o(t.slug) : null
    }
    e.s(["extractWeatherCityTag", 0, l, "hasResolvedWeatherCitySlug", 0, e => !!o(e), "normalizeWeatherCitySlug", 0, i, "resolveWeatherCity", 0, u])
}]);

//# debugId=331c629b-ccba-1546-9ecc-9253bc2ac408