import{t as e}from"./cache-DUthuMSu.mjs";import{n as t}from"./playwright-1-2p8zlN.mjs";import{i as n,n as r,r as i,t as a}from"./utils-BE6UWOga.mjs";const o={path:`/casts/:cast`,categories:[`multimedia`],example:`/javtrailers/casts/hibiki-otsuki`,parameters:{cast:`Cast name, can be found in the URL of the cast page`},radar:[{source:[`javtrailers.com/casts/:category`]}],name:`Casts`,maintainers:[`TonyRL`],url:`javtrailers.com/casts`,handler:s,features:{nsfw:!0,requirePuppeteer:!0}};async function s(o){let{cast:s}=o.req.param(),c=await t(),l=await n(`${a}/api/casts/${s}?page=0`,c),u=i(l.videos),d=await Promise.all(u.map(t=>e.tryGet(t.link,()=>r(t,c))));return await c.close(),{title:`Watch ${l.cast.name} Jav Online | Japanese Adult Video - JavTrailers.com`,description:l.cast.castWiki?.description.replaceAll(`
`,` `)??`Watch ${l.cast.name} Jav video’s free, we have the largest Jav collections with high definition`,image:l.cast.avatar,link:`${a}/casts/${s}`,item:d}}export{o as route};