import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{load as n}from"cheerio";const r={path:`/miit/zcwj`,categories:[`government`],example:`/gov/miit/zcwj`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`政策文件`,maintainers:[`Yoge-Code`],handler:i};async function i(){let r=`http://www.miit.gov.cn/n1146295/n1652858/`,i=n((await t.get(r)).data)(`.clist_con li`).toArray(),a=e=>n(e)(`p`).text();return{title:`中国工业化和信息部`,link:`http://www.miit.gov.cn`,description:`政策文件`,item:await Promise.all(i.map(async i=>{let o=n(i)(`a`),s=o.attr(`href`);s.startsWith(`..`)&&(s=r+s);let c=await e.get(s);if(c)return JSON.parse(c);let l=await t({method:`get`,url:s}),u={title:o.text(),description:a(l.data),link:s};return e.set(s,JSON.stringify(u)),u}))}}export{r as route};