import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{load as n}from"cheerio";const r=async r=>{let i=Number.parseInt(r.req.query(`limit`)??`30`,10),a=`https://download.lineageos.org`,o=new URL(`changes`,a).href,s=new URL(`api/v2/changes`,a).href,c=n(await e(o)),l=c(`html`).attr(`lang`)??`en`,u=(await e(s)).slice(0,i).map(e=>{let n=e.subject,r=e.submitted,i=e.url,a=[e.type,e.branch,e.repository],o=e.updated;return{title:n,pubDate:r?t(r,`X`):void 0,link:i,category:a,updated:o?t(o,`X`):void 0,language:l}});return{title:`${c(`title`).text()} - Downloads`,description:void 0,link:o,item:u,allowEmpty:!0,author:c(`title`).text(),language:l,id:o}},i={path:`/changes`,name:`Changes`,url:`download.lineageos.org`,maintainers:[`nczitzk`],handler:r,example:`/lineageos/changes`,parameters:void 0,description:void 0,categories:[`program-update`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`download.lineageos.org/changes`],target:`/changes`}],view:5};export{r as handler,i as route};