"use strict";(()=>{var e={};e.id=980,e.ids=[980],e.modules={30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},97154:(e,r,t)=>{t.r(r),t.d(r,{headerHooks:()=>h,originalPathname:()=>v,patchFetch:()=>g,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>l,staticGenerationAsyncStorage:()=>f,staticGenerationBailout:()=>m});var s={};t.r(s),t.d(s,{GET:()=>c});var a=t(95419),o=t(69108),n=t(99678),i=t(53797);let u=i.z.object({fid:i.z.coerce.number().int().positive()});async function c(e,{params:r}){try{let{fid:e}=u.parse(r),t=new URL("https://api.neynar.com/v2/farcaster/user/bulk");t.searchParams.set("fids",e.toString());let s=await fetch(t,{headers:{accept:"application/json","x-api-key":"NEYNAR_FRAMES_JS"}});if(!s.ok){if(404===s.status)return Response.json({error:"User not found"},{status:404});throw Error(`Unexpected response: ${s.status}`)}let a=await s.json();return Response.json(a.users[0])}catch(e){if(e instanceof i.z.ZodError)return Response.json({error:e.errors},{status:400});throw e}}let p=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/farcaster/user/[fid]/route",pathname:"/farcaster/user/[fid]",filename:"route",bundlePath:"app/farcaster/user/[fid]/route"},resolvedPagePath:"/Users/stephan/environments/mod/framesjs-monorepo/packages/debugger/app/farcaster/user/[fid]/route.ts",nextConfigOutput:"",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:f,serverHooks:l,headerHooks:h,staticGenerationBailout:m}=p,v="/farcaster/user/[fid]/route";function g(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:f})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1638,9947],()=>t(97154));module.exports=s})();