import{t as e}from"./got-BBDj7u1e.mjs";import{load as t}from"cheerio";const n={path:`/download/:os?`,categories:[`program-update`],example:`/neatdownloadmanager/download`,parameters:{os:`Operating system, windows or macos, all by default`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`neatdownloadmanager.com/index.php`,`neatdownloadmanager.com/`]}],name:`Download`,maintainers:[`nczitzk`],handler:r,url:`neatdownloadmanager.com/index.php`};async function r(n){let r=(n.req.param(`os`)??``).toLowerCase(),i=`https://www.neatdownloadmanager.com`,a=`${i}/index.php`,o=t((await e({method:`get`,url:a})).data);return{title:`Neat Download Manager`,link:a,item:o(`.p1`).toArray().filter(e=>{e=o(e);let t=e.text().startsWith(`dmg`);return r===``?!0:r===`macos`?t:!t}).map(e=>{e=o(e);let t=e.text(),n=t.match(/\(ver (.*?)\)/)[1];return{title:`[${t.startsWith(`dmg`)?`macOS`:`Windows`}] ${t}`,link:`${i}${e.prev().find(`a`).attr(`href`)}#${n}`}})}}export{n as route};