;
! 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] = "559912b2-11cf-bb3a-59c7-9ec62930bb30")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 688589, e => {
    "use strict";
    var t = e.i(416340);
    let r = (0, t.createContext)(null),
        s = {
            didCatch: !1,
            error: null
        };
    class n extends t.Component {
        constructor(e) {
            super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = s
        }
        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(s))
        }
        componentDidCatch(e, t) {
            this.props.onError ? .(e, t)
        }
        componentDidUpdate(e, t) {
            let {
                didCatch: r
            } = this.state, {
                resetKeys: n
            } = 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, n) && (this.props.onReset ? .({
                next: n,
                prev: e.resetKeys,
                reason: "keys"
            }), this.setState(s))
        }
        render() {
            let {
                children: e,
                fallbackRender: s,
                FallbackComponent: n,
                fallback: a
            } = this.props, {
                didCatch: i,
                error: l
            } = this.state, o = e;
            if (i) {
                let e = {
                    error: l,
                    resetErrorBoundary: this.resetErrorBoundary
                };
                if ("function" == typeof s) o = s(e);
                else if (n) o = (0, t.createElement)(n, e);
                else if (void 0 !== a) o = a;
                else throw l
            }
            return (0, t.createElement)(r.Provider, {
                value: {
                    didCatch: i,
                    error: l,
                    resetErrorBoundary: this.resetErrorBoundary
                }
            }, o)
        }
    }
    e.s(["ErrorBoundary", 0, n])
}, 204924, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        s = e.i(451058),
        n = e.i(567692),
        a = e.i(416340),
        i = e.i(695097);
    let l = {
        capacity: 48,
        pushThrottleMs: 0,
        popThrottleMs: 0,
        retentionMs: 0
    };
    e.s(["OrderBookProvider", 0, e => {
        let o, c, u, m, d, h = (0, r.c)(12),
            {
                children: p,
                initialConnectionStoreState: g,
                initialBooksStoreState: f
            } = e,
            k = void 0 === g ? l : g;
        h[0] !== k ? (o = () => k, h[0] = k, h[1] = o) : o = h[1];
        let [v] = a.useState(o);
        h[2] !== f ? (c = () => f, h[2] = f, h[3] = c) : c = h[3];
        let [y] = a.useState(c);
        return h[4] !== p ? (u = (0, t.jsx)(i.BooksContextProvider, {
            children: p
        }), h[4] = p, h[5] = u) : u = h[5], h[6] !== v || h[7] !== u ? (m = (0, t.jsx)(s.BookConnectionStoreProvider, {
            initialState: v,
            children: u
        }), h[6] = v, h[7] = u, h[8] = m) : m = h[8], h[9] !== y || h[10] !== m ? (d = (0, t.jsx)(n.BooksStoreProvider, {
            initialState: y,
            children: m
        }), h[9] = y, h[10] = m, h[11] = d) : d = h[11], d
    }])
}, 841241, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        s = e.i(184612),
        n = e.i(208956),
        a = e.i(212519),
        i = e.i(870555);

    function l(e) {
        e.stopPropagation()
    }
    e.s(["CreatorChip", 0, e => {
        let o, c, u, m, d, h, p, g = (0, r.c)(17),
            {
                creator: f,
                isMarketCard: k
            } = e,
            {
                creatorImage: v,
                creatorName: y,
                creatorUrl: b
            } = f,
            x = void 0 !== k && k,
            j = x ? 20 : 14,
            P = x && "px-1 py-0.5";
        g[0] !== P ? (o = (0, i.cn)("rounded-md flex items-center gap-1 min-w-0 cursor-pointer group", P), g[0] = P, g[1] = o) : o = g[1], g[2] === Symbol.for("react.memo_cache_sentinel") ? (c = (0, t.jsx)("p", {
            className: "text-xs text-text-secondary font-medium whitespace-nowrap shrink-0",
            children: "Asked by"
        }), g[2] = c) : c = g[2];
        let S = `${y} image`;
        return g[3] !== v || g[4] !== j || g[5] !== S ? (u = (0, t.jsx)("div", {
            className: "relative shrink-0",
            children: (0, t.jsx)(s.default, {
                className: "rounded-full",
                src: v,
                alt: S,
                width: j,
                height: j
            })
        }), g[3] = v, g[4] = j, g[5] = S, g[6] = u) : u = g[6], g[7] !== y ? (m = (0, t.jsx)("p", {
            className: "text-xs font-medium truncate text-text-secondary group-hover:text-text-tertiary",
            children: y
        }), g[7] = y, g[8] = m) : m = g[8], g[9] === Symbol.for("react.memo_cache_sentinel") ? (d = (0, t.jsx)(a.IconBadgeCheckFill18, {
            size: 12,
            className: "text-text-brand shrink-0"
        }), g[9] = d) : d = g[9], g[10] !== o || g[11] !== u || g[12] !== m ? (h = (0, t.jsxs)("div", {
            className: o,
            children: [c, u, m, d]
        }), g[10] = o, g[11] = u, g[12] = m, g[13] = h) : h = g[13], g[14] !== b || g[15] !== h ? (p = (0, t.jsx)(n.default, {
            href: b,
            rel: "noopener noreferrer",
            target: "_blank",
            className: "min-w-0 shrink",
            onClick: l,
            children: h
        }), g[14] = b, g[15] = h, g[16] = p) : p = g[16], p
    }])
}, 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")
    }])
}, 882261, 642871, e => {
    "use strict";
    var t = e.i(749654),
        r = e.i(77383),
        s = e.i(912398);
    e.s(["isToday", 0, function(e, n) {
        return (0, s.isSameDay)((0, t.constructFrom)(n ? .in || e, e), (0, r.constructNow)(n ? .in || e))
    }], 882261);
    var n = e.i(913182);
    e.s(["isTomorrow", 0, function(e, t) {
        return (0, s.isSameDay)(e, (0, n.addDays)((0, r.constructNow)(t ? .in || e), 1), t)
    }], 642871)
}, 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"
        },
        s = new Set(Object.keys(r)),
        n = 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 && s.has(e.slug)),
            a = e.find(e => e.slug && !s.has(e.slug) && e.slug !== r ? .slug && (!e.label || !(0, t.isTagExcluded)(e.label)));
        return r ? .slug && a ? .slug ? {
            category: r.slug,
            categoryLabel: r.label || n(r.slug),
            subcategory: a.slug,
            subcategoryLabel: a.label || n(a.slug)
        } : null
    }, "getCategoryUrl", 0, e => r[e] || `/${e}`])
}, 777723, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        s = e.i(814703),
        n = e.i(546622);
    let a = "https://polymarket.com";

    function i(e) {
        return !Number.isFinite(e) || e < 0 ? "0" : e < .1 ? e.toFixed(3).replace(/\.?0+$/, "") || "0" : e.toFixed(2)
    }
    e.s(["CollectionPageSchema", 0, function(e) {
        let l, o, c, u, m, d, h = (0, r.c)(24),
            {
                data: p
            } = e;
        if (!p || 0 === p.events.length) return null;
        if (h[0] !== p.canonicalUrl || h[1] !== p.description || h[2] !== p.events || h[3] !== p.generatedAt || h[4] !== p.hasPart || h[5] !== p.locale || h[6] !== p.mainContentOfPage || h[7] !== p.pageTitle || h[8] !== p.pageType) {
            let e, t;
            h[12] !== p.generatedAt ? (e = new Date(p.generatedAt).getTime(), h[12] = p.generatedAt, h[13] = e) : e = h[13];
            let r = new Date(e + 864e5).toISOString();
            if (h[14] !== p.locale) {
                var g;
                t = (g = p.locale) && "en" !== g ? `/${g}` : "", h[14] = p.locale, h[15] = t
            } else t = h[15];
            let u = t,
                m = {
                    "@context": "https://schema.org",
                    "@type": p.pageType,
                    name: p.pageTitle,
                    description: p.description,
                    url: p.canonicalUrl,
                    ...null != p.hasPart && {
                        hasPart: p.hasPart
                    },
                    ...null != p.mainContentOfPage && {
                        mainContentOfPage: p.mainContentOfPage
                    },
                    mainEntity: {
                        "@type": "ItemList",
                        itemListElement: p.events.map((e, t) => {
                            let {
                                outcomeName: s,
                                price: n
                            } = function(e) {
                                let t = e.markets ? .[0];
                                if (!t) return {
                                    outcomeName: "Yes",
                                    price: "0.50"
                                };
                                let r = t.outcomes || [],
                                    s = (t.outcomePrices || []).map(e => Number.parseFloat(e));
                                if (2 === r.length && r.some(e => "yes" === e.toLowerCase()) && r.some(e => "no" === e.toLowerCase())) return {
                                    outcomeName: "Yes",
                                    price: i(s[r.findIndex(e => "yes" === e.toLowerCase())] ? ? .5)
                                };
                                let n = 0,
                                    a = 0;
                                return s.forEach((e, t) => {
                                    e > n && (n = e, a = t)
                                }), {
                                    outcomeName: r[a] || "Unknown",
                                    price: i(n)
                                }
                            }(e), l = e.url || `${a}${u}/event/${e.slug}`, o = e.image || `${a}/api/og?slug=${e.slug}`, c = e.endDate;
                            return {
                                "@type": "ListItem",
                                position: t + 1,
                                item: {
                                    "@type": "Event",
                                    name: e.title,
                                    url: l,
                                    image: o,
                                    eventStatus: "https://schema.org/EventScheduled",
                                    eventAttendanceMode: "https://schema.org/OnlineEventAttendanceMode",
                                    startDate: p.generatedAt,
                                    endDate: c || p.generatedAt,
                                    location: {
                                        "@type": "VirtualLocation",
                                        url: l
                                    },
                                    offers: {
                                        "@type": "Offer",
                                        name: `Outcome: ${s}`,
                                        price: n,
                                        priceCurrency: "USD",
                                        availability: "https://schema.org/InStock",
                                        url: l,
                                        priceValidUntil: r
                                    },
                                    organizer: {
                                        "@type": "Organization",
                                        name: "Polymarket",
                                        url: a
                                    }
                                }
                            }
                        })
                    }
                };
            l = s.default, c = "application/ld+json", o = (0, n.safeJsonLdStringify)(m), h[0] = p.canonicalUrl, h[1] = p.description, h[2] = p.events, h[3] = p.generatedAt, h[4] = p.hasPart, h[5] = p.locale, h[6] = p.mainContentOfPage, h[7] = p.pageTitle, h[8] = p.pageType, h[9] = l, h[10] = o, h[11] = c
        } else l = h[9], o = h[10], c = h[11];
        return h[16] !== o ? (u = {
            __html: o
        }, h[16] = o, h[17] = u) : u = h[17], h[18] !== c || h[19] !== u ? (m = (0, t.jsx)("script", {
            type: c,
            dangerouslySetInnerHTML: u
        }), h[18] = c, h[19] = u, h[20] = m) : m = h[20], h[21] !== l || h[22] !== m ? (d = (0, t.jsx)(l, {
            children: m
        }), h[21] = l, h[22] = m, h[23] = d) : d = h[23], d
    }, "buildCollectionPageSchemaData", 0, function({
        pageType: e,
        pageTitle: t,
        description: r,
        canonicalUrl: s,
        locale: n,
        events: a,
        hasPart: i,
        mainContentOfPage: l
    }) {
        let o = a.slice(0, 20).map(e => {
            let t = e.endDate || e.end_date || void 0;
            return {
                slug: e.slug,
                title: e.title,
                ...null != e.image && {
                    image: e.image
                },
                ...null != t && {
                    endDate: t
                },
                ...null != e.url && {
                    url: e.url
                },
                ...e.markets && {
                    markets: e.markets.slice(0, 1).map(e => ({
                        outcomes: e.outcomes,
                        outcomePrices: e.outcomePrices
                    }))
                }
            }
        });
        return {
            pageType: e,
            pageTitle: t,
            description: r,
            canonicalUrl: s,
            ...null != n && {
                locale: n
            },
            events: o,
            generatedAt: new Date().toISOString(),
            ...null != i && {
                hasPart: i
            },
            ...null != l && {
                mainContentOfPage: l
            }
        }
    }])
}, 284705, 180536, e => {
    "use strict";
    e.s(["safeUnref", 0, function(e) {
        return "object" == typeof e && "function" == typeof e.unref && e.unref(), e
    }], 284705);
    let t = "u" < typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__;
    e.s(["DEBUG_BUILD", 0, t], 180536)
}, 45465, e => {
    "use strict";
    var t = e.i(221628),
        r = e.i(999061),
        s = e.i(208956),
        n = e.i(896414),
        a = e.i(196593);
    e.s(["default", 0, function(e) {
        let i, l, o, c = (0, r.c)(14),
            {
                eventSlug: u,
                markets: m,
                showMarketImages: d,
                limit: h,
                onMarketNavigation: p
            } = e,
            g = void 0 !== d && d;
        c[0] !== h || c[1] !== m ? (i = h ? m.slice(0, h) : m, c[0] = h, c[1] = m, c[2] = i) : i = c[2];
        let f = i;
        if (c[3] !== u || c[4] !== p || c[5] !== g || c[6] !== f) {
            let e;
            c[8] !== u || c[9] !== p || c[10] !== g ? (e = e => (0, t.jsxs)(s.default, {
                href: `/event/${u}/${e.slug}`,
                prefetch: !1,
                onClick: () => {
                    p && p()
                },
                className: "flex items-center justify-between gap-3 group border-b border-neutral-50 pb-2 min-h-10",
                children: [(0, t.jsxs)("div", {
                    className: "flex items-center gap-3 flex-1 min-w-0",
                    children: [g ? (0, t.jsx)("div", {
                        className: "shrink-0",
                        children: (0, t.jsx)(n.MarketImage, {
                            image: e.image ? ? null,
                            marketName: e.groupItemTitle ? ? e.question,
                            size: 30,
                            containerClassName: "rounded-xs overflow-hidden relative"
                        })
                    }) : null, (0, t.jsx)("div", {
                        className: "flex items-center gap-1.5 min-w-0",
                        children: (0, t.jsx)("p", {
                            className: "text-[15px] font-[450] tracking-[-0.01em] text-text group-hover:underline truncate",
                            children: e.groupItemTitle ? ? e.question
                        })
                    })]
                }), (0, t.jsx)("span", {
                    className: "text-heading-xl font-semibold text-text",
                    children: (0, a.formatPercentChance)(e.outcomePrices ? .[0] ? ? "0")
                })]
            }, e.conditionId ? ? e.slug), c[8] = u, c[9] = p, c[10] = g, c[11] = e) : e = c[11], l = f.map(e), c[3] = u, c[4] = p, c[5] = g, c[6] = f, c[7] = l
        } else l = c[7];
        return c[12] !== l ? (o = (0, t.jsx)("div", {
            className: "rounded-lg flex flex-col gap-2",
            children: l
        }), c[12] = l, c[13] = o) : o = c[13], o
    }])
}, 672226, e => {
    "use strict";
    var t = e.i(999061),
        r = e.i(964974),
        s = e.i(397456),
        n = e.i(606231),
        a = e.i(416340),
        i = e.i(491163),
        l = e.i(255760),
        o = e.i(96515),
        c = e.i(631222);

    function u(e) {
        let t = e ? ? [];
        return t.find(e => e.active && !e.closed) ? ? t[0]
    }

    function m(e) {
        let r, s = (0, t.c)(2);
        return s[0] !== e.markets ? (r = u(e.markets), s[0] = e.markets, s[1] = r) : r = s[1], r
    }

    function d(e) {
        let [t] = e.split("-"), {
            abbreviation: r
        } = (0, l.getAssetNames)(t);
        return r ? {
            abbreviation: r,
            color: o.PriceMarketAssetColorMap[r]
        } : null
    }

    function h(e) {
        let r, s = (0, t.c)(2);
        return s[0] !== e ? (r = d(e), s[0] = e, s[1] = r) : r = s[1], r
    }

    function p(e) {
        return e.includes("-5m") ? "fiveminute" : e.includes("-15m") ? "fifteen" : e.includes("-4h") ? "fourhour" : "hourly"
    }
    let g = {
            showSettings: !1,
            showOptions: !1,
            showAnnotationsDrawer: !1,
            showTimeWindows: !1,
            showLogo: !1,
            yAxisOrientation: "right",
            yAxisEnabled: !0,
            xAxisEnabled: !0,
            oddsDisplay: "tooltip",
            forcedWindow: "all"
        },
        f = { ...g,
            mode: "single",
            outcomeMode: "single",
            showLegend: !1,
            showSingleModeLegend: !1,
            backfillData: !1,
            customLabels: {
                enabled: !1
            },
            tooltipOptions: {
                mode: "default"
            },
            forceShowAllMarkets: !1,
            marketType: "default"
        },
        k = {
            "5m": 300,
            "15m": 900,
            "1h": 3600,
            "4h": 14400
        },
        v = {
            event: null,
            livePrices: null,
            refreshIfStale: () => {}
        };
    e.s(["CAROUSEL_CHART_OPTIONS", 0, g, "EMPTY_MARKET", 0, {}, "SINGLE_MARKET_CONTEXT_OPTIONS", 0, f, "getAssetDecimals", 0, function(e) {
        return e === o.PriceMarketAssetAbbr.Bitcoin ? 0 : e === o.PriceMarketAssetAbbr.Dogecoin ? 6 : e === o.PriceMarketAssetAbbr.XRP || e === o.PriceMarketAssetAbbr.Hyperliquid || e === o.PriceMarketAssetAbbr.BNB ? 4 : 2
    }, "getPriceChangeDecimals", 0, function(e, t) {
        return void 0 === t ? 0 : e === o.PriceMarketAssetAbbr.Dogecoin ? 6 : e === o.PriceMarketAssetAbbr.XRP || e === o.PriceMarketAssetAbbr.Hyperliquid || e === o.PriceMarketAssetAbbr.BNB ? 4 : 2 * (1 > Math.abs(t))
    }, "getVariantFromSlug", 0, p, "parseAssetFromSlug", 0, d, "useActiveMarket", 0, m, "useAssetFromSlug", 0, h, "useCarouselTargetPrice", 0, function(e) {
        let s, n, a, i, l, c = (0, t.c)(17),
            u = m(e),
            d = h(e.slug);
        c[0] !== d ? (s = d ? (0, o.getChartSymbol)(d.abbreviation, "crypto") : null, c[0] = d, c[1] = s) : s = c[1];
        let g = s;
        c[2] !== e.slug ? (n = p(e.slug), c[2] = e.slug, c[3] = n) : n = c[3];
        let f = n,
            k = u ? .eventStartTime,
            v = u ? .endDate;
        c[4] !== g || c[5] !== k || c[6] !== v || c[7] !== f ? (a = ["carousel-target-price", g, k, f, v], c[4] = g, c[5] = k, c[6] = v, c[7] = f, c[8] = a) : a = c[8], c[9] !== d || c[10] !== u || c[11] !== f ? (i = async () => {
            let e = new URLSearchParams;
            d && e.set("symbol", d.abbreviation.toUpperCase()), u ? .eventStartTime && e.set("eventStartTime", u.eventStartTime), e.set("variant", f), u ? .endDate && e.set("endDate", u.endDate);
            let t = await fetch(`/api/crypto/crypto-price?${e.toString()}`);
            return t.ok ? t.json() : null
        }, c[9] = d, c[10] = u, c[11] = f, c[12] = i) : i = c[12];
        let y = !!d && !!u ? .eventStartTime;
        return c[13] !== a || c[14] !== i || c[15] !== y ? (l = {
            queryKey: a,
            queryFn: i,
            enabled: y,
            staleTime: 3e4,
            gcTime: 3e5
        }, c[13] = a, c[14] = i, c[15] = y, c[16] = l) : l = c[16], (0, r.useQuery)(l)
    }, "useUpDownMarketData", 0, function(e, t) {
        let [r, l] = (0, a.useState)(e), [o, m] = (0, a.useState)(null), d = (0, a.useRef)(!1), h = (0, a.useRef)(null), p = (0, a.useRef)(0), g = (0, a.useRef)(null), f = (0, a.useRef)(null), y = (0, a.useRef)(r);
        y.current = r, (0, a.useEffect)(() => {
            l(e)
        }, [e]), (0, a.useEffect)(() => {
            let e = u(r.markets);
            p.current = e ? .endDate ? new Date(e.endDate).getTime() : 0, m(null), g.current = null, f.current && (clearTimeout(f.current), f.current = null)
        }, [r]);
        let b = (0, a.useMemo)(() => u(r.markets), [r.markets]),
            x = b ? .clobTokenIds ? .slice(0, 2).join(",") ? ? "",
            j = (0, a.useMemo)(() => {
                let e = b ? .clobTokenIds;
                return !e || e.length < 2 ? null : {
                    zero: e[0].toLowerCase(),
                    one: e[1].toLowerCase()
                }
            }, [x]),
            P = (0, a.useCallback)(() => {
                g.current && (m(g.current), g.current = null), f.current = null
            }, []),
            S = (0, a.useCallback)(() => {
                g.current = null, f.current && (clearTimeout(f.current), f.current = null)
            }, []),
            C = (0, a.useCallback)(() => {
                if (d.current) return;
                d.current = !0;
                let e = y.current,
                    t = function(e) {
                        let t = e.series ? .[0] ? .recurrence,
                            r = e.slug.match(/-(5m|15m|1h|4h)-(\d+)$/),
                            s = r ? .[1],
                            n = r ? .[2] ? Number(r[2]) : null,
                            a = t ? k[t] : null,
                            i = s ? k[s] : null,
                            l = a || i;
                        if (!l) return null;
                        let o = e.slug.replace(/-\d+$/, "");
                        if (o === e.slug) return null;
                        let c = Math.floor(Math.floor(Date.now() / 1e3) / l) * l,
                            u = null != n ? n + l : null,
                            m = null != u ? Math.max(c, u) : c;
                        return `${o}-${m}`
                    }(e);
                if (!t || t === e.slug) {
                    d.current = !1, h.current = setTimeout(C, 5e3);
                    return
                }(0, i.getEvent)(t).then(e => {
                    if (d.current = !1, !e || e.closed || e.archived) h.current = setTimeout(C, 5e3);
                    else {
                        let t = u(e.markets);
                        p.current = t ? .endDate ? new Date(t.endDate).getTime() : 0, S(), l(e)
                    }
                }).catch(() => {
                    d.current = !1, h.current = setTimeout(C, 5e3)
                })
            }, [S]),
            T = (0, a.useCallback)(() => {
                p.current > 0 && Date.now() >= p.current && C()
            }, [C]),
            A = (0, a.useRef)(j);
        A.current = j;
        let w = (0, a.useCallback)(e => {
                let t = A.current;
                if (e.data && t) try {
                    let r = JSON.parse(e.data);
                    for (let e of Array.isArray(r) ? r : [r]) {
                        if ("price_change" !== e.event_type || !e.price_changes) continue;
                        let r = e.price_changes.find(e => e.asset_id ? .toLowerCase() === t.zero);
                        if (!r ? .best_bid || !r ? .best_ask) continue;
                        let s = parseFloat(r.best_bid),
                            n = parseFloat(r.best_ask);
                        if (!Number.isFinite(s) || !Number.isFinite(n)) continue;
                        let a = (s + n) / 2,
                            i = 1 - a;
                        a > 0 && a < 1 && (g.current = {
                            up: a,
                            down: i
                        }, f.current || (f.current = setTimeout(P, 1e3)))
                    }
                } catch {}
            }, [P]),
            E = t && j ? c.WEBSOCKET_MARKET : null,
            {
                readyState: _,
                sendMessage: D
            } = (0, n.useWebSocket)({
                url: E,
                shouldReconnect: () => !!E,
                maxReconnectAttempts: 5,
                reconnectInterval: 1e4,
                onMessage: w
            });
        return ((0, a.useEffect)(() => {
            _ === s.ReadyState.OPEN && j && D(JSON.stringify({
                type: "markets",
                assets_ids: [j.zero, j.one]
            }))
        }, [_, j, D]), (0, a.useEffect)(() => () => {
            h.current && clearTimeout(h.current), f.current && clearTimeout(f.current)
        }, []), t) ? {
            event: r,
            livePrices: o,
            refreshIfStale: T
        } : v
    }])
}, 73603, e => {
    e.v(t => Promise.all(["static/chunks/0ftsk~grdxku8.js"].map(t => e.l(t))).then(() => t(690736)))
}, 478202, e => {
    e.v(t => Promise.all(["static/chunks/0fu1zg.rk9rwe.js"].map(t => e.l(t))).then(() => t(105185)))
}, 970454, e => {
    e.v(t => Promise.all(["static/chunks/0sv6v3.ng12ze.js", "static/chunks/0vvd7eoo2649p.js"].map(t => e.l(t))).then(() => t(411099)))
}, 785339, e => {
    e.v(t => Promise.all(["static/chunks/0avbk9az76s7p.js", "static/chunks/0yxkyxq9y9j.c.js", "static/chunks/14~us9ykp70yj.js"].map(t => e.l(t))).then(() => t(694231)))
}, 411942, e => {
    e.v(t => Promise.all(["static/chunks/07rcrkfdiiz~k.js", "static/chunks/0zi-.lqso.cv8.js", "static/chunks/0f-ornzsjqslf.js"].map(t => e.l(t))).then(() => t(719465)))
}, 309935, e => {
    e.v(t => Promise.all(["static/chunks/0t3~.ypelhn.7.js", "static/chunks/0vo7-ze8hob48.js", "static/chunks/0gix7vdhbbbyq.js", "static/chunks/0ibh7r88yo04m.js"].map(t => e.l(t))).then(() => t(606926)))
}, 521514, e => {
    e.v(t => Promise.all(["static/chunks/09gq5pdgp6-m..js"].map(t => e.l(t))).then(() => t(71406)))
}, 1634, e => {
    e.v(t => Promise.all(["static/chunks/13eyem~bfyqpr.js"].map(t => e.l(t))).then(() => t(235258)))
}, 418177, e => {
    e.v(t => Promise.all(["static/chunks/0yxe008oi3l86.js"].map(t => e.l(t))).then(() => t(810165)))
}, 349648, e => {
    e.v(e => Promise.resolve().then(() => e(368089)))
}, 463433, e => {
    e.v(t => Promise.all(["static/chunks/0fxe~m6qemg~j.js", "static/chunks/05dj0efcgnbd-.js", "static/chunks/0hcp_2k.px~2g.js"].map(t => e.l(t))).then(() => t(307861)))
}, 19094, e => {
    e.v(t => Promise.all(["static/chunks/17fdiovunxdzf.js"].map(t => e.l(t))).then(() => t(570899)))
}, 329159, e => {
    e.v(t => Promise.all(["static/chunks/0vv1rd-911fi2.css", "static/chunks/164pj_py._x69.js", "static/chunks/0qspihzyescor.js", "static/chunks/08b7kaipqv82h.js", "static/chunks/0cptkx698a.0i.js", "static/chunks/0hcp_2k.px~2g.js"].map(t => e.l(t))).then(() => t(273170)))
}, 742085, e => {
    e.v(e => Promise.resolve().then(() => e(655740)))
}, 982315, e => {
    e.v(e => Promise.resolve().then(() => e(631222)))
}, 495552, e => {
    e.v(t => Promise.all(["static/chunks/05veaju07pm7c.js"].map(t => e.l(t))).then(() => t(952036)))
}, 419573, e => {
    e.v(t => Promise.all(["static/chunks/0ombufu5o49mu.js"].map(t => e.l(t))).then(() => t(837512)))
}, 843685, e => {
    e.v(t => Promise.all(["static/chunks/0prtoutkupn0a.js"].map(t => e.l(t))).then(() => t(302878)))
}, 427769, e => {
    e.v(t => Promise.all(["static/chunks/0fqrbzwkmtkid.js"].map(t => e.l(t))).then(() => t(276325)))
}, 805406, e => {
    e.v(t => Promise.all(["static/chunks/0ffpq4jgbaiig.js"].map(t => e.l(t))).then(() => t(8888)))
}, 926361, e => {
    e.v(t => Promise.all(["static/chunks/0rx9ic4odc_sf.js"].map(t => e.l(t))).then(() => t(82888)))
}, 786547, e => {
    e.v(t => Promise.all(["static/chunks/003foqasv2gnp.js"].map(t => e.l(t))).then(() => t(584710)))
}]);

//# debugId=559912b2-11cf-bb3a-59c7-9ec62930bb30