import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{i as r,n as i,r as a,t as o}from"./util-ouLVCAHc.mjs";import{load as s}from"cheerio";const c={path:`/hyxt/:category{.+}?`,name:`Unknown`,maintainers:[],handler:l};async function l(c){let{category:l=`tzgg`}=c.req.param(),u=c.req.query(`limit`)?Number.parseInt(c.req.query(`limit`),10):30,d=`https://hyxt.${o}`,f=new URL(`${l}.htm`,d).href,{data:p}=await n(f),m=s(p),h=m(`tr.content-title`).slice(0,u).toArray().map(e=>{e=m(e);let n=e.find(`td a`);return{title:n.text(),link:new URL(n.prop(`href`),d).href,pubDate:t(e.find(`td`).last().text())}});h=await a(h,e.tryGet,d);let g=r(p),_=i(g,`SiteName`),v=i(g,`ColumnName`);return{item:h,title:`${_} - ${v}`,link:f,description:i(g,`ColumnKeywords`),language:m(`html`).prop(`lang`),image:new URL(m(`div.top-logo img`).prop(`src`),d).href,subtitle:v,author:_,allowEmpty:!0}}export{c as route};