;
! 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] = "6cad576c-97f0-640f-7d83-3475109067b8")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 57194, e => {
    "use strict";
    e.s(["scrollSelectedButtonIntoView", 0, function(e, t, n) {
        window.requestAnimationFrame(() => {
            let i = t.findIndex(e => e.slug === n);
            if (e.current) {
                let t = e.current.getElementsByTagName("button")[-1 !== i ? i + 1 : 0];
                if (t) {
                    let n = e.current,
                        i = t.getBoundingClientRect(),
                        s = n.getBoundingClientRect();
                    (i.left < s.left + 90 || i.right > s.right - 90) && t.scrollIntoView({
                        behavior: "smooth",
                        block: "center",
                        inline: "center"
                    })
                }
            }
        })
    }, "scrollToHash", 0, (e = "vertical", t = !1, n) => {
        {
            let i = n ? ? window.location.hash;
            if (i) {
                let n = document.querySelector(i.split("?")[0]);
                n && n.scrollIntoView({
                    behavior: "smooth",
                    block: t ? "center" : "start",
                    inline: "horizontal" === e ? "center" : "nearest"
                })
            }
        }
    }])
}, 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)
}, 485510, e => {
    "use strict";
    var t = e.i(221628),
        n = e.i(999061),
        i = e.i(964974),
        s = e.i(416340),
        r = e.i(688589),
        a = e.i(827681),
        o = e.i(863828),
        c = e.i(76953),
        l = e.i(864636),
        u = e.i(355015),
        m = e.i(870555);

    function d(e) {
        let i, s, r, a, o = (0, n.c)(8);
        return o[0] !== e ? ({
            className: i,
            ...s
        } = e, o[0] = e, o[1] = i, o[2] = s) : (i = o[1], s = o[2]), o[3] !== i ? (r = (0, m.cn)("h-full w-full rounded-lg bg-neutral-100", i), o[3] = i, o[4] = r) : r = o[4], o[5] !== s || o[6] !== r ? (a = (0, t.jsx)("div", {
            className: r,
            ...s
        }), o[5] = s, o[6] = r, o[7] = a) : a = o[7], a
    }

    function h(e) {
        let i, s, r, a, o = (0, n.c)(8);
        return o[0] !== e ? ({
            className: i,
            ...s
        } = e, o[0] = e, o[1] = i, o[2] = s) : (i = o[1], s = o[2]), o[3] !== i ? (r = (0, m.cn)("max-lg:w-[98%] max-lg:h-[60px] max-lg:mb-4 lg:hidden", i), o[3] = i, o[4] = r) : r = o[4], o[5] !== s || o[6] !== r ? (a = (0, t.jsx)(d, {
            className: r,
            ...s
        }), o[5] = s, o[6] = r, o[7] = a) : a = o[7], a
    }

    function g() {
        let e, i = (0, n.c)(1);
        return i[0] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, t.jsxs)("div", {
            className: "flex justify-center transition-all duration-200 max-lg:mt-4 max-lg:flex-col max-lg:items-start lg:mt-24",
            children: [(0, t.jsx)(d, {
                className: "max-lg:hidden lg:h-[80vh] lg:w-[800px]"
            }), (0, t.jsx)(d, {
                className: "max-lg:hidden lg:h-[500px] lg:w-[340px] lg:ml-6"
            }), (0, t.jsx)(h, {}), (0, t.jsx)(h, {}), (0, t.jsx)(h, {
                className: "w-[60%]"
            }), (0, t.jsx)(h, {
                className: "h-[275px]"
            }), (0, t.jsx)(h, {}), (0, t.jsx)(h, {
                className: "h-[275px]"
            })]
        }), i[0] = e) : e = i[0], e
    }
    var v = e.i(731892),
        p = e.i(491163),
        k = e.i(333223),
        f = e.i(675215),
        _ = e.i(867487),
        j = e.i(668122),
        x = e.i(649480),
        y = e.i(301713),
        w = e.i(148716),
        P = e.i(499217),
        E = e.i(894610),
        S = e.i(922445),
        b = e.i(79075),
        N = e.i(784521),
        T = e.i(305457),
        C = e.i(399841),
        I = e.i(204924),
        q = e.i(660006),
        R = e.i(213633),
        B = e.i(57194);
    let O = ({
            eslug: e,
            mslug: n,
            defaultMslug: u,
            isArchived: m,
            serverDate: d,
            breadcrumbItems: h,
            categoryBreadcrumb: O,
            ssrComments: V,
            hitMarketChartData: z
        }) => {
            let {
                authenticated: D,
                proxyAddress: M,
                isSessionLoading: U,
                isUserOnboarding: A
            } = (0, N.useAccountContext)(["authenticated", "proxyAddress", "isSessionLoading", "isUserOnboarding"]), {
                isAccountProfilePending: G
            } = (0, k.default)(), L = (0, T.useAmplitudeAnalytics)(), F = (0, f.useTrackingEmail)(), H = !U && !A && D && !!M, K = s.default.useRef(F);
            K.current = F;
            let X = (0, C.useFeatureFlag)("signup_prompt"),
                {
                    open: Q,
                    setConnectorRoute: W,
                    setOpen: Y
                } = (0, o.useSiwx)(),
                J = s.default.useRef(M);
            J.current = M;
            let {
                data: Z,
                isPending: $,
                isError: ee,
                error: et
            } = (0, i.useQuery)({
                queryKey: ["/api/event/slug", e],
                queryFn: () => (0, p.getEvent)(e, {
                    includeLiveChat: !0
                }),
                gcTime: 6e5,
                staleTime: 6e5,
                refetchOnMount: !1,
                refetchOnWindowFocus: !1,
                refetchOnReconnect: !1
            });
            return (0, s.useEffect)(() => {
                let e; {
                    let {
                        hash: t
                    } = window.location;
                    t && (e = setTimeout(() => {
                        (0, B.scrollToHash)("vertical", (0, S.isNarrowViewport)(), t)
                    }, 100))
                }
                return () => {
                    clearTimeout(e)
                }
            }, []), (0, s.useEffect)(() => {
                setTimeout(() => (0, B.scrollToHash)("vertical", (0, S.isNarrowViewport)()), 100)
            }, []), s.default.useEffect(() => {
                if (!U && (!H || !G) && Z && Z.markets ? .length > 0) {
                    let e = n ? Z.markets.find(e => e.slug === n) : Z.markets[0];
                    if (e) {
                        let t = K.current;
                        (0, _.trackEvent)("market_viewed", {
                            market_id: e.conditionId,
                            market_slug: e.slug,
                            market_question: e.question,
                            market_image: e.image,
                            market_outcomes: e.outcomes ? .join(", "),
                            market_outcome_prices: e.outcomePrices ? .join(", "),
                            event_slug: Z.slug,
                            event_title: Z.title,
                            category: Z.category || "uncategorized",
                            referrer: "u" > typeof document ? document.referrer : ""
                        }); {
                            let n = {
                                item_id: e.conditionId,
                                item_name: e.question,
                                item_category: Z.category,
                                content_type: "market"
                            };
                            window.dataLayer ? .push({
                                event: "view_item",
                                ...n,
                                user_id: J.current || void 0
                            }), window.gtag && window.gtag("event", "view_item", { ...n,
                                user_id: J.current || void 0
                            }), (0, x.trackMetaEvent)({
                                eventName: "ViewContent",
                                params: {
                                    content_ids: [Z.slug],
                                    content_name: Z.title,
                                    content_category: Z.category,
                                    content_type: "market"
                                },
                                email: t,
                                externalId: J.current || void 0
                            }), (0, y.trackRedditEvent)({
                                eventName: "ViewContent",
                                params: {
                                    content_ids: [Z.slug],
                                    content_name: Z.title,
                                    content_category: Z.category,
                                    content_type: "market"
                                },
                                email: t,
                                externalId: J.current || void 0
                            }), (0, w.trackTikTokEvent)({
                                eventName: "ViewContent",
                                params: {
                                    content_ids: [Z.slug],
                                    content_name: Z.title,
                                    content_category: Z.category,
                                    content_type: "market"
                                },
                                email: t,
                                externalId: J.current || void 0
                            }), (0, P.trackSnapchatEvent)({
                                eventName: "ViewContent",
                                params: {
                                    content_ids: [Z.slug],
                                    content_name: Z.title,
                                    content_category: Z.category,
                                    content_type: "market"
                                },
                                email: t,
                                externalId: J.current || void 0
                            }), (0, E.trackTwitterEvent)({
                                eventName: "ViewContent",
                                params: {
                                    content_ids: [Z.slug],
                                    content_name: Z.title,
                                    content_category: Z.category,
                                    content_type: "market"
                                },
                                email: t,
                                externalId: J.current || void 0
                            })
                        }
                    }
                }
            }, [Z, n, U, H, G]), (0, s.useEffect)(() => {
                let e;
                if (!X || D || Q || !Z ? .slug || "u" < typeof document) return;
                let t = b.SIGNUP_PROMPT_MIN_EVENT_VIEW_MS,
                    n = null,
                    i = () => {
                        void 0 !== e && (window.clearTimeout(e), e = void 0)
                    },
                    s = () => {
                        "visible" === document.visibilityState && void 0 === e && (n = Date.now(), e = window.setTimeout(() => {
                            let e = Date.now();
                            (0, b.recordQualifiedEventView)(Z.slug, e);
                            let t = (0, b.getSignupPromptDecision)({
                                authenticated: D,
                                modalOpen: Q,
                                now: e
                            });
                            t.shouldOpen && ((0, b.markSignupPromptOpened)("event_page_visit", {
                                now: e,
                                route: "signup"
                            }), L.trackEvent(j.Events.SignupPromptOpened, { ...(0, b.getSignupPromptOpenedEventProperties)({
                                    source: "event_page_visit",
                                    route: "signup"
                                }),
                                signupPromptReason: t.reason,
                                qualifiedViewCount: t.qualifiedViewCount
                            }), W(a.ConnectorRoute.SIGNUP), (0, b.markSignupPromptShown)(e), Y(!0))
                        }, t))
                    },
                    r = () => {
                        "visible" === document.visibilityState ? s() : (null !== n && (t = Math.max(0, t - (Date.now() - n)), n = null), i())
                    };
                return s(), document.addEventListener("visibilitychange", r), () => {
                    i(), document.removeEventListener("visibilitychange", r)
                }
            }, [L, D, Z ? .slug, X, Q, W, Y]), (0, t.jsx)(r.ErrorBoundary, {
                fallbackRender: ({
                    error: i
                }) => (0, t.jsx)(l.default, {
                    error: i,
                    source: "EventPage",
                    context: {
                        eventSlug: e,
                        marketSlug: n,
                        defaultMarketSlug: u
                    }
                }),
                onError: (e, t) => (0, q.handleError)(e, "[EventPage > ErrorBoundary]", M, q.BUG_CATEGORIES.MISSION_CRITICAL, {
                    errorInfo: t
                }),
                children: m ? (0, t.jsx)(c.default, {
                    skipHeadContent: !0,
                    children: (0, t.jsx)(R.NotForecasted, {
                        status: "archived",
                        source: "EventPage",
                        reason: "event-archived",
                        context: {
                            eventSlug: e,
                            marketSlug: n,
                            defaultMarketSlug: u
                        }
                    })
                }, "/event-archived") : $ ? (0, t.jsx)(c.default, {
                    skipHeadContent: !0,
                    children: (0, t.jsx)(g, {})
                }, "/event-loading") : !Z || ee ? (0, t.jsx)(c.default, {
                    skipHeadContent: !0,
                    children: (0, t.jsx)(R.NotForecasted, {
                        source: "EventPage",
                        reason: ee ? "event-query-error" : "event-not-found",
                        error: et,
                        context: {
                            eventSlug: e,
                            marketSlug: n,
                            defaultMarketSlug: u
                        }
                    })
                }, "/event-not-found") : (0, t.jsx)(I.OrderBookProvider, {
                    children: (0, t.jsx)(v.default, {
                        event: Z,
                        marketSlug: n ? ? u,
                        originalMarketSlug: n,
                        serverDate: d,
                        breadcrumbItems: h,
                        categoryBreadcrumb: O,
                        ssrComments: V,
                        hitMarketChartData: z
                    })
                })
            })
        },
        V = e => {
            let i, s, r = (0, n.c)(4);
            if (r[0] !== e) {
                let {
                    dehydratedState: t,
                    ...n
                } = e;
                i = n, r[0] = e, r[1] = i
            } else i = r[1];
            return r[2] !== i ? (s = (0, t.jsx)(O, { ...i
            }), r[2] = i, r[3] = s) : s = r[3], s
        };
    V.getLayout = function(e, n) {
        return (0, t.jsx)(u.default, {
            page: n ? .isArchived ? "fourohfour" : "event",
            footerData: n ? .footerData,
            children: e
        })
    }, e.s(["__N_SSG", 0, !0, "default", 0, V], 485510)
}, 187334, (e, t, n) => {
    let i = "/event/[...slug]";
    (window.__NEXT_P = window.__NEXT_P || []).push([i, () => e.r(485510)]), t.hot && t.hot.dispose(function() {
        window.__NEXT_P.push([i])
    })
}, 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)))
}, 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)))
}, 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)))
}, 419573, e => {
    e.v(t => Promise.all(["static/chunks/0ombufu5o49mu.js"].map(t => e.l(t))).then(() => t(837512)))
}]);

//# debugId=6cad576c-97f0-640f-7d83-3475109067b8