import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{load as i}from"cheerio";async function a(a,o,s,c,l,u,d){let f=await e(o);if(!f)return[];let p=i(f),m=p(d).toArray().map(e=>{e=p(e);let t=e.find(c).attr(`href`)||``,i=t.startsWith(`http`)?t:new URL(t,s).href;return{title:e.find(c).attr(`title`),link:i,pubDate:r(n(e.find(l).text(),`YYYY-MM-DD`),8)}});return await Promise.all(m.map(a=>t.tryGet(a.link,async()=>{let t=i(await e(a.link));if(t(`.wp_error_msg`).length>0)a.description=`您当前ip并非校内地址，该信息仅允许校内地址访问`;else{let e=t(u.content);e.find(`.wp_pdf_player`).each(function(){let e=t(this),n=e.attr(`pdfsrc`)||``,r=n.startsWith(`http`)?n:new URL(n,s).href;e.replaceWith(`<p><a href="${r}">附件下载</a></p>`)}),e.find(`a`).each(function(){let e=t(this),n=e.attr(`href`);n&&!n.startsWith(`http`)&&e.attr(`href`,new URL(n,s).href)}),a.description=e.html()||``,a.title=t(u.title).text(),a.pubDate=r(n(t(u.date).text().replace(`编辑：`,``).replace(`发布日期：`,``).replace(`发布时间：`,``),`YYYY-MM-DD`),8)}return a})))}const o=`https://www.njxzc.edu.cn/89/list.htm`,s={path:`/tzgg`,categories:[`university`],example:`/njxzc/tzgg`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.njxzc.edu.cn/89/list.htm`,`www.njxzc.edu.cn/`]}],name:`官网通知公告`,maintainers:[`real-jiakai`],handler:c,url:`www.njxzc.edu.cn/89/list.htm`};async function c(e){return{title:`南京晓庄学院 -- 通知公告`,link:o,item:await a(e,o,`https://www.njxzc.edu.cn`,`a`,`.news_meta`,{title:`.arti_title`,content:`.wp_articlecontent`,date:`.arti_update`},`.news_list .news`)}}export{s as route};