import{a as e,n as t,o as n,t as r}from"./utils-Cr9I--om.mjs";const i=[{type:`today`,name:`今日推荐`,nodeId:`11007`},{name:`单机电玩`,type:`pc`,nodeId:`129`},{name:`NS`,type:`ns`,nodeId:`21160`},{name:`手游`,type:`mobile`,nodeId:`20260`},{name:`网游`,type:`web`,nodeId:`20225`},{name:`业界`,type:`industry`,nodeId:`21163`},{name:`硬件`,type:`hardware`,nodeId:`20070`},{name:`科技`,type:`tech`,nodeId:`20547`}],a={path:`/news/:type?`,categories:[`game`],example:`/gamersky/news/pc`,parameters:{type:"资讯类型，见表，默认为 `pc`"},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.gamersky.com/news`],target:`/news`}],name:`资讯`,maintainers:[`yy4382`],description:e(i),handler:o};async function o(e){let a=e.req.param(`type`)??`pc`,o=i.find(e=>e.type===a);if(!o)throw Error(`Invalid type: ${a}`);let s=n(await t(o.nodeId)),c=await Promise.all(s.map(e=>r(e)));return{title:`${o.name} - 游民星空`,link:`https://www.gamersky.com/news`,item:c}}export{a as route};