import{a as e,r as t}from"./google-B_YlRFye.mjs";import{r as n}from"./youtubei-BBk9AWmY.mjs";const r={path:`/user/:username/:routeParams?`,categories:[`social-media`],view:3,example:`/youtube/user/@JFlaMusic`,parameters:{username:`YouTuber handle with @`,routeParams:`Extra parameters, see the table below`},description:`::: tip Parameter
| Name       | Description                                                                         | Default |
| ---------- | ----------------------------------------------------------------------------------- | ------- |
| embed      | Whether to embed the video, fill in any value to disable embedding                  | embed   |
| filterShorts | Whether to filter out shorts from the feed, fill in any falsy value to show shorts | true    |
:::`,features:{requireConfig:[{name:`YOUTUBE_KEY`,description:" YouTube API Key, support multiple keys, split them with `,`, [API Key application](https://console.developers.google.com/)",optional:!0}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.youtube.com/user/:username`,`www.youtube.com/:username`,`www.youtube.com/:username/videos`],target:`/user/:username`}],name:`Channel with user handle`,maintainers:[`DIYgod`,`pseudoyu`],handler:i};async function i(r){let i=r.req.param(`username`),a=r.req.param(`routeParams`),o=new URLSearchParams(a),s=!o.get(`embed`),c=o.get(`filterShorts`);return await e({googleApi:t,youtubeiApi:n,params:{username:i,embed:s,filterShorts:c===null||c===``||c===`true`,isJsonFeed:r.req.query(`format`)===`json`}})}export{r as route};