import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{n as t,t as n}from"./util-Ci6p8478.mjs";import{load as r}from"cheerio";const i=async i=>{let{filter:a}=i.req.param(),o=Number.parseInt(i.req.query(`limit`)??`30`,10),s=new URL(`/${a?`home/`:``}explore/${a??``}`,t).href,c=r(await e(s)),l=c(`html`).prop(`lang`)??`zh`,u=await n(c,c(`div.aw-question-list`),o);c(`div.pagination`).remove();let d=c(`meta[name="keywords"]`).prop(`content`).split(/,/)[0],f=c(`div.aw-logo img`).prop(`src`);return{title:`${c(`title`).text()} - ${c(`li.active`).slice(1).toArray().map(e=>c(e).text()).join(`|`)}`,description:c(`meta[name="description"]`).prop(`content`),link:s,item:u,allowEmpty:!0,image:f,author:d,language:l,id:s}},a={path:`/explore/:filter?`,name:`广场`,url:`www.jisilu.cn`,maintainers:[`nczitzk`],handler:i,example:`/jisilu/explore`,parameters:{category:`过滤器，默认为空，可在对应页 URL 中找到`},description:"::: tip\n若订阅 [债券/可转债 - 热门 - 30天](https://www.jisilu.cn/home/explore/category-4__sort_type-hot__day-30)，网址为 `https://www.jisilu.cn/home/explore/category-4__sort_type-hot__day-30`，请截取 `https://www.jisilu.cn/home/explore/` 到末尾的部分 `category-4__sort_type-hot__day-30` 作为 `filter` 参数填入，此时目标路由为 [`/jisilu/explore/category-4__sort_type-hot__day-30`](https://rsshub.app/jisilu/explore/category-4__sort_type-hot__day-30)。\n:::\n    ",categories:[`finance`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.jisilu.cn/home/explore/:filter`,`www.jisilu.cn/home/explore`,`www.jisilu.cn/explore`],target:e=>{let t=e.filter;return`/jisilu/explore${t?`/${t}`:``}`}}],view:0};export{i as handler,a as route};