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={path:`/jwgg`,categories:[`university`],example:`/cdu/jwgg`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`jw.cdu.edu.cn/`]}],name:`教务处通知公告`,maintainers:[`uuwor`],handler:o,url:`jw.cdu.edu.cn/`};async function o(){let a=`https://jw.cdu.edu.cn/jwgg.htm`,o=(await n.get(a)).data,s=i(o),c=s(`.ListTable.dataTable.no-footer tbody tr[role="row"].odd`).slice(0,10).toArray().map(e=>{let n=s(e),i=n.find(`tr.odd a`).text().trim(),a=n.find(`tr.odd a`).attr(`href`),o=r(t(n.find(`tr.odd td.columnDate`).text().match(/\d{4}-\d{2}-\d{2}/)),8);return{title:i,link:`https://jw.cdu.edu.cn/`+a,author:`成都大学教务处通知公告`,pubDate:o}});return{title:`成大教务处通知公告`,link:a,item:await Promise.all(c.map(t=>e.tryGet(t.link,async()=>{let e=(await n.get(t.link)).data;return t.description=i(e)(`.v_news_content`).html(),t})))}}export{a as route};