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=e=>e.split(`.`).pop(),o={path:`/chinese`,categories:[`university`],example:`/ecnu/chinese`,radar:[{source:[`chinese.ecnu.edu.cn`],target:`/chinese`}],name:`国际汉语文化学院通知公告`,maintainers:[`FrozenStarrrr`,`ChiyoYuki`,`ECNU-minus`],handler:async()=>{let o=`https://chinese.ecnu.edu.cn/`,s=i((await n(`${o}1605/list.htm`)).data),c=s(`ul.news_list.list2 > li`).toArray().map(e=>({pubDate:r(t(s(e).find(`.news_meta`).text()),8),link:new URL(s(e).find(`a`).attr(`href`),o).toString(),title:s(e).find(`a`).attr(`title`)}));return{title:`国际汉语文化学院通知公告`,link:`https://chinese.ecnu.edu.cn/1605/list.htm`,item:await Promise.all(c.map(t=>e.tryGet(t.link,async()=>{if(a(t.link)===`htm`){let{data:e}=await n(t.link),r=i(e),a=r(`div.wp_articlecontent`);return a.find(`img[src], a[href]`).each((e,t)=>{let n=r(t),i=t.tagName===`img`?`src`:`href`,a=n.attr(i);a&&n.attr(i,new URL(a,o).toString())}),t.description=a.html()?.trim(),t}else return t.description=`请到原网页访问`,t})))}}};export{o as route};