"use strict";(()=>{var e={};e.id=260,e.ids=[260],e.modules={1708:e=>{e.exports=require("node:process")},3295:e=>{e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:e=>{e.exports=require("node:buffer")},10846:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11723:e=>{e.exports=require("querystring")},11997:e=>{e.exports=require("punycode")},12412:e=>{e.exports=require("assert")},19771:e=>{e.exports=require("process")},21820:e=>{e.exports=require("os")},27910:e=>{e.exports=require("stream")},28354:e=>{e.exports=require("util")},29021:e=>{e.exports=require("fs")},29294:e=>{e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{e.exports=require("path")},34631:e=>{e.exports=require("tls")},37067:e=>{e.exports=require("node:http")},37830:e=>{e.exports=require("node:stream/web")},38522:e=>{e.exports=require("node:zlib")},44708:e=>{e.exports=require("node:https")},44870:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49882:(e,r,t)=>{t.r(r),t.d(r,{patchFetch:()=>g,routeModule:()=>c,serverHooks:()=>f,workAsyncStorage:()=>m,workUnitAsyncStorage:()=>h});var s={};t.r(s),t.d(s,{GET:()=>l,POST:()=>q});var o=t(96559),n=t(48088),p=t(37719),i=t(32190),u=t(32260),a=t(6961);t(91918),t(46677),t(93273),t(77540),t(2454),t(87933);let x=!1;async function d(){x||(await (0,u.zG)(),x=!0)}async function q(e){try{await d();let{method:r,params:t}=await e.json();if("tools/list"===r){let e=(0,a.p_)().map(e=>{let r=(0,a.Jt)(e.name);return{name:e.name,description:e.description,inputSchema:r?.input||{}}});return i.NextResponse.json({tools:e})}if("tools/call"===r){let{name:e,arguments:r}=t,s=(0,a.Jt)(e);if(!s)return i.NextResponse.json({error:{message:`Tool ${e} not found`}},{status:404});try{let e=await s.handler(r);return i.NextResponse.json({result:e})}catch(e){return i.NextResponse.json({error:{message:e instanceof Error?e.message:String(e)}},{status:500})}}return i.NextResponse.json({error:{message:`Unknown method: ${r}`}},{status:400})}catch(e){return i.NextResponse.json({error:{message:e instanceof Error?e.message:"Internal server error"}},{status:500})}}async function l(e){await d();let r=(0,a.p_)();return i.NextResponse.json({message:"Earth Engine MCP Server with Shapefile Support",totalTools:r.length,tools:r.map(e=>({name:e.name,description:e.description}))})}let c=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/[transport]/route",pathname:"/[transport]",filename:"route",bundlePath:"app/[transport]/route"},resolvedPagePath:"C:\\Users\\Dhenenjay\\earth-engine-mcp\\app\\[transport]\\route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:m,workUnitAsyncStorage:h,serverHooks:f}=c;function g(){return(0,p.patchFetch)({workAsyncStorage:m,workUnitAsyncStorage:h})}},55511:e=>{e.exports=require("crypto")},55591:e=>{e.exports=require("https")},57975:e=>{e.exports=require("node:util")},63033:e=>{e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:e=>{e.exports=require("node:fs")},73136:e=>{e.exports=require("node:url")},73496:e=>{e.exports=require("http2")},73566:e=>{e.exports=require("worker_threads")},74075:e=>{e.exports=require("zlib")},76760:e=>{e.exports=require("node:path")},77030:e=>{e.exports=require("node:net")},77598:e=>{e.exports=require("node:crypto")},78474:e=>{e.exports=require("node:events")},79428:e=>{e.exports=require("buffer")},79456:e=>{e.exports=require("node:stream")},79551:e=>{e.exports=require("url")},79646:e=>{e.exports=require("child_process")},79748:e=>{e.exports=require("fs/promises")},81630:e=>{e.exports=require("http")},83997:e=>{e.exports=require("tty")},91645:e=>{e.exports=require("net")},94735:e=>{e.exports=require("events")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[297,899,189,858,513],()=>t(49882));module.exports=s})();