1import{i as d,aP as c,j as i}from"./DKrI48mU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="11e8440c-ae89-4b92-9edf-51ae65603ef0",e._sentryDebugIdIdentifier="sentry-dbid-11e8440c-ae89-4b92-9edf-51ae65603ef0")}catch{}})();const b=6e4;function p(){const e=d("leaderboards",()=>[]),a=d("leaderboards-fetched-at",()=>0),r=d("leaderboards-loading",()=>!1),t=d("leaderboards-error",()=>null),{isActive:l}=c(),u=async(n=!1)=>{if(!l("leaderboards")){e.value=[];return}const o=Date.now()-a.value<b;if(!(!n&&o&&e.value.length>0)&&!r.value)try{r.value=!0,t.value=null;const s=await i().api.leaderboards.index({});e.value=s?.data??[],a.value=Date.now()}catch(s){t.value=s,e.value=[],a.value=0}finally{r.value=!1}};return{leaderboards:e,isLoading:r,error:t,fetchLeaderboards:u,fetchLeaderboardById:async(n,o,s=1,f=20)=>l("leaderboards")?await i().api.leaderboards.show({params:{id:n},query:{periodId:o,page:s,limit:f}}):null,refresh:()=>u(!0)}}export{p as u};
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.