1import"./Bzak7iHL.js";import{aL as B,G as h,aM as _,aN as G,aR as w,aS as v,aP as H,aU as y,h as a,aY as c,a4 as I}from"./CU12suJz.js";import{s as N}from"./E1XMPBZz.js";import{i as T}from"./B3mSI_OH.js";import{s as d}from"./DGgtbgA4.js";import{s as U}from"./DrXI92S-.js";import{s as V}from"./BWV8yz7d.js";import{p as r}from"./C6zDqqZk.js";import{B as S,g as f}from"./CJdSqLjR.js";import{b as W}from"./CGaVVYJs.js";var A=w('<img class="icon svelte-5tuztr"/>'),M=w('<a><!> <span class="svelte-5tuztr"> </span></a>');function ee(t,e){B(e,!0);let s=r(e,"beta",3,!1),i=r(e,"category",3,void 0),R=r(e,"icon",3,!1),x=r(e,"selectable",3,!1),k=r(e,"style",3,void 0),z=c(()=>s()&&f.beta),C=c(()=>f.beta?!1:!s()&&i()==f.selectedCategory),l=c(()=>s()?S:i()),u=c(()=>a(l)?a(l).replace(/_/g," "):void 0);var o=M();let p;var g=v(o);{var E=n=>{var m=A();h(j=>{d(m,"alt",`${a(u)??"Recommended"??""} games`),d(m,"src",`/category_${j??""}.webp`)},[()=>a(l)?a(l).toLowerCase():"none"]),_(n,m)};T(g,n=>{R()&&n(E)})}var b=H(g,2),L=v(b,!0);y(b),y(o),h(()=>{p=U(o,1,"hash_tag svelte-5tuztr",null,p,{selected:x()&&(a(z)||a(C))}),d(o,"href",`/${(s()?S:i()??"")??""}/`),V(o,k()),N(L,a(u)??"Recommended")}),_(t,o),G()}const O=I({});async function P(){try{const t=`${W}/status/leaderboards.json`,e=await fetch(t);if(!e.ok)throw"fetch failed";const s=await e.json();O.games=s}catch(t){console.log(`Cannot load leaderboard summaries: ${t}`)}}setTimeout(()=>{try{P()}catch{console.log("Skip leaderboard summaries (SSR)")}},0);export{ee as H,O as s};
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.