import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./timezone-keeL11Io.mjs";import{n as r}from"./playwright-1-2p8zlN.mjs";import{load as i}from"cheerio";const a={path:`/pbc/goutongjiaoliu`,categories:[`finance`],example:`/gov/pbc/goutongjiaoliu`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!0,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`pbc.gov.cn/goutongjiaoliu/113456/113469/index.html`]}],name:`沟通交流`,maintainers:[`nczitzk`],handler:o,url:`pbc.gov.cn/goutongjiaoliu/113456/113469/index.html`};async function o(){let a=`http://www.pbc.gov.cn/goutongjiaoliu/113456/113469/index.html`,o=await r(),s=await o.newPage();await s.setRequestInterception(!0),s.on(`request`,e=>{e.resourceType()===`document`||e.resourceType()===`script`?e.continue():e.abort()}),await s.goto(a,{waitUntil:`domcontentloaded`});let c=i(await s.evaluate(()=>document.documentElement.innerHTML)),l=c(`font.newslist_style`).toArray().map(e=>{e=c(e);let t=e.find(`a[title]`);return{title:t.attr(`title`),link:new URL(t.attr(`href`),`http://www.pbc.gov.cn`).href}}),u=await Promise.all(l.map(r=>e.tryGet(r.link,async()=>{let e=await o.newPage();await e.setRequestInterception(!0),e.on(`request`,e=>{e.resourceType()===`document`||e.resourceType()===`script`?e.continue():e.abort()}),await e.goto(r.link,{waitUntil:`domcontentloaded`});let a=i(await e.evaluate(()=>document.documentElement.innerHTML));return r.description=a(`#zoom`).html(),r.pubDate=n(t(a(`.hui12`).eq(5).text()),8),r})));return await o.close(),{title:`中国人民银行 - 沟通交流`,link:a,item:u}}export{a as route};