import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{load as r}from"cheerio";import i from"p-map";const a=`https://claude.com`,o={path:`/blog`,categories:[`programming`],example:`/claude/blog`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`claude.com/blog`],target:`/blog`}],name:`Blog`,maintainers:[`zhenlohuang`],handler:s,url:`claude.com/blog`};async function s(o){let s=`${a}/blog`,c=r(await e(s)),l=o.req.query(`limit`)?Number.parseInt(o.req.query(`limit`),10):15;return{title:`Claude Blog`,link:s,description:`Product news and best practices for teams building with Claude.`,language:`en`,item:await i(c(`.blog_cms_list article.card_blog_list_wrap`).toArray().slice(0,l).map(e=>{let t=c(e),r=t.find(`.card_blog_list_title`).text().trim(),i=t.find(`a.clickable_link`).attr(`href`)??``,o=t.find(`[fs-list-fieldtype="date"][fs-list-field="date"]`).text().trim(),s=t.find(`[fs-list-field="category"]`).toArray().map(e=>c(e).text().trim()).filter(Boolean);return{title:r,link:i.startsWith(`http`)?i:`${a}${i}`,pubDate:o?n(o):void 0,category:s}}),n=>t.tryGet(n.link,async()=>{let t=r(await e(n.link))(`.blog_post_content_wrap`);return t.find(`style, script`).remove(),n.description=t.html()??void 0,n}),{concurrency:3})}}export{o as route};