1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[478],{338:(e,r,t)=>{"use strict";t.d(r,{TikTokPixel:()=>o});var a=t(758),s=t(63),n=t(2115);function o(e){let{autoTrack:r=!0}=e,t=(0,s.usePathname)();return(0,n.useEffect)(()=>{a.pg.initialize()},[]),(0,n.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{a.pg.trackPageView()},100);return()=>clearTimeout(e)},[t,r]),null}},730:(e,r,t)=>{"use strict";t.d(r,{DynamicFooter:()=>m});var a=t(5155),s=t(6978),n=t(3401),o=t(9157),l=t(7470),i=t(8955),c=t(6328),d=t(2115);let m=e=>{let{name:r,logo:t,contactEmail:m,locales:u,metadata:x,socials:h,friendLinks:g,popularGames:p}=e,f=(0,i.c3)("Footer"),b=(0,c.Ym)(),v=(0,o.a8)(),[j,N]=(0,d.useState)(!1),y=u.defaultLocale;(0,d.useEffect)(()=>{localStorage.getItem("cookieConsent")||N(!0)},[]);let w=e=>{localStorage.setItem("cookieConsent",e),N(!1)},k=(e,r)=>r?(0,a.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":e,title:f("socialMediaTitle",{platform:e}),className:"text-primary-foreground/70 hover:text-primary-foreground transition-colors",children:(0,a.jsx)(s.I,{name:e.toLowerCase(),size:20})}):null,A={en:"\uD83C\uDDFA\uD83C\uDDF8",de:"\uD83C\uDDE9\uD83C\uDDEA",fr:"\uD83C\uDDEB\uD83C\uDDF7",ja:"\uD83C\uDDEF\uD83C\uDDF5",ko:"\uD83C\uDDF0\uD83C\uDDF7","zh-CN":"\uD83C\uDDE8\uD83C\uDDF3","zh-TW":"\uD83C\uDDED\uD83C\uDDF0","es-ES":"\uD83C\uDDEA\uD83C\uDDF8",it:"\uD83C\uDDEE\uD83C\uDDF9",nl:"\uD83C\uDDF3\uD83C\uDDF1","pt-PT":"\uD83C\uDDF5\uD83C\uDDF9"},C=v==="/".concat(b)?"/":v.replace(new RegExp("^/".concat(b)),"");return(0,a.jsxs)("footer",{className:"bg-primary dark:bg-slate-800 text-primary-foreground pt-6 md:pt-8 pb-6 mt-auto",children:[(0,a.jsxs)("div",{className:"container mx-auto px-4 sm:px-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-8 mb-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center mb-4",children:[(0,a.jsx)(s.I,{name:t.light,alt:r,className:(0,n.cn)("min-w-[1.5rem] min-h-[1.5rem] max-w-[3rem] max-h-[2rem]","sm:min-w-[1.75rem] sm:min-h-[1.75rem] sm:max-w-[5rem] sm:max-h-[2.25rem]","lg:min-w-[2rem] lg:min-h-[2rem] lg:max-w-[7rem] lg:max-h-[2.5rem]","w-auto h-auto mr-1 sm:mr-2 flex-shrink-0 object-contain")}),(0,a.jsx)("span",{className:"text-xl font-bold text-primary-foreground",children:r})]}),(0,a.jsx)("p",{className:"mb-4 text-sm leading-relaxed text-primary-foreground/80",children:null==x?void 0:x.description})]}),p&&p.length>0?(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-primary-foreground mb-4",children:f("popularGames")}),(0,a.jsx)("ul",{className:"space-y-2 text-primary-foreground/80",children:p.slice(0,5).map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(o.N_,{href:"/games/".concat(e.slug),className:"hover:text-primary-foreground/80 transition-colors",title:"".concat(e.gameLocaleName),children:e.gameLocaleName})},e.id))})]}):(0,a.jsx)("div",{}),g&&g.length>0?(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-primary-foreground mb-4",children:f("friendLinks")}),(0,a.jsx)("ul",{className:"space-y-2 text-primary-foreground/80",children:g.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(o.N_,{href:e.url,className:"hover:text-primary-foreground/80 transition-colors",title:e.name,rel:"noopener noreferrer",target:"_blank",children:e.name})},e.name))})]}):(0,a.jsx)("div",{}),m&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-primary-foreground mb-4",children:f("contactUs")}),(0,a.jsxs)("div",{className:"flex items-center mb-3 text-primary-foreground/80",children:[(0,a.jsx)(s.I,{name:"mail",className:"mr-2",size:16}),(0,a.jsx)("a",{href:"mailto:".concat(m),className:"hover:text-primary-foreground transition-colors",children:m})]}),h&&(0,a.jsxs)("div",{className:"flex space-x-4 mt-3",children:[k("Twitter",h.twitter),k("Facebook",h.facebook),k("Instagram",h.instagram),k("Youtube",h.youtube),k("Linkedin",h.linkedin)]})]})]}),(0,a.jsx)("div",{className:"flex justify-center text-sm mb-2",children:u.supportedLocales&&u.supportedLocales.length>1&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-x-3 gap-y-2 sm:justify-end",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 text-primary-foreground
1/70"}),u.supportedLocales.map(e=>{var r,t;return(0,a.jsxs)(o.N_,{href:C,locale:e===y?".":e,className:"flex items-center text-primary-foreground/70 hover:text-primary-foreground transition-colors ".concat(b===e?"font-bold":""),children:[(0,a.jsx)("span",{className:"mr-1",children:null!=(t=A[e])?t:"\uD83C\uDFF3ï¸"}),(null==(r=u.supportedLanguages[e])?void 0:r.localName)||e]},e)})]})}),(0,a.jsx)("div",{className:"border-t border-border/50 pt-2 text-sm flex flex-col sm:flex-row justify-center items-center",children:(0,a.jsxs)("div",{className:"text-primary-foreground/70 sm:mb-0 flex flex-col sm:flex-row justify-center items-center gap-2",children:[(0,a.jsxs)("div",{className:"mb-2 sm:mb-0",children:["\xa9 ",new Date().getFullYear()," ",r,". ",f("allRightsReserved")]}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center gap-2",children:[(0,a.jsx)(o.N_,{href:"/privacy-policy",className:"hover:text-primary-foreground transition-colors underline",title:f("privacyPolicy"),children:f("privacyPolicy")}),(0,a.jsx)(o.N_,{href:"/terms-of-service",className:"hover:text-primary-foreground transition-colors underline",title:f("termsOfService"),children:f("termsOfService")}),(0,a.jsx)(o.N_,{href:"/about-us",className:"hover:text-primary-foreground transition-colors underline",title:"About Us",children:"About Us"}),(0,a.jsx)(o.N_,{href:"/contact-us",className:"hover:text-primary-foreground transition-colors underline",title:"Contact Us",children:"Contact Us"}),(0,a.jsx)(o.N_,{href:"/copyright-infringement-notice-procedure",className:"hover:text-primary-foreground transition-colors underline",title:"Copyright Notice",children:"Copyright Notice"}),(0,a.jsx)(o.N_,{href:"https://qizhilu.com",target:"_blank",className:"hover:text-primary-foreground transition-colors",title:f("termsOfService"),children:"Powered by qizhilu.com"})]})]})})]}),j&&(0,a.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-card p-4 z-50 shadow-lg transition-opacity duration-300 opacity-100 text-card-foreground",children:(0,a.jsxs)("div",{className:"container mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"text-sm text-center sm:text-left",children:[f("cookieConsentText")," ",(0,a.jsx)(o.N_,{href:"/cookies",className:"text-primary hover:text-primary/80 underline ml-1","aria-label":f("learnMoreAboutCookies"),children:f("learnMore")})]}),(0,a.jsxs)("div",{className:"flex space-x-3 flex-shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:()=>w("all"),className:"bg-primary hover:bg-primary/90 text-primary-foreground px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:f("acceptAll")}),(0,a.jsx)("button",{type:"button",onClick:()=>w("necessary"),className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:f("acceptNecessary")})]})]})})]})}},1745:(e,r,t)=>{"use strict";t.d(r,{default:()=>n});var a=t(5155),s=t(8321);function n(e){let{clarityId:r}=e;return(0,a.jsx)(s.default,{id:"microsoft-clarity",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "'.concat(r,'");\n ')}})}},2702:(e,r,t)=>{"use strict";t.d(r,{DynamicHeader:()=>D});var a=t(5155),s=t(9012),n=t(9206),o=t(3401),l=t(9157),i=t(6328),c=t(2115),d=t(2360),m=t(6651),u=t(5229),x=t(8955);let h=e=>{let{className:r}=e,t=(0,x.c3)(),s=(0,l.rd)(),[n,o]=(0,c.useState)(!1),[i,h]=(0,c.useState)(""),g=(0,c.useRef)(null),p=e=>{e.preventDefault(),i.trim()&&(s.push("/search?q=".concat(encodeURIComponent(i.trim()))),o(!1),h(""))},f=()=>{o(!1),h("")};return(0,c.useEffect)(()=>{n&&g.current&&g.current.focus()},[n]),(0,c.useEffect)(()=>{let e=e=>{var r;!g.current||(null==(r=g.current.closest(".search-container"))?void 0:r.contains(e.target))||f()};return n&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]),(0,a.jsx)("div",{className:(0,d.cn)("relative flex items-center",r),children:n?(0,a.jsx)("div",{className:"search-container fixed inset-x-0 top-0 z-[60] bg-primary dark:bg-slate-800 shadow-lg animate-in slide-in-from-top duration-200 md:absolute md:inset-x-auto md:top-auto md:right-0 md:w-80 md:rounded-lg md:mt-2 md:animate-in md:slide-in-from-right md:duration-200",children:(0,a.jsx)("form",{onSubmit:p,className:"flex items-center p-3 md:p-2",children:(0,a.jsxs)("div",{className:"relative flex-1",children:[(0,a.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-primary-foreground
1/60"}),(0,a.jsx)("input",{ref:g,type:"text",value:i,onChange:e=>h(e.target.value),onKeyDown:e=>{"Escape"===e.key&&f(),"Enter"===e.key&&p(e)},placeholder:t("Search.searchPlaceholder"),className:"w-full pl-10 pr-10 py-2 bg-primary-foreground/10 border border-primary-foreground/20 rounded-lg text-primary-foreground placeholder:text-primary-foreground/60 focus:outline-none focus:ring-2 focus:ring-primary-foreground/30 focus:border-transparent transition-all duration-200"}),(0,a.jsx)("button",{type:"button",onClick:f,className:"absolute right-2 top-1/2 transform -translate-y-1/2 p-1 rounded-full hover:bg-primary-foreground/10 transition-colors duration-200","aria-label":t("Common.close"),children:(0,a.jsx)(u.A,{className:"h-4 w-4 text-primary-foreground/60"})})]})})}):(0,a.jsx)("button",{type:"button",onClick:()=>{o(!0)},className:"p-2 rounded-full hover:bg-primary-foreground/10 transition-colors duration-200","aria-label":t("Search.searchButton"),children:(0,a.jsx)(m.A,{className:"h-5 w-5 text-primary-foreground"})})})};var g=t(7470),p=t(4033),f=t(63),b=t(186);function v(e){let{...r}=e;return(0,a.jsx)(b.bL,{"data-slot":"dropdown-menu",...r})}function j(e){let{...r}=e;return(0,a.jsx)(b.l9,{"data-slot":"dropdown-menu-trigger",...r})}function N(e){let{className:r,sideOffset:t=4,...s}=e;return(0,a.jsx)(b.ZL,{children:(0,a.jsx)(b.UC,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,d.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",r),...s})})}function y(e){let{className:r,inset:t,variant:s="default",...n}=e;return(0,a.jsx)(b.q7,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":s,className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r),...n})}let w={en:"\uD83C\uDDFA\uD83C\uDDF8",de:"\uD83C\uDDE9\uD83C\uDDEA",fr:"\uD83C\uDDEB\uD83C\uDDF7",ja:"\uD83C\uDDEF\uD83C\uDDF5",ko:"\uD83C\uDDF0\uD83C\uDDF7","zh-TW":"\uD83C\uDDED\uD83C\uDDF0","zh-CN":"\uD83C\uDDE8\uD83C\uDDF3","es-ES":"\uD83C\uDDEA\uD83C\uDDF8",it:"\uD83C\uDDEE\uD83C\uDDF9",nl:"\uD83C\uDDF3\uD83C\uDDF1","pt-PT":"\uD83C\uDDF5\uD83C\uDDF9"},k=e=>{var r,t;let{languages:s,defaultLocale:n="en",variant:o="dropdown"}=e,c=(0,i.Ym)(),m=s[c],u=(0,f.usePathname)(),h=(0,x.c3)("Common"),b=u==="/".concat(c)?"/":u.replace(new RegExp("^/".concat(c)),"");return"mobile-flat"===o?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center mb-3 text-foreground/70",children:[(0,a.jsx)(g.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:h("selectLanguage")})]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(s).map(e=>{var r;let[t,s]=e;return(0,a.jsxs)(l.N_,{className:(0,d.cn)("flex items-center gap-2 p-3 rounded-lg transition-all duration-200 touch-manipulation min-h-[48px]",c===t?"bg-card text-card-foreground border-2 border-accent shadow-sm":"bg-card/60 text-card-foreground/80 hover:bg-card/80 hover:text-card-foreground border border-border/40"),href:b,locale:t===n?".":t,title:s.localName,children:[(0,a.jsx)("span",{className:"text-base flex-shrink-0",children:null!=(r=w[t])?r:"\uD83C\uDFF3ï¸"}),(0,a.jsx)("span",{className:"text-sm truncate font-medium",children:s.localName})]},t)})})]}):(0,a.jsxs)(v,{children:[(0,a.jsx)(j,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:"flex cursor-pointer items-center bg-primary/80 text-primary-foreground dark:bg-transparent dark:text-primary-foreground rounded px-3 py-1 text-sm hover:bg-primary/90 dark:hover:bg-primary-foreground
1/10 transition-colors",children:[(0,a.jsxs)("div",{className:"hidden md:flex items-center",children:[(0,a.jsx)(g.A,{className:"mr-2 h-4 w-4"}),null!=(r=null==m?void 0:m.localName)?r:c,(0,a.jsx)(p.A,{className:"ml-2 h-4 w-4"})]}),(0,a.jsxs)("div",{className:"md:hidden flex items-center",children:[(0,a.jsx)("span",{className:"text-base mr-1",children:null!=(t=w[c])?t:"\uD83C\uDFF3ï¸"}),(0,a.jsx)(p.A,{className:"h-4 w-4"})]})]})}),(0,a.jsx)(N,{align:"center",sideOffset:8,className:" w-44 bg-background/95 text-foreground dark:bg-card/95 dark:text-card-foreground backdrop-blur-md p-2 rounded-md border border-border/40 shadow-lg animate-in slide-in-from-top-2 duration-200 relative before:absolute before:inset-0 before:rounded-md before:bg-gradient-to-r before:from-border/10 before:via-transparent before:to-border/10 before:animate-pulse before:pointer-events-none ",children:(0,a.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(s).map(e=>{var r;let[t,s]=e;return(0,a.jsx)(y,{asChild:!0,children:(0,a.jsxs)(l.N_,{className:(0,d.cn)("flex items-center gap-2 w-full rounded-md px-2 py-2 transition-colors cursor-pointer",c===t?"bg-accent text-accent-foreground font-semibold":"hover:bg-accent/50 text-foreground/80 hover:text-foreground"),href:b,locale:t===n?".":t,children:[(0,a.jsx)("span",{className:"mr-2 text-lg",children:null!=(r=w[t])?r:"\uD83C\uDFF3ï¸"}),s.localName]})},t)})})})]})};var A=t(7984),C=t(1537),z=t(4017),L=t(2894),S=t(2889),E=t(1456),_=t(7726);function I(e){let{isOpen:r,onClose:t,locale:s,searchData:n}=e,o=(0,x.c3)(),[i,d]=(0,c.useState)(""),[h,g]=(0,c.useState)([]),{games:p,categories:f,tags:b}=n,v=(0,c.useMemo)(()=>f.map(e=>{if(e.icon)return{...e,displayIcon:null};let r=e.slug||e.name||e.code,t=(0,S._f)(r,"w-5 h-5 text-primary");return{...e,displayIcon:t}}),[f]);return((0,c.useEffect)(()=>{r&&p.length>0&&g(p.slice(0,20))},[r,p]),(0,c.useEffect)(()=>{""===i.trim()?g(p.slice(0,20)):g(p.filter(e=>{let r=e.gameLocaleName||e.name||"",t=e.gameLocaleDescription||"";return r.toLowerCase().includes(i.toLowerCase())||t.toLowerCase().includes(i.toLowerCase())}).slice(0,20))},[i,p]),r)?(0,a.jsx)("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"absolute inset-0 bg-background",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 p-4 border-b border-border bg-card",children:[(0,a.jsx)(A.$,{variant:"ghost",size:"icon",onClick:t,className:"shrink-0 hover:bg-muted",children:(0,a.jsx)(u.A,{className:"w-6 h-6 text-foreground"})}),(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-muted-foreground"}),(0,a.jsx)(C.p,{placeholder:o("Common.searchPlaceholder"),value:i,onChange:e=>d(e.target.value),className:"pl-10 bg-muted/50 border-muted-foreground/20 focus:border-primary",autoFocus:!0})]})]}),(0,a.jsx)(z.F,{className:"h-[calc(100vh-80px)] bg-background",children:(0,a.jsxs)("div",{className:"p-4 space-y-6",children:[(0,a.jsxs)("section",{children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-3 text-foreground flex items-center gap-2",children:[(0,a.jsx)(E.A,{className:"w-5 h-5 text-primary"}),o("Common.Categories")]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:v.map(e=>(0,a.jsxs)(l.N_,{href:"/c/".concat(e.slug),className:"flex items-center gap-3 p-3 rounded-lg border border-border bg-card hover:bg-muted transition-colors",onClick:t,children:[(0,a.jsx)("span",{className:"shrink-0",children:e.displayIcon}),(0,a.jsx)("span",{className:"text-sm font-medium truncate text-foreground",children:e.name})]},e.code))})]}),b.length>0&&(0,a.jsxs)("section",{children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-3 text-foreground flex items-center gap-2",children:[(0,a.jsx)(_.A,{className:"w-5 h-5 text-primary"}),o("GameList.tags")]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:b.slice(0,10).map(e=>(0,a.jsxs)(l.N_,{href:"/tags/".concat(e.slug),className:"inline-flex items-center gap-1 px-3 py-1.5 rounded-full text-xs font-medium bg-muted text-foreground hover:bg-primary hover:text-primary-foreground transition-colors",onClick:t,children:[e.iconName&&(0,a.jsx)("span",{children:e.iconName}),(0,a.jsx)("span",{children:e.name})]},e.id))})]}),(0,a.jsxs)("section",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold mb-3 text-foreground",children:o(i?"Common.searchResults":"Common.recommendedGames")}),(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:h.map(e=>(0,a.jsx)("div",{className:"w-full",onClick:t,children:(0,a.jsx)(L.GameCard,{name:e.gameLocaleName||e.name,slug:e.slug,image:e.screenshotUrl,rating:e.rating})},e.id))}),0===h.length&&i&&(0,a.jsx)("div",{className:"text-center py-8 bg-muted/20 rounded-lg",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:o("Common.noResultsFound")})})]})]})})]})}):null}var P=t(6978),M=t(5379);let T=e=>{let{variant:r="icon",className:t=""}=e,{theme:s,setTheme:n}=(0,M.D)(),o=(0,x.c3)("ThemeToggle"),l=()=>{n("dark"===s?"light":"dark")};return"menu-item"===r?(0,a.jsx)("button",{type:"button",onClick:l,className:"w-full text-left font-medium hover:text-indigo-200 transition-colors flex items-center py-2 ".concat(t),"aria-label":o("toggleTheme"),children:(0,a.jsxs)("span",{className:"flex items-center",children:["dark"===s?(0,a.jsx)(P.I,{name:"Sun",className:"h-5 w-5 mr-1",size:20}):(0,a.jsx)(P.I,{name:"Moon",className:"h-5 w-5 mr-1",size:20}),o("dark"===s?"lightMode":"darkMode")]})}):"button"===r?(0,a.jsx)("button",{type:"button",onClick:l,className:"flex items-center px-3 py-2 rounded-md bg-primary/10 text-primary hover:bg-primary/20 transition-colors ".concat(t),"aria-label":o("toggleTheme"),children:"dark"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.I,{name:"Sun",className:"h-4 w-4 mr-2",size:16}),o("lightMode")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.I,{name:"Moon",className:"h-4 w-4 mr-2",size:16}),o("darkMode")]})}):"mobile-menu"===r?(0,a.jsx)("button",{type:"button",onClick:l,className:"p-2 rounded-full text-foreground hover:bg-accent/80 transition-colors duration-200 ".concat(t),"aria-label":o("toggleTheme"),children:"dark"===s?(0,a.jsx)(P.I,{name:"Sun",className:"h-5 w-5",size:20}):(0,a.jsx)(P.I,{name:"Moon",className:"h-5 w-5",size:20})}):(0,a.jsx)("button",{type:"button",onClick:l,className:"p-2 rounded-full text-primary-foreground hover:bg-primary-foreground
1/10 transition-colors duration-200 ".concat(t),"aria-label":o("toggleTheme"),children:"dark"===s?(0,a.jsx)(P.I,{name:"Sun",className:"h-5 w-5",size:20}):(0,a.jsx)(P.I,{name:"Moon",className:"h-5 w-5",size:20})})},D=e=>{let{navigations:r,locales:t,name:d,logo:m,searchData:u}=e,x=(0,l.a8)(),g=(0,i.Ym)(),[p,f]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!1),[j,N]=(0,c.useState)({}),y=!1;try{var w;let e=(0,n.c)();y=null!=(w=null==e?void 0:e.isGameBox)&&w}catch(e){y=!1}let A=()=>{f(!p)},C=()=>{v(!b)},z=e=>"/"===e?x===e:x===e||x.startsWith("".concat(e,"/")),L=function(e){var r;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=z(e.href),i=e.children&&e.children.length>0,c=(0,o.cn)(0===t?{"inline-flex items-center px-3 lg:px-4 py-2 rounded-lg transition-all duration-200 text-sm lg:text-base whitespace-nowrap":!0,"bg-accent/30 text-primary-foreground font-medium":n,"hover:scale-105 hover:bg-primary-foreground/10 hover:text-primary-foreground":!n}:{"flex items-center px-3 lg:px-4 py-2 lg:py-2.5 hover:bg-accent hover:text-accent-foreground rounded-lg mx-2 transition-all duration-150 text-sm lg:text-base":!0,"bg-accent/20 text-accent-foreground font-medium":n}),d=(0,o.cn)("absolute w-48 lg:w-56 bg-card/95 backdrop-blur-sm rounded-xl shadow-xl border border-border/50 opacity-0 invisible transition-all duration-200 transform z-[70]",0===t?"left-0 mt-1 origin-top scale-95 group-hover:opacity-100 group-hover:visible group-hover:scale-100":"left-full top-0 origin-left scale-95 -translate-x-2 group-hover/sub:opacity-100 group-hover/sub:visible group-hover/sub:scale-100 group-hover/sub:translate-x-1 ml-1");return(0,a.jsxs)("div",{className:(0,o.cn)(0===t?"relative group":"relative group/sub"),children:[(0,a.jsxs)(l.N_,{href:e.href,className:c,title:e.label,children:[e.iconName&&(0,a.jsx)(s.I,{name:e.iconName,className:"h-4 w-4 lg:h-5 lg:w-5 mr-1 lg:mr-2 flex-shrink-0",size:20}),(0,a.jsx)("span",{className:"truncate",children:e.label}),i&&(0===t?(0,a.jsx)(s.I,{name:"ChevronDown",className:"h-3 w-3 lg:h-4 lg:w-4 ml-1 lg:ml-2 flex-shrink-0 transition-transform group-hover:rotate-180",size:16}):(0,a.jsx)(s.I,{name:"ChevronRight",className:"h-3 w-3 lg:h-4 lg:w-4 ml-auto flex-shrink-0 transform group-hover/sub:translate-x-1 transition-transform",size:16}))]}),i&&(0,a.jsx)("div",{className:d,children:(0,a.jsx)("div",{className:"py-2 lg:py-3 text-card-foreground",children:null==(r=e.children)?void 0:r.map(e=>L(e,t+1))})})]},e.id)},S=function(e){var r;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=z(e.href),i=e.children&&e.children.length>0,c=j[e.id]||!1,d=(0,o.cn)("relative flex items-center py-3.5 sm:py-3 rounded-xl transition-all duration-300 touch-manipulation min-h-[48px] w-full sm:min-h-[44px] group overflow-hidden",(e=>{switch(e){case 0:return"pl-4 sm:pl-5";case 1:return"pl-8 sm:pl-10";case 2:return"pl-12 sm:pl-15";case 3:return"pl-16 sm:pl-20";default:return"pl-20 sm:pl-24"}})(t),{"text-primary bg-gradient-to-r from-primary/15 via-primary/10 to-primary/5 font-semibold shadow-sm border border-primary/20":n,"text-foreground/80 hover:text-foreground hover:bg-gradient-to-r hover:from-accent/10 hover:via-accent/5 hover:to-transparent active:scale-[0.98]":!n}),m=(0,o.cn)("relative p-2.5 sm:p-3 rounded-xl transition-all duration-300 touch-manipulation min-h-[44px] min-w-[44px] flex items-center justify-center group overflow-hidden",{"text-foreground/60 hover:text-foreground hover:bg-accent/80 active:bg-accent active:scale-95":!c,"text-primary bg-primary/10 hover:bg-primary/15":c});return(0,a.jsxs)("div",{className:"relative w-full",children:[0===t?null:(0,a.jsx)("div",{className:"absolute left-2 top-0 bottom-0 w-px bg-gradient-to-b from-border/20 via-border/40 to-border/20"}),(0,a.jsxs)("div",{className:"flex items-center justify-between w-full gap-2",children:[(0,a.jsxs)(l.N_,{href:e.href,className:d,onClick:()=>!i&&f(!1),role:"menuitem",title:e.label,children:[n&&(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/5 via-transparent to-accent/5 opacity-50"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-accent/10 via-accent/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,a.jsxs)("div",{className:"relative flex items-center w-full min-w-0",children:[e.iconName&&(0,a.jsxs)("div",{className:"relative flex-shrink-0 mr-3 sm:mr-4",children:[(0,a.jsx)("div",{className:(0,o.cn)("absolute inset-0 rounded-lg transition-all duration-300",n?"bg-primary/20 scale-110":"bg-transparent group-hover:bg-accent/20 group-hover:scale-105")}),(0,a.jsx)(s.I,{name:e.iconName,className:(0,o.cn)("relative h-4 w-4 sm:h-5 sm:w-5 transition-all duration-300",n?"text-primary scale-110":"text-foreground
1/70 group-hover:text-foreground group-hover:scale-105"),size:20})]}),(0,a.jsx)("span",{className:(0,o.cn)("text-sm sm:text-base truncate transition-all duration-300",n?"font-semibold":"font-medium group-hover:translate-x-1"),children:e.label})]})]}),i&&(0,a.jsxs)("button",{type:"button",onClick:()=>{var r;return r=e.id,void N(e=>({...e,[r]:!e[r]}))},className:m,title:"".concat(c?"æ¶èµ·":"å±å¼"," ").concat(e.label),children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-accent/20 to-accent/5 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),(0,a.jsx)(s.I,{name:"ChevronDown",className:(0,o.cn)("relative h-3 w-3 sm:h-4 sm:w-4 transition-all duration-300",c?"rotate-180 text-primary":"text-foreground/60 group-hover:text-foreground"),size:16})]})]}),i&&c&&(0,a.jsxs)("div",{id:"submenu-".concat(e.id),className:"relative mt-2 ml-3 sm:ml-4 border-l-2 border-gradient-to-b from-border/40 via-border/20 to-transparent pl-2 sm:pl-3 animate-in slide-in-from-top-2 duration-300 ease-out","aria-label":"".concat(e.label," åèå"),children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-accent/5 to-transparent rounded-r-xl opacity-50"}),(0,a.jsx)("div",{className:"relative space-y-1",children:null==(r=e.children)?void 0:r.map((e,r)=>(0,a.jsx)("div",{className:"animate-in slide-in-from-left duration-200 ease-out [animation-delay:".concat(30*r,"ms]"),children:S(e,t+1)},e.id))})]})]},e.id)};return(0,a.jsxs)("header",{className:"bg-primary dark:bg-slate-800 text-primary-foreground shadow-lg sticky top-0 z-50 w-full",children:[(0,a.jsxs)("div",{className:"w-full px-3 sm:px-4 lg:px-6 py-2 sm:py-3 flex items-center",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsxs)(l.N_,{href:"/",className:"text-lg sm:text-xl lg:text-2xl font-bold flex items-center min-w-0",title:d,children:[(0,a.jsx)(s.I,{name:m.light,alt:d,className:(0,o.cn)("min-w-[2rem] min-h-[2rem] max-w-[4rem] max-h-[3rem]","sm:min-w-[1.75rem] sm:min-h-[1.75rem] sm:max-w-[5rem] sm:max-h-[2.25rem]","lg:min-w-[2rem] lg:min-h-[2rem] lg:max-w-[7rem] lg:max-h-[2.5rem]","w-auto h-auto mr-1 sm:mr-2 flex-shrink-0 object-contain")}),(0,a.jsx)("span",{className:"hidden sm:inline truncate",children:d})]})}),(0,a.jsx)("div",{className:"flex-1 flex justify-center",children:(0,a.jsx)("nav",{className:"hidden lg:flex xl:space-x-6 lg:space-x-4 text-base lg:text-lg",children:r.map(e=>L(e))})}),(0,a.jsxs)("div",{className:"flex items-center space-x-1 sm:space-x-2 flex-shrink-0",children:[y?(0,a.jsx)("button",{type:"button",className:"text-primary-foreground p-2 hover:bg-primary-foreground/10 rounded-lg transition-colors touch-manipulation flex items-center justify-center",onClick:C,"aria-label":"æç´¢",title:"æç´¢",children:(0,a.jsx)(s.I,{name:"Search",className:"h-5 w-5 sm:h-6 sm:w-6",size:24})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(h,{})}),(0,a.jsx)("button",{type:"button",className:"sm:hidden text-primary-foreground p-2 hover:bg-primary-foreground/10 rounded-lg transition-colors touch-manipulation flex items-center justify-center",onClick:C,"aria-label":"æç´¢",title:"æç´¢",children:(0,a.jsx)(s.I,{name:"Search",className:"h-5 w-5",size:20})})]}),(0,a.jsx)(T,{}),(0,a.jsx)(k,{languages:t.supportedLanguages,defaultLocale:t.defaultLocale}),(0,a.jsx)("button",{type:"button",className:"lg:hidden text-primary-foreground p-2 hover:bg-primary-foreground/10 rounded-lg transition-colors touch-manipulation",onClick:A,"aria-label":"Toggle menu",children:(0,a.jsx)(s.I,{name:"Menu",className:"h-5 w-5 sm:h-6 sm:w-6",size:24})})]})]}),p&&(0,a.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-md z-[60] lg:hidden animate-in fade-in duration-300",onClick:A,"aria-labelledby":"mobile-menu-title",onKeyDown:e=>{"Escape"===e.key&&A()},children:(0,a.jsxs)("div",{className:"fixed inset-y-0 right-0 w-full max-w-xs sm:max-w-sm bg-gradient-to-br from-background via-background to-background/95 shadow-2xl border-l border-border/20 transform transition-all duration-500 ease-out animate-in slide-in-from-right",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-between p-4 sm:p-5 border-b border-border/30 bg-gradient-to-r from-primary/5 to-accent/5 backdrop-blur-sm",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/10 via-trans
1parent to-accent/10 opacity-50"}),(0,a.jsxs)("div",{className:"relative flex items-center min-w-0 flex-1",children:[(0,a.jsx)(s.I,{name:m.light,className:"h-6 w-6 sm:h-7 sm:w-7 mr-2 sm:mr-3 flex-shrink-0 text-primary",size:28}),(0,a.jsx)("h2",{id:"mobile-menu-title",className:"text-base sm:text-lg font-bold truncate text-foreground/90",children:d})]}),(0,a.jsxs)("button",{type:"button",className:"relative p-2.5 rounded-xl hover:bg-accent/80 active:bg-accent active:scale-95 transition-all duration-200 touch-manipulation flex-shrink-0 group",onClick:A,"aria-label":"å
³éèå",children:[(0,a.jsx)("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-br from-accent/20 to-accent/5 opacity-0 group-hover:opacity-100 transition-opacity duration-200"}),(0,a.jsx)(s.I,{name:"X",className:"relative h-4 w-4 sm:h-5 sm:w-5 text-foreground/70 group-hover:text-foreground transition-colors duration-200",size:20})]})]}),(0,a.jsxs)("div",{className:"relative overflow-y-auto h-[calc(100vh-5rem)] sm:h-[calc(100vh-5.5rem)] py-3 sm:py-4 scrollbar-thin scrollbar-thumb-border/30 scrollbar-track-transparent",children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-4 bg-gradient-to-b from-background to-transparent pointer-events-none z-10"}),(0,a.jsx)("nav",{className:"px-3 sm:px-4 space-y-1","aria-label":"主导èª",children:r.map((e,r)=>(0,a.jsx)("div",{className:"animate-in slide-in-from-right duration-300 ease-out [animation-delay:".concat(50*r,"ms]"),children:S(e)},e.id))}),(0,a.jsxs)("div",{className:"relative mt-6 sm:mt-8 px-4 sm:px-5 pt-6 sm:pt-8",children:[(0,a.jsx)("div",{className:"absolute top-0 left-4 right-4 h-px bg-gradient-to-r from-transparent via-border/50 to-transparent"}),(0,a.jsxs)("div",{className:"relative bg-muted/60 rounded-xl p-4 border border-border/30 backdrop-blur-sm space-y-4",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(T,{variant:"mobile-menu"})}),(0,a.jsx)(k,{languages:t.supportedLanguages,defaultLocale:t.defaultLocale,variant:"mobile-flat"})]})]}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-4 bg-gradient-to-t from-background to-transparent pointer-events-none z-10"})]})]})}),(y||!y&&window.innerWidth<640)&&(0,a.jsx)(I,{isOpen:b,onClose:()=>v(!1),locale:g,searchData:u})]})}},2889:(e,r,t)=>{"use strict";t.d(r,{_f:()=>C});var a=t(5155),s=t(2317),n=t(6154),o=t(814),l=t(4664),i=t(4947),c=t(4255),d=t(5449),m=t(3586),u=t(8599),x=t(6613),h=t(3457),g=t(9347),p=t(639),f=t(7910),b=t(8854),v=t(6589),j=t(8198),N=t(9880),y=t(6667),w=t(5740),k=t(2115);let A=Object.keys({Gamepad2:s.A,Zap:n.A,Target:o.A,Sword:l.A,Car:i.A,Plane:c.A,Music2:d.A,Music:m.A,Puzzle:u.A,Trophy:x.A,Heart:h.A,Star:g.A,Rocket:p.A,Shield:f.A,Crown:b.A,Diamond:v.A,Flame:j.A,Bolt:N.A,Wand2:y.A,Sparkles:w.A});function C(e,r){let t=r||"w-4 h-4";if(!e||A.length<=0){let e=s.A;return k.createElement(e,{className:t})}let C=0;for(let r=0;r<e.length;r++)C=(C<<5)-C+e.charCodeAt(r),C&=C;let z=Math.abs(C)%A.length;switch(A[z],z){case 0:default:return(0,a.jsx)(s.A,{className:t});case 1:return(0,a.jsx)(n.A,{className:t});case 2:return(0,a.jsx)(o.A,{className:t});case 3:return(0,a.jsx)(l.A,{className:t});case 4:return(0,a.jsx)(i.A,{className:t});case 5:return(0,a.jsx)(c.A,{className:t});case 6:return(0,a.jsx)(d.A,{className:t});case 7:return(0,a.jsx)(m.A,{className:t});case 8:return(0,a.jsx)(u.A,{className:t});case 9:return(0,a.jsx)(x.A,{className:t});case 10:return(0,a.jsx)(h.A,{className:t});case 11:return(0,a.jsx)(g.A,{className:t});case 12:return(0,a.jsx)(p.A,{className:t});case 13:return(0,a.jsx)(f.A,{className:t});case 14:return(0,a.jsx)(b.A,{className:t});case 15:return(0,a.jsx)(v.A,{className:t});case 16:return(0,a.jsx)(j.A,{className:t});case 17:return(0,a.jsx)(N.A,{className:t});case 18:return(0,a.jsx)(y.A,{className:t});case 19:return(0,a.jsx)(w.A,{className:t})}}},6290:(e,r,t)=>{"use strict";t.d(r,{GameBoxLayout:()=>v});var a=t(5155),s=t(9206),n=t(2115),o=t(9157),l=t(2889),i=t(2360),c=t(5993),d=t(6983),m=t(9347),u=t(1524),x=t(3457),h=t(4033),g=t(8955),p=t(63);function f(e){let{categories:r,isExpanded:t,onToggle:s,isMobileExpanded:f}=e,b=(0,p.usePathname)(),v=(0,g.c3)(),j=(0,n.useRef)(null),[N,y]=(0,n.use
1State)(!1),w=(0,n.useMemo)(()=>r.map(e=>({...e,displayIcon:e.icon||(0,l._f)(e.slug||e.name)})),[r]),k=(0,n.useCallback)(()=>{let e=j.current;if(!e)return;let{scrollTop:r,scrollHeight:t,clientHeight:a}=e;y(t>a&&!(r+a>=t-5))},[]);(0,n.useEffect)(()=>{let e=j.current;if(!e)return;k();let r=()=>k(),t=()=>k();e.addEventListener("scroll",r),window.addEventListener("resize",t);let a=new MutationObserver(()=>{setTimeout(k,0)});return a.observe(e,{childList:!0,subtree:!0}),()=>{e.removeEventListener("scroll",r),window.removeEventListener("resize",t),a.disconnect()}},[k,t,f]);let A=[{name:v("Sidebar.home"),href:"/",icon:(0,a.jsx)(c.A,{className:"w-4 h-4"})},{name:v("Sidebar.recentlyPlayed"),href:"/games/recently-played",icon:(0,a.jsx)(d.A,{className:"w-4 h-4"})},{name:v("Sidebar.newGames"),href:"/games/new-game",icon:(0,a.jsx)(m.A,{className:"w-4 h-4"})},{name:v("Sidebar.popularGames"),href:"/games/popular",icon:(0,a.jsx)(u.A,{className:"w-4 h-4"})},{name:v("Sidebar.myFavorites"),href:"/games/favorites",icon:(0,a.jsx)(x.A,{className:"w-4 h-4"})}];return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:(0,i.cn)("fixed left-0 top-16 h-[calc(100vh-4rem)] bg-sidebar text-sidebar-foreground z-50 transition-[width] duration-300 border-r border-t border-sidebar-border overflow-hidden",t||f?"w-[200px]":"w-[50px]",!f&&"max-md:-translate-x-full"),onMouseEnter:()=>{window.innerWidth>=768&&!t&&s()},onMouseLeave:()=>{window.innerWidth>=768&&t&&s()},onClick:()=>{window.innerWidth<768&&f&&s()},children:(0,a.jsxs)("div",{ref:j,className:"h-full overflow-y-auto scrollbar-hide relative",children:[(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col space-y-2 transition-all duration-300",t||f?"p-4":"p-2"),children:[A.map(e=>(0,a.jsxs)(o.N_,{href:e.href,className:(0,i.cn)("flex items-center gap-2 rounded-lg text-sidebar-foreground transition-all hover:bg-accent hover:text-accent-foreground whitespace-nowrap","px-2 py-1.5",b===e.href?"bg-accent text-accent-foreground":""),title:e.name,children:[(0,a.jsx)("span",{className:"shrink-0",children:e.icon}),(0,a.jsx)("span",{className:(0,i.cn)("transition-all duration-300 font-normal text-sm noto-sans-hk-bold overflow-hidden whitespace-nowrap",t||f?"opacity-100 ml-2":"opacity-0 w-0 ml-0"),children:e.name})]},e.name)),(0,a.jsx)("div",{className:"border-t border-sidebar-border my-2"}),w.map(e=>(0,a.jsxs)(o.N_,{href:"/c/".concat(e.slug),className:(0,i.cn)("flex items-center gap-2 rounded-lg text-sidebar-foreground transition-all hover:bg-accent hover:text-accent-foreground whitespace-nowrap","px-2 py-1.5",b==="/c/".concat(e.slug)?"bg-accent text-accent-foreground":""),title:e.name,children:[(0,a.jsx)("span",{className:"shrink-0 w-4 h-4",children:e.displayIcon}),(0,a.jsx)("span",{className:(0,i.cn)("transition-all duration-300 font-normal text-sm noto-sans-hk-bold overflow-hidden whitespace-nowrap",t||f?"opacity-100 ml-2":"opacity-0 w-0 ml-0"),children:e.name})]},e.name)),(0,a.jsx)("div",{className:"border-t border-sidebar-border my-2"})]}),N&&(t||f)&&(0,a.jsx)("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 z-10",children:(0,a.jsx)("div",{className:"bg-sidebar-accent/80 backdrop-blur-sm rounded-full p-1 animate-bounce",children:(0,a.jsx)(h.A,{className:"w-4 h-4 text-sidebar-foreground/70"})})})]})})})}function b(e){let{children:r,categories:t}=e,{isExpanded:o,setIsExpanded:l,setIsGameBox:i}=(0,s.c)(),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{i(!0),window.innerWidth,l(!1);let e=()=>{window.innerWidth<768||d(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.jsxs)("div",{className:"relative min-h-screen",children:[(0,a.jsx)(f,{categories:t,isExpanded:o,isMobileExpanded:c,onToggle:()=>{window.innerWidth<768?d(!c):l(!o)}}),(0,a.jsx)("div",{className:"md:ml-[40px] ml-0 transition-all duration-300 bg-background",children:r})]})}function v(e){let{children:r,categories:t}=e;return(0,a.jsx)(s.D,{children:(0,a.jsx)(b,{categories:t,children:r})})}},9206:(e,r,t)=>{"use strict";t.d(r,{D:()=>l,c:()=>o});var a=t(5155),s=t(2115);let n=s.createContext(null);function o(){let e=s.useContext(n);if(e)return e;let[r,t]=s.useState(!1);return{state:"collapsed",open:!1,setOpen:()=>{},openMobile:!1,setOpenMobile:()=>{},isMobile:!1,toggleSidebar:()=>{},isExpanded:!1,setIsExpanded:()=>{},isGameBox:!1,setIsGameBox:t}}function l(e){let{children:r}=e,[t,o]=s.useState(!1),[l,i]=s.useState(!1),[c,d]=s.useState(!1),[m,u]=s.useState(!1);return s.useEffect(()=>{let e=()=>{u(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.jsx)(n.Provider,{value:{state:l?"expanded":"collapsed",open:l,setOpen:i,openM
1obile:c,setOpenMobile:d,isMobile:m,toggleSidebar:()=>i(!l),isExpanded:l,setIsExpanded:i,isGameBox:t,setIsGameBox:o},children:r})}},9312:(e,r,t)=>{"use strict";t.d(r,{default:()=>o});var a=t(5155),s=t(8321),n=t(2115);function o(e){let{gaId:r}=e,t=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{t.current||(t.current=!0,window.dataLayer=window.dataLayer||[],window.gtag=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];window.dataLayer.push(r)})},[]),(0,a.jsx)(s.default,{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(r),onLoad:()=>{window.gtag&&(window.gtag("js",new Date),window.gtag("config",r))}})}},9536:(e,r,t)=>{Promise.resolve().then(t.bind(t,9312)),Promise.resolve().then(t.bind(t,1745)),Promise.resolve().then(t.bind(t,338)),Promise.resolve().then(t.bind(t,6290)),Promise.resolve().then(t.bind(t,730)),Promise.resolve().then(t.bind(t,2702)),Promise.resolve().then(t.bind(t,7088)),Promise.resolve().then(t.bind(t,3809)),Promise.resolve().then(t.t.bind(t,1402,23))}},e=>{e.O(0,[426,358],()=>e(e.s=9536)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.