import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{load as i}from"cheerio";const a=async a=>{let{category:o=`kjzx/tzgg`}=a.req.param(),s=a.req.query(`limit`)?Number.parseInt(a.req.query(`limit`),10):20,c=new URL(`${o.replace(/\/$/,``).replace(/\/index\.html$/,``)}/`,`https://kjt.ah.gov.cn`).href,{data:l}=await n(c),u=i(l),d=u(`html`).prop(`lang`),f=u(`ul.doc_list li`).slice(0,s).toArray().map(e=>{e=u(e);let n=e.find(`a`);return{title:n.prop(`title`)??n.text(),pubDate:t(e.find(`span.date`).text()),link:n.prop(`href`),language:d}});f=await Promise.all(f.map(a=>e.tryGet(a.link,async()=>{let{data:e}=await n(a.link),o=i(e),s=o(`div.wzcon`).html();return a.title=o(`meta[name="ArticleTitle"]`).prop(`content`),a.description=s,a.pubDate=r(t(o(`meta[name="PubDate"]`).prop(`content`)),8),a.category=[...new Set([o(`meta[name="ColumnName"]`).prop(`content`),o(`meta[name="ColumnType"]`).prop(`content`),o(`meta[name="ColumnKeywords"]`).prop(`content`),o(`meta[name="ContentSource"]`).prop(`content`),o(`meta[name="ContentSource"]`).prop(`content`)])].filter(Boolean),a.author=o(`meta[name="Author"]`).prop(`content`),a.content={html:s,text:o(`div.wzcon`).text()},a.updated=r(t(o(`meta[name="HtmlGenerateTime"]`).prop(`content`)),8),a.language=d,a})));let p=u(`meta[name="SiteName"]`).prop(`content`),m=u(`span.img_title`).first().prev().prop(`src`);return{title:`${p} - ${u(`meta[name="ColumnName"]`).prop(`content`)}`,description:u(`meta[name="ColumnDescription"]`).prop(`content`),link:c,item:f,allowEmpty:!0,image:m,author:p,language:d}},o={path:`/ah/kjt/:category{.+}?`,name:`安徽省科学技术厅`,url:`kjt.ah.gov.cn`,maintainers:[`nczitzk`],handler:a,example:`/gov/ah/kjt`,parameters:{category:"分类，默认为 `kjzx/tzgg`，即通知公告，可在对应分类页 URL 中找到"},description:`::: tip
  若订阅 [通知公告](https://kjt.ah.gov.cn/kjzx/tzgg/)，网址为 \`https://kjt.ah.gov.cn/kjzx/tzgg/\`。截取 \`https://kjt.ah.gov.cn/\` 到末尾 \`/\` 的部分 \`\` 作为参数填入，此时路由为 [\`/gov/ah/kjt/kjzx/tzgg\`](https://rsshub.app/gov/ah/kjt/kjzx/tzgg)。
:::

#### [科技资讯](https://kjt.ah.gov.cn/kjzx/index.html)

| [通知公告](https://kjt.ah.gov.cn/kjzx/tzgg/index.html) | [工作动态](https://kjt.ah.gov.cn/kjzx/gzdt/index.html) | [基层科技](https://kjt.ah.gov.cn/kjzx/jckj/index.html) | [媒体聚焦](https://kjt.ah.gov.cn/kjzx/mtjj/index.html) |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| [kjzx/tzgg](https://rsshub.app/gov/ah/kjt/kjzx/tzgg)   | [kjzx/gzdt](https://rsshub.app/gov/ah/kjt/kjzx/gzdt)   | [kjzx/jckj](https://rsshub.app/gov/ah/kjt/kjzx/jckj)   | [kjzx/mtjj](https://rsshub.app/gov/ah/kjt/kjzx/mtjj)   |
  
| [重要转载](https://kjt.ah.gov.cn/kjzx/zyzz/index.html) | [图片视频](https://kjt.ah.gov.cn/kjzx/tpsp/index.html) |
| ------------------------------------------------------ | ------------------------------------------------------ |
| [kjzx/zyzz](https://rsshub.app/gov/ah/kjt/kjzx/zyzz)   | [kjzx/tpsp](https://rsshub.app/gov/ah/kjt/kjzx/tpsp)   |

#### [科技统计](https://kjt.ah.gov.cn/kjzy/kjtj/index.html)

| [技术市场交易](https://kjt.ah.gov.cn/kjzy/kjtj/jsscjy/index.html)  | [科技成果公报](https://kjt.ah.gov.cn/kjzy/kjtj/kjcggb/index.html)  | [孵化载体发展](https://kjt.ah.gov.cn/kjzy/kjtj/cyfhfz/index.html)  |
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [kjzy/kjtj/jsscjy](https://rsshub.app/gov/ah/kjt/kjzy/kjtj/jsscjy) | [kjzy/kjtj/kjcggb](https://rsshub.app/gov/ah/kjt/kjzy/kjtj/kjcggb) | [kjzy/kjtj/cyfhfz](https://rsshub.app/gov/ah/kjt/kjzy/kjtj/cyfhfz) |

#### [科技数据](https://kjt.ah.gov.cn/kjzy/kjsj/index.html)

| [创新企业](https://kjt.ah.gov.cn/kjzy/kjsj/cxqy/index.html)    | [创新项目](https://kjt.ah.gov.cn/kjzy/kjsj/cxxm/index.html)    | [创新成果](https://kjt.ah.gov.cn/kjzy/kjsj/cxcg/index.html)    | [转化基金入库项目](https://kjt.ah.gov.cn/kjzy/kjsj/zhjjrkxm/index.html) |
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [kjzy/kjsj/cxqy](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxqy) | [kjzy/kjsj/cxxm](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxxm) | [kjzy/kjsj/cxcg](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxcg) | [kjzy/kjsj/zhjjrkxm](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/zhjjrkxm)  |

| [创新平台](https://kjt.ah.gov.cn/kjzy/kjsj/cxpt/index.html)    | [创新园区](https://kjt.ah.gov.cn/kjzy/kjsj/cxyq/index.html)    | [创新许可](https://kjt.ah.gov.cn/kjzy/kjsj/cxxk/index.html)    |
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
| [kjzy/kjsj/cxpt](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxpt) | [kjzy/kjsj/cxyq](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxyq) | [kjzy/kjsj/cxxk](https://rsshub.app/gov/ah/kjt/kjzy/kjsj/cxxk) |

  `,categories:[`government`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`kjt.ah.gov.cn/:category`],target:e=>{let t=e.category;return`/gov/ah/kjt${t?`/${t}`:``}`}},{title:`科技资讯 - 通知公告`,source:[`kjt.ah.gov.cn/kjzx/tzgg/index.html`],target:`/ah/kjt/kjzx/tzgg`},{title:`科技资讯 - 工作动态`,source:[`kjt.ah.gov.cn/kjzx/gzdt/index.html`],target:`/ah/kjt/kjzx/gzdt`},{title:`科技资讯 - 基层科技`,source:[`kjt.ah.gov.cn/kjzx/jckj/index.html`],target:`/ah/kjt/kjzx/jckj`},{title:`科技资讯 - 媒体聚焦`,source:[`kjt.ah.gov.cn/kjzx/mtjj/index.html`],target:`/ah/kjt/kjzx/mtjj`},{title:`科技资讯 - 重要转载`,source:[`kjt.ah.gov.cn/kjzx/zyzz/index.html`],target:`/ah/kjt/kjzx/zyzz`},{title:`科技资讯 - 图片视频`,source:[`kjt.ah.gov.cn/kjzx/tpsp/index.html`],target:`/ah/kjt/kjzx/tpsp`},{title:`科技统计 - 技术市场交易`,source:[`kjt.ah.gov.cn/kjzy/kjtj/jsscjy/index.html`],target:`/ah/kjt/kjzy/kjtj/jsscjy`},{title:`科技统计 - 科技成果公报`,source:[`kjt.ah.gov.cn/kjzy/kjtj/kjcggb/index.html`],target:`/ah/kjt/kjzy/kjtj/kjcggb`},{title:`科技统计 - 孵化载体发展`,source:[`kjt.ah.gov.cn/kjzy/kjtj/cyfhfz/index.html`],target:`/ah/kjt/kjzy/kjtj/cyfhfz`},{title:`科技数据 - 创新企业`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxqy/index.html`],target:`/ah/kjt/kjzy/kjsj/cxqy`},{title:`科技数据 - 创新项目`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxxm/index.html`],target:`/ah/kjt/kjzy/kjsj/cxxm`},{title:`科技数据 - 创新成果`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxcg/index.html`],target:`/ah/kjt/kjzy/kjsj/cxcg`},{title:`科技数据 - 转化基金入库项目`,source:[`kjt.ah.gov.cn/kjzy/kjsj/zhjjrkxm/index.html`],target:`/ah/kjt/kjzy/kjsj/zhjjrkxm`},{title:`科技数据 - 创新平台`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxpt/index.html`],target:`/ah/kjt/kjzy/kjsj/cxpt`},{title:`科技数据 - 创新园区`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxyq/index.html`],target:`/ah/kjt/kjzy/kjsj/cxyq`},{title:`科技数据 - 创新许可`,source:[`kjt.ah.gov.cn/kjzy/kjsj/cxxk/index.html`],target:`/ah/kjt/kjzy/kjsj/cxxk`}]};export{a as handler,o as route};