import{t as e}from"./invalid-parameter-DLv2wPKB.mjs";import{r as t}from"./utils-D62czNjw.mjs";const n={path:`/news/providers/:region/list`,categories:[`new-media`],example:`/yahoo/news/providers/tw/list`,parameters:{region:`地区, 同路由"新闻来源"中的支持地区, 即 hk 或 tw`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`hk.news.yahoo.com/`]},{source:[`tw.news.yahoo.com/`]}],name:`新聞來源列表`,maintainers:[`TonyRL`,`williamgateszhao`],handler:r};async function r(n){let r=n.req.param(`region`);if(![`hk`,`tw`].includes(r))throw new e(`Unknown region: ${r}`);let i=(await t(r)).map(e=>({...e,description:e.key}));return{title:`Yahoo 新聞 - 新聞來源列表`,link:`https://${r}.news.yahoo.com`,image:`https://s.yimg.com/cv/apiv2/social/images/yahoo_default_logo-1200x1200.png`,item:i}}export{n as route};