import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./logger-B0fjfmRH.mjs";import{t as n}from"./cache-DUthuMSu.mjs";import{t as r}from"./parse-date-BdYTmLpo.mjs";import{load as i}from"cheerio";const a={path:`/daily`,categories:[`social-media`],example:`/zhihu/daily`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`daily.zhihu.com/*`]}],name:`知乎日报`,maintainers:[`DHPO`,`pseudoyu`],handler:o,url:`daily.zhihu.com/*`};async function o(){let a=i(await e(`https://daily.zhihu.com/`));return{title:`知乎日报`,link:`https://daily.zhihu.com`,description:`每天3次，每次7分钟`,image:`http://static.daily.zhihu.com/img/new_home_v3/mobile_top_logo.png`,item:(await Promise.all(a(`.box`).toArray().map(async i=>{i=a(i);let o=`https://daily.zhihu.com/api/4`+i.find(`.link-button`).attr(`href`);try{let t=await n.tryGet(o,async()=>await e(o));return{title:t.title,description:t.body,link:t.url,image:t.image,pubDate:t.publish_time?r(t.publish_time,`X`):void 0}}catch(e){return t.debug(`Failed to fetch story detail: ${o} - ${e instanceof Error?e.message:String(e)}`),null}}))).filter(Boolean)}}export{a as route};