"use strict";(()=>{var e={};e.id=6896,e.ids=[6896],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},39491:e=>{e.exports=require("assert")},6113:e=>{e.exports=require("crypto")},82361:e=>{e.exports=require("events")},57147:e=>{e.exports=require("fs")},13685:e=>{e.exports=require("http")},85158:e=>{e.exports=require("http2")},95687:e=>{e.exports=require("https")},22037:e=>{e.exports=require("os")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},76224:e=>{e.exports=require("tty")},57310:e=>{e.exports=require("url")},73837:e=>{e.exports=require("util")},59796:e=>{e.exports=require("zlib")},77954:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>g,patchFetch:()=>h,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>x,staticGenerationAsyncStorage:()=>d});var o={};t.r(o),t.d(o,{POST:()=>u});var s=t(49303),a=t(88716),p=t(60670),i=t(24263),n=t(87070);async function u(e){try{let r=new AbortController,t=r.signal;e.signal?.addEventListener("abort",()=>{r.abort()});let{query:o,limit:s,validity:a,country:p}=await e.json();if(!o)return n.NextResponse.json({error:"Query is required"},{status:400});try{let e=await i.Z.post("http://localhost:3000/api/bing_search_scraper",{query:o,limit:s,validity:a,country:p,folderName:"google_temp_data"},{signal:t});return n.NextResponse.json(e.data)}catch(e){return n.NextResponse.json({error:"Failed to scrape Google_B"},{status:500})}}catch(e){return console.error("Scraping Error:",e),n.NextResponse.json({error:"Failed to scrape Google"},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/google_search_scraper/route",pathname:"/api/google_search_scraper",filename:"route",bundlePath:"app/api/google_search_scraper/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\google_search_scraper\\route.js",nextConfigOutput:"",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:x}=c,g="/api/google_search_scraper/route";function h(){return(0,p.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:d})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8948,5972,6577,1053,8552],()=>t(77954));module.exports=o})();