import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{n,r,t as i}from"./const-BPgN7Hfn.mjs";import{load as a}from"cheerio";const o={path:`/`,categories:[`picture`],example:`/everia`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1,nsfw:!0},radar:[{source:[`everia.club/`],target:``}],name:`Latest`,maintainers:[`KTachibanaM`,`AiraNadih`],handler:s};async function s(o){let s=Number.parseInt(o.req.query(`limit`))||20,c=a((await t(n)).body),l=c(`article.blog-entry`).slice(0,s).toArray();return{title:`${i} - Latest`,link:n,item:await Promise.all(l.map(t=>{let n=c(t).find(`h2.entry-title a`).attr(`href`);return e.tryGet(n,()=>r(n))}))}}export{o as route};