import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{n as r,t as i}from"./utils-DKPCOPa3.mjs";import{load as a}from"cheerio";const o={path:`/search/:kw`,categories:[`picture`],example:`/jpxgmn/search/candy`,parameters:{kw:`搜索关键词`},name:`搜索`,maintainers:[`Urabartin`],handler:s,features:{nsfw:!0}};async function s(o){let{kw:s}=o.req.param(),c=await r()+`/plus/search/index.asp?keyword=${s}`,l=await e.raw(c),u=new URL(l.url).origin,d=a(l._data),f=d(`div.list div.list div.node p`).toArray().map(e=>({title:d(e).find(`b`).text(),link:new URL(d(e).find(`a`).attr(`href`),u).href,pubDate:n(d(e).next().next().next().find(`span`).first().text())})).filter(e=>e.title.length!==0);return{title:`极品性感美女搜索 - ${s}`,link:l.url,item:await Promise.all(f.map(e=>t.tryGet(e.link,async()=>(e.description=await i(e.link),e))))}}export{o as route};