import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{o as t,r as n,t as r}from"./utils-rnNdYcza.mjs";const i={path:`/collections/:userId`,categories:[`programming`],example:`/juejin/collections/1697301682482439`,parameters:{userId:`用户唯一标志符, 在浏览器地址栏URL中能够找到`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`juejin.cn/user/:id`,`juejin.cn/user/:id/collections`],target:`/collections/:id`}],name:`收藏集`,maintainers:[`yang131323`],handler:o};async function a(e){return(await n(e)).article_list}async function o(n){let i=n.req.param(`userId`),o=(await e(`https://api.juejin.cn/interact_api/v1/collectionSet/list?user_id=${i}&cursor=0&limit=20`)).data.map(e=>e.tag_id),s=await r(t((await Promise.all(o.map(e=>a(e)))).flat().filter(Boolean)));return{title:`掘金 - 收藏集`,link:`https://juejin.im/user/${i}/collections`,description:`掘金，指定用户整个收藏集`,item:s,allowEmpty:!0}}export{i as route};