import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{load as n}from"cheerio";const r={path:`/latest`,categories:[`new-media`],example:`/newseed/latest`,url:`news.newseed.cn`,name:`最新新闻`,maintainers:[`p3psi-boo`],handler:i};async function i(){let r=`https://news.newseed.cn/`,i=n((await t({method:`get`,url:r})).data),a=i(`#news-list li`).toArray().map(e=>{let t=i(e),n=t.find(`h3 a`),r=n.attr(`href`)||``,a=n.text(),o=t.find(`.img img`).attr(`src`),s=t.find(`.info`),c=s.find(`.author a`).text();return{title:a,link:r,author:c,pubDate:s.find(`.date`).text(),category:t.find(`.tag a`).toArray().map(e=>i(e).text()).filter(e=>e!==c),description:o?`<img src="${o}"><br>${a}`:a}});return{title:`新芽 - 最新新闻`,link:r,item:await Promise.all(a.map(r=>e.tryGet(r.link,async()=>(r.description=n((await t({method:`get`,url:r.link})).data)(`.news-content`).html()||r.description,r))))}}export{r as route};