(()=>{var e={};e.id=24,e.ids=[24],e.modules={1233:(e,r,t)=>{"use strict";t.r(r),t.d(r,{patchFetch:()=>x,routeModule:()=>d,serverHooks:()=>l,workAsyncStorage:()=>p,workUnitAsyncStorage:()=>c});var o={};t.r(o),t.d(o,{GET:()=>u});var s=t(96559),a=t(48088),n=t(37719),i=t(32190);async function u(e){try{let{searchParams:r}=new URL(e.url),t=r.get("url");if(!t)return i.NextResponse.json({success:!1,error:"Video URL is required"},{status:400});console.log("Extracting audio from video URL:",t);let o=await fetch(t);if(!o.ok)throw Error(`Failed to fetch video: ${o.statusText}`);let s=await o.arrayBuffer();return new i.NextResponse(s,{headers:{"Content-Type":"audio/mpeg","Content-Disposition":'attachment; filename="Downloaded From savefrominternet.com tiktok-audio.mp3"',"Cache-Control":"no-cache"}})}catch(e){return console.error("Audio extraction error:",e),i.NextResponse.json({success:!1,error:"Failed to extract audio"},{status:500})}}let d=new s.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/audio/route",pathname:"/api/audio",filename:"route",bundlePath:"app/api/audio/route"},resolvedPagePath:"C:\\Users\\sande\\Desktop\\Save From Internet\\tiktok-downloader\\src\\app\\api\\audio\\route.ts",nextConfigOutput:"",userland:o}),{workAsyncStorage:p,workUnitAsyncStorage:c,serverHooks:l}=d;function x(){return(0,n.patchFetch)({workAsyncStorage:p,workUnitAsyncStorage:c})}},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},96487:()=>{}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[447,580],()=>t(1233));module.exports=o})();