import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{i as n,r,t as i}from"./util-CwwhE8sn.mjs";import{load as a}from"cheerio";const o={path:`/daily`,categories:[`new-media`],example:`/readhub/daily`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`readhub.cn/daily`]}],name:`每日早报`,maintainers:[`nczitzk`,`fashioncj`],handler:s,url:`readhub.cn/daily`};async function s(s){let c=s.req.query(`limit`)?Number.parseInt(s.req.query(`limit`),10):11,l=new URL(`daily`,i).href,u=new URL(`daily`,n).href,{data:d}=await t(l),f=d.data.items.slice(0,c).map(e=>({title:e.title,link:new URL(`topic/${e.uid}`,n).href,description:`<p>${e.summary}</p>`,guid:e.uid}));f=await r(f,e.tryGet);let{data:p}=await t(u),m=a(p),h=m(`meta[name="application-name"]`).prop(`content`),g=m(`meta[property="og:title"]`).prop(`content`),_=new URL(m(`link[rel="apple-touch-icon"]`).prop(`href`),n);return{item:f,title:`${h} - ${o.name}`,link:l,description:m(`meta[name="description"]`).prop(`content`),language:`zh`,image:`https://readhub.cn/icons/icon-192x192.png`,icon:_,logo:_,subtitle:g,author:h,allowEmpty:!0}}export{o as route};