/*! For license information please see main.5efe391c.js.LICENSE.txt */ (() => { var e = { 11414: (e, t, n) => { "use strict"; n.d(t, { Z5: () => i, lD: () => a }); let r; async function a(e, t) { if (r) throw new Error("[ApsStorageKey] Already set"); if ("ruffle" === e) { const e = t.swfLocation.slice(0, -".swf".length), n = new URL(`${e}.html`), a = new URL(`/ruffle${n.pathname}`, "https://files.crazygames.com/"); r = encodeURIComponent(a.pathname); } else if ("iframe" === e) { const e = t; e.url && (r = encodeURIComponent(new URL(e.url).pathname)); } } function i() { return r; } }, 8226: (e, t, n) => { "use strict"; n.d(t, { Z: () => o }); var r = n(47313), a = n(85541), i = n(46417); const o = r.memo((e) => (0, i.jsx)(a.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: (0, i.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L12 10.5858L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.4142 12L19.7071 18.2929C20.0976 18.6834 20.0976 19.3166 19.7071 19.7071C19.3166 20.0976 18.6834 20.0976 18.2929 19.7071L12 13.4142L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.5858 12L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289Z" }) })); }, 75993: (e, t, n) => { "use strict"; n.d(t, { Z: () => o }); var r = n(47313), a = n(85541), i = n(46417); const o = r.memo((e) => (0, i.jsxs)(a.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: [(0, i.jsx)("path", { d: "M10 15.0657V8.93426C10 8.53491 10.4451 8.29671 10.7773 8.51823L15.376 11.584C15.6728 11.7819 15.6728 12.2181 15.376 12.416L10.7774 15.4818C10.4451 15.7033 10 15.4651 10 15.0657Z" }), (0, i.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.5 15.0657V8.93426C9.5 8.13556 10.3901 7.65917 11.0547 8.10221L15.6533 11.1679C16.247 11.5638 16.247 12.4362 15.6533 12.8321L11.0547 15.8978C10.3901 16.3408 9.5 15.8644 9.5 15.0657ZM10 8.93426V15.0657C10 15.4651 10.4451 15.7033 10.7774 15.4818L15.376 12.416C15.6728 12.2181 15.6728 11.7819 15.376 11.584L10.7773 8.51823C10.4451 8.29671 10 8.53491 10 8.93426Z" }), (0, i.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" })] })); }, 91815: (e, t, n) => { "use strict"; n.d(t, { Z: () => o }); var r = n(47313), a = n(85541), i = n(46417); const o = r.memo((e) => (0, i.jsx)(a.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: (0, i.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.1051 3.90453C10.1051 2.84042 10.9755 2 12.0215 2H12.1183C13.7773 2 15.1446 3.33088 15.1446 5V9H18.9711C21.2014 9 22.6959 11.3321 21.6755 13.3463L18.1295 20.3463C17.6137 21.3646 16.5645 22 15.4251 22H11.3546C11.1082 22 10.8627 21.9702 10.6236 21.9112L6.93101 21H5.02628C3.36726 21 2 19.6691 2 18V12C2 10.3309 3.36726 9 5.02628 9H7.19669L9.66081 5.35177C9.95107 4.92203 10.1051 4.41848 10.1051 3.90453ZM6.05257 11H5.02628C4.44713 11 4 11.46 4 12V18C4 18.54 4.44713 19 5.02628 19H6.05257V11ZM8.05257 19.2168V11.3061L11.3182 6.47121C11.8129 5.73871 12.0857 4.88122 12.1041 4H12.1183C12.6974 4 13.1446 4.45998 13.1446 5V9H12.1183C11.566 9 11.1183 9.44772 11.1183 10C11.1183 10.5523 11.566 11 12.1183 11H18.9711C19.7534 11 20.2183 11.7971 19.8914 12.4425L16.3454 19.4425C16.1747 19.7794 15.8207 20 15.4251 20H11.3546C11.2696 20 11.185 19.9897 11.1027 19.9694L8.05257 19.2168Z" }) })); }, 94891: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(18088), a = n(7136); const i = ["en_US", "nl_NL", "es_ES", "fr_FR", "it_IT", "de_DE", "id_ID", "pt_BR", "sv_SE", "ru_RU", "fi_FI", "nb_NO", "pl_PL", "ro_RO", "uk_UA", "da_DK", "cs_CZ", "el_GR", "hu_HU", "tr_TR", "ar_SA", "vi_VN", "th_TH"]; class o { static async getTranslations(e) { switch (e) { case "en_US": return (await n.e(6876).then(n.t.bind(n, 66876, 23))).default.messages; case "nl_NL": return (await n.e(1325).then(n.t.bind(n, 41325, 23))).default.messages; case "es_ES": return (await n.e(5385).then(n.t.bind(n, 75385, 23))).default.messages; case "fr_FR": return (await n.e(8046).then(n.t.bind(n, 58046, 23))).default.messages; case "it_IT": return (await n.e(5395).then(n.t.bind(n, 45395, 23))).default.messages; case "de_DE": return (await n.e(9976).then(n.t.bind(n, 89976, 23))).default.messages; case "id_ID": return (await n.e(3643).then(n.t.bind(n, 53643, 23))).default.messages; case "pt_BR": return (await n.e(5080).then(n.t.bind(n, 15080, 23))).default.messages; case "sv_SE": return (await n.e(4040).then(n.t.bind(n, 44040, 23))).default.messages; case "ru_RU": return (await n.e(9980).then(n.t.bind(n, 29980, 23))).default.messages; case "fi_FI": return (await n.e(3938).then(n.t.bind(n, 13938, 23))).default.messages; case "nb_NO": return (await n.e(2553).then(n.t.bind(n, 12553, 23))).default.messages; case "pl_PL": return (await n.e(7328).then(n.t.bind(n, 7328, 23))).default.messages; case "ro_RO": return (await n.e(752).then(n.t.bind(n, 20752, 23))).default.messages; case "uk_UA": return (await n.e(6861).then(n.t.bind(n, 66861, 23))).default.messages; case "da_DK": return (await n.e(9051).then(n.t.bind(n, 69051, 23))).default.messages; case "cs_CZ": return (await n.e(5662).then(n.t.bind(n, 55662, 23))).default.messages; case "el_GR": return (await n.e(5709).then(n.t.bind(n, 35709, 23))).default.messages; case "hu_HU": return (await n.e(410).then(n.t.bind(n, 40410, 23))).default.messages; case "tr_TR": return (await n.e(2064).then(n.t.bind(n, 82064, 23))).default.messages; case "ar_SA": return (await n.e(1658).then(n.t.bind(n, 11658, 23))).default.messages; case "vi_VN": return (await n.e(863).then(n.t.bind(n, 863, 23))).default.messages; case "th_TH": return (await n.e(4500).then(n.t.bind(n, 4500, 23))).default.messages; default: throw new Error(`[Translations] Unmapped locale translations: ${e}`); } } static async Initialize(e) { const t = await this.getSupportedLocale(e); (this.locale = t), await this.initializeTranslations(t), console.info(`[Translations] initialized locale "${t}"`); } static getReactIntlLocale() { if (null === this.locale) throw new Error("Locale is not initialized yet"); return (0, r.xz)(this.locale); } static getLocale() { return this.locale; } static getTranslationMap() { if (null === this.translations) throw new Error("Translations are not initialized yet"); return this.translations; } static async guessLocale() { const e = (t) => { if (0 === t.length) return console.info("[Translations] None of the preferred locales are supported"), r.ZW; const n = this.browserLocaleToCzyLocale(t[0]); return i.includes(n) ? n : e(t.slice(1)); }; return e(Array.from(navigator.languages)); } static browserLocaleToCzyLocale(e) { return e.replace("-", "_"); } static czyLocaleToBrowserLocale(e) { return e.replace("_", "-"); } static async getSupportedLocale(e) { if (e) { if (i.includes(e)) return e; console.warn(`[Translations] specified locale is not supported: ${e}`); } return await this.guessLocale(); } static async initializeTranslations(e) { const t = await this.getTranslations(e), n = this.czyLocaleToBrowserLocale(e); a.ag.loadLocaleData({ [n]: { plurals: () => "other" } }), a.ag.load(n, t), a.ag.activate(n), (this.translations = t); } } (o.translations = null), (o.locale = null); const s = o; }, 73914: (e, t, n) => { "use strict"; n.d(t, { s: () => r }); const r = n(47313).createContext({ requestFullscreen: () => { throw new Error("[FullscreenContext] missing context"); }, disableFullscreen: () => { throw new Error("[FullscreenContext] missing context"); }, setFullScreenError: () => { throw new Error("[FullscreenContext] missing context"); }, isFullscreen: !1, fullscreenError: void 0, }); }, 25831: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); n(47313); var r = n(73914), a = n(46417); const i = function (e) { return (t) => (0, a.jsx)(r.s.Consumer, { children: (n) => { let { requestFullscreen: r, isFullscreen: i, disableFullscreen: o, fullscreenError: s, setFullScreenError: l } = n; return (0, a.jsx)(e, { ...t, requestFullscreen: r, disableFullscreen: o, isFullscreen: i, fullscreenError: s, setFullScreenError: l }); }, }); }; }, 86857: (e, t, n) => { "use strict"; n.d(t, { Z: () => c }); n(47313); var r = n(77626), a = n(42379), i = n(71917); const o = (0, a.ZP)("div")(() => ({ fontSize: "0.6em", width: "100%", padding: "3px", backgroundColor: "#ffffff20", color: "#ffffff75", lineHeight: 1.2, textAlign: "center", [`@media (min-height: ${i.ot.maxMobileLandscapeHeight}px)`]: { fontSize: "0.7em", padding: "7px 5px" } })), s = (0, a.ZP)("a")((e) => { let { theme: { palette: t }, } = e; return { color: t.secondary.main, textDecoration: "none", "&:hover": { color: t.secondary.dark } }; }); var l = n(46417); const c = () => (0, l.jsx)(o, { children: (0, l.jsx)(r.Z, { id: "loader.gdprNotice", values: { privacyLink: (0, l.jsx)(s, { rel: "noopener noreferrer", href: "https://www.crazygames.com/privacy-policy", target: "_blank", children: (0, l.jsx)(r.Z, { id: "common.privacy" }) }), termsLink: (0, l.jsx)(s, { rel: "noopener noreferrer", href: "https://www.crazygames.com/terms-and-conditions", target: "_blank", children: (0, l.jsx)(r.Z, { id: "loader.gdprTerms" }) }) } }) }); }, 72071: (e, t, n) => { "use strict"; n.d(t, { i: () => s, r: () => o }); var r = n(96607), a = n(47313), i = n(46417); const o = a.createContext({ gameLoadStatus: "NOT_STARTED", onPreroll: () => {}, onPostPreroll: () => {}, onLoadFinished: () => {} }), s = (e) => { let { children: t } = e; const [n, s] = (0, a.useState)("NOT_STARTED"); (0, a.useEffect)(() => { function e(e) { "check-loading-state" === e.data && ("GAME_LOADED" === n ? r.Z.gameLoadingStateResponse(!0) : r.Z.gameLoadingStateResponse(!1)); } return ( window.addEventListener("message", e), () => { window.removeEventListener("message", e); } ); }, [n]); const l = { gameLoadStatus: n, onPreroll: () => { "POST_PREROLL" !== n && "GAME_LOADED" !== n && s("PREROLL"); }, onLoadFinished: () => { r.Z.gameFinishedLoading(), s("GAME_LOADED"); }, onPostPreroll: () => { "GAME_LOADED" !== n && s("POST_PREROLL"); }, }; return (0, i.jsx)(o.Provider, { value: l, children: t }); }; }, 71534: (e, t, n) => { "use strict"; n.d(t, { q: () => i }); n(47313); var r = n(72071), a = n(46417); function i(e) { return (t) => (0, a.jsx)(r.r.Consumer, { children: (n) => { let { gameLoadStatus: r, onLoadFinished: i, onPostPreroll: o, onPreroll: s } = n; return (0, a.jsx)(e, { ...t, onLoadFinished: i, onPostPreroll: o, onPreroll: s, gameLoadStatus: r }); }, }); } }, 46745: (e, t, n) => { "use strict"; n.d(t, { Z: () => u }); var r = n(47313), a = n(79924), i = n(46604), o = n(57484), s = n(46417); const l = r.forwardRef((e, t) => { let { videoStyle: n, addBlurredEffect: a, videoSizes: l, minWidth: c, autoplay: d = !0 } = e; const u = i.Z.buildVideoSrc(l, c), [p, h] = r.useState(!1); return (0, s.jsxs)("div", { style: { width: "100%", height: "100%", position: a ? "fixed" : void 0, top: a ? 0 : void 0 }, children: [a && p && (0, s.jsx)(o.CW, {}), (0, s.jsx)("video", { autoPlay: d, loop: !0, muted: !0, style: { ...n, opacity: p ? 1 : 0 }, className: "video", ref: t, onCanPlay: () => h(!0), children: (0, s.jsx)("source", { src: u, type: "video/mp4" }) })] }); }); var c = n(35311), d = n(87308); const u = r.forwardRef((e, t) => { const n = r.useContext(c.Z), { thumbnail: i, video: o, autoplay: u, minVideoWidth: p, addBlurredEffect: h } = e, { orientation: f } = n, m = "LANDSCAPE" === f && (0, d.uo)(), g = p || window.innerWidth / 2; return o && o.sizes && o.sizes.length > 0 ? (0, s.jsx)(l, { videoSizes: o.sizes, minWidth: g, addBlurredEffect: h, videoStyle: { height: "100%", width: "100%", filter: "drop-shadow(0px 2px 4px rgba(0,0,0,0.5))", position: "relative", zIndex: 1, objectFit: "cover" }, autoplay: u, ref: t }) : (0, s.jsx)(a.Z, { src: i, minWidth: g, addBlurredEffect: h, addParamWidth: !0, imgStyle: { height: "100%", width: "100%", filter: "drop-shadow(0px 2px 4px rgba(0,0,0,0.5))", position: "relative", zIndex: 1, objectFit: m ? "contain" : "cover" } }); }); }, 58684: (e, t, n) => { "use strict"; n.d(t, { CA: () => d, FK: () => u, IB: () => h, O2: () => p, hz: () => s, iO: () => c, r6: () => l, u_: () => o }); var r = n(42379), a = n(17551), i = n(32606); const o = (0, r.ZP)("div", { shouldForwardProp: (e) => "hideBackdrop" !== e })((e) => { let { hideBackdrop: t } = e; return { position: "fixed", inset: 0, ...(!t && { backdropFilter: "blur(8px)", backgroundColor: "rgba(12, 13, 20, 0.8)" }), display: "flex", alignItems: "center", justifyContent: "center", zIndex: 1, fontWeight: 900 }; }), s = (0, r.ZP)("div")(() => ({ backgroundColor: i.D.white[100], borderRadius: 10, width: 400, position: "relative", padding: "10px 20px 30px", textAlign: "center" })), l = (0, r.ZP)("h2")(() => ({ color: i.D.black[70], fontWeight: 900, fontSize: "24px" })), c = (0, r.ZP)("p")(() => ({ color: i.D.white[10], fontWeight: 400 })), d = (0, r.ZP)("div")(() => ({ position: "absolute", width: "34px", height: "34px", right: "-10px", top: "-10px", backgroundColor: i.D.brand[100], border: `4px solid ${i.D.white[100]}`, borderRadius: "28px", display: "flex", alignItems: "center", justifyContent: "center", svg: { width: 20 }, "&:hover": { background: i.D.brand[80], cursor: "pointer" } })), u = (0, r.ZP)("div")({ position: "absolute", width: "30px", height: "30px", right: "8px", top: "8px", borderRadius: "28px", color: i.D.white[10], "&:hover": { cursor: "pointer", color: i.D.white[20] }, "&:active": { backgroundColor: i.D.black[70], color: i.D.white[40] } }), p = (0, r.ZP)("div")(() => ({ display: "inline-flex", flexDirection: "row", justifyContent: "center", alignItems: "center", padding: "14px 20px", gap: "5px", width: "100%", height: "50px", background: i.D.brand[100], borderRadius: "30px", flex: "none", order: 2, flexGrow: 0, transition: "background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms", fontWeight: 800, userSelect: "none", "&:hover": { background: i.D.brand[80], cursor: "pointer" }, "&:active": { background: (0, a.Fq)(i.D.brand[80], 0.7) } })), h = (0, r.ZP)("div")(() => ({ transition: "all 250ms ease 0s", border: "none", cursor: "pointer", display: "flex", WebkitBoxPack: "center", justifyContent: "center", WebkitBoxAlign: "center", alignItems: "center", fontFamily: "Nunito", fontWeight: 800, fontSize: "16px", boxSizing: "border-box", padding: "8px 16px", background: "transparent", color: i.D.brand[100], height: "50px", width: "100%", marginTop: "4px", borderRadius: "30px", userSelect: "none", "&:hover": { color: i.D.brand[80], cursor: "pointer" }, "&:active": { color: (0, a.Fq)(i.D.brand[80], 0.7) } })); }, 16782: (e, t, n) => { "use strict"; n.d(t, { o: () => o }); var r = n(8226), a = (n(47313), n(58684)), i = n(46417); const o = (e) => { let { onClick: t } = e; return (0, i.jsx)(a.CA, { onClick: t, children: (0, i.jsx)(r.Z, {}) }); }; }, 73985: (e, t, n) => { "use strict"; n.d(t, { Gs: () => o, I1: () => s, rU: () => i }); var r = n(90831); let a = !1; function i(e) { a = e; } function o() { return a; } function s(e) { const { gameId: t } = (0, r.NI)(); if (["22131", "21143"].includes(t)) return e; const { username: n, profilePictureUrl: a } = e; return { username: n, profilePictureUrl: a }; } }, 61627: (e, t, n) => { "use strict"; n.d(t, { M: () => u, N: () => d }); var r = n(96607), a = n(47313), i = n(73985), o = n(47178), s = n(90831), l = n(46604), c = n(46417); const d = a.createContext({ userId: void 0, hasUserLoaded: !1, isUserExpected: !1, isFavouriteGame: !1, signInModalEnabled: !1, addToFavourite: () => {}, removeFromFavourite: () => {}, setSignInModalEnabled: () => {} }), u = (e) => { let { children: t } = e; const [n, u] = a.useState(void 0), [p, h] = a.useState(void 0), [f, m] = a.useState(!1), [g, v] = a.useState(!1), [b, y] = a.useState(null), [w, S] = a.useState(!1), [k, x] = a.useState(), [C, E] = a.useState(!1), I = a.useCallback((e) => { if ("sdk" === e.data.messageTarget) return; const { type: t, data: n } = e.data; switch (t) { case "userLoggedIn": if (("sdkps" === (0, s.NI)().aps && window.location.reload(), n.userId && u(n.userId), n.userData && h(n.userData), n.userId && n.userData)) try { const e = (0, o.Q)(), t = { id: n.userId, username: n.userData.username, profilePictureUrl: n.userData.profilePictureUrl }; e.postMessageToSdk("userLoggedIn", { user: (0, i.I1)(t) }); } catch (r) {} else console.error("[PortalUserContext] userLoggedIn is missing required fields"); break; case "userExpected": v(!0); break; case "init": case "init-js-sdk": x(void 0), S(!0); break; case "userPortalInfoSync": n.userId ? (u(n.userId), (0, i.rU)(!0)) : (u(void 0), (0, i.rU)(!1)), n.userData && h(n.userData), E(!!n.wasUserLoggedIn), m(!0), void 0 !== n.isFavouriteGame && y(!!n.isFavouriteGame); break; default: return; } }, []); a.useEffect( () => ( window.addEventListener("message", I), () => { window.removeEventListener("message", I); } ), [I] ), (0, a.useEffect)(() => { if (w && f && "no-send" !== k && "sent" !== k) if (n) if (p) { const e = (0, o.Q)(), t = { id: n, username: p.username, profilePictureUrl: p.profilePictureUrl }; e.postMessageToSdk("initialUserSet", { user: (0, i.I1)(t) }), x("sent"); } else x("wait-userdata"); else { (0, o.Q)().postMessageToSdk("initialUserSet", { user: void 0 }), x("no-send"); } }, [w, f, k, n, p]), a.useEffect(() => { if (f || l.Z.isEmbeddedExternally()) return; r.Z.requestUserPortalInfoSync(); const e = window.setInterval(() => { r.Z.requestUserPortalInfoSync(); }, 1e3); return () => { window.clearInterval(e); }; }, [f]); const P = a.useMemo( () => ({ userId: n, hasUserLoaded: f, isUserExpected: g, isFavouriteGame: b, signInModalEnabled: C, setSignInModalEnabled: E, addToFavourite: () => { n ? (y(!0), r.Z.requestToFavouriteGame()) : r.Z.openGamesDrawer(); }, removeFromFavourite: () => { n ? (y(!1), r.Z.requestToUnFavouriteGame()) : r.Z.openGamesDrawer(); }, }), [n, f, g, b, C] ); return (0, c.jsx)(d.Provider, { value: P, children: t }); }; }, 1247: (e, t, n) => { "use strict"; n.d(t, { n: () => b, J: () => v }); var r = n(22870), a = n(90831); var i = n(12549), o = n(96607), s = n(23004), l = n(69121), c = n(87308), d = n(6689), u = n(13751), p = n(6224); let h = (function (e) { return (e.UNITY = "unity"), (e.FLASH = "flash"), (e.IFRAME = "iframe"), (e.LINK = "link"), (e.SWFVIEWER = "swfviewer"), (e.RUFFLE = "ruffle"), e; })({}); function f(e) { switch (e) { case "5.4.x": case "5.6.x": case "unity2020": case "unity2021": case "unity2022": case "unity2023": return h.UNITY; case "iframe": case null: default: return h.IFRAME; case "external": return h.LINK; case "swfviewer": return h.SWFVIEWER; case "ruffle": return h.RUFFLE; } } var m = n(76306); const g = (0, r.fq)("undefined" !== typeof window && window.location.search.indexOf("upgf_debug=true") >= 0); class v extends Error { constructor(e) { super("UPGFConnectorReturnedError"), (this.errors = void 0), (this.errors = e); } } class b { static get Instance() { return this._instance || (this._instance = new this()); } constructor() { (this.storedCallbacks = new Map()), (this.isSyncingUnityData = !1), (this.receiveMessage = (e) => { const { type: t, data: n } = e.data; if ("forwardToUpGraphqlResponse" !== t) return; g.debug("[UPGFConnector]: Recieved response from UP by forwardToUpGraphqlResponse", n.callbackId); const r = this.storedCallbacks.get(n.callbackId); r ? r.promise.resolve(n) : g.error("[UPGFConnector]: forwardToUpGraphqlResponse unhandled", n.resultData); }), (this.cleanUpCallback = (e) => { const t = this.storedCallbacks.get(e); t && (t.raceTimerId && window.clearTimeout(t.raceTimerId), this.storedCallbacks.delete(e)); }), window.addEventListener("message", this.receiveMessage); } async fetchSdkGameData() { var e; const t = { gameId: (0, a.NI)().gameId }, n = (0, i.Z)(); g.debug("[UPGFConnector]: Requested sdkGameData from UP", n), o.Z.forwardToUpGraphql({ callbackId: n, rawGraphqlString: "\n query SdkGameData($gameId: String!) {\n sdkGameData(gameId: $gameId) {\n url\n hasData\n }\n }\n", requestType: "query", variables: t, errorPolicy: "all", fetchPolicy: "no-cache" }); const r = await this.waitForUserPortal(n), s = null === (e = r.resultData) || void 0 === e ? void 0 : e.sdkGameData; return null === s || void 0 === s || delete s.__typename, g.debug("[UPGFConnector]: Query sdkGameData successfull", r), s; } async saveSdkGameData(e) { var t; const n = (0, a.NI)(), { device: r } = (0, l.bG)(), s = (null === (t = r.browser) || void 0 === t ? void 0 : t.name) || "", d = (0, c.cy)(), u = { input: { data: e.jsonData, id: n.gameId, browser: s, deviceType: d } }, p = (0, i.Z)(); g.debug("[UPGFConnector]: Saving sdkGameData to UP", p), o.Z.forwardToUpGraphql({ callbackId: p, rawGraphqlString: "\n mutation SaveSdkGameData($input: SdkGameDataInput!) {\n saveSdkGameData(input: $input)\n }\n", requestType: "mutation", variables: u, errorPolicy: "all", fetchPolicy: "no-cache" }); const h = await this.waitForUserPortal(p); g.debug("[UPGFConnector]: Saved sdkGameData successfull, response: ", h); } async autoSyncUnityData() { "UNITY" === d.Z.Instance.getType() && (0, u.v9)() && "aps" === d.Z.Instance.getCurrentSyncType() && (await this.syncUnityData(!0)); } async syncUnityData(e) { try { const t = await n.e(2012).then(n.bind(n, 52012)), { data: r, updatedAtTz: a } = await t.getExistingIndexedData(), o = !e || a !== t.getLastSyncTimeOfIDBTz(); if (r && o) { if (this.isSyncingUnityData) return; (this.isSyncingUnityData = !0), t.setSyncTimeOfIndexDb(a); const e = p.ZP.getGameTimeInSec(); t.savePlayedTimeInLS(e), await this.replaceGameData({ store: r, version: (0, i.Z)(), updatedAtTz: a, playedTime: e }), (this.isSyncingUnityData = !1); } } catch (t) { g.error("[UPGFConnector] syncUnityData err: ", t), (this.isSyncingUnityData = !1); } } async replaceGameData(e) { var t; const n = (0, a.NI)(), { store: r, version: s, playedTime: d } = e, u = JSON.stringify(r), { device: p } = (0, l.bG)(), h = (null === (t = p.browser) || void 0 === t ? void 0 : t.name) || "", m = (0, c.cy)(), v = { input: { data: u, id: n.gameId, technology: f(n.loader), version: s, browser: h, playedTime: d, deviceType: m } }, b = (0, i.Z)(); g.debug("[UPGFConnector]: Requested replaceGameData from UP", b), o.Z.forwardToUpGraphql({ callbackId: b, rawGraphqlString: "\n mutation ReplaceGameData($input: AddGameDataInput!) {\n replaceGameData(input: $input)\n }\n", requestType: "mutation", variables: v, errorPolicy: "all" }); const y = await this.waitForUserPortal(b); return g.debug("[UPGFConnector]: replaceGameData successfull", y), y; } async clearGameData(e) { var t; const n = (0, a.NI)(), { version: r } = e, { device: s } = (0, l.bG)(), d = (null === (t = s.browser) || void 0 === t ? void 0 : t.name) || "", u = (0, c.cy)(), p = { input: { id: n.gameId, technology: f(n.loader), version: r, browser: d, deviceType: u } }, h = (0, i.Z)(); g.debug("[UPGFConnector]: Requested clearGameData from UP", h), o.Z.forwardToUpGraphql({ callbackId: h, rawGraphqlString: "\n mutation ClearGameData($input: ClearGameDataInput!) {\n clearGameData(input: $input)\n }\n", requestType: "mutation", variables: p, errorPolicy: "all" }); const m = await this.waitForUserPortal(h); return g.debug("[UPGFConnector]: clearGameData successfull", m), m; } async getGameData() { const e = { id: (0, a.NI)().gameId }, t = (0, i.Z)(); g.debug("[UPGFConnector]: Requested gameData from UP", t), o.Z.forwardToUpGraphql({ callbackId: t, rawGraphqlString: "\n query GameData($id: String!, $technology: GameTechnologyAPS) {\n gameData(id: $id, technology: $technology) {\n dataUrl\n version\n metadata {\n updatedAt\n browser\n deviceType\n playedTime\n }\n }\n }\n", requestType: "query", variables: e, errorPolicy: "all", fetchPolicy: "no-cache" }); const n = await this.waitForUserPortal(t); return g.debug("[UPGFConnector]: gameData successfull", n), n; } async waitForUserPortal(e) { const t = (0, s.PQ)(), n = { promise: t, raceTimerId: 0 }; this.storedCallbacks.set(e, n); const r = await Promise.race([t.promise, this.timeoutPromise(e)]); return this.cleanUpCallback(e), r; } async timeoutPromise(e) { return new Promise((t, n) => { const r = this.storedCallbacks.get(e); if (!r) return g.error("[UPGFConnector]: Missing callback"), void n(new Error("Missing callback")); r.raceTimerId = window.setTimeout(() => { g.error("[UPGFConnector] Race timer triggered (timeout)"), this.cleanUpCallback(e), n(new m.W("UPGFConnector", 1e4)); }, 1e4); }); } } b._instance = void 0; }, 13751: (e, t, n) => { "use strict"; n.d(t, { Qg: () => k, VB: () => f, VO: () => S, bs: () => p, do: () => w, i2: () => u, o5: () => b, v9: () => y, x3: () => v, z6: () => h }); var r = n(90831), a = n(74082), i = n(19314), o = n(46604), s = n(22870), l = n(74309); const c = window.location.search.indexOf("aps_debug=true") >= 0, d = new s.Yd(k()).withPrefix("[APS]"), u = (e) => (e ? 6e4 : 3e4), p = "1.4.9"; function h(e, t, n, a) { const i = (function (e) { const t = (0, r.NI)(); if ("ruffle" === e) return `https://${t.gameSlug}.game-files.crazygames.com`; { const e = t.loaderOptions.url; return new URL(e).origin; } })(n); let o = `${`${i}/gameframe/up-aps/aps-script-${p}.html`}?game_slug=${e}`; return a && (o += `&sync_timer_ms=${a}`), c && (o += "&debug=true"), t && (o += `&apsStorageKey=${t}`), o; } function f() { const { apsSyncTimerMs: e, categoryEnSlug: t } = (0, r.NI)(); return e || ("clicker" === t ? 3e4 : 1e3); } function m(e) { const t = ["files.crazygames.com", "files.dev-crazygames.be", "game-files.crazygames.com"].some((t) => e.includes(t)); return !!(g() && a.m.Instance.hasWorkingLocalStorage() && t); } function g() { const e = (0, r.NI)(), t = e.aps; return !!((!t || "yes" === t) && !e.forceDisableAPS && !(0, i.U)() && !o.Z.isEmbeddedExternally()); } function v() { return m((0, r.NI)().loaderOptions.url); } function b() { return m((0, r.NI)().loaderOptions.swfLocation); } function y() { const e = window.hasOwnProperty("indexedDB"); return !!(g() && e); } async function w(e) { try { const t = await fetch(e, { method: "GET" }), n = await t.text(); if (!t.ok) throw new l.k(n, t.status); return n; } catch (t) { throw new l.k(t); } } function S(e) { k() && d.debug(`${e}`); } function k() { return c; } }, 6689: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); class r { constructor() { (this.type = null), (this.preloadDeferred = null), (this.isPreloadDeferredFinished = !1), (this.currentSyncType = "disabled"); } static get Instance() { return this._instance || (this._instance = new this()); } setType(e) { this.type = e; } getType() { return this.type; } getCurrentSyncType() { return this.currentSyncType; } setCurrentSyncType(e) { this.currentSyncType = e; } setDeferred(e) { this.preloadDeferred = e; } getDeferred() { return this.preloadDeferred; } setIsDeferredFinished(e) { this.isPreloadDeferredFinished = e; } getIsDeferredFinished() { return this.isPreloadDeferredFinished; } async waitForAPS() { this.preloadDeferred && (await this.preloadDeferred.promise); } } r._instance = void 0; const a = r; }, 82259: (e, t, n) => { "use strict"; n.d(t, { S: () => s }); var r = n(86366), a = n(32606), i = n(42379); const o = (e, t, n, r, i, o) => ({ borderRadius: "small" === o ? 10 : 30, transition: "all 250ms ease", border: "none", cursor: "pointer", display: "flex", justifyContent: "center", alignItems: "center", fontFamily: "Nunito", fontWeight: "small" === o ? 700 : 800, fontSize: "small" === o ? 12 : 16, boxSizing: "border-box", padding: r ? 0 : e.spacing(1, 2), background: "transparent", ...("contained" === n && { background: (() => { switch (t) { case "grey": return a.D.black[40]; case "purple": return a.D.brand[100]; case "white": return a.D.white[100]; case "alert": return a.D.alert[100]; case "success": return a.D.success[100]; } })(), color: (() => { switch (t) { case "grey": case "purple": case "alert": case "success": return a.D.white[100]; case "white": return a.D.black[50]; } })(), "&:active": { background: (() => { switch (t) { case "grey": return a.g.black[70]; case "purple": return a.g.brand[80]; case "white": return a.g.white[50]; case "alert": return a.g.alert[100]; case "success": return a.g.success[100]; } })(), }, ...(i && { "&:hover": { background: (() => { switch (t) { case "grey": return a.D.black[70]; case "purple": return a.D.brand[80]; case "white": return a.D.white[50]; case "alert": return a.D.alert[100]; case "success": return a.D.success[100]; } })(), }, }), }), ...(("link" === n || "outlined" === n) && { color: (() => { switch (t) { case "white": return a.D.white[90]; case "alert": return a.D.alert[100]; case "success": return a.D.success[100]; default: return a.D.brand[60]; } })(), "&:active": { color: "white" === t ? a.g.white[50] : a.g.brand[100] }, ...(i && { "&:hover": { color: "white" === t ? a.D.white[50] : a.D.brand[100] } }), }), ...("outlined" === n && { border: `1px solid ${a.D.white[30]}`, "&:active": { borderColor: a.g.white[30] } }), "&.Mui-disabled": { background: a.D.black[60], color: a.D.black[10], cursor: "default" }, }), s = (0, i.ZP)(r.Z, { shouldForwardProp: (e) => "variant" !== e && "height" !== e && "color" !== e && "isDesktop" !== e && "sx" !== e && "size" !== e })((e) => { let { variant: t = "link", color: n = "purple", theme: r, height: a, isDesktop: i = !0, size: s = "default" } = e; return { ...o(r, n, t, !1, i, s), height: a || 40 }; }); }, 17140: (e, t, n) => { "use strict"; n.d(t, { Z: () => l }); var r = n(90831), a = (n(47313), n(50009)), i = n(52797), o = n(46604), s = n(46417); const l = (e) => { let { children: t, clickable: n, campaignContent: l } = e; if (!n) return (0, s.jsx)(s.Fragment, { children: t }); const c = (0, r.NI)().locale, d = i.GA.Instance, u = (0, a.Z)(), p = o.Z.crazygamesLocalizedHomeUtmUrl(c, u, l); return (0, s.jsx)("a", { href: p, target: "_blank", onClick: () => d.trackButtonClick(i.J.CrazyLink), id: "external-playMoreGames-link", children: t }); }; }, 69382: (e, t, n) => { "use strict"; n.d(t, { Qx: () => l, rb: () => c, y7: () => s }); var r = n(42379), a = n(82937), i = n(32606), o = n(71917); const s = 26, l = (0, r.ZP)(a.ZP, { shouldForwardProp: (e) => "isKids" !== e })((e) => { let { isKids: t } = e; return { width: 23, height: "100%", "& svg": { fill: t ? "#2FB4FF" : i.D.brand[100], width: 23, height: s } }; }), c = (0, r.ZP)(a.ZP)((e) => { let { theme: { palette: t }, } = e; return { height: "100%", "& svg": { fill: t.secondary.contrastText, width: 87, height: o.ut.footerHeight } }; }); }, 35311: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); const r = { orientation: "LANDSCAPE", isIos: !1, isAndroid: !1, isMobile: !1, isTablet: !1, isStandaloneMode: !1, isSafari: !1, isSmallDevice: !1, isIE: !1, isChrome: !1, isFirefox: !1, isOpera: !1, type: "desktop" }, a = n(47313).createContext(r); }, 8242: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); n(47313); var r = n(35311), a = n(46417); const i = function (e) { return (t) => (0, a.jsx)(r.Z.Consumer, { children: (n) => (0, a.jsx)(e, { device: n, ...t }) }); }; }, 23733: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(47313), a = n(77626), i = n(46417); const o = r.lazy(() => Promise.all([n.e(859), n.e(3999)]).then(n.bind(n, 16104))), s = (e) => { let { children: t, titleId: n, titleValues: s = {} } = e; return (0, i.jsx)(r.Suspense, { fallback: (0, i.jsx)(i.Fragment, { children: t }), children: (0, i.jsx)(o, { title: (0, i.jsx)(a.Z, { id: n, values: s }), placement: "top", children: (0, i.jsx)("span", { children: t }) }) }); }; }, 94085: (e, t, n) => { "use strict"; n.d(t, { $J: () => p, Gd: () => S, Gr: () => C, OD: () => u, SU: () => x, VT: () => m, b_: () => g, eK: () => b, iT: () => y, kH: () => d, lp: () => f, s0: () => w, w1: () => v, x9: () => k }); var r = n(42379), a = n(82937), i = n(73477), o = n(71917), s = n(46325), l = n(32606); const c = "#e2264d", d = (0, r.ZP)(a.ZP, { shouldForwardProp: (e) => "isKids" !== e && "hidden" !== e })((e) => { let { isKids: t, hidden: n } = e; return { userSelect: "none", boxSizing: "content-box", background: t ? s.fY : l.D.black[70], zIndex: 1, position: "absolute", bottom: n ? -o.ut.footerHeight : 0, transition: "all .2s ease-in-out", left: 0, right: 0, height: o.ut.footerHeight }; }), u = (0, r.ZP)(i.Z, { shouldForwardProp: (e) => "clicked" !== e && "customVariant" !== e })((e) => { let { disabled: t, customVariant: n = "default", clicked: r } = e; return { lineHeight: "15px", height: 15, minHeight: o.ut.footerHeight, display: "inline-flex", minWidth: 44, padding: 0, alignItems: "center", justifyContent: "center", "&:link, &:visited": { color: "white", textDecoration: "none" }, "& svg": { width: 24, height: 24, fill: (() => { if (r) switch (n) { case "dislike": return `${l.D.alert[100]} !important`; case "favourite": return "#e2264d !important"; default: return `${l.D.success[100]} !important`; } return t ? l.D.black[10] : "white"; })(), }, color: t ? l.D.black[10] : l.D.white[100], ...(!t && { "&:hover": { color: l.D.brand[80], "& svg": { fill: `${l.D.brand[80]}` } } }), ...(r && { "& .ratingLabel": { color: "dislike" === n ? l.D.alert[100] : l.D.success[100] } }), }; }), p = (0, r.ZP)(i.Z)((e) => { let { theme: { spacing: t }, } = e; return { color: "white", border: "1px solid rgba(255, 255, 255, 0.2)", borderRadius: 40, height: 25, textTransform: "none", fontWeight: 700, fontSize: 12, padding: t(0, 1.5), "&: hover": { background: l.D.black[90] } }; }), h = () => ({ height: o.ut.footerHeight, cursor: "pointer", fontWeight: "bold" }), f = (0, r.ZP)(a.ZP, { shouldForwardProp: (e) => "withImage" !== e && "active" !== e })((e) => { let { withImage: t, active: n } = e; return { ...h(), ...(t && { height: o.ut.footerHeight, cursor: "pointer", "& div": { textAlign: "center", "& a": { fontSize: 0 } } }), backgroundColor: n ? l.D.black[90] : void 0 }; }), m = (0, r.ZP)("div", { shouldForwardProp: (e) => "isClickable" !== e })((e) => { let { isClickable: t } = e; return { fontSize: 24, height: o.ut.footerHeight, margin: 0, display: "flex", alignItems: "center", "& a": { color: "white", textDecoration: "none" }, overflow: "hidden", ...(t && { ...h(), "& .crazygamesLink": { color: l.D.brand[60] }, "&:hover": { "& .crazygamesLink": { color: l.D.white[100] } } }) }; }), g = (0, r.ZP)("div")((e) => { let { theme: { spacing: t }, } = e; return { fontSize: "1rem", fontWeight: 900, marginLeft: t(), overflow: "hidden", whiteSpace: "nowrap" }; }), v = (0, r.ZP)("div")((e) => { let { theme: { spacing: t }, } = e; return { fontSize: 12, fontWeight: 700, marginLeft: t() }; }), b = (0, r.ZP)("div")(() => ({ position: "absolute", left: "50%", top: "50%", transform: "translate(-50%,-50%)" })), y = (0, r.ZP)("div")((e) => { let { theme: { spacing: t }, } = e; return { textAlign: "center", width: "100%", position: "absolute", bottom: 50 }; }), w = (0, r.ZP)("div")((e) => { let { theme: { spacing: t }, } = e; return { fontWeight: 700, background: "rgba(0, 0, 0, 0.2)", borderRadius: 30, width: 283, padding: t(), left: "50%", transform: "translate(-50%, -50%) !important", position: "absolute" }; }), S = (0, r.ZP)("div")(() => ({ height: 20, marginRight: 10, marginLeft: 10, borderRight: `1px solid ${l.D.black[30]}` })), k = (0, r.ZP)("span")({ fontSize: 12, fontWeight: 700, textTransform: "none", marginLeft: 8 }), x = (0, r.ZP)("div", { shouldForwardProp: (e) => "isClicked" !== e && "isStaticFavourite" !== e })((e) => { let { isClicked: t, isStaticFavourite: n } = e; return { display: "flex", justifyContent: "center", fontSize: 24, span: { display: "flex", justifyContent: "center", ...(n && t && { color: c }), userSelect: "none", cursor: "pointer", ...(t && !n && { color: c, filter: "none", willChange: "font-size", svg: { animation: "heart 1s cubic-bezier(0.17, 0.89, 0.32, 1.49)" } }) }, "span:before, span:after": { position: "absolute", zIndex: 10, top: "50%", left: "50%", borderRadius: "50%", content: "''", ...(t && !n && { animation: "rest 1s cubic-bezier(0.17, 0.89, 0.32, 1.49)", animationTimingFunction: "ease-out" }) }, "span:before": { boxSizing: "border-box", margin: "-1.6875rem", border: "solid 2.25rem #e2264d", width: "3.375rem", height: "3.375rem", transform: "scale(0)", ...(t && !n && { willChange: "transform, border-width, border-color", animationName: "bubble" }) }, "span:after": { margin: "-2.25px", width: "0.28125rem", height: "0.28125rem", boxShadow: "0.32476rem -3rem 0 -0.1875rem #ff8080,\n -0.32476rem -2.625rem 0 -0.1875rem #ffed80,\n 2.54798rem -1.61656rem 0 -0.1875rem #ffed80,\n 1.84982rem -1.89057rem 0 -0.1875rem #a4ff80,\n 2.85252rem 0.98418rem 0 -0.1875rem #a4ff80,\n 2.63145rem 0.2675rem 0 -0.1875rem #80ffc8,\n 1.00905rem 2.84381rem 0 -0.1875rem #80ffc8,\n 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff,\n -1.59425rem 2.562rem 0 -0.1875rem #80c8ff,\n -0.84635rem 2.50595rem 0 -0.1875rem #a480ff,\n -2.99705rem 0.35095rem 0 -0.1875rem #a480ff,\n -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed,\n -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed,\n -2.25479rem -1.38275rem 0 -0.1875rem #ff8080", ...(t && !n && { willChange: " opacity, box-shadow", animationName: "sparkles" }) }, "@keyframes heart": { "0%, 17.5%": { transform: "scale(0)" } }, "@keyframes rest": { "0%, 17.5%": { fontSize: 0 } }, "@keyframes bubble": { "15%": { transform: "scale(1)", borderColor: "#cc8ef5", borderWidth: "1.6875rem" }, "30%,100%": { transform: "scale(1)", borderColor: "#cc8ef5", borderWidth: 0 } }, "@keyframes sparkles": { "0%,20%": { opacity: 0 }, "25%": { opacity: 1, boxShadow: "0.32476rem -2.4375rem 0 0rem #ff8080,\n -0.32476rem -2.0625rem 0 0rem #ffed80,\n 2.1082rem -1.26585rem 0 0rem #ffed80,\n 1.41004rem -1.53985rem 0 0rem #a4ff80,\n 2.30412rem 0.85901rem 0 0rem #a4ff80, 2.08305rem 0.14233rem 0 0rem #80ffc8,\n 0.76499rem 2.33702rem 0 0rem #80ffc8, 1.18748rem 1.71734rem 0 0rem #80c8ff,\n -1.35019rem 2.0552rem 0 0rem #80c8ff,\n -0.60229rem 1.99916rem 0 0rem #a480ff,\n -2.44865rem 0.22578rem 0 0rem #a480ff,\n -1.93852rem 0.77557rem 0 0rem #ff80ed,\n -1.70323rem -1.77366rem 0 0rem #ff80ed,\n -1.81501rem -1.03204rem 0 0rem #ff8080" } } }; }), C = (0, r.ZP)("div")(() => ({ display: "flex", flexDirection: "column", position: "absolute", bottom: 0, zIndex: 2, width: "100%" })); }, 55965: (e, t, n) => { "use strict"; n.d(t, { Z: () => u }); var r = n(8226), a = n(58684), i = n(82259), o = n(77626), s = n(38459), l = n(47313), c = n(32606), d = n(46417); const u = (e) => { let { callbackFn: t, onStarted: n } = e; return ( l.useEffect(() => { n && n(); }, [n]), (0, d.jsx)(a.u_, { children: (0, d.jsxs)(a.hz, { sx: { backgroundColor: c.D.black[70], width: "min(600px, 70vw)", py: "30px" }, children: [(0, d.jsx)(a.FK, { onClick: t, children: (0, d.jsx)(r.Z, { sx: { height: 20, width: 20, mt: "5px" } }) }), (0, d.jsx)("div", { style: { height: 112 }, children: (0, d.jsx)("img", { src: (0, s.Z)("/gameframe/ziggypresent.svg"), alt: "Ziggy rewarded ad" }) }), (0, d.jsx)("h2", { style: { marginBlock: 0, fontSize: 24, fontWeight: 800, marginBottom: 16, marginTop: 20, paddingLeft: 10, lineHeight: "130%" }, children: (0, d.jsx)(o.Z, { id: "noRewarded.modal.title" }) }), (0, d.jsx)("div", { style: { display: "flex", justifyContent: "center", marginTop: 15 }, children: (0, d.jsx)(i.S, { variant: "contained", color: "purple", height: 40, style: { minWidth: "min(50vw,536px)", fontSize: 14 }, onClick: t, children: (0, d.jsx)(o.Z, { id: "noRewarded.modal.button" }) }) })] }) }) ); }; }, 9172: (e, t, n) => { "use strict"; n.d(t, { Z: () => v }); var r = n(47313), a = n(55965), i = n(46417); const o = r.lazy(() => Promise.all([n.e(8393), n.e(1750), n.e(6204)]).then(n.bind(n, 6204))), s = r.lazy(() => n.e(3452).then(n.bind(n, 73452))), l = r.lazy(() => n.e(208).then(n.bind(n, 90208))), c = r.lazy(() => n.e(3030).then(n.bind(n, 83030))), d = r.lazy(() => n.e(8736).then(n.bind(n, 68736))), u = r.lazy(() => n.e(2386).then(n.bind(n, 52386))), p = r.lazy(() => n.e(7554).then(n.bind(n, 37554))), h = r.lazy(() => n.e(1123).then(n.bind(n, 1123))), f = r.lazy(() => n.e(2633).then(n.bind(n, 52633))), m = r.lazy(() => n.e(7318).then(n.bind(n, 47318))), g = r.lazy(() => n.e(8355).then(n.bind(n, 78355))), v = (e) => { let { warning: t, close: n } = e; return (0, i.jsx)(r.Suspense, { fallback: (0, i.jsx)(i.Fragment, {}), children: (() => { if (!t) return null; switch (t) { case "fullscreen-unavailable-when-embedded": return (0, i.jsx)(c, { close: n }); case "fullscreen-unavailable-when-in-fullscreen": return (0, i.jsx)(g, { close: n }); case "unity-unavailable": return (0, i.jsx)(m, { close: n }); case "embedding-disallowed": return (0, i.jsx)(s, { close: n }); case "game-deleted": return (0, i.jsx)(d, { close: n }); case "game-unavailable": return (0, i.jsx)(u, { close: n }); case "sandboxing-disallowed": return (0, i.jsx)(f, { close: n }); case "ads-txt-missing": return (0, i.jsx)(o, { close: n }); case "external-link": return (0, i.jsx)(l, {}); case "no-rewarded-countdown": return (0, i.jsx)(a.Z, { callbackFn: () => { console.log("Callback for No Rewarded AD"); }, }); case "force-fullscreen": return (0, i.jsx)(p, { actionFn: n }); case "no-referrer": return (0, i.jsx)(h, {}); default: throw new Error(`[Warning] Unmapped warning: ${t}`); } })(), }); }; }, 30648: (e, t, n) => { "use strict"; n.d(t, { Z: () => d }); var r = n(82937), a = (n(47313), n(77626)), i = n(93825), o = n(32606), s = n(93458), l = n(46417); const c = (e) => { let { gameLink: t, target: n, linkRel: r, tracker: a, children: i } = e; return t ? (0, l.jsx)("a", { href: t, onClick: a, target: n || "_blank", rel: r, style: { textAlign: "center" }, children: i }) : (0, l.jsx)("span", { onClick: a, style: { textAlign: "center" }, children: i }); }, d = (e) => { let { gameLink: t, linkRel: n, tracker: d, target: u, subtextLabel: p, isDownloadable: h, customTitle: f, customButton: m, customThumb: g } = e; return (0, l.jsx)(l.Fragment, { children: (0, l.jsx)(c, { target: u, gameLink: t, linkRel: n, tracker: d, children: (0, l.jsxs)(s.Z, { customTitle: f, customThumb: g, children: [m || (0, l.jsx)(i.Z, { customStyle: { marginTop: 8 }, children: (0, l.jsx)(a.Z, { id: h ? "buttons.downloadNow" : "buttons.playNow" }) }), p && (0, l.jsx)(r.ZP, { item: !0, justifyContent: "center", sx: { color: o.D.white[30], fontSize: 14, pl: 2, pr: 2 }, children: (0, l.jsx)(a.Z, { id: p }) })] }) }) }); }; }, 93458: (e, t, n) => { "use strict"; n.d(t, { Z: () => p }); var r = n(47313), a = n(42379); const i = (0, a.ZP)("div")((e) => { let { theme: t } = e; return { position: "fixed", inset: 0, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", gap: t.spacing(1.5) }; }), o = (0, a.ZP)("div", { shouldForwardProp: (e) => "isMobile" !== e })((e) => { let { isMobile: t, theme: { breakpoints: n }, } = e; return { height: t ? 80 : 110, width: t ? 142 : 196, [n.down(300)]: { display: "none" }, borderRadius: 7, overflow: "hidden", WebkitMaskImage: "-webkit-radial-gradient(white, black)" }; }), s = (0, a.ZP)("div")({ fontWeight: 700, fontSize: 28, color: "#FFFFFF", textAlign: "center" }); var l = n(46745), c = n(90831), d = n(35311), u = n(46417); const p = (e) => { let { children: t, customTitle: n, customThumb: a } = e; const p = (0, c.NI)(), { isMobile: h } = r.useContext(d.Z); return (0, u.jsxs)(u.Fragment, { children: [ (() => { const { thumbnail: e, video: t } = p; return h ? (0, u.jsx)(l.Z, { thumbnail: e, addBlurredEffect: !0 }) : (0, u.jsx)(l.Z, { thumbnail: e, video: t, minVideoWidth: 0.2 * window.innerWidth, addBlurredEffect: !0 }); })(), (0, u.jsxs)(i, { children: [a || (0, u.jsx)(o, { isMobile: h, children: (0, u.jsx)(l.Z, { thumbnail: p.thumbnail }) }), n || (0, u.jsx)(s, { id: "overlayThumbnailTitle", children: p.gameName }), t] }), ], }); }; }, 57484: (e, t, n) => { "use strict"; n.d(t, { Aw: () => f, CW: () => p, sF: () => h, vN: () => c, wT: () => u }); var r = n(42379), a = n(32415), i = n(82937), o = n(17551), s = n(32606), l = n(71917); const c = (0, r.ZP)(a.Z)((e) => { let { theme: { palette: t }, } = e; return { backgroundColor: t.primary.dark, padding: 8, textAlign: "center", borderRadius: 8, transition: "all .2s ease-in-out", "&:hover": { filter: "brightness(120%)", backgroundImage: t.primary.light, "& .gameTitle": { color: "#b1c8e0" } } }; }), d = (e) => { let { palette: t } = e; return { height: 0, overflow: "hidden", paddingTop: (l.Iq.height / l.Iq.width) * 100 + "%", ...l.Eu.imagePlaceholderAnimation, position: "relative", borderRadius: 4, "& img, & video": { position: "absolute !important", top: 0, left: 0, height: "100%", width: "100%", borderRadius: 4, objectFit: "cover" } }; }, u = (0, r.ZP)(i.ZP)((e) => { let { theme: t } = e; return { ...d(t) }; }), p = (0, r.ZP)("div")({ position: "absolute", width: "100%", height: "100%", backdropFilter: "blur(8px)", backgroundColor: (0, o.Fq)(s.D.black[100], 0.8), zIndex: 2 }), h = (0, r.ZP)(i.ZP)((e) => { let { theme: { breakpoints: t }, } = e; return { zIndex: 3, pointerEvents: "none", backgroundImage: l.cz.yellowRating, width: "auto", margin: "auto", marginTop: -18, color: "white", fontWeight: 800, padding: "3px 14px", borderRadius: 28, textShadow: "0 1px 1px #d78b0f", fontSize: "5vw", [t.up("sm")]: { fontSize: "3vw" } }; }), f = (0, r.ZP)("div")((e) => { let { theme: { breakpoints: t }, } = e; return { color: "white", fontWeight: 900, fontSize: "5vw", [t.up("sm")]: { fontSize: "3vw" }, [`@media (max-height: ${l.ot.maxMobileLandscapeHeight}px)`]: { fontSize: "2vw" } }; }); }, 99187: (e, t, n) => { "use strict"; n.d(t, { Z: () => k }); var r = n(82937), a = n(47313), i = n(46604), o = n(90831), s = n(22870), l = n(18088), c = n(17140), d = n(69382), u = n(46417); const p = a.lazy(() => n.e(6012).then(n.bind(n, 56012))), h = a.lazy(() => n.e(3969).then(n.bind(n, 3969))), f = (e) => { let t, { clickable: n, returnImg: i, campaignContent: f } = e; const m = (0, o.NI)().locale; switch (m || l.ZW) { case "en_US": t = i ? (0, u.jsx)("img", { src: "https://images.crazygames.com/favicons/logo_purple_transparent_sm.png", style: { width: 90 }, alt: "CrazyGames" }) : (0, u.jsx)(p, {}); break; case "es_ES": t = (0, u.jsx)(h, {}); break; default: m === l.ZW && s.kg.warn("unsupported locale", m), (t = (0, u.jsx)(p, {})); } return (0, u.jsx)(c.Z, { clickable: n, campaignContent: f || "logo", children: (0, u.jsx)(d.rb, { container: !0, alignItems: "center", justifyContent: "center", children: (0, u.jsx)(r.ZP, { item: !0, style: { height: "100%" }, children: (0, u.jsx)(a.Suspense, { fallback: null, children: t }) }) }) }); }; var m = n(42379), g = n(46325); const v = (e, t) => { if (!e) return t ? g.AT : g.VP; }, b = (0, m.ZP)(r.ZP, { shouldForwardProp: (e) => "isTransparent" !== e && "fullHeight" !== e && "isKids" !== e })((e) => { let { isTransparent: t, fullHeight: n, isKids: r } = e; const a = r ? g.Q0 : void 0, i = r ? g.Pr : void 0; return { zIndex: 1, position: "absolute", left: 0, top: 0, right: 0, bottom: 0, overflow: "hidden", height: n ? "100vh" : "100%", width: t ? "100%" : void 0, background: v(!!r, t), backgroundImage: t ? i : a }; }), y = (0, m.ZP)(r.ZP)((e) => { let { theme: { spacing: t }, } = e; return { background: "#00000020", position: "relative", padding: t(2), textAlign: "center", fontSize: "2em", height: `calc(45px + ${t(4)})`, "& a": { position: "relative", height: "100%" } }; }); var w = n(86857), S = n(19314); const k = (e) => { let { showCrazyLogo: t, fullHeight: n, children: o, showGDPRNotice: s, isTransparent: l } = e; const c = void 0 === t || t, d = i.Z.isEmbeddedExternally(), p = (0, S.U)(); return (0, u.jsxs)(b, { container: !0, isTransparent: !!l, direction: "column", justifyContent: "space-between", wrap: "nowrap", fullHeight: !!n, isKids: p, children: [c && (0, u.jsx)(y, { item: !0, container: !0, direction: "column", justifyContent: "center", children: (0, u.jsx)(f, { clickable: d, campaignContent: "overlay-logo", returnImg: d }) }), o && (0, u.jsx)(r.ZP, { container: !0, item: !0, direction: "column", style: { flex: 1, overflow: "hidden" }, children: o }), s && (0, u.jsx)(r.ZP, { item: !0, children: (0, u.jsx)(a.Suspense, { fallback: null, children: (0, u.jsx)(w.Z, {}) }) })] }); }; }, 59111: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); const r = { theatreModeEnabled: !1, isTheatreModeSupported: !1, fullscreenFooterEnabled: !1, hideFullscreenFooter: () => {} }, a = n(47313).createContext(r); }, 77626: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); n(47313); var r = n(45675), a = n(46417); const i = (e) => (0, a.jsx)(r.cC, { ...e }); }, 93825: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); n(47313); var r = n(31080), a = n(75993), i = n(19314), o = n(46417); const s = (e) => { let { onClick: t, children: n, customStyle: s, customIcon: l } = e; const c = (0, i.U)(); return (0, o.jsxs)(r.i, { isKids: c, onClick: t, style: s, children: [n, void 0 !== l ? l : (0, o.jsx)(a.Z, {})] }); }; }, 40889: (e, t, n) => { "use strict"; n.d(t, { Z: () => l }); var r = n(47313), a = n(87308), i = n(90831), o = n(46417); const s = (0, r.lazy)(() => n.e(4168).then(n.bind(n, 64168))), l = (e) => { const t = (0, i.NI)(); return (0, a.uo)() && !t.preventBackButton ? (0, o.jsx)(r.Suspense, { fallback: null, children: (0, o.jsx)(s, { ...e }) }) : null; }; }, 79924: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(47313), a = n(38459), i = n(57484), o = n(46417); const s = (e) => { let { src: t, minWidth: n, imgStyle: s, addBlurredEffect: l, addParamWidth: c } = e; const d = c ? (0, a.Z)(t, { w: n }) : t, [u, p] = r.useState(!1); return (0, o.jsxs)("div", { style: { width: "100%", height: "100%", position: l ? "fixed" : void 0, top: l ? 0 : void 0 }, onLoad: () => p(!0), children: [l && u && (0, o.jsx)(i.CW, {}), (0, o.jsx)("img", { alt: "", src: d, style: { ...s, zIndex: 1, opacity: u ? 1 : 0 } })] }); }; }, 31080: (e, t, n) => { "use strict"; n.d(t, { i: () => o, v: () => s }); var r = n(42379), a = n(32606); const i = (e) => { let { palette: t } = e; return { color: t.primary.main, textTransform: "capitalize", fontSize: "1.3em", fontWeight: 900, cursor: "pointer", transform: "perspective(1px) translateZ(0)", transitionDuration: "0.2s" }; }, o = (0, r.ZP)("div", { shouldForwardProp: (e) => "responsive" !== e && "isKids" !== e })((e) => { let { theme: t, isKids: n } = e; const { palette: r } = t; return { ...i(t), backgroundColor: n ? r.secondary.main : a.D.brand[100], color: "#FFFFFF", fontWeight: 800, alignItems: "center", display: "inline-flex", justifyContent: "center", position: "relative", borderRadius: "80px", padding: "14px 30px", gap: "5px", [t.breakpoints.down(330)]: { padding: "8px 15px", fontSize: "1em" }, "&:hover": { transform: "scale(1.1)", transitionTimingFunction: "cubic-bezier(0.47, 2.02, 0.31, -0.36)", "& .arrow": { animation: "none" } } }; }), s = (0, r.ZP)("div", { shouldForwardProp: (e) => "responsive" !== e })((e) => { let { theme: t, responsive: n, variant: r } = e; const { breakpoints: a, palette: o } = t; return { ...i(t), padding: "24px 37px", borderRadius: 40, display: "flex", alignItems: "center", "&:hover": { transform: "scale(1.1)", transitionTimingFunction: "cubic-bezier(0.47, 2.02, 0.31, -0.36)" }, "& svg": { marginTop: 2 }, ...(n && { fontSize: "3vw", [a.up("sm")]: { fontSize: "2.2vw" }, padding: "2.5vh 3vw" }), ...("outlined" === r && { border: "2px solid #fff", background: "transparent", color: o.secondary.contrastText, "&:hover": { transform: "scale(1.1)", transitionTimingFunction: "cubic-bezier(0.47, 2.02, 0.31, -0.36)", backgroundColor: "#ffffff36", borderColor: o.secondary.contrastText, borderWidth: 2 } }), ...("contained" === r && { border: 0, backgroundColor: o.secondary.main }) }; }); }, 90831: (e, t, n) => { "use strict"; n.d(t, { Dn: () => r, Fw: () => o, NI: () => c, eE: () => a, j9: () => i, wm: () => l }); const r = "published", a = ["5.6.x", "unity2020", "unity2021", "unity2022", "unity2023"], i = ["5.4.x", ...a], o = ["5.6.x", "unity2020", "unity2021", "unity2022", "unity2023"]; let s; function l(e) { if (s) throw new Error("[GameConfig] should only be set once"); s = e; } function c() { if (!s) throw new Error("[GameConfig] is not set"); return s; } }, 47178: (e, t, n) => { "use strict"; n.d(t, { Q: () => di }); var r = n(47313), a = n(21739), i = n(7136), o = n(45675), s = n(87462), l = n(32772), c = n(30686), d = n(46417); function u(e) { const { styles: t, defaultTheme: n = {} } = e, r = "function" === typeof t ? (e) => { return t(void 0 === (r = e) || null === r || 0 === Object.keys(r).length ? n : e); var r; } : t; return (0, d.jsx)(c.xB, { styles: r }); } var p = n(63566); const h = function (e) { return (0, d.jsx)(u, (0, s.Z)({}, e, { defaultTheme: p.Z })); }, f = (e, t) => (0, s.Z)({ WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", boxSizing: "border-box", WebkitTextSizeAdjust: "100%" }, t && { colorScheme: e.palette.mode }), m = (e) => (0, s.Z)({ color: (e.vars || e).palette.text.primary }, e.typography.body1, { backgroundColor: (e.vars || e).palette.background.default, "@media print": { backgroundColor: (e.vars || e).palette.common.white } }); const g = function (e) { const t = (0, l.Z)({ props: e, name: "MuiCssBaseline" }), { children: n, enableColorScheme: a = !1 } = t; return (0, d.jsxs)(r.Fragment, { children: [ (0, d.jsx)(h, { styles: (e) => (function (e) { var t, n; let r = { html: f(e, arguments.length > 1 && void 0 !== arguments[1] && arguments[1]), "*, *::before, *::after": { boxSizing: "inherit" }, "strong, b": { fontWeight: e.typography.fontWeightBold }, body: (0, s.Z)({ margin: 0 }, m(e), { "&::backdrop": { backgroundColor: (e.vars || e).palette.background.default } }) }; const a = null == (t = e.components) || null == (n = t.MuiCssBaseline) ? void 0 : n.styleOverrides; return a && (r = [r, a]), r; })(e, a), }), n, ], }); }; var v = n(51639); const b = (0, n(98295).Z)({ key: "css", prepend: !0 }); function y(e) { const { injectFirst: t, children: n } = e; return t ? (0, d.jsx)(v.C, { value: b, children: n }) : n; } var w = n(15693), S = n(20201); const k = "function" === typeof Symbol && Symbol.for ? Symbol.for("mui.nested") : "__THEME_NESTED__"; const x = function (e) { const { children: t, theme: n } = e, a = (0, S.Z)(), i = r.useMemo(() => { const e = null === a ? n : (function (e, t) { if ("function" === typeof t) return t(e); return (0, s.Z)({}, e, t); })(a, n); return null != e && (e[k] = null !== a), e; }, [n, a]); return (0, d.jsx)(w.Z.Provider, { value: i, children: t }); }; var C = n(86728); function E(e) { const t = (0, C.Z)(); return (0, d.jsx)(v.T.Provider, { value: "object" === typeof t ? t : {}, children: e.children }); } const I = function (e) { const { children: t, theme: n } = e; return (0, d.jsx)(x, { theme: n, children: (0, d.jsx)(E, { children: t }) }); }; var P = n(22870), A = n(94891), T = n(48300); let R = null; const _ = function () { return R || (R = (0, T.ve)("https://imasdk.googleapis.com/js/sdkloader/ima3.js")), R; }; var Z = n(90831); const z = function () { return (0, Z.NI)().forceTestAds || "true" === new URL(window.location.href).searchParams.get("testAds"); }; var L = n(66501); function M() { switch (L.q) { case "local": case "dev": return "https://rafvertizing.dev-crazygames.be/rafvertizing-v8.js"; case "prod": return "https://pafvertizing.crazygames.com/rafvertizing-v8.js"; default: return P.kg.error(`[Rafvertizing] Unexpected appStage ${L.q}`), "https://pafvertizing.crazygames.com/rafvertizing-v8.js"; } } let F; function D() { return window.CrazygamesAds ? Promise.resolve() : F || ((F = (0, T.ve)(M()).then(() => { window.CrazygamesAds.initAds(); })), F); } var N = n(54833), j = n(50009); function O(e) { if (0 === e.length) throw new Error("[getRandomWeightedElement] Expected list to be not empty"); const t = e.reduce((e, t) => e + t.chance, 0); if (t <= 0) throw new Error("[getRandomWeightedElement] expected chances to be higher than 0"); let n = Math.random() * t; for (const r of e) { if (n < r.chance) return r.value; n -= r.chance; } return e[e.length - 1].value; } var B = n(87308), U = n(46604), $ = n(18088); function G(e) { return ("desktop" === e || "tablet" === e) && window.innerHeight > 500 && window.innerWidth > 1e3; } function V(e) { let t = []; switch (e) { case "mobile": t = [ [300, 250], [320, 50], ]; break; case "desktop": case "tablet": (t = [ [300, 250], [728, 90], [336, 280], ]), G(e) && t.push([970, 250]); } return t; } function q(e) { const t = { desktop: { slotId: "/1004887/ROS-Intermediate-Desktop", code: "div-gpt-ad-1593517925540-0", sizes: V("desktop") }, mobile: { slotId: "/1004887/ROS-Intermediate-Mobile", code: "div-gpt-ad-1593517956614-0", sizes: V("mobile") }, tablet: { slotId: "/1004887/ROS-Intermediate-Tablet", code: "div-gpt-ad-1593517980869-0", sizes: V("tablet") } }; switch (e) { case "desktop": default: return t.desktop; case "tablet": return t.tablet; case "mobile": return t.mobile; } } const W = q; class H extends Error { constructor(e, t) { super(t), (this.id = void 0), (this.id = e); } } const K = { "728x90": [ { slotId: "/1004887/ROS-In-Game-728x90-1", code: "/1004887/ROS-In-Game-728x90-1", sizes: [[728, 90]] }, { slotId: "/1004887/ROS-In-Game-728x90-2", code: "/1004887/ROS-In-Game-728x90-2", sizes: [[728, 90]] }, ], "300x250": [ { slotId: "/1004887/ROS-In-Game-300x250-1", code: "/1004887/ROS-In-Game-300x250-1", sizes: [[300, 250]] }, { slotId: "/1004887/ROS-In-Game-300x250-2", code: "/1004887/ROS-In-Game-300x250-2", sizes: [[300, 250]] }, ], "320x50": [ { slotId: "/1004887/ROS-In-Game-320x50-1", code: "/1004887/ROS-In-Game-320x50-1", sizes: [[320, 50]] }, { slotId: "/1004887/ROS-In-Game-320x50-2", code: "/1004887/ROS-In-Game-320x50-2", sizes: [[320, 50]] }, ], "468x60": [ { slotId: "/1004887/ROS-In-Game-468x60-1", code: "/1004887/ROS-In-Game-468x60-1", sizes: [[468, 60]] }, { slotId: "/1004887/ROS-In-Game-468x60-2", code: "/1004887/ROS-In-Game-468x60-2", sizes: [[468, 60]] }, ], "320x100": [ { slotId: "/1004887/ROS-In-Game-320x100-1", code: "/1004887/ROS-In-Game-320x100-1", sizes: [ [320, 100], [320, 50], ], }, { slotId: "/1004887/ROS-In-Game-320x100-2", code: "/1004887/ROS-In-Game-320x100-2", sizes: [ [320, 100], [320, 50], ], }, ], }; function Y(e) { return e.split("x").map(parseInt); } const Q = function (e) { return K[e]; }; var X = n(69121), J = n(19314); const ee = class { constructor() { this.bidderCode = void 0; } getVideoAd(e, t, n) { return t ? this.getInternalVideoAd(e, n) : this.getExternalVideoAd(e, n); } getInternalVideoAd(e, t) { switch (e) { case "preroll": return this.getInternalPreroll(t); case "rewarded": return this.getInternalRewarded(t); default: return this.getInternalMidroll(t); } } getExternalVideoAd(e, t) { switch (e) { case "preroll": return this.getExternalPreroll(t); case "rewarded": return this.getExternalRewarded(t); default: return this.getExternalMidroll(t); } } getIngameBanner(e, t, n) { if (!n && !this.canRunOnExternalIngameBanner()) return [this.disabledParams(), this.disabledParams()]; switch (e) { case "300x250": return this.getIngameBanners300x250(t); case "320x100": return this.getIngameBanners320x100(t); case "320x50": return this.getIngameBanners320x50(t); case "468x60": return this.getIngameBanners468x60(t); case "728x90": return this.getIngameBanners728x90(t); } } getInternalPreroll(e) { return { skippable: this.getInternalSkippablePreroll(e), nonSkippable: this.getInternalNonSkippablePreroll(e) }; } getInternalSkippablePreroll(e) { return this.disabledParams(); } getInternalNonSkippablePreroll(e) { return this.disabledParams(); } getInternalMidroll(e) { return { skippable: this.getInternalSkippableMidroll(e), nonSkippable: this.getInternalNonSkippableMidroll(e) }; } getInternalSkippableMidroll(e) { return this.disabledParams(); } getInternalNonSkippableMidroll(e) { return this.disabledParams(); } getInternalRewarded(e) { return { skippable: this.getInternalSkippableRewarded(e), nonSkippable: this.getInternalNonSkippableRewarded(e) }; } getInternalSkippableRewarded(e) { return this.disabledParams(); } getInternalNonSkippableRewarded(e) { return this.disabledParams(); } getExternalPreroll(e) { return { skippable: this.getExternalSkippablePreroll(e), nonSkippable: this.getExternalNonSkippablePreroll(e) }; } getExternalSkippablePreroll(e) { return this.disabledParams(); } getExternalNonSkippablePreroll(e) { return this.disabledParams(); } getExternalMidroll(e) { return { skippable: this.getExternalSkippableMidroll(e), nonSkippable: this.getExternalNonSkippableMidroll(e) }; } getExternalSkippableMidroll(e) { return this.disabledParams(); } getExternalNonSkippableMidroll(e) { return this.disabledParams(); } getExternalRewarded(e) { return { skippable: this.getExternalSkippableRewarded(e), nonSkippable: this.getExternalNonSkippableRewarded(e) }; } getExternalSkippableRewarded(e) { return this.disabledParams(); } getExternalNonSkippableRewarded(e) { return this.disabledParams(); } getIngameBanners728x90(e) { return [this.disabledParams(), this.disabledParams()]; } getIngameBanners300x250(e) { return [this.disabledParams(), this.disabledParams()]; } getIngameBanners320x50(e) { return [this.disabledParams(), this.disabledParams()]; } getIngameBanners468x60(e) { return [this.disabledParams(), this.disabledParams()]; } getIngameBanners320x100(e) { return [this.disabledParams(), this.disabledParams()]; } getResponsiveIngameBanners(e, t) { return [this.disabledParams(), this.disabledParams()]; } getFallbackBanner(e, t) { return t ? this.getFallbackBannerInternal(e) : this.getFallbackBannerExternal(e); } getFallbackBannerInternal(e) { return this.disabledParams(); } getFallbackBannerExternal(e) { return this.disabledParams(); } canRunOnExternalIngameBanner() { return !1; } disabledParams() { return { bidder: this.bidderCode, disabled: !0 }; } nonGoogleDisabled() { return (0, J.U)() || this.inDisabledCountry(); } inDisabledCountry() { const { countryCode: e } = (0, X.bG)(); return !!e && ["RU", "BY", "VE"].includes(e); } }; const te = class extends ee { constructor() { super(...arguments), (this.bidderCode = "amazon"); } getInternalSkippablePreroll() { return this.generateVideo("ROS_Video_Preroll_Internal_Skippable"); } getInternalNonSkippablePreroll() { return this.generateVideo("ROS_Video_Preroll_Internal_NonSkippable"); } getInternalSkippableMidroll() { return this.generateVideo("ROS_Video_Midroll_Internal_Skippable"); } getInternalNonSkippableMidroll() { return this.generateVideo("ROS_Video_Midroll_Internal_NonSkippable"); } getInternalNonSkippableRewarded() { return this.generateVideo("ROS_Video_Rewarded_Internal_NonSkippable"); } getIngameBanners728x90() { return this.generateIngameBanner(); } getIngameBanners300x250() { return this.generateIngameBanner(); } getIngameBanners320x50() { return this.generateIngameBanner(); } getIngameBanners468x60() { return this.generateIngameBanner(); } getIngameBanners320x100() { return this.generateIngameBanner(); } getResponsiveIngameBanners() { return this.generateIngameBanner(); } getFallbackBannerInternal(e) { return this.generateBanner(); } generateIngameBanner() { return [this.generateBanner(), this.generateBanner()]; } generateVideo(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), slotID: e }; } generateBanner() { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled() }; } }; const ne = class extends ee { constructor() { super(...arguments), (this.data = void 0); } getInternalSkippablePreroll() { const e = this.data.internalSkippablePreroll; return this.generateVideoFromData(e); } getInternalNonSkippablePreroll() { const e = this.data.internalNonSkippablePreroll; return this.generateVideoFromData(e); } getInternalSkippableMidroll() { const e = this.data.internalSkippableMidroll; return this.generateVideoFromData(e); } getInternalNonSkippableMidroll() { const e = this.data.internalNonSkippableMidroll; return this.generateVideoFromData(e); } getInternalNonSkippableRewarded() { const e = this.data.internalNonSkippableRewarded; return this.generateVideoFromData(e); } getInternalSkippableRewarded() { const e = this.data.internalSkippableRewarded; return this.generateVideoFromData(e); } getExternalSkippablePreroll() { const e = this.data.externalSkippablePreroll; return this.generateVideoFromData(e); } getExternalNonSkippablePreroll() { const e = this.data.externalNonSkippablePreroll; return this.generateVideoFromData(e); } getExternalSkippableMidroll() { const e = this.data.externalSkippableMidroll; return this.generateVideoFromData(e); } getExternalNonSkippableMidroll() { const e = this.data.externalNonSkippableMidroll; return this.generateVideoFromData(e); } getExternalNonSkippableRewarded() { const e = this.data.externalNonSkippableRewarded; return this.generateVideoFromData(e); } getExternalSkippableRewarded() { const e = this.data.externalSkippableRewarded; return this.generateVideoFromData(e); } getIngameBanners728x90(e) { const t = this.data.ingameBanners728x90; return this.generateIngameBannersFromData(t); } getIngameBanners300x250(e) { const t = this.data.ingameBanners300x250; return this.generateIngameBannersFromData(t); } getIngameBanners320x50(e) { const t = this.data.ingameBanners320x50; return this.generateIngameBannersFromData(t); } getIngameBanners468x60(e) { const t = this.data.ingameBanners468x60; return this.generateIngameBannersFromData(t); } getIngameBanners320x100(e) { const t = this.data.ingameBanners320x100; return this.generateIngameBannersFromData(t); } getResponsiveIngameBanners(e, t) { const n = this.data.responsiveIngameBanners; return this.generateIngameBannersFromData(n); } getFallbackBannerInternal(e) { const t = this.data.fallbackBannerInternal; return this.generateBannerFromData(t); } getFallbackBannerExternal(e) { const t = this.data.fallbackBannerExternal; return this.generateBannerFromData(t); } generateIngameBannersFromData(e) { return e ? [this.generateBanner(e[0]), this.generateBanner(e[1])] : [this.disabledParams(), this.disabledParams()]; } generateBannerFromData(e) { return e ? this.generateBanner(e) : this.disabledParams(); } generateVideoFromData(e) { return e ? this.generateVideo(e) : this.disabledParams(); } }; const re = class extends ne { constructor() { super(...arguments), (this.bidderCode = "appnexus"), (this.data = { internalSkippablePreroll: { placementId: "17418831" }, internalNonSkippablePreroll: { placementId: "13884619" }, internalSkippableMidroll: { placementId: "17418837" }, internalNonSkippableMidroll: { placementId: "13884627" }, internalSkippableRewarded: { placementId: "21406756" }, internalNonSkippableRewarded: { placementId: "21305889" }, ingameBanners728x90: [{ placementId: "20181898" }, { placementId: "20181901" }], ingameBanners300x250: [{ placementId: "20181905" }, { placementId: "20181910" }], ingameBanners320x50: [{ placementId: "20181920" }, { placementId: "20181922" }], ingameBanners468x60: [{ placementId: "20522407" }, { placementId: "20522413" }], ingameBanners320x100: [{ placementId: "20522381" }, { placementId: "20522397" }], responsiveIngameBanners: [{ placementId: "21229674" }, { placementId: "21229687" }] }); } getFallbackBannerInternal(e) { switch (e) { case "mobile": return this.generateBanner({ placementId: "19614533" }); case "tablet": return this.generateBanner({ placementId: "19614534" }); default: return this.generateBanner({ placementId: "19614529" }); } } generateBanner(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), placementId: e.placementId }; } generateVideo(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), placementId: e.placementId }; } }; const ae = class extends ne { constructor() { super(...arguments), (this.bidderCode = "ix"), (this.data = { ingameBanners728x90: [ { siteId: "575443", sizes: [[728, 90]] }, { siteId: "575444", sizes: [[728, 90]] }, ], ingameBanners300x250: [ { siteId: "575445", sizes: [[300, 250]] }, { siteId: "575446", sizes: [[300, 250]] }, ], ingameBanners320x50: [ { siteId: "575449", sizes: [[320, 50]] }, { siteId: "575450", sizes: [[320, 50]] }, ], ingameBanners468x60: [ { siteId: "593008", sizes: [[468, 60]] }, { siteId: "593009", sizes: [[468, 60]] }, ], ingameBanners320x100: [ { siteId: "593006", sizes: [ [320, 100], [320, 50], ], }, { siteId: "593007", sizes: [ [320, 100], [320, 50], ], }, ], internalNonSkippablePreroll: { siteId: "659157" }, internalNonSkippableMidroll: { siteId: "659155" }, internalNonSkippableRewarded: { siteId: "659160" }, internalSkippablePreroll: { siteId: "659158" }, internalSkippableMidroll: { siteId: "659156" }, internalSkippableRewarded: { siteId: "659159" }, }); } getVideoAd(e, t, n) { return "mobile" === n || "tablet" === n ? { skippable: this.disabledParams(), nonSkippable: this.disabledParams() } : super.getVideoAd(e, t, n); } getResponsiveIngameBanners(e) { return [this.generateBanner({ siteId: "641727", sizes: e }), this.generateBanner({ siteId: "641278", sizes: e })]; } getFallbackBannerInternal(e) { const t = [ [300, 250], [728, 90], [336, 280], ]; switch (e) { case "mobile": return this.generateBanner({ siteId: "538442", sizes: t }); case "tablet": return this.generateBanner({ siteId: "538443", sizes: t }); default: return this.generateBanner({ siteId: "538441", sizes: t }); } } generateBanner(e) { return { bidder: this.bidderCode, siteId: e.siteId, sizes: e.sizes, disabled: this.nonGoogleDisabled() }; } generateVideo(e) { return { bidder: this.bidderCode, siteId: e.siteId, sizes: [[640, 480]], disabled: this.nonGoogleDisabled() }; } }; const ie = class extends ne { constructor() { super(...arguments), (this.bidderCode = "pubmatic"), (this.data = { internalNonSkippablePreroll: { adSlot: "ROS-Video-Preroll-Internal" }, internalNonSkippableMidroll: { adSlot: "ROS-Video-Midroll-Internal" }, internalNonSkippableRewarded: { adSlot: "ROS-Video-Rewarded-Internal" }, internalSkippablePreroll: { adSlot: "ROS-Video-Preroll-Internal-Skippable" }, internalSkippableMidroll: { adSlot: "ROS-Video-Midroll-Internal-Skippable" }, internalSkippableRewarded: { adSlot: "ROS-Video-Rewarded-Internal-Skippable" }, ingameBanners728x90: [{ adSlot: "ROS-In-Game-728x90-1" }, { adSlot: "ROS-In-Game-728x90-2" }], ingameBanners300x250: [{ adSlot: "ROS-In-Game-300x250-1" }, { adSlot: "ROS-In-Game-300x250-2" }], ingameBanners320x50: [{ adSlot: "ROS-In-Game-320x50-1" }, { adSlot: "ROS-In-Game-320x50-2" }], ingameBanners468x60: [{ adSlot: "ROS-In-Game-468x60-1" }, { adSlot: "ROS-In-Game-468x60-2" }], ingameBanners320x100: [{ adSlot: "ROS-In-Game-320x100-1" }, { adSlot: "ROS-In-Game-320x100-2" }], responsiveIngameBanners: [{ adSlot: "ROS-In-Game-Multi-1" }, { adSlot: "ROS-In-Game-Multi-2" }] }); } getFallbackBannerInternal(e) { switch (e) { case "mobile": return this.generateBanner({ adSlot: "ROS-Intermediate-Mobile" }); case "tablet": return this.generateBanner({ adSlot: "ROS-Intermediate-Tablet" }); default: return this.generateBanner({ adSlot: "ROS-Intermediate-Desktop" }); } } generateBanner(e) { return { bidder: this.bidderCode, adSlot: e.adSlot, addSizes: !0, disabled: this.nonGoogleDisabled() }; } generateVideo(e) { return { bidder: this.bidderCode, adSlot: e.adSlot, addSizes: !1, disabled: this.nonGoogleDisabled() }; } }; const oe = class extends ne { constructor() { super(...arguments), (this.bidderCode = "rubicon"), (this.data = { internalNonSkippablePreroll: { zoneId: "1043234", sizes: [201] }, internalNonSkippableMidroll: { zoneId: "1043238", sizes: [204] }, internalNonSkippableRewarded: { zoneId: "2018912", sizes: [204] }, internalSkippablePreroll: { zoneId: "2252008", sizes: [201] }, internalSkippableMidroll: { zoneId: "2252006", sizes: [204] }, internalSkippableRewarded: { zoneId: "2252004", sizes: [204] }, ingameBanners728x90: [ { zoneId: "1835044", sizes: [2] }, { zoneId: "1835046", sizes: [2] }, ], ingameBanners300x250: [ { zoneId: "1835048", sizes: [15] }, { zoneId: "1835050", sizes: [15] }, ], ingameBanners320x50: [ { zoneId: "1835052", sizes: [43] }, { zoneId: "1835054", sizes: [43] }, ], ingameBanners468x60: [ { zoneId: "1878776", sizes: [1] }, { zoneId: "1878778", sizes: [1] }, ], ingameBanners320x100: [ { zoneId: "1878768", sizes: [43, 117] }, { zoneId: "1878772", sizes: [43, 117] }, ], responsiveIngameBanners: [{ zoneId: "2006226" }, { zoneId: "2006228" }], }); } getFallbackBannerInternal(e) { const t = [15, 16, 2]; G(e) && t.push(57); switch (e) { case "mobile": return this.generateBanner({ zoneId: "1764960", sizes: t }); case "tablet": return this.generateBanner({ zoneId: "1764962", sizes: t }); default: return this.generateBanner({ zoneId: "1764952", sizes: t }); } } generateBanner(e) { return { bidder: this.bidderCode, zoneId: e.zoneId, sizes: e.sizes, position: "atf", disabled: this.nonGoogleDisabled() }; } generateVideo(e) { return { bidder: this.bidderCode, zoneId: e.zoneId, language: this.getLocale(), sizes: e.sizes, position: "atf", disabled: this.nonGoogleDisabled() }; } getLocale() { const e = (0, Z.NI)(); return (0, $.xz)(e.locale || $.ZW); } }; const se = class extends ne { constructor() { super(...arguments), (this.bidderCode = "triplelift"), (this.data = { internalSkippablePreroll: { inventoryCode: "ROS-Video-Preroll-Internal-Skippable" }, internalNonSkippablePreroll: { inventoryCode: "ROS-Video-Preroll-Internal" }, internalSkippableMidroll: { inventoryCode: "ROS-Video-Midroll-Internal-Skippable" }, internalNonSkippableMidroll: { inventoryCode: "ROS-Video-Midroll-Internal" }, internalNonSkippableRewarded: { inventoryCode: "ROS-Video-Rewarded-Internal" }, ingameBanners728x90: [{ inventoryCode: "CrazyGames_ROS_In_Game_728x90_1" }, { inventoryCode: "CrazyGames_ROS_In_Game_728x90_2" }], ingameBanners300x250: [{ inventoryCode: "CrazyGames_ROS_In_Game_300x250_1" }, { inventoryCode: "CrazyGames_ROS_In_Game_300x250_2" }], ingameBanners468x60: [{ inventoryCode: "CrazyGames_ROS_In_Game_468x60_1" }, { inventoryCode: "CrazyGames_ROS_In_Game_468x60_2" }], responsiveIngameBanners: [{ inventoryCode: "ROS-In-Game-Multi-1" }, { inventoryCode: "ROS-In-Game-Multi-2" }] }); } getFallbackBannerInternal(e) { switch (e) { case "mobile": return this.generateBanner({ inventoryCode: "CrazyGames_Intermediate_Mobile" }); case "tablet": return this.generateBanner({ inventoryCode: "CrazyGames_Intermediate_Tablet" }); default: return this.generateBanner({ inventoryCode: "CrazyGames_Intermediate_Desktop" }); } } generateBanner(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), inventoryCode: e.inventoryCode }; } generateVideo(e) { return { bidder: this.bidderCode, inventoryCode: e.inventoryCode, disabled: this.nonGoogleDisabled() }; } }; const le = class extends ne { constructor() { super(...arguments), (this.bidderCode = "google"), (this.data = { internalSkippablePreroll: {}, internalSkippableMidroll: {}, internalSkippableRewarded: {}, internalNonSkippableMidroll: {}, internalNonSkippablePreroll: {}, internalNonSkippableRewarded: {}, externalSkippablePreroll: {}, externalSkippableMidroll: {}, externalSkippableRewarded: {}, externalNonSkippableRewarded: {}, externalNonSkippableMidroll: {}, externalNonSkippablePreroll: {}, ingameBanners728x90: [{}, {}], ingameBanners300x250: [{}, {}], ingameBanners320x50: [{}, {}], ingameBanners468x60: [{}, {}], ingameBanners320x100: [{}, {}], responsiveIngameBanners: [{}, {}], fallbackBannerInternal: {}, fallbackBannerExternal: {} }); } canRunOnExternalIngameBanner() { return !0; } generateBanner(e) { return { bidder: this.bidderCode }; } generateVideo(e) { return { bidder: this.bidderCode }; } }, ce = [ { width: 970, height: 90 }, { width: 320, height: 50 }, { width: 160, height: 600 }, { width: 336, height: 280 }, { width: 728, height: 90 }, { width: 300, height: 600 }, { width: 468, height: 60 }, { width: 970, height: 250 }, { width: 300, height: 250 }, { width: 250, height: 250 }, { width: 120, height: 600 }, ], de = ["/1004887/ROS-In-Game-Multi-1", "/1004887/ROS-In-Game-Multi-2"]; var ue = n(74082); const pe = "utm_campaign", he = "AD_CAMPAIGN", fe = "ad_group", me = "AD_GROUP", ge = "AD_GROUP_DATE"; let ve = null; function be() { return !!we(); } function ye() { const e = ue.m.Instance.getItem(ge); if (!e) return !1; return !(Date.now() - Number(e) <= 23328e6) && (ue.m.Instance.removeItem(he), ue.m.Instance.removeItem(me), ue.m.Instance.removeItem(ge), !0); } function we() { if (null === ve) { if (ye()) return void (ve = void 0); ve = ue.m.Instance.getItem(he) || void 0; } return ve; } function Se(e) { ue.m.Instance.setItem(he, e), (ve = e); } let ke = null; function xe(e) { const t = Date.now(); ue.m.Instance.setItem(me, e), ue.m.Instance.setItem(ge, `${t}`), (ke = { adGroup: e, date: t }); } function Ce() { if (null === ke) { if (ye()) return void (ke = void 0); const e = ue.m.Instance.getItem(me); if (e) { const t = ue.m.Instance.getItem(ge); ke = { adGroup: e, date: Number(t) || Date.now() }; } else ke = void 0; } return ke; } const Ee = class extends ne { constructor() { super(...arguments), (this.bidderCode = "sharethrough"), (this.data = { ingameBanners728x90: [{ pkey: "7d3OawTe7kpKGvWTurfj6je7" }, { pkey: "iqQXz2lVfooxHdn56Qgg7k4b" }], ingameBanners300x250: [{ pkey: "DQKqO1F2sBqDJT0hBOhhjSeY" }, { pkey: "EW6yg9e9v2teCuy9qwfTLG4r" }], ingameBanners320x50: [{ pkey: "n8UAQ0XpuGUbqbv2vJNRnURk" }, { pkey: "Z6lKoPsDAg14fgeQNcB75bij" }], ingameBanners468x60: [{ pkey: "vINXNi0taO6VMtw9xawMx03v" }, { pkey: "w7WjGjOBwmBu0JqHhy0GqS90" }], ingameBanners320x100: [{ pkey: "WbVo63D5DSNRPhx5ebc6siMT" }, { pkey: "KOcR8lRNxiKqVxzInEQz2quc" }], internalSkippableMidroll: { pkey: "92l5sLd1mrcADyFmhtMsYI8S" }, internalNonSkippableMidroll: { pkey: "IyoTD4PHY5YWdcqdUIfKeJJk" }, internalSkippablePreroll: { pkey: "RmnByrpfxN6Cqv0MBYTSu9qd" }, internalNonSkippablePreroll: { pkey: "j9ljAo9NMJ0BwpW5XNKDi55D" }, internalSkippableRewarded: { pkey: "Mnsh8RptW3Hm0BaeYOlc3D9U" }, internalNonSkippableRewarded: { pkey: "D7tFv1DbbIOGQMQpbmVpKvYB" } }); } getFallbackBannerInternal(e) { switch (e) { case "mobile": return this.generateBanner({ pkey: "nMY6KS0vFQ7wvIyvR0SEumQM" }); case "tablet": return this.generateBanner({ pkey: "mAAQN0dRx3s6kYy4nS2BcwYw" }); default: return this.generateBanner({ pkey: "XVptOnCjuUxRI4gNq4BlaqHB" }); } } generateBanner(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), pkey: e.pkey }; } generateVideo(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), pkey: e.pkey }; } }; var Ie = n(4774); const Pe = class extends ee { constructor() { super(...arguments), (this.bidderCode = "venatus"); } getInternalSkippablePreroll(e) { return "desktop" === e ? this.generateVideo("615ea07bc384386460041a7d") : this.generateVideo("615ea17060e39a79da567022"); } getInternalSkippableMidroll(e) { return "desktop" === e ? this.generateVideo("615ea07bc384386460041a7d") : this.generateVideo("615ea17060e39a79da567022"); } getInternalSkippableRewarded(e) { return "desktop" === e ? this.generateVideo("615ea1a328c6bc40d023dd54") : this.generateVideo("615ea187019767683170b4da"); } generateVideo(e) { return { bidder: this.bidderCode, AV_CHANNELID: e, disabled: this.nonGoogleDisabled() }; } }; var Ae = n(93601), Te = n(5025), Re = n(34800); function _e(e) { (0, Re.Z)(1, arguments); var t = (0, Ae.Z)(e); return t.setHours(0, 0, 0, 0), t; } var Ze = 864e5; function ze(e, t) { (0, Re.Z)(2, arguments); var n = _e(e), r = _e(t), a = n.getTime() - (0, Te.Z)(n), i = r.getTime() - (0, Te.Z)(r); return Math.round((a - i) / Ze); } function Le(e, t) { var n = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds(); return n < 0 ? -1 : n > 0 ? 1 : n; } function Me(e, t) { (0, Re.Z)(2, arguments); var n = (0, Ae.Z)(e), r = (0, Ae.Z)(t), a = Le(n, r), i = Math.abs(ze(n, r)); n.setDate(n.getDate() - a * i); var o = Number(Le(n, r) === -a), s = a * (i - o); return 0 === s ? 0 : s; } var Fe = { ceil: Math.ceil, round: Math.round, floor: Math.floor, trunc: function (e) { return e < 0 ? Math.ceil(e) : Math.floor(e); }, }; function De(e) { return e ? Fe[e] : Fe.trunc; } var Ne = n(52797), je = n(25947), Oe = n(63366), Be = n(83061), Ue = n(21921), $e = n(28170), Ge = n(42379), Ve = n(32298); function qe(e) { return (0, Ve.Z)("MuiCircularProgress", e); } (0, n(77430).Z)("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]); const We = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"]; let He, Ke, Ye, Qe, Xe = (e) => e; const Je = 44, et = (0, c.F4)( He || (He = Xe` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `) ), tt = (0, c.F4)( Ke || (Ke = Xe` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `) ), nt = (0, Ge.ZP)("span", { name: "MuiCircularProgress", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, t[n.variant], t[`color${(0, $e.Z)(n.color)}`]]; }, })( (e) => { let { ownerState: t, theme: n } = e; return (0, s.Z)({ display: "inline-block" }, "determinate" === t.variant && { transition: n.transitions.create("transform") }, "inherit" !== t.color && { color: (n.vars || n).palette[t.color].main }); }, (e) => { let { ownerState: t } = e; return ( "indeterminate" === t.variant && (0, c.iv)( Ye || (Ye = Xe` animation: ${0} 1.4s linear infinite; `), et ) ); } ), rt = (0, Ge.ZP)("svg", { name: "MuiCircularProgress", slot: "Svg", overridesResolver: (e, t) => t.svg })({ display: "block" }), at = (0, Ge.ZP)("circle", { name: "MuiCircularProgress", slot: "Circle", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.circle, t[`circle${(0, $e.Z)(n.variant)}`], n.disableShrink && t.circleDisableShrink]; }, })( (e) => { let { ownerState: t, theme: n } = e; return (0, s.Z)({ stroke: "currentColor" }, "determinate" === t.variant && { transition: n.transitions.create("stroke-dashoffset") }, "indeterminate" === t.variant && { strokeDasharray: "80px, 200px", strokeDashoffset: 0 }); }, (e) => { let { ownerState: t } = e; return ( "indeterminate" === t.variant && !t.disableShrink && (0, c.iv)( Qe || (Qe = Xe` animation: ${0} 1.4s ease-in-out infinite; `), tt ) ); } ), it = r.forwardRef(function (e, t) { const n = (0, l.Z)({ props: e, name: "MuiCircularProgress" }), { className: r, color: a = "primary", disableShrink: i = !1, size: o = 40, style: c, thickness: u = 3.6, value: p = 0, variant: h = "indeterminate" } = n, f = (0, Oe.Z)(n, We), m = (0, s.Z)({}, n, { color: a, disableShrink: i, size: o, thickness: u, value: p, variant: h }), g = ((e) => { const { classes: t, variant: n, color: r, disableShrink: a } = e, i = { root: ["root", n, `color${(0, $e.Z)(r)}`], svg: ["svg"], circle: ["circle", `circle${(0, $e.Z)(n)}`, a && "circleDisableShrink"] }; return (0, Ue.Z)(i, qe, t); })(m), v = {}, b = {}, y = {}; if ("determinate" === h) { const e = 2 * Math.PI * ((Je - u) / 2); (v.strokeDasharray = e.toFixed(3)), (y["aria-valuenow"] = Math.round(p)), (v.strokeDashoffset = `${(((100 - p) / 100) * e).toFixed(3)}px`), (b.transform = "rotate(-90deg)"); } return (0, d.jsx)(nt, (0, s.Z)({ className: (0, Be.Z)(g.root, r), style: (0, s.Z)({ width: o, height: o }, b, c), ownerState: m, ref: t, role: "progressbar" }, y, f, { children: (0, d.jsx)(rt, { className: g.svg, ownerState: m, viewBox: "22 22 44 44", children: (0, d.jsx)(at, { className: g.circle, style: v, ownerState: m, cx: Je, cy: Je, r: (Je - u) / 2, fill: "none", strokeWidth: u }) }) })); }); var ot = n(82937), st = n(16157), lt = n(85541); const ct = { "@keyframes bob": { "0%": { transform: "translate(0px, 0px)" }, "50%": { transform: "translate(0px, 10.5px)" }, "100%": { transform: "translate(0px, 0px)" } } }, dt = (0, Ge.ZP)("a")({ textDecoration: "none" }), ut = r.memo((e) => { let { clickUrl: t, customSx: n } = e; const r = (0, d.jsx)(st.Z, { sx: { ...ct, ...n }, children: (0, d.jsx)(lt.Z, { viewBox: "0 0 46 50", sx: { width: 40, height: 40, animation: "bob 800ms linear infinite normal forwards" }, shapeRendering: "geometricPrecision", textRendering: "geometricPrecision", children: (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M39.9436 1.74993C39.685 1.46063 39.3511 1.33714 38.9704 1.33714L38.9668 1.35126C37.5519 1.35126 35.4655 3.05179 34.004 4.4348C30.9264 2.96006 27.145 2.2368 22.552 2.2368C17.959 2.2368 14.1776 2.96006 11.1036 4.43127C9.64206 3.04826 7.55563 1.34773 6.14434 1.34773C5.76009 1.34773 5.42971 1.47121 5.17116 1.76051C2.97341 4.23723 2.76513 10.1679 2.84414 13.5831C1.853 16.2504 1.35025 19.3692 1.35025 22.9325C1.35025 30.4191 3.53362 35.9653 7.83215 39.4334C10.7302 41.7655 14.5116 43.1097 19.3308 43.5119C19.1291 43.6103 18.9246 43.7083 18.7177 43.8075C18.3463 43.9855 17.9671 44.1673 17.5819 44.3621L15.8367 45.2018L14.8455 45.6781C14.5704 45.8188 14.2933 45.9551 14.013 46.0931C13.3089 46.4395 12.5847 46.7959 11.8218 47.2552L11.5597 47.3892C11.4843 47.4421 11.4161 47.5303 11.4017 47.6327C11.3658 47.8232 11.4986 48.0031 11.6926 48.0313C11.996 48.0753 12.2985 48.1241 12.6008 48.1729C13.2681 48.2806 13.935 48.3883 14.6121 48.4441L15.3483 48.5253C15.5925 48.55 15.8331 48.5711 16.0845 48.5852L17.5604 48.6664C17.7902 48.6734 18.0201 48.6734 18.2499 48.6734C19.9987 48.6734 21.7548 48.557 23.4929 48.2889C25.4608 47.996 27.3964 47.4563 29.253 46.7048C31.106 45.9533 32.8728 44.9725 34.4744 43.7835C37.6489 41.3597 40.1447 38.0998 41.6278 34.4694C42.1701 33.1534 42.5795 31.788 42.8668 30.4015C43.4557 28.1753 43.7537 25.6845 43.7537 22.9255C43.7537 19.3727 43.2546 16.2609 42.267 13.5937C42.3496 10.182 42.1449 4.23017 39.9436 1.74993ZM33.7454 2.83305C35.8857 0.927886 37.6022 0 38.9704 0C39.7712 0 40.4607 0.299887 40.9743 0.874965C43.3156 3.51044 43.7214 9.07776 43.6388 13.3785C44.6228 16.141 45.122 19.3515 45.122 22.9255C45.122 25.7585 44.8131 28.3764 44.199 30.7014C43.883 32.1973 43.4449 33.6332 42.8955 34.9633C41.3082 38.8477 38.6867 42.2594 35.3003 44.8419C33.6269 46.0838 31.7703 47.1246 29.7773 47.9325C27.7842 48.7369 25.7409 49.2979 23.7119 49.5978C21.9918 49.8659 20.1567 50 18.2571 50C18.0201 50 17.7794 50 17.5424 49.9929H17.4886L16.0126 49.9118C15.7397 49.8977 15.474 49.8765 15.201 49.8448L14.4828 49.7671C13.7915 49.7105 13.1226 49.6037 12.4731 49.4999C12.4343 49.4937 12.3956 49.4875 12.3569 49.4814L12.355 49.4811C12.0683 49.4353 11.7817 49.3895 11.5058 49.3473C11.0498 49.2838 10.6332 49.0368 10.3639 48.6699C10.0981 48.31 9.99039 47.8549 10.0622 47.4174C10.134 46.9764 10.389 46.5707 10.7697 46.299L10.8487 46.2426L10.9348 46.1967L11.1575 46.0838C11.9511 45.6075 12.6837 45.2477 13.3947 44.8984L13.3947 44.8984C13.4415 44.8754 13.4882 44.8525 13.5348 44.8297C13.7671 44.7158 13.9969 44.6031 14.2243 44.4856L14.2386 44.4785L14.253 44.4715L14.885 44.1681C11.7716 43.4413 9.16085 42.2135 6.97747 40.4565C2.34857 36.7168 0 30.8178 0 22.922C0 19.3374 0.502749 16.1198 1.4903 13.3538C1.4077 9.06012 1.81708 3.50692 4.15488 0.871437C4.66122 0.299887 5.3543 0 6.15152 0C7.51972 0 9.23626 0.927886 11.373 2.82952C14.4757 1.52413 18.1421 0.885549 22.5556 0.885549C26.969 0.885549 30.6427 1.52413 33.7454 2.83305ZM22.5592 9.70929C27.0732 9.70929 30.2944 10.5419 32.3951 12.2389C34.8766 14.2499 36.0904 17.7463 36.0904 22.9255C36.0904 33.8978 30.6822 36.1417 22.5592 36.1417C14.4361 36.1417 9.02797 33.8943 9.02797 22.9255C9.02797 17.7498 10.2346 14.2464 12.7232 12.2389C14.824 10.5349 18.0452 9.70929 22.5592 9.70929ZM17.9051 28.3058C19.4601 28.3058 20.7313 27.0675 20.7313 25.5504V22.3081C20.6559 22.3151 20.5769 22.3187 20.4979 22.3187C19.2482 22.3187 18.2391 21.3343 18.2391 20.1171C18.2391 19.1293 18.9034 18.2931 19.8192 18.0144C19.3164 17.5593 18.6449 17.277 17.9051 17.277C16.3502 17.277 15.0789 18.5154 15.0789 20.0325V25.5504C15.0789 27.0639 16.3502 28.3058 17.9051 28.3058ZM27.2096 28.3058C28.7646 28.3058 30.0358 27.0675 30.0358 25.5504V22.0929C29.9245 22.1105 29.8132 22.1211 29.6982 22.1211C28.4485 22.1211 27.4395 21.1367 27.4395 19.9196C27.4395 18.967 28.0607 18.159 28.9262 17.8521C28.4485 17.4922 27.856 17.277 27.2096 17.277C25.6547 17.277 24.3834 18.5154 24.3834 20.0325V25.5504C24.3834 27.0639 25.6547 28.3058 27.2096 28.3058Z", fill: "white" }) }) }); return t ? (0, d.jsx)(dt, { href: t, target: "_blank", children: r }) : r; }); var pt = n(46325), ht = n(93458); const ft = (e) => { let { adIsLoading: t, useGameThumbLoader: n } = e; return t ? (n ? (0, d.jsx)(ht.Z, { children: (0, d.jsx)(it, { style: { color: "white", marginTop: 26 } }) }) : (0, d.jsx)(ot.ZP, { container: !0, justifyContent: "center", alignItems: "center", sx: { width: 1, height: 1, background: pt.VP }, children: (0, d.jsx)(ot.ZP, { item: !0, children: (0, d.jsx)(ut, {}) }) })) : null; }; function mt() { return { width: window.innerWidth, height: window.innerHeight - 45 }; } const gt = (e) => { let { adIsLoading: t, adContainerRef: n, width: r, height: a, useGameThumbLoader: i } = e; const o = mt(), s = { width: void 0 !== r ? r : o.width, height: void 0 !== a ? a : o.height }; return (0, d.jsx)("div", { ref: n, style: s, children: (0, d.jsx)(ft, { adIsLoading: t, useGameThumbLoader: i }) }); }; class vt extends Error { constructor() { super("No ad available"); } } class bt extends Error { constructor() { super("Unknown error playing ad"); } } class yt extends Error { constructor() { super("Banner timeout"); } } class wt extends Error { constructor() { super("AdBlock detected"); } } const St = async function () { const e = (await n.e(3535).then(n.bind(n, 23535))).default, t = window.document.createElement("video"); t.setAttribute("playsinline", ""); const r = window.document.createElement("source"); (r.src = `data:video/mp4;base64, ${e}`), t.appendChild(r); try { return ( await (function (e, t) { const n = new Promise((t, n) => { window.setTimeout(() => n("timeout exceeded"), e); }); return Promise.race([t, n]); })(500, t.play()), !0 ); } catch (a) { return !1; } }, kt = 8e3; class xt extends r.Component { constructor() { super(...arguments), (this.adDisplayContainer = void 0), (this.adsLoader = void 0), (this.adsManager = void 0), (this.adsRequest = void 0), (this.adState = "initialize"), (this.adError = null), (this.canPlayWithSound = !1), (this.canPlayWithSoundPromise = null), (this.installTimeout = null), (this.onAdsManagerLoaded = (e) => { const t = new google.ima.AdsRenderingSettings(); this.props.preload && (t.enablePreloading = !0), (this.adsManager = e.getAdsManager(this.props.videoContentRef.current, t)), this.canPlayWithSound && "unmuted" === this.props.isMuted ? this.adsManager.setVolume(0.3) : this.adsManager.setVolume(0), this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested, !1), this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1), this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED, this.onAdPaused, !1), this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED, this.onAdResumed, !1), [google.ima.AdEvent.Type.ALL_ADS_COMPLETED, google.ima.AdEvent.Type.CLICK, google.ima.AdEvent.Type.COMPLETE, google.ima.AdEvent.Type.FIRST_QUARTILE, google.ima.AdEvent.Type.LOADED, google.ima.AdEvent.Type.MIDPOINT, google.ima.AdEvent.Type.STARTED, google.ima.AdEvent.Type.THIRD_QUARTILE, google.ima.AdEvent.Type.AD_PROGRESS, google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED].forEach((e) => { this.adsManager.addEventListener(e, this.onAdEvent, !1); }); try { const { width: e, height: t } = this.getAdDimesions(); this.adsManager.init(e, t, google.ima.ViewMode.NORMAL), (this.adState = "wait-for-play"), this.props.play && this.playAd(); } catch (n) { this.onAdError(n); } }), (this.onAdStarted = (e) => { const { adStarted: t } = this.props; if (((this.adState = "playing"), t)) { const n = e.getAd(); window.location.search.includes("raf_debug=true") && console.log(n), t(n, this.canPlayWithSound); } this.installTimeout && (window.clearTimeout(this.installTimeout), (this.installTimeout = null)); }), (this.onAdEvent = (e) => { switch (e.type) { case google.ima.AdEvent.Type.STARTED: this.onAdStarted(e); break; case google.ima.AdEvent.Type.AD_PROGRESS: this.adProgressed(e.getAdData()); break; case google.ima.AdEvent.Type.COMPLETE: this.onAdCompleted(e.getAd()); break; case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED: this.onAdSkippableStateChanged(e); } }), (this.onAdSkippableStateChanged = (e) => { this.props.adSkippableStateChanged && this.props.adSkippableStateChanged(); }), (this.onAdPaused = () => { if (this.props.adPaused) { const e = () => { this.adsManager.resume(); }; this.props.adPaused(e); } }), (this.onAdResumed = () => { this.props.adResumed && this.props.adResumed(); }), (this.onAdMute = () => { this.adsManager.setVolume(0); }), (this.onAdUnmute = () => { this.adsManager.setVolume(0.3); }), (this.onContentResumeRequested = (e) => { const { onContentResumeRequested: t } = this.props; if (t) { t(e.getAd()); } }), (this.onAdError = (e) => { const t = this.props.adError; this.adsManager && this.adsManager.destroy(); let n = new bt(); try { if (e && e.getError) { const t = e.getError(); n = t; const r = google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE; if (t.getErrorCode() !== r) { const e = t.getInnerError(), n = [t.getMessage()]; e && n.push(e.message), P.kg.error("video-error", t.getErrorCode(), ...n); } else n = new vt(); } else P.kg.error("video-error-no-error", e); } catch (r) { P.kg.error("video-error-error", r); } (this.adState = "error"), (this.adError = n), t && this.props.play && t(n); }), (this.resizeAd = () => { if (this.adsManager) { const { width: e, height: t } = this.getAdDimesions(); this.adsManager.resize(e, t, google.ima.ViewMode.NORMAL); } }), (this.getAdDimesions = () => (this.props.fullSize ? mt() : (0, je.vM)(!1))); } async componentDidMount() { const { adType: e, videoUrl: t } = this.props; if ("initialize" === this.adState) { this.adState = "loading-script"; try { Ne.GA.Instance.trackAdImaStarted(e), await _(), (this.adState = "loaded-script"), (this.canPlayWithSoundPromise = this.adCanAutoplay()), (this.adDisplayContainer = new google.ima.AdDisplayContainer(this.props.adContainerRef.current, this.props.videoContentRef.current)), this.setupAdsLoader(), await this.requestAd(t); } catch (n) { this.onAdError(n.message); } } window.addEventListener("resize", this.resizeAd); } componentDidUpdate(e) { this.props.play && !e.play && ("wait-for-play" === this.adState ? this.playAd() : "error" === this.adState && this.props.adError && this.adError && this.props.adError(this.adError)), this.props.isMuted !== e.isMuted && ("muted" === this.props.isMuted && this.onAdMute(), "unmuted" === this.props.isMuted && this.onAdUnmute()); } componentWillUnmount() { this.installTimeout && (window.clearTimeout(this.installTimeout), (this.installTimeout = null)), window.removeEventListener("resize", this.resizeAd); } render() { return null; } setupAdsLoader() { this.adsLoader = new google.ima.AdsLoader(this.adDisplayContainer); const e = this.adsLoader.getSettings(), t = google.ima.ImaSdkSettings.VpaidMode.ENABLED; e.setVpaidMode(t), e.setNumRedirects(20), this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1); } async requestAd(e) { if ("requested" === this.adState || "playing" === this.adState) return; (this.adState = "requested"), this.adDisplayContainer.initialize(), (this.adsRequest = new google.ima.AdsRequest()), (this.adsRequest.adTagUrl = e); const { width: t, height: n } = this.getAdDimesions(); (this.adsRequest.linearAdSlotWidth = t), (this.adsRequest.linearAdSlotHeight = n), (this.adsRequest.nonLinearAdSlotWidth = t), (this.adsRequest.nonLinearAdSlotHeight = n), (this.adsRequest.forceNonLinearFullSlot = !0), (this.adsRequest.vastLoadTimeout = kt), (this.adsRequest.omidAccessModeRules = { [google.ima.OmidVerificationVendor.OTHER]: google.ima.OmidAccessMode.FULL }); const r = (0, Z.NI)(), a = U.Z.crazygamesLocalizedGameUrl(r.locale || $.ZW, (0, j.Z)()); (this.adsRequest.pageUrl = a), await this.canPlayWithSoundPromise, this.adsRequest.setAdWillPlayMuted(!this.canPlayWithSound), this.adsRequest.setAdWillAutoPlay(!1); try { this.adsLoader.requestAds(this.adsRequest); } catch (i) { this.onAdError(i); } } playAd() { try { if ("playing" !== this.adState) { this.installTimeoutCheck(); const { imaRequestStarted: e } = this.props; e && e(), this.adsManager.start(); } } catch (e) { this.onAdError(e); } } onAdCompleted(e) { this.adState = "complete"; const { adCompleted: t } = this.props; t && t(e); } adProgressed(e) { const { adProgressed: t } = this.props; t && t(e); } async adCanAutoplay() { this.canPlayWithSound = await St(); } installTimeoutCheck() { this.installTimeout = window.setTimeout(() => { const { adType: e, adError: t } = this.props; !["playing", "complete", "error"].includes(this.adState) && (P.kg.error("[VideoAd] video-error our timeout hit"), Ne.GA.Instance.trackAdInternalTimeoutHit(e), this.adsManager && (this.adsManager.destroy(), this.adDisplayContainer.destroy()), t && t(new Error("[VideoAd] Our timeout hit"))); }, 9e3); } } const Ct = xt; var Et = n(12549); function It(e) { e && "undefined" !== typeof gtag && (gtag("event", "conversion", { send_to: "AW-312835820/UBOSCNjR06wDEOz9lZUB", value: e, currency: "EUR" }), be() && gtag("event", "purchase", { allow_custom_scripts: !0, currency: "EUR", value: e, quantity: 1, transaction_id: (0, Et.Z)(), send_to: "DC-13034049/rev0/crazy0+items_sold" }), (function () { const e = ue.m.Instance.getItem(ge); if (!e) return !1; const t = Date.now() - Number(e); return be() && t < 6048e5; })() && gtag("event", "purchase", { allow_custom_scripts: !0, currency: "EUR", value: e, quantity: 1, transaction_id: (0, Et.Z)(), send_to: "DC-13034049/crazy0/crazy0+items_sold" })); } var Pt = n(73985), At = n(43063); const Tt = class extends ne { constructor() { super(...arguments), (this.bidderCode = "rise"), (this.data = { ingameBanners728x90: [{ placementId: "ROS-In-Game-728x90-1" }, { placementId: "ROS-In-Game-728x90-2" }], ingameBanners300x250: [{ placementId: "ROS-In-Game-300x250-1" }, { placementId: "ROS-In-Game-300x250-2" }], ingameBanners320x50: [{ placementId: "ROS-In-Game-320x50-1" }, { placementId: "ROS-In-Game-320x50-2" }], ingameBanners468x60: [{ placementId: "ROS-In-Game-468x60-1" }, { placementId: "ROS-In-Game-468x60-2" }], ingameBanners320x100: [{ placementId: "ROS-In-Game-320x100-1" }, { placementId: "ROS-In-Game-320x100-2" }], responsiveIngameBanners: [{ placementId: "ROS-In-Game-Multi-1" }, { placementId: "ROS-In-Game-Multi-2" }], internalSkippableMidroll: { placementId: "ROS-Video-Midroll-Internal-Skippable" }, internalNonSkippableMidroll: { placementId: "ROS-Video-Midroll-Internal-Nonskippable" }, internalSkippablePreroll: { placementId: "ROS-Video-Preroll-Internal-Skippable" }, internalNonSkippablePreroll: { placementId: "ROS-Video-Preroll-Internal-Nonskippable" }, internalSkippableRewarded: { placementId: "ROS-Video-Rewarded-Internal-Skippable" }, internalNonSkippableRewarded: { placementId: "ROS-Video-Rewarded-Internal-Nonskippable" } }); } generateBanner(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), placementId: e.placementId }; } generateVideo(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled(), placementId: e.placementId }; } }, Rt = (e) => { e.preventDefault(), e.stopPropagation(); }, _t = (e) => { let { children: t } = e; return (0, d.jsx)("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, onClick: Rt, onDoubleClick: Rt, onMouseDown: Rt, onMouseUp: Rt, onScroll: Rt, onKeyDown: Rt, onKeyPress: Rt, onKeyUp: Rt, children: t }); }, Zt = r.memo((e) => (0, d.jsxs)(lt.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: [(0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.25757 2.33007C3.62757 1.92005 4.2599 1.88759 4.66993 2.25759L12.9814 9.75759C14.3395 10.9831 14.3395 13.0169 12.9814 14.2424L4.66993 21.7424C4.2599 22.1124 3.62757 22.08 3.25757 21.6699C2.88758 21.2599 2.92003 20.6276 3.33006 20.2576L11.6415 12.7576C12.1195 12.3263 12.1195 11.6737 11.6415 11.2424L3.33006 3.74243C2.92003 3.37243 2.88758 2.7401 3.25757 2.33007Z" }), (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.2576 2.33007C11.6276 1.92005 12.2599 1.88759 12.6699 2.25759L20.9814 9.75759C22.3395 10.9831 22.3395 13.0169 20.9814 14.2424L12.6699 21.7424C12.2599 22.1124 11.6276 22.08 11.2576 21.6699C10.8876 21.2599 10.92 20.6276 11.3301 20.2576L19.6415 12.7576C20.1195 12.3263 20.1195 11.6737 19.6415 11.2424L11.3301 3.74243C10.92 3.37243 10.8876 2.7401 11.2576 2.33007Z" })] })); var zt = n(77626), Lt = n(73477); const Mt = (0, Ge.ZP)("div", { shouldForwardProp: (e) => "position" !== e })((e) => { let { position: t } = e; return { position: "absolute", right: "right" === t ? 0 : void 0, left: "left" === t ? 0 : void 0, bottom: 22, zIndex: 1e3, padding: "15px 0px 15px 0px" }; }), Ft = (0, Ge.ZP)(Lt.Z)(() => ({ background: "rgba(0,0,0,0.8)", color: "#fff", "&:hover": { background: "rgba(0,0,0,0.8)", borderColor: "rgba(255,255,255,1)" } })), Dt = (e) => { let { onClick: t, open: n, endIcon: r, children: a, position: i } = e; return n ? (0, d.jsx)(Mt, { position: i, children: (0, d.jsx)(Ft, { variant: "outlined", onClick: t, endIcon: r, children: (0, d.jsx)("div", { style: { verticalAlign: "middle", fontSize: 18 }, children: a }) }) }) : null; }, Nt = (e) => { let { onClick: t, open: n } = e; return (0, d.jsx)(Dt, { open: n, onClick: t, endIcon: (0, d.jsx)(Zt, {}), children: (0, d.jsx)(zt.Z, { id: "videoAd.skip" }) }); }; var jt = n(94085), Ot = n(18104), Bt = n(17140), Ut = n(69382); const $t = r.lazy(() => n.e(6448).then(n.bind(n, 96448))), Gt = (e) => { let { clickable: t, campaignContent: n } = e; return (0, d.jsx)(Bt.Z, { clickable: t, campaignContent: n || "logo", children: (0, d.jsx)(Ut.Qx, { container: !0, alignItems: "center", justifyContent: "center", isKids: (0, J.U)(), children: (0, d.jsx)(ot.ZP, { item: !0, sx: { height: Ut.y7 }, children: (0, d.jsx)(r.Suspense, { fallback: null, children: (0, d.jsx)($t, {}) }) }) }) }); }; var Vt = n(23733); const qt = r.memo((e) => (0, d.jsxs)(lt.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: [(0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.71963 4.59861C11.0223 3.51306 13 4.43937 13 6.13505V17.865C13 19.5606 11.0223 20.487 9.71963 19.4014L5.63795 16H3C2.44772 16 2 15.5523 2 15V9.00001C2 8.44772 2.44772 8.00001 3 8.00001H5.63795L9.71963 4.59861ZM11 6.13505L6.64018 9.76823C6.46047 9.91799 6.23394 10 6 10H4V14H6C6.23394 14 6.46047 14.082 6.64018 14.2318L11 17.865V6.13505Z" }), (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.0416 5.00462C15.1991 4.47529 15.7559 4.17388 16.2853 4.33142C19.5891 5.3147 22 8.37449 22 12C22 15.6255 19.5891 18.6853 16.2853 19.6686C15.7559 19.8261 15.1991 19.5247 15.0416 18.9954C14.884 18.466 15.1854 17.9092 15.7148 17.7517C18.1939 17.0138 20 14.7165 20 12C20 9.28346 18.1939 6.98615 15.7148 6.24833C15.1854 6.09079 14.884 5.53396 15.0416 5.00462Z" }), (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.0511 8.68438C14.2255 8.16033 14.7916 7.87682 15.3157 8.05115C16.9259 8.58678 18 10.201 18 12C18 13.799 16.9259 15.4133 15.3157 15.9489C14.7916 16.1232 14.2255 15.8397 14.0511 15.3157C13.8768 14.7916 14.1603 14.2255 14.6844 14.0511C15.3874 13.8173 16 13.0365 16 12C16 10.9636 15.3874 10.1828 14.6844 9.94891C14.1603 9.77458 13.8768 9.20844 14.0511 8.68438Z" })] })), Wt = r.memo((e) => (0, d.jsx)(lt.Z, { ...e, width: "24", height: "24", viewBox: "0 0 24 24", children: (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.4 2.80388C10.5532 1.26626 13 2.08185 13 4.00388V20.0039C13 21.9259 10.5532 22.7415 9.4 21.2039L5.5 16.0039H3C2.44772 16.0039 2 15.5562 2 15.0039V9.00388C2 8.45159 2.44772 8.00388 3 8.00388H5.5L9.4 2.80388ZM11 4.00388L6.8 9.60388C6.61115 9.85568 6.31476 10.0039 6 10.0039H4V14.0039H6C6.31476 14.0039 6.61115 14.1521 6.8 14.4039L11 20.0039V4.00388ZM14.2929 8.29677C14.6834 7.90624 15.3166 7.90624 15.7071 8.29677L18 10.5897L20.2929 8.29677C20.6834 7.90624 21.3166 7.90624 21.7071 8.29677C22.0976 8.68729 22.0976 9.32046 21.7071 9.71098L19.4142 12.0039L21.7071 14.2968C22.0976 14.6873 22.0976 15.3205 21.7071 15.711C21.3166 16.1015 20.6834 16.1015 20.2929 15.711L18 13.4181L15.7071 15.711C15.3166 16.1015 14.6834 16.1015 14.2929 15.711C13.9024 15.3205 13.9024 14.6873 14.2929 14.2968L16.5858 12.0039L14.2929 9.71098C13.9024 9.32046 13.9024 8.68729 14.2929 8.29677Z" }) })), Ht = (e) => { let { remainingTimeToSkip: t, canSkip: n, isSkippable: r, remainingTimeForAd: a, isMuted: i, muteAd: o, unmuteAd: s } = e; const l = U.Z.isEmbeddedExternally() && !U.Z.isOnLocalhost(U.Z.getSafeReferrer()), c = () => { "muted" === i ? s() : o(); }, u = (0, J.U)(); return (0, d.jsxs)(jt.kH, { container: !0, justifyContent: "space-between", alignItems: "center", wrap: "nowrap", children: [(0, d.jsx)(ot.ZP, { item: !0, sx: { pl: 2 }, children: (0, d.jsxs)(jt.VT, { isClickable: l && !u, children: [(0, d.jsx)(Gt, { clickable: l && !u, campaignContent: "logo" }), (0, d.jsx)("div", { style: { textTransform: "uppercase", fontSize: 9, top: 6, opacity: 0.6, position: "absolute", left: 50, fontWeight: 700 }, children: "Advertising" }), !r && (0, d.jsx)(jt.b_, { style: { top: 12, left: 42, position: "absolute" }, children: (0, d.jsx)(zt.Z, { id: "videoAd.continuePlayingAfterAd", values: { skipInSeconds: (0, d.jsx)("span", { style: { color: "#35FDFF" }, children: a || "" }) } }) }), r && (0, d.jsx)(jt.b_, { style: { top: 12, left: 42, position: "absolute" }, children: n ? (0, d.jsx)(zt.Z, { id: "videoAd.youCanSkip" }) : (0, d.jsx)(zt.Z, { id: "videoAd.skipCounter", values: { skipInSeconds: (0, d.jsx)("span", { style: { color: "#35FDFF" }, children: t || "" }) } }) })] }) }), (0, d.jsxs)(ot.ZP, { item: !0, children: ["muted" === i && (0, d.jsx)(Vt.Z, { titleId: "videoAd.unmute", children: (0, d.jsx)(Ot.Z, { onClick: c, size: "large", children: (0, d.jsx)(Wt, {}) }) }), "unmuted" === i && (0, d.jsx)(Vt.Z, { titleId: "videoAd.mute", children: (0, d.jsx)(Ot.Z, { onClick: c, size: "large", children: (0, d.jsx)(qt, {}) }) })] })] }); }; var Kt = n(71917); const Yt = (0, Ge.ZP)("div")(() => ({ position: "absolute", left: 0, bottom: Kt.ut.footerHeight, height: 4, width: "100%", background: "black" })), Qt = (0, Ge.ZP)("div")((e) => { let { theme: { palette: t }, } = e; return { backgroundColor: t.secondary.main, height: "100%", position: "relative" }; }), Xt = (0, Ge.ZP)("video")(() => ({ overflow: "hidden", position: "absolute", width: "100%", maxHeight: "100%", objectFit: "cover" })), Jt = (0, Ge.ZP)("div")(() => ({ position: "absolute", top: 0, display: "flex", alignItems: "center", width: "100%", height: `calc(100% - ${Kt.ut.footerHeight + 4}px)` })); var en = n(75993); const tn = (e) => { let { onClick: t, open: n, position: r } = e; return (0, d.jsx)(Dt, { open: n, onClick: t, endIcon: (0, d.jsx)(en.Z, {}), position: r || "left", children: (0, d.jsx)(zt.Z, { id: "videoAd.continue" }) }); }; var nn = n(8242); const rn = "video-ads-mute"; class an extends r.Component { constructor(e) { super(e), (this.adContainerRef = void 0), (this.videoContentRef = void 0), (this.adProgressLastProgress = void 0), (this.progressCheckTimeout = null), (this.progressCheckReject = null), (this.isProgressingTimeout = null), (this.adStartedTimeout = null), (this.nonVideoSkipButtonTimeout = null), (this.nonVideoEnforceSkipButtonTimeout = null), (this.isAdCompleted = !1), (this.adCompletedTimeout = null), (this.adCompletedGASent = !1), (this.adRequestedTime = null), (this.adIsMarkedAsSkippable = void 0), (this.adSkippableAfter = -1), (this.totalAdDuration = 1), (this.videoAdDuration = -1), (this.resume = null), (this.adHasProgressReporting = !1), (this.adSkipped = () => { Ne.GA.Instance.trackAdSkippedUsingOverlay(this.totalAdDuration, this.props.adType), this.adFinished(); }), (this.imaRequestStarted = () => {}), (this.adStarted = (e, t) => { const { adStarted: n } = this.props; if ((this.adStartedTimeout && (window.clearTimeout(this.adStartedTimeout), (this.adStartedTimeout = null)), e)) { const t = e.getSkipTimeOffset(); t > 0 && (this.adIsMarkedAsSkippable = !0), (this.adSkippableAfter = t), (this.totalAdDuration = e.getDuration()); } this.trackAdStarted(e), this.trackAdStartTime(), this.installProgressCheck(e), this.setState({ adState: "playing", adStarted: !0 }), n && n(), this.setAdVolume(t); }), (this.adPaused = (e) => { (this.resume = e), this.setState({ paused: !0 }), this.progressCheckTimeout && window.clearTimeout(this.progressCheckTimeout); }), (this.adResumed = () => { this.setState({ paused: !1 }, () => { this.progressCheckTimeout && this.isAdProgressingLoop(), (this.resume = null); }); }), (this.onAdCompleted = (e) => { const { adCompleted: t } = this.props; (this.isAdCompleted = !0), (this.adCompletedTimeout = window.setTimeout(() => { this.adFinished(); }, 1e3)), this.trackAdCompleted(e), t && window.setTimeout(() => { t(); }, 80); }), (this.requestResume = () => { this.resume && this.resume(); }), (this.onContentResumeRequested = (e) => { this.trackAdCompleted(e), window.setTimeout(() => { this.adFinished(); }, 80); }), (this.adSkippableStateChanged = () => { this.nonVideoSkipButtonTimeout && (window.clearTimeout(this.nonVideoSkipButtonTimeout), (this.nonVideoSkipButtonTimeout = null)), (this.adIsMarkedAsSkippable = !0), this.setState({ showOurSkipButton: !1 }); }), (this.adProgressed = (e) => { const { currentTime: t, duration: n } = e; if (((this.videoAdDuration = n), n && n > 0)) { const e = t / n; if ((this.setState({ currentTime: t }), (this.adHasProgressReporting = !0), (this.adProgressLastProgress = e), !this.adIsMarkedAsSkippable)) { const { enforceSkipButton: e, skipIfLongerThanSeconds: a, skippableAfterSeconds: i } = this.props, { showOurSkipButton: o } = this.state; if (!e) return; if (!o) { var r; const e = null !== a && void 0 !== a ? a : 16; if ((null !== (r = this.totalAdDuration) && void 0 !== r ? r : n) < e) return; const o = null !== i && void 0 !== i ? i : 5; t && t > o && this.setState({ showOurSkipButton: !0 }); } } } }), (this.adError = (e) => { let t = e || new bt(); const { adError: n } = this.props; this.setState({ adState: "error" }, () => { n && n(t, { playing: this.state.adStarted }); }); }), (this.setAdVolume = (e) => { const t = ue.m.Instance.getItem(rn); let n = "disabled"; (n = e ? (("preroll" === this.props.adType && this.props.device.isMobile) || (t && JSON.parse(t)) ? "muted" : "unmuted") : "disabled"), this.setState({ isMuted: n }); }), (this.muteAd = () => { this.setState({ isMuted: "muted" }), ue.m.Instance.setItem(rn, "true"); }), (this.unmuteAd = () => { this.setState({ isMuted: "unmuted" }), ue.m.Instance.setItem(rn, "false"); }), (this.state = { adState: "wait-for-ima", showOurSkipButton: !1, currentTime: 0, adStarted: !1, paused: !1, isMuted: "disabled" }), (this.adContainerRef = r.createRef()), (this.videoContentRef = r.createRef()), (this.adProgressLastProgress = 0), (this.adIsMarkedAsSkippable = !1); } componentDidMount() { var e; null === (e = this.videoContentRef.current) || void 0 === e || e.setAttribute("muted", ""), this.startAdStartedTimeout(); } componentWillUnmount() { [this.progressCheckTimeout, this.isProgressingTimeout, this.nonVideoSkipButtonTimeout, this.nonVideoEnforceSkipButtonTimeout, this.adCompletedTimeout, this.adStartedTimeout].forEach((e) => { e && window.clearTimeout(e); }), this.progressCheckReject && this.progressCheckReject(), (this.progressCheckTimeout = null), (this.progressCheckTimeout = null), (this.isProgressingTimeout = null), (this.adCompletedTimeout = null), (this.progressCheckReject = null), (this.nonVideoSkipButtonTimeout = null), (this.adProgressLastProgress = 0), (this.adIsMarkedAsSkippable = !1), (this.nonVideoEnforceSkipButtonTimeout = null); } render() { switch (this.state.adState) { case "wait-for-ima": case "playing": return this.renderAd(); default: return this.renderContent(); } } componentDidUpdate(e) { this.props.play && !e.play && this.startAdStartedTimeout(); } renderIMA() { const { videoUrl: e, adType: t, preload: n, play: r, fullSize: a } = this.props; return (0, d.jsx)(Ct, { imaRequestStarted: this.imaRequestStarted, adStarted: this.adStarted, adError: this.adError, adCompleted: this.onAdCompleted, adProgressed: this.adProgressed, adPaused: this.adPaused, adResumed: this.adResumed, adSkippableStateChanged: this.adSkippableStateChanged, onContentResumeRequested: this.onContentResumeRequested, videoUrl: e, adType: t, preload: n, play: r, adContainerRef: this.adContainerRef, videoContentRef: this.videoContentRef, isMuted: this.state.isMuted, fullSize: a }); } renderContent() { return (0, d.jsx)(d.Fragment, { children: this.props.children }); } renderAd() { const e = !["playing", "error", "complete"].includes(this.state.adState), { adState: t, paused: n, isMuted: r } = this.state, a = this.getSecondsToSkip(), i = this.state.showOurSkipButton && !n, o = this.getFormattedCountdown(a), s = this.getFormattedCountdown(null), l = null !== a && a <= 0, c = this.adIsMarkedAsSkippable ? "left" : "right"; return (0, d.jsxs)(d.Fragment, { children: [(0, d.jsxs)(_t, { children: [(0, d.jsxs)(Jt, { children: [(0, d.jsx)(Xt, { ref: this.videoContentRef, id: "videoContent", playsInline: !0 }), (0, d.jsx)(Nt, { open: i, onClick: this.adSkipped }), (0, d.jsx)(tn, { open: n, onClick: this.requestResume, position: c }), (0, d.jsx)(gt, { adContainerRef: this.adContainerRef, adIsLoading: e, width: "100%", height: "100%", useGameThumbLoader: "preroll" === this.props.adType })] }), "playing" === t && this.renderProgressBar(), "playing" === t && (0, d.jsx)(Ht, { isSkippable: null !== a && this.adHasProgressReporting, remainingTimeToSkip: o, remainingTimeForAd: s, canSkip: l, muteAd: this.muteAd, unmuteAd: this.unmuteAd, isMuted: r })] }), this.renderIMA()] }); } getFormattedCountdown(e) { if (null !== e) return this.formatTime(e); { const e = this.getSecondsToEnd(); if (null !== e) return this.formatTime(e); } return null; } formatTime(e) { return `00:${`0${Math.floor(e)}`.slice(-2)}`; } getSecondsToEnd() { if (this.totalAdDuration >= 0) { const { currentTime: e } = this.state; return Math.max(this.totalAdDuration - e, 0); } return null; } getSecondsToSkip() { if (this.totalAdDuration >= 0) { const { currentTime: e } = this.state, t = this.getSkippableAfter(); if (t && t > 0) return Math.max(t - Math.floor(e), 0); } return this.state.showOurSkipButton ? 0 : null; } getSkippableAfter() { const { skippableAfterSeconds: e } = this.props; if (this.skipButtonWillBeShown()) { if (this.adSkippableAfter > 0) return this.adSkippableAfter; return null !== e && void 0 !== e ? e : 5; } return null; } skipButtonWillBeShown() { const { enforceSkipButton: e, skipIfLongerThanSeconds: t } = this.props; return this.adIsMarkedAsSkippable || (!!e && this.totalAdDuration > (null !== t && void 0 !== t ? t : 16)); } getProgress() { const { currentTime: e } = this.state; return this.videoAdDuration > 0 ? e / this.videoAdDuration : null; } renderProgressBar() { const e = this.getProgress(); return e ? (0, d.jsx)(Yt, { children: (0, d.jsx)(Qt, { style: { width: 100 * e + "%" } }) }) : null; } adFinished() { const e = this.props.adFinished; this.setState({ adState: "complete" }), e && e(); } startAdStartedTimeout() { this.props.play && (this.adStartedTimeout = window.setTimeout(() => { this.adError(); }, 1e4)); } trackAdStarted(e) { const { adType: t } = this.props; if (e) try { const n = e.getDuration(), r = e.getSkipTimeOffset(); Ne.GA.Instance.trackAdStarted(n, r, t); } catch (n) {} } trackAdCompleted(e) { if (e && !this.adCompletedGASent) try { this.adCompletedGASent = !0; const { adType: t } = this.props, n = e.getDuration(), r = e.getSkipTimeOffset(); Ne.GA.Instance.trackAdCompleted(n, r, t); } catch (t) {} } trackAdStartTime() { const { adType: e } = this.props; this.adRequestedTime && Ne.GA.Instance.trackAdTimingRequestStarted(this.adRequestedTime, e), (this.adRequestedTime = null); } isAdProgressing() { const e = this.adProgressLastProgress; return new Promise((t, n) => { (this.progressCheckReject = n), (this.isProgressingTimeout = window.setTimeout(() => { const n = this.adProgressLastProgress; (this.progressCheckReject = null), t(n > e || this.isAdCompleted); }, 2e3)); }); } async isAdProgressingLoop() { if ("playing" === this.state.adState && !this.state.paused && !this.isAdCompleted) try { if (await this.isAdProgressing()) return void (this.progressCheckTimeout = window.setTimeout(() => this.isAdProgressingLoop(), 1e3)); { P.kg.error("[VideoAd] video-error No progress detected"); const { adType: e } = this.props; Ne.GA.Instance.trackAdNoProgress(e); const t = this.adProgressLastProgress; t && t > 0.05 ? this.adFinished() : this.adError(); } } catch (e) {} } nonVideoSkipButtonCheck() { const { skippableAfterSeconds: e } = this.props, t = null !== e && void 0 !== e ? e : 5; this.nonVideoSkipButtonTimeout = window.setTimeout(() => { this.adIsMarkedAsSkippable || (this.adHasProgressReporting && !(this.adProgressLastProgress <= 0)) || this.setState({ showOurSkipButton: !0 }); }, 1e3 * t); } nonVideoInstallTimeout() { const { skipIfLongerThanSeconds: e } = this.props, t = 1e3 * (null !== e && void 0 !== e ? e : 16); this.nonVideoEnforceSkipButtonTimeout = window.setTimeout(() => { this.setState({ showOurSkipButton: !0 }); }, t); } installProgressCheck(e) { if (((this.adHasProgressReporting = !1), !e)) return; if ((e.getContentType() || "").startsWith("video")) { const t = e.getDuration(); t && t > 0 && ((this.adHasProgressReporting = !0), (this.progressCheckTimeout = window.setTimeout(() => { this.isAdProgressingLoop(); }, 1e3))); } else (this.adHasProgressReporting = !1), this.nonVideoSkipButtonCheck(), this.nonVideoInstallTimeout(); } } const on = (0, nn.Z)(an); const sn = class extends ne { constructor() { super(...arguments), (this.bidderCode = "stroeerCore"), (this.data = { internalNonSkippableMidroll: { sid: "85721329-cc61-4838-95ca-bb8f095a1329" }, internalNonSkippablePreroll: { sid: "85721329-cc61-4838-95ca-bb8f095a1329" }, internalNonSkippableRewarded: { sid: "37566457-c786-4ab0-aaad-635cb48e5450" } }); } generateBanner(e) { return { bidder: this.bidderCode, disabled: !0, sid: e.sid }; } generateVideo(e) { return { bidder: this.bidderCode, disabled: this.nonGoogleDisabled() || !this.inEnabledCountry(), sid: e.sid }; } inEnabledCountry() { const { countryCode: e } = (0, X.bG)(); return !!e && ["DE", "CH", "AT"].includes(e); } }; const ln = class extends ne { constructor() { super(...arguments), (this.bidderCode = "shemedia"), (this.data = { internalNonSkippablePreroll: { siteId: "292160", zoneId: "3143666", sizes: [201] }, internalNonSkippableMidroll: { siteId: "292160", zoneId: "3143666", sizes: [204] }, internalNonSkippableRewarded: { siteId: "292160", zoneId: "3143666", sizes: [204] }, internalSkippablePreroll: { siteId: "292160", zoneId: "3143666", sizes: [201] }, internalSkippableMidroll: { siteId: "292160", zoneId: "3143666", sizes: [204] }, internalSkippableRewarded: { siteId: "292160", zoneId: "3143666", sizes: [204] }, ingameBanners728x90: [ { siteId: "210096", zoneId: "3143676", sizes: [2] }, { siteId: "210096", zoneId: "3143676", sizes: [2] }, ], ingameBanners300x250: [ { siteId: "210096", zoneId: "3143676", sizes: [15] }, { siteId: "210096", zoneId: "3143676", sizes: [15] }, ], ingameBanners320x50: [ { siteId: "210096", zoneId: "3143676", sizes: [43] }, { siteId: "210096", zoneId: "3143676", sizes: [43] }, ], ingameBanners468x60: [ { siteId: "210096", zoneId: "3143676", sizes: [1] }, { siteId: "210096", zoneId: "3143676", sizes: [1] }, ], ingameBanners320x100: [ { siteId: "210096", zoneId: "3143676", sizes: [43, 117] }, { siteId: "210096", zoneId: "3143676", sizes: [43, 117] }, ], responsiveIngameBanners: [ { siteId: "210096", zoneId: "3143676" }, { siteId: "210096", zoneId: "3143676" }, ], }); } getFallbackBannerInternal(e) { const t = [15, 16, 2]; return G(e) && t.push(57), this.generateBanner({ siteId: "210096", zoneId: "3143676", sizes: t }); } generateBanner(e) { return { bidder: this.bidderCode, zoneId: e.zoneId, siteId: e.siteId, sizes: e.sizes, position: "atf", disabled: this.nonGoogleDisabled() || !this.inEnabledCountry() }; } generateVideo(e) { return { bidder: this.bidderCode, zoneId: e.zoneId, siteId: e.siteId, language: this.getLocale(), sizes: e.sizes, position: "atf", disabled: this.nonGoogleDisabled() || !this.inEnabledCountry() }; } getLocale() { const e = (0, Z.NI)(); return (0, $.xz)(e.locale || $.ZW); } inEnabledCountry() { const { countryCode: e } = (0, X.bG)(); return !!e && (0, X.G3)(e); } }, cn = [{ chance: 1, value: 2e3 }], dn = [ { chance: 0.01, value: 1600 }, { chance: 0.01, value: 1800 }, { chance: 0.96, value: 2e3 }, { chance: 0.01, value: 2200 }, { chance: 0.01, value: 2400 }, ], un = { US: 0.5, GB: 0.2, AU: 0.2, CA: 0.2, NZ: 0.2, FR: 0.2, DE: 0.2, NL: 0.2, BE: 0.2, default: 0.1 }, pn = { appnexus: "appnexus_v_disabled", ix: "ix_v_disabled", pubmatic: "pubmatic_v_disabled", rubicon: "rubicon_v_disabled", sharethrough: "st_v_disabled", triplelift: "tl_v_disabled", rise: "rise_v_disabled" }, hn = { isEnabled: !1, disabledBidder: void 0 }, fn = 0.005 * Object.keys(pn).length; if (Math.random() < fn) { const e = Object.keys(pn), t = e[Math.floor(Math.random() * e.length)]; (hn.isEnabled = !0), (hn.disabledBidder = t); } let mn, gn; const vn = class { constructor() { (this.midRollImpressionNumber = 1), (this.rewardedImpressionNumber = 1), (this.bannerContainerCallCount = {}), (this.bannerContainerLastCall = {}), (this.bannerUnitLastCall = {}), (this.bidders = void 0), (this.fullscreen = void 0), (this.userType = void 0), (this.mridxOrdinalNumber = 0), (this.bidders = [new te(), new re(), new le(), new ae(), new ie(), new oe(), new se(), new Ee(), new Pe(), new Tt(), new sn(), new ln()]), (this.fullscreen = Ie.Z.Instance), At.Z.getInstance() .getAnalyticsInfo() .then((e) => { this.userType = e.userType; }); } async hasAdblock() { await D(); const { CrazygamesAds: e } = window; return e.hasAdblock(); } async requestPreroll(e, t) { const n = await this.requestVideo([{ adType: "preroll" }], e, t); if (!n.preroll) throw new Error("expected preroll videourl generator"); return n.preroll; } async requestMidroll(e, t) { const n = await this.requestVideo([{ adType: "midroll" }], e, t); if (!n.midroll) throw new Error("expected midroll videourl generator"); return n.midroll; } async requestRewarded(e, t) { const n = await this.requestVideo([{ adType: "rewarded" }], e, t); if (!n.rewarded) throw new Error("expected rewarded videourl generator"); return n.rewarded; } requestVideo(e, t, n) { const r = { units: e.map((e) => { let { adType: t, disabledBidders: r = [] } = e; const a = [...r]; return hn.isEnabled && a.push(hn.disabledBidder), this.getVideoRequest(t, a, n); }), }; return this.requestVideoAdUrl(r, t); } requestVideoFallbackBanner(e, t, n) { const r = W(t), a = this.isInternal(), i = this.bidders.map((e) => e.getFallbackBanner(t, a)), o = this.fullscreen.isFullscreen(), s = { ...r, bidders: i }, l = this.getBannerRequest([s], 1200, { callback: n, pageUrl: this.getGamePageUrl(), dfp: { fallback_position: e, is_fullscreen: (0, B.uo)() ? void 0 : `${o}` }, trackConversion: !0 }); return this.requestBanner(l); } bannerRequestData(e, t, n) { const r = [], a = [], i = this.isInternal(); let o; if ( (t.forEach((t) => { const { size: n, containerId: o } = t, s = Q(n); if (!s) return void a.push(new H(o, `${n} is not a valid size`)); try { this.checkContainerLimits(o); } catch (c) { return void a.push(c); } const l = this.bidders.map((t) => t.getIngameBanner(n, e, i)); try { r.push(this.selectBannerUnit(s, l, o)); } catch (c) { a.push(c); } }), r.length > 0) ) { const e = O(dn), t = this.isSelfHosted() ? this.getGamePageUrl() : void 0; o = this.getBannerRequest(r, e, { callback: n, pageUrl: t }); } return { request: o, errors: a }; } responsiveBannerRequestData(e, t, n) { const r = [], a = []; let i; if ( (t.forEach((t) => { const { id: n, width: i, height: o } = t, s = (function (e, t) { return ce.filter((n) => e >= n.width && t >= n.height).map((e) => [e.width, e.height]); })(i, o); if (0 === s.length) return void a.push(new H(n, `No available ad unit size for ${n} container`)); const l = (function (e) { return de.map((t) => ({ slotId: t, code: t, sizes: e })); })(s); try { this.checkContainerLimits(n); } catch (d) { return void a.push(d); } const c = this.bidders.map((t) => t.getResponsiveIngameBanners(s, e)); try { r.push(this.selectBannerUnit(l, c, n)); } catch (d) { a.push(d); } }), r.length > 0) ) { const e = O(dn), t = this.isSelfHosted() ? this.getGamePageUrl() : void 0; i = this.getBannerRequest(r, e, { callback: n, pageUrl: t }); } return { request: i, errors: a }; } async requestBanner(e) { await D(); const { CrazygamesAds: t } = window; t.requestAds(e.request, e.options); } isSelfHosted() { const e = (0, Z.NI)(); if ("iframe" === e.loader) { const t = e.loaderOptions && e.loaderOptions.url; return !t || t.indexOf("files.crazygames.com") >= 0; } return !0; } checkContainerLimits(e) { if (this.isBannerContainerCalledBeforeDelay(e)) throw new H(e, `A banner has already been requested for container ${e} less than ${gn / 1e3} seconds ago, please wait.`); if (this.bannerContainerCallCount[e] > 60) throw new H(e, `You have reached the maximum banner refresh call for container ${e}`); } selectBannerUnit(e, t, n) { const r = e.map((e, n) => ({ ...e, bidders: t.map((e) => e[n]) })).find((e) => !this.isAdUnitCalledBeforeDelay(e.slotId)); if (!r) throw new H(n, `No ad unit available for container ${n}, please wait ${mn / 1e3} seconds before requesting the same banner.`); (this.bannerUnitLastCall[r.slotId] = Date.now()), (this.bannerContainerLastCall[n] = Date.now()); const a = this.bannerContainerCallCount[n]; return (this.bannerContainerCallCount[n] = a ? a + 1 : 1), { ...r, code: n }; } isBannerContainerCalledBeforeDelay(e) { return ( !!this.bannerContainerLastCall[e] && this.bannerContainerLastCall[e] + (function () { if (void 0 === gn) { const e = (0, Z.NI)(); gn = e.bannerRefreshDelayInMs || 57e3; } return gn; })() > Date.now() ); } isAdUnitCalledBeforeDelay(e) { return ( !!this.bannerUnitLastCall[e] && this.bannerUnitLastCall[e] + (function () { if (void 0 === mn) { const e = (0, Z.NI)(); mn = e.adUnitDelayInMs || 3e4; } return mn; })() > Date.now() ); } async requestVideoAdUrl(e, t) { const n = e.units.map((e) => e.adUnit.code); if (z()) { const e = () => "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&overlay=1&correlator=", t = {}; return ( n.forEach((n) => { t[n] = { generator: e, bids: [{ bidder: "google", cpm: 20 }] }; }), Promise.resolve(t) ); } await D(); const r = (0, Z.NI)(), { CrazygamesAds: a } = window, i = {}; n.forEach((e) => { i[e] = (0, N.P)(); }); const o = {}, s = Math.random() < 0.5, { countryCode: l } = (0, X.bG)(), c = (0, j.Z)(), d = this.getVideoDFPKeyValues(n), u = O(cn); let p = window.setTimeout(() => { n.forEach((e) => { const t = i[e]; t && t.reject("adblock timeout hit"); }); }, 2 * u); const h = this.getGamePageUrl(); a.requestAds(e, { dollarRate: r.dollarRate, timeout: u, countryCode: (0, J.U)() ? null : l, dfp: d, disableBlockthrough: !0, video: { callback: (e, t, r) => { p && (window.clearTimeout(p), (p = null)); const a = i[t]; if (a) { const i = { generator: async (r) => { n.forEach((e) => { this.increaseVideoImpressionNumber(e); }); const a = await e(r), i = new URL(a); return s && i.searchParams.set("sz", "640x480|730x400|320x480|640x360"), this.isInternal() && !(0, J.U)() && "midroll" === t && ((this.mridxOrdinalNumber = this.mridxOrdinalNumber + 1), i.searchParams.set("mridx", `${this.mridxOrdinalNumber}`)), i.toString(); }, bids: r || [], }; (o[t] = i), a.resolve(i); } }, }, priceFloor: t, trafficSource: this.trafficSource(), bidders: [ { bidder: "google", descriptionUrl: encodeURIComponent(U.Z.crazygamesLocalizedGameUrl(r.locale || $.ZW, c)) }, { bidder: "rubicon", siteId: "156268" }, { bidder: "triplelift", discrepancy: 0.01 }, { bidder: "sharethrough", discrepancy: 0.01 }, ], pageUrl: h, }); const f = n.map((e) => i[e].promise); return await Promise.all(f), o; } trafficSource() { return ve ? "purchased" : "organic"; } getGamePageUrl() { const e = (0, Z.NI)(); return U.Z.crazygamesLocalizedGameUrl(e.locale || $.ZW, e.gameSlug); } getVideoDFPKeyValues(e) { const t = { ...this.dfpKeys(), ...this.incrementalTestDfpKeys() }, n = e.map((e) => this.getVideoImpressionNumber(e)); return { ...t, impression_number: `${Math.max(...n)}`, video_intern_timeout: "8000" }; } getVideoImpressionNumber(e) { switch (e) { case "midroll": return this.midRollImpressionNumber; case "rewarded": return this.rewardedImpressionNumber; default: return 1; } } increaseVideoImpressionNumber(e) { switch (e) { case "midroll": this.midRollImpressionNumber++; break; case "rewarded": this.rewardedImpressionNumber++; } } getBannerRequest(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; const r = this.dfpKeys(), a = (0, Z.NI)(), { countryCode: i } = (0, X.bG)(), o = this.getBannerPriceFloor(i); let s = n.callback; n.trackConversion && (s = (e) => { const { empty: t, houseAd: r, minPrice: a } = e; !t && !r && a && a > 0 && It(a), n.callback && n.callback(e); }); return { request: { units: e.map((e) => ({ adUnit: { code: e.code, mediaTypes: { banner: { sizes: e.sizes, pos: 1 } } }, slotId: e.slotId, bidders: e.bidders, banner: { callback: s } })) }, options: { disableBlockthrough: !0, pageUrl: n.pageUrl, countryCode: (0, J.U)() ? null : i, priceFloor: o, dollarRate: a.dollarRate, trafficSource: this.trafficSource(), timeout: t, dfp: { ...r, ...n.dfp, igb_timeout_ong_exp: `${t}` } } }; } getVideoRequest(e, t, n) { const r = "rewarded" === e ? 31 : 16, a = { code: e, mediaTypes: { video: { playerSize: [640, 480], context: "instream", pos: 1 } } }, i = this.isInternal(), o = this.getvideoSlotId(e, i), s = this.bidders.map((r) => (t.includes(r.bidderCode) ? { skippable: r.disabledParams(), nonSkippable: r.disabledParams() } : r.getVideoAd(e, i, n))); return { adUnit: a, slotId: o, video: { videoType: e, placements: { skippable: { maxDuration: 120, skippable: !0, bidders: s.map((e) => e.skippable) }, nonSkippable: { maxDuration: r, bidders: s.map((e) => e.nonSkippable) } } } }; } getvideoSlotId(e, t) { return (0, J.U)() ? this.videoKidsSlotId(e) : this.videoSlotId(e, t); } videoSlotId(e, t) { const n = t ? "Internal" : "External"; switch (e) { case "midroll": return `/1004887/ROS-Video-Midroll-${n}`; case "preroll": return `/1004887/ROS-Video-Preroll-${n}`; case "rewarded": return `/1004887/ROS-Video-Rewarded-${n}`; default: throw new Error(`unexpected adtype ${e}`); } } videoKidsSlotId(e) { switch (e) { case "midroll": return "/1004887/Kids-Video-Midroll-Internal"; case "preroll": return "/1004887/Kids-Video-Preroll-Internal"; case "rewarded": return "/1004887/Kids-Video-Rewarded-Internal"; default: throw new Error(`unexpected adtype ${e}`); } } isInternal() { return U.Z.isOnCrazygames(U.Z.getSafeReferrer()); } incrementalTestDfpKeys() { let e = {}; return ( Object.values(pn).forEach((t) => { e[t] = "false"; }), hn.isEnabled && (e[pn[hn.disabledBidder]] = "true"), e ); } dfpKeys() { const e = U.Z.getReferrerHostName(), t = (0, Z.NI)(), n = t.tagsEnSlugs || [], r = this.fullscreen.isFullscreen(), a = Ce(); let i, o; if (a) { const e = a.date, t = (function (e, t, n) { (0, Re.Z)(2, arguments); var r = Me(e, t) / 7; return De(null === n || void 0 === n ? void 0 : n.roundingMethod)(r); })(Date.now(), e) + 1; i = `${a.adGroup}_week${t}`; const n = (function (e) { return (0, Re.Z)(1, arguments), (0, Ae.Z)(e).getMonth(); })(e) + 1, r = n < 10 ? `0${n}` : `${n}`, s = `${(function (e) { return (0, Re.Z)(1, arguments), (0, Ae.Z)(e).getFullYear(); })(e)}`.slice(-2); o = `${a.adGroup}_${r}_${s}`; } const s = (0, Pt.Gs)(), l = ue.m.Instance.getItem(rn), c = !!l && !!JSON.parse(l); return { game_slug: (0, j.Z)(), category_slug: t.categoryEnSlug, tags_slug: n.length > 0 ? n.join(",") : void 0, game_technology: t.loader, domain: e, network_speed: (0, B.E)(), advertising_campaign: we(), is_fullscreen: (0, B.uo)() ? void 0 : `${r}`, ad_group: i, ad_group_month: o, logged_in: `${s}`, user_type: this.userType, video_muted: `${c}` }; } getBannerPriceFloor(e) { if (!e) return un.default; const t = un[e]; return void 0 !== t ? (null !== t && void 0 !== t ? t : void 0) : un.default; } }, bn = ["US"]; function yn() { if ((0, J.U)()) { if (window.location.search.includes("kids_ads")) return !0; const { countryCode: e } = (0, X.bG)(); return !(!e || !bn.includes(e)); } return !0; } const wn = ["bing.com/bingbot.htm", "Googlebot", "Storebot-Google", "Applebot", "AhrefsBot", "PetalBot"]; const Sn = function (e) { let t, { showAdOnExternal: n, showAdOnInternal: r } = e; return (0, B._W)() ? "NEVER" : ((t = U.Z.isOnCrazygames(U.Z.getSafeReferrer()) ? (void 0 === r ? "DEFAULT" : r) : n), "NEVER" === t ? "NEVER" : yn() ? ("true" === U.Z.getQueryStringValue("secretSkipPreroll") || ("undefined" !== typeof window && wn.some((e) => window.navigator.userAgent.includes(e))) ? "NEVER" : t) : "NEVER"); }, kn = { j: ["IN", "VN"] }; const xn = function () { if (!U.Z.isEmbeddedExternally() && (0, B._W)()) return P.kg.log("[VideoAds] Video Ads not supported on Edge 18"), !1; const { countryCode: e } = (0, X.bG)(); return !e || !kn.j.includes(e); }; var Cn = n(23004); const En = 3e5; const In = class { constructor(e, t, n, r) { (this.ads = e), (this.adType = t), (this.priceFloor = n), (this.device = r); } }, Pn = 14e4; const An = class extends In { constructor() { super(...arguments), (this.requestInProgress = null), (this.loopTimer = null), (this.noBidsReturnedCount = 0), (this.currentAd = null), (this.started = !1), (this.handleVisibilityChange = () => { if (!this.started) return; "visible" === window.document.visibilityState ? this.noBidsReturnedCount < 3 && this.restartLoop() : this.stopLoop(); }), (this.requestLoop = async () => { (this.loopTimer = null), await this.requestAds(["amazon", "stroeerCore"]), (this.loopTimer = window.setTimeout(this.requestLoop, Pn)); }); } init() { this.initVisibilityListener(); } start() { (this.started = !0), this.requestLoop(); } async getVastUrl() { if ((this.requestInProgress || (await this.requestAds()), this.requestInProgress && (await this.requestInProgress.promise), !this.currentAd)) throw new Error("No ad currently available"); const { generator: e, bids: t } = this.currentAd, n = await e({ tfcd: (0, J.U)() ? 1 : 0 }); return ( (this.currentAd = null), window.setTimeout(() => { this.restartLoop(); }, 31e3), { url: n, bids: t, priceFloor: this.priceFloor } ); } stopLoop() { this.loopTimer && (window.clearTimeout(this.loopTimer), (this.loopTimer = null)); } restartLoop() { this.stopLoop(), this.requestLoop(); } async requestAds() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; if (!this.requestInProgress) { this.requestInProgress = (0, Cn.PQ)(); try { var t; const n = await this.ads.requestVideo([{ adType: this.adType, disabledBidders: e }], this.priceFloor, this.device); this.checkNewBids(null === (t = n.midroll) || void 0 === t ? void 0 : t.bids) ? this.resetNoBidReturned() : this.incrementNoBidReturned(), (this.currentAd = n[this.adType] || null); } catch (n) { this.incrementNoBidReturned(), (this.currentAd = null); } this.requestInProgress.resolve(), (this.requestInProgress = null); } } initVisibilityListener() { window.addEventListener("visibilitychange", this.handleVisibilityChange); } resetNoBidReturned() { (this.noBidsReturnedCount = 0), this.loopTimer || this.restartLoop(); } incrementNoBidReturned() { this.noBidsReturnedCount++, 3 === this.noBidsReturnedCount && this.stopLoop(); } checkNewBids(e) { if (!e) return !1; const t = Date.now() - Pn + 5e3; return e.some((e) => e.requestTimestamp && e.requestTimestamp > t); } }; const Tn = class extends In { async getVastUrl() { let e, t; if ("rewarded" === this.adType) { const { generator: n, bids: r } = await this.ads.requestRewarded(this.priceFloor, this.device); (t = r), (e = await n({ tfcd: (0, J.U)() ? 1 : 0 })); } else { const { generator: n, bids: r } = await this.ads.requestMidroll(this.priceFloor, this.device); (t = r), (e = await n({ tfcd: (0, J.U)() ? 1 : 0 })); } return { url: e, bids: t, priceFloor: this.priceFloor }; } async init() {} async start() {} }; let Rn = !1; const _n = { US: 15, CA: 8, GB: 10, AU: 8, NZ: 5, DE: 6.67, FR: 6.67, NL: 6.67, AT: 6.67, ES: 6.67, CH: 6.67, IE: 6.67, EU: 5, PL: 3.33, SK: 3.33, MX: 3.33, JP: 2.5, TW: 2.5, SG: 2.5, IN: 0.41, VN: 0.41, DZ: 0.41, default: 2 }, Zn = { US: 10, GB: 8, AU: 6, CA: 5, NZ: 3, DE: 5.25, FR: 5.25, IE: 4, AT: 4, ES: 4, CH: 4, EU: 2.5, MX: 2, JP: 2, TW: 1.5, SG: 2, default: 1 }, zn = { US: 10, GB: 8, AU: 6, CA: 5, NZ: 3, DE: 5.25, FR: 5.25, IE: 4, AT: 4, ES: 4, CH: 4, EU: 2.5, MX: 2, JP: 2, TW: 1.5, SG: 2, default: 1 }; const Ln = class { constructor() { (this.ads = void 0), (this.preroll = null), (this.prerollPromise = null), (this.prerollRequestTime = null), (this.midrollProvider = null), (this.rewardedProvider = null), (this.isSdkInitialized = !1), (this.ads = new vn()); } async addConsentListener(e) { await D(); const { CrazygamesAds: t } = window; t.addTCFConsentListener(e); } async removeConsentListener(e, t) { await D(); const { CrazygamesAds: n } = window; n.removeTCFConsentListener(e); } async preloadAdsLibrary() { D().catch(() => {}); const { countryCode: e } = (0, X.bG)(); if (!xn()) return; const t = Sn((0, Z.NI)()); if (!(0, X.Ax)(e)) { const r = this.getMinimumPrerollVideoBid(e, t); try { await this.requestPreroll(r); } catch (n) {} } } getMinimumPrerollVideoBid(e, t) { const n = this.getLocalMinimumPrerollVideoBid(Rn, e, t); return this.adjustMinimumBid(n); } getMinimumMidrollVideoBid(e) { const t = this.getMinimumBid(e, Zn); return this.adjustMinimumBid(t); } getMinimumRewardedVideoBid(e) { const t = this.getMinimumBid(e, zn); return this.adjustMinimumBid(t); } requestVideoFallbackBanner(e, t) { const n = this.getDevice(); return this.ads.requestVideoFallbackBanner(e, n, t); } bannerRequestData(e, t) { const n = this.getDevice(); return this.ads.bannerRequestData(n, e, t); } responsiveBannerRequestData(e, t) { const n = this.getDevice(); return this.ads.responsiveBannerRequestData(n, e, t); } requestBanner(e) { this.ads.requestBanner(e); } async getPreroll(e) { this.prerollPromise && (await this.prerollPromise.promise); const t = this.prerollRequestTime || 0; if (!this.preroll || Date.now() - t > En) { const t = this.getDevice(); return await this.ads.requestPreroll(e, t); } const n = this.preroll; return (this.preroll = null), n; } async getMidroll() { const e = this.getMidrollProvider(); return await e.getVastUrl(); } async getRewarded() { const e = this.getRewardedProvider(); return await e.getVastUrl(); } sdkInitialized() { var e, t; if (this.isSdkInitialized) return; (this.isSdkInitialized = !0), _().catch((e) => { P.kg.err(e); }); const n = (0, Z.NI)(), r = xn(); if ( ((!n.hasMidroll && void 0 !== n.hasMidroll) || !r || (null !== (e = n.disablePooledPrebid) && void 0 !== e && e.midroll) || window.setTimeout(() => { this.getMidrollProvider().start(); }, 15e3), n.hasRewarded && r && (null === (t = n.disablePooledPrebid) || void 0 === t || !t.rewarded)) ) { this.getRewardedProvider().start(); } } hasAdblock() { return this.ads.hasAdblock(); } getDevice() { const e = (0, X.Tb)(); return e.isMobile || e.isSmallDevice ? "mobile" : e.isTablet ? "tablet" : "desktop"; } requestPreroll(e) { (this.prerollRequestTime = Date.now()), (this.prerollPromise = (0, N.P)()); const t = this.getDevice(); return ( this.ads .requestPreroll(e, t) .then((e) => { (this.preroll = e || null), this.prerollPromise.resolve(), (this.prerollPromise = null); }) .catch((e) => { this.prerollPromise.reject(e); }), this.prerollPromise.promise ); } getMinimumBid(e, t) { return e ? (void 0 !== t[e] ? t[e] : void 0 !== t.EU && (0, X.Ax)(e) ? t.EU : t.default) : t.default; } getLocalMinimumPrerollVideoBid(e, t, n) { return e ? 50 : "ALWAYS" === n ? zn.default : this.getMinimumBid(t, _n); } adjustMinimumBid(e) { const t = (0, X.Tb)(); return t.isSafari || t.isOpera || t.isFirefox ? 0.6 * e : e; } getMidrollProvider() { if (!this.midrollProvider) { return this.initMidrollProvider(); } return this.midrollProvider; } getRewardedProvider() { if (!this.rewardedProvider) { return this.initRewardedProvider(); } return this.rewardedProvider; } initMidrollProvider() { var e; const t = (0, Z.NI)(), { countryCode: n } = (0, X.bG)(), r = this.getDevice(); return null !== (e = t.disablePooledPrebid) && void 0 !== e && e.midroll ? ((this.midrollProvider = new Tn(this.ads, "midroll", this.getMinimumMidrollVideoBid(n), r)), this.midrollProvider.init()) : ((this.midrollProvider = new An(this.ads, "midroll", this.getMinimumMidrollVideoBid(n), r)), this.midrollProvider.init()), this.midrollProvider; } initRewardedProvider() { var e; const t = (0, Z.NI)(), { countryCode: n } = (0, X.bG)(), r = this.getDevice(); return null !== (e = t.disablePooledPrebid) && void 0 !== e && e.rewarded ? ((this.rewardedProvider = new Tn(this.ads, "rewarded", this.getMinimumRewardedVideoBid(n), r)), this.rewardedProvider.init()) : ((this.rewardedProvider = new An(this.ads, "rewarded", this.getMinimumRewardedVideoBid(n), r)), this.rewardedProvider.init()), this.rewardedProvider; } }; let Mn; const Fn = function () { return Mn || (Mn = new Ln()), Mn; }; var Dn = n(1168), Nn = n(99187); class jn extends r.Component { render() { const { showCrazyLogo: e, children: t } = this.props, n = (0, Cn.tn)(); return Dn.createPortal((0, d.jsx)(Nn.Z, { showCrazyLogo: e, isTransparent: !0, children: t }), n); } } let On; function Bn() { if (void 0 === On) { const e = "sdk_debug", t = window.location.search.indexOf(`${e}=true`) >= 0, n = !!(0, Z.NI)().sdkDebug; On = t || n; } return On; } const Un = function (e) { if (Bn()) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; P.kg.log(`[SDK] ${e}`, ...n); } }; var $n = n(96607); const Gn = "disable_banner_check"; const Vn = class { constructor() { (this.initialized = !1), (this.options = void 0), (this.version = void 0); } init(e) { if (this.isInitialized()) return; Un("Initializing SDK", e), e.wrapper ? ("unity" === e.wrapper.engine ? $n.Z.sdkInit("unity5.6", e.wrapper.sdkVersion) : $n.Z.sdkInit(e.wrapper.engine, e.wrapper.sdkVersion)) : $n.Z.sdkInit(e.sdkType, e.version), (this.initialized = !0), (this.options = e); const t = this.parseVersion(e.version); if (!t) throw ((this.initialized = !1), new Error(`Incorrect version ${e.version}`)); (this.version = t), Fn().sdkInitialized(); } requestAd(e) { di().requestAd(e); } happytime() { di().happytime(); } gameplayStart() { di().gameplayStart(); } gameplayStop() { di().gameplayStop(); } sdkGameLoadingStart() { di().sdkGameLoadingStart(); } sdkGameLoadingStop() { di().sdkGameLoadingStop(); } requestInviteUrl(e) { di().requestInviteUrl(e); } isInitialized() { return this.initialized; } getSDKComponent() { return di(); } parseVersion(e) { if (!e) return null; const t = e.split("."); if (3 === t.length) { const [e, n, r] = t; return { major: Number(e), minor: Number(n), patch: Number(r) }; } return null; } async runAdblock() { if (this.version.major <= 1 && this.version.minor <= 3) return; const e = await this.userHasAdblock(); this.adblockDetected(e); } userHasAdblock() { return Fn().hasAdblock(); } getGameLink() { return (0, Z.NI)().gameLink || `https://www.crazygames.com/game/${(0, j.Z)()}`; } }; var qn = n(49889), Wn = n(37921), Hn = n(20503); const Kn = (e) => { const { data: t, type: n } = e.data; switch (n) { case "init": case "init-js-sdk": lr({ ...t, source: e.source, origin: e.origin }); } }; let Yn = !1; const Qn = (e) => { const { type: t } = e.data; if ("userAccountAvailableResponse" === t) (Yn = !0), window.removeEventListener("message", Qn); }; function Xn() { const { sdkDataSaveIntervalMs: e, categoryEnSlug: t } = (0, Z.NI)(); return e || ("clicker" === t ? 3e4 : 1e3); } window.addEventListener("message", Qn), $n.Z.requestUserAccountAvailable(); const Jn = class extends Vn { constructor() { super(...arguments), (this.source = void 0), (this.origin = void 0), (this.forwardToPortalMessageTypes = ["requestUserToken", "addScore", "requestXsollaUserToken", "hasAdblock", "clearBanner", "clearAllBanners", "addAuthListener", "removeAuthListener", "getEnvironment", "isUserAccountAvailable", "isQATool", "useDataModule", "getUser", "showAccountLinkPrompt"]), (this.forwardToSDKMessageTypes = ["showAuthPromptResponse", "requestGameDataResponse", "requestUserTokenResponse", "requestXsollaUserTokenResponse", Hn.p]), (this.postEvent = (e, t) => { const n = { type: e, ...(t || {}), messageTarget: "sdk" }; this.source.postMessage(n, this.origin); }), (this.receiveMessage = (e) => { const { type: t, data: n } = e.data; if ("sdk" !== e.data.messageTarget) { switch (t) { case "init-js-sdk": case "init": break; case "requestAd": this.handleRequestAd(n); break; case "inviteUrl": this.handleInviteUrl(n); break; case "happytime": this.happytime(); break; case "gameplayStart": this.gameplayStart(); break; case "gameplayStop": this.gameplayStop(); break; case "sdkGameLoadingStart": this.sdkGameLoadingStart(); break; case "sdkGameLoadingStop": this.sdkGameLoadingStop(); break; case "requestBanner": this.handleRequestBanner(n); break; case "requestResponsiveBanner": this.handleRequestResponsive(n); break; case "showAuthPrompt": (0, qn.A)(); break; case "showAccountLinkPrompt": this.showAccountLinkPrompt(); break; case "bannerProcessed": const { containerId: e, width: t, height: r, error: a } = n; $n.Z.bannerResult(e, t, r, a); break; case "requestUserToken": $n.Z.requestUserToken(); break; case "addScore": $n.Z.addScore(); break; case "requestXsollaUserToken": $n.Z.requestXsollaUserToken(); break; case "getSystemInfo": $n.Z.getSystemInfo(); break; case "getUser": $n.Z.getUser(); break; case "useDataModule": const { action: i } = n; $n.Z.dataModuleUsage(i); } if (this.forwardToPortalMessageTypes.includes(t)) { this.forwardToPortalMessageTypes; const e = t, r = n; $n.Z.forwardToPortal(e, r); } else if (this.forwardToSDKMessageTypes.includes(t)) { const e = n; this.postEvent(t, e); } } }); } init(e) { if (this.isInitialized()) return this.initializeReply(), void this.runAdblock(); $n.Z.gfLoaded(), super.init(e), (this.source = e.source), (this.origin = e.origin), this.registerEventHandlers(), this.initializeReply(), this.runAdblock(); } adStarted() { this.postEvent("adStarted"); } adError(e, t) { this.postEvent("adError", { error: e, errorData: t }); } adCompleted() { this.postEvent("adCompleted"); } adFinished() { this.postEvent("adFinished"); } adblockDetected(e) { this.source.postMessage({ type: "adblockDetectionExecuted", hasAdblock: e, messageTarget: "sdk" }, this.origin); } postMessageToSdk(e, t) { this.source.postMessage({ type: e, data: t, messageTarget: "sdk" }, this.origin); } showAccountLinkPrompt() { $n.Z.showAccountLinkPrompt(), this.getSDKComponent().showLinkAccountModal(); } registerEventHandlers() { window.addEventListener("message", this.receiveMessage); } handleRequestAd(e) { const { adType: t } = e; switch (t) { case "midgame": case "rewarded": this.requestAd(t); break; default: return; } } handleInviteUrl(e) { this.requestInviteUrl(e.inviteUrl); } getDataModuleConfig() { return { isEnabled: "sdkps" === (0, Z.NI)().aps, saveIntervalMs: Xn() }; } async initializeReply() { const e = (0, Z.NI)(), t = { gameLink: this.getGameLink(), rafvertizingUrl: M(), useTestAds: !!e.forceTestAds, userInfo: (0, X.So)(), systemInfo: (0, X.So)(), debug: "true" === U.Z.getQueryStringValue("sdk_debug"), disableBannerCheck: !!e.disableBannerCheck || "true" === U.Z.getQueryStringValue(Gn), gameId: e.gameId, locale: e.locale || "en_US", userAccountAvailable: Yn, isQaTool: (0, Wn.v)(e.source), dataModule: this.getDataModuleConfig() }; this.source.postMessage({ type: "initialized", data: t, messageTarget: "sdk" }, this.origin); } handleRequestBanner(e) { if (!e || 0 === e.length) return; e.forEach((e) => { const [t, n] = e.size.split("x").map((e) => parseInt(e)); $n.Z.banner(t, n); }); const t = Fn(), { request: n, errors: r } = t.bannerRequestData(e); n && this.postEvent("requestBanner", { request: n }), r.forEach((t) => { this.postEvent("bannerError", { containerId: t.id, error: t.message }); const n = e.find((e) => e.containerId === t.id); if (!n) return; const [r, a] = Y(n.size); $n.Z.bannerResult(n.containerId, r, a, t.message); }); } inGameBannerError(e, t) { this.postEvent("bannerError", { containerId: e, error: t }); } inGameBannerRendered(e) { this.postEvent("bannerRendered", { containerId: e }); } handleRequestResponsive(e) { e.forEach((e) => { $n.Z.responsiveBanner(e.width, e.height); }); const t = Fn(), { request: n, errors: r } = t.responsiveBannerRequestData(e); n && this.postEvent("requestBanner", { request: n }), r.forEach((e) => this.postEvent("bannerError", { containerId: e.id, error: e.message })); } }; class er { constructor(e) { (this.internalEvent = void 0), (this.internalEvent = new Event(e)); } dispatch() { document.dispatchEvent(this.internalEvent); } } class tr extends er { constructor() { super("CrazySDK_AdStarted"); } } class nr extends er { constructor() { super("CrazySDK_AdFinished"); } } class rr extends er { constructor() { super("CrazySDK_AdCompleted"); } } class ar extends er { constructor() { super("CrazySDK_AdError"); } } const ir = class extends Vn { adCompleted() { new rr().dispatch(); } adStarted() { new tr().dispatch(); } adFinished() { new nr().dispatch(); } adError() { new ar().dispatch(); } adblockDetected(e) {} inGameBannerError(e) {} inGameBannerRendered(e) {} postMessageToSdk() {} }; const or = class extends Vn { constructor() { super(...arguments), (this.crazySDKObjectName = void 0), (this.pointerLockElement = null); } init(e) { if (this.isInitialized()) return !0; if ((super.init(e), "unity-lite" === e.sdkType)) return !0; const { crazySDKObjectName: t } = e; return t ? ((this.crazySDKObjectName = t), this.runAdblock(), this.initUnitySDK(), !0) : (P.kg.error("[CrazySDK] Missing crazySDKObjectName", e), !1); } initUnitySDK() { const e = { gameLink: this.getGameLink(), userInfo: (0, X.So)() }; this.sendMessage("InitCallback", JSON.stringify(e)); } adStarted() { (this.pointerLockElement = this.getPointerLockedElement()), this.pointerLockElement && this.exitPointerLock(), this.eventHandler("adStarted"); } adCompleted() { this.eventHandler("adCompleted"); } adError(e, t) { this.eventHandler("adError", { error: e, message: t.message, reason: t.reason }); } adFinished() { this.pointerLockElement && this.requestPointerLock(this.pointerLockElement), this.eventHandler("adFinished"); } adblockDetected(e) { const t = e ? "AdblockDetected" : "AdblockNotDetected"; this.sendMessage(t, void 0); } inGameBannerError(e, t) { this.eventHandler("inGameBannerError", { id: e, error: t }); } inGameBannerRendered(e) { this.eventHandler("inGameBannerRendered", { id: e }); } postMessageToSdk() {} sendMessage(e, t) { const n = this.getSDKComponent().getUnityInstance(); n && this.crazySDKObjectName && n.SendMessage(this.crazySDKObjectName, e, t); } eventHandler(e, t) { this.version.major >= 2 ? this.sendMessage("AdEvent", JSON.stringify({ name: e, ...t })) : this.sendMessage("AdEvent", e); } getPointerLockedElement() { return document.pointerLockElement || null; } exitPointerLock() { document.exitPointerLock && document.exitPointerLock(); } requestPointerLock(e) { e && e.requestPointerLock && e.requestPointerLock(); } }; let sr; window.addEventListener( "message", function (e) { "checkCrazyGamesGF" === e.data.type && e.source.postMessage({ type: "crazyGamesGFConfirmation" }, e.origin); }, !1 ); const lr = function (e) { if (sr) return sr.init(e), sr; const t = (function (e) { const { sdkType: t, version: n } = e; switch (t) { case "unity5.6": case "unity-lite": return new or(); case "js": return new Jn(); default: if ("1.0.0" === n && !t) return P.kg.warn("[SDK] Using old Unity SDK, please upgrade your implementation"), new or(); throw new Error(`[SDK] Unsupported SDKType ${t}`); } })(e); return t.init(e), (sr = t), t; }; function cr(e) { const t = ur(e.size), n = pr(), r = (function (e) { const t = (0, je.$7)(), n = { x: e.anchor.x * t.clientWidth, y: (1 - e.anchor.y) * t.clientHeight }, r = pr(), a = ur(e.size), i = { width: a.width * r, height: a.height * r }, o = e.pivot || { x: 0.5, y: 0.5 }; return { x: n.x + e.position.x * r - i.width * o.x, y: n.y - e.position.y * r - i.height * (1 - o.y) }; })(e); return { width: t.width, height: t.height, top: r.y, left: r.x, scale: n }; } function dr(e) { return `crazy-banner-${e}`; } function ur(e) { switch (e) { case "300x250": return { width: 300, height: 250 }; case "320x50": return { width: 320, height: 50 }; case "728x90": return { width: 728, height: 90 }; case "320x100": return { width: 320, height: 100 }; case "468x60": return { width: 468, height: 60 }; } } function pr() { return (0, je.$7)().clientWidth / 922; } var hr = n(38459); const fr = r.createContext({ banners: [], bannerError: () => {}, bannerRendered: () => {} }); const mr = function (e) { return (t) => (0, d.jsx)(fr.Consumer, { children: (n) => (0, d.jsx)(e, { ...t, ...n }) }); }; var gr = n(80936), vr = n.n(gr); class br extends r.Component { constructor(e) { super(e), (this.adProvider = void 0), (this.handleResize = () => { this.setState({ width: window.innerWidth, height: window.innerHeight }); }), (this.adProvider = Fn()), (this.state = { width: window.innerWidth, height: window.innerHeight }); } componentDidMount() { window.addEventListener("resize", vr()(this.handleResize, 200)), this.handleBannersUpdated([]); } componentWillUnmount() { window.removeEventListener("resize", this.handleResize); } componentDidUpdate(e) { this.handleBannersUpdated(e.banners); } handleBannersUpdated(e) { const t = this.props.banners.filter((t) => !e.find((e) => t.id === e.id)); if (0 === t.length) return; const n = t.filter((e) => { if ( !(function (e) { const t = cr(e); if ((0, Z.NI)().disableBannerCheck || "true" === U.Z.getQueryStringValue(Gn)) return !0; const n = t.left + t.width * t.scale, r = t.top + t.height * t.scale; return !(t.top < -4 || t.left < -4 || n > window.innerWidth + 4 || r > window.innerHeight + 4); })(e) ) { const [t, n] = Y(e.size); return this.props.bannerError(e.id, t, n, "Banner is not entirely visible"), !1; } return !0; }); this.requestBanners(n); } render() { return this.props.banners.length > 0 ? this.renderBanners() : null; } requestBanners(e) { const t = e.map((e) => ({ containerId: dr(e.id), size: e.size })), { request: n, errors: r } = this.adProvider.bannerRequestData(t, (t) => { const n = e.find((e) => dr(e.id) === t.code); if (!n) return; const [r, a] = Y(n.size); if (t.empty) { if (this.shouldDisplayTestAds()) { const e = this.props.banners.find((e) => dr(e.id) === t.code); return void (e && (this.renderPlaceholder(e), this.props.bannerRendered(e.id, r, a))); } const e = `Sorry, no banner is available for the moment for ${t.code}, please retry`; this.props.bannerError(n.id, r, a, e); } else this.props.bannerRendered(n.id, r, a); }); n && this.adProvider.requestBanner(n), r.forEach((t) => { const n = e.find((e) => e.id === t.id); if (!n) return; const [r, a] = Y(n.size); this.props.bannerError(n.id, r, a, t.message); }); } renderBanners() { return (0, d.jsx)(d.Fragment, { children: this.props.banners.map((e) => { const t = cr(e); return (0, d.jsx)("div", { id: dr(e.id), style: { width: `${t.width}px`, height: `${t.height}px`, position: "absolute", top: `${t.top}px`, left: `${t.left}px`, transform: `scale(${t.scale})`, transformOrigin: "top left", userSelect: "none" } }, e.id); }), }); } renderPlaceholder(e) { const [t, n] = e.size.split("x"), r = document.getElementById(dr(e.id)); if (!r) return; r.innerHTML = ""; const a = document.createElement("img"); a.setAttribute("src", (0, hr.Z)(`crazygames-sdk/${e.size}.png`, { w: parseInt(t), h: parseInt(n) })), r.appendChild(a); } shouldDisplayTestAds() { return (0, Z.NI)().forceTestAds; } } const yr = mr(br); var wr = n(6224), Sr = n(91815), kr = n(58684), xr = n(16782); const Cr = (e) => { let { onCancelClick: t, onOkClick: n, gameName: r } = e; return (0, d.jsx)(kr.u_, { children: (0, d.jsxs)(kr.hz, { children: [(0, d.jsx)(xr.o, { onClick: t }), (0, d.jsx)(kr.r6, { children: (0, d.jsx)(zt.Z, { id: "linkAccountModal.title" }) }), (0, d.jsx)(kr.iO, { children: (0, d.jsx)(zt.Z, { id: "linkAccountModal.text", values: { gameName: r } }) }), (0, d.jsxs)(kr.O2, { onClick: n, children: [(0, d.jsx)(Sr.Z, {}), (0, d.jsx)(zt.Z, { id: "linkAccountModal.yes" })] }), (0, d.jsx)(kr.IB, { onClick: t, children: (0, d.jsx)(zt.Z, { id: "linkAccountModal.no" }) })] }) }); }; var Er = n(1247); function Ir(e) { throw new Error("[VideoAddThrotter] No Context Initialized"); } const Pr = r.createContext({ canPlayAd: Ir, adPlayed: Ir, adErrored: Ir }), Ar = 18e4; class Tr extends r.Component { constructor(e) { super(e), (this.lostFocusAt = Date.now()), (this.adPlayed = (e) => { if ((this.setLastPlayedValue(e, Date.now()), "preroll" === e)) { const { noMidrollAdInFirstMinutes: e } = (0, Z.NI)(), t = this.minTimeBetweenAds("midroll"), n = Math.max(6e4 * (e || 0), t); this.setLastPlayedValue("midroll", Date.now() - t + n); } else if ("rewarded" === e) { const e = this.minTimeBetweenAds("midroll"), t = 6e4, n = Date.now() - e + t, r = Math.max(this.state.lastAdPlayedAt.midroll, n); this.setLastPlayedValue("midroll", r); } }), (this.adErrored = (e) => { if ("midroll" === e) { const { timeAfterFailedMidrollInMs: t } = (0, Z.NI)(), n = this.minTimeBetweenAds(e), r = null !== t && void 0 !== t ? t : 6e4; this.setLastPlayedValue(e, Date.now() - n + r); } else this.setLastPlayedValue(e, 0); }), (this.canPlayAd = (e) => "preroll" === e || Date.now() - this.state.lastAdPlayedAt[e] >= this.minTimeBetweenAds(e)), (this.minTimeBetweenAds = (e) => { const { minTimeBetweenMidrollAdsInMs: t, minTimeBetweenRewardedAdsInMs: n } = (0, Z.NI)(); switch (e) { case "rewarded": return n || 5e3; case "midroll": return t || Ar; default: return Ar; } }), (this.handleMidrollVisibilityChange = () => { if (!("visible" === window.document.visibilityState)) return void (this.lostFocusAt = Date.now()); if ((Date.now() - this.lostFocusAt) / 6e4 < 1) return; const e = Math.max(this.state.lastAdPlayedAt.midroll, Date.now()); this.setLastPlayedValue("midroll", e); }), (this.state = { lastAdPlayedAt: { preroll: 0, midroll: this.initialLastAdTime("midroll"), rewarded: this.initialLastAdTime("rewarded") } }); } componentDidMount() { window.addEventListener("visibilitychange", this.handleMidrollVisibilityChange); } componentWillUnmount() { window.removeEventListener("visibilitychange", this.handleMidrollVisibilityChange); } render() { const { children: e } = this.props; return (0, d.jsx)(Pr.Provider, { value: { canPlayAd: this.canPlayAd, adPlayed: this.adPlayed, adErrored: this.adErrored }, children: e }); } setLastPlayedValue(e, t) { this.setState((n) => ({ lastAdPlayedAt: { ...n.lastAdPlayedAt, [e]: t } })); } initialLastAdTime(e) { const t = (0, Z.NI)(), { noMidrollAdInFirstMinutes: n, noRewardedAdInFirstMinutes: r } = t, a = "rewarded" === e ? r : n; if (void 0 !== a) { const t = this.minTimeBetweenAds(e); return Date.now() - t + 6e4 * a; } return 0; } } const Rr = Tr; function _r() { throw new Error("SDK is not available"); } const Zr = r.createContext({ adState: "none", adType: null, adStarted: _r, adFinished: _r, adCompleted: _r, adError: _r }); class zr extends r.Component { constructor(e) { super(e), (this.unityInstance = void 0), (this.adFinishedListeners = []), (this.addAdFinishedListener = (e) => { this.adFinishedListeners.push(e); }), (this.removeAdFinishedListener = (e) => { this.adFinishedListeners = this.adFinishedListeners.filter((t) => t !== e); }), (this.postMessageToSdk = (e, t) => { sr && this.getSDK().postMessageToSdk(e, t); }), (this.showLinkAccountModal = () => { this.setState({ linkAccountModalVisible: !0 }); }), (this.adStarted = () => { this.getSDK().adStarted(), Un("event adStarted"), $n.Z.adStarted(this.state.adType), this.setState({ adState: "playing" }); }), (this.adFinished = () => { this.getSDK().adFinished(), Un("event adFinished"), this.adFinishedListeners.forEach((e) => e()), $n.Z.adFinished(this.state.adType), this.adStopped(); }), (this.adCompleted = () => { this.getSDK().adCompleted(), Un("event adCompleted"); }), (this.adError = (e) => { const { message: t } = e; this.getSDK().adError(t, { reason: this.getErrorReason(e), message: t }), Un("event adError", t), this.adStopped(), $n.Z.adFinished(this.state.adType, t); }), (this.inGameBannerError = (e, t, n, r) => { this.getSDK().inGameBannerError(e, r), $n.Z.bannerResult(e, t, n, r), Un("In-game banner error", e, r); }), (this.inGameBannerRendered = (e, t, n) => { this.getSDK().inGameBannerRendered(e), $n.Z.bannerResult(e, t, n), Un("In-game banner rendered", e); }), (this.onClickOK = () => this.closeLinkAccountModal("yes")), (this.onClickCancel = () => this.closeLinkAccountModal("no")), (this.closeLinkAccountModal = (e) => { const t = { response: e }; this.setState({ linkAccountModalVisible: !1 }), this.getSDK().postMessageToSdk("linkAccountResponse", t); }), (this.state = { adState: "none", adType: null, inGameBanners: [], linkAccountModalVisible: !1 }), (this.unityInstance = null); } componentDidMount() { !(function () { const e = (0, Z.NI)().loader; ["iframe", ...Z.j9].includes(e) && window.addEventListener("message", Kn); })(); } componentWillUnmount() { window.removeEventListener("message", Kn); } render() { const { gameName: e } = (0, Z.NI)(); return (0, d.jsx)(Zr.Provider, { value: { adState: this.state.adState, adType: this.state.adType, adFinished: this.adFinished, adCompleted: this.adCompleted, adStarted: this.adStarted, adError: this.adError }, children: (0, d.jsxs)(fr.Provider, { value: { banners: this.state.inGameBanners, bannerRendered: this.inGameBannerRendered, bannerError: this.inGameBannerError }, children: [this.renderInGameBanners(), this.props.children, this.state.linkAccountModalVisible && (0, d.jsx)(Cr, { onCancelClick: this.onClickCancel, onOkClick: this.onClickOK, gameName: e })] }) }); } renderInGameBanners() { const e = (0, Z.NI)(); if (!Z.eE.includes(e.loader) || 0 === this.state.inGameBanners.length) return null; const t = (0, Cn.$7)(); return Dn.createPortal((0, d.jsx)(yr, {}), t); } requestAd() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "midgame"; if (!yn()) return void Un("Ads are disabled"); if ((0, J.U)() && !xn()) return void Un("Ads are disabled"); const { adState: t } = this.state; switch (e) { case "midgame": $n.Z.midgameAd(); break; case "rewarded": $n.Z.rewardedAd(); } switch (t) { case "none": const n = this.getInternalAdtype(e); Ne.GA.Instance.trackVideoAdRequested(n), Un(`requesting ad ${n}`), this.setState({ adState: "requested", adType: n }); break; case "requested": case "playing": break; default: throw new Error(`[SDK] Unexpected AdState ${t}`); } } requestInGameBanner(e) { (0, J.U)() ? Un("Ads are disabled on kids site") : (e && e.length > 0 && e.forEach((e) => { const [t, n] = e.size.split("x").map((e) => parseInt(e)); $n.Z.banner(t, n); }), this.setState({ inGameBanners: e })); } happytime() { Un("Cheers it's happy time!"), $n.Z.happytime(); } gameplayStart() { Un("Gaming phase is starting."), $n.Z.gameplayStart(); } async gameplayStop() { Un("Gaming phase is finished."), $n.Z.gameplayStop(), Er.n.Instance.autoSyncUnityData(); } sdkGameLoadingStart() { Un("Loading of the game has started."), $n.Z.sdkGameLoadingStart(); } sdkGameLoadingStop() { Un("Loading of the game is finished."), $n.Z.sdkGameLoadingStop(); } setUnityInstance(e) { this.unityInstance = e; } getUnityInstance() { return this.unityInstance; } requestInviteUrl(e) { $n.Z.inviteLink(e); } getInternalAdtype(e) { const { canPlayAd: t } = this.props; return t(Hr(e)) ? e : "rewarded" !== e && wr.ZP.shouldShowPWAPrompt() ? "pwa-popup" : e; } adStopped() { Ne.GA.Instance.trackBackToGame(this.state.adType), this.setState({ adState: "none", adType: null }); } getSDK() { return sr || ((sr = new ir()), sr.init({ version: "1.0.0", sdkType: "unity5.6-legacy" }), P.kg.warn("[SDK] SDK not initialized, falling back to legacy SDK")), sr; } getErrorReason(e) { return e instanceof vt ? "unfilled" : "other"; } } const Lr = r.forwardRef((e, t) => { const n = r.useContext(Pr); return (0, d.jsx)(zr, { canPlayAd: n.canPlayAd, ref: t, ...e }); }), Mr = (0, Ge.ZP)("div", { shouldForwardProp: (e) => "isDisplaying" !== e })((e) => { let { isDisplaying: t } = e; return { position: "absolute", display: "flex", flexDirection: "column", [`@media screen and (orientation:landscape) and (max-height: ${Kt.ot.smallMobileLandscapeHeight}px)`]: { flexDirection: "row" }, alignItems: "center" }; }), Fr = (0, Ge.ZP)(ot.ZP, { shouldForwardProp: (e) => "isDisplaying" !== e })((e) => { let { isDisplaying: t, theme: { spacing: n }, } = e; return { fontSize: "1.5rem", fontWeight: 700, [`@media screen and (orientation:landscape) and (max-height: ${Kt.ot.smallMobileLandscapeHeight}px)`]: { fontSize: "1rem" }, display: t ? "flex" : "none", [`@media screen and (min-height: ${Kt.ot.smallMobileLandscapeHeight}px)`]: { paddingBottom: n(2) } }; }); var Dr = n(82259), Nr = n(32606); class jr extends r.Component { constructor(e) { super(e), (this.adContainerRef = void 0), (this.countdownInterval = null), (this.adProvider = void 0); const t = q(this.getDevice()).code; (this.state = { adState: "initialize", countdownSec: 5, bannerCode: t }), (this.adContainerRef = r.createRef()), (this.adProvider = Fn()); } async componentDidMount() { await this.requestAd(); } async componentWillUnmount() { this.stopCountdown(); } render() { switch (this.state.adState) { case "requested": case "displaying": return this.renderAd(); default: return this.renderContent(); } } renderContent() { return (0, d.jsx)(d.Fragment, { children: this.props.children }); } renderAd() { const e = !["displaying", "error", "complete"].includes(this.state.adState); return (0, d.jsxs)(_t, { children: [this.renderBannerContainer(), (0, d.jsx)(gt, { adContainerRef: this.adContainerRef, adIsLoading: e })] }); } renderBannerContainer() { const e = "displaying" === this.state.adState, t = () => { this.setState({ adState: "complete" }), this.props.adCompleted && this.props.adCompleted(), this.props.adFinished && this.props.adFinished(); }; let n; return (n = 0 === this.state.countdownSec ? (0, d.jsx)(Dr.S, { variant: "contained", height: 50, color: "purple", onClick: t, sx: { minWidth: 200 }, children: (0, d.jsx)(zt.Z, { id: "banner.continue" }) }) : (0, d.jsx)(Dr.S, { variant: "contained", height: 50, color: "grey", disabled: !0, sx: { minWidth: 200, color: "white !important", backgroundColor: `${Nr.D.black[40]} !important` }, children: (0, d.jsx)(zt.Z, { id: "banner.continueIn", values: { time: this.state.countdownSec } }) })), (0, d.jsxs)(Mr, { isDisplaying: e, children: [(0, d.jsxs)(ot.ZP, { container: !0, item: !0, direction: "column", alignItems: "center", style: { width: "max-content", alignSelf: "center" }, children: [(0, d.jsx)(Fr, { isDisplaying: e, children: (0, d.jsx)(zt.Z, { id: "banner.advertisement" }) }), (0, d.jsx)("div", { id: this.state.bannerCode })] }), e && (0, d.jsx)(ot.ZP, { item: !0, sx: { mt: 3 }, children: n })] }); } stopCountdown() { this.countdownInterval && (clearInterval(this.countdownInterval), (this.countdownInterval = null)); } startCountdown() { this.countdownInterval = window.setInterval(() => { const e = this.state.countdownSec - 1; this.setState({ countdownSec: e }), 0 !== e || this.stopCountdown(); }, 1e3); } async requestAd() { if (["requested", "displaying"].includes(this.state.adState)) return; this.setState({ adState: "requested" }); const e = window.setTimeout(() => { "requested" === this.state.adState && (P.kg.debug("[FallbackBanner] banner timeout hit"), this.setState({ adState: "error" }), this.props.adError && this.props.adError(new yt())); }, 2500), { adType: t } = this.props; await this.adProvider.requestVideoFallbackBanner(t, (t) => { let { empty: n } = t; if ("requested" === this.state.adState) { if ((window.clearTimeout(e), n)) return this.setState({ adState: "error" }), void (this.props.adError && this.props.adError(new vt())); this.setState({ adState: "displaying" }), this.props.adStarted && this.props.adStarted(), this.startCountdown(); } }); } getDevice() { const { device: e } = this.props; return e.isMobile || e.isSmallDevice ? "mobile" : e.isTablet ? "tablet" : "desktop"; } } const Or = (0, nn.Z)(jr), Br = (e) => { let { children: t, requestFn: n, adType: a, adError: i, adStarted: o, ...s } = e; const [l, c] = r.useState(null), u = r.useRef([]), p = r.useRef(0); r.useEffect(() => { l || (async () => { try { const { url: e, bids: t, priceFloor: r } = await n(); (u.current = t), (p.current = r), c(e); } catch (e) { i && i(e, { playing: !1 }); } })(); }, [n, i, l]); const h = () => { const e = u.current.map((e) => e.cpm), t = Math.max(...e, p.current); t > 0 && It(t), o && o(); }; return l ? (0, d.jsx)(on, { videoUrl: l, adType: a, adError: i, adStarted: h, ...s, children: t }) : (0, d.jsx)(d.Fragment, { children: t }); }; var Ur = n(55965); const $r = r.lazy(() => n.e(6164).then(n.bind(n, 96164))); class Gr extends Error { constructor() { super("Ad requested too soon"); } } class Vr extends r.Component { constructor(e) { super(e), (this.adStarted = () => { const { adStarted: e, adType: t, adPlayed: n } = this.props; n(t), e && e(); }), (this.videoAdStarted = () => { this.adStarted(), this.props.videoAdStarted && this.props.videoAdStarted(); }), (this.adCompleted = () => { const { adCompleted: e } = this.props; e && e(); }), (this.adFinished = () => { const { adFinished: e } = this.props; this.setState({ adPlayState: "finished" }), e && e(); }), (this.closeAdBlockPopup = () => { this.adError(new wt()); }), (this.fallbackAdError = async (e) => { if ("displayingBanner" === this.state.adPlayState && "rewarded" === this.props.adType) { (await this.shouldRenderAdBlockPopup()) ? (P.kg.debug("[ThrottledAd] Rendering adBlock popup"), this.setState({ adPlayState: "displayingAdBlockPopUp" })) : (P.kg.debug("[ThrottledAd] Rendering Countdown"), this.setState({ adPlayState: "displayingCountdown" })); } else this.adError(e); }), (this.videoAdError = (e, t) => { const { fallback: n = "enabled", adType: r } = this.props, a = "disabled" !== n; "playingVideo" !== this.state.adPlayState || t.playing ? this.adError(e) : a ? (P.kg.debug("[ThrottledAd] Rendering Fallback banner"), this.setState({ adPlayState: "displayingBanner" })) : "rewarded" === r ? this.setState({ adPlayState: "displayingCountdown" }) : this.adError(e); }), (this.adError = (e) => { const { adError: t, adErrored: n, adType: r } = this.props; this.setState({ adPlayState: "error" }, () => { n(r), t && t(e); }); }), (this.shouldRenderAdBlockPopup = async () => { if ((0, B.uo)()) return !1; return ( (await Fn() .hasAdblock() .catch(() => {})) || !1 ); }), (this.state = { adPlayState: "init" }); } componentDidMount() { const { adType: e, canPlayAd: t } = this.props; t(e) ? (this.allowedToPlayVideo() ? this.setState({ adPlayState: "playingVideo" }) : this.setState({ adPlayState: "displayingBanner" })) : (this.setState({ adPlayState: "throttled" }), this.adThrottleLimit()); } render() { const { wrapper: e } = this.props, t = this.renderChildren(); return r.cloneElement(e, {}, t); } renderChildren() { const { play: e, adType: t } = this.props, { adPlayState: n } = this.state; switch (n) { case "init": case "throttled": case "finished": case "error": return null; case "playingVideo": return this.renderVideo(); case "displayingBanner": return e ? (0, d.jsx)(Or, { adStarted: this.adStarted, adFinished: this.adFinished, adError: this.fallbackAdError, adCompleted: this.adCompleted, adType: t }) : null; case "displayingCountdown": return (0, d.jsx)(Ur.Z, { callbackFn: this.adFinished, onStarted: this.adStarted }); case "displayingAdBlockPopUp": return (0, d.jsx)($r, { callbackFn: this.closeAdBlockPopup }); default: throw new Error("[ThrottledAd] Unexpected state"); } } renderVideo() { const { children: e, adType: t, videoUrl: n, requestFn: r, play: a, preload: i, fullSize: o } = this.props; return n ? (0, d.jsx)(on, { adStarted: this.videoAdStarted, adFinished: this.adFinished, adError: this.videoAdError, adType: t, adCompleted: this.adCompleted, videoUrl: n, enforceSkipButton: !0, skipIfLongerThanSeconds: "rewarded" === t ? 31 : 16, skippableAfterSeconds: 5, play: a, preload: i, fullSize: o, children: e }) : r ? (0, d.jsx)(Br, { adStarted: this.videoAdStarted, adFinished: this.adFinished, adError: this.videoAdError, adType: t, adCompleted: this.adCompleted, requestFn: r, enforceSkipButton: !0, skipIfLongerThanSeconds: "rewarded" === t ? 31 : 16, skippableAfterSeconds: 5, play: a, preload: i, fullSize: o, children: e }) : null; } adThrottleLimit() { const { adError: e } = this.props; e && e(new Gr()); } allowedToPlayVideo() { return "immediately" !== this.props.fallback; } } const qr = (e) => { const { canPlayAd: t, adPlayed: n, adErrored: a } = r.useContext(Pr); return (0, d.jsx)(Vr, { canPlayAd: t, adPlayed: n, adErrored: a, ...e }); }, Wr = r.lazy(() => n.e(6513).then(n.bind(n, 66513))); function Hr(e) { switch (e) { case "midgame": default: return "midroll"; case "rewarded": return "rewarded"; } } const Kr = (e) => { let { children: t } = e; const n = r.useContext(Zr), { adStarted: a, adType: i, adFinished: o, adCompleted: s, adError: l, adState: c } = n; if (!["requested", "playing"].includes(c)) return (0, d.jsx)(d.Fragment, { children: t }); if ("pwa-popup" === i) return (0, d.jsx)(r.Suspense, { fallback: null, children: (0, d.jsx)(Wr, { onAdd: o, onCancel: o }) }); const u = (function (e) { const t = Fn(); return "rewarded" === e ? () => t.getRewarded() : () => t.getMidroll(); })(i), p = Hr(i || "midgame"), h = xn() ? ((0, J.U)() ? "disabled" : "rewarded" === i ? "enabled" : "disabled") : "immediately"; return (0, d.jsx)(qr, { adError: l, adStarted: a, adFinished: o, adCompleted: s, adType: p, requestFn: u, wrapper: (0, d.jsx)(jn, { showCrazyLogo: !1 }), preload: !1, play: !0, fallback: h, fullSize: !0 }); }; var Yr = n(35311); const Qr = (e) => { let { children: t } = e; const n = window.matchMedia("(orientation: portrait)"), a = n.matches ? "PORTRAIT" : "LANDSCAPE", [i, o] = r.useState(a); r.useEffect(() => { const e = (e) => { e.matches ? o("PORTRAIT") : o("LANDSCAPE"); }; return ( n.addEventListener("change", e), function () { n.removeEventListener("change", e); } ); }, [n]); const s = { ...(0, X.Tb)(), orientation: i }; return (0, d.jsx)(Yr.Z.Provider, { value: s, children: t }); }; class Xr extends r.Component { constructor() { super(...arguments), (this.onMessage = (e) => { (function (e) { const t = (0, Z.NI)().gameLink, n = new URL(t).origin; return e.origin === n; })(e) && ("canInstallPWA" === e.data ? wr.ZP.setCanInstallPWA(!0) : "notInstallPWA" === e.data && wr.ZP.setCanInstallPWA(!1)); }); } componentDidMount() { wr.ZP.requestCanInstallPWA(), window.addEventListener("message", this.onMessage); } componentWillUnmount() { window.removeEventListener("message", this.onMessage); } render() { return null; } } const Jr = Xr; const ea = async function (e) { const { orientation: t } = e; if (t && "BOTH" !== t && "screen" in window && window.screen && window.screen.orientation && window.screen.orientation.lock) try { const e = "PORTRAIT" === t ? "portrait" : "landscape"; await window.screen.orientation.lock(e); } catch (n) {} }; const ta = class { constructor() { (this.gameFrame = void 0), (this.gameFrame = null); } init(e) { this.gameFrame = this.getGameframe(); const { version: t } = e; Ne.GA.Instance.trackSDKLegacy(), "1.0.0" !== t ? this.gameFrame.init(e) : this.initLegacy(e); } requestAd(e) { this.gameFrame ? this.gameFrame.requestAd(e) : console.error("[CrazySDK Legacy] call init first"); } getGameframe() { const e = window.Crazygames; if (!e) throw new Error("[CrazySDK Legacy] gameframe not found?"); return e; } initLegacy(e) { if (!this.gameFrame) throw new Error("[CrazySDK Legacy] gameframe not found?"); this.gameFrame.init({ ...e, sdkType: "unity5.6" }); } }, na = r.createContext({ stateFinished: () => { throw new Error("[StateManagerContext] missing context"); }, }); function ra(e) { const t = (function (e) { const t = e.releaseDate; if (!t) return P.kg.log("missing date", e.gameSlug), null; const n = /^(\d{4})-(\d{2})-(\d{2})$/.exec(t); if (!n) return null; const r = parseInt(n[1], 10), a = parseInt(n[2], 10) - 1, i = parseInt(n[3], 10); return new Date(r, a, i).getTime(); })(e); return !t || t < new Date(new Date().getTime() - 6048e5).getTime(); } function aa(e) { return e.forceAdsTxtMissing || (U.Z.isOnAdsTxtMissingDomains(U.Z.getSafeReferrer()) && ra(e)) ? "ads-txt-missing" : null; } var ia = n(9172); const oa = (e) => { let { warning: t } = e; return (0, d.jsx)(Nn.Z, { showCrazyLogo: !0, children: (0, d.jsx)(ia.Z, { warning: t }) }); }, sa = () => { const [e, t] = r.useState(null), { stateFinished: n } = r.useContext(na); return ( r.useEffect(() => { (async () => { const e = (0, Z.NI)(), r = (function (e) { const t = e.gameStatus || Z.Dn; switch (t) { case "deleted": return "game-deleted"; case "unavailable": return "game-unavailable"; case "published": return null; default: return P.kg.error("[StatusCheck] unexpected status", t), null; } })(e); if (r) return void t(r); if (e.forceNoRewardedAd) return void t("no-rewarded-countdown"); await U.Z.Initialize(); const a = aa(e); if (a) return void t(a); if (!U.Z.isEmbeddedExternally()) return void n(); const i = aa(e) || (function (e) { return U.Z.isSandboxed() && U.Z.isEmbeddedExternally() && ra(e) ? "sandboxing-disallowed" : null; })(e) || (function (e) { return e.disableEmbedding && U.Z.isEmbeddedExternally() ? "embedding-disallowed" : null; })(e); i ? t(i) : n(); })(); }, [n]), r.useEffect(() => { aa((0, Z.NI)()) || U.Z.isEmbeddedExternally() || (!(0, Z.NI)().forceNoReferrer && ((0, B.vU)() || U.Z.getReferrer())) || At.Z.getInstance().trackGenericError("noReferrer"); }, []), e ? (0, d.jsx)(oa, { warning: e }) : (0, d.jsx)(Nn.Z, { showCrazyLogo: !1 }) ); }; var la = n(30648); const ca = function (e) { return (t) => (0, d.jsx)(na.Consumer, { children: (n) => { let { stateFinished: r } = n; return (0, d.jsx)(e, { ...t, stateFinished: r }); }, }); }; class da extends r.Component { constructor(e) { super(e), (this.playVideo = void 0), (this.highestBid = 0), (this.videoAdStarted = () => { It(this.highestBid); }), (this.playVideo = xn()), (this.state = { videoUrl: void 0 }); } async componentDidMount() { const { adFinished: e } = this.props, { countryCode: t } = (0, X.bG)(), n = Fn(), r = Sn((0, Z.NI)()); if ("NEVER" === r) return void e(); if (!this.playVideo) return; const a = n.getMinimumPrerollVideoBid(t, r); try { const t = U.Z.isEmbeddedExternally(), { generator: r, bids: i } = await n.getPreroll(a), o = !t && !this.props.consent, s = !i.some((e) => { let { cpm: t } = e; return t >= a; }); if (o && s) e(); else { const e = await r({ tfcd: (0, J.U)() ? 1 : 0 }); (this.highestBid = Math.max(...i.map((e) => e.cpm), a)), this.setState({ videoUrl: e }); } } catch (i) { e(); } } render() { const { videoUrl: e } = this.state; if (this.playVideo && !e) return (0, d.jsx)(Nn.Z, { showCrazyLogo: !1 }); { const { adFinished: t, play: n } = this.props, r = this.playVideo ? "disabled" : "immediately"; return (0, d.jsx)(qr, { adType: "preroll", videoUrl: e, videoAdStarted: this.videoAdStarted, adFinished: t, adError: t, wrapper: (0, d.jsx)(Nn.Z, { showCrazyLogo: !1 }), play: n, preload: !0, fallback: r, fullSize: !0 }); } } } const ua = da, pa = (e) => { let { onCloseClick: t, onOkClick: n, gameName: r } = e; return (0, d.jsx)(kr.u_, { hideBackdrop: !0, children: (0, d.jsxs)(kr.hz, { children: [(0, d.jsx)(xr.o, { onClick: t }), (0, d.jsx)(kr.r6, { children: (0, d.jsx)(zt.Z, { id: "externalProviderPopup.title" }) }), (0, d.jsx)(kr.iO, { children: (0, d.jsx)(zt.Z, { id: "externalProviderPopup.message", values: { gameName: r } }) }), (0, d.jsxs)(kr.O2, { onClick: n, children: [(0, d.jsx)(Sr.Z, {}), (0, d.jsx)(zt.Z, { id: "externalProviderPopup.button" })] })] }) }); }; var ha = n(25831), fa = n(71534); class ma extends r.Component { constructor(e) { super(e), (this.showPreroll = void 0), (this.isAdFinished = !1), (this.listenerId = null), (this.buttonClicked = async () => { At.Z.getInstance().sendEvent({ type: "playNowClicked" }), "NEVER" === this.showPreroll || this.isAdFinished ? this.goToNextState() : this.setState({ state: "renderAd" }); }), (this.adFinished = () => { "renderAd" === this.state.state ? this.goToNextState() : (this.isAdFinished = !0); }), (this.getConsentInfoCb = (e, t) => { if (t) { this.listenerId = e.listenerId; const t = !e.gdprApplies || "tcloaded" === e.eventStatus || "useractioncomplete" === e.eventStatus, n = t ? "allowed" : "disallowed"; this.setState({ preload: n, consent: t }); } }), (this.state = { state: "wait", preload: "disallowed", consent: !1 }), (this.showPreroll = Sn((0, Z.NI)())); } componentDidMount() { const e = (0, B.uo)(), t = (0, J.U)(); "NEVER" !== this.showPreroll ? (_().catch((e) => { P.kg.err(e); }), this.getConsentInfo(), this.setState({ state: e ? "renderAd" : "renderButton" })) : e || t ? this.goToNextState() : this.setState({ state: "renderButton" }); } componentDidUpdate(e, t) { "renderAd" !== t.state && "renderAd" === this.state.state && this.props.onPreroll(); } componentWillUnmount() { if (null !== this.listenerId) { Fn().removeConsentListener(this.getConsentInfoCb, this.listenerId); } } render() { const { state: e } = this.state; switch (e) { case "wait": return this.renderWaiting(); case "renderButton": return this.renderOverlay(); default: return this.renderAd(); } } renderWaiting() { const e = U.Z.isEmbeddedExternally(); return (0, d.jsx)(Nn.Z, { showCrazyLogo: U.Z.isEmbeddedExternally(), showGDPRNotice: e }); } renderOverlay() { const { countryCode: e } = (0, X.bG)(), t = (0, Z.NI)(), n = { thumbnail: t.thumbnail, gameName: t.gameName, video: t.video, showExternalProviderWarning: t.showExternalProviderWarning }, r = (0, X.Ax)(e), a = "NEVER" !== this.showPreroll && (!r || "allowed" === this.state.preload), i = r && U.Z.isEmbeddedExternally(), o = "external" === t.loader ? "subtext.play.external" : void 0; return (0, d.jsxs)(d.Fragment, { children: [(0, d.jsx)(Nn.Z, { showCrazyLogo: U.Z.isEmbeddedExternally(), showGDPRNotice: i, children: (0, d.jsx)(la.Z, { ...n, tracker: this.buttonClicked, subtextLabel: o }) }), !(0, B.uo)() && t.showExternalProviderWarning && (0, d.jsx)(pa, { gameName: n.gameName, onCloseClick: this.buttonClicked, onOkClick: this.buttonClicked }), a && this.renderPreroll(!1)] }); } renderAd() { return this.renderPreroll(!0); } renderPreroll(e) { const t = e ? {} : { display: "none" }; return (0, d.jsx)("div", { style: t, children: (0, d.jsx)(ua, { adFinished: this.adFinished, play: e, consent: this.state.consent }, "preroll") }, "parentpreroll"); } getConsentInfo() { const e = (0, B.uo)(), t = (0, J.U)(), { countryCode: n } = (0, X.bG)(); if (!t && (0, X.Ax)(n)) { Fn().addConsentListener(this.getConsentInfoCb); } else this.setState({ consent: !0, preload: "allowed" }), e && this.setState({ state: "renderAd" }); } goToNextState() { const { stateFinished: e } = this.props; e(); } } const ga = (0, fa.q)(ca((0, ha.Z)(ma))), va = r.lazy(() => n.e(2014).then(n.bind(n, 52014))), ba = r.lazy(() => n.e(1690).then(n.bind(n, 71690))), ya = r.lazy(() => n.e(6355).then(n.bind(n, 46355))), wa = () => { const e = (0, Z.NI)(), t = (() => { switch (e.loader) { case "unity2023": case "unity2022": case "unity2021": case "unity2020": return va; case "5.6.x": return ba; case "5.4.x": return ya; default: return null; } })(); return t ? (0, d.jsx)(r.Suspense, { fallback: (0, d.jsx)(d.Fragment, {}), children: (0, d.jsx)(t, {}) }) : null; }; let Sa = null; function ka() { return ( Sa || (Sa = (function () { const e = (0, Z.NI)(); switch (e.loader) { case "unity2023": case "unity2022": case "unity2021": case "unity2020": return n.e(6571).then(n.bind(n, 36571)); case "5.4.x": return n.e(7935).then(n.bind(n, 67935)); case "5.6.x": return Promise.all([n.e(8393), n.e(1750), n.e(3358)]).then(n.bind(n, 43358)); case "iframe": return n.e(6327).then(n.bind(n, 36327)); case "external": return n.e(9936).then(n.bind(n, 59936)); case "swfviewer": return Promise.all([n.e(5061), n.e(3853)]).then(n.bind(n, 13853)); case "ruffle": return n.e(6544).then(n.bind(n, 26544)); case "fake": return Promise.all([n.e(8393), n.e(1750), n.e(2724)]).then(n.bind(n, 62724)); default: throw new Error(`[Loader] No such loader ${e.loader}`); } })()), Sa ); } var xa = n(40889); const Ca = (0, Ge.ZP)("div", { shouldForwardProp: (e) => "fullscreenFooterEnabled" !== e && "isFullscreen" !== e })((e) => { let { fullscreenFooterEnabled: t, isFullscreen: n } = e; return { zIndex: 0, position: "fixed", left: 0, right: 0, top: 0, bottom: Kt.ut.footerHeight, margin: "auto !important", background: "transparent !important", ...(n && { bottom: t ? Kt.ut.footerHeight : 0, height: t ? `calc(100vh - ${Kt.ut.footerHeight}px)` : void 0 }) }; }); var Ea = n(59111); const Ia = function (e) { return (t) => (0, d.jsx)(Ea.Z.Consumer, { children: (n) => (0, d.jsx)(e, { gameframeConfig: n, ...t }) }); }, Pa = r.lazy(() => ka()); var Aa = n(73914), Ta = n(22690); const Ra = (0, Ge.ZP)(ot.ZP, { shouldForwardProp: (e) => "isKids" !== e })((e) => { let { isKids: t } = e; return { userSelect: "none", boxSizing: "content-box", background: t ? pt.fY : Nr.D.black[70], zIndex: 1, width: "100%", height: Kt.ut.footerHeight }; }), _a = "https://api.crazygames.com/v3/en_US/game/{game}/rating"; let Za = null, za = !1, La = []; async function Ma(e) { if ( (await (async function () { if (!za) return; return new Promise((e) => La.push(e)); })(), Za) ) return Za; const t = await (async function (e) { if (Za) return Za; za = !0; const t = _a.replace("{game}", e); try { const e = await fetch(t, { method: "GET" }), n = await e.text(); Za = JSON.parse(n); } catch (n) { P.kg.error("[GameRating] Failed fetch:" + n), (Za = { upVotes: 0, downVotes: 0 }); } finally { za = !1; for (const e of La) e(); return (La = []), Za; } })(e); return t; } const Fa = r.memo((e) => (0, d.jsx)(lt.Z, { ...e, viewBox: "0 0 24 24", children: (0, d.jsx)("path", { xmlns: "http://www.w3.org/2000/svg", fillRule: "evenodd", clipRule: "evenodd", d: "M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L6.99928 18.4149C8.45259 19.3227 10.1521 20 12 20C14.4075 20 16.5629 18.8505 18.2504 17.5394C19.9491 16.2196 21.2774 14.6558 22.051 13.6459C22.8002 12.668 22.8002 11.332 22.051 10.3541C21.3377 9.42298 20.1529 8.02088 18.6409 6.77335L21.7071 3.70711ZM17.2193 8.19488L15.4462 9.96803C15.7981 10.5635 16 11.2582 16 12C16 14.2091 14.2091 16 12 16C11.2582 16 10.5635 15.7981 9.96803 15.4462L8.45765 16.9566C9.58192 17.5946 10.7797 18 12 18C13.7743 18 15.5009 17.1429 17.0233 15.9601C18.5344 14.7861 19.7438 13.3688 20.4634 12.4296C20.6627 12.1694 20.6627 11.8306 20.4634 11.5704C19.7752 10.6722 18.639 9.33668 17.2193 8.19488ZM11.482 13.9323C11.6472 13.9764 11.8208 14 12 14C13.1046 14 14 13.1046 14 12C14 11.8208 13.9764 11.6472 13.9323 11.482L11.482 13.9323ZM12 4C13.3239 4 14.5716 4.34763 15.7072 4.87859L14.1789 6.40693C13.4684 6.1484 12.7383 6 12 6C10.2257 6 8.49911 6.85711 6.97672 8.0399C5.46562 9.21394 4.25618 10.6312 3.53667 11.5704C3.3373 11.8306 3.3373 12.1694 3.53667 12.4296C4.04269 13.0901 4.79102 13.9871 5.71618 14.8696L4.30164 16.2842C3.29106 15.3157 2.48629 14.3472 1.94903 13.6459C1.19985 12.668 1.19985 11.332 1.94903 10.3541C2.72266 9.34424 4.05092 7.78038 5.74967 6.46056C7.43714 5.1495 9.59256 4 12 4ZM12 8C12.1861 8 12.3692 8.01271 12.5485 8.0373L8.0373 12.5485C8.01271 12.3692 8 12.1861 8 12C8 9.79086 9.79086 8 12 8Z" }) })), Da = r.lazy(() => Promise.all([n.e(8393), n.e(859), n.e(7134)]).then(n.bind(n, 47134))), Na = (e) => { let { handleHideFooterAction: t } = e; const [n, a] = r.useState(), { theatreModeEnabled: i } = r.useContext(Ea.Z), { isFullscreen: o } = r.useContext(Aa.s), s = U.Z.isEmbeddedExternally(), l = (0, Z.NI)(); r.useEffect(() => { !(async function () { const e = (0, Z.NI)(), t = await Ma(e.gameSlug); a(t); })(); }, []); return (0, d.jsxs)(Ra, { isKids: (0, J.U)(), container: !0, justifyContent: "space-between", alignItems: "center", wrap: "nowrap", children: [(0, d.jsx)(ot.ZP, { item: !0, sx: { pl: 2 }, children: (0, d.jsxs)(jt.VT, { isClickable: s, children: [(0, d.jsx)(Gt, { clickable: s, campaignContent: "logo" }), (0, d.jsx)(Bt.Z, { clickable: s, campaignContent: "logo", children: (0, d.jsx)(jt.b_, { children: s ? (0, d.jsx)(zt.Z, { id: "footerMenu.embeddedTitle", values: { link: (0, d.jsxs)("span", { className: "crazygamesLink", children: [(0, d.jsx)(zt.Z, { id: "general.crazygamesdotcom" }), (0, d.jsx)(en.Z, { style: { width: 18, height: 18, marginLeft: 5, marginBottom: -4 } })] }) } }) : l.gameName }) })] }) }), o && (0, d.jsx)(jt.eK, { children: (0, d.jsx)(jt.$J, { onClick: t, startIcon: (0, d.jsx)(Fa, {}), children: (0, d.jsx)(zt.Z, { id: "footerMenu.hideThisBar" }) }) }), (0, d.jsx)(ot.ZP, { item: !0, justifyContent: "flex-end", sx: { pr: 1 }, children: n && null !== i ? (0, d.jsx)(Da, { initialRating: n }) : null })] }); }; function ja() { return !(0, B.uo)(); } const Oa = r.lazy(() => n.e(7006).then(n.bind(n, 92386))), Ba = () => { const e = r.useContext(Zr), { isFullscreen: t } = r.useContext(Aa.s), [n, a] = r.useState(!1), { fullscreenFooterEnabled: i, hideFullscreenFooter: o } = r.useContext(Ea.Z); r.useEffect(() => { if (!n) return; const e = window.setTimeout(() => { a(!1); }, 2e3); return () => { window.clearTimeout(e); }; }, [n]); return (0, d.jsxs)(d.Fragment, { children: [ (0, d.jsxs)(jt.Gr, { children: [ (0, d.jsx)(Oa, {}), !(!ja() || "playing" === e.adState || !(!t || i)) && (0, d.jsx)(Na, { handleHideFooterAction: () => { o(), a(!0); }, }), ], }), (0, d.jsx)(Ta.Z, { direction: "up", in: n, mountOnEnter: !0, unmountOnExit: !0, children: (0, d.jsx)(jt.iT, { children: (0, d.jsx)(jt.s0, { children: (0, d.jsx)(zt.Z, { id: "footerMenu.pressEscKey" }) }) }) }), ], }); }; class Ua extends r.Component { constructor(e) { super(e), (this.setDimenionsOfContainer = () => { const e = !this.props.isFullscreen && ja(), t = (0, Cn.vM)(e); t.fill || this.setState({ containerHeight: `${t.height}px`, containerWidth: `${t.width}px` }); }), (this.state = { containerHeight: null, containerWidth: null }); } componentDidMount() { wr.ZP.startGameTime(), this.setDimenionsOfContainer(), window.addEventListener("resize", this.setDimenionsOfContainer); } componentWillUnmount() { window.removeEventListener("resize", this.setDimenionsOfContainer); } render() { return (0, d.jsx)(r.Suspense, { fallback: null, children: (0, d.jsxs)("div", { style: { width: "100%", height: "100%", overflow: "hidden" }, id: "game-container-wrapper", children: [this.renderGameContainer(), (0, d.jsx)(Pa, {}), this.renderWarning(), (0, d.jsx)(xa.Z, { hasFooter: ja() })] }) }); } renderGameContainer() { const { containerWidth: e, containerHeight: t } = this.state, { isFullscreen: n } = this.props, { gameframeConfig: r } = this.props, { fullscreenFooterEnabled: a } = r; let i = { bottom: ja() ? void 0 : 0 }; return e && t && (i = { ...i, height: t, width: e }), (0, d.jsx)(Ca, { id: "game-container", style: i, fullscreenFooterEnabled: a, isFullscreen: n }, "game-container"); } renderWarning() { const { fullscreenError: e, setFullScreenError: t } = this.props; return e ? (0, d.jsx)(ia.Z, { warning: e, close: () => t(void 0) }) : null; } } const $a = Ia((0, ha.Z)(Ua)); var Ga = n(72071); const Va = r.lazy(() => Promise.all([n.e(6271), n.e(3751)]).then(n.bind(n, 3751))), qa = () => { const [e, t] = r.useState("preroll"), { onPostPreroll: n } = r.useContext(Ga.r), [a, i] = r.useState(!1), [o, s] = r.useState(!1), l = r.useCallback((e) => { switch (e) { case "preroll": return "statusCheck"; case "statusCheck": return "loadingOrPlaying"; case "loadingOrPlaying": return null; default: throw new Error(`[StateManager] Unexpected transition ${e}`); } }, []); r.useEffect(() => { "statusCheck" === e && n(); }, [e, n]), r.useEffect(() => { if (a && !o) { const n = l(e); n && (t(n), i(!1), s(!0)); } }, [a, o, e, l]), r.useEffect(() => { const t = () => Promise.resolve(); o && (() => { switch (l(e)) { case "preroll": case "statusCheck": default: return t(); case "loadingOrPlaying": return ka(); } })().then(() => { s(!1); }); }, [o, l, e]); return (0, d.jsxs)(na.Provider, { value: { stateFinished: () => { i(!0); }, }, children: [ (() => { switch (e) { case "preroll": return (0, d.jsxs)(d.Fragment, { children: [(0, d.jsx)(wa, {}), (0, d.jsx)(ga, {})] }); case "statusCheck": return (0, d.jsx)(sa, {}); case "loadingOrPlaying": return (0, d.jsx)(r.Suspense, { fallback: (0, d.jsx)(d.Fragment, {}), children: (0, d.jsx)($a, {}) }); default: return null; } })(), (0, d.jsx)(Va, {}), (0, d.jsx)(Ba, {}), ], }); }, Wa = [], Ha = "bottomBarFsExperiment"; class Ka { static getInstance() { return Ka.instance || (Ka.instance = new Ka()), Ka.instance; } constructor() { (this.experiments = {}), !(0, B.uo)() && Wa.push({ defaultValue: "false", key: Ha, options: [{ chance: 0.5, value: "true" }] }); for (const e of Wa) { const { key: t } = e, n = this.fetchExperimentValue(e); (this.experiments[t] = { value: n.value }), n.forced || ue.m.Instance.setItem(t, n.value); } this.registerAllExperiments(); } registerAllExperiments() { const e = Object.keys(this.experiments); if (e && 0 !== e.length) for (const t of e) At.Z.getInstance().registerManualExperiment(t, this.experiments[t].value); } getExperimentValue(e) { var t; return null === (t = this.experiments[e]) || void 0 === t ? void 0 : t.value; } getExperimentValueAsBoolean(e) { return void 0 !== this.experiments[e] ? "true" === this.experiments[e].value : void 0; } fetchExperimentValue(e) { const { key: t } = e, n = this.getForcedExperimentValue(t); if (null !== n && void 0 !== n) return { value: n, forced: !0 }; const r = ue.m.Instance.getItem(t); if (null !== r && void 0 !== r) return { value: r }; let a = Math.random(); for (const i of e.options) { const { chance: e, value: t } = i; if (a < e) return { value: t }; a -= e; } return { value: e.defaultValue }; } getForcedExperimentValue(e) { const t = window.location.search, n = new URLSearchParams(t).get(e); if (n) return n; } } Ka.instance = void 0; const Ya = Ka, Qa = "fullscreen_footer"; class Xa extends r.Component { constructor(e) { super(e), (this.config = void 0), (this.theatreModeRequestInterval = void 0), (this.isQaTool = void 0), (this.isTheatreModeSupported = void 0), (this.experimentFullscreenFooterEnabled = void 0), (this.processMessage = (e) => { "set-status-theatre-mode-enabled" === e.data && (this.setState({ theatreModeEnabled: !0 }), this.clearTheatreModeInterval()), "set-status-theatre-mode-disabled" === e.data && (this.setState({ theatreModeEnabled: !1 }), this.clearTheatreModeInterval()); }), (this.config = (0, Z.NI)()), (this.isQaTool = (0, Wn.v)(this.config.source)), (this.isTheatreModeSupported = !(0, J.U)() && !U.Z.isEmbeddedExternally() && !this.props.device.isMobile && !this.config.preventTheatreMode && !this.isQaTool); this.experimentFullscreenFooterEnabled = !!Ya.getInstance().getExperimentValueAsBoolean(Ha); let t = null; ((0, J.U)() || U.Z.isEmbeddedExternally()) && (t = !1), this.isQaTool && (t = !0), (this.state = { theatreModeEnabled: t, fullscreenFooterEnabled: !1 }), (this.theatreModeRequestInterval = null); } componentDidMount() { this.isTheatreModeSupported && (window.addEventListener("message", this.processMessage), this.config.preventTheatreMode || (this.theatreModeRequestInterval = window.setInterval(() => { $n.Z.requestStatusTheatreMode(); }, 1500))); const e = "false" === ue.m.Instance.getItem(Qa); this.setState({ fullscreenFooterEnabled: this.experimentFullscreenFooterEnabled || !e }); } componentWillUnmount() { this.isTheatreModeSupported && (window.removeEventListener("message", this.processMessage), this.clearTheatreModeInterval()); } render() { const { children: e } = this.props; return (0, d.jsx)(Ea.Z.Provider, { value: { theatreModeEnabled: this.state.theatreModeEnabled, fullscreenFooterEnabled: this.state.fullscreenFooterEnabled, isTheatreModeSupported: this.isTheatreModeSupported, hideFullscreenFooter: () => { this.setState({ fullscreenFooterEnabled: !1 }), this.experimentFullscreenFooterEnabled || ue.m.Instance.setItem(Qa, "false"); }, }, children: e, }); } clearTheatreModeInterval() { this.theatreModeRequestInterval && window.clearInterval(this.theatreModeRequestInterval); } } const Ja = (0, nn.Z)(Xa); var ei = n(61627); const ti = r.memo((e) => (0, d.jsx)(lt.Z, { ...e, width: "140", height: "140", viewBox: "0 0 140 140", children: (0, d.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M109.582 8.08209C111.423 6.24175 111.423 3.25796 109.582 1.41761C107.742 -0.422732 104.758 -0.422732 102.918 1.41761L89.9557 14.3797C87.266 17.0694 87.266 21.4303 89.9557 24.1201L102.918 37.0821C104.758 38.9224 107.742 38.9224 109.582 37.0821C111.423 35.2418 111.423 32.258 109.582 30.4176L102.786 23.6212C114.049 22.9025 120.446 26.4566 124.276 31.3956C128.757 37.1754 130.538 45.8658 130.538 55.5001C130.538 58.1028 132.647 60.2126 135.25 60.2126C137.853 60.2126 139.963 58.1028 139.963 55.5001C139.963 45.1141 138.118 33.8669 131.724 25.6205C125.777 17.9502 116.524 13.6415 103.515 14.1494L109.582 8.08209ZM98.5579 14.5564L109.582 1.41761L98.5267 14.5602L98.5579 14.5564ZM94.3026 19.6277L94.2994 19.5855L93.288 20.7878L93.5443 20.5315L94.3026 19.6277ZM52.0573 21.2979L21.2981 52.0571C19.8825 53.4727 19.8825 55.7679 21.2981 57.1836L82.8164 118.702C84.2321 120.118 86.5273 120.118 87.943 118.702L118.702 87.9427C120.118 86.5271 120.118 84.2319 118.702 82.8162L57.1838 21.2979C55.7682 19.8823 53.4729 19.8823 52.0573 21.2979ZM13.6084 44.3673C7.94575 50.0299 7.94575 59.2108 13.6084 64.8734L75.1266 126.392C80.7892 132.054 89.9701 132.054 95.6327 126.392L126.392 95.6325C132.054 89.9699 132.054 80.789 126.392 75.1264L64.8736 13.6081C59.211 7.94554 50.0301 7.94554 44.3675 13.6081L13.6084 44.3673ZM37.2143 116.379C25.9511 117.098 19.5537 113.544 15.7243 108.604C11.243 102.825 9.4626 94.1343 9.4626 84.4999C9.4626 81.8973 7.35274 79.7874 4.7501 79.7874C2.14746 79.7874 0.0375977 81.8973 0.0375977 84.4999C0.0375977 94.8859 1.8822 106.133 8.27587 114.38C14.2229 122.05 23.4765 126.359 36.4852 125.851L30.4179 131.918C28.5775 133.758 28.5775 136.742 30.4179 138.582C32.2582 140.423 35.242 140.423 37.0824 138.582L50.0444 125.62C52.7341 122.931 52.7341 118.57 50.0444 115.88L37.0824 102.918C35.242 101.078 32.2582 101.078 30.4179 102.918C28.5775 104.758 28.5775 107.742 30.4179 109.582L37.2143 116.379ZM41.4735 125.44C41.4631 125.441 41.4527 125.442 41.4423 125.444L30.4179 138.582L41.4735 125.44ZM45.7008 120.415C45.6997 120.4 45.6987 120.386 45.6975 120.372L46.4558 119.469L46.7122 119.212L45.7008 120.415Z", fill: "white" }) })); var ni = n(42669); const ri = () => { const { orientation: e } = r.useContext(Yr.Z), t = (0, Z.NI)(), n = "BOTH" !== t.orientation ? t.orientation : null; return (0, B.uo)() && n && n !== e ? (0, d.jsxs)(ot.ZP, { container: !0, flexDirection: "column", justifyContent: "center", alignItems: "center", display: "flex", style: { background: "#1F144D", opacity: 0.9, width: "100%", height: "100%", position: "fixed", top: 0, left: 0, zIndex: 4 }, children: [(0, d.jsx)(ti, { style: { color: "white", height: "140px", width: "140px" } }), (0, d.jsx)(ni.Z, { variant: "h6", textAlign: "center", sx: { mt: 2, px: 5, fontSize: "36px !important", fontWeight: 800, lineHeight: "46px" }, children: (0, d.jsx)(zt.Z, { id: "common.rotateScreen" }) })] }) : null; }, ai = "AW-312835820"; function ii(e) { try { $n.Z.errorLog(e); } catch (t) { console.warn("Failed to post error to portal, attempting without args. Error was: ", t); const { args: n, ...r } = e; $n.Z.errorLog(r); } } if ("undefined" !== typeof window) { const e = console.error; console.error = function () { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; ii({ source: "gameframe", pageUrl: window.location.href, date: new Date(), type: "console.error", args: [...n] }), e(...n); }; const t = window.onerror; window.onerror = function (e, n, r, a, i) { ii({ source: "gameframe", pageUrl: window.location.href, date: new Date(), type: "window.onerror", args: [{ event: e, source: n, lineno: r, colno: a, error: i }] }), t instanceof Function && t(e, n, r, a, i); }; } const oi = (e) => { let { children: t } = e; const [n, a] = r.useState(!1), [i, o] = r.useState(), s = Ie.Z.Instance, l = Ne.GA.Instance, c = U.Z.isEmbeddedExternally(); return (0, d.jsx)(Aa.s.Provider, { value: { disableFullscreen: () => { s.exitFullscreen(); }, requestFullscreen: async (e) => { var t; if ((l.trackFullscreenRequested(), !s.canFullscreen())) return l.trackFullscreenFailed("unavailable"), P.kg.debug("[Game] fullscreen not available"), void (c && !e && o("fullscreen-unavailable-when-embedded")); const r = "Mac OS" === (null === (t = (0, X.So)().os) || void 0 === t ? void 0 : t.name), i = !n && matchMedia("(display-mode: fullscreen)").matches; if (!r && i && !e) return void o("fullscreen-unavailable-when-in-fullscreen"); const { activate: d, deactivate: u } = s.requestFullscreen(); return ( u.then(async () => { a(!1), l.trackFullscreenExited(), P.kg.debug("[Game] removing fullscreen class from container"), await Er.n.Instance.autoSyncUnityData(); }), d .then(() => { a(!0), l.trackFullscreenEntered(), P.kg.debug("[Game] adding fullscreen class to container"); }) .catch((t) => { l.trackFullscreenFailed("error"), P.kg.warn("[Game] fullscreen transition failed: ", t), c && !e && o("fullscreen-unavailable-when-embedded"), a(!1); }) ); }, isFullscreen: n, fullscreenError: i, setFullScreenError: o, }, children: t, }); }; var si = n(11414); const li = () => ( r.useEffect(() => { const e = (e) => { var t; try { const { type: n } = e.data; switch (n) { case "requestSdkGameData": (async (e) => { const t = await Er.n.Instance.fetchSdkGameData(); e.postMessage({ type: "sdkGameDataResponse", data: t }, "*"); })(e.source); break; case "saveSdkGameData": (async (e) => { await Er.n.Instance.saveSdkGameData(e); })(null === (t = e.data) || void 0 === t ? void 0 : t.data); } } catch (n) { console.error(n); } }; return ( window.addEventListener("message", e), () => { window.removeEventListener("message", e); } ); }, []), null ); n.p = (function () { var e; const t = null === (e = document.currentScript) || void 0 === e ? void 0 : e.src; if (!t) return "/"; const n = t.lastIndexOf("/"); return -1 === n ? "/" : t.substring(0, n + 1); })(); const ci = r.createRef(); function di() { const e = ci.current; if (!e) throw new Error("SDK Not initialized"); return e; } window.Crazygames = { load: async function (e) { const t = (0, $.lB)(); t && (e.locale = t), U.Z.Initialize(); const n = (0, Wn.v)(e.source); await Promise.all([A.Z.Initialize(e.locale), (0, X.CS)(n)]), P.kg.log(`[GameFrame] version ${Cn.f4}`), (0, si.lD)(e.loader, e.loaderOptions), (0, Z.wm)(e), At.Z.getInstance().sendEvent({ type: "gameframeReady" }), await ea(e); const r = document.createElement("div"); !(function () { const e = ue.m.Instance, t = e.getItem("_ga"); if (t) return t; const n = (0, Et.Z)(); e.setItem("_ga", n), (Rn = !0); })(); const s = e.isKids || e.forceIsKids; if (!s) try { (window.dataLayer = [] || 0), (window.gtag = window.gtag || function () { window.dataLayer.push(arguments); }), gtag("js", new Date()), gtag("config", ai), be() && gtag("config", "DC-asdawdasd"), (0, T.ve)("https://www.googletagmanager.com/gtag/js?id=AW-awdasdawd"), Ne.GA.Instance.init(e.gameSlug || e.gameName, e.loader); } catch (c) { console.error(c); } document.body.appendChild(r); const l = new URLSearchParams(window.location.search); if (l.has(pe)) { Se(l.get(pe)); } if (l.has(fe)) { xe(l.get(fe)); } if ("NEVER" !== Sn(e)) { Fn().preloadAdsLibrary(); } if (ja() && "qa" !== e.source && "standalone-qa" !== e.source) try { Ma(e.gameSlug); } catch (c) {} (0, a.s)(r).render((0, d.jsxs)(d.Fragment, { children: [(0, d.jsx)(Qr, { children: (0, d.jsx)(o.bd, { i18n: i.ag, children: (0, d.jsx)(y, { injectFirst: !0, children: (0, d.jsxs)(I, { theme: (0, pt.ZP)(s), children: [(0, d.jsx)(g, {}), (0, d.jsx)("style", { children: "\n a {\n text-decoration: none;\n }\n a:hover {\n text-decoration: none;\n }\n " }), (0, d.jsx)(Rr, { children: (0, d.jsxs)(Lr, { ref: ci, children: [(0, d.jsx)(Kr, {}), (0, d.jsx)(Ja, { children: (0, d.jsx)(ei.M, { children: (0, d.jsx)(oi, { children: (0, d.jsxs)(Ga.i, { children: [(0, d.jsx)(ri, {}), (0, d.jsx)(qa, {})] }) }) }) })] }) })] }) }) }) }), (0, d.jsx)(Jr, {}), (0, d.jsx)(li, {})] })); }, init: (e) => { lr(e); }, requestAd: (e) => { di().requestAd(e); }, happytime: () => { di().happytime(); }, gameplayStart: () => { di().gameplayStart(); }, gameplayStop: () => { di().gameplayStop(); }, sdkGameLoadingStart: () => { di().sdkGameLoadingStart(); }, sdkGameLoadingStop: () => { di().sdkGameLoadingStop(); }, requestInviteUrl: (e) => { di().requestInviteUrl(e); }, requestBanners: (e) => { di().requestInGameBanner(e); }, screenshotReceived: (e) => {}, constants: { AD_STARTED: "CrazySDK_AdStarted", AD_FINISHED: "CrazySDK_AdFinished", AD_ERROR: "CrazySDK_AdError", AD_COMPLETED: "CrazySDK_AdCompleted" }, getUnityInstance: () => di().getUnityInstance(), }; const ui = new ta(); window.CrazySDK = ui; }, 43063: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(66501), a = n(90831), i = n(96607); class o { constructor() { (this.gameId = void 0), (this.analyticsInfo = void 0), (this.analyticsInfoResolvers = []), (this.debug = void 0), window.addEventListener("message", (e) => { "setAnalyticsInfo" === e.data.type && this.setAnalyticsInfo(e.data.data.analyticsInfo); }); } static getInstance() { return o.instance || (o.instance = new o()), o.instance; } setAnalyticsInfo(e) { this.analyticsInfo = e; for (const t of this.analyticsInfoResolvers) t(e); this.analyticsInfoResolvers = []; } registerManualExperiment(e, t) { this.sendEvent({ type: "experiment", key: e, value: t }); } sendEvent(e) { const t = Date.now(); this.getAnalyticsInfo().then((n) => { const r = this.getAnalyticsDebug(); if (!n.enabled && !r) return; const a = { ...e, ...n, sampling: 1, gameId: this.getGameId(), version: "3.2.0", source: "gameframe", time: t }; r && console.log("[CrazyAnalyticsGF] send event", a), this.sendData(a); }); } trackGenericError(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; this.sendEvent({ type: "genericError", errorName: e, errorJson: JSON.stringify(t) }); } getAnalyticsInfo() { if (this.analyticsInfo) return Promise.resolve(this.analyticsInfo); const e = new Promise((e) => { this.analyticsInfoResolvers.push(e); }); return i.Z.requestAnalyticsInfo(), e; } getAnalyticsDebug() { if (void 0 === this.debug) { const e = new URLSearchParams(window.location.search); this.debug = "true" === e.get("czy_analytics_debug"); } return this.debug; } getGameId() { return this.gameId || (this.gameId = (0, a.NI)().gameId), this.gameId; } async sendData(e) { const t = e, n = this.getEndpoint(), r = async () => { await window.fetch(n, { method: "post", body: JSON.stringify(t), headers: { "Content-Type": "text/plain" } }); }; if (window.navigator) { const e = { type: "text/plain" }, a = new Blob([JSON.stringify(t)], e); if (window.navigator.sendBeacon(n, a)) return Promise.resolve(); await r(); } else await r(); } getEndpoint() { switch (r.q) { case "local": case "dev": return "https://analytics.dev-crazygames.be/event"; default: return "https://analytics.crazygames.com/event"; } } } o.instance = void 0; const s = o; }, 96607: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(43063), a = n(23004); const i = new (class { constructor() { this.sentDataModuleActions = []; } share() { this.postEvent("share", {}); } like() { this.postEvent("like", {}); } dislike() { this.postEvent("dislike", {}); } neutral() { this.postEvent("neutral", {}); } feedback() { this.postEvent("feedback", {}); } getPwaInstallEnabled() { this.postEvent("getPwaInstallEnabled", {}); } exitFullscreen() { this.postEvent("exitFullscreen", {}); } requestStatusTheatreMode() { this.postEvent("requestStatusTheatreMode", {}); } requestFullscreenFooterEnabled() { this.postEvent("requestFullscreenFooterEnabled", {}); } toggleTheatreMode() { this.postEvent("toggleTheatreMode", {}); } addGamePWA(e) { this.postEvent("addGamePWA", { source: e }); } cancelGamePWAInstall() { this.postEvent("cancelGamePWAInstall", {}); } gfLoaded() { this.postEvent("gfLoaded", {}); } gameFinishedLoading() { this.postEvent("gameFinishedLoading", { success: !0 }); } gameLoadingStateResponse(e) { this.postEvent("gameLoadingStateResponse", { loaded: e }); } sdkInit(e, t) { this.postEvent("sdkInit", { sdkType: e, version: t }); const n = { type: "sdkInit", sdkType: e, sdkVersion: t }; this.sendEventToAnalytics(n); } happytime() { this.postEvent("happytime", {}); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "happytime" }); } gameplayStart() { this.postEvent("gameplayStart", {}); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "gameplayStart" }); } gameplayStop() { this.postEvent("gameplayStop", {}); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "gameplayStop" }); } sdkGameLoadingStart() { this.postEvent("sdkGameLoadingStart", {}); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "sdkGameLoadingStart" }); } sdkGameLoadingStop() { this.postEvent("sdkGameLoadingStop", {}); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "sdkGameLoadingStop" }); } inviteLink(e) { this.postEvent("inviteLink", { url: e }); this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "inviteLink" }); } showInviteButton() { this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "showInviteButton" }); } clickInviteButton(e) { this.postEvent("inviteLink", { url: e }); } hideInviteButton() { this.sendEventToAnalytics({ type: "sdkGame", gameEvent: "hideInviteButton" }); } rewardedAd() { this.postEvent("rewardedAd", {}); this.sendEventToAnalytics({ type: "sdkAd", adType: "rewarded", status: "requested" }); } midgameAd() { this.postEvent("midgameAd", {}); this.sendEventToAnalytics({ type: "sdkAd", adType: "midgame", status: "requested" }); } banner(e, t) { this.postEvent("banner", {}); const n = { type: "sdkBanner", bannerType: "fixed", width: e, height: t }; this.sendEventToAnalytics(n); } responsiveBanner(e, t) { this.postEvent("responsiveBanner", {}); const n = { type: "sdkBanner", bannerType: "responsive", width: e, height: t }; this.sendEventToAnalytics(n); } bannerResult(e, t, n, r) { const a = { type: "sdkBannerResult", containerId: e, displayed: !r, width: t, height: n, error: r }; this.sendEventToAnalytics(a); } adStarted(e) { const t = { type: "sdkAd", adType: e, status: "started" }; this.sendEventToAnalytics(t); } adFinished(e, t) { this.postEvent("adFinished", { error: t }); const n = { type: "sdkAd", adType: e, status: "finished", error: t }; this.sendEventToAnalytics(n); } forwardToPortal(e, t) { this.postEvent(e, t); } trackProgress(e) { const t = { type: "load", progress: e }; this.sendEventToAnalytics(t); } loadFinished() { this.postEvent("gameLoaded", { gfVersion: a.f4 }); } requestAnalyticsInfo() { this.postEvent("requestAnalyticsInfo", {}); } requestUserPortalInfoSync() { this.postEvent("requestUserPortalInfoSync", {}); } requestToFavouriteGame() { this.postEvent("requestToFavouriteGame", {}); } requestToUnFavouriteGame() { this.postEvent("requestToUnFavouriteGame", {}); } openGamesDrawer() { this.postEvent("openGamesDrawer", {}); } requestUserAccountAvailable() { this.postEvent("requestUserAccountAvailable", {}); } requestAuthPrompt() { this.postEvent("showAuthPrompt", {}); this.sendEventToAnalytics({ type: "sdkUser", action: "showAuthPrompt" }); } forwardToUpGraphql(e) { this.postEvent("forwardToUpGraphql", e); } errorLog(e) { this.postEvent("errorLog", { errorLog: e }); } addScore() { this.sendEventToAnalytics({ type: "sdkUser", action: "addScore" }); } requestUserToken() { this.sendEventToAnalytics({ type: "sdkUser", action: "getUserToken" }); } requestXsollaUserToken() { this.sendEventToAnalytics({ type: "sdkUser", action: "getXsollaUserToken" }); } showAccountLinkPrompt() { this.sendEventToAnalytics({ type: "sdkUser", action: "showAccountLinkPrompt" }); } getSystemInfo() { this.postEvent("getSystemInfo", {}), this.sendEventToAnalytics({ type: "sdkUser", action: "getSystemInfo" }); } getUser() { this.sendEventToAnalytics({ type: "sdkUser", action: "getUser" }); } dataModuleUsage(e) { if (this.sentDataModuleActions.includes(e)) return; this.sentDataModuleActions.push(e); const t = { type: "sdkData", action: e }; this.sendEventToAnalytics(t); } sendDelayedMemoryUsage() { setTimeout(() => { var e, t; const n = null === (e = window) || void 0 === e || null === (t = e.performance) || void 0 === t ? void 0 : t.memory; if (n) { const { totalJSHeapSize: e, usedJSHeapSize: t, jsHeapSizeLimit: r } = n, a = { type: "memoryUsage", totalJSHeapSize: e, usedJSHeapSize: t, jsHeapSizeLimit: r }; this.sendEventToAnalytics(a); } }, 1e4); } trackAPSSessionConflict(e, t, n) { this.trackAPSIssue("sessionconflict", e, t, n); } trackAPSIssue(e, t, n, r) { let a = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {}; this.sendEventToAnalytics({ type: "apsIssue", issueType: e, loaderName: t, hasUserLoaded: n, hasScriptLoaded: r, jsondata: JSON.stringify(a) }); } postEvent(e, t) { window.parent.postMessage({ type: "GFEvent", event: e, ...t }, "*"); } sendEventToAnalytics(e) { r.Z.getInstance().sendEvent(e); } })(); }, 66501: (e, t, n) => { "use strict"; n.d(t, { q: () => r }); const r = "prod"; }, 49889: (e, t, n) => { "use strict"; n.d(t, { A: () => i }); var r = n(96607), a = n(4774); const i = () => { a.Z.Instance.isFullscreen() && a.Z.Instance.exitFullscreen(), r.Z.exitFullscreen(), r.Z.requestAuthPrompt(); }; }, 87308: (e, t, n) => { "use strict"; n.d(t, { E: () => h, G6: () => l, U0: () => p, _W: () => d, cy: () => f, f0: () => s, i7: () => i, uo: () => u, vU: () => o, w1: () => c }); var r = n(69121); function a(e, t) { return e === t; } function i() { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "Chrome"); } function o() { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "Firefox"); } function s() { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "Opera"); } function l() { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "Safari") || a(t.name, "Mobile Safari"); } function c() { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "IE"); } function d() { return ( (function () { const { device: e } = (0, r.bG)(), { browser: t } = e; return a(t.name, "Edge"); })() && (function () { const { device: e } = (0, r.bG)(), { engine: t } = e; return "Blink" !== t.name; })() ); } function u() { const e = (0, r.Tb)(); return !(!e.isTablet && !e.isMobile); } function p() { const e = !!window.navigator.standalone, t = window.matchMedia("(display-mode: standalone)").matches; return e || t; } function h() { try { const e = window.navigator.connection; if (!e) return "unknown"; const t = e.downlink; if (void 0 === t) return "unknown"; if (t > 10) return "10"; return t.toFixed(0); } catch (e) { return "unknown"; } } const f = () => { const e = (0, r.Tb)(); return e.isTablet ? "Tablet" : e.isMobile ? "Mobile" : "Desktop"; }; }, 74309: (e, t, n) => { "use strict"; n.d(t, { k: () => r }); class r extends Error { constructor(e, t) { super(`Fetch error:${t}`), (this.originalError = void 0), (this.statusCode = void 0), (this.originalError = e), (this.statusCode = t), Object.setPrototypeOf(this, r.prototype); } } }, 76306: (e, t, n) => { "use strict"; n.d(t, { W: () => r }); class r extends Error { constructor(e, t) { super(`timeout exceeded:${e}`), (this.timer = void 0), (this.source = void 0), (this.source = e), (this.timer = t); } } }, 20503: (e, t, n) => { "use strict"; n.d(t, { a: () => a, p: () => r }); const r = "focusStealAttempt", a = (e) => { (e.tabIndex = 1), e.focus(); }; }, 4774: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(22870), a = n(54833); const i = [ { name: "generic", requestFullscreen: "requestFullscreen", fullscreenEnabled: "fullscreenEnabled", changeListener: "fullscreenchange", errorListener: "fullscreenerror", isFullscreen: "fullscreen", exitFullscreen: "exitFullscreen" }, { name: "webkit", requestFullscreen: "webkitRequestFullscreen", fullscreenEnabled: "webkitFullscreenEnabled", changeListener: "webkitfullscreenchange", errorListener: "webkitfullscreenerror", isFullscreen: "webkitIsFullScreen", exitFullscreen: "webkitExitFullscreen" }, { name: "moz", requestFullscreen: "mozRequestFullScreen", fullscreenEnabled: "mozFullScreenEnabled", changeListener: "mozfullscreenchange", errorListener: "mozfullscreenerror", isFullscreen: "mozFullScreen", exitFullscreen: "mozCancelFullScreen" }, ]; class o { constructor() { (this.fs = void 0), (this.deferredActivate = void 0), (this.deferredDeactivate = void 0), (this.handleError = (e) => { this.deferredActivate && (this.deferredActivate.reject("[Fullscreen] requestFullscreen failed -- legacy api"), (this.deferredActivate = null)); }), (this.handleChange = (e) => { this.isFullscreen() ? (r.kg.debug("[Fullscreen] fullscreen entered"), this.deferredActivate && (this.deferredActivate.resolve(), (this.deferredActivate = null))) : (r.kg.debug("[Fullscreen] fullscreen exited"), this.deferredDeactivate && (this.deferredDeactivate.resolve(), (this.deferredDeactivate = null))); }), (this.fs = this.findPropSet()), (this.deferredActivate = null), (this.deferredDeactivate = null), this.fs && (document.addEventListener(this.fs.errorListener, this.handleError), document.addEventListener(this.fs.changeListener, this.handleChange)); } static get Instance() { return this.singleton || (this.singleton = new o()); } requestFullscreen(e) { if (!this.fs) throw new Error("[Fullscreen] browser does not support requesting fullscreen"); let t; t = e ? e[this.fs.requestFullscreen]() : document.body[this.fs.requestFullscreen](); return { activate: this.wrapRequestFullscreenResponse(t), deactivate: this.waitForDeactivation() }; } isFullscreen() { return !!this.fs && document[this.fs.isFullscreen]; } canFullscreen() { return !!this.fs && document[this.fs.fullscreenEnabled]; } exitFullscreen() { if (!this.fs) throw new Error("[Fullscreen] browser does not support exiting fullscreen"); return document[this.fs.exitFullscreen](); } async wrapRequestFullscreenResponse(e) { if (e) return e; const t = (this.deferredActivate = (0, a.P)()); return ( setTimeout(() => { this.deferredActivate === t && (t.reject("[Fullscreen] requesting fullscreen timed out"), (this.deferredActivate = null)); }, 6e4), this.deferredActivate.promise ); } async waitForDeactivation() { return (this.deferredDeactivate = (0, a.P)()), this.deferredDeactivate.promise; } findPropSet() { const e = i.find((e) => void 0 !== document[e.isFullscreen]); return e ? (r.kg.debug(`[Fullscreen] propset ${e.name}`), e) : (r.kg.warn("[Fullscreen] no matching fs propset found"), null); } } o.singleton = void 0; const s = o; }, 25947: (e, t, n) => { "use strict"; n.d(t, { $7: () => o, tn: () => s, vM: () => l }); var r = n(90831), a = n(71917), i = n(22870); function o() { const e = document.getElementById("game-container"); if (!e) { const e = "[game-container] Cannot grab #game-container - is it properly loaded?"; throw (i.kg.error(e), new Error(e)); } return e; } function s() { const e = document.getElementById("game-container-wrapper"); if (!e) { const e = "[game-container-wrapper] Cannot grab #game-container-wrapper - is it properly loaded?"; throw (i.kg.error(e), new Error(e)); } return e; } function l(e) { const { displayRatio: t } = (0, r.NI)(), n = e ? a.ut.footerHeight : 0, i = window.innerWidth, o = window.innerHeight - n; if (t && t.w && t.h) { const e = Math.min(i / t.w, o / t.h), n = e * t.h, r = e * t.w; return { height: n, width: r, left: (i - r) / 2, top: (o - n) / 2 }; } return { fill: !0, height: o, width: i }; } }, 50009: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(90831); const a = function (e) { return e .replace(/[`~!@#$%^*()_|+\\=?;:'",.<>\\{\\}\\[\]\\\\/]/gi, " ") .trim() .replace(/\s+/g, "-") .toLowerCase(); }; const i = function (e) { const t = e || (0, r.NI)(); return t.gameSlug || a(t.gameName); }; }, 20505: (e, t, n) => { "use strict"; n.d(t, { GA: () => s, Z: () => l }); var r = n(46604); const a = "Fullscreen", i = "Preloader", o = "VideoAds"; class s { constructor() { (this.loadStartTime = 0), (this.gameSlug = void 0), (this.loaderType = void 0), (this.enabled = void 0), (this.enabled = r.Z.isEmbeddedExternally()); } static get Instance() { return this._instance || (this._instance = new this()); } trackFirstQuarterLoaded() { this.trackLoadProgress("First Quarter"); } trackSecondQuarterLoaded() { this.trackLoadProgress("Second Quarter"); } trackThirdQuarterLoaded() { this.trackLoadProgress("Third Quarter"); } trackNinetyPercentLoaded() { this.trackLoadProgress("Ninety Percent"); } trackLoadStarted() { (this.loadStartTime = Date.now()), this.send({ eventCategory: i, eventAction: "Load Start" }); } trackLoadFinished() { this.trackLoadProgress("Load Finish"); } trackStuck(e) { this.send({ eventCategory: i, eventAction: "Stuck", eventValue: e }); } trackStuckRetry() { this.send({ eventCategory: i, eventAction: "StuckRetry" }); } trackStuckWait() { this.send({ eventCategory: i, eventAction: "StuckWait" }); } trackGameControlsOpened() { this.send({ eventCategory: "Gamecontrols", eventAction: "Open" }); } trackFullscreenRequested() { this.send({ eventCategory: a, eventAction: "Request" }); } trackFullscreenEntered() { this.send({ eventCategory: a, eventAction: "Enter" }); } trackFullscreenExited() { this.send({ eventCategory: a, eventAction: "Exit" }); } trackFullscreenFailed(e) { this.send({ eventCategory: a, eventAction: "Fail", eventLabel: e }); } trackAdvancedLoadingTab(e) { this.send({ eventCategory: "AdvancedLoading", eventAction: "Tab", eventLabel: e }); } trackButtonClick(e, t) { this.send({ eventCategory: "Button", eventAction: e.toString(), eventLabel: t }); } trackVideoAdRequested(e) { this.send({ eventCategory: o, eventAction: "AdRequested", eventLabel: e }); } trackBackToGame(e) { this.send({ eventCategory: o, eventAction: "BackToGame", eventLabel: e }); } trackAdImaStarted(e) { this.send({ eventCategory: o, eventAction: "ImaStarted", eventLabel: e }); } trackAdStarted(e, t, n) { this.send({ eventCategory: o, eventAction: "AdStarted", eventLabel: `${n}_${t}_${e}` }); } trackAdCompleted(e, t, n) { this.send({ eventCategory: o, eventAction: "AdCompleted", eventLabel: `${n}_${t}_${e}` }); } trackAdSkippedUsingOverlay(e, t) { this.send({ eventCategory: o, eventAction: "AdSkippedOverlay", eventLabel: `${t}_${e}` }); } trackAdInternalTimeoutHit(e) { this.send({ eventCategory: o, eventAction: "InternalTimeoutHit", eventLabel: e }); } trackAdNoProgress(e) { this.send({ eventCategory: o, eventAction: "NoProgress", eventLabel: e }); } trackAdTimingRequestStarted(e, t) { const n = Date.now() - e; this.send({ eventAction: "timing", eventCategory: o }, { timingCategory: o, timingVar: "AdRequestedStarted", timingValue: n, timingLabel: t }); } trackSDKLegacy() { this.send({ eventCategory: "SDKLegacy", eventAction: "Initialised", eventLabel: this.gameSlug }); } setGameSlug(e) { this.gameSlug = e; } setLoaderType(e) { this.loaderType = e; } trackLoadProgress(e) { const t = Date.now() - this.loadStartTime; t > 9e5 || (this.send({ eventAction: "timing", eventCategory: i }, { timingCategory: i, timingVar: e, timingValue: t }), this.send({ eventCategory: i, eventAction: e })); } defaultParams() { const e = { title: "GameFrame", hostname: window.location.hostname, referrer: document.referrer }; r.Z.isIframed() && ((e.campaignSource = r.Z.getSafeReferrer().hostname), (e.campaignMedium = "iframed")), this.gameSlug && (e.dimension1 = this.gameSlug), this.loaderType && (e.dimension2 = this.loaderType); const t = window.navigator.connection, n = t && t.downlink; return void 0 !== n && (e.dimension3 = n), e; } init(e, t) { this.enabled && ((this.gameSlug = e), (this.loaderType = t), "undefined" !== typeof gtag && gtag("config", "G-asdawdasd", { loaderType: this.loaderType })); } send(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; this.enabled && "undefined" !== typeof gtag && gtag("event", e.eventAction, { event_category: e.eventCategory, event_label: e.eventLabel, value: e.eventValue, ...this.defaultParams(), ...t }); } } s._instance = void 0; const l = s; }, 52797: (e, t, n) => { "use strict"; n.d(t, { O: () => i, GA: () => r.GA, J: () => a }); var r = n(20505); let a = (function (e) { return (e.Steam = "steam"), (e.PlayStore = "playstore"), (e.AppStore = "appstore"), (e.MoreLink = "morelink"), (e.CrazyLink = "crazylink"), (e.PlayOnCrazyLink = "playoncrazylink"), (e.SimilarGames = "similargames"), (e.FlashActivate = "flashunavailable"), (e.FlashAlternative = "flashalternative"), (e.FlashEnableNotAppearing = "flashenablenotappearing"), (e.FlashPlaySimilarGames = "flashsimilargames"), (e.SandboxDisallowed = "sandboxdisallowed"), (e.EmbeddingDisallowed = "embeddingdisallowed"), (e.AlternativeGame = "alternativegame"), (e.EmbeddedAlternativeGame = "embeddedalternativegame"), (e.NoReferrer = "noreferrer"), (e.WindowFullscreen = "windowfullscreen"), (e.AdBlockIgnoreReward = "adBlockIgnoreReward"), (e.AdBlockWhitelist = "adBlockWhiteList"), e; })({}), i = (function (e) { return (e.FullScreenRedirect = "fullscreen_redirect"), (e.UnityUnavailableRedirect = "unityunavail_redirect"), (e.FlashUnavailableRedirect = "flashunavail_redirect"), (e.EmbeddedRedirect = "embedded_redirect"), (e.GameDeletedRedirect = "gamedeleted_redirect"), (e.GameUnavailableRedirect = "gameunavailable_redirect"), (e.AdsTxtMissing = "ads_txt_missing"), (e.NoReferrer = "no_referrer"), (e.ZiggyAnimation = "ziggy_animation"), e; })({}); }, 38459: (e, t, n) => { "use strict"; n.d(t, { Z: () => o }); const r = "https://images.crazygames.com/", a = { auto: "format,compress", q: 75, cs: "strip", ch: "DPR" }; function i(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e; n.startsWith("http") || (n = r + e); const i = new URL(n), o = i.search, s = new URLSearchParams(o), l = Object.assign({}, a, t); return ( Object.entries(l).forEach((e) => { let [t, n] = e; void 0 !== n && s.set(t, `${n}`); }), (i.search = s.toString()), i.toString() ); } const o = function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return i(e, t); }; }, 23004: (e, t, n) => { "use strict"; n.d(t, { $7: () => a.$7, PQ: () => r.P, f4: () => i, tn: () => a.tn, vM: () => a.vM }); var r = n(54833), a = n(25947); n(46604); const i = "1.270.0"; }, 19314: (e, t, n) => { "use strict"; n.d(t, { U: () => a }); var r = n(90831); function a() { const { isKids: e, forceIsKids: t } = (0, r.NI)(); return !(!e && !t); } }, 18088: (e, t, n) => { "use strict"; n.d(t, { ZW: () => o, lB: () => l, xz: () => s }); const r = [ { domain: "spelle.be", locale: "nl_NL" }, { domain: "minijuegos.com", locale: "es_ES" }, { domain: "juegos.com", locale: "es_ES" }, { domain: "juegosfriv2019.org", locale: "es_ES" }, { domain: "juegosfriv2018.net", locale: "es_ES" }, { domain: "juegosdechicas.com", locale: "es_ES" }, { domain: "juegosfriv2019.com", locale: "es_ES" }, { domain: "juegosfrivas.com", locale: "es_ES" }, { domain: "juegosarea.com", locale: "es_ES" }, { domain: "friv2019com.com", locale: "es_ES" }, { domain: "mixfriv.com", locale: "es_ES" }, { domain: "juegosfriv2016.org", locale: "es_ES" }, { domain: "1001juegos.com", locale: "es_ES" }, { domain: "juegos.games", locale: "es_ES" }, { domain: "juegosfriv100.link", locale: "es_ES" }, { domain: "juegosfriv2017.net", locale: "es_ES" }, { domain: "juegosjuegos.com", locale: "es_ES" }, { domain: "juegosjuegos.ws", locale: "es_ES" }, { domain: "cooljuegos.com", locale: "es_ES" }, { domain: "juegosdefriv20.com", locale: "es_ES" }, { domain: "gryfriv5.com", locale: "es_ES" }, { domain: "fandejuegos.com", locale: "es_ES" }, { domain: "juegosdiarios.com", locale: "es_ES" }, { domain: "yayoye-juegos.com", locale: "es_ES" }, { domain: "juegosjuegos.ws", locale: "es_ES" }, { domain: "jogalo.com", locale: "pt_BR" }, { domain: "joguix.com", locale: "pt_BR" }, { domain: "minigiochi.com", locale: "it_IT" }, { domain: "fangiochi.com", locale: "it_IT" }, { domain: "giochi.com", locale: "it_IT" }, { domain: "macchianera.net", locale: "it_IT" }, { domain: "bnatjeux2.com", locale: "fr_FR" }, { domain: "fandesjeux.com", locale: "fr_FR" }, { domain: "jeux-gratuits.com", locale: "fr_FR" }, { domain: "jeu.cc", locale: "fr_FR" }, { domain: "jeux23d.com", locale: "fr_FR" }, { domain: "zebest-3000.com", locale: "fr_FR" }, { domain: "vseigru.net", locale: "ru_RU" }, { domain: "igroutka.net", locale: "ru_RU" }, { domain: "onlajnigry.net", locale: "ru_RU" }, { domain: "jogalo.com", locale: "pt_BR" }, { domain: "hierspielen.com", locale: "de_DE" }, { domain: "spielen.com", locale: "de_DE" }, { domain: "spiel1.com", locale: "de_DE" }, { domain: "jetztspielen.ws", locale: "de_DE" }, { domain: "1001pelit.com", locale: "fi_FI" }, { domain: "aapeli.net", locale: "fi_FI" }, { domain: "oyunskor.com", locale: "tr_TR" }, { domain: "kraloyun.com", locale: "tr_TR" }, ], a = [ { tld: ".nl", locale: "nl_NL" }, { tld: ".es", locale: "es_ES" }, { tld: ".ar", locale: "es_ES" }, { tld: ".mx", locale: "es_ES" }, { tld: ".pe", locale: "es_ES" }, { tld: ".cl", locale: "es_ES" }, { tld: ".py", locale: "es_ES" }, { tld: ".uy", locale: "es_ES" }, { tld: ".co", locale: "es_ES" }, { tld: ".ve", locale: "es_ES" }, { tld: ".it", locale: "it_IT" }, { tld: ".se", locale: "sv_SE" }, { tld: ".id", locale: "id_ID" }, { tld: ".ua", locale: "uk_UA" }, { tld: ".fi", locale: "fi_FI" }, { tld: ".no", locale: "nb_NO" }, { tld: ".fr", locale: "fr_FR" }, { tld: ".br", locale: "pt_BR" }, { tld: ".pt", locale: "pt_BR" }, { tld: ".ru", locale: "ru_RU" }, { tld: ".pl", locale: "pl_PL" }, { tld: ".ro", locale: "ro_RO" }, { tld: ".at", locale: "de_DE" }, { tld: ".de", locale: "de_DE" }, { tld: ".gr", locale: "el_GR" }, { tld: ".sk", locale: "cs_CZ" }, { tld: ".cz", locale: "cs_CZ" }, { tld: ".dk", locale: "da_DK" }, { tld: ".hu", locale: "hu_HU" }, { tld: ".tr", locale: "tr_TR" }, { tld: ".ae", locale: "ar_SA" }, { tld: ".sa", locale: "ar_SA" }, { tld: ".dz", locale: "ar_SA" }, { tld: ".eg", locale: "ar_SA" }, { tld: ".ma", locale: "ar_SA" }, ]; var i = n(46604); const o = "en_US"; function s(e) { return e.slice(0, 2); } function l() { const e = i.Z.getReferrer(); return e ? (function (e) { const t = e.hostname.split("."), n = r.find((e) => { let { domain: n } = e; const r = n.split("."); return t.slice(-r.length).join(".") === n; }); if (n) return n.locale; const i = a.find((t) => { let { tld: n } = t; return e.hostname.endsWith(n); }); return i ? i.locale : null; })(e) : null; } }, 22870: (e, t, n) => { "use strict"; n.d(t, { Yd: () => r, fq: () => i, kg: () => a }); class r { constructor(e) { (this.isEnabled = e), (this.prefix = ""); } info(e) { if (!this.isEnabled) return this; for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return console.info(this.prefix + e, ...n), this; } log(e) { if (!this.isEnabled) return this; for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return console.log(this.prefix + e, ...n), this; } warn(e) { if (!this.isEnabled) return this; for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return console.warn(this.prefix + e, ...n), this; } debug(e) { if (!this.isEnabled) return this; for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return console.debug(this.prefix + e, ...n), this; } error(e) { if (!this.isEnabled) return this; for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return console.error(this.prefix + e, ...n), this; } err(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; return this.error(e.message, ...n); } withPrefix(e) { const t = new r(this.isEnabled); return (t.prefix = e), t.prefix.endsWith(" ") || (t.prefix += " "), t; } } const a = new r(!0); function i(e) { return new r(e); } }, 6224: (e, t, n) => { "use strict"; n.d(t, { UQ: () => h, ZP: () => m, xc: () => f }); var r = n(46604), a = n(74082), i = n(90831), o = n(50009), s = n(96607); const l = "pwa-game", c = "pwa-cancel-count", d = "pwa-blocked-date", u = 48e4, p = (e) => { const t = a.m.Instance.getItem(l) || "[]", n = JSON.parse(t); return { isMarkedOkay: !!n.find((t) => t.slug === e), gamesMarked: n }; }, h = () => { const e = a.m.Instance, t = (0, o.Z)(), { isMarkedOkay: n, gamesMarked: r } = p(t); n || (r.push({ slug: t }), e.setItem(l, JSON.stringify(r))); }, f = () => { const e = a.m.Instance, t = (() => { const e = a.m.Instance.getItem(c) || "0", t = JSON.parse(e); return parseInt(t) || 0; })() + 1; t >= 2 ? (e.removeItem(c), e.setItem(d, JSON.stringify(Date.now()))) : e.setItem(c, JSON.stringify(t)); }; const m = new (class { constructor() { (this.gameStartTime = void 0), (this.pwaPromptShownAt = void 0), (this.shouldRequestCanInstallPWA = void 0), (this.canInstallPWA = void 0), (this.canInstallListeners = void 0), (this.getCanInstallPWA = () => this.canInstallPWA), (this.setCanInstallPWA = (e) => { !1 === e && (this.shouldRequestCanInstallPWA = !1), (this.canInstallPWA = e), this.canInstallListeners.forEach((t) => t(e)); }), (this.addListenerToCanInstall = (e) => { this.canInstallListeners.push(e); }), (this.pwaPromptShownAt = []), (this.gameStartTime = Date.now()), (this.shouldRequestCanInstallPWA = !0), (this.canInstallPWA = !1), (this.canInstallListeners = []); } requestCanInstallPWA() { (0, i.NI)().disablePWA || !this.shouldRequestCanInstallPWA || this.canInstallPWA || s.Z.getPwaInstallEnabled(); } startGameTime() { this.gameStartTime = Date.now(); } getGameTime() { return Date.now() - this.gameStartTime; } getGameTimeInSec() { return this.getGameTime() / 1e3; } getLastPWAPromptTime() { const e = this.pwaPromptShownAt.length; return e ? this.pwaPromptShownAt[e - 1] : null; } addPWAPromptStat() { this.pwaPromptShownAt.push(Date.now()); } shouldShowPWAIcon() { this.requestCanInstallPWA(); const e = (0, i.NI)(), t = (0, o.Z)(); if (e.disablePWA) return !1; const n = r.Z.getSafeReferrer(); return !(!r.Z.isOnCrazygames(n) && !r.Z.isOnLocalhost(n)) && !p(t).isMarkedOkay && ("undefined" === typeof window || !(window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone || document.referrer.includes("android-app://"))); } shouldShowPWAPrompt() { const e = this.getLastPWAPromptTime(), t = Date.now(), n = (0, i.NI)(), s = (0, o.Z)(); if ((this.requestCanInstallPWA(), (this.shouldRequestCanInstallPWA = !1), n.disablePWA)) return !1; if (!this.getCanInstallPWA() && !n.forceShowPWAPrompt) return !1; if ( (() => { const e = a.m.Instance, t = e.getItem(d); if (t) { const n = Date.now() - JSON.parse(t); return !(Math.ceil(n / 864e5) >= 30) || (e.removeItem(d), e.removeItem(c), !1); } return !1; })() ) return !1; if (this.getGameTime() < u) return !1; const l = r.Z.getSafeReferrer(); return !(!r.Z.isOnCrazygames(l) && !r.Z.isOnLocalhost(l)) && !(e && t - e < u) && 2 !== this.pwaPromptShownAt.length && !p(s).isMarkedOkay; } })(); }, 54833: (e, t, n) => { "use strict"; function r() { const e = {}; return ( (e.promise = new Promise((t, n) => { (e.resolve = t), (e.reject = n); })), e ); } n.d(t, { P: () => r }); }, 37921: (e, t, n) => { "use strict"; function r(e) { return "qa" === e || "standalone-qa" === e; } n.d(t, { v: () => r }); }, 74082: (e, t, n) => { "use strict"; n.d(t, { m: () => i }); var r = n(22870); class a { constructor() { (this.data = void 0), (this.data = {}), this.clear(); } setItem(e, t) { this.data[e] = String(t); } getItem(e) { return this.data.hasOwnProperty(e) ? this.data[e] : void 0; } removeItem(e) { delete this.data[e]; } clear() { this.data = {}; } } class i { constructor() { (this.storage = void 0), (this.storage = this.getAvailableStorage()); } static get Instance() { return this._instance ? this._instance : (this._instance = new this()); } getItem(e) { return this.storage.getItem(e); } setItem(e, t) { this.storage.setItem(e, t); } removeItem(e) { this.storage.removeItem(e); } clear() { return this.storage.clear(); } isFunctioningStorage(e) { try { const t = `__SafeLocalStorage__${Date.now()}`, n = "test"; return e.setItem(t, n), e.getItem(t) !== n ? !1 : (window.localStorage.removeItem(t), !0); } catch (t) { return !1; } } getAvailableStorage() { try { return this.hasWorkingLocalStorage() ? (r.kg.debug("[SafeLocalStorage] using localStorage"), window.localStorage) : this.hasWorkingSessionStorage() ? (r.kg.info("[SafeLocalStorage] fallback to sessionStorage"), window.sessionStorage) : (r.kg.warn("[SafeLocalStorage] fallback to InMemoryStorage"), new a()); } catch (e) { return r.kg.warn("[SafeLocalStorage] fallback to InMemoryStorage"), new a(); } } hasWorkingLocalStorage() { try { if (!window.hasOwnProperty("localStorage")) return !1; const { localStorage: e } = window; return this.isFunctioningStorage(e); } catch (e) { return !1; } } hasWorkingSessionStorage() { try { if (!window.hasOwnProperty("sessionStorage")) return !1; const { sessionStorage: e } = window; return this.isFunctioningStorage(e); } catch (e) { return !1; } } } i._instance = void 0; }, 48300: (e, t, n) => { "use strict"; function r(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return new Promise((n, r) => { const a = document.createElement("script"); (a.onload = () => n()), (a.onerror = (e) => r(e)), (a.src = e), (a.async = !0), Object.keys(t).forEach((e) => { const n = t[e]; a.setAttribute(e, n); }), document.body.appendChild(a); }); } function a(e) { o(e, "script", !1); } function i(e, t) { o(e, "fetch", t); } function o(e, t, n) { const r = document.createElement("link"); (r.href = e), (r.rel = "preload"), (r.as = t), n && (r.crossOrigin = "true"), document.head.appendChild(r); } n.d(t, { Wh: () => i, kK: () => a, ve: () => r }); }, 46604: (e, t, n) => { "use strict"; n.d(t, { Z: () => u }); const r = atob("Z2FtZWZyYW1lLWNvbmZpZw"); async function a() { const e = await fetch(r, { method: "GET", cache: "no-store" }), t = await e.text(); return JSON.parse( (function (e) { let t = "", n = (e = "undefined" === typeof window ? Buffer.from(e, "base64").toString() : atob(e)).match(/.{1,3}/g) || []; for (var r = 0; r < n.length; r++) t += String.fromCharCode(parseInt(n[r], 10)); return t; })(t) ); } var i = n(90831), o = n(22870), s = n(87308), l = n(50009), c = n(52797); class d { static getConfig() { if (!this.config) throw new Error("this.config accessed before being initialized"); return this.config; } static Initialize() { return ( this.initPromise || (this.initPromise = a().then((e) => { this.config = e; })), this.initPromise ); } static isSameDomain(e, t) { return t.endsWith(`.${e}`) || t === e; } static isOnDomains(e, t) { const { hostname: n } = e; return !!t.find((e) => this.isSameDomain(e, n)); } static getReferrer() { return document.referrer ? new URL(document.referrer) : null; } static getSafeReferrer() { return new URL(document.referrer || window.location.toString()); } static getHostName(e) { const { hostname: t } = e; return t; } static getReferrerHostName() { return this.getHostName(this.getSafeReferrer()); } static isIframed() { try { return window.self !== window.top; } catch (e) { return !0; } } static crazygamesSearchUtmUrl(e, t, n) { return this.utmUrl(atob("aHR0cHM6Ly93d3cuY3JhenlnYW1lcy5jb20vc2VhcmNoP3E9") + encodeURIComponent(e), t, n); } static crazygamesLocalizedGameUrl(e, t) { return `${this.localizedGamePage(e)}/${t}`; } static localhostUrl() { return atob("bG9jYWxob3N0"); } static crazygamesGameUtmUrl(e, t, n) { const r = atob("aHR0cHM6Ly93d3cuY3JhenlnYW1lcy5jb20vZ2FtZS8="); return this.utmUrl(r + e, t, n); } static utmUrl(e, t, n) { const r = new URL(e), a = this.getSafeReferrer(); return r.searchParams.append("utm_source", a.toString()), r.searchParams.append("utm_medium", "game_frame"), this.isEmbeddedExternally() || r.searchParams.append("utm_campaign", t), r.searchParams.append("utm_content", n), r.toString(); } static localizedDomain(e) { const t = "https://"; switch (e) { case "es_ES": return t + atob("d3d3LjEwMDFqdWVnb3MuY29t"); case "id_ID": return t + atob("d3d3LmNyYXp5Z2FtZXMuY28uaWQ="); case "it_IT": return t + atob("aXQuY3JhenlnYW1lcy5jb20="); case "nl_NL": return t + atob("d3d3LmNyYXp5Z2FtZXMubmw="); case "fr_FR": return t + atob("d3d3LmNyYXp5Z2FtZXMuZnI="); case "ru_RU": return t + atob("d3d3LmNyYXp5Z2FtZXMucnU="); case "pt_BR": return t + atob("d3d3LmNyYXp5Z2FtZXMuY29tLmJy"); case "uk_UA": return t + atob("d3d3LmNyYXp5Z2FtZXMuY29tLnVh"); case "nb_NO": return t + atob("d3d3LmNyYXp5Z2FtZXMubm8="); case "ro_RO": return t + atob("d3d3LmNyYXp5Z2FtZXMucm8="); case "fi_FI": return t + atob("d3d3LmNyYXp5Z2FtZXMuZmk="); case "sv_SE": return t + atob("d3d3LmNyYXp5Z2FtZXMuc2U="); case "de_DE": return t + atob("ZGUuY3JhenlnYW1lcy5jb20="); case "pl_PL": return t + atob("d3d3LmNyYXp5Z2FtZXMucGw="); case "el_GR": return t + atob("Z3IuY3JhenlnYW1lcy5jb20="); case "da_DK": return t + atob("d3d3LmNyYXp5Z2FtZXMuZGs="); case "cs_CZ": return t + atob("d3d3LmNyYXp5Z2FtZXMuY3o="); case "hu_HU": return t + atob("d3d3LmNyYXp5Z2FtZXMuaHU="); case "tr_TR": return t + atob("dHIuY3JhenlnYW1lcy5jb20="); case "ar_SA": return t + atob("YXIuY3JhenlnYW1lcy5jb20="); case "vi_VN": return t + atob("dm4uY3JhenlnYW1lcy5jb20="); case "th_TH": return t + atob("dGguY3JhenlnYW1lcy5jb20="); default: return t + atob("d3d3LmNyYXp5Z2FtZXMuY29t"); } } static crazygamesLocalizedHomeUtmUrl(e, t, n) { const r = this.localizedDomain(e); return true; } static isSandboxed() { return this.isOnBlacklistedDomain(this.getSafeReferrer()); } static isEmbeddedExternally() { const { forceEmbeddedExternally: e } = (0, i.NI)(); if ("undefined" !== typeof e) return e; if ((0, s.vU)()) return !1; const t = this.getSafeReferrer(); return !t || !this.isOnCrazygames(t); } static isOnCrazygames(e) { console.log(this.isOnDomains(e, this.czyDomains) || this.isOnLocalhost(e)); return this.isOnDomains(e, this.czyDomains) || this.isOnLocalhost(e); } static isOnLocalhost(e) { return this.isOnDomains(e, [this.localhostUrl()]); } static isOnBlacklistedDomain(e) { const { blacklistedDomains: t } = this.getConfig(); return false; } static isOnAdsTxtMissingDomains(e) { const { adsTxtMissingDomains: t } = this.getConfig(); return this.isOnDomains(e, t); } static buildVideoSrc(e, t) { if (!e || 0 === e.length) return o.kg.error("[URL Helper - BuildVideoSrc] A sizes array parameter is required"), ""; if (e && e.length > 0) { if (t) { const n = e.filter((e) => e.width >= t).sort((e, t) => e.width - t.width); if (n.length > 0) return n[0].location; } return e.slice().sort((e, t) => t.width - e.width)[0].location; } return ""; } static getQueryStringValue(e) { return new URL(window.location.toString()).searchParams.get(e); } static localizedGamePage(e) { const t = this.localizedDomain(e); switch (e) { case "es_ES": return t + "/juego"; case "en_US": case "id_ID": case "ar_SA": return t + "/game"; case "it_IT": return t + "/gioco"; case "nl_NL": case "sv_SE": return t + "/spel"; case "fr_FR": return t + "/jeu"; case "ru_RU": return t + "/igra"; case "pt_BR": return t + "/jogos"; case "de_DE": return t + "/spiele"; case "fi_FI": return t + "/peli"; case "nb_NO": return t + "/spill"; case "pl_PL": case "uk_UA": return t + "/gra"; case "ro_RO": return t + "/joc"; case "el_GR": return t + "/paixnidi"; case "da_DK": return t + "/spil"; case "cs_CZ": return t + "/hra"; case "hu_HU": return t + "/jatek"; case "tr_TR": return t + "/oyun"; case "vi_VN": return t + "/tr\xf2-ch\u01a1i"; case "th_TH": return t + "/\u0e40\u0e01\u0e21"; default: return o.kg.error("[UrlHelper] localizedGamePage Unknown locale", e), t + "/game"; } } static ZiggyMainWebsiteUrl() { const e = (0, i.NI)(), t = c.O.ZiggyAnimation, n = (0, l.Z)(); return e.gameSlug ? d.crazygamesGameUtmUrl(e.gameSlug, n, t) : d.crazygamesSearchUtmUrl(e.gameName, n, t); } } (d.config = null), (d.czyDomains = ["Kg", "Y3JhenlnYW1lcy5jb20=", "MTAwMWp1ZWdvcy5jb20=", "Y3JhenlnYW1lcy5ubA==", "Y3JhenlnYW1lcy5jby5pZA==", "Y3JhenlnYW1lcy5mcg==", "Y3JhenlnYW1lcy5ydQ==", "Y3JhenlnYW1lcy5jb20uYnI=", "ZGV2LWNyYXp5Z2FtZXMuYmU=", "Y3JhenlnYW1lcy5jb20udWE=", "Y3JhenlnYW1lcy5zZQ==", "Y3JhenlnYW1lcy5maQ==", "Y3JhenlnYW1lcy5ubw==", "Y3JhenlnYW1lcy5ybw==", "Y3JhenlnYW1lcy5jeg==", "Y3JhenlnYW1lcy5odQ==", "Y3JhenlnYW1lcy5kaw==", "Y3JhenlnYW1lcy5wbA=="].map((e) => atob(e))), (d.initPromise = null); const u = d; }, 69121: (e, t, n) => { "use strict"; n.d(t, { Ax: () => s, CS: () => f, G3: () => l, So: () => h, Tb: () => p, bG: () => m }); var r = n(66501), a = n(90831), i = n(87308); const o = ["AT", "BE", "BG", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "HR", "HU", "IE", "IT", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO", "SE", "SI", "SK", "CH", "NO"]; function s(e) { return !e || o.some((t) => e === t); } function l(e) { return !e || "US" === e; } let c = { countryCode: null, device: { os: { name: "", version: "" }, browser: { name: "", version: "", major: "" }, device: {}, engine: { name: "", version: "" } } }; function d() { const e = Math.max(window.innerWidth, window.innerHeight), t = Math.min(window.innerWidth, window.innerHeight); return e <= 568 || t <= 320; } let u = null; function p() { if (!c.device) return { isIos: !1, isAndroid: !1, isMobile: !1, isTablet: !1, isStandaloneMode: (0, i.U0)(), isSmallDevice: d(), isIE: !1, isChrome: !1, isSafari: !1, isFirefox: !1, isOpera: !1, type: "desktop", rawBrowser: { name: "", major: "", version: "" }, rawOS: { name: "", version: "" } }; if (!u) { const { os: e, browser: t, device: n } = c.device, r = "tablet" === n.type || (function () { if (window.navigator.userAgent.indexOf("iPad") > -1) return !0; const { device: e } = m(); return "Mac OS" === (e.os.name || "") && window.navigator.maxTouchPoints > 2; })(), o = "mobile" === n.type || (0, a.NI)().forceMobile; let s = "desktop"; r ? (s = "tablet") : o && (s = "mobile"), (u = { isIos: "iOS" === e.name, isAndroid: "Android" === e.name, isMobile: !(r || !o), isTablet: !!r, isStandaloneMode: (0, i.U0)(), isSmallDevice: d(), isIE: (0, i.w1)(), isChrome: (0, i.i7)(), isSafari: (0, i.G6)(), isFirefox: (0, i.vU)(), isOpera: (0, i.f0)(), rawOS: e, rawBrowser: t, type: s }); } return u; } function h() { const e = p(), { countryCode: t } = m(), n = { countryCode: t, device: { type: e.type } }; return e.rawOS && (n.os = { name: e.rawOS.name, version: e.rawOS.version }), e.rawBrowser && (n.browser = { name: e.rawBrowser.name, version: e.rawBrowser.version }), n; } async function f(e) { try { const t = new URL( (function () { switch (r.q) { case "local": case "dev": return "https://workers.dev-crazygames.be/device"; default: return "https://workers.crazygames.com/device"; } })() ); e && t.searchParams.set("bypassCache", `${Date.now()}`); const n = await fetch(t.toString(), { method: "GET" }), a = await n.json(); c = a; } catch (t) { c = { ...c, countryCode: "US" }; } return c; } function m() { const { forceCountry: e } = (0, a.NI)(); return e ? { ...c, countryCode: e } : c; } }, 32606: (e, t, n) => { "use strict"; n.d(t, { D: () => r, g: () => a }); const r = { brand: { 0: "#fff", 20: "#E1D9FF", 40: "#C3B3FF", 50: "#B4A1FF", 60: "#A48EFF", 70: "#957BFF", 80: "#8668FF", 100: "#6842FF", 120: "#5335CC", 140: "#3E2899", 160: "#2A1A66", 180: "#150D33", 200: "#07050F" }, black: { 10: "#474967", 20: "#434561", 30: "#3F415C", 40: "#373952", 50: "#2F3148", 60: "#28293D", 70: "#212233", 80: "#1A1B28", 90: "#13141E", 100: "#0C0D14" }, white: { 10: "#666A7F", 20: "#767A8E", 30: "#878A9E", 40: "#989BAE", 50: "#AAADBE", 60: "#BDBFCE", 80: "#E5E6EE", 90: "#EFF0F7", 100: "#F9FAFF" }, success: { 100: "#4AF0A7" }, alert: { 100: "#E70D5C", 60: "#F16E9D", 80: "#EC3D7D" }, warning: { 100: "#FFAC4A" } }, a = { brand: { 100: "#6842FFb3", 80: "#8668ffb3" }, black: { 70: "#212233b3" }, white: { 30: "#878a9eb3", 50: "#aaadbeb3" }, success: { 100: "#4af0a7b3" }, alert: { 100: "#e70d5cb3" } }; }, 46325: (e, t, n) => { "use strict"; n.d(t, { ZP: () => b, Q0: () => h, Pr: () => f, VP: () => m, AT: () => g, fY: () => v }); var r = n(87462), a = n(77219); function i(e) { return String(parseFloat(e)).length === String(e).length; } function o(e) { return parseFloat(e); } function s(e) { return (t, n) => { const r = String(t).match(/[\d.\-+]*\s*(.*)/)[1] || ""; if (r === n) return t; let a = o(t); "px" !== r && ("em" === r || "rem" === r) && (a = o(t) * o(e)); let i = a; if ("px" !== n) if ("em" === n) i = a / o(e); else { if ("rem" !== n) return t; i = a / o(e); } return parseFloat(i.toFixed(5)) + n; }; } function l(e) { let { size: t, grid: n } = e; const r = t - (t % n), a = r + n; return t - r < a - t ? r : a; } function c(e) { let { lineHeight: t, pixels: n, htmlFontSize: r } = e; return n / (t * r); } function d(e) { let { cssProperty: t, min: n, max: r, unit: a = "rem", breakpoints: i = [600, 900, 1200], transform: o = null } = e; const s = { [t]: `${n}${a}` }, l = (r - n) / i[i.length - 1]; return ( i.forEach((e) => { let r = n + l * e; null !== o && (r = o(r)), (s[`@media (min-width:${e}px)`] = { [t]: `${Math.round(1e4 * r) / 1e4}${a}` }); }), s ); } var u = n(3666), p = n(32606); const h = "linear-gradient(337deg, rgb(92 197 255) 24%, rgb(202 234 251), rgb(187 207 75))", f = "linear-gradient(337deg, rgb(92 197 255, 0.92) 24%, rgb(202 234 251, 0.92), rgb(255 241 152, 0.92))", m = p.D.black[90], g = "#212233c2", v = "#FFBC11", b = (e) => (function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const { breakpoints: n = ["sm", "md", "lg"], disableAlign: o = !1, factor: u = 2, variants: p = ["h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "caption", "button", "overline"] } = t, h = (0, r.Z)({}, e); h.typography = (0, r.Z)({}, h.typography); const f = h.typography, m = s(f.htmlFontSize), g = n.map((e) => h.breakpoints.values[e]); return ( p.forEach((e) => { const t = f[e], n = parseFloat(m(t.fontSize, "rem")); if (n <= 1) return; const s = n, p = 1 + (s - 1) / u; let { lineHeight: h } = t; if (!i(h) && !o) throw new Error((0, a.Z)(6)); i(h) || (h = parseFloat(m(h, "rem")) / parseFloat(n)); let v = null; o || (v = (e) => l({ size: e, grid: c({ pixels: 4, lineHeight: h, htmlFontSize: f.htmlFontSize }) })), (f[e] = (0, r.Z)({}, t, d({ cssProperty: "fontSize", min: p, max: s, unit: "rem", breakpoints: g, transform: v }))); }), h ); })((0, u.Z)({ palette: { mode: "dark", primary: { light: e ? "#FFEBA9" : "#6937B9", main: "#3C1E6E", dark: e ? "#FFBC11" : "#2A1253", contrastText: "#decaff" }, background: { default: p.D.black[90], paper: "#3C1E6E" }, secondary: { main: e ? "#2FB4FF" : "#35FDFF", contrastText: "#fff" }, text: { primary: "#decaff" } }, spacing: 8, typography: { fontFamily: ["Nunito", "Arial", '"Helvetica Neue"', "Helvetica", "sans-serif"].join(","), fontSize: 16, h1: { fontSize: "3rem", color: "#fff" }, h3: { fontSize: "2rem", color: "#fff" }, h4: { fontSize: "1.5rem", fontWeight: 700, color: "#fff" } }, components: { MuiCssBaseline: { styleOverrides: { body: { color: "#fff", fontSize: "1rem !important" } } }, MuiDialog: { styleOverrides: { paper: { backgroundColor: "white", color: "#2A1253" } } } } })); }, 71917: (e, t, n) => { "use strict"; n.d(t, { Eu: () => c, Iq: () => i, cz: () => o, ot: () => s, ut: () => a }); var r = n(30686); const a = { footerHeight: 45 }, i = { width: 392, height: 220 }, o = { yellowRating: "linear-gradient(to top, #ffca09, #e89000)" }, s = { maxMobileLandscapeHeight: 546, smallMobileLandscapeHeight: 445, minFullsizeHeight: 700 }, l = r.F4` 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } `, c = { loadingBarAnimation: { background: "repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 10px,\n #cccccc12 10px,\n #cccccc12 20px\n ), #33294e", backgroundSize: "400% 400%", animationName: `${l}`, animationDuration: "25s", animationTimingFunction: "linear", animationIterationCount: "infinite" }, imagePlaceholderAnimation: { animationDuration: "2s", animationFillMode: "forwards", animationIterationCount: "infinite", animationName: `${l}`, animationTimingFunction: "linear", background: "linear-gradient(to right, #554e86c7 26%, #73659eba 70%, #796c9485 90%)", backgroundSize: "400% 400%" } }; }, 98295: (e, t, n) => { "use strict"; n.d(t, { Z: () => ae }); var r = n(53324), a = Math.abs, i = String.fromCharCode, o = Object.assign; function s(e) { return e.trim(); } function l(e, t, n) { return e.replace(t, n); } function c(e, t) { return e.indexOf(t); } function d(e, t) { return 0 | e.charCodeAt(t); } function u(e, t, n) { return e.slice(t, n); } function p(e) { return e.length; } function h(e) { return e.length; } function f(e, t) { return t.push(e), e; } var m = 1, g = 1, v = 0, b = 0, y = 0, w = ""; function S(e, t, n, r, a, i, o) { return { value: e, root: t, parent: n, type: r, props: a, children: i, line: m, column: g, length: o, return: "" }; } function k(e, t) { return o(S("", null, null, "", null, null, 0), e, { length: -e.length }, t); } function x() { return (y = b > 0 ? d(w, --b) : 0), g--, 10 === y && ((g = 1), m--), y; } function C() { return (y = b < v ? d(w, b++) : 0), g++, 10 === y && ((g = 1), m++), y; } function E() { return d(w, b); } function I() { return b; } function P(e, t) { return u(w, e, t); } function A(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function T(e) { return (m = g = 1), (v = p((w = e))), (b = 0), []; } function R(e) { return (w = ""), e; } function _(e) { return s(P(b - 1, L(91 === e ? e + 2 : 40 === e ? e + 1 : e))); } function Z(e) { for (; (y = E()) && y < 33; ) C(); return A(e) > 2 || A(y) > 3 ? "" : " "; } function z(e, t) { for (; --t && C() && !(y < 48 || y > 102 || (y > 57 && y < 65) || (y > 70 && y < 97)); ); return P(e, I() + (t < 6 && 32 == E() && 32 == C())); } function L(e) { for (; C(); ) switch (y) { case e: return b; case 34: case 39: 34 !== e && 39 !== e && L(y); break; case 40: 41 === e && L(e); break; case 92: C(); } return b; } function M(e, t) { for (; C() && e + y !== 57 && (e + y !== 84 || 47 !== E()); ); return "/*" + P(t, b - 1) + "*" + i(47 === e ? e : C()); } function F(e) { for (; !A(E()); ) C(); return P(e, b); } var D = "-ms-", N = "-moz-", j = "-webkit-", O = "comm", B = "rule", U = "decl", $ = "@keyframes"; function G(e, t) { for (var n = "", r = h(e), a = 0; a < r; a++) n += t(e[a], a, e, t) || ""; return n; } function V(e, t, n, r) { switch (e.type) { case "@import": case U: return (e.return = e.return || e.value); case O: return ""; case $: return (e.return = e.value + "{" + G(e.children, r) + "}"); case B: e.value = e.props.join(","); } return p((n = G(e.children, r))) ? (e.return = e.value + "{" + n + "}") : ""; } function q(e, t) { switch ( (function (e, t) { return (((((((t << 2) ^ d(e, 0)) << 2) ^ d(e, 1)) << 2) ^ d(e, 2)) << 2) ^ d(e, 3); })(e, t) ) { case 5103: return j + "print-" + e + e; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return j + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return j + e + N + e + D + e + e; case 6828: case 4268: return j + e + D + e + e; case 6165: return j + e + D + "flex-" + e + e; case 5187: return j + e + l(e, /(\w+).+(:[^]+)/, "-webkit-box-$1$2-ms-flex-$1$2") + e; case 5443: return j + e + D + "flex-item-" + l(e, /flex-|-self/, "") + e; case 4675: return j + e + D + "flex-line-pack" + l(e, /align-content|flex-|-self/, "") + e; case 5548: return j + e + D + l(e, "shrink", "negative") + e; case 5292: return j + e + D + l(e, "basis", "preferred-size") + e; case 6060: return j + "box-" + l(e, "-grow", "") + j + e + D + l(e, "grow", "positive") + e; case 4554: return j + l(e, /([^-])(transform)/g, "$1-webkit-$2") + e; case 6187: return l(l(l(e, /(zoom-|grab)/, j + "$1"), /(image-set)/, j + "$1"), e, "") + e; case 5495: case 3959: return l(e, /(image-set\([^]*)/, j + "$1$`$1"); case 4968: return l(l(e, /(.+:)(flex-)?(.*)/, "-webkit-box-pack:$3-ms-flex-pack:$3"), /s.+-b[^;]+/, "justify") + j + e + e; case 4095: case 3583: case 4068: case 2532: return l(e, /(.+)-inline(.+)/, j + "$1$2") + e; case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (p(e) - 1 - t > 6) switch (d(e, t + 1)) { case 109: if (45 !== d(e, t + 4)) break; case 102: return l(e, /(.+:)(.+)-([^]+)/, "$1-webkit-$2-$3$1" + N + (108 == d(e, t + 3) ? "$3" : "$2-$3")) + e; case 115: return ~c(e, "stretch") ? q(l(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: if (115 !== d(e, t + 1)) break; case 6444: switch (d(e, p(e) - 3 - (~c(e, "!important") && 10))) { case 107: return l(e, ":", ":" + j) + e; case 101: return l(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + j + (45 === d(e, 14) ? "inline-" : "") + "box$3$1" + j + "$2$3$1" + D + "$2box$3") + e; } break; case 5936: switch (d(e, t + 11)) { case 114: return j + e + D + l(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return j + e + D + l(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return j + e + D + l(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } return j + e + D + e + e; } return e; } function W(e) { return R(H("", null, null, null, [""], (e = T(e)), 0, [0], e)); } function H(e, t, n, r, a, o, s, d, u) { for (var h = 0, m = 0, g = s, v = 0, b = 0, y = 0, w = 1, S = 1, k = 1, P = 0, A = "", T = a, R = o, L = r, D = A; S; ) switch (((y = P), (P = C()))) { case 40: if (108 != y && 58 == D.charCodeAt(g - 1)) { -1 != c((D += l(_(P), "&", "&\f")), "&\f") && (k = -1); break; } case 34: case 39: case 91: D += _(P); break; case 9: case 10: case 13: case 32: D += Z(y); break; case 92: D += z(I() - 1, 7); continue; case 47: switch (E()) { case 42: case 47: f(Y(M(C(), I()), t, n), u); break; default: D += "/"; } break; case 123 * w: d[h++] = p(D) * k; case 125 * w: case 59: case 0: switch (P) { case 0: case 125: S = 0; case 59 + m: b > 0 && p(D) - g && f(b > 32 ? Q(D + ";", r, n, g - 1) : Q(l(D, " ", "") + ";", r, n, g - 2), u); break; case 59: D += ";"; default: if ((f((L = K(D, t, n, h, m, a, d, A, (T = []), (R = []), g)), o), 123 === P)) if (0 === m) H(D, t, L, L, T, o, g, d, R); else switch (v) { case 100: case 109: case 115: H(e, L, L, r && f(K(e, L, L, 0, 0, a, d, A, a, (T = []), g), R), a, R, g, d, r ? T : R); break; default: H(D, L, L, L, [""], R, 0, d, R); } } (h = m = b = 0), (w = k = 1), (A = D = ""), (g = s); break; case 58: (g = 1 + p(D)), (b = y); default: if (w < 1) if (123 == P) --w; else if (125 == P && 0 == w++ && 125 == x()) continue; switch (((D += i(P)), P * w)) { case 38: k = m > 0 ? 1 : ((D += "\f"), -1); break; case 44: (d[h++] = (p(D) - 1) * k), (k = 1); break; case 64: 45 === E() && (D += _(C())), (v = E()), (m = g = p((A = D += F(I())))), P++; break; case 45: 45 === y && 2 == p(D) && (w = 0); } } return o; } function K(e, t, n, r, i, o, c, d, p, f, m) { for (var g = i - 1, v = 0 === i ? o : [""], b = h(v), y = 0, w = 0, k = 0; y < r; ++y) for (var x = 0, C = u(e, g + 1, (g = a((w = c[y])))), E = e; x < b; ++x) (E = s(w > 0 ? v[x] + " " + C : l(C, /&\f/g, v[x]))) && (p[k++] = E); return S(e, t, n, 0 === i ? B : d, p, f, m); } function Y(e, t, n) { return S(e, t, n, O, i(y), u(e, 2, -2), 0); } function Q(e, t, n, r) { return S(e, t, n, U, u(e, 0, r), u(e, r + 1, -1), r); } var X = function (e, t, n) { for (var r = 0, a = 0; (r = a), (a = E()), 38 === r && 12 === a && (t[n] = 1), !A(a); ) C(); return P(e, b); }, J = function (e, t) { return R( (function (e, t) { var n = -1, r = 44; do { switch (A(r)) { case 0: 38 === r && 12 === E() && (t[n] = 1), (e[n] += X(b - 1, t, n)); break; case 2: e[n] += _(r); break; case 4: if (44 === r) { (e[++n] = 58 === E() ? "&\f" : ""), (t[n] = e[n].length); break; } default: e[n] += i(r); } } while ((r = C())); return e; })(T(e), t) ); }, ee = new WeakMap(), te = function (e) { if ("rule" === e.type && e.parent && !(e.length < 1)) { for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; "rule" !== n.type; ) if (!(n = n.parent)) return; if ((1 !== e.props.length || 58 === t.charCodeAt(0) || ee.get(n)) && !r) { ee.set(e, !0); for (var a = [], i = J(t, a), o = n.props, s = 0, l = 0; s < i.length; s++) for (var c = 0; c < o.length; c++, l++) e.props[l] = a[s] ? i[s].replace(/&\f/g, o[c]) : o[c] + " " + i[s]; } } }, ne = function (e) { if ("decl" === e.type) { var t = e.value; 108 === t.charCodeAt(0) && 98 === t.charCodeAt(2) && ((e.return = ""), (e.value = "")); } }, re = [ function (e, t, n, r) { if (e.length > -1 && !e.return) switch (e.type) { case U: e.return = q(e.value, e.length); break; case $: return G([k(e, { value: l(e.value, "@", "@" + j) })], r); case B: if (e.length) return (function (e, t) { return e.map(t).join(""); })(e.props, function (t) { switch ( (function (e, t) { return (e = t.exec(e)) ? e[0] : e; })(t, /(::plac\w+|:read-\w+)/) ) { case ":read-only": case ":read-write": return G([k(e, { props: [l(t, /:(read-\w+)/, ":-moz-$1")] })], r); case "::placeholder": return G([k(e, { props: [l(t, /:(plac\w+)/, ":-webkit-input-$1")] }), k(e, { props: [l(t, /:(plac\w+)/, ":-moz-$1")] }), k(e, { props: [l(t, /:(plac\w+)/, D + "input-$1")] })], r); } return ""; }); } }, ]; const ae = function (e) { var t = e.key; if ("css" === t) { var n = document.querySelectorAll("style[data-emotion]:not([data-s])"); Array.prototype.forEach.call(n, function (e) { -1 !== e.getAttribute("data-emotion").indexOf(" ") && (document.head.appendChild(e), e.setAttribute("data-s", "")); }); } var a = e.stylisPlugins || re; var i, o, s = {}, l = []; (i = e.container || document.head), Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), function (e) { for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) s[t[n]] = !0; l.push(e); }); var c, d, u = [ V, ((d = function (e) { c.insert(e); }), function (e) { e.root || ((e = e.return) && d(e)); }), ], p = (function (e) { var t = h(e); return function (n, r, a, i) { for (var o = "", s = 0; s < t; s++) o += e[s](n, r, a, i) || ""; return o; }; })([te, ne].concat(a, u)); o = function (e, t, n, r) { (c = n), G(W(e ? e + "{" + t.styles + "}" : t.styles), p), r && (f.inserted[t.name] = !0); }; var f = { key: t, sheet: new r.m({ key: t, container: i, nonce: e.nonce, speedy: e.speedy, prepend: e.prepend, insertionPoint: e.insertionPoint }), nonce: e.nonce, inserted: s, registered: {}, insert: o }; return f.sheet.hydrate(l), f; }; }, 91816: (e, t, n) => { "use strict"; function r(e) { var t = Object.create(null); return function (n) { return void 0 === t[n] && (t[n] = e(n)), t[n]; }; } n.d(t, { Z: () => r }); }, 51639: (e, t, n) => { "use strict"; n.d(t, { C: () => o, T: () => l, w: () => s }); var r = n(47313), a = n(98295), i = (n(21086), (0, r.createContext)("undefined" !== typeof HTMLElement ? (0, a.Z)({ key: "css" }) : null)); var o = i.Provider, s = function (e) { return (0, r.forwardRef)(function (t, n) { var a = (0, r.useContext)(i); return e(t, a, n); }); }, l = (0, r.createContext)({}); }, 30686: (e, t, n) => { "use strict"; n.d(t, { F4: () => d, iv: () => c, xB: () => l }); var r = n(47313), a = (n(98295), n(51639)), i = (n(67861), n(54911)), o = n(21086), s = n(53324), l = (0, a.w)(function (e, t) { var n = e.styles, l = (0, o.O)([n], void 0, (0, r.useContext)(a.T)), c = (0, r.useRef)(); return ( (0, r.useLayoutEffect)( function () { var e = t.key + "-global", n = new s.m({ key: e, nonce: t.sheet.nonce, container: t.sheet.container, speedy: t.sheet.isSpeedy }), r = !1, a = document.querySelector('style[data-emotion="' + e + " " + l.name + '"]'); return ( t.sheet.tags.length && (n.before = t.sheet.tags[0]), null !== a && ((r = !0), a.setAttribute("data-emotion", e), n.hydrate([a])), (c.current = [n, r]), function () { n.flush(); } ); }, [t] ), (0, r.useLayoutEffect)( function () { var e = c.current, n = e[0]; if (e[1]) e[1] = !1; else { if ((void 0 !== l.next && (0, i.My)(t, l.next, !0), n.tags.length)) { var r = n.tags[n.tags.length - 1].nextElementSibling; (n.before = r), n.flush(); } t.insert("", l, n, !1); } }, [t, l.name] ), null ); }); function c() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return (0, o.O)(t); } var d = function () { var e = c.apply(void 0, arguments), t = "animation-" + e.name; return { name: t, styles: "@keyframes " + t + "{" + e.styles + "}", anim: 1, toString: function () { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; }, }; }; }, 21086: (e, t, n) => { "use strict"; n.d(t, { O: () => f }); var r = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, a = n(91816), i = /[A-Z]|^ms/g, o = /_EMO_([^_]+?)_([^]*?)_EMO_/g, s = function (e) { return 45 === e.charCodeAt(1); }, l = function (e) { return null != e && "boolean" !== typeof e; }, c = (0, a.Z)(function (e) { return s(e) ? e : e.replace(i, "-$&").toLowerCase(); }), d = function (e, t) { switch (e) { case "animation": case "animationName": if ("string" === typeof t) return t.replace(o, function (e, t, n) { return (p = { name: t, styles: n, next: p }), t; }); } return 1 === r[e] || s(e) || "number" !== typeof t || 0 === t ? t : t + "px"; }; function u(e, t, n) { if (null == n) return ""; if (void 0 !== n.__emotion_styles) return n; switch (typeof n) { case "boolean": return ""; case "object": if (1 === n.anim) return (p = { name: n.name, styles: n.styles, next: p }), n.name; if (void 0 !== n.styles) { var r = n.next; if (void 0 !== r) for (; void 0 !== r; ) (p = { name: r.name, styles: r.styles, next: p }), (r = r.next); return n.styles + ";"; } return (function (e, t, n) { var r = ""; if (Array.isArray(n)) for (var a = 0; a < n.length; a++) r += u(e, t, n[a]) + ";"; else for (var i in n) { var o = n[i]; if ("object" !== typeof o) null != t && void 0 !== t[o] ? (r += i + "{" + t[o] + "}") : l(o) && (r += c(i) + ":" + d(i, o) + ";"); else if (!Array.isArray(o) || "string" !== typeof o[0] || (null != t && void 0 !== t[o[0]])) { var s = u(e, t, o); switch (i) { case "animation": case "animationName": r += c(i) + ":" + s + ";"; break; default: r += i + "{" + s + "}"; } } else for (var p = 0; p < o.length; p++) l(o[p]) && (r += c(i) + ":" + d(i, o[p]) + ";"); } return r; })(e, t, n); case "function": if (void 0 !== e) { var a = p, i = n(e); return (p = a), u(e, t, i); } } if (null == t) return n; var o = t[n]; return void 0 !== o ? o : n; } var p, h = /label:\s*([^\s;\n{]+)\s*(;|$)/g; var f = function (e, t, n) { if (1 === e.length && "object" === typeof e[0] && null !== e[0] && void 0 !== e[0].styles) return e[0]; var r = !0, a = ""; p = void 0; var i = e[0]; null == i || void 0 === i.raw ? ((r = !1), (a += u(n, t, i))) : (a += i[0]); for (var o = 1; o < e.length; o++) (a += u(n, t, e[o])), r && (a += i[o]); h.lastIndex = 0; for (var s, l = ""; null !== (s = h.exec(a)); ) l += "-" + s[1]; var c = (function (e) { for (var t, n = 0, r = 0, a = e.length; a >= 4; ++r, a -= 4) (t = 1540483477 * (65535 & (t = (255 & e.charCodeAt(r)) | ((255 & e.charCodeAt(++r)) << 8) | ((255 & e.charCodeAt(++r)) << 16) | ((255 & e.charCodeAt(++r)) << 24))) + ((59797 * (t >>> 16)) << 16)), (n = (1540483477 * (65535 & (t ^= t >>> 24)) + ((59797 * (t >>> 16)) << 16)) ^ (1540483477 * (65535 & n) + ((59797 * (n >>> 16)) << 16))); switch (a) { case 3: n ^= (255 & e.charCodeAt(r + 2)) << 16; case 2: n ^= (255 & e.charCodeAt(r + 1)) << 8; case 1: n = 1540483477 * (65535 & (n ^= 255 & e.charCodeAt(r))) + ((59797 * (n >>> 16)) << 16); } return (((n = 1540483477 * (65535 & (n ^= n >>> 13)) + ((59797 * (n >>> 16)) << 16)) ^ (n >>> 15)) >>> 0).toString(36); })(a) + l; return { name: c, styles: a, next: p }; }; }, 53324: (e, t, n) => { "use strict"; n.d(t, { m: () => r }); var r = (function () { function e(e) { var t = this; (this._insertTag = function (e) { var n; (n = 0 === t.tags.length ? (t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before) : t.tags[t.tags.length - 1].nextSibling), t.container.insertBefore(e, n), t.tags.push(e); }), (this.isSpeedy = void 0 === e.speedy || e.speedy), (this.tags = []), (this.ctr = 0), (this.nonce = e.nonce), (this.key = e.key), (this.container = e.container), (this.prepend = e.prepend), (this.insertionPoint = e.insertionPoint), (this.before = null); } var t = e.prototype; return ( (t.hydrate = function (e) { e.forEach(this._insertTag); }), (t.insert = function (e) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag( (function (e) { var t = document.createElement("style"); return t.setAttribute("data-emotion", e.key), void 0 !== e.nonce && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t; })(this) ); var t = this.tags[this.tags.length - 1]; if (this.isSpeedy) { var n = (function (e) { if (e.sheet) return e.sheet; for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; })(t); try { n.insertRule(e, n.cssRules.length); } catch (r) { 0; } } else t.appendChild(document.createTextNode(e)); this.ctr++; }), (t.flush = function () { this.tags.forEach(function (e) { return e.parentNode && e.parentNode.removeChild(e); }), (this.tags = []), (this.ctr = 0); }), e ); })(); }, 54911: (e, t, n) => { "use strict"; n.d(t, { My: () => a, fp: () => r }); function r(e, t, n) { var r = ""; return ( n.split(" ").forEach(function (n) { void 0 !== e[n] ? t.push(e[n] + ";") : (r += n + " "); }), r ); } var a = function (e, t, n) { !(function (e, t, n) { var r = e.key + "-" + t.name; !1 === n && void 0 === e.registered[r] && (e.registered[r] = t.styles); })(e, t, n); var r = e.key + "-" + t.name; if (void 0 === e.inserted[t.name]) { var a = t; do { e.insert(t === a ? "." + r : "", a, e.sheet, !0), (a = a.next); } while (void 0 !== a); } }; }, 16157: (e, t, n) => { "use strict"; n.d(t, { Z: () => m }); var r = n(87462), a = n(63366), i = n(47313), o = n(83061), s = n(84472), l = n(63649), c = n(39028), d = n(86728), u = n(46417); const p = ["className", "component"]; var h = n(41271); const f = (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const { defaultTheme: t, defaultClassName: n = "MuiBox-root", generateClassName: h, styleFunctionSx: f = l.Z } = e, m = (0, s.ZP)("div", { shouldForwardProp: (e) => "theme" !== e && "sx" !== e && "as" !== e })(f), g = i.forwardRef(function (e, i) { const s = (0, d.Z)(t), l = (0, c.Z)(e), { className: f, component: g = "div" } = l, v = (0, a.Z)(l, p); return (0, u.jsx)(m, (0, r.Z)({ as: g, ref: i, className: (0, o.Z)(f, h ? h(n) : n), theme: s }, v)); }); return g; })({ defaultTheme: (0, n(3666).Z)(), defaultClassName: "MuiBox-root", generateClassName: h.Z.generate }), m = f; }, 73477: (e, t, n) => { "use strict"; n.d(t, { Z: () => E }); var r = n(63366), a = n(87462), i = n(47313), o = n(83061), s = n(29023), l = n(21921), c = n(17551), d = n(42379), u = n(32772), p = n(86366), h = n(28170), f = n(32298); function m(e) { return (0, f.Z)("MuiButton", e); } const g = (0, n(77430).Z)("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]); const v = i.createContext({}); var b = n(46417); const y = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], w = ["root"], S = (e) => (0, a.Z)({}, "small" === e.size && { "& > *:nth-of-type(1)": { fontSize: 18 } }, "medium" === e.size && { "& > *:nth-of-type(1)": { fontSize: 20 } }, "large" === e.size && { "& > *:nth-of-type(1)": { fontSize: 22 } }), k = (0, d.ZP)(p.Z, { shouldForwardProp: (e) => (0, d.FO)(e) || "classes" === e, name: "MuiButton", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, t[n.variant], t[`${n.variant}${(0, h.Z)(n.color)}`], t[`size${(0, h.Z)(n.size)}`], t[`${n.variant}Size${(0, h.Z)(n.size)}`], "inherit" === n.color && t.colorInherit, n.disableElevation && t.disableElevation, n.fullWidth && t.fullWidth]; }, })( (e) => { let { theme: t, ownerState: n } = e; var r, i; return (0, a.Z)({}, t.typography.button, { minWidth: 64, padding: "6px 16px", borderRadius: (t.vars || t).shape.borderRadius, transition: t.transitions.create(["background-color", "box-shadow", "border-color", "color"], { duration: t.transitions.duration.short }), "&:hover": (0, a.Z)({ textDecoration: "none", backgroundColor: t.vars ? `rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})` : (0, c.Fq)(t.palette.text.primary, t.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: "transparent" } }, "text" === n.variant && "inherit" !== n.color && { backgroundColor: t.vars ? `rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : (0, c.Fq)(t.palette[n.color].main, t.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: "transparent" } }, "outlined" === n.variant && "inherit" !== n.color && { border: `1px solid ${(t.vars || t).palette[n.color].main}`, backgroundColor: t.vars ? `rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : (0, c.Fq)(t.palette[n.color].main, t.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: "transparent" } }, "contained" === n.variant && { backgroundColor: (t.vars || t).palette.grey.A100, boxShadow: (t.vars || t).shadows[4], "@media (hover: none)": { boxShadow: (t.vars || t).shadows[2], backgroundColor: (t.vars || t).palette.grey[300] } }, "contained" === n.variant && "inherit" !== n.color && { backgroundColor: (t.vars || t).palette[n.color].dark, "@media (hover: none)": { backgroundColor: (t.vars || t).palette[n.color].main } }), "&:active": (0, a.Z)({}, "contained" === n.variant && { boxShadow: (t.vars || t).shadows[8] }), [`&.${g.focusVisible}`]: (0, a.Z)({}, "contained" === n.variant && { boxShadow: (t.vars || t).shadows[6] }), [`&.${g.disabled}`]: (0, a.Z)({ color: (t.vars || t).palette.action.disabled }, "outlined" === n.variant && { border: `1px solid ${(t.vars || t).palette.action.disabledBackground}` }, "outlined" === n.variant && "secondary" === n.color && { border: `1px solid ${(t.vars || t).palette.action.disabled}` }, "contained" === n.variant && { color: (t.vars || t).palette.action.disabled, boxShadow: (t.vars || t).shadows[0], backgroundColor: (t.vars || t).palette.action.disabledBackground }) }, "text" === n.variant && { padding: "6px 8px" }, "text" === n.variant && "inherit" !== n.color && { color: (t.vars || t).palette[n.color].main }, "outlined" === n.variant && { padding: "5px 15px", border: "1px solid currentColor" }, "outlined" === n.variant && "inherit" !== n.color && { color: (t.vars || t).palette[n.color].main, border: t.vars ? `1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${(0, c.Fq)(t.palette[n.color].main, 0.5)}` }, "contained" === n.variant && { color: t.vars ? t.vars.palette.text.primary : null == (r = (i = t.palette).getContrastText) ? void 0 : r.call(i, t.palette.grey[300]), backgroundColor: (t.vars || t).palette.grey[300], boxShadow: (t.vars || t).shadows[2] }, "contained" === n.variant && "inherit" !== n.color && { color: (t.vars || t).palette[n.color].contrastText, backgroundColor: (t.vars || t).palette[n.color].main }, "inherit" === n.color && { color: "inherit", borderColor: "currentColor" }, "small" === n.size && "text" === n.variant && { padding: "4px 5px", fontSize: t.typography.pxToRem(13) }, "large" === n.size && "text" === n.variant && { padding: "8px 11px", fontSize: t.typography.pxToRem(15) }, "small" === n.size && "outlined" === n.variant && { padding: "3px 9px", fontSize: t.typography.pxToRem(13) }, "large" === n.size && "outlined" === n.variant && { padding: "7px 21px", fontSize: t.typography.pxToRem(15) }, "small" === n.size && "contained" === n.variant && { padding: "4px 10px", fontSize: t.typography.pxToRem(13) }, "large" === n.size && "contained" === n.variant && { padding: "8px 22px", fontSize: t.typography.pxToRem(15) }, n.fullWidth && { width: "100%" }); }, (e) => { let { ownerState: t } = e; return t.disableElevation && { boxShadow: "none", "&:hover": { boxShadow: "none" }, [`&.${g.focusVisible}`]: { boxShadow: "none" }, "&:active": { boxShadow: "none" }, [`&.${g.disabled}`]: { boxShadow: "none" } }; } ), x = (0, d.ZP)("span", { name: "MuiButton", slot: "StartIcon", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.startIcon, t[`iconSize${(0, h.Z)(n.size)}`]]; }, })((e) => { let { ownerState: t } = e; return (0, a.Z)({ display: "inherit", marginRight: 8, marginLeft: -4 }, "small" === t.size && { marginLeft: -2 }, S(t)); }), C = (0, d.ZP)("span", { name: "MuiButton", slot: "EndIcon", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.endIcon, t[`iconSize${(0, h.Z)(n.size)}`]]; }, })((e) => { let { ownerState: t } = e; return (0, a.Z)({ display: "inherit", marginRight: -4, marginLeft: 8 }, "small" === t.size && { marginRight: -2 }, S(t)); }), E = i.forwardRef(function (e, t) { const n = i.useContext(v), c = (0, s.Z)(n, e), d = (0, u.Z)({ props: c, name: "MuiButton" }), { children: p, color: f = "primary", component: g = "button", className: S, disabled: E = !1, disableElevation: I = !1, disableFocusRipple: P = !1, endIcon: A, focusVisibleClassName: T, fullWidth: R = !1, size: _ = "medium", startIcon: Z, type: z, variant: L = "text" } = d, M = (0, r.Z)(d, y), F = (0, a.Z)({}, d, { color: f, component: g, disabled: E, disableElevation: I, disableFocusRipple: P, fullWidth: R, size: _, type: z, variant: L }), D = ((e) => { const { color: t, disableElevation: n, fullWidth: r, size: i, variant: o, classes: s } = e, c = { root: ["root", o, `${o}${(0, h.Z)(t)}`, `size${(0, h.Z)(i)}`, `${o}Size${(0, h.Z)(i)}`, "inherit" === t && "colorInherit", n && "disableElevation", r && "fullWidth"], label: ["label"], startIcon: ["startIcon", `iconSize${(0, h.Z)(i)}`], endIcon: ["endIcon", `iconSize${(0, h.Z)(i)}`] }, d = (0, l.Z)(c, m, s); return (0, a.Z)({}, s, d); })(F), { root: N } = D, j = (0, r.Z)(D, w), O = Z && (0, b.jsx)(x, { className: j.startIcon, ownerState: F, children: Z }), B = A && (0, b.jsx)(C, { className: j.endIcon, ownerState: F, children: A }); return (0, b.jsxs)(k, (0, a.Z)({ ownerState: F, className: (0, o.Z)(n.className, N, S), component: g, disabled: E, focusRipple: !P, focusVisibleClassName: (0, o.Z)(j.focusVisible, T), ref: t, type: z }, M, { classes: j, children: [O, p, B] })); }); }, 86366: (e, t, n) => { "use strict"; n.d(t, { Z: () => G }); var r = n(87462), a = n(63366), i = n(47313), o = n(83061), s = n(21921), l = n(42379), c = n(32772), d = n(2995), u = n(56127), p = n(45730), h = n(97326), f = n(94578), m = n(20010); function g(e, t) { var n = Object.create(null); return ( e && i.Children.map(e, function (e) { return e; }).forEach(function (e) { n[e.key] = (function (e) { return t && (0, i.isValidElement)(e) ? t(e) : e; })(e); }), n ); } function v(e, t, n) { return null != n[t] ? n[t] : e.props[t]; } function b(e, t, n) { var r = g(e.children), a = (function (e, t) { function n(n) { return n in t ? t[n] : e[n]; } (e = e || {}), (t = t || {}); var r, a = Object.create(null), i = []; for (var o in e) o in t ? i.length && ((a[o] = i), (i = [])) : i.push(o); var s = {}; for (var l in t) { if (a[l]) for (r = 0; r < a[l].length; r++) { var c = a[l][r]; s[a[l][r]] = n(c); } s[l] = n(l); } for (r = 0; r < i.length; r++) s[i[r]] = n(i[r]); return s; })(t, r); return ( Object.keys(a).forEach(function (o) { var s = a[o]; if ((0, i.isValidElement)(s)) { var l = o in t, c = o in r, d = t[o], u = (0, i.isValidElement)(d) && !d.props.in; !c || (l && !u) ? (c || !l || u ? c && l && (0, i.isValidElement)(d) && (a[o] = (0, i.cloneElement)(s, { onExited: n.bind(null, s), in: d.props.in, exit: v(s, "exit", e), enter: v(s, "enter", e) })) : (a[o] = (0, i.cloneElement)(s, { in: !1 }))) : (a[o] = (0, i.cloneElement)(s, { onExited: n.bind(null, s), in: !0, exit: v(s, "exit", e), enter: v(s, "enter", e) })); } }), a ); } var y = Object.values || function (e) { return Object.keys(e).map(function (t) { return e[t]; }); }, w = (function (e) { function t(t, n) { var r, a = (r = e.call(this, t, n) || this).handleExited.bind((0, h.Z)(r)); return (r.state = { contextValue: { isMounting: !0 }, handleExited: a, firstRender: !0 }), r; } (0, f.Z)(t, e); var n = t.prototype; return ( (n.componentDidMount = function () { (this.mounted = !0), this.setState({ contextValue: { isMounting: !1 } }); }), (n.componentWillUnmount = function () { this.mounted = !1; }), (t.getDerivedStateFromProps = function (e, t) { var n, r, a = t.children, o = t.handleExited; return { children: t.firstRender ? ((n = e), (r = o), g(n.children, function (e) { return (0, i.cloneElement)(e, { onExited: r.bind(null, e), in: !0, appear: v(e, "appear", n), enter: v(e, "enter", n), exit: v(e, "exit", n) }); })) : b(e, a, o), firstRender: !1, }; }), (n.handleExited = function (e, t) { var n = g(this.props.children); e.key in n || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState(function (t) { var n = (0, r.Z)({}, t.children); return delete n[e.key], { children: n }; })); }), (n.render = function () { var e = this.props, t = e.component, n = e.childFactory, r = (0, a.Z)(e, ["component", "childFactory"]), o = this.state.contextValue, s = y(this.state.children).map(n); return delete r.appear, delete r.enter, delete r.exit, null === t ? i.createElement(m.Z.Provider, { value: o }, s) : i.createElement(m.Z.Provider, { value: o }, i.createElement(t, r, s)); }), t ); })(i.Component); (w.propTypes = {}), (w.defaultProps = { component: "div", childFactory: function (e) { return e; }, }); const S = w; var k = n(30686), x = n(46417); const C = function (e) { const { className: t, classes: n, pulsate: r = !1, rippleX: a, rippleY: s, rippleSize: l, in: c, onExited: d, timeout: u } = e, [p, h] = i.useState(!1), f = (0, o.Z)(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), m = { width: l, height: l, top: -l / 2 + s, left: -l / 2 + a }, g = (0, o.Z)(n.child, p && n.childLeaving, r && n.childPulsate); return ( c || p || h(!0), i.useEffect(() => { if (!c && null != d) { const e = setTimeout(d, u); return () => { clearTimeout(e); }; } }, [d, c, u]), (0, x.jsx)("span", { className: f, style: m, children: (0, x.jsx)("span", { className: g }) }) ); }; var E = n(77430); const I = (0, E.Z)("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), P = ["center", "classes", "className"]; let A, T, R, _, Z = (e) => e; const z = (0, k.F4)( A || (A = Z` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `) ), L = (0, k.F4)( T || (T = Z` 0% { opacity: 1; } 100% { opacity: 0; } `) ), M = (0, k.F4)( R || (R = Z` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `) ), F = (0, l.ZP)("span", { name: "MuiTouchRipple", slot: "Root" })({ overflow: "hidden", pointerEvents: "none", position: "absolute", zIndex: 0, top: 0, right: 0, bottom: 0, left: 0, borderRadius: "inherit" }), D = (0, l.ZP)(C, { name: "MuiTouchRipple", slot: "Ripple" })( _ || (_ = Z` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `), I.rippleVisible, z, 550, (e) => { let { theme: t } = e; return t.transitions.easing.easeInOut; }, I.ripplePulsate, (e) => { let { theme: t } = e; return t.transitions.duration.shorter; }, I.child, I.childLeaving, L, 550, (e) => { let { theme: t } = e; return t.transitions.easing.easeInOut; }, I.childPulsate, M, (e) => { let { theme: t } = e; return t.transitions.easing.easeInOut; } ), N = i.forwardRef(function (e, t) { const n = (0, c.Z)({ props: e, name: "MuiTouchRipple" }), { center: s = !1, classes: l = {}, className: d } = n, u = (0, a.Z)(n, P), [p, h] = i.useState([]), f = i.useRef(0), m = i.useRef(null); i.useEffect(() => { m.current && (m.current(), (m.current = null)); }, [p]); const g = i.useRef(!1), v = i.useRef(null), b = i.useRef(null), y = i.useRef(null); i.useEffect( () => () => { clearTimeout(v.current); }, [] ); const w = i.useCallback( (e) => { const { pulsate: t, rippleX: n, rippleY: r, rippleSize: a, cb: i } = e; h((e) => [...e, (0, x.jsx)(D, { classes: { ripple: (0, o.Z)(l.ripple, I.ripple), rippleVisible: (0, o.Z)(l.rippleVisible, I.rippleVisible), ripplePulsate: (0, o.Z)(l.ripplePulsate, I.ripplePulsate), child: (0, o.Z)(l.child, I.child), childLeaving: (0, o.Z)(l.childLeaving, I.childLeaving), childPulsate: (0, o.Z)(l.childPulsate, I.childPulsate) }, timeout: 550, pulsate: t, rippleX: n, rippleY: r, rippleSize: a }, f.current)]), (f.current += 1), (m.current = i); }, [l] ), k = i.useCallback( function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0; const { pulsate: r = !1, center: a = s || t.pulsate, fakeElement: i = !1 } = t; if ("mousedown" === (null == e ? void 0 : e.type) && g.current) return void (g.current = !1); "touchstart" === (null == e ? void 0 : e.type) && (g.current = !0); const o = i ? null : y.current, l = o ? o.getBoundingClientRect() : { width: 0, height: 0, left: 0, top: 0 }; let c, d, u; if (a || void 0 === e || (0 === e.clientX && 0 === e.clientY) || (!e.clientX && !e.touches)) (c = Math.round(l.width / 2)), (d = Math.round(l.height / 2)); else { const { clientX: t, clientY: n } = e.touches && e.touches.length > 0 ? e.touches[0] : e; (c = Math.round(t - l.left)), (d = Math.round(n - l.top)); } if (a) (u = Math.sqrt((2 * l.width ** 2 + l.height ** 2) / 3)), u % 2 === 0 && (u += 1); else { const e = 2 * Math.max(Math.abs((o ? o.clientWidth : 0) - c), c) + 2, t = 2 * Math.max(Math.abs((o ? o.clientHeight : 0) - d), d) + 2; u = Math.sqrt(e ** 2 + t ** 2); } null != e && e.touches ? null === b.current && ((b.current = () => { w({ pulsate: r, rippleX: c, rippleY: d, rippleSize: u, cb: n }); }), (v.current = setTimeout(() => { b.current && (b.current(), (b.current = null)); }, 80))) : w({ pulsate: r, rippleX: c, rippleY: d, rippleSize: u, cb: n }); }, [s, w] ), C = i.useCallback(() => { k({}, { pulsate: !0 }); }, [k]), E = i.useCallback((e, t) => { if ((clearTimeout(v.current), "touchend" === (null == e ? void 0 : e.type) && b.current)) return ( b.current(), (b.current = null), void (v.current = setTimeout(() => { E(e, t); })) ); (b.current = null), h((e) => (e.length > 0 ? e.slice(1) : e)), (m.current = t); }, []); return i.useImperativeHandle(t, () => ({ pulsate: C, start: k, stop: E }), [C, k, E]), (0, x.jsx)(F, (0, r.Z)({ className: (0, o.Z)(I.root, l.root, d), ref: y }, u, { children: (0, x.jsx)(S, { component: null, exit: !0, children: p }) })); }); var j = n(32298); function O(e) { return (0, j.Z)("MuiButtonBase", e); } const B = (0, E.Z)("MuiButtonBase", ["root", "disabled", "focusVisible"]), U = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], $ = (0, l.ZP)("button", { name: "MuiButtonBase", slot: "Root", overridesResolver: (e, t) => t.root })({ display: "inline-flex", alignItems: "center", justifyContent: "center", position: "relative", boxSizing: "border-box", WebkitTapHighlightColor: "transparent", backgroundColor: "transparent", outline: 0, border: 0, margin: 0, borderRadius: 0, padding: 0, cursor: "pointer", userSelect: "none", verticalAlign: "middle", MozAppearance: "none", WebkitAppearance: "none", textDecoration: "none", color: "inherit", "&::-moz-focus-inner": { borderStyle: "none" }, [`&.${B.disabled}`]: { pointerEvents: "none", cursor: "default" }, "@media print": { colorAdjust: "exact" } }), G = i.forwardRef(function (e, t) { const n = (0, c.Z)({ props: e, name: "MuiButtonBase" }), { action: l, centerRipple: h = !1, children: f, className: m, component: g = "button", disabled: v = !1, disableRipple: b = !1, disableTouchRipple: y = !1, focusRipple: w = !1, LinkComponent: S = "a", onBlur: k, onClick: C, onContextMenu: E, onDragLeave: I, onFocus: P, onFocusVisible: A, onKeyDown: T, onKeyUp: R, onMouseDown: _, onMouseLeave: Z, onMouseUp: z, onTouchEnd: L, onTouchMove: M, onTouchStart: F, tabIndex: D = 0, TouchRippleProps: j, touchRippleRef: B, type: G } = n, V = (0, a.Z)(n, U), q = i.useRef(null), W = i.useRef(null), H = (0, d.Z)(W, B), { isFocusVisibleRef: K, onFocus: Y, onBlur: Q, ref: X } = (0, p.Z)(), [J, ee] = i.useState(!1); v && J && ee(!1), i.useImperativeHandle( l, () => ({ focusVisible: () => { ee(!0), q.current.focus(); }, }), [] ); const [te, ne] = i.useState(!1); i.useEffect(() => { ne(!0); }, []); const re = te && !b && !v; function ae(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : y; return (0, u.Z)((r) => { t && t(r); return !n && W.current && W.current[e](r), !0; }); } i.useEffect(() => { J && w && !b && te && W.current.pulsate(); }, [b, w, J, te]); const ie = ae("start", _), oe = ae("stop", E), se = ae("stop", I), le = ae("stop", z), ce = ae("stop", (e) => { J && e.preventDefault(), Z && Z(e); }), de = ae("start", F), ue = ae("stop", L), pe = ae("stop", M), he = ae( "stop", (e) => { Q(e), !1 === K.current && ee(!1), k && k(e); }, !1 ), fe = (0, u.Z)((e) => { q.current || (q.current = e.currentTarget), Y(e), !0 === K.current && (ee(!0), A && A(e)), P && P(e); }), me = () => { const e = q.current; return g && "button" !== g && !("A" === e.tagName && e.href); }, ge = i.useRef(!1), ve = (0, u.Z)((e) => { w && !ge.current && J && W.current && " " === e.key && ((ge.current = !0), W.current.stop(e, () => { W.current.start(e); })), e.target === e.currentTarget && me() && " " === e.key && e.preventDefault(), T && T(e), e.target === e.currentTarget && me() && "Enter" === e.key && !v && (e.preventDefault(), C && C(e)); }), be = (0, u.Z)((e) => { w && " " === e.key && W.current && J && !e.defaultPrevented && ((ge.current = !1), W.current.stop(e, () => { W.current.pulsate(e); })), R && R(e), C && e.target === e.currentTarget && me() && " " === e.key && !e.defaultPrevented && C(e); }); let ye = g; "button" === ye && (V.href || V.to) && (ye = S); const we = {}; "button" === ye ? ((we.type = void 0 === G ? "button" : G), (we.disabled = v)) : (V.href || V.to || (we.role = "button"), v && (we["aria-disabled"] = v)); const Se = (0, d.Z)(X, q), ke = (0, d.Z)(t, Se); const xe = (0, r.Z)({}, n, { centerRipple: h, component: g, disabled: v, disableRipple: b, disableTouchRipple: y, focusRipple: w, tabIndex: D, focusVisible: J }), Ce = ((e) => { const { disabled: t, focusVisible: n, focusVisibleClassName: r, classes: a } = e, i = { root: ["root", t && "disabled", n && "focusVisible"] }, o = (0, s.Z)(i, O, a); return n && r && (o.root += ` ${r}`), o; })(xe); return (0, x.jsxs)($, (0, r.Z)({ as: ye, className: (0, o.Z)(Ce.root, m), ownerState: xe, onBlur: he, onClick: C, onContextMenu: oe, onFocus: fe, onKeyDown: ve, onKeyUp: be, onMouseDown: ie, onMouseLeave: ce, onMouseUp: le, onDragLeave: se, onTouchEnd: ue, onTouchMove: pe, onTouchStart: de, ref: ke, tabIndex: v ? -1 : D, type: G }, we, V, { children: [f, re ? (0, x.jsx)(N, (0, r.Z)({ ref: H, center: h }, j)) : null] })); }); }, 82937: (e, t, n) => { "use strict"; n.d(t, { ZP: () => E }); var r = n(63366), a = n(87462), i = n(47313), o = n(83061), s = n(54929), l = n(39028), c = n(21921), d = n(42379), u = n(32772), p = n(62111); const h = i.createContext(); var f = n(32298); function m(e) { return (0, f.Z)("MuiGrid", e); } const g = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], v = (0, n(77430).Z)("MuiGrid", ["root", "container", "item", "zeroMinWidth", ...[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((e) => `spacing-xs-${e}`), ...["column-reverse", "column", "row-reverse", "row"].map((e) => `direction-xs-${e}`), ...["nowrap", "wrap-reverse", "wrap"].map((e) => `wrap-xs-${e}`), ...g.map((e) => `grid-xs-${e}`), ...g.map((e) => `grid-sm-${e}`), ...g.map((e) => `grid-md-${e}`), ...g.map((e) => `grid-lg-${e}`), ...g.map((e) => `grid-xl-${e}`)]); var b = n(46417); const y = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"]; function w(e) { const t = parseFloat(e); return `${t}${String(e).replace(String(t), "") || "px"}`; } function S(e) { let { breakpoints: t, values: n } = e, r = ""; Object.keys(n).forEach((e) => { "" === r && 0 !== n[e] && (r = e); }); const a = Object.keys(t).sort((e, n) => t[e] - t[n]); return a.slice(0, a.indexOf(r)); } const k = (0, d.ZP)("div", { name: "MuiGrid", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e, { container: r, direction: a, item: i, spacing: o, wrap: s, zeroMinWidth: l, breakpoints: c } = n; let d = []; r && (d = (function (e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; if (!e || e <= 0) return []; if (("string" === typeof e && !Number.isNaN(Number(e))) || "number" === typeof e) return [n[`spacing-xs-${String(e)}`]]; const r = []; return ( t.forEach((t) => { const a = e[t]; Number(a) > 0 && r.push(n[`spacing-${t}-${String(a)}`]); }), r ); })(o, c, t)); const u = []; return ( c.forEach((e) => { const r = n[e]; r && u.push(t[`grid-${e}-${String(r)}`]); }), [t.root, r && t.container, i && t.item, l && t.zeroMinWidth, ...d, "row" !== a && t[`direction-xs-${String(a)}`], "wrap" !== s && t[`wrap-xs-${String(s)}`], ...u] ); }, })( (e) => { let { ownerState: t } = e; return (0, a.Z)({ boxSizing: "border-box" }, t.container && { display: "flex", flexWrap: "wrap", width: "100%" }, t.item && { margin: 0 }, t.zeroMinWidth && { minWidth: 0 }, "wrap" !== t.wrap && { flexWrap: t.wrap }); }, function (e) { let { theme: t, ownerState: n } = e; const r = (0, s.P$)({ values: n.direction, breakpoints: t.breakpoints.values }); return (0, s.k9)({ theme: t }, r, (e) => { const t = { flexDirection: e }; return 0 === e.indexOf("column") && (t[`& > .${v.item}`] = { maxWidth: "none" }), t; }); }, function (e) { let { theme: t, ownerState: n } = e; const { container: r, rowSpacing: a } = n; let i = {}; if (r && 0 !== a) { const e = (0, s.P$)({ values: a, breakpoints: t.breakpoints.values }); let n; "object" === typeof e && (n = S({ breakpoints: t.breakpoints.values, values: e })), (i = (0, s.k9)({ theme: t }, e, (e, r) => { var a; const i = t.spacing(e); return "0px" !== i ? { marginTop: `-${w(i)}`, [`& > .${v.item}`]: { paddingTop: w(i) } } : null != (a = n) && a.includes(r) ? {} : { marginTop: 0, [`& > .${v.item}`]: { paddingTop: 0 } }; })); } return i; }, function (e) { let { theme: t, ownerState: n } = e; const { container: r, columnSpacing: a } = n; let i = {}; if (r && 0 !== a) { const e = (0, s.P$)({ values: a, breakpoints: t.breakpoints.values }); let n; "object" === typeof e && (n = S({ breakpoints: t.breakpoints.values, values: e })), (i = (0, s.k9)({ theme: t }, e, (e, r) => { var a; const i = t.spacing(e); return "0px" !== i ? { width: `calc(100% + ${w(i)})`, marginLeft: `-${w(i)}`, [`& > .${v.item}`]: { paddingLeft: w(i) } } : null != (a = n) && a.includes(r) ? {} : { width: "100%", marginLeft: 0, [`& > .${v.item}`]: { paddingLeft: 0 } }; })); } return i; }, function (e) { let t, { theme: n, ownerState: r } = e; return n.breakpoints.keys.reduce((e, i) => { let o = {}; if ((r[i] && (t = r[i]), !t)) return e; if (!0 === t) o = { flexBasis: 0, flexGrow: 1, maxWidth: "100%" }; else if ("auto" === t) o = { flexBasis: "auto", flexGrow: 0, flexShrink: 0, maxWidth: "none", width: "auto" }; else { const l = (0, s.P$)({ values: r.columns, breakpoints: n.breakpoints.values }), c = "object" === typeof l ? l[i] : l; if (void 0 === c || null === c) return e; const d = Math.round((t / c) * 1e8) / 1e6 + "%"; let u = {}; if (r.container && r.item && 0 !== r.columnSpacing) { const e = n.spacing(r.columnSpacing); if ("0px" !== e) { const t = `calc(${d} + ${w(e)})`; u = { flexBasis: t, maxWidth: t }; } } o = (0, a.Z)({ flexBasis: d, flexGrow: 0, maxWidth: d }, u); } return 0 === n.breakpoints.values[i] ? Object.assign(e, o) : (e[n.breakpoints.up(i)] = o), e; }, {}); } ); const x = (e) => { const { classes: t, container: n, direction: r, item: a, spacing: i, wrap: o, zeroMinWidth: s, breakpoints: l } = e; let d = []; n && (d = (function (e, t) { if (!e || e <= 0) return []; if (("string" === typeof e && !Number.isNaN(Number(e))) || "number" === typeof e) return [`spacing-xs-${String(e)}`]; const n = []; return ( t.forEach((t) => { const r = e[t]; if (Number(r) > 0) { const e = `spacing-${t}-${String(r)}`; n.push(e); } }), n ); })(i, l)); const u = []; l.forEach((t) => { const n = e[t]; n && u.push(`grid-${t}-${String(n)}`); }); const p = { root: ["root", n && "container", a && "item", s && "zeroMinWidth", ...d, "row" !== r && `direction-xs-${String(r)}`, "wrap" !== o && `wrap-xs-${String(o)}`, ...u] }; return (0, c.Z)(p, m, t); }, C = i.forwardRef(function (e, t) { const n = (0, u.Z)({ props: e, name: "MuiGrid" }), { breakpoints: s } = (0, p.Z)(), c = (0, l.Z)(n), { className: d, columns: f, columnSpacing: m, component: g = "div", container: v = !1, direction: w = "row", item: S = !1, rowSpacing: C, spacing: E = 0, wrap: I = "wrap", zeroMinWidth: P = !1 } = c, A = (0, r.Z)(c, y), T = C || E, R = m || E, _ = i.useContext(h), Z = v ? f || 12 : _, z = {}, L = (0, a.Z)({}, A); s.keys.forEach((e) => { null != A[e] && ((z[e] = A[e]), delete L[e]); }); const M = (0, a.Z)({}, c, { columns: Z, container: v, direction: w, item: S, rowSpacing: T, columnSpacing: R, wrap: I, zeroMinWidth: P, spacing: E }, z, { breakpoints: s.keys }), F = x(M); return (0, b.jsx)(h.Provider, { value: Z, children: (0, b.jsx)(k, (0, a.Z)({ ownerState: M, className: (0, o.Z)(F.root, d), as: g, ref: t }, L)) }); }); const E = C; }, 18104: (e, t, n) => { "use strict"; n.d(t, { Z: () => y }); var r = n(63366), a = n(87462), i = n(47313), o = n(83061), s = n(21921), l = n(17551), c = n(42379), d = n(32772), u = n(86366), p = n(28170), h = n(32298); function f(e) { return (0, h.Z)("MuiIconButton", e); } const m = (0, n(77430).Z)("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]); var g = n(46417); const v = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], b = (0, c.ZP)(u.Z, { name: "MuiIconButton", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, "default" !== n.color && t[`color${(0, p.Z)(n.color)}`], n.edge && t[`edge${(0, p.Z)(n.edge)}`], t[`size${(0, p.Z)(n.size)}`]]; }, })( (e) => { let { theme: t, ownerState: n } = e; return (0, a.Z)({ textAlign: "center", flex: "0 0 auto", fontSize: t.typography.pxToRem(24), padding: 8, borderRadius: "50%", overflow: "visible", color: (t.vars || t).palette.action.active, transition: t.transitions.create("background-color", { duration: t.transitions.duration.shortest }) }, !n.disableRipple && { "&:hover": { backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` : (0, l.Fq)(t.palette.action.active, t.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: "transparent" } } }, "start" === n.edge && { marginLeft: "small" === n.size ? -3 : -12 }, "end" === n.edge && { marginRight: "small" === n.size ? -3 : -12 }); }, (e) => { let { theme: t, ownerState: n } = e; return (0, a.Z)({}, "inherit" === n.color && { color: "inherit" }, "inherit" !== n.color && "default" !== n.color && (0, a.Z)({ color: (t.vars || t).palette[n.color].main }, !n.disableRipple && { "&:hover": { backgroundColor: t.vars ? `rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : (0, l.Fq)(t.palette[n.color].main, t.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: "transparent" } } }), "small" === n.size && { padding: 5, fontSize: t.typography.pxToRem(18) }, "large" === n.size && { padding: 12, fontSize: t.typography.pxToRem(28) }, { [`&.${m.disabled}`]: { backgroundColor: "transparent", color: (t.vars || t).palette.action.disabled } }); } ), y = i.forwardRef(function (e, t) { const n = (0, d.Z)({ props: e, name: "MuiIconButton" }), { edge: i = !1, children: l, className: c, color: u = "default", disabled: h = !1, disableFocusRipple: m = !1, size: y = "medium" } = n, w = (0, r.Z)(n, v), S = (0, a.Z)({}, n, { edge: i, color: u, disabled: h, disableFocusRipple: m, size: y }), k = ((e) => { const { classes: t, disabled: n, color: r, edge: a, size: i } = e, o = { root: ["root", n && "disabled", "default" !== r && `color${(0, p.Z)(r)}`, a && `edge${(0, p.Z)(a)}`, `size${(0, p.Z)(i)}`] }; return (0, s.Z)(o, f, t); })(S); return (0, g.jsx)(b, (0, a.Z)({ className: (0, o.Z)(k.root, c), centerRipple: !0, focusRipple: !m, disabled: h, ref: t, ownerState: S }, w, { children: l })); }); }, 32415: (e, t, n) => { "use strict"; n.d(t, { Z: () => v }); var r = n(63366), a = n(87462), i = n(47313), o = n(83061), s = n(21921), l = n(17551), c = n(42379), d = n(32772), u = n(32298); function p(e) { return (0, u.Z)("MuiPaper", e); } (0, n(77430).Z)("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]); var h = n(46417); const f = ["className", "component", "elevation", "square", "variant"], m = (e) => { let t; return (t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2), (t / 100).toFixed(2); }, g = (0, c.ZP)("div", { name: "MuiPaper", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, t[n.variant], !n.square && t.rounded, "elevation" === n.variant && t[`elevation${n.elevation}`]]; }, })((e) => { let { theme: t, ownerState: n } = e; var r; return (0, a.Z)({ backgroundColor: (t.vars || t).palette.background.paper, color: (t.vars || t).palette.text.primary, transition: t.transitions.create("box-shadow") }, !n.square && { borderRadius: t.shape.borderRadius }, "outlined" === n.variant && { border: `1px solid ${(t.vars || t).palette.divider}` }, "elevation" === n.variant && (0, a.Z)({ boxShadow: (t.vars || t).shadows[n.elevation] }, !t.vars && "dark" === t.palette.mode && { backgroundImage: `linear-gradient(${(0, l.Fq)("#fff", m(n.elevation))}, ${(0, l.Fq)("#fff", m(n.elevation))})` }, t.vars && { backgroundImage: null == (r = t.vars.overlays) ? void 0 : r[n.elevation] })); }), v = i.forwardRef(function (e, t) { const n = (0, d.Z)({ props: e, name: "MuiPaper" }), { className: i, component: l = "div", elevation: c = 1, square: u = !1, variant: m = "elevation" } = n, v = (0, r.Z)(n, f), b = (0, a.Z)({}, n, { component: l, elevation: c, square: u, variant: m }), y = ((e) => { const { square: t, elevation: n, variant: r, classes: a } = e, i = { root: ["root", r, !t && "rounded", "elevation" === r && `elevation${n}`] }; return (0, s.Z)(i, p, a); })(b); return (0, h.jsx)(g, (0, a.Z)({ as: l, ownerState: b, className: (0, o.Z)(y.root, i), ref: t }, v)); }); }, 22690: (e, t, n) => { "use strict"; n.d(t, { Z: () => m }); var r = n(87462), a = n(63366), i = n(47313), o = n(60596); const s = function (e) { let t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 166; function r() { for (var r = arguments.length, a = new Array(r), i = 0; i < r; i++) a[i] = arguments[i]; const o = () => { e.apply(this, a); }; clearTimeout(t), (t = setTimeout(o, n)); } return ( (r.clear = () => { clearTimeout(t); }), r ); }; var l = n(2995), c = n(62111), d = n(68999); const u = n(93282).Z; var p = n(46417); const h = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]; function f(e, t, n) { var r; const a = (function (e, t, n) { const r = t.getBoundingClientRect(), a = n && n.getBoundingClientRect(), i = u(t); let o; if (t.fakeTransform) o = t.fakeTransform; else { const e = i.getComputedStyle(t); o = e.getPropertyValue("-webkit-transform") || e.getPropertyValue("transform"); } let s = 0, l = 0; if (o && "none" !== o && "string" === typeof o) { const e = o.split("(")[1].split(")")[0].split(","); (s = parseInt(e[4], 10)), (l = parseInt(e[5], 10)); } return "left" === e ? (a ? `translateX(${a.right + s - r.left}px)` : `translateX(${i.innerWidth + s - r.left}px)`) : "right" === e ? (a ? `translateX(-${r.right - a.left - s}px)` : `translateX(-${r.left + r.width - s}px)`) : "up" === e ? (a ? `translateY(${a.bottom + l - r.top}px)` : `translateY(${i.innerHeight + l - r.top}px)`) : a ? `translateY(-${r.top - a.top + r.height - l}px)` : `translateY(-${r.top + r.height - l}px)`; })(e, t, "function" === typeof (r = n) ? r() : r); a && ((t.style.webkitTransform = a), (t.style.transform = a)); } const m = i.forwardRef(function (e, t) { const n = (0, c.Z)(), m = { enter: n.transitions.easing.easeOut, exit: n.transitions.easing.sharp }, g = { enter: n.transitions.duration.enteringScreen, exit: n.transitions.duration.leavingScreen }, { addEndListener: v, appear: b = !0, children: y, container: w, direction: S = "down", easing: k = m, in: x, onEnter: C, onEntered: E, onEntering: I, onExit: P, onExited: A, onExiting: T, style: R, timeout: _ = g, TransitionComponent: Z = o.ZP } = e, z = (0, a.Z)(e, h), L = i.useRef(null), M = (0, l.Z)(y.ref, L), F = (0, l.Z)(M, t), D = (e) => (t) => { e && (void 0 === t ? e(L.current) : e(L.current, t)); }, N = D((e, t) => { f(S, e, w), (0, d.n)(e), C && C(e, t); }), j = D((e, t) => { const a = (0, d.C)({ timeout: _, style: R, easing: k }, { mode: "enter" }); (e.style.webkitTransition = n.transitions.create("-webkit-transform", (0, r.Z)({}, a))), (e.style.transition = n.transitions.create("transform", (0, r.Z)({}, a))), (e.style.webkitTransform = "none"), (e.style.transform = "none"), I && I(e, t); }), O = D(E), B = D(T), U = D((e) => { const t = (0, d.C)({ timeout: _, style: R, easing: k }, { mode: "exit" }); (e.style.webkitTransition = n.transitions.create("-webkit-transform", t)), (e.style.transition = n.transitions.create("transform", t)), f(S, e, w), P && P(e); }), $ = D((e) => { (e.style.webkitTransition = ""), (e.style.transition = ""), A && A(e); }), G = i.useCallback(() => { L.current && f(S, L.current, w); }, [S, w]); return ( i.useEffect(() => { if (x || "down" === S || "right" === S) return; const e = s(() => { L.current && f(S, L.current, w); }), t = u(L.current); return ( t.addEventListener("resize", e), () => { e.clear(), t.removeEventListener("resize", e); } ); }, [S, x, w]), i.useEffect(() => { x || G(); }, [x, G]), (0, p.jsx)( Z, (0, r.Z)( { nodeRef: L, onEnter: N, onEntered: O, onEntering: j, onExit: U, onExited: $, onExiting: B, addEndListener: (e) => { v && v(L.current, e); }, appear: b, in: x, timeout: _, }, z, { children: (e, t) => i.cloneElement(y, (0, r.Z)({ ref: F, style: (0, r.Z)({ visibility: "exited" !== e || x ? void 0 : "hidden" }, R, y.props.style) }, t)) } ) ) ); }); }, 85541: (e, t, n) => { "use strict"; n.d(t, { Z: () => v }); var r = n(87462), a = n(63366), i = n(47313), o = n(83061), s = n(21921), l = n(28170), c = n(32772), d = n(42379), u = n(32298); function p(e) { return (0, u.Z)("MuiSvgIcon", e); } (0, n(77430).Z)("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); var h = n(46417); const f = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], m = (0, d.ZP)("svg", { name: "MuiSvgIcon", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, "inherit" !== n.color && t[`color${(0, l.Z)(n.color)}`], t[`fontSize${(0, l.Z)(n.fontSize)}`]]; }, })((e) => { let { theme: t, ownerState: n } = e; var r, a, i, o, s, l, c, d, u, p, h, f, m, g, v, b, y; return { userSelect: "none", width: "1em", height: "1em", display: "inline-block", fill: "currentColor", flexShrink: 0, transition: null == (r = t.transitions) || null == (a = r.create) ? void 0 : a.call(r, "fill", { duration: null == (i = t.transitions) || null == (o = i.duration) ? void 0 : o.shorter }), fontSize: { inherit: "inherit", small: (null == (s = t.typography) || null == (l = s.pxToRem) ? void 0 : l.call(s, 20)) || "1.25rem", medium: (null == (c = t.typography) || null == (d = c.pxToRem) ? void 0 : d.call(c, 24)) || "1.5rem", large: (null == (u = t.typography) || null == (p = u.pxToRem) ? void 0 : p.call(u, 35)) || "2.1875" }[n.fontSize], color: null != (h = null == (f = (t.vars || t).palette) || null == (m = f[n.color]) ? void 0 : m.main) ? h : { action: null == (g = (t.vars || t).palette) || null == (v = g.action) ? void 0 : v.active, disabled: null == (b = (t.vars || t).palette) || null == (y = b.action) ? void 0 : y.disabled, inherit: void 0 }[n.color] }; }), g = i.forwardRef(function (e, t) { const n = (0, c.Z)({ props: e, name: "MuiSvgIcon" }), { children: i, className: d, color: u = "inherit", component: g = "svg", fontSize: v = "medium", htmlColor: b, inheritViewBox: y = !1, titleAccess: w, viewBox: S = "0 0 24 24" } = n, k = (0, a.Z)(n, f), x = (0, r.Z)({}, n, { color: u, component: g, fontSize: v, instanceFontSize: e.fontSize, inheritViewBox: y, viewBox: S }), C = {}; y || (C.viewBox = S); const E = ((e) => { const { color: t, fontSize: n, classes: r } = e, a = { root: ["root", "inherit" !== t && `color${(0, l.Z)(t)}`, `fontSize${(0, l.Z)(n)}`] }; return (0, s.Z)(a, p, r); })(x); return (0, h.jsxs)(m, (0, r.Z)({ as: g, className: (0, o.Z)(E.root, d), ownerState: x, focusable: "false", color: b, "aria-hidden": !w || void 0, role: w ? "img" : void 0, ref: t }, C, k, { children: [i, w ? (0, h.jsx)("title", { children: w }) : null] })); }); g.muiName = "SvgIcon"; const v = g; }, 42669: (e, t, n) => { "use strict"; n.d(t, { Z: () => y }); var r = n(63366), a = n(87462), i = n(47313), o = n(83061), s = n(39028), l = n(21921), c = n(42379), d = n(32772), u = n(28170), p = n(32298); function h(e) { return (0, p.Z)("MuiTypography", e); } (0, n(77430).Z)("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]); var f = n(46417); const m = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], g = (0, c.ZP)("span", { name: "MuiTypography", slot: "Root", overridesResolver: (e, t) => { const { ownerState: n } = e; return [t.root, n.variant && t[n.variant], "inherit" !== n.align && t[`align${(0, u.Z)(n.align)}`], n.noWrap && t.noWrap, n.gutterBottom && t.gutterBottom, n.paragraph && t.paragraph]; }, })((e) => { let { theme: t, ownerState: n } = e; return (0, a.Z)({ margin: 0 }, n.variant && t.typography[n.variant], "inherit" !== n.align && { textAlign: n.align }, n.noWrap && { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, n.gutterBottom && { marginBottom: "0.35em" }, n.paragraph && { marginBottom: 16 }); }), v = { h1: "h1", h2: "h2", h3: "h3", h4: "h4", h5: "h5", h6: "h6", subtitle1: "h6", subtitle2: "h6", body1: "p", body2: "p", inherit: "p" }, b = { primary: "primary.main", textPrimary: "text.primary", secondary: "secondary.main", textSecondary: "text.secondary", error: "error.main" }, y = i.forwardRef(function (e, t) { const n = (0, d.Z)({ props: e, name: "MuiTypography" }), i = ((e) => b[e] || e)(n.color), c = (0, s.Z)((0, a.Z)({}, n, { color: i })), { align: p = "inherit", className: y, component: w, gutterBottom: S = !1, noWrap: k = !1, paragraph: x = !1, variant: C = "body1", variantMapping: E = v } = c, I = (0, r.Z)(c, m), P = (0, a.Z)({}, c, { align: p, color: i, className: y, component: w, gutterBottom: S, noWrap: k, paragraph: x, variant: C, variantMapping: E }), A = w || (x ? "p" : E[C] || v[C]) || "span", T = ((e) => { const { align: t, gutterBottom: n, noWrap: r, paragraph: a, variant: i, classes: o } = e, s = { root: ["root", i, "inherit" !== e.align && `align${(0, u.Z)(t)}`, n && "gutterBottom", r && "noWrap", a && "paragraph"] }; return (0, l.Z)(s, h, o); })(P); return (0, f.jsx)(g, (0, a.Z)({ as: A, ref: t, ownerState: P, className: (0, o.Z)(T.root, y) }, I)); }); }, 3666: (e, t, n) => { "use strict"; n.d(t, { Z: () => N }); var r = n(87462), a = n(63366), i = n(77219), o = n(13019), s = n(9456); function l(e, t) { return (0, r.Z)({ toolbar: { minHeight: 56, [e.up("xs")]: { "@media (orientation: landscape)": { minHeight: 48 } }, [e.up("sm")]: { minHeight: 64 } } }, t); } var c = n(17551); const d = { black: "#000", white: "#fff" }, u = { 50: "#fafafa", 100: "#f5f5f5", 200: "#eeeeee", 300: "#e0e0e0", 400: "#bdbdbd", 500: "#9e9e9e", 600: "#757575", 700: "#616161", 800: "#424242", 900: "#212121", A100: "#f5f5f5", A200: "#eeeeee", A400: "#bdbdbd", A700: "#616161" }, p = { 50: "#f3e5f5", 100: "#e1bee7", 200: "#ce93d8", 300: "#ba68c8", 400: "#ab47bc", 500: "#9c27b0", 600: "#8e24aa", 700: "#7b1fa2", 800: "#6a1b9a", 900: "#4a148c", A100: "#ea80fc", A200: "#e040fb", A400: "#d500f9", A700: "#aa00ff" }, h = { 50: "#ffebee", 100: "#ffcdd2", 200: "#ef9a9a", 300: "#e57373", 400: "#ef5350", 500: "#f44336", 600: "#e53935", 700: "#d32f2f", 800: "#c62828", 900: "#b71c1c", A100: "#ff8a80", A200: "#ff5252", A400: "#ff1744", A700: "#d50000" }, f = { 50: "#fff3e0", 100: "#ffe0b2", 200: "#ffcc80", 300: "#ffb74d", 400: "#ffa726", 500: "#ff9800", 600: "#fb8c00", 700: "#f57c00", 800: "#ef6c00", 900: "#e65100", A100: "#ffd180", A200: "#ffab40", A400: "#ff9100", A700: "#ff6d00" }, m = { 50: "#e3f2fd", 100: "#bbdefb", 200: "#90caf9", 300: "#64b5f6", 400: "#42a5f5", 500: "#2196f3", 600: "#1e88e5", 700: "#1976d2", 800: "#1565c0", 900: "#0d47a1", A100: "#82b1ff", A200: "#448aff", A400: "#2979ff", A700: "#2962ff" }, g = { 50: "#e1f5fe", 100: "#b3e5fc", 200: "#81d4fa", 300: "#4fc3f7", 400: "#29b6f6", 500: "#03a9f4", 600: "#039be5", 700: "#0288d1", 800: "#0277bd", 900: "#01579b", A100: "#80d8ff", A200: "#40c4ff", A400: "#00b0ff", A700: "#0091ea" }, v = { 50: "#e8f5e9", 100: "#c8e6c9", 200: "#a5d6a7", 300: "#81c784", 400: "#66bb6a", 500: "#4caf50", 600: "#43a047", 700: "#388e3c", 800: "#2e7d32", 900: "#1b5e20", A100: "#b9f6ca", A200: "#69f0ae", A400: "#00e676", A700: "#00c853" }, b = ["mode", "contrastThreshold", "tonalOffset"], y = { text: { primary: "rgba(0, 0, 0, 0.87)", secondary: "rgba(0, 0, 0, 0.6)", disabled: "rgba(0, 0, 0, 0.38)" }, divider: "rgba(0, 0, 0, 0.12)", background: { paper: d.white, default: d.white }, action: { active: "rgba(0, 0, 0, 0.54)", hover: "rgba(0, 0, 0, 0.04)", hoverOpacity: 0.04, selected: "rgba(0, 0, 0, 0.08)", selectedOpacity: 0.08, disabled: "rgba(0, 0, 0, 0.26)", disabledBackground: "rgba(0, 0, 0, 0.12)", disabledOpacity: 0.38, focus: "rgba(0, 0, 0, 0.12)", focusOpacity: 0.12, activatedOpacity: 0.12 } }, w = { text: { primary: d.white, secondary: "rgba(255, 255, 255, 0.7)", disabled: "rgba(255, 255, 255, 0.5)", icon: "rgba(255, 255, 255, 0.5)" }, divider: "rgba(255, 255, 255, 0.12)", background: { paper: "#121212", default: "#121212" }, action: { active: d.white, hover: "rgba(255, 255, 255, 0.08)", hoverOpacity: 0.08, selected: "rgba(255, 255, 255, 0.16)", selectedOpacity: 0.16, disabled: "rgba(255, 255, 255, 0.3)", disabledBackground: "rgba(255, 255, 255, 0.12)", disabledOpacity: 0.38, focus: "rgba(255, 255, 255, 0.12)", focusOpacity: 0.12, activatedOpacity: 0.24 } }; function S(e, t, n, r) { const a = r.light || r, i = r.dark || 1.5 * r; e[t] || (e.hasOwnProperty(n) ? (e[t] = e[n]) : "light" === t ? (e.light = (0, c.$n)(e.main, a)) : "dark" === t && (e.dark = (0, c._j)(e.main, i))); } function k(e) { const { mode: t = "light", contrastThreshold: n = 3, tonalOffset: s = 0.2 } = e, l = (0, a.Z)(e, b), k = e.primary || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: m[200], light: m[50], dark: m[400] } : { main: m[700], light: m[400], dark: m[800] }; })(t), x = e.secondary || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: p[200], light: p[50], dark: p[400] } : { main: p[500], light: p[300], dark: p[700] }; })(t), C = e.error || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: h[500], light: h[300], dark: h[700] } : { main: h[700], light: h[400], dark: h[800] }; })(t), E = e.info || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: g[400], light: g[300], dark: g[700] } : { main: g[700], light: g[500], dark: g[900] }; })(t), I = e.success || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: v[400], light: v[300], dark: v[700] } : { main: v[800], light: v[500], dark: v[900] }; })(t), P = e.warning || (function () { return "dark" === (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "light") ? { main: f[400], light: f[300], dark: f[700] } : { main: "#ed6c02", light: f[500], dark: f[900] }; })(t); function A(e) { return (0, c.mi)(e, w.text.primary) >= n ? w.text.primary : y.text.primary; } const T = (e) => { let { color: t, name: n, mainShade: a = 500, lightShade: o = 300, darkShade: l = 700 } = e; if (((t = (0, r.Z)({}, t)), !t.main && t[a] && (t.main = t[a]), !t.hasOwnProperty("main"))) throw new Error((0, i.Z)(11, n ? ` (${n})` : "", a)); if ("string" !== typeof t.main) throw new Error((0, i.Z)(12, n ? ` (${n})` : "", JSON.stringify(t.main))); return S(t, "light", o, s), S(t, "dark", l, s), t.contrastText || (t.contrastText = A(t.main)), t; }, R = { dark: w, light: y }; return (0, o.Z)((0, r.Z)({ common: (0, r.Z)({}, d), mode: t, primary: T({ color: k, name: "primary" }), secondary: T({ color: x, name: "secondary", mainShade: "A400", lightShade: "A200", darkShade: "A700" }), error: T({ color: C, name: "error" }), warning: T({ color: P, name: "warning" }), info: T({ color: E, name: "info" }), success: T({ color: I, name: "success" }), grey: u, contrastThreshold: n, getContrastText: A, augmentColor: T, tonalOffset: s }, R[t]), l); } const x = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; const C = { textTransform: "uppercase" }, E = '"Roboto", "Helvetica", "Arial", sans-serif'; function I(e, t) { const n = "function" === typeof t ? t(e) : t, { fontFamily: i = E, fontSize: s = 14, fontWeightLight: l = 300, fontWeightRegular: c = 400, fontWeightMedium: d = 500, fontWeightBold: u = 700, htmlFontSize: p = 16, allVariants: h, pxToRem: f } = n, m = (0, a.Z)(n, x); const g = s / 14, v = f || ((e) => (e / p) * g + "rem"), b = (e, t, n, a, o) => { return (0, r.Z)({ fontFamily: i, fontWeight: e, fontSize: v(t), lineHeight: n }, i === E ? { letterSpacing: ((s = a / t), Math.round(1e5 * s) / 1e5) + "em" } : {}, o, h); var s; }, y = { h1: b(l, 96, 1.167, -1.5), h2: b(l, 60, 1.2, -0.5), h3: b(c, 48, 1.167, 0), h4: b(c, 34, 1.235, 0.25), h5: b(c, 24, 1.334, 0), h6: b(d, 20, 1.6, 0.15), subtitle1: b(c, 16, 1.75, 0.15), subtitle2: b(d, 14, 1.57, 0.1), body1: b(c, 16, 1.5, 0.15), body2: b(c, 14, 1.43, 0.15), button: b(d, 14, 1.75, 0.4, C), caption: b(c, 12, 1.66, 0.4), overline: b(c, 12, 2.66, 1, C) }; return (0, o.Z)((0, r.Z)({ htmlFontSize: p, pxToRem: v, fontFamily: i, fontSize: s, fontWeightLight: l, fontWeightRegular: c, fontWeightMedium: d, fontWeightBold: u }, y), m, { clone: !1 }); } function P() { return [`${arguments.length <= 0 ? void 0 : arguments[0]}px ${arguments.length <= 1 ? void 0 : arguments[1]}px ${arguments.length <= 2 ? void 0 : arguments[2]}px ${arguments.length <= 3 ? void 0 : arguments[3]}px rgba(0,0,0,0.2)`, `${arguments.length <= 4 ? void 0 : arguments[4]}px ${arguments.length <= 5 ? void 0 : arguments[5]}px ${arguments.length <= 6 ? void 0 : arguments[6]}px ${arguments.length <= 7 ? void 0 : arguments[7]}px rgba(0,0,0,0.14)`, `${arguments.length <= 8 ? void 0 : arguments[8]}px ${arguments.length <= 9 ? void 0 : arguments[9]}px ${arguments.length <= 10 ? void 0 : arguments[10]}px ${arguments.length <= 11 ? void 0 : arguments[11]}px rgba(0,0,0,0.12)`].join(","); } const A = ["none", P(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), P(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), P(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), P(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), P(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), P(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), P(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), P(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), P(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), P(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), P(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), P(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), P(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), P(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), P(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), P(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), P(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), P(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), P(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), P(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), P(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), P(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), P(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), P(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], T = ["duration", "easing", "delay"], R = { easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", easeIn: "cubic-bezier(0.4, 0, 1, 1)", sharp: "cubic-bezier(0.4, 0, 0.6, 1)" }, _ = { shortest: 150, shorter: 200, short: 250, standard: 300, complex: 375, enteringScreen: 225, leavingScreen: 195 }; function Z(e) { return `${Math.round(e)}ms`; } function z(e) { if (!e) return 0; const t = e / 36; return Math.round(10 * (4 + 15 * t ** 0.25 + t / 5)); } function L(e) { const t = (0, r.Z)({}, R, e.easing), n = (0, r.Z)({}, _, e.duration); return (0, r.Z)( { getAutoHeightDuration: z, create: function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ["all"], r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const { duration: i = n.standard, easing: o = t.easeInOut, delay: s = 0 } = r; (0, a.Z)(r, T); return (Array.isArray(e) ? e : [e]).map((e) => `${e} ${"string" === typeof i ? i : Z(i)} ${o} ${"string" === typeof s ? s : Z(s)}`).join(","); }, }, e, { easing: t, duration: n } ); } const M = { mobileStepper: 1e3, fab: 1050, speedDial: 1050, appBar: 1100, drawer: 1200, modal: 1300, snackbar: 1400, tooltip: 1500 }, F = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; function D() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const { mixins: t = {}, palette: n = {}, transitions: c = {}, typography: d = {} } = e, u = (0, a.Z)(e, F); if (e.vars) throw new Error((0, i.Z)(18)); const p = k(n), h = (0, s.Z)(e); let f = (0, o.Z)(h, { mixins: l(h.breakpoints, t), palette: p, shadows: A.slice(), typography: I(p, d), transitions: L(c), zIndex: (0, r.Z)({}, M) }); f = (0, o.Z)(f, u); for (var m = arguments.length, g = new Array(m > 1 ? m - 1 : 0), v = 1; v < m; v++) g[v - 1] = arguments[v]; return (f = g.reduce((e, t) => (0, o.Z)(e, t), f)), f; } const N = D; }, 63566: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = (0, n(3666).Z)(); }, 42379: (e, t, n) => { "use strict"; n.d(t, { ZP: () => E, FO: () => x }); var r = n(63366), a = n(87462), i = n(84472), o = n(9456), s = n(50114); const l = ["variant"]; function c(e) { return 0 === e.length; } function d(e) { const { variant: t } = e, n = (0, r.Z)(e, l); let a = t || ""; return ( Object.keys(n) .sort() .forEach((t) => { a += "color" === t ? (c(a) ? e[t] : (0, s.Z)(e[t])) : `${c(a) ? t : (0, s.Z)(t)}${(0, s.Z)(e[t].toString())}`; }), a ); } var u = n(63649); const p = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"], h = ["theme"], f = ["theme"]; function m(e) { return 0 === Object.keys(e).length; } function g(e) { return "string" === typeof e && e.charCodeAt(0) > 96; } const v = (e, t) => (t.components && t.components[e] && t.components[e].styleOverrides ? t.components[e].styleOverrides : null), b = (e, t) => { let n = []; t && t.components && t.components[e] && t.components[e].variants && (n = t.components[e].variants); const r = {}; return ( n.forEach((e) => { const t = d(e.props); r[t] = e.style; }), r ); }, y = (e, t, n, r) => { var a, i; const { ownerState: o = {} } = e, s = [], l = null == n || null == (a = n.components) || null == (i = a[r]) ? void 0 : i.variants; return ( l && l.forEach((n) => { let r = !0; Object.keys(n.props).forEach((t) => { o[t] !== n.props[t] && e[t] !== n.props[t] && (r = !1); }), r && s.push(t[d(n.props)]); }), s ); }; function w(e) { return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e; } const S = (0, o.Z)(); var k = n(63566); const x = (e) => w(e) && "classes" !== e, C = (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const { defaultTheme: t = S, rootShouldForwardProp: n = w, slotShouldForwardProp: o = w, styleFunctionSx: s = u.Z } = e, l = (e) => { const n = m(e.theme) ? t : e.theme; return s((0, a.Z)({}, e, { theme: n })); }; return ( (l.__mui_systemSx = !0), function (e) { let s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; (0, i.Co)(e, (e) => e.filter((e) => !(null != e && e.__mui_systemSx))); const { name: c, slot: d, skipVariantsResolver: u, skipSx: S, overridesResolver: k } = s, x = (0, r.Z)(s, p), C = void 0 !== u ? u : (d && "Root" !== d) || !1, E = S || !1; let I; let P = w; "Root" === d ? (P = n) : d ? (P = o) : g(e) && (P = void 0); const A = (0, i.ZP)(e, (0, a.Z)({ shouldForwardProp: P, label: I }, x)), T = function (e) { for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) i[o - 1] = arguments[o]; const s = i ? i.map((e) => "function" === typeof e && e.__emotion_real !== e ? (n) => { let { theme: i } = n, o = (0, r.Z)(n, h); return e((0, a.Z)({ theme: m(i) ? t : i }, o)); } : e ) : []; let d = e; c && k && s.push((e) => { const n = m(e.theme) ? t : e.theme, r = v(c, n); if (r) { const t = {}; return ( Object.entries(r).forEach((r) => { let [i, o] = r; t[i] = "function" === typeof o ? o((0, a.Z)({}, e, { theme: n })) : o; }), k(e, t) ); } return null; }), c && !C && s.push((e) => { const n = m(e.theme) ? t : e.theme; return y(e, b(c, n), n, c); }), E || s.push(l); const u = s.length - i.length; if (Array.isArray(e) && u > 0) { const t = new Array(u).fill(""); (d = [...e, ...t]), (d.raw = [...e.raw, ...t]); } else "function" === typeof e && e.__emotion_real !== e && (d = (n) => { let { theme: i } = n, o = (0, r.Z)(n, f); return e((0, a.Z)({ theme: m(i) ? t : i }, o)); }); const p = A(d, ...s); return p; }; return A.withConfig && (T.withConfig = A.withConfig), T; } ); })({ defaultTheme: k.Z, rootShouldForwardProp: x }), E = C; }, 62111: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); n(47313); var r = n(86728), a = n(63566); function i() { return (0, r.Z)(a.Z); } }, 32772: (e, t, n) => { "use strict"; n.d(t, { Z: () => s }); var r = n(29023); var a = n(86728); function i(e) { let { props: t, name: n, defaultTheme: i } = e; const o = (function (e) { const { theme: t, name: n, props: a } = e; return t && t.components && t.components[n] && t.components[n].defaultProps ? (0, r.Z)(t.components[n].defaultProps, a) : a; })({ theme: (0, a.Z)(i), name: n, props: t }); return o; } var o = n(63566); function s(e) { let { props: t, name: n } = e; return i({ props: t, name: n, defaultTheme: o.Z }); } }, 68999: (e, t, n) => { "use strict"; n.d(t, { C: () => a, n: () => r }); const r = (e) => e.scrollTop; function a(e, t) { var n, r; const { timeout: a, easing: i, style: o = {} } = e; return { duration: null != (n = o.transitionDuration) ? n : "number" === typeof a ? a : a[t.mode] || 0, easing: null != (r = o.transitionTimingFunction) ? r : "object" === typeof i ? i[t.mode] : i, delay: o.transitionDelay }; } }, 28170: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = n(50114).Z; }, 56127: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = n(42780).Z; }, 2995: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = n(47472).Z; }, 45730: (e, t, n) => { "use strict"; n.d(t, { Z: () => p }); var r = n(47313); let a, i = !0, o = !1; const s = { text: !0, search: !0, url: !0, tel: !0, email: !0, password: !0, number: !0, date: !0, month: !0, week: !0, time: !0, datetime: !0, "datetime-local": !0 }; function l(e) { e.metaKey || e.altKey || e.ctrlKey || (i = !0); } function c() { i = !1; } function d() { "hidden" === this.visibilityState && o && (i = !0); } function u(e) { const { target: t } = e; try { return t.matches(":focus-visible"); } catch (n) {} return ( i || (function (e) { const { type: t, tagName: n } = e; return !("INPUT" !== n || !s[t] || e.readOnly) || ("TEXTAREA" === n && !e.readOnly) || !!e.isContentEditable; })(t) ); } const p = function () { const e = r.useCallback((e) => { var t; null != e && ((t = e.ownerDocument).addEventListener("keydown", l, !0), t.addEventListener("mousedown", c, !0), t.addEventListener("pointerdown", c, !0), t.addEventListener("touchstart", c, !0), t.addEventListener("visibilitychange", d, !0)); }, []), t = r.useRef(!1); return { isFocusVisibleRef: t, onFocus: function (e) { return !!u(e) && ((t.current = !0), !0); }, onBlur: function () { return ( !!t.current && ((o = !0), window.clearTimeout(a), (a = window.setTimeout(() => { o = !1; }, 100)), (t.current = !1), !0) ); }, ref: e, }; }; }, 15693: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = n(47313).createContext(null); }, 20201: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(47313), a = n(15693); function i() { return r.useContext(a.Z); } }, 84472: (e, t, n) => { "use strict"; n.d(t, { ZP: () => y, Co: () => w }); var r = n(47313), a = n(87462), i = n(91816), o = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; const s = (0, i.Z)(function (e) { return o.test(e) || (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91); }); var l = n(51639), c = n(54911), d = n(21086), u = s, p = function (e) { return "theme" !== e; }, h = function (e) { return "string" === typeof e && e.charCodeAt(0) > 96 ? u : p; }, f = function (e, t, n) { var r; if (t) { var a = t.shouldForwardProp; r = e.__emotion_forwardProp && a ? function (t) { return e.__emotion_forwardProp(t) && a(t); } : a; } return "function" !== typeof r && n && (r = e.__emotion_forwardProp), r; }, m = function () { return null; }; const g = function e(t, n) { var i, o, s = t.__emotion_real === t, u = (s && t.__emotion_base) || t; void 0 !== n && ((i = n.label), (o = n.target)); var p = f(t, n, s), g = p || h(u), v = !g("as"); return function () { var b = arguments, y = s && void 0 !== t.__emotion_styles ? t.__emotion_styles.slice(0) : []; if ((void 0 !== i && y.push("label:" + i + ";"), null == b[0] || void 0 === b[0].raw)) y.push.apply(y, b); else { 0, y.push(b[0][0]); for (var w = b.length, S = 1; S < w; S++) y.push(b[S], b[0][S]); } var k = (0, l.w)(function (e, t, n) { var a = (v && e.as) || u, i = "", s = [], f = e; if (null == e.theme) { for (var b in ((f = {}), e)) f[b] = e[b]; f.theme = (0, r.useContext)(l.T); } "string" === typeof e.className ? (i = (0, c.fp)(t.registered, s, e.className)) : null != e.className && (i = e.className + " "); var w = (0, d.O)(y.concat(s), t.registered, f); (0, c.My)(t, w, "string" === typeof a); (i += t.key + "-" + w.name), void 0 !== o && (i += " " + o); var S = v && void 0 === p ? h(a) : g, k = {}; for (var x in e) (v && "as" === x) || (S(x) && (k[x] = e[x])); (k.className = i), (k.ref = n); var C = (0, r.createElement)(a, k), E = (0, r.createElement)(m, null); return (0, r.createElement)(r.Fragment, null, E, C); }); return ( (k.displayName = void 0 !== i ? i : "Styled(" + ("string" === typeof u ? u : u.displayName || u.name || "Component") + ")"), (k.defaultProps = t.defaultProps), (k.__emotion_real = k), (k.__emotion_base = u), (k.__emotion_styles = y), (k.__emotion_forwardProp = p), Object.defineProperty(k, "toString", { value: function () { return "." + o; }, }), (k.withComponent = function (t, r) { return e(t, (0, a.Z)({}, n, r, { shouldForwardProp: f(k, r, !0) })).apply(void 0, y); }), k ); }; }; var v = g.bind(); ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"].forEach(function (e) { v[e] = v(e); }); const b = v; function y(e, t) { return b(e, t); } const w = (e, t) => { Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles)); }; }, 54929: (e, t, n) => { "use strict"; n.d(t, { L7: () => s, P$: () => l, VO: () => r, W8: () => o, k9: () => i }); const r = { xs: 0, sm: 600, md: 900, lg: 1200, xl: 1536 }, a = { keys: ["xs", "sm", "md", "lg", "xl"], up: (e) => `@media (min-width:${r[e]}px)` }; function i(e, t, n) { const i = e.theme || {}; if (Array.isArray(t)) { const e = i.breakpoints || a; return t.reduce((r, a, i) => ((r[e.up(e.keys[i])] = n(t[i])), r), {}); } if ("object" === typeof t) { const e = i.breakpoints || a; return Object.keys(t).reduce((a, i) => { if (-1 !== Object.keys(e.values || r).indexOf(i)) { a[e.up(i)] = n(t[i], i); } else { const e = i; a[e] = t[e]; } return a; }, {}); } return n(t); } function o() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; var t; const n = null == (t = e.keys) ? void 0 : t.reduce((t, n) => ((t[e.up(n)] = {}), t), {}); return n || {}; } function s(e, t) { return e.reduce((e, t) => { const n = e[t]; return (!n || 0 === Object.keys(n).length) && delete e[t], e; }, t); } function l(e) { let { values: t, breakpoints: n, base: r } = e; const a = r || (function (e, t) { if ("object" !== typeof e) return {}; const n = {}, r = Object.keys(t); return ( Array.isArray(e) ? r.forEach((t, r) => { r < e.length && (n[t] = !0); }) : r.forEach((t) => { null != e[t] && (n[t] = !0); }), n ); })(t, n), i = Object.keys(a); if (0 === i.length) return t; let o; return i.reduce((e, n, r) => (Array.isArray(t) ? ((e[n] = null != t[r] ? t[r] : t[o]), (o = r)) : "object" === typeof t ? ((e[n] = null != t[n] ? t[n] : t[o]), (o = n)) : (e[n] = t), e), {}); } }, 17551: (e, t, n) => { "use strict"; n.d(t, { $n: () => u, Fq: () => c, _j: () => d, mi: () => l }); var r = n(77219); function a(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1; return Math.min(Math.max(t, e), n); } function i(e) { if (e.type) return e; if ("#" === e.charAt(0)) return i( (function (e) { e = e.slice(1); const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"); let n = e.match(t); return n && 1 === n[0].length && (n = n.map((e) => e + e)), n ? `rgb${4 === n.length ? "a" : ""}(${n.map((e, t) => (t < 3 ? parseInt(e, 16) : Math.round((parseInt(e, 16) / 255) * 1e3) / 1e3)).join(", ")})` : ""; })(e) ); const t = e.indexOf("("), n = e.substring(0, t); if (-1 === ["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n)) throw new Error((0, r.Z)(9, e)); let a, o = e.substring(t + 1, e.length - 1); if ("color" === n) { if (((o = o.split(" ")), (a = o.shift()), 4 === o.length && "/" === o[3].charAt(0) && (o[3] = o[3].slice(1)), -1 === ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(a))) throw new Error((0, r.Z)(10, a)); } else o = o.split(","); return (o = o.map((e) => parseFloat(e))), { type: n, values: o, colorSpace: a }; } function o(e) { const { type: t, colorSpace: n } = e; let { values: r } = e; return -1 !== t.indexOf("rgb") ? (r = r.map((e, t) => (t < 3 ? parseInt(e, 10) : e))) : -1 !== t.indexOf("hsl") && ((r[1] = `${r[1]}%`), (r[2] = `${r[2]}%`)), (r = -1 !== t.indexOf("color") ? `${n} ${r.join(" ")}` : `${r.join(", ")}`), `${t}(${r})`; } function s(e) { let t = "hsl" === (e = i(e)).type ? i( (function (e) { e = i(e); const { values: t } = e, n = t[0], r = t[1] / 100, a = t[2] / 100, s = r * Math.min(a, 1 - a), l = function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : (e + n / 30) % 12; return a - s * Math.max(Math.min(t - 3, 9 - t, 1), -1); }; let c = "rgb"; const d = [Math.round(255 * l(0)), Math.round(255 * l(8)), Math.round(255 * l(4))]; return "hsla" === e.type && ((c += "a"), d.push(t[3])), o({ type: c, values: d }); })(e) ).values : e.values; return (t = t.map((t) => ("color" !== e.type && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4))), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3)); } function l(e, t) { const n = s(e), r = s(t); return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05); } function c(e, t) { return (e = i(e)), (t = a(t)), ("rgb" !== e.type && "hsl" !== e.type) || (e.type += "a"), "color" === e.type ? (e.values[3] = `/${t}`) : (e.values[3] = t), o(e); } function d(e, t) { if (((e = i(e)), (t = a(t)), -1 !== e.type.indexOf("hsl"))) e.values[2] *= 1 - t; else if (-1 !== e.type.indexOf("rgb") || -1 !== e.type.indexOf("color")) for (let n = 0; n < 3; n += 1) e.values[n] *= 1 - t; return o(e); } function u(e, t) { if (((e = i(e)), (t = a(t)), -1 !== e.type.indexOf("hsl"))) e.values[2] += (100 - e.values[2]) * t; else if (-1 !== e.type.indexOf("rgb")) for (let n = 0; n < 3; n += 1) e.values[n] += (255 - e.values[n]) * t; else if (-1 !== e.type.indexOf("color")) for (let n = 0; n < 3; n += 1) e.values[n] += (1 - e.values[n]) * t; return o(e); } }, 9456: (e, t, n) => { "use strict"; n.d(t, { Z: () => p }); var r = n(87462), a = n(63366), i = n(13019); const o = ["values", "unit", "step"]; function s(e) { const { values: t = { xs: 0, sm: 600, md: 900, lg: 1200, xl: 1536 }, unit: n = "px", step: i = 5 } = e, s = (0, a.Z)(e, o), l = ((e) => { const t = Object.keys(e).map((t) => ({ key: t, val: e[t] })) || []; return t.sort((e, t) => e.val - t.val), t.reduce((e, t) => (0, r.Z)({}, e, { [t.key]: t.val }), {}); })(t), c = Object.keys(l); function d(e) { return `@media (min-width:${"number" === typeof t[e] ? t[e] : e}${n})`; } function u(e) { return `@media (max-width:${("number" === typeof t[e] ? t[e] : e) - i / 100}${n})`; } function p(e, r) { const a = c.indexOf(r); return `@media (min-width:${"number" === typeof t[e] ? t[e] : e}${n}) and (max-width:${(-1 !== a && "number" === typeof t[c[a]] ? t[c[a]] : r) - i / 100}${n})`; } return (0, r.Z)( { keys: c, values: l, up: d, down: u, between: p, only: function (e) { return c.indexOf(e) + 1 < c.length ? p(e, c[c.indexOf(e) + 1]) : d(e); }, not: function (e) { const t = c.indexOf(e); return 0 === t ? d(c[1]) : t === c.length - 1 ? u(c[t]) : p(e, c[c.indexOf(e) + 1]).replace("@media", "@media not all and"); }, unit: n, }, s ); } const l = { borderRadius: 4 }; var c = n(86886); function d() { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 8; if (e.mui) return e; const t = (0, c.hB)({ spacing: e }), n = function () { for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; const a = 0 === n.length ? [1] : n; return a .map((e) => { const n = t(e); return "number" === typeof n ? `${n}px` : n; }) .join(" "); }; return (n.mui = !0), n; } const u = ["breakpoints", "palette", "spacing", "shape"]; const p = function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const { breakpoints: t = {}, palette: n = {}, spacing: o, shape: c = {} } = e, p = (0, a.Z)(e, u), h = s(t), f = d(o); let m = (0, i.Z)({ breakpoints: h, direction: "ltr", components: {}, palette: (0, r.Z)({ mode: "light" }, n), spacing: f, shape: (0, r.Z)({}, l, c) }, p); for (var g = arguments.length, v = new Array(g > 1 ? g - 1 : 0), b = 1; b < g; b++) v[b - 1] = arguments[b]; return (m = v.reduce((e, t) => (0, i.Z)(e, t), m)), m; }; }, 43103: (e, t, n) => { "use strict"; n.d(t, { Gc: () => K, G$: () => H }); var r = n(46428), a = n(77330); const i = function () { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; const r = t.reduce( (e, t) => ( t.filterProps.forEach((n) => { e[n] = t; }), e ), {} ), i = (e) => Object.keys(e).reduce((t, n) => (r[n] ? (0, a.Z)(t, r[n](e)) : t), {}); return (i.propTypes = {}), (i.filterProps = t.reduce((e, t) => e.concat(t.filterProps), [])), i; }; var o = n(86886), s = n(54929); function l(e) { return "number" !== typeof e ? e : `${e}px solid`; } const c = (0, r.Z)({ prop: "border", themeKey: "borders", transform: l }), d = (0, r.Z)({ prop: "borderTop", themeKey: "borders", transform: l }), u = (0, r.Z)({ prop: "borderRight", themeKey: "borders", transform: l }), p = (0, r.Z)({ prop: "borderBottom", themeKey: "borders", transform: l }), h = (0, r.Z)({ prop: "borderLeft", themeKey: "borders", transform: l }), f = (0, r.Z)({ prop: "borderColor", themeKey: "palette" }), m = (0, r.Z)({ prop: "borderTopColor", themeKey: "palette" }), g = (0, r.Z)({ prop: "borderRightColor", themeKey: "palette" }), v = (0, r.Z)({ prop: "borderBottomColor", themeKey: "palette" }), b = (0, r.Z)({ prop: "borderLeftColor", themeKey: "palette" }), y = (e) => { if (void 0 !== e.borderRadius && null !== e.borderRadius) { const t = (0, o.eI)(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (e) => ({ borderRadius: (0, o.NA)(t, e) }); return (0, s.k9)(e, e.borderRadius, n); } return null; }; (y.propTypes = {}), (y.filterProps = ["borderRadius"]); const w = i(c, d, u, p, h, f, m, g, v, b, y), S = i((0, r.Z)({ prop: "displayPrint", cssProperty: !1, transform: (e) => ({ "@media print": { display: e } }) }), (0, r.Z)({ prop: "display" }), (0, r.Z)({ prop: "overflow" }), (0, r.Z)({ prop: "textOverflow" }), (0, r.Z)({ prop: "visibility" }), (0, r.Z)({ prop: "whiteSpace" })), k = i((0, r.Z)({ prop: "flexBasis" }), (0, r.Z)({ prop: "flexDirection" }), (0, r.Z)({ prop: "flexWrap" }), (0, r.Z)({ prop: "justifyContent" }), (0, r.Z)({ prop: "alignItems" }), (0, r.Z)({ prop: "alignContent" }), (0, r.Z)({ prop: "order" }), (0, r.Z)({ prop: "flex" }), (0, r.Z)({ prop: "flexGrow" }), (0, r.Z)({ prop: "flexShrink" }), (0, r.Z)({ prop: "alignSelf" }), (0, r.Z)({ prop: "justifyItems" }), (0, r.Z)({ prop: "justifySelf" })), x = (e) => { if (void 0 !== e.gap && null !== e.gap) { const t = (0, o.eI)(e.theme, "spacing", 8, "gap"), n = (e) => ({ gap: (0, o.NA)(t, e) }); return (0, s.k9)(e, e.gap, n); } return null; }; (x.propTypes = {}), (x.filterProps = ["gap"]); const C = (e) => { if (void 0 !== e.columnGap && null !== e.columnGap) { const t = (0, o.eI)(e.theme, "spacing", 8, "columnGap"), n = (e) => ({ columnGap: (0, o.NA)(t, e) }); return (0, s.k9)(e, e.columnGap, n); } return null; }; (C.propTypes = {}), (C.filterProps = ["columnGap"]); const E = (e) => { if (void 0 !== e.rowGap && null !== e.rowGap) { const t = (0, o.eI)(e.theme, "spacing", 8, "rowGap"), n = (e) => ({ rowGap: (0, o.NA)(t, e) }); return (0, s.k9)(e, e.rowGap, n); } return null; }; (E.propTypes = {}), (E.filterProps = ["rowGap"]); const I = i(x, C, E, (0, r.Z)({ prop: "gridColumn" }), (0, r.Z)({ prop: "gridRow" }), (0, r.Z)({ prop: "gridAutoFlow" }), (0, r.Z)({ prop: "gridAutoColumns" }), (0, r.Z)({ prop: "gridAutoRows" }), (0, r.Z)({ prop: "gridTemplateColumns" }), (0, r.Z)({ prop: "gridTemplateRows" }), (0, r.Z)({ prop: "gridTemplateAreas" }), (0, r.Z)({ prop: "gridArea" })), P = i((0, r.Z)({ prop: "position" }), (0, r.Z)({ prop: "zIndex", themeKey: "zIndex" }), (0, r.Z)({ prop: "top" }), (0, r.Z)({ prop: "right" }), (0, r.Z)({ prop: "bottom" }), (0, r.Z)({ prop: "left" })), A = i((0, r.Z)({ prop: "color", themeKey: "palette" }), (0, r.Z)({ prop: "bgcolor", cssProperty: "backgroundColor", themeKey: "palette" }), (0, r.Z)({ prop: "backgroundColor", themeKey: "palette" })), T = (0, r.Z)({ prop: "boxShadow", themeKey: "shadows" }); function R(e) { return e <= 1 && 0 !== e ? 100 * e + "%" : e; } const _ = (0, r.Z)({ prop: "width", transform: R }), Z = (e) => { if (void 0 !== e.maxWidth && null !== e.maxWidth) { const t = (t) => { var n, r, a; return { maxWidth: (null == (n = e.theme) || null == (r = n.breakpoints) || null == (a = r.values) ? void 0 : a[t]) || s.VO[t] || R(t) }; }; return (0, s.k9)(e, e.maxWidth, t); } return null; }; Z.filterProps = ["maxWidth"]; const z = (0, r.Z)({ prop: "minWidth", transform: R }), L = (0, r.Z)({ prop: "height", transform: R }), M = (0, r.Z)({ prop: "maxHeight", transform: R }), F = (0, r.Z)({ prop: "minHeight", transform: R }), D = ((0, r.Z)({ prop: "size", cssProperty: "width", transform: R }), (0, r.Z)({ prop: "size", cssProperty: "height", transform: R }), i(_, Z, z, L, M, F, (0, r.Z)({ prop: "boxSizing" }))), N = (0, r.Z)({ prop: "fontFamily", themeKey: "typography" }), j = (0, r.Z)({ prop: "fontSize", themeKey: "typography" }), O = (0, r.Z)({ prop: "fontStyle", themeKey: "typography" }), B = (0, r.Z)({ prop: "fontWeight", themeKey: "typography" }), U = (0, r.Z)({ prop: "letterSpacing" }), $ = (0, r.Z)({ prop: "textTransform" }), G = (0, r.Z)({ prop: "lineHeight" }), V = (0, r.Z)({ prop: "textAlign" }), q = i((0, r.Z)({ prop: "typography", cssProperty: !1, themeKey: "typography" }), N, j, O, B, U, G, V, $), W = { borders: w.filterProps, display: S.filterProps, flexbox: k.filterProps, grid: I.filterProps, positions: P.filterProps, palette: A.filterProps, shadows: T.filterProps, sizing: D.filterProps, spacing: o.ZP.filterProps, typography: q.filterProps }, H = { borders: w, display: S, flexbox: k, grid: I, positions: P, palette: A, shadows: T, sizing: D, spacing: o.ZP, typography: q }, K = Object.keys(W).reduce( (e, t) => ( W[t].forEach((n) => { e[n] = H[t]; }), e ), {} ); }, 77330: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(13019); const a = function (e, t) { return t ? (0, r.Z)(e, t, { clone: !1 }) : e; }; }, 86886: (e, t, n) => { "use strict"; n.d(t, { hB: () => f, eI: () => h, ZP: () => S, NA: () => m }); var r = n(54929), a = n(46428), i = n(77330); const o = { m: "margin", p: "padding" }, s = { t: "Top", r: "Right", b: "Bottom", l: "Left", x: ["Left", "Right"], y: ["Top", "Bottom"] }, l = { marginX: "mx", marginY: "my", paddingX: "px", paddingY: "py" }, c = (function (e) { const t = {}; return (n) => (void 0 === t[n] && (t[n] = e(n)), t[n]); })((e) => { if (e.length > 2) { if (!l[e]) return [e]; e = l[e]; } const [t, n] = e.split(""), r = o[t], a = s[n] || ""; return Array.isArray(a) ? a.map((e) => r + e) : [r + a]; }), d = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], u = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], p = [...d, ...u]; function h(e, t, n, r) { var i; const o = null != (i = (0, a.D)(e, t, !1)) ? i : n; return "number" === typeof o ? (e) => ("string" === typeof e ? e : o * e) : Array.isArray(o) ? (e) => ("string" === typeof e ? e : o[e]) : "function" === typeof o ? o : () => {}; } function f(e) { return h(e, "spacing", 8); } function m(e, t) { if ("string" === typeof t || null == t) return t; const n = e(Math.abs(t)); return t >= 0 ? n : "number" === typeof n ? -n : `-${n}`; } function g(e, t, n, a) { if (-1 === t.indexOf(n)) return null; const i = (function (e, t) { return (n) => e.reduce((e, r) => ((e[r] = m(t, n)), e), {}); })(c(n), a), o = e[n]; return (0, r.k9)(e, o, i); } function v(e, t) { const n = f(e.theme); return Object.keys(e) .map((r) => g(e, t, r, n)) .reduce(i.Z, {}); } function b(e) { return v(e, d); } function y(e) { return v(e, u); } function w(e) { return v(e, p); } (b.propTypes = {}), (b.filterProps = d), (y.propTypes = {}), (y.filterProps = u), (w.propTypes = {}), (w.filterProps = p); const S = w; }, 46428: (e, t, n) => { "use strict"; n.d(t, { D: () => i, Z: () => s }); var r = n(50114), a = n(54929); function i(e, t) { let n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; if (!t || "string" !== typeof t) return null; if (e && e.vars && n) { const n = `vars.${t}`.split(".").reduce((e, t) => (e && e[t] ? e[t] : null), e); if (null != n) return n; } return t.split(".").reduce((e, t) => (e && null != e[t] ? e[t] : null), e); } function o(e, t, n) { let r, a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : n; return (r = "function" === typeof e ? e(n) : Array.isArray(e) ? e[n] || a : i(e, n) || a), t && (r = t(r)), r; } const s = function (e) { const { prop: t, cssProperty: n = e.prop, themeKey: s, transform: l } = e, c = (e) => { if (null == e[t]) return null; const c = e[t], d = i(e.theme, s) || {}; return (0, a.k9)(e, c, (e) => { let a = o(d, l, e); return e === a && "string" === typeof e && (a = o(d, l, `${t}${"default" === e ? "" : (0, r.Z)(e)}`, e)), !1 === n ? a : { [n]: a }; }); }; return (c.propTypes = {}), (c.filterProps = [t]), c; }; }, 39028: (e, t, n) => { "use strict"; n.d(t, { Z: () => l }); var r = n(87462), a = n(63366), i = n(13019), o = n(43103); const s = ["sx"]; function l(e) { const { sx: t } = e, n = (0, a.Z)(e, s), { systemProps: l, otherProps: c } = ((e) => { const t = { systemProps: {}, otherProps: {} }; return ( Object.keys(e).forEach((n) => { o.Gc[n] ? (t.systemProps[n] = e[n]) : (t.otherProps[n] = e[n]); }), t ); })(n); let d; return ( (d = Array.isArray(t) ? [l, ...t] : "function" === typeof t ? function () { const e = t(...arguments); return (0, i.P)(e) ? (0, r.Z)({}, l, e) : l; } : (0, r.Z)({}, l, t)), (0, r.Z)({}, c, { sx: d }) ); } }, 63649: (e, t, n) => { "use strict"; n.d(t, { Z: () => c }); var r = n(77330), a = n(43103), i = n(54929); function o() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; const r = t.reduce((e, t) => e.concat(Object.keys(t)), []), a = new Set(r); return t.every((e) => a.size === Object.keys(e).length); } function s(e, t) { return "function" === typeof e ? e(t) : e; } const l = (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a.G$; const t = Object.keys(e).reduce( (t, n) => ( e[n].filterProps.forEach((r) => { t[r] = e[n]; }), t ), {} ); function n(e, n, r) { const a = { [e]: n, theme: r }, i = t[e]; return i ? i(a) : { [e]: n }; } function l(e) { const { sx: a, theme: c = {} } = e || {}; if (!a) return null; function d(e) { let a = e; if ("function" === typeof e) a = e(c); else if ("object" !== typeof e) return e; if (!a) return null; const d = (0, i.W8)(c.breakpoints), u = Object.keys(d); let p = d; return ( Object.keys(a).forEach((e) => { const d = s(a[e], c); if (null !== d && void 0 !== d) if ("object" === typeof d) if (t[e]) p = (0, r.Z)(p, n(e, d, c)); else { const t = (0, i.k9)({ theme: c }, d, (t) => ({ [e]: t })); o(t, d) ? (p[e] = l({ sx: d, theme: c })) : (p = (0, r.Z)(p, t)); } else p = (0, r.Z)(p, n(e, d, c)); }), (0, i.L7)(u, p) ); } return Array.isArray(a) ? a.map(d) : d(a); } return l; })(); l.filterProps = ["sx"]; const c = l; }, 86728: (e, t, n) => { "use strict"; n.d(t, { Z: () => o }); var r = n(9456), a = n(14976); const i = (0, r.Z)(); const o = function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : i; return (0, a.Z)(e); }; }, 14976: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(20201); function a(e) { return 0 === Object.keys(e).length; } const i = function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null; const t = (0, r.Z)(); return !t || a(t) ? e : t; }; }, 41271: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); const r = (e) => e, a = (() => { let e = r; return { configure(t) { e = t; }, generate: (t) => e(t), reset() { e = r; }, }; })(); }, 50114: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(77219); function a(e) { if ("string" !== typeof e) throw new Error((0, r.Z)(7)); return e.charAt(0).toUpperCase() + e.slice(1); } }, 21921: (e, t, n) => { "use strict"; function r(e, t, n) { const r = {}; return ( Object.keys(e).forEach((a) => { r[a] = e[a].reduce((e, r) => (r && (e.push(t(r)), n && n[r] && e.push(n[r])), e), []).join(" "); }), r ); } n.d(t, { Z: () => r }); }, 13019: (e, t, n) => { "use strict"; n.d(t, { P: () => a, Z: () => i }); var r = n(87462); function a(e) { return null !== e && "object" === typeof e && e.constructor === Object; } function i(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { clone: !0 }; const o = n.clone ? (0, r.Z)({}, e) : e; return ( a(e) && a(t) && Object.keys(t).forEach((r) => { "__proto__" !== r && (a(t[r]) && r in e && a(e[r]) ? (o[r] = i(e[r], t[r], n)) : (o[r] = t[r])); }), o ); } }, 77219: (e, t, n) => { "use strict"; function r(e) { let t = "https://mui.com/production-error/?code=" + e; for (let n = 1; n < arguments.length; n += 1) t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified MUI error #" + e + "; visit " + t + " for the full message."; } n.d(t, { Z: () => r }); }, 32298: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(41271); const a = { active: "active", checked: "checked", completed: "completed", disabled: "disabled", error: "error", expanded: "expanded", focused: "focused", focusVisible: "focusVisible", required: "required", selected: "selected" }; function i(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "Mui"; const i = a[t]; return i ? `${n}-${i}` : `${r.Z.generate(e)}-${t}`; } }, 77430: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(32298); function a(e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "Mui"; const a = {}; return ( t.forEach((t) => { a[t] = (0, r.Z)(e, t, n); }), a ); } }, 49081: (e, t, n) => { "use strict"; function r(e) { return (e && e.ownerDocument) || document; } n.d(t, { Z: () => r }); }, 93282: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(49081); function a(e) { return (0, r.Z)(e).defaultView || window; } }, 29023: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(87462); function a(e, t) { const n = (0, r.Z)({}, t); return ( Object.keys(e).forEach((t) => { void 0 === n[t] && (n[t] = e[t]); }), n ); } }, 89265: (e, t, n) => { "use strict"; function r(e, t) { "function" === typeof e ? e(t) : e && (e.current = t); } n.d(t, { Z: () => r }); }, 2678: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(47313); const a = "undefined" !== typeof window ? r.useLayoutEffect : r.useEffect; }, 42780: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(47313), a = n(2678); function i(e) { const t = r.useRef(e); return ( (0, a.Z)(() => { t.current = e; }), r.useCallback(function () { return (0, t.current)(...arguments); }, []) ); } }, 47472: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(47313), a = n(89265); function i(e, t) { return r.useMemo( () => null == e && null == t ? null : (n) => { (0, a.Z)(e, n), (0, a.Z)(t, n); }, [e, t] ); } }, 83061: (e, t, n) => { "use strict"; function r(e) { var t, n, a = ""; if ("string" == typeof e || "number" == typeof e) a += e; else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = r(e[t])) && (a && (a += " "), (a += n)); else for (t in e) e[t] && (a && (a += " "), (a += t)); return a; } n.d(t, { Z: () => a }); const a = function () { for (var e, t, n = 0, a = ""; n < arguments.length; ) (e = arguments[n++]) && (t = r(e)) && (a && (a += " "), (a += t)); return a; }; }, 5025: (e, t, n) => { "use strict"; function r(e) { var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())); return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime(); } n.d(t, { Z: () => r }); }, 34800: (e, t, n) => { "use strict"; function r(e, t) { if (t.length < e) throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present"); } n.d(t, { Z: () => r }); }, 93601: (e, t, n) => { "use strict"; n.d(t, { Z: () => i }); var r = n(71002), a = n(34800); function i(e) { (0, a.Z)(1, arguments); var t = Object.prototype.toString.call(e); return e instanceof Date || ("object" === (0, r.Z)(e) && "[object Date]" === t) ? new Date(e.getTime()) : "number" === typeof e || "[object Number]" === t ? new Date(e) : (("string" !== typeof e && "[object String]" !== t) || "undefined" === typeof console || (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN)); } }, 67861: (e, t, n) => { "use strict"; var r = n(89456), a = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, i = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, o = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, s = {}; function l(e) { return r.isMemo(e) ? o : s[e.$$typeof] || a; } (s[r.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }), (s[r.Memo] = o); var c = Object.defineProperty, d = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, p = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, f = Object.prototype; e.exports = function e(t, n, r) { if ("string" !== typeof n) { if (f) { var a = h(n); a && a !== f && e(t, a, r); } var o = d(n); u && (o = o.concat(u(n))); for (var s = l(t), m = l(n), g = 0; g < o.length; ++g) { var v = o[g]; if (!i[v] && (!r || !r[v]) && (!m || !m[v]) && (!s || !s[v])) { var b = p(n, v); try { c(t, v, b); } catch (y) {} } } } return t; }; }, 20229: (e, t) => { "use strict"; var n = "function" === typeof Symbol && Symbol.for, r = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, o = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, l = n ? Symbol.for("react.provider") : 60109, c = n ? Symbol.for("react.context") : 60110, d = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, p = n ? Symbol.for("react.forward_ref") : 60112, h = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, m = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, y = n ? Symbol.for("react.responder") : 60118, w = n ? Symbol.for("react.scope") : 60119; function S(e) { if ("object" === typeof e && null !== e) { var t = e.$$typeof; switch (t) { case r: switch ((e = e.type)) { case d: case u: case i: case s: case o: case h: return e; default: switch ((e = e && e.$$typeof)) { case c: case p: case g: case m: case l: return e; default: return t; } } case a: return t; } } } function k(e) { return S(e) === u; } (t.AsyncMode = d), (t.ConcurrentMode = u), (t.ContextConsumer = c), (t.ContextProvider = l), (t.Element = r), (t.ForwardRef = p), (t.Fragment = i), (t.Lazy = g), (t.Memo = m), (t.Portal = a), (t.Profiler = s), (t.StrictMode = o), (t.Suspense = h), (t.isAsyncMode = function (e) { return k(e) || S(e) === d; }), (t.isConcurrentMode = k), (t.isContextConsumer = function (e) { return S(e) === c; }), (t.isContextProvider = function (e) { return S(e) === l; }), (t.isElement = function (e) { return "object" === typeof e && null !== e && e.$$typeof === r; }), (t.isForwardRef = function (e) { return S(e) === p; }), (t.isFragment = function (e) { return S(e) === i; }), (t.isLazy = function (e) { return S(e) === g; }), (t.isMemo = function (e) { return S(e) === m; }), (t.isPortal = function (e) { return S(e) === a; }), (t.isProfiler = function (e) { return S(e) === s; }), (t.isStrictMode = function (e) { return S(e) === o; }), (t.isSuspense = function (e) { return S(e) === h; }), (t.isValidElementType = function (e) { return "string" === typeof e || "function" === typeof e || e === i || e === u || e === s || e === o || e === h || e === f || ("object" === typeof e && null !== e && (e.$$typeof === g || e.$$typeof === m || e.$$typeof === l || e.$$typeof === c || e.$$typeof === p || e.$$typeof === b || e.$$typeof === y || e.$$typeof === w || e.$$typeof === v)); }), (t.typeOf = S); }, 89456: (e, t, n) => { "use strict"; e.exports = n(20229); }, 80936: (e, t, n) => { var r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt, l = "object" == typeof n.g && n.g && n.g.Object === Object && n.g, c = "object" == typeof self && self && self.Object === Object && self, d = l || c || Function("return this")(), u = Object.prototype.toString, p = Math.max, h = Math.min, f = function () { return d.Date.now(); }; function m(e) { var t = typeof e; return !!e && ("object" == t || "function" == t); } function g(e) { if ("number" == typeof e) return e; if ( (function (e) { return ( "symbol" == typeof e || ((function (e) { return !!e && "object" == typeof e; })(e) && "[object Symbol]" == u.call(e)) ); })(e) ) return NaN; if (m(e)) { var t = "function" == typeof e.valueOf ? e.valueOf() : e; e = m(t) ? t + "" : t; } if ("string" != typeof e) return 0 === e ? e : +e; e = e.replace(r, ""); var n = i.test(e); return n || o.test(e) ? s(e.slice(2), n ? 2 : 8) : a.test(e) ? NaN : +e; } e.exports = function (e, t, n) { var r, a, i, o, s, l, c = 0, d = !1, u = !1, v = !0; if ("function" != typeof e) throw new TypeError("Expected a function"); function b(t) { var n = r, i = a; return (r = a = void 0), (c = t), (o = e.apply(i, n)); } function y(e) { return (c = e), (s = setTimeout(S, t)), d ? b(e) : o; } function w(e) { var n = e - l; return void 0 === l || n >= t || n < 0 || (u && e - c >= i); } function S() { var e = f(); if (w(e)) return k(e); s = setTimeout( S, (function (e) { var n = t - (e - l); return u ? h(n, i - (e - c)) : n; })(e) ); } function k(e) { return (s = void 0), v && r ? b(e) : ((r = a = void 0), o); } function x() { var e = f(), n = w(e); if (((r = arguments), (a = this), (l = e), n)) { if (void 0 === s) return y(l); if (u) return (s = setTimeout(S, t)), b(l); } return void 0 === s && (s = setTimeout(S, t)), o; } return ( (t = g(t) || 0), m(n) && ((d = !!n.leading), (i = (u = "maxWait" in n) ? p(g(n.maxWait) || 0, t) : i), (v = "trailing" in n ? !!n.trailing : v)), (x.cancel = function () { void 0 !== s && clearTimeout(s), (c = 0), (r = l = a = s = void 0); }), (x.flush = function () { return void 0 === s ? o : k(f()); }), x ); }; }, 30534: (e, t, n) => { "use strict"; var r = n(47313), a = n(62224); function i(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var o = new Set(), s = {}; function l(e, t) { c(e, t), c(e + "Capture", t); } function c(e, t) { for (s[e] = t, e = 0; e < t.length; e++) o.add(t[e]); } var d = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), u = Object.prototype.hasOwnProperty, p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, h = {}, f = {}; function m(e, t, n, r, a, i, o) { (this.acceptsBooleans = 2 === t || 3 === t || 4 === t), (this.attributeName = r), (this.attributeNamespace = a), (this.mustUseProperty = n), (this.propertyName = e), (this.type = t), (this.sanitizeURL = i), (this.removeEmptyString = o); } var g = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (e) { g[e] = new m(e, 0, !1, e, null, !1, !1); }), [ ["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ].forEach(function (e) { var t = e[0]; g[t] = new m(t, 1, !1, e[1], null, !1, !1); }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (e) { g[e] = new m(e, 2, !1, e.toLowerCase(), null, !1, !1); }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (e) { g[e] = new m(e, 2, !1, e, null, !1, !1); }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (e) { g[e] = new m(e, 3, !1, e.toLowerCase(), null, !1, !1); }), ["checked", "multiple", "muted", "selected"].forEach(function (e) { g[e] = new m(e, 3, !0, e, null, !1, !1); }), ["capture", "download"].forEach(function (e) { g[e] = new m(e, 4, !1, e, null, !1, !1); }), ["cols", "rows", "size", "span"].forEach(function (e) { g[e] = new m(e, 6, !1, e, null, !1, !1); }), ["rowSpan", "start"].forEach(function (e) { g[e] = new m(e, 5, !1, e.toLowerCase(), null, !1, !1); }); var v = /[\-:]([a-z])/g; function b(e) { return e[1].toUpperCase(); } function y(e, t, n, r) { var a = g.hasOwnProperty(t) ? g[t] : null; (null !== a ? 0 !== a.type : r || !(2 < t.length) || ("o" !== t[0] && "O" !== t[0]) || ("n" !== t[1] && "N" !== t[1])) && ((function (e, t, n, r) { if ( null === t || "undefined" === typeof t || (function (e, t, n, r) { if (null !== n && 0 === n.type) return !1; switch (typeof t) { case "function": case "symbol": return !0; case "boolean": return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); default: return !1; } })(e, t, n, r) ) return !0; if (r) return !1; if (null !== n) switch (n.type) { case 3: return !t; case 4: return !1 === t; case 5: return isNaN(t); case 6: return isNaN(t) || 1 > t; } return !1; })(t, n, a, r) && (n = null), r || null === a ? (function (e) { return !!u.call(f, e) || (!u.call(h, e) && (p.test(e) ? (f[e] = !0) : ((h[e] = !0), !1))); })(t) && (null === n ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : a.mustUseProperty ? (e[a.propertyName] = null === n ? 3 !== a.type && "" : n) : ((t = a.attributeName), (r = a.attributeNamespace), null === n ? e.removeAttribute(t) : ((n = 3 === (a = a.type) || (4 === a && !0 === n) ? "" : "" + n), r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (e) { var t = e.replace(v, b); g[t] = new m(t, 1, !1, e, null, !1, !1); }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (e) { var t = e.replace(v, b); g[t] = new m(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); }), ["xml:base", "xml:lang", "xml:space"].forEach(function (e) { var t = e.replace(v, b); g[t] = new m(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); }), ["tabIndex", "crossOrigin"].forEach(function (e) { g[e] = new m(e, 1, !1, e.toLowerCase(), null, !1, !1); }), (g.xlinkHref = new m("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1)), ["src", "href", "action", "formAction"].forEach(function (e) { g[e] = new m(e, 1, !1, e.toLowerCase(), null, !0, !0); }); var w = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, S = Symbol.for("react.element"), k = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), I = Symbol.for("react.provider"), P = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"); Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode"); var z = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"), Symbol.for("react.cache"), Symbol.for("react.tracing_marker"); var L = Symbol.iterator; function M(e) { return null === e || "object" !== typeof e ? null : "function" === typeof (e = (L && e[L]) || e["@@iterator"]) ? e : null; } var F, D = Object.assign; function N(e) { if (void 0 === F) try { throw Error(); } catch (n) { var t = n.stack.trim().match(/\n( *(at )?)/); F = (t && t[1]) || ""; } return "\n" + F + e; } var j = !1; function O(e, t) { if (!e || j) return ""; j = !0; var n = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (t) if ( ((t = function () { throw Error(); }), Object.defineProperty(t.prototype, "props", { set: function () { throw Error(); }, }), "object" === typeof Reflect && Reflect.construct) ) { try { Reflect.construct(t, []); } catch (c) { var r = c; } Reflect.construct(e, [], t); } else { try { t.call(); } catch (c) { r = c; } e.call(t.prototype); } else { try { throw Error(); } catch (c) { r = c; } e(); } } catch (c) { if (c && r && "string" === typeof c.stack) { for (var a = c.stack.split("\n"), i = r.stack.split("\n"), o = a.length - 1, s = i.length - 1; 1 <= o && 0 <= s && a[o] !== i[s]; ) s--; for (; 1 <= o && 0 <= s; o--, s--) if (a[o] !== i[s]) { if (1 !== o || 1 !== s) do { if ((o--, 0 > --s || a[o] !== i[s])) { var l = "\n" + a[o].replace(" at new ", " at "); return e.displayName && l.includes("") && (l = l.replace("", e.displayName)), l; } } while (1 <= o && 0 <= s); break; } } } finally { (j = !1), (Error.prepareStackTrace = n); } return (e = e ? e.displayName || e.name : "") ? N(e) : ""; } function B(e) { switch (e.tag) { case 5: return N(e.type); case 16: return N("Lazy"); case 13: return N("Suspense"); case 19: return N("SuspenseList"); case 0: case 2: case 15: return (e = O(e.type, !1)); case 11: return (e = O(e.type.render, !1)); case 1: return (e = O(e.type, !0)); default: return ""; } } function U(e) { if (null == e) return null; if ("function" === typeof e) return e.displayName || e.name || null; if ("string" === typeof e) return e; switch (e) { case x: return "Fragment"; case k: return "Portal"; case E: return "Profiler"; case C: return "StrictMode"; case T: return "Suspense"; case R: return "SuspenseList"; } if ("object" === typeof e) switch (e.$$typeof) { case P: return (e.displayName || "Context") + ".Consumer"; case I: return (e._context.displayName || "Context") + ".Provider"; case A: var t = e.render; return (e = e.displayName) || (e = "" !== (e = t.displayName || t.name || "") ? "ForwardRef(" + e + ")" : "ForwardRef"), e; case _: return null !== (t = e.displayName || null) ? t : U(e.type) || "Memo"; case Z: (t = e._payload), (e = e._init); try { return U(e(t)); } catch (n) {} } return null; } function $(e) { var t = e.type; switch (e.tag) { case 24: return "Cache"; case 9: return (t.displayName || "Context") + ".Consumer"; case 10: return (t._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return (e = (e = t.render).displayName || e.name || ""), t.displayName || ("" !== e ? "ForwardRef(" + e + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: return t; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return U(t); case 8: return t === C ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if ("function" === typeof t) return t.displayName || t.name || null; if ("string" === typeof t) return t; } return null; } function G(e) { switch (typeof e) { case "boolean": case "number": case "string": case "undefined": case "object": return e; default: return ""; } } function V(e) { var t = e.type; return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t); } function q(e) { e._valueTracker || (e._valueTracker = (function (e) { var t = V(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; if (!e.hasOwnProperty(t) && "undefined" !== typeof n && "function" === typeof n.get && "function" === typeof n.set) { var a = n.get, i = n.set; return ( Object.defineProperty(e, t, { configurable: !0, get: function () { return a.call(this); }, set: function (e) { (r = "" + e), i.call(this, e); }, }), Object.defineProperty(e, t, { enumerable: n.enumerable }), { getValue: function () { return r; }, setValue: function (e) { r = "" + e; }, stopTracking: function () { (e._valueTracker = null), delete e[t]; }, } ); } })(e)); } function W(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var n = t.getValue(), r = ""; return e && (r = V(e) ? (e.checked ? "true" : "false") : e.value), (e = r) !== n && (t.setValue(e), !0); } function H(e) { if ("undefined" === typeof (e = e || ("undefined" !== typeof document ? document : void 0))) return null; try { return e.activeElement || e.body; } catch (t) { return e.body; } } function K(e, t) { var n = t.checked; return D({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != n ? n : e._wrapperState.initialChecked }); } function Y(e, t) { var n = null == t.defaultValue ? "" : t.defaultValue, r = null != t.checked ? t.checked : t.defaultChecked; (n = G(null != t.value ? t.value : n)), (e._wrapperState = { initialChecked: r, initialValue: n, controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value }); } function Q(e, t) { null != (t = t.checked) && y(e, "checked", t, !1); } function X(e, t) { Q(e, t); var n = G(t.value), r = t.type; if (null != n) "number" === r ? ((0 === n && "" === e.value) || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); else if ("submit" === r || "reset" === r) return void e.removeAttribute("value"); t.hasOwnProperty("value") ? ee(e, t.type, n) : t.hasOwnProperty("defaultValue") && ee(e, t.type, G(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked); } function J(e, t, n) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { var r = t.type; if (!(("submit" !== r && "reset" !== r) || (void 0 !== t.value && null !== t.value))) return; (t = "" + e._wrapperState.initialValue), n || t === e.value || (e.value = t), (e.defaultValue = t); } "" !== (n = e.name) && (e.name = ""), (e.defaultChecked = !!e._wrapperState.initialChecked), "" !== n && (e.name = n); } function ee(e, t, n) { ("number" === t && H(e.ownerDocument) === e) || (null == n ? (e.defaultValue = "" + e._wrapperState.initialValue) : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); } var te = Array.isArray; function ne(e, t, n, r) { if (((e = e.options), t)) { t = {}; for (var a = 0; a < n.length; a++) t["$" + n[a]] = !0; for (n = 0; n < e.length; n++) (a = t.hasOwnProperty("$" + e[n].value)), e[n].selected !== a && (e[n].selected = a), a && r && (e[n].defaultSelected = !0); } else { for (n = "" + G(n), t = null, a = 0; a < e.length; a++) { if (e[a].value === n) return (e[a].selected = !0), void (r && (e[a].defaultSelected = !0)); null !== t || e[a].disabled || (t = e[a]); } null !== t && (t.selected = !0); } } function re(e, t) { if (null != t.dangerouslySetInnerHTML) throw Error(i(91)); return D({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }); } function ae(e, t) { var n = t.value; if (null == n) { if (((n = t.children), (t = t.defaultValue), null != n)) { if (null != t) throw Error(i(92)); if (te(n)) { if (1 < n.length) throw Error(i(93)); n = n[0]; } t = n; } null == t && (t = ""), (n = t); } e._wrapperState = { initialValue: G(n) }; } function ie(e, t) { var n = G(t.value), r = G(t.defaultValue); null != n && ((n = "" + n) !== e.value && (e.value = n), null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)), null != r && (e.defaultValue = "" + r); } function oe(e) { var t = e.textContent; t === e._wrapperState.initialValue && "" !== t && null !== t && (e.value = t); } function se(e) { switch (e) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } function le(e, t) { return null == e || "http://www.w3.org/1999/xhtml" === e ? se(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e; } var ce, de, ue = ((de = function (e, t) { if ("http://www.w3.org/2000/svg" !== e.namespaceURI || "innerHTML" in e) e.innerHTML = t; else { for ((ce = ce || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = ce.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild); } }), "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (e, t, n, r) { MSApp.execUnsafeLocalFunction(function () { return de(e, t); }); } : de); function pe(e, t) { if (t) { var n = e.firstChild; if (n && n === e.lastChild && 3 === n.nodeType) return void (n.nodeValue = t); } e.textContent = t; } var he = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, fe = ["Webkit", "ms", "Moz", "O"]; function me(e, t, n) { return null == t || "boolean" === typeof t || "" === t ? "" : n || "number" !== typeof t || 0 === t || (he.hasOwnProperty(e) && he[e]) ? ("" + t).trim() : t + "px"; } function ge(e, t) { for (var n in ((e = e.style), t)) if (t.hasOwnProperty(n)) { var r = 0 === n.indexOf("--"), a = me(n, t[n], r); "float" === n && (n = "cssFloat"), r ? e.setProperty(n, a) : (e[n] = a); } } Object.keys(he).forEach(function (e) { fe.forEach(function (t) { (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (he[t] = he[e]); }); }); var ve = D({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function be(e, t) { if (t) { if (ve[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) throw Error(i(137, e)); if (null != t.dangerouslySetInnerHTML) { if (null != t.children) throw Error(i(60)); if ("object" !== typeof t.dangerouslySetInnerHTML || !("__html" in t.dangerouslySetInnerHTML)) throw Error(i(61)); } if (null != t.style && "object" !== typeof t.style) throw Error(i(62)); } } function ye(e, t) { if (-1 === e.indexOf("-")) return "string" === typeof t.is; switch (e) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } var we = null; function Se(e) { return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e; } var ke = null, xe = null, Ce = null; function Ee(e) { if ((e = ya(e))) { if ("function" !== typeof ke) throw Error(i(280)); var t = e.stateNode; t && ((t = Sa(t)), ke(e.stateNode, e.type, t)); } } function Ie(e) { xe ? (Ce ? Ce.push(e) : (Ce = [e])) : (xe = e); } function Pe() { if (xe) { var e = xe, t = Ce; if (((Ce = xe = null), Ee(e), t)) for (e = 0; e < t.length; e++) Ee(t[e]); } } function Ae(e, t) { return e(t); } function Te() {} var Re = !1; function _e(e, t, n) { if (Re) return e(t, n); Re = !0; try { return Ae(e, t, n); } finally { (Re = !1), (null !== xe || null !== Ce) && (Te(), Pe()); } } function Ze(e, t) { var n = e.stateNode; if (null === n) return null; var r = Sa(n); if (null === r) return null; n = r[t]; e: switch (t) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (r = !r.disabled) || (r = !("button" === (e = e.type) || "input" === e || "select" === e || "textarea" === e)), (e = !r); break e; default: e = !1; } if (e) return null; if (n && "function" !== typeof n) throw Error(i(231, t, typeof n)); return n; } var ze = !1; if (d) try { var Le = {}; Object.defineProperty(Le, "passive", { get: function () { ze = !0; }, }), window.addEventListener("test", Le, Le), window.removeEventListener("test", Le, Le); } catch (de) { ze = !1; } function Me(e, t, n, r, a, i, o, s, l) { var c = Array.prototype.slice.call(arguments, 3); try { t.apply(n, c); } catch (d) { this.onError(d); } } var Fe = !1, De = null, Ne = !1, je = null, Oe = { onError: function (e) { (Fe = !0), (De = e); }, }; function Be(e, t, n, r, a, i, o, s, l) { (Fe = !1), (De = null), Me.apply(Oe, arguments); } function Ue(e) { var t = e, n = e; if (e.alternate) for (; t.return; ) t = t.return; else { e = t; do { 0 !== (4098 & (t = e).flags) && (n = t.return), (e = t.return); } while (e); } return 3 === t.tag ? n : null; } function $e(e) { if (13 === e.tag) { var t = e.memoizedState; if ((null === t && null !== (e = e.alternate) && (t = e.memoizedState), null !== t)) return t.dehydrated; } return null; } function Ge(e) { if (Ue(e) !== e) throw Error(i(188)); } function Ve(e) { return null !== (e = (function (e) { var t = e.alternate; if (!t) { if (null === (t = Ue(e))) throw Error(i(188)); return t !== e ? null : e; } for (var n = e, r = t; ; ) { var a = n.return; if (null === a) break; var o = a.alternate; if (null === o) { if (null !== (r = a.return)) { n = r; continue; } break; } if (a.child === o.child) { for (o = a.child; o; ) { if (o === n) return Ge(a), e; if (o === r) return Ge(a), t; o = o.sibling; } throw Error(i(188)); } if (n.return !== r.return) (n = a), (r = o); else { for (var s = !1, l = a.child; l; ) { if (l === n) { (s = !0), (n = a), (r = o); break; } if (l === r) { (s = !0), (r = a), (n = o); break; } l = l.sibling; } if (!s) { for (l = o.child; l; ) { if (l === n) { (s = !0), (n = o), (r = a); break; } if (l === r) { (s = !0), (r = o), (n = a); break; } l = l.sibling; } if (!s) throw Error(i(189)); } } if (n.alternate !== r) throw Error(i(190)); } if (3 !== n.tag) throw Error(i(188)); return n.stateNode.current === n ? e : t; })(e)) ? qe(e) : null; } function qe(e) { if (5 === e.tag || 6 === e.tag) return e; for (e = e.child; null !== e; ) { var t = qe(e); if (null !== t) return t; e = e.sibling; } return null; } var We = a.unstable_scheduleCallback, He = a.unstable_cancelCallback, Ke = a.unstable_shouldYield, Ye = a.unstable_requestPaint, Qe = a.unstable_now, Xe = a.unstable_getCurrentPriorityLevel, Je = a.unstable_ImmediatePriority, et = a.unstable_UserBlockingPriority, tt = a.unstable_NormalPriority, nt = a.unstable_LowPriority, rt = a.unstable_IdlePriority, at = null, it = null; var ot = Math.clz32 ? Math.clz32 : function (e) { return 0 === (e >>>= 0) ? 32 : (31 - ((st(e) / lt) | 0)) | 0; }, st = Math.log, lt = Math.LN2; var ct = 64, dt = 4194304; function ut(e) { switch (e & -e) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return 4194240 & e; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return 130023424 & e; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return e; } } function pt(e, t) { var n = e.pendingLanes; if (0 === n) return 0; var r = 0, a = e.suspendedLanes, i = e.pingedLanes, o = 268435455 & n; if (0 !== o) { var s = o & ~a; 0 !== s ? (r = ut(s)) : 0 !== (i &= o) && (r = ut(i)); } else 0 !== (o = n & ~a) ? (r = ut(o)) : 0 !== i && (r = ut(i)); if (0 === r) return 0; if (0 !== t && t !== r && 0 === (t & a) && ((a = r & -r) >= (i = t & -t) || (16 === a && 0 !== (4194240 & i)))) return t; if ((0 !== (4 & r) && (r |= 16 & n), 0 !== (t = e.entangledLanes))) for (e = e.entanglements, t &= r; 0 < t; ) (a = 1 << (n = 31 - ot(t))), (r |= e[n]), (t &= ~a); return r; } function ht(e, t) { switch (e) { case 1: case 2: case 4: return t + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t + 5e3; default: return -1; } } function ft(e) { return 0 !== (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0; } function mt() { var e = ct; return 0 === (4194240 & (ct <<= 1)) && (ct = 64), e; } function gt(e) { for (var t = [], n = 0; 31 > n; n++) t.push(e); return t; } function vt(e, t, n) { (e.pendingLanes |= t), 536870912 !== t && ((e.suspendedLanes = 0), (e.pingedLanes = 0)), ((e = e.eventTimes)[(t = 31 - ot(t))] = n); } function bt(e, t) { var n = (e.entangledLanes |= t); for (e = e.entanglements; n; ) { var r = 31 - ot(n), a = 1 << r; (a & t) | (e[r] & t) && (e[r] |= t), (n &= ~a); } } var yt = 0; function wt(e) { return 1 < (e &= -e) ? (4 < e ? (0 !== (268435455 & e) ? 16 : 536870912) : 4) : 1; } var St, kt, xt, Ct, Et, It = !1, Pt = [], At = null, Tt = null, Rt = null, _t = new Map(), Zt = new Map(), zt = [], Lt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); function Mt(e, t) { switch (e) { case "focusin": case "focusout": At = null; break; case "dragenter": case "dragleave": Tt = null; break; case "mouseover": case "mouseout": Rt = null; break; case "pointerover": case "pointerout": _t.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": Zt.delete(t.pointerId); } } function Ft(e, t, n, r, a, i) { return null === e || e.nativeEvent !== i ? ((e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: i, targetContainers: [a] }), null !== t && null !== (t = ya(t)) && kt(t), e) : ((e.eventSystemFlags |= r), (t = e.targetContainers), null !== a && -1 === t.indexOf(a) && t.push(a), e); } function Dt(e) { var t = ba(e.target); if (null !== t) { var n = Ue(t); if (null !== n) if (13 === (t = n.tag)) { if (null !== (t = $e(n))) return ( (e.blockedOn = t), void Et(e.priority, function () { xt(n); }) ); } else if (3 === t && n.stateNode.current.memoizedState.isDehydrated) return void (e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null); } e.blockedOn = null; } function Nt(e) { if (null !== e.blockedOn) return !1; for (var t = e.targetContainers; 0 < t.length; ) { var n = Kt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (null !== n) return null !== (t = ya(n)) && kt(t), (e.blockedOn = n), !1; var r = new (n = e.nativeEvent).constructor(n.type, n); (we = r), n.target.dispatchEvent(r), (we = null), t.shift(); } return !0; } function jt(e, t, n) { Nt(e) && n.delete(t); } function Ot() { (It = !1), null !== At && Nt(At) && (At = null), null !== Tt && Nt(Tt) && (Tt = null), null !== Rt && Nt(Rt) && (Rt = null), _t.forEach(jt), Zt.forEach(jt); } function Bt(e, t) { e.blockedOn === t && ((e.blockedOn = null), It || ((It = !0), a.unstable_scheduleCallback(a.unstable_NormalPriority, Ot))); } function Ut(e) { function t(t) { return Bt(t, e); } if (0 < Pt.length) { Bt(Pt[0], e); for (var n = 1; n < Pt.length; n++) { var r = Pt[n]; r.blockedOn === e && (r.blockedOn = null); } } for (null !== At && Bt(At, e), null !== Tt && Bt(Tt, e), null !== Rt && Bt(Rt, e), _t.forEach(t), Zt.forEach(t), n = 0; n < zt.length; n++) (r = zt[n]).blockedOn === e && (r.blockedOn = null); for (; 0 < zt.length && null === (n = zt[0]).blockedOn; ) Dt(n), null === n.blockedOn && zt.shift(); } var $t = w.ReactCurrentBatchConfig, Gt = !0; function Vt(e, t, n, r) { var a = yt, i = $t.transition; $t.transition = null; try { (yt = 1), Wt(e, t, n, r); } finally { (yt = a), ($t.transition = i); } } function qt(e, t, n, r) { var a = yt, i = $t.transition; $t.transition = null; try { (yt = 4), Wt(e, t, n, r); } finally { (yt = a), ($t.transition = i); } } function Wt(e, t, n, r) { if (Gt) { var a = Kt(e, t, n, r); if (null === a) Gr(e, t, r, Ht, n), Mt(e, r); else if ( (function (e, t, n, r, a) { switch (t) { case "focusin": return (At = Ft(At, e, t, n, r, a)), !0; case "dragenter": return (Tt = Ft(Tt, e, t, n, r, a)), !0; case "mouseover": return (Rt = Ft(Rt, e, t, n, r, a)), !0; case "pointerover": var i = a.pointerId; return _t.set(i, Ft(_t.get(i) || null, e, t, n, r, a)), !0; case "gotpointercapture": return (i = a.pointerId), Zt.set(i, Ft(Zt.get(i) || null, e, t, n, r, a)), !0; } return !1; })(a, e, t, n, r) ) r.stopPropagation(); else if ((Mt(e, r), 4 & t && -1 < Lt.indexOf(e))) { for (; null !== a; ) { var i = ya(a); if ((null !== i && St(i), null === (i = Kt(e, t, n, r)) && Gr(e, t, r, Ht, n), i === a)) break; a = i; } null !== a && r.stopPropagation(); } else Gr(e, t, r, null, n); } } var Ht = null; function Kt(e, t, n, r) { if (((Ht = null), null !== (e = ba((e = Se(r)))))) if (null === (t = Ue(e))) e = null; else if (13 === (n = t.tag)) { if (null !== (e = $e(t))) return e; e = null; } else if (3 === n) { if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; e = null; } else t !== e && (e = null); return (Ht = e), null; } function Yt(e) { switch (e) { case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch (Xe()) { case Je: return 1; case et: return 4; case tt: case nt: return 16; case rt: return 536870912; default: return 16; } default: return 16; } } var Qt = null, Xt = null, Jt = null; function en() { if (Jt) return Jt; var e, t, n = Xt, r = n.length, a = "value" in Qt ? Qt.value : Qt.textContent, i = a.length; for (e = 0; e < r && n[e] === a[e]; e++); var o = r - e; for (t = 1; t <= o && n[r - t] === a[i - t]; t++); return (Jt = a.slice(e, 1 < t ? 1 - t : void 0)); } function tn(e) { var t = e.keyCode; return "charCode" in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : (e = t), 10 === e && (e = 13), 32 <= e || 13 === e ? e : 0; } function nn() { return !0; } function rn() { return !1; } function an(e) { function t(t, n, r, a, i) { for (var o in ((this._reactName = t), (this._targetInst = r), (this.type = n), (this.nativeEvent = a), (this.target = i), (this.currentTarget = null), e)) e.hasOwnProperty(o) && ((t = e[o]), (this[o] = t ? t(a) : a[o])); return (this.isDefaultPrevented = (null != a.defaultPrevented ? a.defaultPrevented : !1 === a.returnValue) ? nn : rn), (this.isPropagationStopped = rn), this; } return ( D(t.prototype, { preventDefault: function () { this.defaultPrevented = !0; var e = this.nativeEvent; e && (e.preventDefault ? e.preventDefault() : "unknown" !== typeof e.returnValue && (e.returnValue = !1), (this.isDefaultPrevented = nn)); }, stopPropagation: function () { var e = this.nativeEvent; e && (e.stopPropagation ? e.stopPropagation() : "unknown" !== typeof e.cancelBubble && (e.cancelBubble = !0), (this.isPropagationStopped = nn)); }, persist: function () {}, isPersistent: nn, }), t ); } var on, sn, ln, cn = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (e) { return e.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0, }, dn = an(cn), un = D({}, cn, { view: 0, detail: 0 }), pn = an(un), hn = D({}, un, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: En, button: 0, buttons: 0, relatedTarget: function (e) { return void 0 === e.relatedTarget ? (e.fromElement === e.srcElement ? e.toElement : e.fromElement) : e.relatedTarget; }, movementX: function (e) { return "movementX" in e ? e.movementX : (e !== ln && (ln && "mousemove" === e.type ? ((on = e.screenX - ln.screenX), (sn = e.screenY - ln.screenY)) : (sn = on = 0), (ln = e)), on); }, movementY: function (e) { return "movementY" in e ? e.movementY : sn; }, }), fn = an(hn), mn = an(D({}, hn, { dataTransfer: 0 })), gn = an(D({}, un, { relatedTarget: 0 })), vn = an(D({}, cn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), bn = D({}, cn, { clipboardData: function (e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData; }, }), yn = an(bn), wn = an(D({}, cn, { data: 0 })), Sn = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, kn = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, xn = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Cn(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : !!(e = xn[e]) && !!t[e]; } function En() { return Cn; } var In = D({}, un, { key: function (e) { if (e.key) { var t = Sn[e.key] || e.key; if ("Unidentified" !== t) return t; } return "keypress" === e.type ? (13 === (e = tn(e)) ? "Enter" : String.fromCharCode(e)) : "keydown" === e.type || "keyup" === e.type ? kn[e.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: En, charCode: function (e) { return "keypress" === e.type ? tn(e) : 0; }, keyCode: function (e) { return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0; }, which: function (e) { return "keypress" === e.type ? tn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0; }, }), Pn = an(In), An = an(D({}, hn, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 })), Tn = an(D({}, un, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: En })), Rn = an(D({}, cn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), _n = D({}, hn, { deltaX: function (e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; }, deltaY: function (e) { return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; }, deltaZ: 0, deltaMode: 0, }), Zn = an(_n), zn = [9, 13, 27, 32], Ln = d && "CompositionEvent" in window, Mn = null; d && "documentMode" in document && (Mn = document.documentMode); var Fn = d && "TextEvent" in window && !Mn, Dn = d && (!Ln || (Mn && 8 < Mn && 11 >= Mn)), Nn = String.fromCharCode(32), jn = !1; function On(e, t) { switch (e) { case "keyup": return -1 !== zn.indexOf(t.keyCode); case "keydown": return 229 !== t.keyCode; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } function Bn(e) { return "object" === typeof (e = e.detail) && "data" in e ? e.data : null; } var Un = !1; var $n = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function Gn(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return "input" === t ? !!$n[e.type] : "textarea" === t; } function Vn(e, t, n, r) { Ie(r), 0 < (t = qr(t, "onChange")).length && ((n = new dn("onChange", "change", null, n, r)), e.push({ event: n, listeners: t })); } var qn = null, Wn = null; function Hn(e) { Nr(e, 0); } function Kn(e) { if (W(wa(e))) return e; } function Yn(e, t) { if ("change" === e) return t; } var Qn = !1; if (d) { var Xn; if (d) { var Jn = "oninput" in document; if (!Jn) { var er = document.createElement("div"); er.setAttribute("oninput", "return;"), (Jn = "function" === typeof er.oninput); } Xn = Jn; } else Xn = !1; Qn = Xn && (!document.documentMode || 9 < document.documentMode); } function tr() { qn && (qn.detachEvent("onpropertychange", nr), (Wn = qn = null)); } function nr(e) { if ("value" === e.propertyName && Kn(Wn)) { var t = []; Vn(t, Wn, e, Se(e)), _e(Hn, t); } } function rr(e, t, n) { "focusin" === e ? (tr(), (Wn = n), (qn = t).attachEvent("onpropertychange", nr)) : "focusout" === e && tr(); } function ar(e) { if ("selectionchange" === e || "keyup" === e || "keydown" === e) return Kn(Wn); } function ir(e, t) { if ("click" === e) return Kn(t); } function or(e, t) { if ("input" === e || "change" === e) return Kn(t); } var sr = "function" === typeof Object.is ? Object.is : function (e, t) { return (e === t && (0 !== e || 1 / e === 1 / t)) || (e !== e && t !== t); }; function lr(e, t) { if (sr(e, t)) return !0; if ("object" !== typeof e || null === e || "object" !== typeof t || null === t) return !1; var n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; for (r = 0; r < n.length; r++) { var a = n[r]; if (!u.call(t, a) || !sr(e[a], t[a])) return !1; } return !0; } function cr(e) { for (; e && e.firstChild; ) e = e.firstChild; return e; } function dr(e, t) { var n, r = cr(e); for (e = 0; r; ) { if (3 === r.nodeType) { if (((n = e + r.textContent.length), e <= t && n >= t)) return { node: r, offset: t - e }; e = n; } e: { for (; r; ) { if (r.nextSibling) { r = r.nextSibling; break e; } r = r.parentNode; } r = void 0; } r = cr(r); } } function ur(e, t) { return !(!e || !t) && (e === t || ((!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? ur(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t))))); } function pr() { for (var e = window, t = H(); t instanceof e.HTMLIFrameElement; ) { try { var n = "string" === typeof t.contentWindow.location.href; } catch (r) { n = !1; } if (!n) break; t = H((e = t.contentWindow).document); } return t; } function hr(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (("input" === t && ("text" === e.type || "search" === e.type || "tel" === e.type || "url" === e.type || "password" === e.type)) || "textarea" === t || "true" === e.contentEditable); } function fr(e) { var t = pr(), n = e.focusedElem, r = e.selectionRange; if (t !== n && n && n.ownerDocument && ur(n.ownerDocument.documentElement, n)) { if (null !== r && hr(n)) if (((t = r.start), void 0 === (e = r.end) && (e = t), "selectionStart" in n)) (n.selectionStart = t), (n.selectionEnd = Math.min(e, n.value.length)); else if ((e = ((t = n.ownerDocument || document) && t.defaultView) || window).getSelection) { e = e.getSelection(); var a = n.textContent.length, i = Math.min(r.start, a); (r = void 0 === r.end ? i : Math.min(r.end, a)), !e.extend && i > r && ((a = r), (r = i), (i = a)), (a = dr(n, i)); var o = dr(n, r); a && o && (1 !== e.rangeCount || e.anchorNode !== a.node || e.anchorOffset !== a.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(a.node, a.offset), e.removeAllRanges(), i > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))); } for (t = [], e = n; (e = e.parentNode); ) 1 === e.nodeType && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); for ("function" === typeof n.focus && n.focus(), n = 0; n < t.length; n++) ((e = t[n]).element.scrollLeft = e.left), (e.element.scrollTop = e.top); } } var mr = d && "documentMode" in document && 11 >= document.documentMode, gr = null, vr = null, br = null, yr = !1; function wr(e, t, n) { var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument; yr || null == gr || gr !== H(r) || ("selectionStart" in (r = gr) && hr(r) ? (r = { start: r.selectionStart, end: r.selectionEnd }) : (r = { anchorNode: (r = ((r.ownerDocument && r.ownerDocument.defaultView) || window).getSelection()).anchorNode, anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset }), (br && lr(br, r)) || ((br = r), 0 < (r = qr(vr, "onSelect")).length && ((t = new dn("onSelect", "select", null, t, n)), e.push({ event: t, listeners: r }), (t.target = gr)))); } function Sr(e, t) { var n = {}; return (n[e.toLowerCase()] = t.toLowerCase()), (n["Webkit" + e] = "webkit" + t), (n["Moz" + e] = "moz" + t), n; } var kr = { animationend: Sr("Animation", "AnimationEnd"), animationiteration: Sr("Animation", "AnimationIteration"), animationstart: Sr("Animation", "AnimationStart"), transitionend: Sr("Transition", "TransitionEnd") }, xr = {}, Cr = {}; function Er(e) { if (xr[e]) return xr[e]; if (!kr[e]) return e; var t, n = kr[e]; for (t in n) if (n.hasOwnProperty(t) && t in Cr) return (xr[e] = n[t]); return e; } d && ((Cr = document.createElement("div").style), "AnimationEvent" in window || (delete kr.animationend.animation, delete kr.animationiteration.animation, delete kr.animationstart.animation), "TransitionEvent" in window || delete kr.transitionend.transition); var Ir = Er("animationend"), Pr = Er("animationiteration"), Ar = Er("animationstart"), Tr = Er("transitionend"), Rr = new Map(), _r = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); function Zr(e, t) { Rr.set(e, t), l(t, [e]); } for (var zr = 0; zr < _r.length; zr++) { var Lr = _r[zr]; Zr(Lr.toLowerCase(), "on" + (Lr[0].toUpperCase() + Lr.slice(1))); } Zr(Ir, "onAnimationEnd"), Zr(Pr, "onAnimationIteration"), Zr(Ar, "onAnimationStart"), Zr("dblclick", "onDoubleClick"), Zr("focusin", "onFocus"), Zr("focusout", "onBlur"), Zr(Tr, "onTransitionEnd"), c("onMouseEnter", ["mouseout", "mouseover"]), c("onMouseLeave", ["mouseout", "mouseover"]), c("onPointerEnter", ["pointerout", "pointerover"]), c("onPointerLeave", ["pointerout", "pointerover"]), l("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), l("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), l("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), l("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); var Mr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Fr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr)); function Dr(e, t, n) { var r = e.type || "unknown-event"; (e.currentTarget = n), (function (e, t, n, r, a, o, s, l, c) { if ((Be.apply(this, arguments), Fe)) { if (!Fe) throw Error(i(198)); var d = De; (Fe = !1), (De = null), Ne || ((Ne = !0), (je = d)); } })(r, t, void 0, e), (e.currentTarget = null); } function Nr(e, t) { t = 0 !== (4 & t); for (var n = 0; n < e.length; n++) { var r = e[n], a = r.event; r = r.listeners; e: { var i = void 0; if (t) for (var o = r.length - 1; 0 <= o; o--) { var s = r[o], l = s.instance, c = s.currentTarget; if (((s = s.listener), l !== i && a.isPropagationStopped())) break e; Dr(a, s, c), (i = l); } else for (o = 0; o < r.length; o++) { if (((l = (s = r[o]).instance), (c = s.currentTarget), (s = s.listener), l !== i && a.isPropagationStopped())) break e; Dr(a, s, c), (i = l); } } } if (Ne) throw ((e = je), (Ne = !1), (je = null), e); } function jr(e, t) { var n = t[ma]; void 0 === n && (n = t[ma] = new Set()); var r = e + "__bubble"; n.has(r) || ($r(t, e, 2, !1), n.add(r)); } function Or(e, t, n) { var r = 0; t && (r |= 4), $r(n, e, r, t); } var Br = "_reactListening" + Math.random().toString(36).slice(2); function Ur(e) { if (!e[Br]) { (e[Br] = !0), o.forEach(function (t) { "selectionchange" !== t && (Fr.has(t) || Or(t, !1, e), Or(t, !0, e)); }); var t = 9 === e.nodeType ? e : e.ownerDocument; null === t || t[Br] || ((t[Br] = !0), Or("selectionchange", !1, t)); } } function $r(e, t, n, r) { switch (Yt(t)) { case 1: var a = Vt; break; case 4: a = qt; break; default: a = Wt; } (n = a.bind(null, t, n, e)), (a = void 0), !ze || ("touchstart" !== t && "touchmove" !== t && "wheel" !== t) || (a = !0), r ? (void 0 !== a ? e.addEventListener(t, n, { capture: !0, passive: a }) : e.addEventListener(t, n, !0)) : void 0 !== a ? e.addEventListener(t, n, { passive: a }) : e.addEventListener(t, n, !1); } function Gr(e, t, n, r, a) { var i = r; if (0 === (1 & t) && 0 === (2 & t) && null !== r) e: for (;;) { if (null === r) return; var o = r.tag; if (3 === o || 4 === o) { var s = r.stateNode.containerInfo; if (s === a || (8 === s.nodeType && s.parentNode === a)) break; if (4 === o) for (o = r.return; null !== o; ) { var l = o.tag; if ((3 === l || 4 === l) && ((l = o.stateNode.containerInfo) === a || (8 === l.nodeType && l.parentNode === a))) return; o = o.return; } for (; null !== s; ) { if (null === (o = ba(s))) return; if (5 === (l = o.tag) || 6 === l) { r = i = o; continue e; } s = s.parentNode; } } r = r.return; } _e(function () { var r = i, a = Se(n), o = []; e: { var s = Rr.get(e); if (void 0 !== s) { var l = dn, c = e; switch (e) { case "keypress": if (0 === tn(n)) break e; case "keydown": case "keyup": l = Pn; break; case "focusin": (c = "focus"), (l = gn); break; case "focusout": (c = "blur"), (l = gn); break; case "beforeblur": case "afterblur": l = gn; break; case "click": if (2 === n.button) break e; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": l = fn; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": l = mn; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": l = Tn; break; case Ir: case Pr: case Ar: l = vn; break; case Tr: l = Rn; break; case "scroll": l = pn; break; case "wheel": l = Zn; break; case "copy": case "cut": case "paste": l = yn; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": l = An; } var d = 0 !== (4 & t), u = !d && "scroll" === e, p = d ? (null !== s ? s + "Capture" : null) : s; d = []; for (var h, f = r; null !== f; ) { var m = (h = f).stateNode; if ((5 === h.tag && null !== m && ((h = m), null !== p && null != (m = Ze(f, p)) && d.push(Vr(f, m, h))), u)) break; f = f.return; } 0 < d.length && ((s = new l(s, c, null, n, a)), o.push({ event: s, listeners: d })); } } if (0 === (7 & t)) { if (((l = "mouseout" === e || "pointerout" === e), (!(s = "mouseover" === e || "pointerover" === e) || n === we || !(c = n.relatedTarget || n.fromElement) || (!ba(c) && !c[fa])) && (l || s) && ((s = a.window === a ? a : (s = a.ownerDocument) ? s.defaultView || s.parentWindow : window), l ? ((l = r), null !== (c = (c = n.relatedTarget || n.toElement) ? ba(c) : null) && (c !== (u = Ue(c)) || (5 !== c.tag && 6 !== c.tag)) && (c = null)) : ((l = null), (c = r)), l !== c))) { if (((d = fn), (m = "onMouseLeave"), (p = "onMouseEnter"), (f = "mouse"), ("pointerout" !== e && "pointerover" !== e) || ((d = An), (m = "onPointerLeave"), (p = "onPointerEnter"), (f = "pointer")), (u = null == l ? s : wa(l)), (h = null == c ? s : wa(c)), ((s = new d(m, f + "leave", l, n, a)).target = u), (s.relatedTarget = h), (m = null), ba(a) === r && (((d = new d(p, f + "enter", c, n, a)).target = h), (d.relatedTarget = u), (m = d)), (u = m), l && c)) e: { for (p = c, f = 0, h = d = l; h; h = Wr(h)) f++; for (h = 0, m = p; m; m = Wr(m)) h++; for (; 0 < f - h; ) (d = Wr(d)), f--; for (; 0 < h - f; ) (p = Wr(p)), h--; for (; f--; ) { if (d === p || (null !== p && d === p.alternate)) break e; (d = Wr(d)), (p = Wr(p)); } d = null; } else d = null; null !== l && Hr(o, s, l, d, !1), null !== c && null !== u && Hr(o, u, c, d, !0); } if ("select" === (l = (s = r ? wa(r) : window).nodeName && s.nodeName.toLowerCase()) || ("input" === l && "file" === s.type)) var g = Yn; else if (Gn(s)) if (Qn) g = or; else { g = ar; var v = rr; } else (l = s.nodeName) && "input" === l.toLowerCase() && ("checkbox" === s.type || "radio" === s.type) && (g = ir); switch ((g && (g = g(e, r)) ? Vn(o, g, n, a) : (v && v(e, s, r), "focusout" === e && (v = s._wrapperState) && v.controlled && "number" === s.type && ee(s, "number", s.value)), (v = r ? wa(r) : window), e)) { case "focusin": (Gn(v) || "true" === v.contentEditable) && ((gr = v), (vr = r), (br = null)); break; case "focusout": br = vr = gr = null; break; case "mousedown": yr = !0; break; case "contextmenu": case "mouseup": case "dragend": (yr = !1), wr(o, n, a); break; case "selectionchange": if (mr) break; case "keydown": case "keyup": wr(o, n, a); } var b; if (Ln) e: { switch (e) { case "compositionstart": var y = "onCompositionStart"; break e; case "compositionend": y = "onCompositionEnd"; break e; case "compositionupdate": y = "onCompositionUpdate"; break e; } y = void 0; } else Un ? On(e, n) && (y = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (y = "onCompositionStart"); y && (Dn && "ko" !== n.locale && (Un || "onCompositionStart" !== y ? "onCompositionEnd" === y && Un && (b = en()) : ((Xt = "value" in (Qt = a) ? Qt.value : Qt.textContent), (Un = !0))), 0 < (v = qr(r, y)).length && ((y = new wn(y, e, null, n, a)), o.push({ event: y, listeners: v }), b ? (y.data = b) : null !== (b = Bn(n)) && (y.data = b))), (b = Fn ? (function (e, t) { switch (e) { case "compositionend": return Bn(t); case "keypress": return 32 !== t.which ? null : ((jn = !0), Nn); case "textInput": return (e = t.data) === Nn && jn ? null : e; default: return null; } })(e, n) : (function (e, t) { if (Un) return "compositionend" === e || (!Ln && On(e, t)) ? ((e = en()), (Jt = Xt = Qt = null), (Un = !1), e) : null; switch (e) { case "paste": default: return null; case "keypress": if (!(t.ctrlKey || t.altKey || t.metaKey) || (t.ctrlKey && t.altKey)) { if (t.char && 1 < t.char.length) return t.char; if (t.which) return String.fromCharCode(t.which); } return null; case "compositionend": return Dn && "ko" !== t.locale ? null : t.data; } })(e, n)) && 0 < (r = qr(r, "onBeforeInput")).length && ((a = new wn("onBeforeInput", "beforeinput", null, n, a)), o.push({ event: a, listeners: r }), (a.data = b)); } Nr(o, t); }); } function Vr(e, t, n) { return { instance: e, listener: t, currentTarget: n }; } function qr(e, t) { for (var n = t + "Capture", r = []; null !== e; ) { var a = e, i = a.stateNode; 5 === a.tag && null !== i && ((a = i), null != (i = Ze(e, n)) && r.unshift(Vr(e, i, a)), null != (i = Ze(e, t)) && r.push(Vr(e, i, a))), (e = e.return); } return r; } function Wr(e) { if (null === e) return null; do { e = e.return; } while (e && 5 !== e.tag); return e || null; } function Hr(e, t, n, r, a) { for (var i = t._reactName, o = []; null !== n && n !== r; ) { var s = n, l = s.alternate, c = s.stateNode; if (null !== l && l === r) break; 5 === s.tag && null !== c && ((s = c), a ? null != (l = Ze(n, i)) && o.unshift(Vr(n, l, s)) : a || (null != (l = Ze(n, i)) && o.push(Vr(n, l, s)))), (n = n.return); } 0 !== o.length && e.push({ event: t, listeners: o }); } var Kr = /\r\n?/g, Yr = /\u0000|\uFFFD/g; function Qr(e) { return ("string" === typeof e ? e : "" + e).replace(Kr, "\n").replace(Yr, ""); } function Xr(e, t, n) { if (((t = Qr(t)), Qr(e) !== t && n)) throw Error(i(425)); } function Jr() {} var ea = null, ta = null; function na(e, t) { return "textarea" === e || "noscript" === e || "string" === typeof t.children || "number" === typeof t.children || ("object" === typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && null != t.dangerouslySetInnerHTML.__html); } var ra = "function" === typeof setTimeout ? setTimeout : void 0, aa = "function" === typeof clearTimeout ? clearTimeout : void 0, ia = "function" === typeof Promise ? Promise : void 0, oa = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof ia ? function (e) { return ia.resolve(null).then(e).catch(sa); } : ra; function sa(e) { setTimeout(function () { throw e; }); } function la(e, t) { var n = t, r = 0; do { var a = n.nextSibling; if ((e.removeChild(n), a && 8 === a.nodeType)) if ("/$" === (n = a.data)) { if (0 === r) return e.removeChild(a), void Ut(t); r--; } else ("$" !== n && "$?" !== n && "$!" !== n) || r++; n = a; } while (n); Ut(t); } function ca(e) { for (; null != e; e = e.nextSibling) { var t = e.nodeType; if (1 === t || 3 === t) break; if (8 === t) { if ("$" === (t = e.data) || "$!" === t || "$?" === t) break; if ("/$" === t) return null; } } return e; } function da(e) { e = e.previousSibling; for (var t = 0; e; ) { if (8 === e.nodeType) { var n = e.data; if ("$" === n || "$!" === n || "$?" === n) { if (0 === t) return e; t--; } else "/$" === n && t++; } e = e.previousSibling; } return null; } var ua = Math.random().toString(36).slice(2), pa = "__reactFiber$" + ua, ha = "__reactProps$" + ua, fa = "__reactContainer$" + ua, ma = "__reactEvents$" + ua, ga = "__reactListeners$" + ua, va = "__reactHandles$" + ua; function ba(e) { var t = e[pa]; if (t) return t; for (var n = e.parentNode; n; ) { if ((t = n[fa] || n[pa])) { if (((n = t.alternate), null !== t.child || (null !== n && null !== n.child))) for (e = da(e); null !== e; ) { if ((n = e[pa])) return n; e = da(e); } return t; } n = (e = n).parentNode; } return null; } function ya(e) { return !(e = e[pa] || e[fa]) || (5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag) ? null : e; } function wa(e) { if (5 === e.tag || 6 === e.tag) return e.stateNode; throw Error(i(33)); } function Sa(e) { return e[ha] || null; } var ka = [], xa = -1; function Ca(e) { return { current: e }; } function Ea(e) { 0 > xa || ((e.current = ka[xa]), (ka[xa] = null), xa--); } function Ia(e, t) { xa++, (ka[xa] = e.current), (e.current = t); } var Pa = {}, Aa = Ca(Pa), Ta = Ca(!1), Ra = Pa; function _a(e, t) { var n = e.type.contextTypes; if (!n) return Pa; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var a, i = {}; for (a in n) i[a] = t[a]; return r && (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), (e.__reactInternalMemoizedMaskedChildContext = i)), i; } function Za(e) { return null !== (e = e.childContextTypes) && void 0 !== e; } function za() { Ea(Ta), Ea(Aa); } function La(e, t, n) { if (Aa.current !== Pa) throw Error(i(168)); Ia(Aa, t), Ia(Ta, n); } function Ma(e, t, n) { var r = e.stateNode; if (((t = t.childContextTypes), "function" !== typeof r.getChildContext)) return n; for (var a in (r = r.getChildContext())) if (!(a in t)) throw Error(i(108, $(e) || "Unknown", a)); return D({}, n, r); } function Fa(e) { return (e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || Pa), (Ra = Aa.current), Ia(Aa, e), Ia(Ta, Ta.current), !0; } function Da(e, t, n) { var r = e.stateNode; if (!r) throw Error(i(169)); n ? ((e = Ma(e, t, Ra)), (r.__reactInternalMemoizedMergedChildContext = e), Ea(Ta), Ea(Aa), Ia(Aa, e)) : Ea(Ta), Ia(Ta, n); } var Na = null, ja = !1, Oa = !1; function Ba(e) { null === Na ? (Na = [e]) : Na.push(e); } function Ua() { if (!Oa && null !== Na) { Oa = !0; var e = 0, t = yt; try { var n = Na; for (yt = 1; e < n.length; e++) { var r = n[e]; do { r = r(!0); } while (null !== r); } (Na = null), (ja = !1); } catch (a) { throw (null !== Na && (Na = Na.slice(e + 1)), We(Je, Ua), a); } finally { (yt = t), (Oa = !1); } } return null; } var $a = [], Ga = 0, Va = null, qa = 0, Wa = [], Ha = 0, Ka = null, Ya = 1, Qa = ""; function Xa(e, t) { ($a[Ga++] = qa), ($a[Ga++] = Va), (Va = e), (qa = t); } function Ja(e, t, n) { (Wa[Ha++] = Ya), (Wa[Ha++] = Qa), (Wa[Ha++] = Ka), (Ka = e); var r = Ya; e = Qa; var a = 32 - ot(r) - 1; (r &= ~(1 << a)), (n += 1); var i = 32 - ot(t) + a; if (30 < i) { var o = a - (a % 5); (i = (r & ((1 << o) - 1)).toString(32)), (r >>= o), (a -= o), (Ya = (1 << (32 - ot(t) + a)) | (n << a) | r), (Qa = i + e); } else (Ya = (1 << i) | (n << a) | r), (Qa = e); } function ei(e) { null !== e.return && (Xa(e, 1), Ja(e, 1, 0)); } function ti(e) { for (; e === Va; ) (Va = $a[--Ga]), ($a[Ga] = null), (qa = $a[--Ga]), ($a[Ga] = null); for (; e === Ka; ) (Ka = Wa[--Ha]), (Wa[Ha] = null), (Qa = Wa[--Ha]), (Wa[Ha] = null), (Ya = Wa[--Ha]), (Wa[Ha] = null); } var ni = null, ri = null, ai = !1, ii = null; function oi(e, t) { var n = _c(5, null, null, 0); (n.elementType = "DELETED"), (n.stateNode = t), (n.return = e), null === (t = e.deletions) ? ((e.deletions = [n]), (e.flags |= 16)) : t.push(n); } function si(e, t) { switch (e.tag) { case 5: var n = e.type; return null !== (t = 1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && ((e.stateNode = t), (ni = e), (ri = ca(t.firstChild)), !0); case 6: return null !== (t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) && ((e.stateNode = t), (ni = e), (ri = null), !0); case 13: return null !== (t = 8 !== t.nodeType ? null : t) && ((n = null !== Ka ? { id: Ya, overflow: Qa } : null), (e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }), ((n = _c(18, null, null, 0)).stateNode = t), (n.return = e), (e.child = n), (ni = e), (ri = null), !0); default: return !1; } } function li(e) { return 0 !== (1 & e.mode) && 0 === (128 & e.flags); } function ci(e) { if (ai) { var t = ri; if (t) { var n = t; if (!si(e, t)) { if (li(e)) throw Error(i(418)); t = ca(n.nextSibling); var r = ni; t && si(e, t) ? oi(r, n) : ((e.flags = (-4097 & e.flags) | 2), (ai = !1), (ni = e)); } } else { if (li(e)) throw Error(i(418)); (e.flags = (-4097 & e.flags) | 2), (ai = !1), (ni = e); } } } function di(e) { for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag; ) e = e.return; ni = e; } function ui(e) { if (e !== ni) return !1; if (!ai) return di(e), (ai = !0), !1; var t; if (((t = 3 !== e.tag) && !(t = 5 !== e.tag) && (t = "head" !== (t = e.type) && "body" !== t && !na(e.type, e.memoizedProps)), t && (t = ri))) { if (li(e)) throw (pi(), Error(i(418))); for (; t; ) oi(e, t), (t = ca(t.nextSibling)); } if ((di(e), 13 === e.tag)) { if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(i(317)); e: { for (e = e.nextSibling, t = 0; e; ) { if (8 === e.nodeType) { var n = e.data; if ("/$" === n) { if (0 === t) { ri = ca(e.nextSibling); break e; } t--; } else ("$" !== n && "$!" !== n && "$?" !== n) || t++; } e = e.nextSibling; } ri = null; } } else ri = ni ? ca(e.stateNode.nextSibling) : null; return !0; } function pi() { for (var e = ri; e; ) e = ca(e.nextSibling); } function hi() { (ri = ni = null), (ai = !1); } function fi(e) { null === ii ? (ii = [e]) : ii.push(e); } var mi = w.ReactCurrentBatchConfig; function gi(e, t) { if (e && e.defaultProps) { for (var n in ((t = D({}, t)), (e = e.defaultProps))) void 0 === t[n] && (t[n] = e[n]); return t; } return t; } var vi = Ca(null), bi = null, yi = null, wi = null; function Si() { wi = yi = bi = null; } function ki(e) { var t = vi.current; Ea(vi), (e._currentValue = t); } function xi(e, t, n) { for (; null !== e; ) { var r = e.alternate; if (((e.childLanes & t) !== t ? ((e.childLanes |= t), null !== r && (r.childLanes |= t)) : null !== r && (r.childLanes & t) !== t && (r.childLanes |= t), e === n)) break; e = e.return; } } function Ci(e, t) { (bi = e), (wi = yi = null), null !== (e = e.dependencies) && null !== e.firstContext && (0 !== (e.lanes & t) && (ws = !0), (e.firstContext = null)); } function Ei(e) { var t = e._currentValue; if (wi !== e) if (((e = { context: e, memoizedValue: t, next: null }), null === yi)) { if (null === bi) throw Error(i(308)); (yi = e), (bi.dependencies = { lanes: 0, firstContext: e }); } else yi = yi.next = e; return t; } var Ii = null; function Pi(e) { null === Ii ? (Ii = [e]) : Ii.push(e); } function Ai(e, t, n, r) { var a = t.interleaved; return null === a ? ((n.next = n), Pi(t)) : ((n.next = a.next), (a.next = n)), (t.interleaved = n), Ti(e, r); } function Ti(e, t) { e.lanes |= t; var n = e.alternate; for (null !== n && (n.lanes |= t), n = e, e = e.return; null !== e; ) (e.childLanes |= t), null !== (n = e.alternate) && (n.childLanes |= t), (n = e), (e = e.return); return 3 === n.tag ? n.stateNode : null; } var Ri = !1; function _i(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; } function Zi(e, t) { (e = e.updateQueue), t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects }); } function zi(e, t) { return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null }; } function Li(e, t, n) { var r = e.updateQueue; if (null === r) return null; if (((r = r.shared), 0 !== (2 & Al))) { var a = r.pending; return null === a ? (t.next = t) : ((t.next = a.next), (a.next = t)), (r.pending = t), Ti(e, n); } return null === (a = r.interleaved) ? ((t.next = t), Pi(r)) : ((t.next = a.next), (a.next = t)), (r.interleaved = t), Ti(e, n); } function Mi(e, t, n) { if (null !== (t = t.updateQueue) && ((t = t.shared), 0 !== (4194240 & n))) { var r = t.lanes; (n |= r &= e.pendingLanes), (t.lanes = n), bt(e, n); } } function Fi(e, t) { var n = e.updateQueue, r = e.alternate; if (null !== r && n === (r = r.updateQueue)) { var a = null, i = null; if (null !== (n = n.firstBaseUpdate)) { do { var o = { eventTime: n.eventTime, lane: n.lane, tag: n.tag, payload: n.payload, callback: n.callback, next: null }; null === i ? (a = i = o) : (i = i.next = o), (n = n.next); } while (null !== n); null === i ? (a = i = t) : (i = i.next = t); } else a = i = t; return (n = { baseState: r.baseState, firstBaseUpdate: a, lastBaseUpdate: i, shared: r.shared, effects: r.effects }), void (e.updateQueue = n); } null === (e = n.lastBaseUpdate) ? (n.firstBaseUpdate = t) : (e.next = t), (n.lastBaseUpdate = t); } function Di(e, t, n, r) { var a = e.updateQueue; Ri = !1; var i = a.firstBaseUpdate, o = a.lastBaseUpdate, s = a.shared.pending; if (null !== s) { a.shared.pending = null; var l = s, c = l.next; (l.next = null), null === o ? (i = c) : (o.next = c), (o = l); var d = e.alternate; null !== d && (s = (d = d.updateQueue).lastBaseUpdate) !== o && (null === s ? (d.firstBaseUpdate = c) : (s.next = c), (d.lastBaseUpdate = l)); } if (null !== i) { var u = a.baseState; for (o = 0, d = c = l = null, s = i; ; ) { var p = s.lane, h = s.eventTime; if ((r & p) === p) { null !== d && (d = d.next = { eventTime: h, lane: 0, tag: s.tag, payload: s.payload, callback: s.callback, next: null }); e: { var f = e, m = s; switch (((p = t), (h = n), m.tag)) { case 1: if ("function" === typeof (f = m.payload)) { u = f.call(h, u, p); break e; } u = f; break e; case 3: f.flags = (-65537 & f.flags) | 128; case 0: if (null === (p = "function" === typeof (f = m.payload) ? f.call(h, u, p) : f) || void 0 === p) break e; u = D({}, u, p); break e; case 2: Ri = !0; } } null !== s.callback && 0 !== s.lane && ((e.flags |= 64), null === (p = a.effects) ? (a.effects = [s]) : p.push(s)); } else (h = { eventTime: h, lane: p, tag: s.tag, payload: s.payload, callback: s.callback, next: null }), null === d ? ((c = d = h), (l = u)) : (d = d.next = h), (o |= p); if (null === (s = s.next)) { if (null === (s = a.shared.pending)) break; (s = (p = s).next), (p.next = null), (a.lastBaseUpdate = p), (a.shared.pending = null); } } if ((null === d && (l = u), (a.baseState = l), (a.firstBaseUpdate = c), (a.lastBaseUpdate = d), null !== (t = a.shared.interleaved))) { a = t; do { (o |= a.lane), (a = a.next); } while (a !== t); } else null === i && (a.shared.lanes = 0); (Fl |= o), (e.lanes = o), (e.memoizedState = u); } } function Ni(e, t, n) { if (((e = t.effects), (t.effects = null), null !== e)) for (t = 0; t < e.length; t++) { var r = e[t], a = r.callback; if (null !== a) { if (((r.callback = null), (r = n), "function" !== typeof a)) throw Error(i(191, a)); a.call(r); } } } var ji = new r.Component().refs; function Oi(e, t, n, r) { (n = null === (n = n(r, (t = e.memoizedState))) || void 0 === n ? t : D({}, t, n)), (e.memoizedState = n), 0 === e.lanes && (e.updateQueue.baseState = n); } var Bi = { isMounted: function (e) { return !!(e = e._reactInternals) && Ue(e) === e; }, enqueueSetState: function (e, t, n) { e = e._reactInternals; var r = ec(), a = tc(e), i = zi(r, a); (i.payload = t), void 0 !== n && null !== n && (i.callback = n), null !== (t = Li(e, i, a)) && (nc(t, e, a, r), Mi(t, e, a)); }, enqueueReplaceState: function (e, t, n) { e = e._reactInternals; var r = ec(), a = tc(e), i = zi(r, a); (i.tag = 1), (i.payload = t), void 0 !== n && null !== n && (i.callback = n), null !== (t = Li(e, i, a)) && (nc(t, e, a, r), Mi(t, e, a)); }, enqueueForceUpdate: function (e, t) { e = e._reactInternals; var n = ec(), r = tc(e), a = zi(n, r); (a.tag = 2), void 0 !== t && null !== t && (a.callback = t), null !== (t = Li(e, a, r)) && (nc(t, e, r, n), Mi(t, e, r)); }, }; function Ui(e, t, n, r, a, i, o) { return "function" === typeof (e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(r, i, o) : !t.prototype || !t.prototype.isPureReactComponent || !lr(n, r) || !lr(a, i); } function $i(e, t, n) { var r = !1, a = Pa, i = t.contextType; return "object" === typeof i && null !== i ? (i = Ei(i)) : ((a = Za(t) ? Ra : Aa.current), (i = (r = null !== (r = t.contextTypes) && void 0 !== r) ? _a(e, a) : Pa)), (t = new t(n, i)), (e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null), (t.updater = Bi), (e.stateNode = t), (t._reactInternals = e), r && (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a), (e.__reactInternalMemoizedMaskedChildContext = i)), t; } function Gi(e, t, n, r) { (e = t.state), "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Bi.enqueueReplaceState(t, t.state, null); } function Vi(e, t, n, r) { var a = e.stateNode; (a.props = n), (a.state = e.memoizedState), (a.refs = ji), _i(e); var i = t.contextType; "object" === typeof i && null !== i ? (a.context = Ei(i)) : ((i = Za(t) ? Ra : Aa.current), (a.context = _a(e, i))), (a.state = e.memoizedState), "function" === typeof (i = t.getDerivedStateFromProps) && (Oi(e, t, i, n), (a.state = e.memoizedState)), "function" === typeof t.getDerivedStateFromProps || "function" === typeof a.getSnapshotBeforeUpdate || ("function" !== typeof a.UNSAFE_componentWillMount && "function" !== typeof a.componentWillMount) || ((t = a.state), "function" === typeof a.componentWillMount && a.componentWillMount(), "function" === typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount(), t !== a.state && Bi.enqueueReplaceState(a, a.state, null), Di(e, n, a, r), (a.state = e.memoizedState)), "function" === typeof a.componentDidMount && (e.flags |= 4194308); } function qi(e, t, n) { if (null !== (e = n.ref) && "function" !== typeof e && "object" !== typeof e) { if (n._owner) { if ((n = n._owner)) { if (1 !== n.tag) throw Error(i(309)); var r = n.stateNode; } if (!r) throw Error(i(147, e)); var a = r, o = "" + e; return null !== t && null !== t.ref && "function" === typeof t.ref && t.ref._stringRef === o ? t.ref : ((t = function (e) { var t = a.refs; t === ji && (t = a.refs = {}), null === e ? delete t[o] : (t[o] = e); }), (t._stringRef = o), t); } if ("string" !== typeof e) throw Error(i(284)); if (!n._owner) throw Error(i(290, e)); } return e; } function Wi(e, t) { throw ((e = Object.prototype.toString.call(t)), Error(i(31, "[object Object]" === e ? "object with keys {" + Object.keys(t).join(", ") + "}" : e))); } function Hi(e) { return (0, e._init)(e._payload); } function Ki(e) { function t(t, n) { if (e) { var r = t.deletions; null === r ? ((t.deletions = [n]), (t.flags |= 16)) : r.push(n); } } function n(n, r) { if (!e) return null; for (; null !== r; ) t(n, r), (r = r.sibling); return null; } function r(e, t) { for (e = new Map(); null !== t; ) null !== t.key ? e.set(t.key, t) : e.set(t.index, t), (t = t.sibling); return e; } function a(e, t) { return ((e = zc(e, t)).index = 0), (e.sibling = null), e; } function o(t, n, r) { return (t.index = r), e ? (null !== (r = t.alternate) ? ((r = r.index) < n ? ((t.flags |= 2), n) : r) : ((t.flags |= 2), n)) : ((t.flags |= 1048576), n); } function s(t) { return e && null === t.alternate && (t.flags |= 2), t; } function l(e, t, n, r) { return null === t || 6 !== t.tag ? (((t = Dc(n, e.mode, r)).return = e), t) : (((t = a(t, n)).return = e), t); } function c(e, t, n, r) { var i = n.type; return i === x ? u(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === i || ("object" === typeof i && null !== i && i.$$typeof === Z && Hi(i) === t.type)) ? (((r = a(t, n.props)).ref = qi(e, t, n)), (r.return = e), r) : (((r = Lc(n.type, n.key, n.props, null, e.mode, r)).ref = qi(e, t, n)), (r.return = e), r); } function d(e, t, n, r) { return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (((t = Nc(n, e.mode, r)).return = e), t) : (((t = a(t, n.children || [])).return = e), t); } function u(e, t, n, r, i) { return null === t || 7 !== t.tag ? (((t = Mc(n, e.mode, r, i)).return = e), t) : (((t = a(t, n)).return = e), t); } function p(e, t, n) { if (("string" === typeof t && "" !== t) || "number" === typeof t) return ((t = Dc("" + t, e.mode, n)).return = e), t; if ("object" === typeof t && null !== t) { switch (t.$$typeof) { case S: return ((n = Lc(t.type, t.key, t.props, null, e.mode, n)).ref = qi(e, null, t)), (n.return = e), n; case k: return ((t = Nc(t, e.mode, n)).return = e), t; case Z: return p(e, (0, t._init)(t._payload), n); } if (te(t) || M(t)) return ((t = Mc(t, e.mode, n, null)).return = e), t; Wi(e, t); } return null; } function h(e, t, n, r) { var a = null !== t ? t.key : null; if (("string" === typeof n && "" !== n) || "number" === typeof n) return null !== a ? null : l(e, t, "" + n, r); if ("object" === typeof n && null !== n) { switch (n.$$typeof) { case S: return n.key === a ? c(e, t, n, r) : null; case k: return n.key === a ? d(e, t, n, r) : null; case Z: return h(e, t, (a = n._init)(n._payload), r); } if (te(n) || M(n)) return null !== a ? null : u(e, t, n, r, null); Wi(e, n); } return null; } function f(e, t, n, r, a) { if (("string" === typeof r && "" !== r) || "number" === typeof r) return l(t, (e = e.get(n) || null), "" + r, a); if ("object" === typeof r && null !== r) { switch (r.$$typeof) { case S: return c(t, (e = e.get(null === r.key ? n : r.key) || null), r, a); case k: return d(t, (e = e.get(null === r.key ? n : r.key) || null), r, a); case Z: return f(e, t, n, (0, r._init)(r._payload), a); } if (te(r) || M(r)) return u(t, (e = e.get(n) || null), r, a, null); Wi(t, r); } return null; } function m(a, i, s, l) { for (var c = null, d = null, u = i, m = (i = 0), g = null; null !== u && m < s.length; m++) { u.index > m ? ((g = u), (u = null)) : (g = u.sibling); var v = h(a, u, s[m], l); if (null === v) { null === u && (u = g); break; } e && u && null === v.alternate && t(a, u), (i = o(v, i, m)), null === d ? (c = v) : (d.sibling = v), (d = v), (u = g); } if (m === s.length) return n(a, u), ai && Xa(a, m), c; if (null === u) { for (; m < s.length; m++) null !== (u = p(a, s[m], l)) && ((i = o(u, i, m)), null === d ? (c = u) : (d.sibling = u), (d = u)); return ai && Xa(a, m), c; } for (u = r(a, u); m < s.length; m++) null !== (g = f(u, a, m, s[m], l)) && (e && null !== g.alternate && u.delete(null === g.key ? m : g.key), (i = o(g, i, m)), null === d ? (c = g) : (d.sibling = g), (d = g)); return ( e && u.forEach(function (e) { return t(a, e); }), ai && Xa(a, m), c ); } function g(a, s, l, c) { var d = M(l); if ("function" !== typeof d) throw Error(i(150)); if (null == (l = d.call(l))) throw Error(i(151)); for (var u = (d = null), m = s, g = (s = 0), v = null, b = l.next(); null !== m && !b.done; g++, b = l.next()) { m.index > g ? ((v = m), (m = null)) : (v = m.sibling); var y = h(a, m, b.value, c); if (null === y) { null === m && (m = v); break; } e && m && null === y.alternate && t(a, m), (s = o(y, s, g)), null === u ? (d = y) : (u.sibling = y), (u = y), (m = v); } if (b.done) return n(a, m), ai && Xa(a, g), d; if (null === m) { for (; !b.done; g++, b = l.next()) null !== (b = p(a, b.value, c)) && ((s = o(b, s, g)), null === u ? (d = b) : (u.sibling = b), (u = b)); return ai && Xa(a, g), d; } for (m = r(a, m); !b.done; g++, b = l.next()) null !== (b = f(m, a, g, b.value, c)) && (e && null !== b.alternate && m.delete(null === b.key ? g : b.key), (s = o(b, s, g)), null === u ? (d = b) : (u.sibling = b), (u = b)); return ( e && m.forEach(function (e) { return t(a, e); }), ai && Xa(a, g), d ); } return function e(r, i, o, l) { if (("object" === typeof o && null !== o && o.type === x && null === o.key && (o = o.props.children), "object" === typeof o && null !== o)) { switch (o.$$typeof) { case S: e: { for (var c = o.key, d = i; null !== d; ) { if (d.key === c) { if ((c = o.type) === x) { if (7 === d.tag) { n(r, d.sibling), ((i = a(d, o.props.children)).return = r), (r = i); break e; } } else if (d.elementType === c || ("object" === typeof c && null !== c && c.$$typeof === Z && Hi(c) === d.type)) { n(r, d.sibling), ((i = a(d, o.props)).ref = qi(r, d, o)), (i.return = r), (r = i); break e; } n(r, d); break; } t(r, d), (d = d.sibling); } o.type === x ? (((i = Mc(o.props.children, r.mode, l, o.key)).return = r), (r = i)) : (((l = Lc(o.type, o.key, o.props, null, r.mode, l)).ref = qi(r, i, o)), (l.return = r), (r = l)); } return s(r); case k: e: { for (d = o.key; null !== i; ) { if (i.key === d) { if (4 === i.tag && i.stateNode.containerInfo === o.containerInfo && i.stateNode.implementation === o.implementation) { n(r, i.sibling), ((i = a(i, o.children || [])).return = r), (r = i); break e; } n(r, i); break; } t(r, i), (i = i.sibling); } ((i = Nc(o, r.mode, l)).return = r), (r = i); } return s(r); case Z: return e(r, i, (d = o._init)(o._payload), l); } if (te(o)) return m(r, i, o, l); if (M(o)) return g(r, i, o, l); Wi(r, o); } return ("string" === typeof o && "" !== o) || "number" === typeof o ? ((o = "" + o), null !== i && 6 === i.tag ? (n(r, i.sibling), ((i = a(i, o)).return = r), (r = i)) : (n(r, i), ((i = Dc(o, r.mode, l)).return = r), (r = i)), s(r)) : n(r, i); }; } var Yi = Ki(!0), Qi = Ki(!1), Xi = {}, Ji = Ca(Xi), eo = Ca(Xi), to = Ca(Xi); function no(e) { if (e === Xi) throw Error(i(174)); return e; } function ro(e, t) { switch ((Ia(to, t), Ia(eo, e), Ia(Ji, Xi), (e = t.nodeType))) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : le(null, ""); break; default: t = le((t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), (e = e.tagName)); } Ea(Ji), Ia(Ji, t); } function ao() { Ea(Ji), Ea(eo), Ea(to); } function io(e) { no(to.current); var t = no(Ji.current), n = le(t, e.type); t !== n && (Ia(eo, e), Ia(Ji, n)); } function oo(e) { eo.current === e && (Ea(Ji), Ea(eo)); } var so = Ca(0); function lo(e) { for (var t = e; null !== t; ) { if (13 === t.tag) { var n = t.memoizedState; if (null !== n && (null === (n = n.dehydrated) || "$?" === n.data || "$!" === n.data)) return t; } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { if (0 !== (128 & t.flags)) return t; } else if (null !== t.child) { (t.child.return = t), (t = t.child); continue; } if (t === e) break; for (; null === t.sibling; ) { if (null === t.return || t.return === e) return null; t = t.return; } (t.sibling.return = t.return), (t = t.sibling); } return null; } var co = []; function uo() { for (var e = 0; e < co.length; e++) co[e]._workInProgressVersionPrimary = null; co.length = 0; } var po = w.ReactCurrentDispatcher, ho = w.ReactCurrentBatchConfig, fo = 0, mo = null, go = null, vo = null, bo = !1, yo = !1, wo = 0, So = 0; function ko() { throw Error(i(321)); } function xo(e, t) { if (null === t) return !1; for (var n = 0; n < t.length && n < e.length; n++) if (!sr(e[n], t[n])) return !1; return !0; } function Co(e, t, n, r, a, o) { if (((fo = o), (mo = t), (t.memoizedState = null), (t.updateQueue = null), (t.lanes = 0), (po.current = null === e || null === e.memoizedState ? ss : ls), (e = n(r, a)), yo)) { o = 0; do { if (((yo = !1), (wo = 0), 25 <= o)) throw Error(i(301)); (o += 1), (vo = go = null), (t.updateQueue = null), (po.current = cs), (e = n(r, a)); } while (yo); } if (((po.current = os), (t = null !== go && null !== go.next), (fo = 0), (vo = go = mo = null), (bo = !1), t)) throw Error(i(300)); return e; } function Eo() { var e = 0 !== wo; return (wo = 0), e; } function Io() { var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return null === vo ? (mo.memoizedState = vo = e) : (vo = vo.next = e), vo; } function Po() { if (null === go) { var e = mo.alternate; e = null !== e ? e.memoizedState : null; } else e = go.next; var t = null === vo ? mo.memoizedState : vo.next; if (null !== t) (vo = t), (go = e); else { if (null === e) throw Error(i(310)); (e = { memoizedState: (go = e).memoizedState, baseState: go.baseState, baseQueue: go.baseQueue, queue: go.queue, next: null }), null === vo ? (mo.memoizedState = vo = e) : (vo = vo.next = e); } return vo; } function Ao(e, t) { return "function" === typeof t ? t(e) : t; } function To(e) { var t = Po(), n = t.queue; if (null === n) throw Error(i(311)); n.lastRenderedReducer = e; var r = go, a = r.baseQueue, o = n.pending; if (null !== o) { if (null !== a) { var s = a.next; (a.next = o.next), (o.next = s); } (r.baseQueue = a = o), (n.pending = null); } if (null !== a) { (o = a.next), (r = r.baseState); var l = (s = null), c = null, d = o; do { var u = d.lane; if ((fo & u) === u) null !== c && (c = c.next = { lane: 0, action: d.action, hasEagerState: d.hasEagerState, eagerState: d.eagerState, next: null }), (r = d.hasEagerState ? d.eagerState : e(r, d.action)); else { var p = { lane: u, action: d.action, hasEagerState: d.hasEagerState, eagerState: d.eagerState, next: null }; null === c ? ((l = c = p), (s = r)) : (c = c.next = p), (mo.lanes |= u), (Fl |= u); } d = d.next; } while (null !== d && d !== o); null === c ? (s = r) : (c.next = l), sr(r, t.memoizedState) || (ws = !0), (t.memoizedState = r), (t.baseState = s), (t.baseQueue = c), (n.lastRenderedState = r); } if (null !== (e = n.interleaved)) { a = e; do { (o = a.lane), (mo.lanes |= o), (Fl |= o), (a = a.next); } while (a !== e); } else null === a && (n.lanes = 0); return [t.memoizedState, n.dispatch]; } function Ro(e) { var t = Po(), n = t.queue; if (null === n) throw Error(i(311)); n.lastRenderedReducer = e; var r = n.dispatch, a = n.pending, o = t.memoizedState; if (null !== a) { n.pending = null; var s = (a = a.next); do { (o = e(o, s.action)), (s = s.next); } while (s !== a); sr(o, t.memoizedState) || (ws = !0), (t.memoizedState = o), null === t.baseQueue && (t.baseState = o), (n.lastRenderedState = o); } return [o, r]; } function _o() {} function Zo(e, t) { var n = mo, r = Po(), a = t(), o = !sr(r.memoizedState, a); if ((o && ((r.memoizedState = a), (ws = !0)), (r = r.queue), Go(Mo.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || (null !== vo && 1 & vo.memoizedState.tag))) { if (((n.flags |= 2048), jo(9, Lo.bind(null, n, r, a, t), void 0, null), null === Tl)) throw Error(i(349)); 0 !== (30 & fo) || zo(n, t, a); } return a; } function zo(e, t, n) { (e.flags |= 16384), (e = { getSnapshot: t, value: n }), null === (t = mo.updateQueue) ? ((t = { lastEffect: null, stores: null }), (mo.updateQueue = t), (t.stores = [e])) : null === (n = t.stores) ? (t.stores = [e]) : n.push(e); } function Lo(e, t, n, r) { (t.value = n), (t.getSnapshot = r), Fo(t) && Do(e); } function Mo(e, t, n) { return n(function () { Fo(t) && Do(e); }); } function Fo(e) { var t = e.getSnapshot; e = e.value; try { var n = t(); return !sr(e, n); } catch (r) { return !0; } } function Do(e) { var t = Ti(e, 1); null !== t && nc(t, e, 1, -1); } function No(e) { var t = Io(); return "function" === typeof e && (e = e()), (t.memoizedState = t.baseState = e), (e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Ao, lastRenderedState: e }), (t.queue = e), (e = e.dispatch = ns.bind(null, mo, e)), [t.memoizedState, e]; } function jo(e, t, n, r) { return (e = { tag: e, create: t, destroy: n, deps: r, next: null }), null === (t = mo.updateQueue) ? ((t = { lastEffect: null, stores: null }), (mo.updateQueue = t), (t.lastEffect = e.next = e)) : null === (n = t.lastEffect) ? (t.lastEffect = e.next = e) : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e)), e; } function Oo() { return Po().memoizedState; } function Bo(e, t, n, r) { var a = Io(); (mo.flags |= e), (a.memoizedState = jo(1 | t, n, void 0, void 0 === r ? null : r)); } function Uo(e, t, n, r) { var a = Po(); r = void 0 === r ? null : r; var i = void 0; if (null !== go) { var o = go.memoizedState; if (((i = o.destroy), null !== r && xo(r, o.deps))) return void (a.memoizedState = jo(t, n, i, r)); } (mo.flags |= e), (a.memoizedState = jo(1 | t, n, i, r)); } function $o(e, t) { return Bo(8390656, 8, e, t); } function Go(e, t) { return Uo(2048, 8, e, t); } function Vo(e, t) { return Uo(4, 2, e, t); } function qo(e, t) { return Uo(4, 4, e, t); } function Wo(e, t) { return "function" === typeof t ? ((e = e()), t(e), function () { t(null); }) : null !== t && void 0 !== t ? ((e = e()), (t.current = e), function () { t.current = null; }) : void 0; } function Ho(e, t, n) { return (n = null !== n && void 0 !== n ? n.concat([e]) : null), Uo(4, 4, Wo.bind(null, t, e), n); } function Ko() {} function Yo(e, t) { var n = Po(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && xo(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e); } function Qo(e, t) { var n = Po(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && xo(t, r[1]) ? r[0] : ((e = e()), (n.memoizedState = [e, t]), e); } function Xo(e, t, n) { return 0 === (21 & fo) ? (e.baseState && ((e.baseState = !1), (ws = !0)), (e.memoizedState = n)) : (sr(n, t) || ((n = mt()), (mo.lanes |= n), (Fl |= n), (e.baseState = !0)), t); } function Jo(e, t) { var n = yt; (yt = 0 !== n && 4 > n ? n : 4), e(!0); var r = ho.transition; ho.transition = {}; try { e(!1), t(); } finally { (yt = n), (ho.transition = r); } } function es() { return Po().memoizedState; } function ts(e, t, n) { var r = tc(e); if (((n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }), rs(e))) as(t, n); else if (null !== (n = Ai(e, t, n, r))) { nc(n, e, r, ec()), is(n, t, r); } } function ns(e, t, n) { var r = tc(e), a = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }; if (rs(e)) as(t, a); else { var i = e.alternate; if (0 === e.lanes && (null === i || 0 === i.lanes) && null !== (i = t.lastRenderedReducer)) try { var o = t.lastRenderedState, s = i(o, n); if (((a.hasEagerState = !0), (a.eagerState = s), sr(s, o))) { var l = t.interleaved; return null === l ? ((a.next = a), Pi(t)) : ((a.next = l.next), (l.next = a)), void (t.interleaved = a); } } catch (c) {} null !== (n = Ai(e, t, a, r)) && (nc(n, e, r, (a = ec())), is(n, t, r)); } } function rs(e) { var t = e.alternate; return e === mo || (null !== t && t === mo); } function as(e, t) { yo = bo = !0; var n = e.pending; null === n ? (t.next = t) : ((t.next = n.next), (n.next = t)), (e.pending = t); } function is(e, t, n) { if (0 !== (4194240 & n)) { var r = t.lanes; (n |= r &= e.pendingLanes), (t.lanes = n), bt(e, n); } } var os = { readContext: Ei, useCallback: ko, useContext: ko, useEffect: ko, useImperativeHandle: ko, useInsertionEffect: ko, useLayoutEffect: ko, useMemo: ko, useReducer: ko, useRef: ko, useState: ko, useDebugValue: ko, useDeferredValue: ko, useTransition: ko, useMutableSource: ko, useSyncExternalStore: ko, useId: ko, unstable_isNewReconciler: !1 }, ss = { readContext: Ei, useCallback: function (e, t) { return (Io().memoizedState = [e, void 0 === t ? null : t]), e; }, useContext: Ei, useEffect: $o, useImperativeHandle: function (e, t, n) { return (n = null !== n && void 0 !== n ? n.concat([e]) : null), Bo(4194308, 4, Wo.bind(null, t, e), n); }, useLayoutEffect: function (e, t) { return Bo(4194308, 4, e, t); }, useInsertionEffect: function (e, t) { return Bo(4, 2, e, t); }, useMemo: function (e, t) { var n = Io(); return (t = void 0 === t ? null : t), (e = e()), (n.memoizedState = [e, t]), e; }, useReducer: function (e, t, n) { var r = Io(); return (t = void 0 !== n ? n(t) : t), (r.memoizedState = r.baseState = t), (e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }), (r.queue = e), (e = e.dispatch = ts.bind(null, mo, e)), [r.memoizedState, e]; }, useRef: function (e) { return (e = { current: e }), (Io().memoizedState = e); }, useState: No, useDebugValue: Ko, useDeferredValue: function (e) { return (Io().memoizedState = e); }, useTransition: function () { var e = No(!1), t = e[0]; return (e = Jo.bind(null, e[1])), (Io().memoizedState = e), [t, e]; }, useMutableSource: function () {}, useSyncExternalStore: function (e, t, n) { var r = mo, a = Io(); if (ai) { if (void 0 === n) throw Error(i(407)); n = n(); } else { if (((n = t()), null === Tl)) throw Error(i(349)); 0 !== (30 & fo) || zo(r, t, n); } a.memoizedState = n; var o = { value: n, getSnapshot: t }; return (a.queue = o), $o(Mo.bind(null, r, o, e), [e]), (r.flags |= 2048), jo(9, Lo.bind(null, r, o, n, t), void 0, null), n; }, useId: function () { var e = Io(), t = Tl.identifierPrefix; if (ai) { var n = Qa; (t = ":" + t + "R" + (n = (Ya & ~(1 << (32 - ot(Ya) - 1))).toString(32) + n)), 0 < (n = wo++) && (t += "H" + n.toString(32)), (t += ":"); } else t = ":" + t + "r" + (n = So++).toString(32) + ":"; return (e.memoizedState = t); }, unstable_isNewReconciler: !1, }, ls = { readContext: Ei, useCallback: Yo, useContext: Ei, useEffect: Go, useImperativeHandle: Ho, useInsertionEffect: Vo, useLayoutEffect: qo, useMemo: Qo, useReducer: To, useRef: Oo, useState: function () { return To(Ao); }, useDebugValue: Ko, useDeferredValue: function (e) { return Xo(Po(), go.memoizedState, e); }, useTransition: function () { return [To(Ao)[0], Po().memoizedState]; }, useMutableSource: _o, useSyncExternalStore: Zo, useId: es, unstable_isNewReconciler: !1, }, cs = { readContext: Ei, useCallback: Yo, useContext: Ei, useEffect: Go, useImperativeHandle: Ho, useInsertionEffect: Vo, useLayoutEffect: qo, useMemo: Qo, useReducer: Ro, useRef: Oo, useState: function () { return Ro(Ao); }, useDebugValue: Ko, useDeferredValue: function (e) { var t = Po(); return null === go ? (t.memoizedState = e) : Xo(t, go.memoizedState, e); }, useTransition: function () { return [Ro(Ao)[0], Po().memoizedState]; }, useMutableSource: _o, useSyncExternalStore: Zo, useId: es, unstable_isNewReconciler: !1, }; function ds(e, t) { try { var n = "", r = t; do { (n += B(r)), (r = r.return); } while (r); var a = n; } catch (i) { a = "\nError generating stack: " + i.message + "\n" + i.stack; } return { value: e, source: t, stack: a, digest: null }; } function us(e, t, n) { return { value: e, source: null, stack: null != n ? n : null, digest: null != t ? t : null }; } function ps(e, t) { try { console.error(t.value); } catch (n) { setTimeout(function () { throw n; }); } } var hs = "function" === typeof WeakMap ? WeakMap : Map; function fs(e, t, n) { ((n = zi(-1, n)).tag = 3), (n.payload = { element: null }); var r = t.value; return ( (n.callback = function () { Gl || ((Gl = !0), (Vl = r)), ps(0, t); }), n ); } function ms(e, t, n) { (n = zi(-1, n)).tag = 3; var r = e.type.getDerivedStateFromError; if ("function" === typeof r) { var a = t.value; (n.payload = function () { return r(a); }), (n.callback = function () { ps(0, t); }); } var i = e.stateNode; return ( null !== i && "function" === typeof i.componentDidCatch && (n.callback = function () { ps(0, t), "function" !== typeof r && (null === ql ? (ql = new Set([this])) : ql.add(this)); var e = t.stack; this.componentDidCatch(t.value, { componentStack: null !== e ? e : "" }); }), n ); } function gs(e, t, n) { var r = e.pingCache; if (null === r) { r = e.pingCache = new hs(); var a = new Set(); r.set(t, a); } else void 0 === (a = r.get(t)) && ((a = new Set()), r.set(t, a)); a.has(n) || (a.add(n), (e = Ec.bind(null, e, t, n)), t.then(e, e)); } function vs(e) { do { var t; if (((t = 13 === e.tag) && (t = null === (t = e.memoizedState) || null !== t.dehydrated), t)) return e; e = e.return; } while (null !== e); return null; } function bs(e, t, n, r, a) { return 0 === (1 & e.mode) ? (e === t ? (e.flags |= 65536) : ((e.flags |= 128), (n.flags |= 131072), (n.flags &= -52805), 1 === n.tag && (null === n.alternate ? (n.tag = 17) : (((t = zi(-1, 1)).tag = 2), Li(n, t, 1))), (n.lanes |= 1)), e) : ((e.flags |= 65536), (e.lanes = a), e); } var ys = w.ReactCurrentOwner, ws = !1; function Ss(e, t, n, r) { t.child = null === e ? Qi(t, null, n, r) : Yi(t, e.child, n, r); } function ks(e, t, n, r, a) { n = n.render; var i = t.ref; return Ci(t, a), (r = Co(e, t, n, r, i, a)), (n = Eo()), null === e || ws ? (ai && n && ei(t), (t.flags |= 1), Ss(e, t, r, a), t.child) : ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~a), Gs(e, t, a)); } function xs(e, t, n, r, a) { if (null === e) { var i = n.type; return "function" !== typeof i || Zc(i) || void 0 !== i.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? (((e = Lc(n.type, null, r, t, t.mode, a)).ref = t.ref), (e.return = t), (t.child = e)) : ((t.tag = 15), (t.type = i), Cs(e, t, i, r, a)); } if (((i = e.child), 0 === (e.lanes & a))) { var o = i.memoizedProps; if ((n = null !== (n = n.compare) ? n : lr)(o, r) && e.ref === t.ref) return Gs(e, t, a); } return (t.flags |= 1), ((e = zc(i, r)).ref = t.ref), (e.return = t), (t.child = e); } function Cs(e, t, n, r, a) { if (null !== e) { var i = e.memoizedProps; if (lr(i, r) && e.ref === t.ref) { if (((ws = !1), (t.pendingProps = r = i), 0 === (e.lanes & a))) return (t.lanes = e.lanes), Gs(e, t, a); 0 !== (131072 & e.flags) && (ws = !0); } } return Ps(e, t, n, r, a); } function Es(e, t, n) { var r = t.pendingProps, a = r.children, i = null !== e ? e.memoizedState : null; if ("hidden" === r.mode) if (0 === (1 & t.mode)) (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), Ia(zl, Zl), (Zl |= n); else { if (0 === (1073741824 & n)) return (e = null !== i ? i.baseLanes | n : n), (t.lanes = t.childLanes = 1073741824), (t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }), (t.updateQueue = null), Ia(zl, Zl), (Zl |= e), null; (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), (r = null !== i ? i.baseLanes : n), Ia(zl, Zl), (Zl |= r); } else null !== i ? ((r = i.baseLanes | n), (t.memoizedState = null)) : (r = n), Ia(zl, Zl), (Zl |= r); return Ss(e, t, a, n), t.child; } function Is(e, t) { var n = t.ref; ((null === e && null !== n) || (null !== e && e.ref !== n)) && ((t.flags |= 512), (t.flags |= 2097152)); } function Ps(e, t, n, r, a) { var i = Za(n) ? Ra : Aa.current; return (i = _a(t, i)), Ci(t, a), (n = Co(e, t, n, r, i, a)), (r = Eo()), null === e || ws ? (ai && r && ei(t), (t.flags |= 1), Ss(e, t, n, a), t.child) : ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~a), Gs(e, t, a)); } function As(e, t, n, r, a) { if (Za(n)) { var i = !0; Fa(t); } else i = !1; if ((Ci(t, a), null === t.stateNode)) $s(e, t), $i(t, n, r), Vi(t, n, r, a), (r = !0); else if (null === e) { var o = t.stateNode, s = t.memoizedProps; o.props = s; var l = o.context, c = n.contextType; "object" === typeof c && null !== c ? (c = Ei(c)) : (c = _a(t, (c = Za(n) ? Ra : Aa.current))); var d = n.getDerivedStateFromProps, u = "function" === typeof d || "function" === typeof o.getSnapshotBeforeUpdate; u || ("function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps) || ((s !== r || l !== c) && Gi(t, o, r, c)), (Ri = !1); var p = t.memoizedState; (o.state = p), Di(t, r, o, a), (l = t.memoizedState), s !== r || p !== l || Ta.current || Ri ? ("function" === typeof d && (Oi(t, n, d, r), (l = t.memoizedState)), (s = Ri || Ui(t, n, s, r, p, l, c)) ? (u || ("function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount) || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), (t.memoizedProps = r), (t.memoizedState = l)), (o.props = r), (o.state = l), (o.context = c), (r = s)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), (r = !1)); } else { (o = t.stateNode), Zi(e, t), (s = t.memoizedProps), (c = t.type === t.elementType ? s : gi(t.type, s)), (o.props = c), (u = t.pendingProps), (p = o.context), "object" === typeof (l = n.contextType) && null !== l ? (l = Ei(l)) : (l = _a(t, (l = Za(n) ? Ra : Aa.current))); var h = n.getDerivedStateFromProps; (d = "function" === typeof h || "function" === typeof o.getSnapshotBeforeUpdate) || ("function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps) || ((s !== u || p !== l) && Gi(t, o, r, l)), (Ri = !1), (p = t.memoizedState), (o.state = p), Di(t, r, o, a); var f = t.memoizedState; s !== u || p !== f || Ta.current || Ri ? ("function" === typeof h && (Oi(t, n, h, r), (f = t.memoizedState)), (c = Ri || Ui(t, n, c, r, p, f, l) || !1) ? (d || ("function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate) || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || (s === e.memoizedProps && p === e.memoizedState) || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || (s === e.memoizedProps && p === e.memoizedState) || (t.flags |= 1024), (t.memoizedProps = r), (t.memoizedState = f)), (o.props = r), (o.state = f), (o.context = l), (r = c)) : ("function" !== typeof o.componentDidUpdate || (s === e.memoizedProps && p === e.memoizedState) || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || (s === e.memoizedProps && p === e.memoizedState) || (t.flags |= 1024), (r = !1)); } return Ts(e, t, n, r, i, a); } function Ts(e, t, n, r, a, i) { Is(e, t); var o = 0 !== (128 & t.flags); if (!r && !o) return a && Da(t, n, !1), Gs(e, t, i); (r = t.stateNode), (ys.current = t); var s = o && "function" !== typeof n.getDerivedStateFromError ? null : r.render(); return (t.flags |= 1), null !== e && o ? ((t.child = Yi(t, e.child, null, i)), (t.child = Yi(t, null, s, i))) : Ss(e, t, s, i), (t.memoizedState = r.state), a && Da(t, n, !0), t.child; } function Rs(e) { var t = e.stateNode; t.pendingContext ? La(0, t.pendingContext, t.pendingContext !== t.context) : t.context && La(0, t.context, !1), ro(e, t.containerInfo); } function _s(e, t, n, r, a) { return hi(), fi(a), (t.flags |= 256), Ss(e, t, n, r), t.child; } var Zs, zs, Ls, Ms = { dehydrated: null, treeContext: null, retryLane: 0 }; function Fs(e) { return { baseLanes: e, cachePool: null, transitions: null }; } function Ds(e, t, n) { var r, a = t.pendingProps, o = so.current, s = !1, l = 0 !== (128 & t.flags); if (((r = l) || (r = (null === e || null !== e.memoizedState) && 0 !== (2 & o)), r ? ((s = !0), (t.flags &= -129)) : (null !== e && null === e.memoizedState) || (o |= 1), Ia(so, 1 & o), null === e)) return ci(t), null !== (e = t.memoizedState) && null !== (e = e.dehydrated) ? (0 === (1 & t.mode) ? (t.lanes = 1) : "$!" === e.data ? (t.lanes = 8) : (t.lanes = 1073741824), null) : ((l = a.children), (e = a.fallback), s ? ((a = t.mode), (s = t.child), (l = { mode: "hidden", children: l }), 0 === (1 & a) && null !== s ? ((s.childLanes = 0), (s.pendingProps = l)) : (s = Fc(l, a, 0, null)), (e = Mc(e, a, n, null)), (s.return = t), (e.return = t), (s.sibling = e), (t.child = s), (t.child.memoizedState = Fs(n)), (t.memoizedState = Ms), e) : Ns(t, l)); if (null !== (o = e.memoizedState) && null !== (r = o.dehydrated)) return (function (e, t, n, r, a, o, s) { if (n) return 256 & t.flags ? ((t.flags &= -257), js(e, t, s, (r = us(Error(i(422)))))) : null !== t.memoizedState ? ((t.child = e.child), (t.flags |= 128), null) : ((o = r.fallback), (a = t.mode), (r = Fc({ mode: "visible", children: r.children }, a, 0, null)), ((o = Mc(o, a, s, null)).flags |= 2), (r.return = t), (o.return = t), (r.sibling = o), (t.child = r), 0 !== (1 & t.mode) && Yi(t, e.child, null, s), (t.child.memoizedState = Fs(s)), (t.memoizedState = Ms), o); if (0 === (1 & t.mode)) return js(e, t, s, null); if ("$!" === a.data) { if ((r = a.nextSibling && a.nextSibling.dataset)) var l = r.dgst; return (r = l), js(e, t, s, (r = us((o = Error(i(419))), r, void 0))); } if (((l = 0 !== (s & e.childLanes)), ws || l)) { if (null !== (r = Tl)) { switch (s & -s) { case 4: a = 2; break; case 16: a = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: a = 32; break; case 536870912: a = 268435456; break; default: a = 0; } 0 !== (a = 0 !== (a & (r.suspendedLanes | s)) ? 0 : a) && a !== o.retryLane && ((o.retryLane = a), Ti(e, a), nc(r, e, a, -1)); } return mc(), js(e, t, s, (r = us(Error(i(421))))); } return "$?" === a.data ? ((t.flags |= 128), (t.child = e.child), (t = Pc.bind(null, e)), (a._reactRetry = t), null) : ((e = o.treeContext), (ri = ca(a.nextSibling)), (ni = t), (ai = !0), (ii = null), null !== e && ((Wa[Ha++] = Ya), (Wa[Ha++] = Qa), (Wa[Ha++] = Ka), (Ya = e.id), (Qa = e.overflow), (Ka = t)), ((t = Ns(t, r.children)).flags |= 4096), t); })(e, t, l, a, r, o, n); if (s) { (s = a.fallback), (l = t.mode), (r = (o = e.child).sibling); var c = { mode: "hidden", children: a.children }; return 0 === (1 & l) && t.child !== o ? (((a = t.child).childLanes = 0), (a.pendingProps = c), (t.deletions = null)) : ((a = zc(o, c)).subtreeFlags = 14680064 & o.subtreeFlags), null !== r ? (s = zc(r, s)) : ((s = Mc(s, l, n, null)).flags |= 2), (s.return = t), (a.return = t), (a.sibling = s), (t.child = a), (a = s), (s = t.child), (l = null === (l = e.child.memoizedState) ? Fs(n) : { baseLanes: l.baseLanes | n, cachePool: null, transitions: l.transitions }), (s.memoizedState = l), (s.childLanes = e.childLanes & ~n), (t.memoizedState = Ms), a; } return (e = (s = e.child).sibling), (a = zc(s, { mode: "visible", children: a.children })), 0 === (1 & t.mode) && (a.lanes = n), (a.return = t), (a.sibling = null), null !== e && (null === (n = t.deletions) ? ((t.deletions = [e]), (t.flags |= 16)) : n.push(e)), (t.child = a), (t.memoizedState = null), a; } function Ns(e, t) { return ((t = Fc({ mode: "visible", children: t }, e.mode, 0, null)).return = e), (e.child = t); } function js(e, t, n, r) { return null !== r && fi(r), Yi(t, e.child, null, n), ((e = Ns(t, t.pendingProps.children)).flags |= 2), (t.memoizedState = null), e; } function Os(e, t, n) { e.lanes |= t; var r = e.alternate; null !== r && (r.lanes |= t), xi(e.return, t, n); } function Bs(e, t, n, r, a) { var i = e.memoizedState; null === i ? (e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: a }) : ((i.isBackwards = t), (i.rendering = null), (i.renderingStartTime = 0), (i.last = r), (i.tail = n), (i.tailMode = a)); } function Us(e, t, n) { var r = t.pendingProps, a = r.revealOrder, i = r.tail; if ((Ss(e, t, r.children, n), 0 !== (2 & (r = so.current)))) (r = (1 & r) | 2), (t.flags |= 128); else { if (null !== e && 0 !== (128 & e.flags)) e: for (e = t.child; null !== e; ) { if (13 === e.tag) null !== e.memoizedState && Os(e, n, t); else if (19 === e.tag) Os(e, n, t); else if (null !== e.child) { (e.child.return = e), (e = e.child); continue; } if (e === t) break e; for (; null === e.sibling; ) { if (null === e.return || e.return === t) break e; e = e.return; } (e.sibling.return = e.return), (e = e.sibling); } r &= 1; } if ((Ia(so, r), 0 === (1 & t.mode))) t.memoizedState = null; else switch (a) { case "forwards": for (n = t.child, a = null; null !== n; ) null !== (e = n.alternate) && null === lo(e) && (a = n), (n = n.sibling); null === (n = a) ? ((a = t.child), (t.child = null)) : ((a = n.sibling), (n.sibling = null)), Bs(t, !1, a, n, i); break; case "backwards": for (n = null, a = t.child, t.child = null; null !== a; ) { if (null !== (e = a.alternate) && null === lo(e)) { t.child = a; break; } (e = a.sibling), (a.sibling = n), (n = a), (a = e); } Bs(t, !0, n, null, i); break; case "together": Bs(t, !1, null, null, void 0); break; default: t.memoizedState = null; } return t.child; } function $s(e, t) { 0 === (1 & t.mode) && null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)); } function Gs(e, t, n) { if ((null !== e && (t.dependencies = e.dependencies), (Fl |= t.lanes), 0 === (n & t.childLanes))) return null; if (null !== e && t.child !== e.child) throw Error(i(153)); if (null !== t.child) { for (n = zc((e = t.child), e.pendingProps), t.child = n, n.return = t; null !== e.sibling; ) (e = e.sibling), ((n = n.sibling = zc(e, e.pendingProps)).return = t); n.sibling = null; } return t.child; } function Vs(e, t) { if (!ai) switch (e.tailMode) { case "hidden": t = e.tail; for (var n = null; null !== t; ) null !== t.alternate && (n = t), (t = t.sibling); null === n ? (e.tail = null) : (n.sibling = null); break; case "collapsed": n = e.tail; for (var r = null; null !== n; ) null !== n.alternate && (r = n), (n = n.sibling); null === r ? (t || null === e.tail ? (e.tail = null) : (e.tail.sibling = null)) : (r.sibling = null); } } function qs(e) { var t = null !== e.alternate && e.alternate.child === e.child, n = 0, r = 0; if (t) for (var a = e.child; null !== a; ) (n |= a.lanes | a.childLanes), (r |= 14680064 & a.subtreeFlags), (r |= 14680064 & a.flags), (a.return = e), (a = a.sibling); else for (a = e.child; null !== a; ) (n |= a.lanes | a.childLanes), (r |= a.subtreeFlags), (r |= a.flags), (a.return = e), (a = a.sibling); return (e.subtreeFlags |= r), (e.childLanes = n), t; } function Ws(e, t, n) { var r = t.pendingProps; switch ((ti(t), t.tag)) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return qs(t), null; case 1: case 17: return Za(t.type) && za(), qs(t), null; case 3: return (r = t.stateNode), ao(), Ea(Ta), Ea(Aa), uo(), r.pendingContext && ((r.context = r.pendingContext), (r.pendingContext = null)), (null !== e && null !== e.child) || (ui(t) ? (t.flags |= 4) : null === e || (e.memoizedState.isDehydrated && 0 === (256 & t.flags)) || ((t.flags |= 1024), null !== ii && (oc(ii), (ii = null)))), qs(t), null; case 5: oo(t); var a = no(to.current); if (((n = t.type), null !== e && null != t.stateNode)) zs(e, t, n, r), e.ref !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); else { if (!r) { if (null === t.stateNode) throw Error(i(166)); return qs(t), null; } if (((e = no(Ji.current)), ui(t))) { (r = t.stateNode), (n = t.type); var o = t.memoizedProps; switch (((r[pa] = t), (r[ha] = o), (e = 0 !== (1 & t.mode)), n)) { case "dialog": jr("cancel", r), jr("close", r); break; case "iframe": case "object": case "embed": jr("load", r); break; case "video": case "audio": for (a = 0; a < Mr.length; a++) jr(Mr[a], r); break; case "source": jr("error", r); break; case "img": case "image": case "link": jr("error", r), jr("load", r); break; case "details": jr("toggle", r); break; case "input": Y(r, o), jr("invalid", r); break; case "select": (r._wrapperState = { wasMultiple: !!o.multiple }), jr("invalid", r); break; case "textarea": ae(r, o), jr("invalid", r); } for (var l in (be(n, o), (a = null), o)) if (o.hasOwnProperty(l)) { var c = o[l]; "children" === l ? ("string" === typeof c ? r.textContent !== c && (!0 !== o.suppressHydrationWarning && Xr(r.textContent, c, e), (a = ["children", c])) : "number" === typeof c && r.textContent !== "" + c && (!0 !== o.suppressHydrationWarning && Xr(r.textContent, c, e), (a = ["children", "" + c]))) : s.hasOwnProperty(l) && null != c && "onScroll" === l && jr("scroll", r); } switch (n) { case "input": q(r), J(r, o, !0); break; case "textarea": q(r), oe(r); break; case "select": case "option": break; default: "function" === typeof o.onClick && (r.onclick = Jr); } (r = a), (t.updateQueue = r), null !== r && (t.flags |= 4); } else { (l = 9 === a.nodeType ? a : a.ownerDocument), "http://www.w3.org/1999/xhtml" === e && (e = se(n)), "http://www.w3.org/1999/xhtml" === e ? ("script" === n ? (((e = l.createElement("div")).innerHTML = ""), (e = e.removeChild(e.firstChild))) : "string" === typeof r.is ? (e = l.createElement(n, { is: r.is })) : ((e = l.createElement(n)), "select" === n && ((l = e), r.multiple ? (l.multiple = !0) : r.size && (l.size = r.size)))) : (e = l.createElementNS(e, n)), (e[pa] = t), (e[ha] = r), Zs(e, t), (t.stateNode = e); e: { switch (((l = ye(n, r)), n)) { case "dialog": jr("cancel", e), jr("close", e), (a = r); break; case "iframe": case "object": case "embed": jr("load", e), (a = r); break; case "video": case "audio": for (a = 0; a < Mr.length; a++) jr(Mr[a], e); a = r; break; case "source": jr("error", e), (a = r); break; case "img": case "image": case "link": jr("error", e), jr("load", e), (a = r); break; case "details": jr("toggle", e), (a = r); break; case "input": Y(e, r), (a = K(e, r)), jr("invalid", e); break; case "option": default: a = r; break; case "select": (e._wrapperState = { wasMultiple: !!r.multiple }), (a = D({}, r, { value: void 0 })), jr("invalid", e); break; case "textarea": ae(e, r), (a = re(e, r)), jr("invalid", e); } for (o in (be(n, a), (c = a))) if (c.hasOwnProperty(o)) { var d = c[o]; "style" === o ? ge(e, d) : "dangerouslySetInnerHTML" === o ? null != (d = d ? d.__html : void 0) && ue(e, d) : "children" === o ? ("string" === typeof d ? ("textarea" !== n || "" !== d) && pe(e, d) : "number" === typeof d && pe(e, "" + d)) : "suppressContentEditableWarning" !== o && "suppressHydrationWarning" !== o && "autoFocus" !== o && (s.hasOwnProperty(o) ? null != d && "onScroll" === o && jr("scroll", e) : null != d && y(e, o, d, l)); } switch (n) { case "input": q(e), J(e, r, !1); break; case "textarea": q(e), oe(e); break; case "option": null != r.value && e.setAttribute("value", "" + G(r.value)); break; case "select": (e.multiple = !!r.multiple), null != (o = r.value) ? ne(e, !!r.multiple, o, !1) : null != r.defaultValue && ne(e, !!r.multiple, r.defaultValue, !0); break; default: "function" === typeof a.onClick && (e.onclick = Jr); } switch (n) { case "button": case "input": case "select": case "textarea": r = !!r.autoFocus; break e; case "img": r = !0; break e; default: r = !1; } } r && (t.flags |= 4); } null !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); } return qs(t), null; case 6: if (e && null != t.stateNode) Ls(0, t, e.memoizedProps, r); else { if ("string" !== typeof r && null === t.stateNode) throw Error(i(166)); if (((n = no(to.current)), no(Ji.current), ui(t))) { if (((r = t.stateNode), (n = t.memoizedProps), (r[pa] = t), (o = r.nodeValue !== n) && null !== (e = ni))) switch (e.tag) { case 3: Xr(r.nodeValue, n, 0 !== (1 & e.mode)); break; case 5: !0 !== e.memoizedProps.suppressHydrationWarning && Xr(r.nodeValue, n, 0 !== (1 & e.mode)); } o && (t.flags |= 4); } else ((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[pa] = t), (t.stateNode = r); } return qs(t), null; case 13: if ((Ea(so), (r = t.memoizedState), null === e || (null !== e.memoizedState && null !== e.memoizedState.dehydrated))) { if (ai && null !== ri && 0 !== (1 & t.mode) && 0 === (128 & t.flags)) pi(), hi(), (t.flags |= 98560), (o = !1); else if (((o = ui(t)), null !== r && null !== r.dehydrated)) { if (null === e) { if (!o) throw Error(i(318)); if (!(o = null !== (o = t.memoizedState) ? o.dehydrated : null)) throw Error(i(317)); o[pa] = t; } else hi(), 0 === (128 & t.flags) && (t.memoizedState = null), (t.flags |= 4); qs(t), (o = !1); } else null !== ii && (oc(ii), (ii = null)), (o = !0); if (!o) return 65536 & t.flags ? t : null; } return 0 !== (128 & t.flags) ? ((t.lanes = n), t) : ((r = null !== r) !== (null !== e && null !== e.memoizedState) && r && ((t.child.flags |= 8192), 0 !== (1 & t.mode) && (null === e || 0 !== (1 & so.current) ? 0 === Ll && (Ll = 3) : mc())), null !== t.updateQueue && (t.flags |= 4), qs(t), null); case 4: return ao(), null === e && Ur(t.stateNode.containerInfo), qs(t), null; case 10: return ki(t.type._context), qs(t), null; case 19: if ((Ea(so), null === (o = t.memoizedState))) return qs(t), null; if (((r = 0 !== (128 & t.flags)), null === (l = o.rendering))) if (r) Vs(o, !1); else { if (0 !== Ll || (null !== e && 0 !== (128 & e.flags))) for (e = t.child; null !== e; ) { if (null !== (l = lo(e))) { for (t.flags |= 128, Vs(o, !1), null !== (r = l.updateQueue) && ((t.updateQueue = r), (t.flags |= 4)), t.subtreeFlags = 0, r = n, n = t.child; null !== n; ) (e = r), ((o = n).flags &= 14680066), null === (l = o.alternate) ? ((o.childLanes = 0), (o.lanes = e), (o.child = null), (o.subtreeFlags = 0), (o.memoizedProps = null), (o.memoizedState = null), (o.updateQueue = null), (o.dependencies = null), (o.stateNode = null)) : ((o.childLanes = l.childLanes), (o.lanes = l.lanes), (o.child = l.child), (o.subtreeFlags = 0), (o.deletions = null), (o.memoizedProps = l.memoizedProps), (o.memoizedState = l.memoizedState), (o.updateQueue = l.updateQueue), (o.type = l.type), (e = l.dependencies), (o.dependencies = null === e ? null : { lanes: e.lanes, firstContext: e.firstContext })), (n = n.sibling); return Ia(so, (1 & so.current) | 2), t.child; } e = e.sibling; } null !== o.tail && Qe() > Ul && ((t.flags |= 128), (r = !0), Vs(o, !1), (t.lanes = 4194304)); } else { if (!r) if (null !== (e = lo(l))) { if (((t.flags |= 128), (r = !0), null !== (n = e.updateQueue) && ((t.updateQueue = n), (t.flags |= 4)), Vs(o, !0), null === o.tail && "hidden" === o.tailMode && !l.alternate && !ai)) return qs(t), null; } else 2 * Qe() - o.renderingStartTime > Ul && 1073741824 !== n && ((t.flags |= 128), (r = !0), Vs(o, !1), (t.lanes = 4194304)); o.isBackwards ? ((l.sibling = t.child), (t.child = l)) : (null !== (n = o.last) ? (n.sibling = l) : (t.child = l), (o.last = l)); } return null !== o.tail ? ((t = o.tail), (o.rendering = t), (o.tail = t.sibling), (o.renderingStartTime = Qe()), (t.sibling = null), (n = so.current), Ia(so, r ? (1 & n) | 2 : 1 & n), t) : (qs(t), null); case 22: case 23: return uc(), (r = null !== t.memoizedState), null !== e && (null !== e.memoizedState) !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Zl) && (qs(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : qs(t), null; case 24: case 25: return null; } throw Error(i(156, t.tag)); } function Hs(e, t) { switch ((ti(t), t.tag)) { case 1: return Za(t.type) && za(), 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null; case 3: return ao(), Ea(Ta), Ea(Aa), uo(), 0 !== (65536 & (e = t.flags)) && 0 === (128 & e) ? ((t.flags = (-65537 & e) | 128), t) : null; case 5: return oo(t), null; case 13: if ((Ea(so), null !== (e = t.memoizedState) && null !== e.dehydrated)) { if (null === t.alternate) throw Error(i(340)); hi(); } return 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null; case 19: return Ea(so), null; case 4: return ao(), null; case 10: return ki(t.type._context), null; case 22: case 23: return uc(), null; default: return null; } } (Zs = function (e, t) { for (var n = t.child; null !== n; ) { if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode); else if (4 !== n.tag && null !== n.child) { (n.child.return = n), (n = n.child); continue; } if (n === t) break; for (; null === n.sibling; ) { if (null === n.return || n.return === t) return; n = n.return; } (n.sibling.return = n.return), (n = n.sibling); } }), (zs = function (e, t, n, r) { var a = e.memoizedProps; if (a !== r) { (e = t.stateNode), no(Ji.current); var i, o = null; switch (n) { case "input": (a = K(e, a)), (r = K(e, r)), (o = []); break; case "select": (a = D({}, a, { value: void 0 })), (r = D({}, r, { value: void 0 })), (o = []); break; case "textarea": (a = re(e, a)), (r = re(e, r)), (o = []); break; default: "function" !== typeof a.onClick && "function" === typeof r.onClick && (e.onclick = Jr); } for (d in (be(n, r), (n = null), a)) if (!r.hasOwnProperty(d) && a.hasOwnProperty(d) && null != a[d]) if ("style" === d) { var l = a[d]; for (i in l) l.hasOwnProperty(i) && (n || (n = {}), (n[i] = "")); } else "dangerouslySetInnerHTML" !== d && "children" !== d && "suppressContentEditableWarning" !== d && "suppressHydrationWarning" !== d && "autoFocus" !== d && (s.hasOwnProperty(d) ? o || (o = []) : (o = o || []).push(d, null)); for (d in r) { var c = r[d]; if (((l = null != a ? a[d] : void 0), r.hasOwnProperty(d) && c !== l && (null != c || null != l))) if ("style" === d) if (l) { for (i in l) !l.hasOwnProperty(i) || (c && c.hasOwnProperty(i)) || (n || (n = {}), (n[i] = "")); for (i in c) c.hasOwnProperty(i) && l[i] !== c[i] && (n || (n = {}), (n[i] = c[i])); } else n || (o || (o = []), o.push(d, n)), (n = c); else "dangerouslySetInnerHTML" === d ? ((c = c ? c.__html : void 0), (l = l ? l.__html : void 0), null != c && l !== c && (o = o || []).push(d, c)) : "children" === d ? ("string" !== typeof c && "number" !== typeof c) || (o = o || []).push(d, "" + c) : "suppressContentEditableWarning" !== d && "suppressHydrationWarning" !== d && (s.hasOwnProperty(d) ? (null != c && "onScroll" === d && jr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(d, c)); } n && (o = o || []).push("style", n); var d = o; (t.updateQueue = d) && (t.flags |= 4); } }), (Ls = function (e, t, n, r) { n !== r && (t.flags |= 4); }); var Ks = !1, Ys = !1, Qs = "function" === typeof WeakSet ? WeakSet : Set, Xs = null; function Js(e, t) { var n = e.ref; if (null !== n) if ("function" === typeof n) try { n(null); } catch (r) { Cc(e, t, r); } else n.current = null; } function el(e, t, n) { try { n(); } catch (r) { Cc(e, t, r); } } var tl = !1; function nl(e, t, n) { var r = t.updateQueue; if (null !== (r = null !== r ? r.lastEffect : null)) { var a = (r = r.next); do { if ((a.tag & e) === e) { var i = a.destroy; (a.destroy = void 0), void 0 !== i && el(t, n, i); } a = a.next; } while (a !== r); } } function rl(e, t) { if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { var n = (t = t.next); do { if ((n.tag & e) === e) { var r = n.create; n.destroy = r(); } n = n.next; } while (n !== t); } } function al(e) { var t = e.ref; if (null !== t) { var n = e.stateNode; e.tag, (e = n), "function" === typeof t ? t(e) : (t.current = e); } } function il(e) { var t = e.alternate; null !== t && ((e.alternate = null), il(t)), (e.child = null), (e.deletions = null), (e.sibling = null), 5 === e.tag && null !== (t = e.stateNode) && (delete t[pa], delete t[ha], delete t[ma], delete t[ga], delete t[va]), (e.stateNode = null), (e.return = null), (e.dependencies = null), (e.memoizedProps = null), (e.memoizedState = null), (e.pendingProps = null), (e.stateNode = null), (e.updateQueue = null); } function ol(e) { return 5 === e.tag || 3 === e.tag || 4 === e.tag; } function sl(e) { e: for (;;) { for (; null === e.sibling; ) { if (null === e.return || ol(e.return)) return null; e = e.return; } for (e.sibling.return = e.return, e = e.sibling; 5 !== e.tag && 6 !== e.tag && 18 !== e.tag; ) { if (2 & e.flags) continue e; if (null === e.child || 4 === e.tag) continue e; (e.child.return = e), (e = e.child); } if (!(2 & e.flags)) return e.stateNode; } } function ll(e, t, n) { var r = e.tag; if (5 === r || 6 === r) (e = e.stateNode), t ? (8 === n.nodeType ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t)) : (8 === n.nodeType ? (t = n.parentNode).insertBefore(e, n) : (t = n).appendChild(e), (null !== (n = n._reactRootContainer) && void 0 !== n) || null !== t.onclick || (t.onclick = Jr)); else if (4 !== r && null !== (e = e.child)) for (ll(e, t, n), e = e.sibling; null !== e; ) ll(e, t, n), (e = e.sibling); } function cl(e, t, n) { var r = e.tag; if (5 === r || 6 === r) (e = e.stateNode), t ? n.insertBefore(e, t) : n.appendChild(e); else if (4 !== r && null !== (e = e.child)) for (cl(e, t, n), e = e.sibling; null !== e; ) cl(e, t, n), (e = e.sibling); } var dl = null, ul = !1; function pl(e, t, n) { for (n = n.child; null !== n; ) hl(e, t, n), (n = n.sibling); } function hl(e, t, n) { if (it && "function" === typeof it.onCommitFiberUnmount) try { it.onCommitFiberUnmount(at, n); } catch (s) {} switch (n.tag) { case 5: Ys || Js(n, t); case 6: var r = dl, a = ul; (dl = null), pl(e, t, n), (ul = a), null !== (dl = r) && (ul ? ((e = dl), (n = n.stateNode), 8 === e.nodeType ? e.parentNode.removeChild(n) : e.removeChild(n)) : dl.removeChild(n.stateNode)); break; case 18: null !== dl && (ul ? ((e = dl), (n = n.stateNode), 8 === e.nodeType ? la(e.parentNode, n) : 1 === e.nodeType && la(e, n), Ut(e)) : la(dl, n.stateNode)); break; case 4: (r = dl), (a = ul), (dl = n.stateNode.containerInfo), (ul = !0), pl(e, t, n), (dl = r), (ul = a); break; case 0: case 11: case 14: case 15: if (!Ys && null !== (r = n.updateQueue) && null !== (r = r.lastEffect)) { a = r = r.next; do { var i = a, o = i.destroy; (i = i.tag), void 0 !== o && (0 !== (2 & i) || 0 !== (4 & i)) && el(n, t, o), (a = a.next); } while (a !== r); } pl(e, t, n); break; case 1: if (!Ys && (Js(n, t), "function" === typeof (r = n.stateNode).componentWillUnmount)) try { (r.props = n.memoizedProps), (r.state = n.memoizedState), r.componentWillUnmount(); } catch (s) { Cc(n, t, s); } pl(e, t, n); break; case 21: pl(e, t, n); break; case 22: 1 & n.mode ? ((Ys = (r = Ys) || null !== n.memoizedState), pl(e, t, n), (Ys = r)) : pl(e, t, n); break; default: pl(e, t, n); } } function fl(e) { var t = e.updateQueue; if (null !== t) { e.updateQueue = null; var n = e.stateNode; null === n && (n = e.stateNode = new Qs()), t.forEach(function (t) { var r = Ac.bind(null, e, t); n.has(t) || (n.add(t), t.then(r, r)); }); } } function ml(e, t) { var n = t.deletions; if (null !== n) for (var r = 0; r < n.length; r++) { var a = n[r]; try { var o = e, s = t, l = s; e: for (; null !== l; ) { switch (l.tag) { case 5: (dl = l.stateNode), (ul = !1); break e; case 3: case 4: (dl = l.stateNode.containerInfo), (ul = !0); break e; } l = l.return; } if (null === dl) throw Error(i(160)); hl(o, s, a), (dl = null), (ul = !1); var c = a.alternate; null !== c && (c.return = null), (a.return = null); } catch (d) { Cc(a, t, d); } } if (12854 & t.subtreeFlags) for (t = t.child; null !== t; ) gl(t, e), (t = t.sibling); } function gl(e, t) { var n = e.alternate, r = e.flags; switch (e.tag) { case 0: case 11: case 14: case 15: if ((ml(t, e), vl(e), 4 & r)) { try { nl(3, e, e.return), rl(3, e); } catch (g) { Cc(e, e.return, g); } try { nl(5, e, e.return); } catch (g) { Cc(e, e.return, g); } } break; case 1: ml(t, e), vl(e), 512 & r && null !== n && Js(n, n.return); break; case 5: if ((ml(t, e), vl(e), 512 & r && null !== n && Js(n, n.return), 32 & e.flags)) { var a = e.stateNode; try { pe(a, ""); } catch (g) { Cc(e, e.return, g); } } if (4 & r && null != (a = e.stateNode)) { var o = e.memoizedProps, s = null !== n ? n.memoizedProps : o, l = e.type, c = e.updateQueue; if (((e.updateQueue = null), null !== c)) try { "input" === l && "radio" === o.type && null != o.name && Q(a, o), ye(l, s); var d = ye(l, o); for (s = 0; s < c.length; s += 2) { var u = c[s], p = c[s + 1]; "style" === u ? ge(a, p) : "dangerouslySetInnerHTML" === u ? ue(a, p) : "children" === u ? pe(a, p) : y(a, u, p, d); } switch (l) { case "input": X(a, o); break; case "textarea": ie(a, o); break; case "select": var h = a._wrapperState.wasMultiple; a._wrapperState.wasMultiple = !!o.multiple; var f = o.value; null != f ? ne(a, !!o.multiple, f, !1) : h !== !!o.multiple && (null != o.defaultValue ? ne(a, !!o.multiple, o.defaultValue, !0) : ne(a, !!o.multiple, o.multiple ? [] : "", !1)); } a[ha] = o; } catch (g) { Cc(e, e.return, g); } } break; case 6: if ((ml(t, e), vl(e), 4 & r)) { if (null === e.stateNode) throw Error(i(162)); (a = e.stateNode), (o = e.memoizedProps); try { a.nodeValue = o; } catch (g) { Cc(e, e.return, g); } } break; case 3: if ((ml(t, e), vl(e), 4 & r && null !== n && n.memoizedState.isDehydrated)) try { Ut(t.containerInfo); } catch (g) { Cc(e, e.return, g); } break; case 4: default: ml(t, e), vl(e); break; case 13: ml(t, e), vl(e), 8192 & (a = e.child).flags && ((o = null !== a.memoizedState), (a.stateNode.isHidden = o), !o || (null !== a.alternate && null !== a.alternate.memoizedState) || (Bl = Qe())), 4 & r && fl(e); break; case 22: if (((u = null !== n && null !== n.memoizedState), 1 & e.mode ? ((Ys = (d = Ys) || u), ml(t, e), (Ys = d)) : ml(t, e), vl(e), 8192 & r)) { if (((d = null !== e.memoizedState), (e.stateNode.isHidden = d) && !u && 0 !== (1 & e.mode))) for (Xs = e, u = e.child; null !== u; ) { for (p = Xs = u; null !== Xs; ) { switch (((f = (h = Xs).child), h.tag)) { case 0: case 11: case 14: case 15: nl(4, h, h.return); break; case 1: Js(h, h.return); var m = h.stateNode; if ("function" === typeof m.componentWillUnmount) { (r = h), (n = h.return); try { (t = r), (m.props = t.memoizedProps), (m.state = t.memoizedState), m.componentWillUnmount(); } catch (g) { Cc(r, n, g); } } break; case 5: Js(h, h.return); break; case 22: if (null !== h.memoizedState) { Sl(p); continue; } } null !== f ? ((f.return = h), (Xs = f)) : Sl(p); } u = u.sibling; } e: for (u = null, p = e; ; ) { if (5 === p.tag) { if (null === u) { u = p; try { (a = p.stateNode), d ? ("function" === typeof (o = a.style).setProperty ? o.setProperty("display", "none", "important") : (o.display = "none")) : ((l = p.stateNode), (s = void 0 !== (c = p.memoizedProps.style) && null !== c && c.hasOwnProperty("display") ? c.display : null), (l.style.display = me("display", s))); } catch (g) { Cc(e, e.return, g); } } } else if (6 === p.tag) { if (null === u) try { p.stateNode.nodeValue = d ? "" : p.memoizedProps; } catch (g) { Cc(e, e.return, g); } } else if (((22 !== p.tag && 23 !== p.tag) || null === p.memoizedState || p === e) && null !== p.child) { (p.child.return = p), (p = p.child); continue; } if (p === e) break e; for (; null === p.sibling; ) { if (null === p.return || p.return === e) break e; u === p && (u = null), (p = p.return); } u === p && (u = null), (p.sibling.return = p.return), (p = p.sibling); } } break; case 19: ml(t, e), vl(e), 4 & r && fl(e); case 21: } } function vl(e) { var t = e.flags; if (2 & t) { try { e: { for (var n = e.return; null !== n; ) { if (ol(n)) { var r = n; break e; } n = n.return; } throw Error(i(160)); } switch (r.tag) { case 5: var a = r.stateNode; 32 & r.flags && (pe(a, ""), (r.flags &= -33)), cl(e, sl(e), a); break; case 3: case 4: var o = r.stateNode.containerInfo; ll(e, sl(e), o); break; default: throw Error(i(161)); } } catch (s) { Cc(e, e.return, s); } e.flags &= -3; } 4096 & t && (e.flags &= -4097); } function bl(e, t, n) { (Xs = e), yl(e, t, n); } function yl(e, t, n) { for (var r = 0 !== (1 & e.mode); null !== Xs; ) { var a = Xs, i = a.child; if (22 === a.tag && r) { var o = null !== a.memoizedState || Ks; if (!o) { var s = a.alternate, l = (null !== s && null !== s.memoizedState) || Ys; s = Ks; var c = Ys; if (((Ks = o), (Ys = l) && !c)) for (Xs = a; null !== Xs; ) (l = (o = Xs).child), 22 === o.tag && null !== o.memoizedState ? kl(a) : null !== l ? ((l.return = o), (Xs = l)) : kl(a); for (; null !== i; ) (Xs = i), yl(i, t, n), (i = i.sibling); (Xs = a), (Ks = s), (Ys = c); } wl(e); } else 0 !== (8772 & a.subtreeFlags) && null !== i ? ((i.return = a), (Xs = i)) : wl(e); } } function wl(e) { for (; null !== Xs; ) { var t = Xs; if (0 !== (8772 & t.flags)) { var n = t.alternate; try { if (0 !== (8772 & t.flags)) switch (t.tag) { case 0: case 11: case 15: Ys || rl(5, t); break; case 1: var r = t.stateNode; if (4 & t.flags && !Ys) if (null === n) r.componentDidMount(); else { var a = t.elementType === t.type ? n.memoizedProps : gi(t.type, n.memoizedProps); r.componentDidUpdate(a, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate); } var o = t.updateQueue; null !== o && Ni(t, o, r); break; case 3: var s = t.updateQueue; if (null !== s) { if (((n = null), null !== t.child)) switch (t.child.tag) { case 5: case 1: n = t.child.stateNode; } Ni(t, s, n); } break; case 5: var l = t.stateNode; if (null === n && 4 & t.flags) { n = l; var c = t.memoizedProps; switch (t.type) { case "button": case "input": case "select": case "textarea": c.autoFocus && n.focus(); break; case "img": c.src && (n.src = c.src); } } break; case 6: case 4: case 12: case 19: case 17: case 21: case 22: case 23: case 25: break; case 13: if (null === t.memoizedState) { var d = t.alternate; if (null !== d) { var u = d.memoizedState; if (null !== u) { var p = u.dehydrated; null !== p && Ut(p); } } } break; default: throw Error(i(163)); } Ys || (512 & t.flags && al(t)); } catch (h) { Cc(t, t.return, h); } } if (t === e) { Xs = null; break; } if (null !== (n = t.sibling)) { (n.return = t.return), (Xs = n); break; } Xs = t.return; } } function Sl(e) { for (; null !== Xs; ) { var t = Xs; if (t === e) { Xs = null; break; } var n = t.sibling; if (null !== n) { (n.return = t.return), (Xs = n); break; } Xs = t.return; } } function kl(e) { for (; null !== Xs; ) { var t = Xs; try { switch (t.tag) { case 0: case 11: case 15: var n = t.return; try { rl(4, t); } catch (l) { Cc(t, n, l); } break; case 1: var r = t.stateNode; if ("function" === typeof r.componentDidMount) { var a = t.return; try { r.componentDidMount(); } catch (l) { Cc(t, a, l); } } var i = t.return; try { al(t); } catch (l) { Cc(t, i, l); } break; case 5: var o = t.return; try { al(t); } catch (l) { Cc(t, o, l); } } } catch (l) { Cc(t, t.return, l); } if (t === e) { Xs = null; break; } var s = t.sibling; if (null !== s) { (s.return = t.return), (Xs = s); break; } Xs = t.return; } } var xl, Cl = Math.ceil, El = w.ReactCurrentDispatcher, Il = w.ReactCurrentOwner, Pl = w.ReactCurrentBatchConfig, Al = 0, Tl = null, Rl = null, _l = 0, Zl = 0, zl = Ca(0), Ll = 0, Ml = null, Fl = 0, Dl = 0, Nl = 0, jl = null, Ol = null, Bl = 0, Ul = 1 / 0, $l = null, Gl = !1, Vl = null, ql = null, Wl = !1, Hl = null, Kl = 0, Yl = 0, Ql = null, Xl = -1, Jl = 0; function ec() { return 0 !== (6 & Al) ? Qe() : -1 !== Xl ? Xl : (Xl = Qe()); } function tc(e) { return 0 === (1 & e.mode) ? 1 : 0 !== (2 & Al) && 0 !== _l ? _l & -_l : null !== mi.transition ? (0 === Jl && (Jl = mt()), Jl) : 0 !== (e = yt) ? e : (e = void 0 === (e = window.event) ? 16 : Yt(e.type)); } function nc(e, t, n, r) { if (50 < Yl) throw ((Yl = 0), (Ql = null), Error(i(185))); vt(e, n, r), (0 !== (2 & Al) && e === Tl) || (e === Tl && (0 === (2 & Al) && (Dl |= n), 4 === Ll && sc(e, _l)), rc(e, r), 1 === n && 0 === Al && 0 === (1 & t.mode) && ((Ul = Qe() + 500), ja && Ua())); } function rc(e, t) { var n = e.callbackNode; !(function (e, t) { for (var n = e.suspendedLanes, r = e.pingedLanes, a = e.expirationTimes, i = e.pendingLanes; 0 < i; ) { var o = 31 - ot(i), s = 1 << o, l = a[o]; -1 === l ? (0 !== (s & n) && 0 === (s & r)) || (a[o] = ht(s, t)) : l <= t && (e.expiredLanes |= s), (i &= ~s); } })(e, t); var r = pt(e, e === Tl ? _l : 0); if (0 === r) null !== n && He(n), (e.callbackNode = null), (e.callbackPriority = 0); else if (((t = r & -r), e.callbackPriority !== t)) { if ((null != n && He(n), 1 === t)) 0 === e.tag ? (function (e) { (ja = !0), Ba(e); })(lc.bind(null, e)) : Ba(lc.bind(null, e)), oa(function () { 0 === (6 & Al) && Ua(); }), (n = null); else { switch (wt(r)) { case 1: n = Je; break; case 4: n = et; break; case 16: default: n = tt; break; case 536870912: n = rt; } n = Tc(n, ac.bind(null, e)); } (e.callbackPriority = t), (e.callbackNode = n); } } function ac(e, t) { if (((Xl = -1), (Jl = 0), 0 !== (6 & Al))) throw Error(i(327)); var n = e.callbackNode; if (kc() && e.callbackNode !== n) return null; var r = pt(e, e === Tl ? _l : 0); if (0 === r) return null; if (0 !== (30 & r) || 0 !== (r & e.expiredLanes) || t) t = gc(e, r); else { t = r; var a = Al; Al |= 2; var o = fc(); for ((Tl === e && _l === t) || (($l = null), (Ul = Qe() + 500), pc(e, t)); ; ) try { bc(); break; } catch (l) { hc(e, l); } Si(), (El.current = o), (Al = a), null !== Rl ? (t = 0) : ((Tl = null), (_l = 0), (t = Ll)); } if (0 !== t) { if ((2 === t && 0 !== (a = ft(e)) && ((r = a), (t = ic(e, a))), 1 === t)) throw ((n = Ml), pc(e, 0), sc(e, r), rc(e, Qe()), n); if (6 === t) sc(e, r); else { if ( ((a = e.current.alternate), 0 === (30 & r) && !(function (e) { for (var t = e; ; ) { if (16384 & t.flags) { var n = t.updateQueue; if (null !== n && null !== (n = n.stores)) for (var r = 0; r < n.length; r++) { var a = n[r], i = a.getSnapshot; a = a.value; try { if (!sr(i(), a)) return !1; } catch (s) { return !1; } } } if (((n = t.child), 16384 & t.subtreeFlags && null !== n)) (n.return = t), (t = n); else { if (t === e) break; for (; null === t.sibling; ) { if (null === t.return || t.return === e) return !0; t = t.return; } (t.sibling.return = t.return), (t = t.sibling); } } return !0; })(a) && (2 === (t = gc(e, r)) && 0 !== (o = ft(e)) && ((r = o), (t = ic(e, o))), 1 === t)) ) throw ((n = Ml), pc(e, 0), sc(e, r), rc(e, Qe()), n); switch (((e.finishedWork = a), (e.finishedLanes = r), t)) { case 0: case 1: throw Error(i(345)); case 2: case 5: Sc(e, Ol, $l); break; case 3: if ((sc(e, r), (130023424 & r) === r && 10 < (t = Bl + 500 - Qe()))) { if (0 !== pt(e, 0)) break; if (((a = e.suspendedLanes) & r) !== r) { ec(), (e.pingedLanes |= e.suspendedLanes & a); break; } e.timeoutHandle = ra(Sc.bind(null, e, Ol, $l), t); break; } Sc(e, Ol, $l); break; case 4: if ((sc(e, r), (4194240 & r) === r)) break; for (t = e.eventTimes, a = -1; 0 < r; ) { var s = 31 - ot(r); (o = 1 << s), (s = t[s]) > a && (a = s), (r &= ~o); } if (((r = a), 10 < (r = (120 > (r = Qe() - r) ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Cl(r / 1960)) - r))) { e.timeoutHandle = ra(Sc.bind(null, e, Ol, $l), r); break; } Sc(e, Ol, $l); break; default: throw Error(i(329)); } } } return rc(e, Qe()), e.callbackNode === n ? ac.bind(null, e) : null; } function ic(e, t) { var n = jl; return e.current.memoizedState.isDehydrated && (pc(e, t).flags |= 256), 2 !== (e = gc(e, t)) && ((t = Ol), (Ol = n), null !== t && oc(t)), e; } function oc(e) { null === Ol ? (Ol = e) : Ol.push.apply(Ol, e); } function sc(e, t) { for (t &= ~Nl, t &= ~Dl, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) { var n = 31 - ot(t), r = 1 << n; (e[n] = -1), (t &= ~r); } } function lc(e) { if (0 !== (6 & Al)) throw Error(i(327)); kc(); var t = pt(e, 0); if (0 === (1 & t)) return rc(e, Qe()), null; var n = gc(e, t); if (0 !== e.tag && 2 === n) { var r = ft(e); 0 !== r && ((t = r), (n = ic(e, r))); } if (1 === n) throw ((n = Ml), pc(e, 0), sc(e, t), rc(e, Qe()), n); if (6 === n) throw Error(i(345)); return (e.finishedWork = e.current.alternate), (e.finishedLanes = t), Sc(e, Ol, $l), rc(e, Qe()), null; } function cc(e, t) { var n = Al; Al |= 1; try { return e(t); } finally { 0 === (Al = n) && ((Ul = Qe() + 500), ja && Ua()); } } function dc(e) { null !== Hl && 0 === Hl.tag && 0 === (6 & Al) && kc(); var t = Al; Al |= 1; var n = Pl.transition, r = yt; try { if (((Pl.transition = null), (yt = 1), e)) return e(); } finally { (yt = r), (Pl.transition = n), 0 === (6 & (Al = t)) && Ua(); } } function uc() { (Zl = zl.current), Ea(zl); } function pc(e, t) { (e.finishedWork = null), (e.finishedLanes = 0); var n = e.timeoutHandle; if ((-1 !== n && ((e.timeoutHandle = -1), aa(n)), null !== Rl)) for (n = Rl.return; null !== n; ) { var r = n; switch ((ti(r), r.tag)) { case 1: null !== (r = r.type.childContextTypes) && void 0 !== r && za(); break; case 3: ao(), Ea(Ta), Ea(Aa), uo(); break; case 5: oo(r); break; case 4: ao(); break; case 13: case 19: Ea(so); break; case 10: ki(r.type._context); break; case 22: case 23: uc(); } n = n.return; } if (((Tl = e), (Rl = e = zc(e.current, null)), (_l = Zl = t), (Ll = 0), (Ml = null), (Nl = Dl = Fl = 0), (Ol = jl = null), null !== Ii)) { for (t = 0; t < Ii.length; t++) if (null !== (r = (n = Ii[t]).interleaved)) { n.interleaved = null; var a = r.next, i = n.pending; if (null !== i) { var o = i.next; (i.next = a), (r.next = o); } n.pending = r; } Ii = null; } return e; } function hc(e, t) { for (;;) { var n = Rl; try { if ((Si(), (po.current = os), bo)) { for (var r = mo.memoizedState; null !== r; ) { var a = r.queue; null !== a && (a.pending = null), (r = r.next); } bo = !1; } if (((fo = 0), (vo = go = mo = null), (yo = !1), (wo = 0), (Il.current = null), null === n || null === n.return)) { (Ll = 1), (Ml = t), (Rl = null); break; } e: { var o = e, s = n.return, l = n, c = t; if (((t = _l), (l.flags |= 32768), null !== c && "object" === typeof c && "function" === typeof c.then)) { var d = c, u = l, p = u.tag; if (0 === (1 & u.mode) && (0 === p || 11 === p || 15 === p)) { var h = u.alternate; h ? ((u.updateQueue = h.updateQueue), (u.memoizedState = h.memoizedState), (u.lanes = h.lanes)) : ((u.updateQueue = null), (u.memoizedState = null)); } var f = vs(s); if (null !== f) { (f.flags &= -257), bs(f, s, l, 0, t), 1 & f.mode && gs(o, d, t), (c = d); var m = (t = f).updateQueue; if (null === m) { var g = new Set(); g.add(c), (t.updateQueue = g); } else m.add(c); break e; } if (0 === (1 & t)) { gs(o, d, t), mc(); break e; } c = Error(i(426)); } else if (ai && 1 & l.mode) { var v = vs(s); if (null !== v) { 0 === (65536 & v.flags) && (v.flags |= 256), bs(v, s, l, 0, t), fi(ds(c, l)); break e; } } (o = c = ds(c, l)), 4 !== Ll && (Ll = 2), null === jl ? (jl = [o]) : jl.push(o), (o = s); do { switch (o.tag) { case 3: (o.flags |= 65536), (t &= -t), (o.lanes |= t), Fi(o, fs(0, c, t)); break e; case 1: l = c; var b = o.type, y = o.stateNode; if (0 === (128 & o.flags) && ("function" === typeof b.getDerivedStateFromError || (null !== y && "function" === typeof y.componentDidCatch && (null === ql || !ql.has(y))))) { (o.flags |= 65536), (t &= -t), (o.lanes |= t), Fi(o, ms(o, l, t)); break e; } } o = o.return; } while (null !== o); } wc(n); } catch (w) { (t = w), Rl === n && null !== n && (Rl = n = n.return); continue; } break; } } function fc() { var e = El.current; return (El.current = os), null === e ? os : e; } function mc() { (0 !== Ll && 3 !== Ll && 2 !== Ll) || (Ll = 4), null === Tl || (0 === (268435455 & Fl) && 0 === (268435455 & Dl)) || sc(Tl, _l); } function gc(e, t) { var n = Al; Al |= 2; var r = fc(); for ((Tl === e && _l === t) || (($l = null), pc(e, t)); ; ) try { vc(); break; } catch (a) { hc(e, a); } if ((Si(), (Al = n), (El.current = r), null !== Rl)) throw Error(i(261)); return (Tl = null), (_l = 0), Ll; } function vc() { for (; null !== Rl; ) yc(Rl); } function bc() { for (; null !== Rl && !Ke(); ) yc(Rl); } function yc(e) { var t = xl(e.alternate, e, Zl); (e.memoizedProps = e.pendingProps), null === t ? wc(e) : (Rl = t), (Il.current = null); } function wc(e) { var t = e; do { var n = t.alternate; if (((e = t.return), 0 === (32768 & t.flags))) { if (null !== (n = Ws(n, t, Zl))) return void (Rl = n); } else { if (null !== (n = Hs(n, t))) return (n.flags &= 32767), void (Rl = n); if (null === e) return (Ll = 6), void (Rl = null); (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null); } if (null !== (t = t.sibling)) return void (Rl = t); Rl = t = e; } while (null !== t); 0 === Ll && (Ll = 5); } function Sc(e, t, n) { var r = yt, a = Pl.transition; try { (Pl.transition = null), (yt = 1), (function (e, t, n, r) { do { kc(); } while (null !== Hl); if (0 !== (6 & Al)) throw Error(i(327)); n = e.finishedWork; var a = e.finishedLanes; if (null === n) return null; if (((e.finishedWork = null), (e.finishedLanes = 0), n === e.current)) throw Error(i(177)); (e.callbackNode = null), (e.callbackPriority = 0); var o = n.lanes | n.childLanes; if ( ((function (e, t) { var n = e.pendingLanes & ~t; (e.pendingLanes = t), (e.suspendedLanes = 0), (e.pingedLanes = 0), (e.expiredLanes &= t), (e.mutableReadLanes &= t), (e.entangledLanes &= t), (t = e.entanglements); var r = e.eventTimes; for (e = e.expirationTimes; 0 < n; ) { var a = 31 - ot(n), i = 1 << a; (t[a] = 0), (r[a] = -1), (e[a] = -1), (n &= ~i); } })(e, o), e === Tl && ((Rl = Tl = null), (_l = 0)), (0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags)) || Wl || ((Wl = !0), Tc(tt, function () { return kc(), null; })), (o = 0 !== (15990 & n.flags)), 0 !== (15990 & n.subtreeFlags) || o) ) { (o = Pl.transition), (Pl.transition = null); var s = yt; yt = 1; var l = Al; (Al |= 4), (Il.current = null), (function (e, t) { if (((ea = Gt), hr((e = pr())))) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd }; else e: { var r = (n = ((n = e.ownerDocument) && n.defaultView) || window).getSelection && n.getSelection(); if (r && 0 !== r.rangeCount) { n = r.anchorNode; var a = r.anchorOffset, o = r.focusNode; r = r.focusOffset; try { n.nodeType, o.nodeType; } catch (S) { n = null; break e; } var s = 0, l = -1, c = -1, d = 0, u = 0, p = e, h = null; t: for (;;) { for (var f; p !== n || (0 !== a && 3 !== p.nodeType) || (l = s + a), p !== o || (0 !== r && 3 !== p.nodeType) || (c = s + r), 3 === p.nodeType && (s += p.nodeValue.length), null !== (f = p.firstChild); ) (h = p), (p = f); for (;;) { if (p === e) break t; if ((h === n && ++d === a && (l = s), h === o && ++u === r && (c = s), null !== (f = p.nextSibling))) break; h = (p = h).parentNode; } p = f; } n = -1 === l || -1 === c ? null : { start: l, end: c }; } else n = null; } n = n || { start: 0, end: 0 }; } else n = null; for (ta = { focusedElem: e, selectionRange: n }, Gt = !1, Xs = t; null !== Xs; ) if (((e = (t = Xs).child), 0 !== (1028 & t.subtreeFlags) && null !== e)) (e.return = t), (Xs = e); else for (; null !== Xs; ) { t = Xs; try { var m = t.alternate; if (0 !== (1024 & t.flags)) switch (t.tag) { case 0: case 11: case 15: case 5: case 6: case 4: case 17: break; case 1: if (null !== m) { var g = m.memoizedProps, v = m.memoizedState, b = t.stateNode, y = b.getSnapshotBeforeUpdate(t.elementType === t.type ? g : gi(t.type, g), v); b.__reactInternalSnapshotBeforeUpdate = y; } break; case 3: var w = t.stateNode.containerInfo; 1 === w.nodeType ? (w.textContent = "") : 9 === w.nodeType && w.documentElement && w.removeChild(w.documentElement); break; default: throw Error(i(163)); } } catch (S) { Cc(t, t.return, S); } if (null !== (e = t.sibling)) { (e.return = t.return), (Xs = e); break; } Xs = t.return; } (m = tl), (tl = !1); })(e, n), gl(n, e), fr(ta), (Gt = !!ea), (ta = ea = null), (e.current = n), bl(n, e, a), Ye(), (Al = l), (yt = s), (Pl.transition = o); } else e.current = n; if ( (Wl && ((Wl = !1), (Hl = e), (Kl = a)), 0 === (o = e.pendingLanes) && (ql = null), (function (e) { if (it && "function" === typeof it.onCommitFiberRoot) try { it.onCommitFiberRoot(at, e, void 0, 128 === (128 & e.current.flags)); } catch (t) {} })(n.stateNode), rc(e, Qe()), null !== t) ) for (r = e.onRecoverableError, n = 0; n < t.length; n++) (a = t[n]), r(a.value, { componentStack: a.stack, digest: a.digest }); if (Gl) throw ((Gl = !1), (e = Vl), (Vl = null), e); 0 !== (1 & Kl) && 0 !== e.tag && kc(), 0 !== (1 & (o = e.pendingLanes)) ? (e === Ql ? Yl++ : ((Yl = 0), (Ql = e))) : (Yl = 0), Ua(); })(e, t, n, r); } finally { (Pl.transition = a), (yt = r); } return null; } function kc() { if (null !== Hl) { var e = wt(Kl), t = Pl.transition, n = yt; try { if (((Pl.transition = null), (yt = 16 > e ? 16 : e), null === Hl)) var r = !1; else { if (((e = Hl), (Hl = null), (Kl = 0), 0 !== (6 & Al))) throw Error(i(331)); var a = Al; for (Al |= 4, Xs = e.current; null !== Xs; ) { var o = Xs, s = o.child; if (0 !== (16 & Xs.flags)) { var l = o.deletions; if (null !== l) { for (var c = 0; c < l.length; c++) { var d = l[c]; for (Xs = d; null !== Xs; ) { var u = Xs; switch (u.tag) { case 0: case 11: case 15: nl(8, u, o); } var p = u.child; if (null !== p) (p.return = u), (Xs = p); else for (; null !== Xs; ) { var h = (u = Xs).sibling, f = u.return; if ((il(u), u === d)) { Xs = null; break; } if (null !== h) { (h.return = f), (Xs = h); break; } Xs = f; } } } var m = o.alternate; if (null !== m) { var g = m.child; if (null !== g) { m.child = null; do { var v = g.sibling; (g.sibling = null), (g = v); } while (null !== g); } } Xs = o; } } if (0 !== (2064 & o.subtreeFlags) && null !== s) (s.return = o), (Xs = s); else e: for (; null !== Xs; ) { if (0 !== (2048 & (o = Xs).flags)) switch (o.tag) { case 0: case 11: case 15: nl(9, o, o.return); } var b = o.sibling; if (null !== b) { (b.return = o.return), (Xs = b); break e; } Xs = o.return; } } var y = e.current; for (Xs = y; null !== Xs; ) { var w = (s = Xs).child; if (0 !== (2064 & s.subtreeFlags) && null !== w) (w.return = s), (Xs = w); else e: for (s = y; null !== Xs; ) { if (0 !== (2048 & (l = Xs).flags)) try { switch (l.tag) { case 0: case 11: case 15: rl(9, l); } } catch (k) { Cc(l, l.return, k); } if (l === s) { Xs = null; break e; } var S = l.sibling; if (null !== S) { (S.return = l.return), (Xs = S); break e; } Xs = l.return; } } if (((Al = a), Ua(), it && "function" === typeof it.onPostCommitFiberRoot)) try { it.onPostCommitFiberRoot(at, e); } catch (k) {} r = !0; } return r; } finally { (yt = n), (Pl.transition = t); } } return !1; } function xc(e, t, n) { (e = Li(e, (t = fs(0, (t = ds(n, t)), 1)), 1)), (t = ec()), null !== e && (vt(e, 1, t), rc(e, t)); } function Cc(e, t, n) { if (3 === e.tag) xc(e, e, n); else for (; null !== t; ) { if (3 === t.tag) { xc(t, e, n); break; } if (1 === t.tag) { var r = t.stateNode; if ("function" === typeof t.type.getDerivedStateFromError || ("function" === typeof r.componentDidCatch && (null === ql || !ql.has(r)))) { (t = Li(t, (e = ms(t, (e = ds(n, e)), 1)), 1)), (e = ec()), null !== t && (vt(t, 1, e), rc(t, e)); break; } } t = t.return; } } function Ec(e, t, n) { var r = e.pingCache; null !== r && r.delete(t), (t = ec()), (e.pingedLanes |= e.suspendedLanes & n), Tl === e && (_l & n) === n && (4 === Ll || (3 === Ll && (130023424 & _l) === _l && 500 > Qe() - Bl) ? pc(e, 0) : (Nl |= n)), rc(e, t); } function Ic(e, t) { 0 === t && (0 === (1 & e.mode) ? (t = 1) : ((t = dt), 0 === (130023424 & (dt <<= 1)) && (dt = 4194304))); var n = ec(); null !== (e = Ti(e, t)) && (vt(e, t, n), rc(e, n)); } function Pc(e) { var t = e.memoizedState, n = 0; null !== t && (n = t.retryLane), Ic(e, n); } function Ac(e, t) { var n = 0; switch (e.tag) { case 13: var r = e.stateNode, a = e.memoizedState; null !== a && (n = a.retryLane); break; case 19: r = e.stateNode; break; default: throw Error(i(314)); } null !== r && r.delete(t), Ic(e, n); } function Tc(e, t) { return We(e, t); } function Rc(e, t, n, r) { (this.tag = e), (this.key = n), (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), (this.index = 0), (this.ref = null), (this.pendingProps = t), (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), (this.mode = r), (this.subtreeFlags = this.flags = 0), (this.deletions = null), (this.childLanes = this.lanes = 0), (this.alternate = null); } function _c(e, t, n, r) { return new Rc(e, t, n, r); } function Zc(e) { return !(!(e = e.prototype) || !e.isReactComponent); } function zc(e, t) { var n = e.alternate; return null === n ? (((n = _c(e.tag, t, e.key, e.mode)).elementType = e.elementType), (n.type = e.type), (n.stateNode = e.stateNode), (n.alternate = e), (e.alternate = n)) : ((n.pendingProps = t), (n.type = e.type), (n.flags = 0), (n.subtreeFlags = 0), (n.deletions = null)), (n.flags = 14680064 & e.flags), (n.childLanes = e.childLanes), (n.lanes = e.lanes), (n.child = e.child), (n.memoizedProps = e.memoizedProps), (n.memoizedState = e.memoizedState), (n.updateQueue = e.updateQueue), (t = e.dependencies), (n.dependencies = null === t ? null : { lanes: t.lanes, firstContext: t.firstContext }), (n.sibling = e.sibling), (n.index = e.index), (n.ref = e.ref), n; } function Lc(e, t, n, r, a, o) { var s = 2; if (((r = e), "function" === typeof e)) Zc(e) && (s = 1); else if ("string" === typeof e) s = 5; else e: switch (e) { case x: return Mc(n.children, a, o, t); case C: (s = 8), (a |= 8); break; case E: return ((e = _c(12, n, t, 2 | a)).elementType = E), (e.lanes = o), e; case T: return ((e = _c(13, n, t, a)).elementType = T), (e.lanes = o), e; case R: return ((e = _c(19, n, t, a)).elementType = R), (e.lanes = o), e; case z: return Fc(n, a, o, t); default: if ("object" === typeof e && null !== e) switch (e.$$typeof) { case I: s = 10; break e; case P: s = 9; break e; case A: s = 11; break e; case _: s = 14; break e; case Z: (s = 16), (r = null); break e; } throw Error(i(130, null == e ? e : typeof e, "")); } return ((t = _c(s, n, t, a)).elementType = e), (t.type = r), (t.lanes = o), t; } function Mc(e, t, n, r) { return ((e = _c(7, e, r, t)).lanes = n), e; } function Fc(e, t, n, r) { return ((e = _c(22, e, r, t)).elementType = z), (e.lanes = n), (e.stateNode = { isHidden: !1 }), e; } function Dc(e, t, n) { return ((e = _c(6, e, null, t)).lanes = n), e; } function Nc(e, t, n) { return ((t = _c(4, null !== e.children ? e.children : [], e.key, t)).lanes = n), (t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }), t; } function jc(e, t, n, r, a) { (this.tag = t), (this.containerInfo = e), (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), (this.timeoutHandle = -1), (this.callbackNode = this.pendingContext = this.context = null), (this.callbackPriority = 0), (this.eventTimes = gt(0)), (this.expirationTimes = gt(-1)), (this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0), (this.entanglements = gt(0)), (this.identifierPrefix = r), (this.onRecoverableError = a), (this.mutableSourceEagerHydrationData = null); } function Oc(e, t, n, r, a, i, o, s, l) { return (e = new jc(e, t, n, s, l)), 1 === t ? ((t = 1), !0 === i && (t |= 8)) : (t = 0), (i = _c(3, null, null, t)), (e.current = i), (i.stateNode = e), (i.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null }), _i(i), e; } function Bc(e, t, n) { var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: k, key: null == r ? null : "" + r, children: e, containerInfo: t, implementation: n }; } function Uc(e) { if (!e) return Pa; e: { if (Ue((e = e._reactInternals)) !== e || 1 !== e.tag) throw Error(i(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (Za(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e; } } t = t.return; } while (null !== t); throw Error(i(171)); } if (1 === e.tag) { var n = e.type; if (Za(n)) return Ma(e, n, t); } return t; } function $c(e, t, n, r, a, i, o, s, l) { return ((e = Oc(n, r, !0, e, 0, i, 0, s, l)).context = Uc(null)), (n = e.current), ((i = zi((r = ec()), (a = tc(n)))).callback = void 0 !== t && null !== t ? t : null), Li(n, i, a), (e.current.lanes = a), vt(e, a, r), rc(e, r), e; } function Gc(e, t, n, r) { var a = t.current, i = ec(), o = tc(a); return (n = Uc(n)), null === t.context ? (t.context = n) : (t.pendingContext = n), ((t = zi(i, o)).payload = { element: e }), null !== (r = void 0 === r ? null : r) && (t.callback = r), null !== (e = Li(a, t, o)) && (nc(e, a, o, i), Mi(e, a, o)), o; } function Vc(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null; } function qc(e, t) { if (null !== (e = e.memoizedState) && null !== e.dehydrated) { var n = e.retryLane; e.retryLane = 0 !== n && n < t ? n : t; } } function Wc(e, t) { qc(e, t), (e = e.alternate) && qc(e, t); } xl = function (e, t, n) { if (null !== e) if (e.memoizedProps !== t.pendingProps || Ta.current) ws = !0; else { if (0 === (e.lanes & n) && 0 === (128 & t.flags)) return ( (ws = !1), (function (e, t, n) { switch (t.tag) { case 3: Rs(t), hi(); break; case 5: io(t); break; case 1: Za(t.type) && Fa(t); break; case 4: ro(t, t.stateNode.containerInfo); break; case 10: var r = t.type._context, a = t.memoizedProps.value; Ia(vi, r._currentValue), (r._currentValue = a); break; case 13: if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Ia(so, 1 & so.current), (t.flags |= 128), null) : 0 !== (n & t.child.childLanes) ? Ds(e, t, n) : (Ia(so, 1 & so.current), null !== (e = Gs(e, t, n)) ? e.sibling : null); Ia(so, 1 & so.current); break; case 19: if (((r = 0 !== (n & t.childLanes)), 0 !== (128 & e.flags))) { if (r) return Us(e, t, n); t.flags |= 128; } if ((null !== (a = t.memoizedState) && ((a.rendering = null), (a.tail = null), (a.lastEffect = null)), Ia(so, so.current), r)) break; return null; case 22: case 23: return (t.lanes = 0), Es(e, t, n); } return Gs(e, t, n); })(e, t, n) ); ws = 0 !== (131072 & e.flags); } else (ws = !1), ai && 0 !== (1048576 & t.flags) && Ja(t, qa, t.index); switch (((t.lanes = 0), t.tag)) { case 2: var r = t.type; $s(e, t), (e = t.pendingProps); var a = _a(t, Aa.current); Ci(t, n), (a = Co(null, t, r, e, a, n)); var o = Eo(); return (t.flags |= 1), "object" === typeof a && null !== a && "function" === typeof a.render && void 0 === a.$$typeof ? ((t.tag = 1), (t.memoizedState = null), (t.updateQueue = null), Za(r) ? ((o = !0), Fa(t)) : (o = !1), (t.memoizedState = null !== a.state && void 0 !== a.state ? a.state : null), _i(t), (a.updater = Bi), (t.stateNode = a), (a._reactInternals = t), Vi(t, r, e, n), (t = Ts(null, t, r, !0, o, n))) : ((t.tag = 0), ai && o && ei(t), Ss(null, t, a, n), (t = t.child)), t; case 16: r = t.elementType; e: { switch ( ($s(e, t), (e = t.pendingProps), (r = (a = r._init)(r._payload)), (t.type = r), (a = t.tag = (function (e) { if ("function" === typeof e) return Zc(e) ? 1 : 0; if (void 0 !== e && null !== e) { if ((e = e.$$typeof) === A) return 11; if (e === _) return 14; } return 2; })(r)), (e = gi(r, e)), a) ) { case 0: t = Ps(null, t, r, e, n); break e; case 1: t = As(null, t, r, e, n); break e; case 11: t = ks(null, t, r, e, n); break e; case 14: t = xs(null, t, r, gi(r.type, e), n); break e; } throw Error(i(306, r, "")); } return t; case 0: return (r = t.type), (a = t.pendingProps), Ps(e, t, r, (a = t.elementType === r ? a : gi(r, a)), n); case 1: return (r = t.type), (a = t.pendingProps), As(e, t, r, (a = t.elementType === r ? a : gi(r, a)), n); case 3: e: { if ((Rs(t), null === e)) throw Error(i(387)); (r = t.pendingProps), (a = (o = t.memoizedState).element), Zi(e, t), Di(t, r, null, n); var s = t.memoizedState; if (((r = s.element), o.isDehydrated)) { if (((o = { element: r, isDehydrated: !1, cache: s.cache, pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, transitions: s.transitions }), (t.updateQueue.baseState = o), (t.memoizedState = o), 256 & t.flags)) { t = _s(e, t, r, n, (a = ds(Error(i(423)), t))); break e; } if (r !== a) { t = _s(e, t, r, n, (a = ds(Error(i(424)), t))); break e; } for (ri = ca(t.stateNode.containerInfo.firstChild), ni = t, ai = !0, ii = null, n = Qi(t, null, r, n), t.child = n; n; ) (n.flags = (-3 & n.flags) | 4096), (n = n.sibling); } else { if ((hi(), r === a)) { t = Gs(e, t, n); break e; } Ss(e, t, r, n); } t = t.child; } return t; case 5: return io(t), null === e && ci(t), (r = t.type), (a = t.pendingProps), (o = null !== e ? e.memoizedProps : null), (s = a.children), na(r, a) ? (s = null) : null !== o && na(r, o) && (t.flags |= 32), Is(e, t), Ss(e, t, s, n), t.child; case 6: return null === e && ci(t), null; case 13: return Ds(e, t, n); case 4: return ro(t, t.stateNode.containerInfo), (r = t.pendingProps), null === e ? (t.child = Yi(t, null, r, n)) : Ss(e, t, r, n), t.child; case 11: return (r = t.type), (a = t.pendingProps), ks(e, t, r, (a = t.elementType === r ? a : gi(r, a)), n); case 7: return Ss(e, t, t.pendingProps, n), t.child; case 8: case 12: return Ss(e, t, t.pendingProps.children, n), t.child; case 10: e: { if (((r = t.type._context), (a = t.pendingProps), (o = t.memoizedProps), (s = a.value), Ia(vi, r._currentValue), (r._currentValue = s), null !== o)) if (sr(o.value, s)) { if (o.children === a.children && !Ta.current) { t = Gs(e, t, n); break e; } } else for (null !== (o = t.child) && (o.return = t); null !== o; ) { var l = o.dependencies; if (null !== l) { s = o.child; for (var c = l.firstContext; null !== c; ) { if (c.context === r) { if (1 === o.tag) { (c = zi(-1, n & -n)).tag = 2; var d = o.updateQueue; if (null !== d) { var u = (d = d.shared).pending; null === u ? (c.next = c) : ((c.next = u.next), (u.next = c)), (d.pending = c); } } (o.lanes |= n), null !== (c = o.alternate) && (c.lanes |= n), xi(o.return, n, t), (l.lanes |= n); break; } c = c.next; } } else if (10 === o.tag) s = o.type === t.type ? null : o.child; else if (18 === o.tag) { if (null === (s = o.return)) throw Error(i(341)); (s.lanes |= n), null !== (l = s.alternate) && (l.lanes |= n), xi(s, n, t), (s = o.sibling); } else s = o.child; if (null !== s) s.return = o; else for (s = o; null !== s; ) { if (s === t) { s = null; break; } if (null !== (o = s.sibling)) { (o.return = s.return), (s = o); break; } s = s.return; } o = s; } Ss(e, t, a.children, n), (t = t.child); } return t; case 9: return (a = t.type), (r = t.pendingProps.children), Ci(t, n), (r = r((a = Ei(a)))), (t.flags |= 1), Ss(e, t, r, n), t.child; case 14: return (a = gi((r = t.type), t.pendingProps)), xs(e, t, r, (a = gi(r.type, a)), n); case 15: return Cs(e, t, t.type, t.pendingProps, n); case 17: return (r = t.type), (a = t.pendingProps), (a = t.elementType === r ? a : gi(r, a)), $s(e, t), (t.tag = 1), Za(r) ? ((e = !0), Fa(t)) : (e = !1), Ci(t, n), $i(t, r, a), Vi(t, r, a, n), Ts(null, t, r, !0, e, n); case 19: return Us(e, t, n); case 22: return Es(e, t, n); } throw Error(i(156, t.tag)); }; var Hc = "function" === typeof reportError ? reportError : function (e) { console.error(e); }; function Kc(e) { this._internalRoot = e; } function Yc(e) { this._internalRoot = e; } function Qc(e) { return !(!e || (1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType)); } function Xc(e) { return !(!e || (1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType && (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue))); } function Jc() {} function ed(e, t, n, r, a) { var i = n._reactRootContainer; if (i) { var o = i; if ("function" === typeof a) { var s = a; a = function () { var e = Vc(o); s.call(e); }; } Gc(t, o, e, a); } else o = (function (e, t, n, r, a) { if (a) { if ("function" === typeof r) { var i = r; r = function () { var e = Vc(o); i.call(e); }; } var o = $c(t, r, e, 0, null, !1, 0, "", Jc); return (e._reactRootContainer = o), (e[fa] = o.current), Ur(8 === e.nodeType ? e.parentNode : e), dc(), o; } for (; (a = e.lastChild); ) e.removeChild(a); if ("function" === typeof r) { var s = r; r = function () { var e = Vc(l); s.call(e); }; } var l = Oc(e, 0, !1, null, 0, !1, 0, "", Jc); return ( (e._reactRootContainer = l), (e[fa] = l.current), Ur(8 === e.nodeType ? e.parentNode : e), dc(function () { Gc(t, l, n, r); }), l ); })(n, t, e, a, r); return Vc(o); } (Yc.prototype.render = Kc.prototype.render = function (e) { var t = this._internalRoot; if (null === t) throw Error(i(409)); Gc(e, t, null, null); }), (Yc.prototype.unmount = Kc.prototype.unmount = function () { var e = this._internalRoot; if (null !== e) { this._internalRoot = null; var t = e.containerInfo; dc(function () { Gc(null, e, null, null); }), (t[fa] = null); } }), (Yc.prototype.unstable_scheduleHydration = function (e) { if (e) { var t = Ct(); e = { blockedOn: null, target: e, priority: t }; for (var n = 0; n < zt.length && 0 !== t && t < zt[n].priority; n++); zt.splice(n, 0, e), 0 === n && Dt(e); } }), (St = function (e) { switch (e.tag) { case 3: var t = e.stateNode; if (t.current.memoizedState.isDehydrated) { var n = ut(t.pendingLanes); 0 !== n && (bt(t, 1 | n), rc(t, Qe()), 0 === (6 & Al) && ((Ul = Qe() + 500), Ua())); } break; case 13: dc(function () { var t = Ti(e, 1); if (null !== t) { var n = ec(); nc(t, e, 1, n); } }), Wc(e, 1); } }), (kt = function (e) { if (13 === e.tag) { var t = Ti(e, 134217728); if (null !== t) nc(t, e, 134217728, ec()); Wc(e, 134217728); } }), (xt = function (e) { if (13 === e.tag) { var t = tc(e), n = Ti(e, t); if (null !== n) nc(n, e, t, ec()); Wc(e, t); } }), (Ct = function () { return yt; }), (Et = function (e, t) { var n = yt; try { return (yt = e), t(); } finally { yt = n; } }), (ke = function (e, t, n) { switch (t) { case "input": if ((X(e, n), (t = n.name), "radio" === n.type && null != t)) { for (n = e; n.parentNode; ) n = n.parentNode; for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), t = 0; t < n.length; t++) { var r = n[t]; if (r !== e && r.form === e.form) { var a = Sa(r); if (!a) throw Error(i(90)); W(r), X(r, a); } } } break; case "textarea": ie(e, n); break; case "select": null != (t = n.value) && ne(e, !!n.multiple, t, !1); } }), (Ae = cc), (Te = dc); var td = { usingClientEntryPoint: !1, Events: [ya, wa, Sa, Ie, Pe, cc] }, nd = { findFiberByHostInstance: ba, bundleType: 0, version: "18.2.0", rendererPackageName: "react-dom" }, rd = { bundleType: nd.bundleType, version: nd.version, rendererPackageName: nd.rendererPackageName, rendererConfig: nd.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: w.ReactCurrentDispatcher, findHostInstanceByFiber: function (e) { return null === (e = Ve(e)) ? null : e.stateNode; }, findFiberByHostInstance: nd.findFiberByHostInstance || function () { return null; }, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.2.0-next-9e3b772b8-20220608", }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var ad = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!ad.isDisabled && ad.supportsFiber) try { (at = ad.inject(rd)), (it = ad); } catch (de) {} } (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = td), (t.createPortal = function (e, t) { var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!Qc(t)) throw Error(i(200)); return Bc(e, t, null, n); }), (t.createRoot = function (e, t) { if (!Qc(e)) throw Error(i(299)); var n = !1, r = "", a = Hc; return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (a = t.onRecoverableError)), (t = Oc(e, 1, !1, null, 0, n, 0, r, a)), (e[fa] = t.current), Ur(8 === e.nodeType ? e.parentNode : e), new Kc(t); }), (t.findDOMNode = function (e) { if (null == e) return null; if (1 === e.nodeType) return e; var t = e._reactInternals; if (void 0 === t) { if ("function" === typeof e.render) throw Error(i(188)); throw ((e = Object.keys(e).join(",")), Error(i(268, e))); } return (e = null === (e = Ve(t)) ? null : e.stateNode); }), (t.flushSync = function (e) { return dc(e); }), (t.hydrate = function (e, t, n) { if (!Xc(t)) throw Error(i(200)); return ed(null, e, t, !0, n); }), (t.hydrateRoot = function (e, t, n) { if (!Qc(e)) throw Error(i(405)); var r = (null != n && n.hydratedSources) || null, a = !1, o = "", s = Hc; if ((null !== n && void 0 !== n && (!0 === n.unstable_strictMode && (a = !0), void 0 !== n.identifierPrefix && (o = n.identifierPrefix), void 0 !== n.onRecoverableError && (s = n.onRecoverableError)), (t = $c(t, null, e, 1, null != n ? n : null, a, 0, o, s)), (e[fa] = t.current), Ur(e), r)) for (e = 0; e < r.length; e++) (a = (a = (n = r[e])._getVersion)(n._source)), null == t.mutableSourceEagerHydrationData ? (t.mutableSourceEagerHydrationData = [n, a]) : t.mutableSourceEagerHydrationData.push(n, a); return new Yc(t); }), (t.render = function (e, t, n) { if (!Xc(t)) throw Error(i(200)); return ed(null, e, t, !1, n); }), (t.unmountComponentAtNode = function (e) { if (!Xc(e)) throw Error(i(40)); return ( !!e._reactRootContainer && (dc(function () { ed(null, null, e, !1, function () { (e._reactRootContainer = null), (e[fa] = null); }); }), !0) ); }), (t.unstable_batchedUpdates = cc), (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { if (!Xc(n)) throw Error(i(200)); if (null == e || void 0 === e._reactInternals) throw Error(i(38)); return ed(e, t, n, !1, r); }), (t.version = "18.2.0-next-9e3b772b8-20220608"); }, 21739: (e, t, n) => { "use strict"; var r = n(1168); (t.s = r.createRoot), r.hydrateRoot; }, 1168: (e, t, n) => { "use strict"; !(function e() { if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e); } catch (t) { console.error(t); } })(), (e.exports = n(30534)); }, 60596: (e, t, n) => { "use strict"; n.d(t, { ZP: () => g }); var r = n(63366), a = n(94578), i = n(47313), o = n(1168); const s = !1; var l = n(20010), c = "unmounted", d = "exited", u = "entering", p = "entered", h = "exiting", f = (function (e) { function t(t, n) { var r; r = e.call(this, t, n) || this; var a, i = n && !n.isMounting ? t.enter : t.appear; return (r.appearStatus = null), t.in ? (i ? ((a = d), (r.appearStatus = u)) : (a = p)) : (a = t.unmountOnExit || t.mountOnEnter ? c : d), (r.state = { status: a }), (r.nextCallback = null), r; } (0, a.Z)(t, e), (t.getDerivedStateFromProps = function (e, t) { return e.in && t.status === c ? { status: d } : null; }); var n = t.prototype; return ( (n.componentDidMount = function () { this.updateStatus(!0, this.appearStatus); }), (n.componentDidUpdate = function (e) { var t = null; if (e !== this.props) { var n = this.state.status; this.props.in ? n !== u && n !== p && (t = u) : (n !== u && n !== p) || (t = h); } this.updateStatus(!1, t); }), (n.componentWillUnmount = function () { this.cancelNextCallback(); }), (n.getTimeouts = function () { var e, t, n, r = this.props.timeout; return (e = t = n = r), null != r && "number" !== typeof r && ((e = r.exit), (t = r.enter), (n = void 0 !== r.appear ? r.appear : t)), { exit: e, enter: t, appear: n }; }), (n.updateStatus = function (e, t) { if ((void 0 === e && (e = !1), null !== t)) if ((this.cancelNextCallback(), t === u)) { if (this.props.unmountOnExit || this.props.mountOnEnter) { var n = this.props.nodeRef ? this.props.nodeRef.current : o.findDOMNode(this); n && (function (e) { e.scrollTop; })(n); } this.performEnter(e); } else this.performExit(); else this.props.unmountOnExit && this.state.status === d && this.setState({ status: c }); }), (n.performEnter = function (e) { var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, a = this.props.nodeRef ? [r] : [o.findDOMNode(this), r], i = a[0], l = a[1], c = this.getTimeouts(), d = r ? c.appear : c.enter; (!e && !n) || s ? this.safeSetState({ status: p }, function () { t.props.onEntered(i); }) : (this.props.onEnter(i, l), this.safeSetState({ status: u }, function () { t.props.onEntering(i, l), t.onTransitionEnd(d, function () { t.safeSetState({ status: p }, function () { t.props.onEntered(i, l); }); }); })); }), (n.performExit = function () { var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : o.findDOMNode(this); t && !s ? (this.props.onExit(r), this.safeSetState({ status: h }, function () { e.props.onExiting(r), e.onTransitionEnd(n.exit, function () { e.safeSetState({ status: d }, function () { e.props.onExited(r); }); }); })) : this.safeSetState({ status: d }, function () { e.props.onExited(r); }); }), (n.cancelNextCallback = function () { null !== this.nextCallback && (this.nextCallback.cancel(), (this.nextCallback = null)); }), (n.safeSetState = function (e, t) { (t = this.setNextCallback(t)), this.setState(e, t); }), (n.setNextCallback = function (e) { var t = this, n = !0; return ( (this.nextCallback = function (r) { n && ((n = !1), (t.nextCallback = null), e(r)); }), (this.nextCallback.cancel = function () { n = !1; }), this.nextCallback ); }), (n.onTransitionEnd = function (e, t) { this.setNextCallback(t); var n = this.props.nodeRef ? this.props.nodeRef.current : o.findDOMNode(this), r = null == e && !this.props.addEndListener; if (n && !r) { if (this.props.addEndListener) { var a = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], i = a[0], s = a[1]; this.props.addEndListener(i, s); } null != e && setTimeout(this.nextCallback, e); } else setTimeout(this.nextCallback, 0); }), (n.render = function () { var e = this.state.status; if (e === c) return null; var t = this.props, n = t.children, a = (t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef, (0, r.Z)(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"])); return i.createElement(l.Z.Provider, { value: null }, "function" === typeof n ? n(e, a) : i.cloneElement(i.Children.only(n), a)); }), t ); })(i.Component); function m() {} (f.contextType = l.Z), (f.propTypes = {}), (f.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: m, onEntering: m, onEntered: m, onExit: m, onExiting: m, onExited: m }), (f.UNMOUNTED = c), (f.EXITED = d), (f.ENTERING = u), (f.ENTERED = p), (f.EXITING = h); const g = f; }, 20010: (e, t, n) => { "use strict"; n.d(t, { Z: () => r }); const r = n(47313).createContext(null); }, 35918: (e, t, n) => { "use strict"; var r = n(47313), a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 }; function c(e, t, n) { var r, i = {}, c = null, d = null; for (r in (void 0 !== n && (c = "" + n), void 0 !== t.key && (c = "" + t.key), void 0 !== t.ref && (d = t.ref), t)) o.call(t, r) && !l.hasOwnProperty(r) && (i[r] = t[r]); if (e && e.defaultProps) for (r in (t = e.defaultProps)) void 0 === i[r] && (i[r] = t[r]); return { $$typeof: a, type: e, key: c, ref: d, props: i, _owner: s.current }; } (t.Fragment = i), (t.jsx = c), (t.jsxs = c); }, 80306: (e, t) => { "use strict"; var n = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.iterator; var f = { isMounted: function () { return !1; }, enqueueForceUpdate: function () {}, enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, m = Object.assign, g = {}; function v(e, t, n) { (this.props = e), (this.context = t), (this.refs = g), (this.updater = n || f); } function b() {} function y(e, t, n) { (this.props = e), (this.context = t), (this.refs = g), (this.updater = n || f); } (v.prototype.isReactComponent = {}), (v.prototype.setState = function (e, t) { if ("object" !== typeof e && "function" !== typeof e && null != e) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, e, t, "setState"); }), (v.prototype.forceUpdate = function (e) { this.updater.enqueueForceUpdate(this, e, "forceUpdate"); }), (b.prototype = v.prototype); var w = (y.prototype = new b()); (w.constructor = y), m(w, v.prototype), (w.isPureReactComponent = !0); var S = Array.isArray, k = Object.prototype.hasOwnProperty, x = { current: null }, C = { key: !0, ref: !0, __self: !0, __source: !0 }; function E(e, t, r) { var a, i = {}, o = null, s = null; if (null != t) for (a in (void 0 !== t.ref && (s = t.ref), void 0 !== t.key && (o = "" + t.key), t)) k.call(t, a) && !C.hasOwnProperty(a) && (i[a] = t[a]); var l = arguments.length - 2; if (1 === l) i.children = r; else if (1 < l) { for (var c = Array(l), d = 0; d < l; d++) c[d] = arguments[d + 2]; i.children = c; } if (e && e.defaultProps) for (a in (l = e.defaultProps)) void 0 === i[a] && (i[a] = l[a]); return { $$typeof: n, type: e, key: o, ref: s, props: i, _owner: x.current }; } function I(e) { return "object" === typeof e && null !== e && e.$$typeof === n; } var P = /\/+/g; function A(e, t) { return "object" === typeof e && null !== e && null != e.key ? (function (e) { var t = { "=": "=0", ":": "=2" }; return ( "$" + e.replace(/[=:]/g, function (e) { return t[e]; }) ); })("" + e.key) : t.toString(36); } function T(e, t, a, i, o) { var s = typeof e; ("undefined" !== s && "boolean" !== s) || (e = null); var l = !1; if (null === e) l = !0; else switch (s) { case "string": case "number": l = !0; break; case "object": switch (e.$$typeof) { case n: case r: l = !0; } } if (l) return ( (o = o((l = e))), (e = "" === i ? "." + A(l, 0) : i), S(o) ? ((a = ""), null != e && (a = e.replace(P, "$&/") + "/"), T(o, t, a, "", function (e) { return e; })) : null != o && (I(o) && (o = (function (e, t) { return { $$typeof: n, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner }; })(o, a + (!o.key || (l && l.key === o.key) ? "" : ("" + o.key).replace(P, "$&/") + "/") + e)), t.push(o)), 1 ); if (((l = 0), (i = "" === i ? "." : i + ":"), S(e))) for (var c = 0; c < e.length; c++) { var d = i + A((s = e[c]), c); l += T(s, t, a, d, o); } else if ( ((d = (function (e) { return null === e || "object" !== typeof e ? null : "function" === typeof (e = (h && e[h]) || e["@@iterator"]) ? e : null; })(e)), "function" === typeof d) ) for (e = d.call(e), c = 0; !(s = e.next()).done; ) l += T((s = s.value), t, a, (d = i + A(s, c++)), o); else if ("object" === s) throw ((t = String(e)), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.")); return l; } function R(e, t, n) { if (null == e) return e; var r = [], a = 0; return ( T(e, r, "", "", function (e) { return t.call(n, e, a++); }), r ); } function _(e) { if (-1 === e._status) { var t = e._result; (t = t()).then( function (t) { (0 !== e._status && -1 !== e._status) || ((e._status = 1), (e._result = t)); }, function (t) { (0 !== e._status && -1 !== e._status) || ((e._status = 2), (e._result = t)); } ), -1 === e._status && ((e._status = 0), (e._result = t)); } if (1 === e._status) return e._result.default; throw e._result; } var Z = { current: null }, z = { transition: null }, L = { ReactCurrentDispatcher: Z, ReactCurrentBatchConfig: z, ReactCurrentOwner: x }; (t.Children = { map: R, forEach: function (e, t, n) { R( e, function () { t.apply(this, arguments); }, n ); }, count: function (e) { var t = 0; return ( R(e, function () { t++; }), t ); }, toArray: function (e) { return ( R(e, function (e) { return e; }) || [] ); }, only: function (e) { if (!I(e)) throw Error("React.Children.only expected to receive a single React element child."); return e; }, }), (t.Component = v), (t.Fragment = a), (t.Profiler = o), (t.PureComponent = y), (t.StrictMode = i), (t.Suspense = d), (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = L), (t.cloneElement = function (e, t, r) { if (null === e || void 0 === e) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); var a = m({}, e.props), i = e.key, o = e.ref, s = e._owner; if (null != t) { if ((void 0 !== t.ref && ((o = t.ref), (s = x.current)), void 0 !== t.key && (i = "" + t.key), e.type && e.type.defaultProps)) var l = e.type.defaultProps; for (c in t) k.call(t, c) && !C.hasOwnProperty(c) && (a[c] = void 0 === t[c] && void 0 !== l ? l[c] : t[c]); } var c = arguments.length - 2; if (1 === c) a.children = r; else if (1 < c) { l = Array(c); for (var d = 0; d < c; d++) l[d] = arguments[d + 2]; a.children = l; } return { $$typeof: n, type: e.type, key: i, ref: o, props: a, _owner: s }; }), (t.createContext = function (e) { return ((e = { $$typeof: l, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }).Provider = { $$typeof: s, _context: e }), (e.Consumer = e); }), (t.createElement = E), (t.createFactory = function (e) { var t = E.bind(null, e); return (t.type = e), t; }), (t.createRef = function () { return { current: null }; }), (t.forwardRef = function (e) { return { $$typeof: c, render: e }; }), (t.isValidElement = I), (t.lazy = function (e) { return { $$typeof: p, _payload: { _status: -1, _result: e }, _init: _ }; }), (t.memo = function (e, t) { return { $$typeof: u, type: e, compare: void 0 === t ? null : t }; }), (t.startTransition = function (e) { var t = z.transition; z.transition = {}; try { e(); } finally { z.transition = t; } }), (t.unstable_act = function () { throw Error("act(...) is not supported in production builds of React."); }), (t.useCallback = function (e, t) { return Z.current.useCallback(e, t); }), (t.useContext = function (e) { return Z.current.useContext(e); }), (t.useDebugValue = function () {}), (t.useDeferredValue = function (e) { return Z.current.useDeferredValue(e); }), (t.useEffect = function (e, t) { return Z.current.useEffect(e, t); }), (t.useId = function () { return Z.current.useId(); }), (t.useImperativeHandle = function (e, t, n) { return Z.current.useImperativeHandle(e, t, n); }), (t.useInsertionEffect = function (e, t) { return Z.current.useInsertionEffect(e, t); }), (t.useLayoutEffect = function (e, t) { return Z.current.useLayoutEffect(e, t); }), (t.useMemo = function (e, t) { return Z.current.useMemo(e, t); }), (t.useReducer = function (e, t, n) { return Z.current.useReducer(e, t, n); }), (t.useRef = function (e) { return Z.current.useRef(e); }), (t.useState = function (e) { return Z.current.useState(e); }), (t.useSyncExternalStore = function (e, t, n) { return Z.current.useSyncExternalStore(e, t, n); }), (t.useTransition = function () { return Z.current.useTransition(); }), (t.version = "18.2.0"); }, 47313: (e, t, n) => { "use strict"; e.exports = n(80306); }, 46417: (e, t, n) => { "use strict"; e.exports = n(35918); }, 13095: (e, t) => { "use strict"; function n(e, t) { var n = e.length; e.push(t); e: for (; 0 < n; ) { var r = (n - 1) >>> 1, a = e[r]; if (!(0 < i(a, t))) break e; (e[r] = t), (e[n] = a), (n = r); } } function r(e) { return 0 === e.length ? null : e[0]; } function a(e) { if (0 === e.length) return null; var t = e[0], n = e.pop(); if (n !== t) { e[0] = n; e: for (var r = 0, a = e.length, o = a >>> 1; r < o; ) { var s = 2 * (r + 1) - 1, l = e[s], c = s + 1, d = e[c]; if (0 > i(l, n)) c < a && 0 > i(d, l) ? ((e[r] = d), (e[c] = n), (r = c)) : ((e[r] = l), (e[s] = n), (r = s)); else { if (!(c < a && 0 > i(d, n))) break e; (e[r] = d), (e[c] = n), (r = c); } } } return t; } function i(e, t) { var n = e.sortIndex - t.sortIndex; return 0 !== n ? n : e.id - t.id; } if ("object" === typeof performance && "function" === typeof performance.now) { var o = performance; t.unstable_now = function () { return o.now(); }; } else { var s = Date, l = s.now(); t.unstable_now = function () { return s.now() - l; }; } var c = [], d = [], u = 1, p = null, h = 3, f = !1, m = !1, g = !1, v = "function" === typeof setTimeout ? setTimeout : null, b = "function" === typeof clearTimeout ? clearTimeout : null, y = "undefined" !== typeof setImmediate ? setImmediate : null; function w(e) { for (var t = r(d); null !== t; ) { if (null === t.callback) a(d); else { if (!(t.startTime <= e)) break; a(d), (t.sortIndex = t.expirationTime), n(c, t); } t = r(d); } } function S(e) { if (((g = !1), w(e), !m)) if (null !== r(c)) (m = !0), z(k); else { var t = r(d); null !== t && L(S, t.startTime - e); } } function k(e, n) { (m = !1), g && ((g = !1), b(I), (I = -1)), (f = !0); var i = h; try { for (w(n), p = r(c); null !== p && (!(p.expirationTime > n) || (e && !T())); ) { var o = p.callback; if ("function" === typeof o) { (p.callback = null), (h = p.priorityLevel); var s = o(p.expirationTime <= n); (n = t.unstable_now()), "function" === typeof s ? (p.callback = s) : p === r(c) && a(c), w(n); } else a(c); p = r(c); } if (null !== p) var l = !0; else { var u = r(d); null !== u && L(S, u.startTime - n), (l = !1); } return l; } finally { (p = null), (h = i), (f = !1); } } "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); var x, C = !1, E = null, I = -1, P = 5, A = -1; function T() { return !(t.unstable_now() - A < P); } function R() { if (null !== E) { var e = t.unstable_now(); A = e; var n = !0; try { n = E(!0, e); } finally { n ? x() : ((C = !1), (E = null)); } } else C = !1; } if ("function" === typeof y) x = function () { y(R); }; else if ("undefined" !== typeof MessageChannel) { var _ = new MessageChannel(), Z = _.port2; (_.port1.onmessage = R), (x = function () { Z.postMessage(null); }); } else x = function () { v(R, 0); }; function z(e) { (E = e), C || ((C = !0), x()); } function L(e, n) { I = v(function () { e(t.unstable_now()); }, n); } (t.unstable_IdlePriority = 5), (t.unstable_ImmediatePriority = 1), (t.unstable_LowPriority = 4), (t.unstable_NormalPriority = 3), (t.unstable_Profiling = null), (t.unstable_UserBlockingPriority = 2), (t.unstable_cancelCallback = function (e) { e.callback = null; }), (t.unstable_continueExecution = function () { m || f || ((m = !0), z(k)); }), (t.unstable_forceFrameRate = function (e) { 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : (P = 0 < e ? Math.floor(1e3 / e) : 5); }), (t.unstable_getCurrentPriorityLevel = function () { return h; }), (t.unstable_getFirstCallbackNode = function () { return r(c); }), (t.unstable_next = function (e) { switch (h) { case 1: case 2: case 3: var t = 3; break; default: t = h; } var n = h; h = t; try { return e(); } finally { h = n; } }), (t.unstable_pauseExecution = function () {}), (t.unstable_requestPaint = function () {}), (t.unstable_runWithPriority = function (e, t) { switch (e) { case 1: case 2: case 3: case 4: case 5: break; default: e = 3; } var n = h; h = e; try { return t(); } finally { h = n; } }), (t.unstable_scheduleCallback = function (e, a, i) { var o = t.unstable_now(); switch (("object" === typeof i && null !== i ? (i = "number" === typeof (i = i.delay) && 0 < i ? o + i : o) : (i = o), e)) { case 1: var s = -1; break; case 2: s = 250; break; case 5: s = 1073741823; break; case 4: s = 1e4; break; default: s = 5e3; } return (e = { id: u++, callback: a, priorityLevel: e, startTime: i, expirationTime: (s = i + s), sortIndex: -1 }), i > o ? ((e.sortIndex = i), n(d, e), null === r(c) && e === r(d) && (g ? (b(I), (I = -1)) : (g = !0), L(S, i - o))) : ((e.sortIndex = s), n(c, e), m || f || ((m = !0), z(k))), e; }), (t.unstable_shouldYield = T), (t.unstable_wrapCallback = function (e) { var t = h; return function () { var n = h; h = t; try { return e.apply(this, arguments); } finally { h = n; } }; }); }, 62224: (e, t, n) => { "use strict"; e.exports = n(13095); }, 47376: (e, t) => { "use strict"; var n; Object.defineProperty(t, "__esModule", { value: !0 }), (t.errorMessages = t.ErrorType = void 0), (function (e) { (e.MalformedUnicode = "MALFORMED_UNICODE"), (e.MalformedHexadecimal = "MALFORMED_HEXADECIMAL"), (e.CodePointLimit = "CODE_POINT_LIMIT"), (e.OctalDeprecation = "OCTAL_DEPRECATION"), (e.EndOfString = "END_OF_STRING"); })((n = t.ErrorType || (t.ErrorType = {}))), (t.errorMessages = new Map([ [n.MalformedUnicode, "malformed Unicode character escape sequence"], [n.MalformedHexadecimal, "malformed hexadecimal character escape sequence"], [n.CodePointLimit, "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"], [n.OctalDeprecation, '"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'], [n.EndOfString, "malformed escape sequence at end of string"], ])); }, 998: (e, t, n) => { "use strict"; Object.defineProperty(t, "__esModule", { value: !0 }), (t.unraw = t.errorMessages = t.ErrorType = void 0); const r = n(47376); function a(e, t, n) { const a = (function (e) { return e.match(/[^a-f0-9]/i) ? NaN : parseInt(e, 16); })(e); if (Number.isNaN(a) || (void 0 !== n && n !== e.length)) throw new SyntaxError(r.errorMessages.get(t)); return a; } function i(e) { const t = a(e, r.ErrorType.MalformedHexadecimal, 2); return String.fromCharCode(t); } function o(e, t) { const n = a(e, r.ErrorType.MalformedUnicode, 4); if (void 0 !== t) { const e = a(t, r.ErrorType.MalformedUnicode, 4); return String.fromCharCode(n, e); } return String.fromCharCode(n); } function s(e) { if ("{" !== (t = e).charAt(0) || "}" !== t.charAt(t.length - 1)) throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode)); var t; const n = a(e.slice(1, -1), r.ErrorType.MalformedUnicode); try { return String.fromCodePoint(n); } catch (i) { throw i instanceof RangeError ? new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)) : i; } } function l(e) { let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; if (t) throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation)); const n = parseInt(e, 8); return String.fromCharCode(n); } Object.defineProperty(t, "ErrorType", { enumerable: !0, get: function () { return r.ErrorType; }, }), Object.defineProperty(t, "errorMessages", { enumerable: !0, get: function () { return r.errorMessages; }, }); const c = new Map([ ["b", "\b"], ["f", "\f"], ["n", "\n"], ["r", "\r"], ["t", "\t"], ["v", "\v"], ["0", "\0"], ]); function d(e) { return c.get(e) || e; } const u = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g; function p(e) { let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; return e.replace(u, function (e, n, a, c, u, p, h, f, m) { if (void 0 !== n) return "\\"; if (void 0 !== a) return i(a); if (void 0 !== c) return s(c); if (void 0 !== u) return o(u, p); if (void 0 !== h) return o(h); if ("0" === f) return "\0"; if (void 0 !== f) return l(f, !t); if (void 0 !== m) return d(m); throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString)); }); } (t.unraw = p), (t.default = p); }, 12549: (e, t, n) => { "use strict"; n.d(t, { Z: () => c }); const r = { randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; let a; const i = new Uint8Array(16); function o() { if (!a && ((a = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)), !a)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); return a(i); } const s = []; for (let d = 0; d < 256; ++d) s.push((d + 256).toString(16).slice(1)); function l(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; return (s[e[t + 0]] + s[e[t + 1]] + s[e[t + 2]] + s[e[t + 3]] + "-" + s[e[t + 4]] + s[e[t + 5]] + "-" + s[e[t + 6]] + s[e[t + 7]] + "-" + s[e[t + 8]] + s[e[t + 9]] + "-" + s[e[t + 10]] + s[e[t + 11]] + s[e[t + 12]] + s[e[t + 13]] + s[e[t + 14]] + s[e[t + 15]]).toLowerCase(); } const c = function (e, t, n) { if (r.randomUUID && !t && !e) return r.randomUUID(); const a = (e = e || {}).random || (e.rng || o)(); if (((a[6] = (15 & a[6]) | 64), (a[8] = (63 & a[8]) | 128), t)) { n = n || 0; for (let e = 0; e < 16; ++e) t[n + e] = a[e]; return t; } return l(a); }; }, 97326: (e, t, n) => { "use strict"; function r(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } n.d(t, { Z: () => r }); }, 87462: (e, t, n) => { "use strict"; function r() { return ( (r = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }), r.apply(this, arguments) ); } n.d(t, { Z: () => r }); }, 94578: (e, t, n) => { "use strict"; n.d(t, { Z: () => a }); var r = n(89611); function a(e, t) { (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), (0, r.Z)(e, t); } }, 63366: (e, t, n) => { "use strict"; function r(e, t) { if (null == e) return {}; var n, r, a = {}, i = Object.keys(e); for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (a[n] = e[n]); return a; } n.d(t, { Z: () => r }); }, 89611: (e, t, n) => { "use strict"; function r(e, t) { return ( (r = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) { return (e.__proto__ = t), e; }), r(e, t) ); } n.d(t, { Z: () => r }); }, 71002: (e, t, n) => { "use strict"; function r(e) { return ( (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }), r(e) ); } n.d(t, { Z: () => r }); }, 7136: (e, t, n) => { "use strict"; n.d(t, { ag: () => y }); var r = n(998); const a = (e) => "string" === typeof e, i = new Map(); function o(e) { return [...(Array.isArray(e) ? e : [e]), "en"]; } function s(e, t, n) { const r = o(e); return d( () => u("date", r, n), () => new Intl.DateTimeFormat(r, n) ).format(a(t) ? new Date(t) : t); } function l(e, t, n) { const r = o(e); return d( () => u("number", r, n), () => new Intl.NumberFormat(r, n) ).format(t); } function c(e, t, n, r) { let { offset: a = 0, ...i } = r; const s = o(e), l = t ? d( () => u("plural-ordinal", s), () => new Intl.PluralRules(s, { type: "ordinal" }) ) : d( () => u("plural-cardinal", s), () => new Intl.PluralRules(s, { type: "cardinal" }) ); return i[n] ?? i[l.select(n - a)] ?? i.other; } function d(e, t) { const n = e(); let r = i.get(n); return r || ((r = t()), i.set(n, r)), r; } function u(e, t, n) { return `${e}-${t.join("-")}-${JSON.stringify(n)}`; } const p = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, h = function (e, t) { let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; t = t || e; const r = (e) => (a(e) ? n[e] || { style: e } : e), i = (e, a) => { const i = Object.keys(n).length ? r("number") : {}, o = l(t, e, i); return a.replace("#", o); }; return { plural: (e, n) => { const { offset: r = 0 } = n, a = c(t, !1, e, n); return i(e - r, a); }, selectordinal: (e, n) => { const { offset: r = 0 } = n, a = c(t, !0, e, n); return i(e - r, a); }, select: (e, t) => t[e] ?? t.other, number: (e, n) => l(t, e, r(n)), date: (e, n) => s(t, e, r(n)), undefined: (e) => e, }; }; var f = Object.defineProperty, m = (e, t, n) => ( ((e, t, n) => { t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n); })(e, "symbol" !== typeof t ? t + "" : t, n), n ); var g = Object.defineProperty, v = (e, t, n) => ( ((e, t, n) => { t in e ? g(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n); })(e, "symbol" !== typeof t ? t + "" : t, n), n ); class b extends class { constructor() { m(this, "_events", {}); } on(e, t) { return this._hasEvent(e) || (this._events[e] = []), this._events[e].push(t), () => this.removeListener(e, t); } removeListener(e, t) { if (!this._hasEvent(e)) return; const n = this._events[e].indexOf(t); ~n && this._events[e].splice(n, 1); } emit(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; this._hasEvent(e) && this._events[e].map((e) => e.apply(this, n)); } _hasEvent(e) { return Array.isArray(this._events[e]); } } { constructor(e) { super(), v(this, "_locale"), v(this, "_locales"), v(this, "_localeData"), v(this, "_messages"), v(this, "_missing"), v(this, "t", this._.bind(this)), (this._messages = {}), (this._localeData = {}), null != e.missing && (this._missing = e.missing), null != e.messages && this.load(e.messages), null != e.localeData && this.loadLocaleData(e.localeData), (null == e.locale && null == e.locales) || this.activate(e.locale, e.locales); } get locale() { return this._locale; } get locales() { return this._locales; } get messages() { return this._messages[this._locale] ?? {}; } get localeData() { return this._localeData[this._locale] ?? {}; } _loadLocaleData(e, t) { null == this._localeData[e] ? (this._localeData[e] = t) : Object.assign(this._localeData[e], t); } loadLocaleData(e, t) { null != t ? this._loadLocaleData(e, t) : Object.keys(e).forEach((t) => this._loadLocaleData(t, e[t])), this.emit("change"); } _load(e, t) { null == this._messages[e] ? (this._messages[e] = t) : Object.assign(this._messages[e], t); } load(e, t) { null != t ? this._load(e, t) : Object.keys(e).forEach((t) => this._load(t, e[t])), this.emit("change"); } loadAndActivate(e) { let { locale: t, locales: n, messages: r } = e; (this._locale = t), (this._locales = n || void 0), (this._messages[this._locale] = r), this.emit("change"); } activate(e, t) { (this._locale = e), (this._locales = t), this.emit("change"); } _(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, { message: n, formats: i } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; a(e) || ((t = e.values || t), (n = e.message), (e = e.id)); const o = !this.messages[e], s = this._missing; if (s && o) return "function" === typeof s ? s(this._locale, e) : s; o && this.emit("missing", { id: e, locale: this._locale }); let l = this.messages[e] || n || e; return a(l) && p.test(l) ? JSON.parse(`"${l}"`) : a(l) ? l : (function (e, t, n) { return function (i) { const o = h(t, n, arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}), s = (e) => Array.isArray(e) ? e.reduce((e, t) => { if (a(t)) return e + t; const [n, r, l] = t; let c = {}; null == l || a(l) ? (c = l) : Object.keys(l).forEach((e) => { c[e] = s(l[e]); }); const d = o[r](i[n], c); return null == d ? e : e + d; }, "") : e, l = s(e); return a(l) && p.test(l) ? r(l.trim()) : a(l) ? l.trim() : l; }; })( l, this._locale, this._locales )(t, i); } date(e, t) { return s(this._locales || this._locale, e, t); } number(e, t) { return l(this._locales || this._locale, e, t); } } const y = (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; return new b(e); })(); }, 45675: (e, t, n) => { "use strict"; n.d(t, { bd: () => h, cC: () => f }); var r = n(47313); const a = /<([a-zA-Z0-9]+)>(.*?)<\/\1>|<([a-zA-Z0-9]+)\/>/, i = /(?:\r\n|\r|\n)/g, o = { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, menuitem: !0 }; function s(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; const n = c(0, "$lingui$"), d = e.replace(i, "").split(a); if (1 === d.length) return e; const u = [], p = d.shift(); p && u.push(p); for (const [a, i, c] of l(d)) { let e = "undefined" !== typeof a ? t[a] : void 0; (!e || (o[e.type] && i)) && (e ? console.error(`${e.type} is a void element tag therefore it must have no children`) : console.error(`Can't use element at index '${a}' as it is not declared in the original translation`), (e = r.createElement(r.Fragment))), Array.isArray(e) && (e = r.createElement(r.Fragment, {}, e)), u.push(r.cloneElement(e, { key: n() }, i ? s(i, t) : e.props.children)), c && u.push(c); } return u; } function l(e) { if (!e.length) return []; const [t, n, r, a] = e.slice(0, 4); return [[t || r, n || "", a]].concat(l(e.slice(4, e.length))); } const c = function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ""; return () => `${t}_${e++}`; }; function d(e) { const { render: t, component: n, id: a, message: i, formats: o, lingui: { i18n: l, defaultComponent: c }, } = e, d = { ...e.values }, p = { ...e.components }; d && Object.keys(d).forEach((e) => { const t = d[e]; if (!(r.isValidElement(t) || (Array.isArray(t) && t.every(r.isValidElement)))) return; const n = Object.keys(p).length; (p[n] = t), (d[e] = `<${n}/>`); }); const h = l && "function" === typeof l._ ? l._(a, d, { message: i, formats: o }) : a, f = h ? s(h, p) : null; if (null === t || null === n) return f; const m = c || u, g = { id: a, message: i, translation: f, isTranslated: a !== f && i !== f, children: f }; if (t && n) console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored."); else if (t && "function" !== typeof t) console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`); else if (n && "function" !== typeof n) return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${n}`), r.createElement(m, g, f); if ("function" === typeof t) return t(g); const v = n || m; return r.createElement(v, g, f); } const u = (e) => { let { children: t } = e; return r.createElement(r.Fragment, null, t); }, p = r.createContext(null); const h = (e) => { let { i18n: t, defaultComponent: n, children: a } = e; const i = r.useRef(t.locale), o = r.useCallback(() => ({ i18n: t, defaultComponent: n, _: t.t.bind(t) }), [t, n]), [s, l] = r.useState(o()); return ( r.useEffect(() => { const e = () => { (i.current = t.locale), l(o()); }, n = t.on("change", e); return i.current !== t.locale && e(), n; }, [t, o]), i.current ? r.createElement(p.Provider, { value: s }, a) : null ); }; function f(e) { const t = r.useContext(p); return r.createElement(d, { ...e, lingui: t }); } }, }, t = {}; function n(r) { var a = t[r]; if (void 0 !== a) return a.exports; var i = (t[r] = { id: r, loaded: !1, exports: {} }); return e[r].call(i.exports, i, i.exports, n), (i.loaded = !0), i.exports; } (n.m = e), (n.n = (e) => { var t = e && e.__esModule ? () => e.default : () => e; return n.d(t, { a: t }), t; }), (() => { var e, t = Object.getPrototypeOf ? (e) => Object.getPrototypeOf(e) : (e) => e.__proto__; n.t = function (r, a) { if ((1 & a && (r = this(r)), 8 & a)) return r; if ("object" === typeof r && r) { if (4 & a && r.__esModule) return r; if (16 & a && "function" === typeof r.then) return r; } var i = Object.create(null); n.r(i); var o = {}; e = e || [null, t({}), t([]), t(t)]; for (var s = 2 & a && r; "object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e) => (o[e] = () => r[e])); return (o.default = () => r), n.d(i, o), i; }; })(), (n.d = (e, t) => { for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: t[r] }); }), (n.f = {}), (n.e = (e) => Promise.all(Object.keys(n.f).reduce((t, r) => (n.f[r](e, t), t), []))), (n.u = (e) => "static/js/1708334879473/" + e + "." + { 208: "2ab1588f", 410: "1efa50d5", 752: "0e9addba", 859: "613b6869", 863: "197e11ab", 1123: "74cae874", 1325: "0e5c7d18", 1658: "4425a516", 1690: "2ccb8c0b", 1750: "4c3fc745", 2012: "46b8ce74", 2014: "45f030bf", 2064: "1bed0656", 2386: "33e648fa", 2553: "afdbce42", 2633: "d0105514", 2724: "e5e2935d", 3030: "8abf7bbd", 3358: "bfe2ccec", 3452: "f85a153e", 3535: "ebaa73c9", 3643: "a199095a", 3751: "974c66ef", 3853: "014229c3", 3938: "cd79d4b4", 3969: "bb135e0c", 3999: "f6fd602d", 4040: "53c57e8a", 4168: "5d48b33a", 4500: "c3b31556", 5061: "3f310f94", 5080: "4f56a133", 5385: "fcac462b", 5395: "4670a1f7", 5662: "635ecdb8", 5709: "1917b798", 6012: "d88196b0", 6164: "5872392e", 6204: "7949807e", 6271: "6c1b9c84", 6327: "1233dfd9", 6355: "4192412f", 6448: "5fb74a02", 6513: "b0b613f7", 6544: "c36f3327", 6571: "63b2d14e", 6861: "25e6bde6", 6876: "22878adb", 7006: "165b226d", 7134: "c76b36dd", 7318: "c8b4bbd8", 7328: "8bc08094", 7554: "08c1b08e", 7935: "6bee852a", 8046: "0d248248", 8355: "9e7ce936", 8393: "03657191", 8736: "8b1b5306", 9051: "78073426", 9936: "2ee988f8", 9976: "8a0b4c84", 9980: "2cddf26d" }[e] + ".js"), (n.miniCssF = (e) => {}), (n.g = (function () { if ("object" === typeof globalThis) return globalThis; try { return this || new Function("return this")(); } catch (e) { if ("object" === typeof window) return window; } })()), (n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)), (() => { var e = {}, t = "crazygames-gameframe:"; n.l = (r, a, i, o) => { if (e[r]) e[r].push(a); else { var s, l; if (void 0 !== i) for (var c = document.getElementsByTagName("script"), d = 0; d < c.length; d++) { var u = c[d]; if (u.getAttribute("src") == r || u.getAttribute("data-webpack") == t + i) { s = u; break; } } s || ((l = !0), ((s = document.createElement("script")).charset = "utf-8"), (s.timeout = 120), n.nc && s.setAttribute("nonce", n.nc), s.setAttribute("data-webpack", t + i), (s.src = r)), (e[r] = [a]); var p = (t, n) => { (s.onerror = s.onload = null), clearTimeout(h); var a = e[r]; if ((delete e[r], s.parentNode && s.parentNode.removeChild(s), a && a.forEach((e) => e(n)), t)) return t(n); }, h = setTimeout(p.bind(null, void 0, { type: "timeout", target: s }), 12e4); (s.onerror = p.bind(null, s.onerror)), (s.onload = p.bind(null, s.onload)), l && document.head.appendChild(s); } }; })(), (n.r = (e) => { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }), (n.nmd = (e) => ((e.paths = []), e.children || (e.children = []), e)), (n.p = "/"), (() => { var e = { 179: 0 }; n.f.j = (t, r) => { var a = n.o(e, t) ? e[t] : void 0; if (0 !== a) if (a) r.push(a[2]); else { var i = new Promise((n, r) => (a = e[t] = [n, r])); r.push((a[2] = i)); var o = n.p + n.u(t), s = new Error(); n.l( o, (r) => { if (n.o(e, t) && (0 !== (a = e[t]) && (e[t] = void 0), a)) { var i = r && ("load" === r.type ? "missing" : r.type), o = r && r.target && r.target.src; (s.message = "Loading chunk " + t + " failed.\n(" + i + ": " + o + ")"), (s.name = "ChunkLoadError"), (s.type = i), (s.request = o), a[1](s); } }, "chunk-" + t, t ); } }; var t = (t, r) => { var a, i, o = r[0], s = r[1], l = r[2], c = 0; if (o.some((t) => 0 !== e[t])) { for (a in s) n.o(s, a) && (n.m[a] = s[a]); if (l) l(n); } for (t && t(r); c < o.length; c++) (i = o[c]), n.o(e, i) && e[i] && e[i][0](), (e[i] = 0); }, r = (self.webpackChunkcrazygames_gameframe = self.webpackChunkcrazygames_gameframe || []); r.forEach(t.bind(null, 0)), (r.push = t.bind(null, r.push.bind(r))); })(); n(47178); })();