module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},58458,e=>{"use strict";var t=e.i(34953),r=e.i(49201),a=e.i(69102),n=e.i(19309),o=e.i(89554),s=e.i(73525),i=e.i(27176),l=e.i(99736),d=e.i(97998),u=e.i(14255),p=e.i(69267),c=e.i(80309),h=e.i(31611),f=e.i(88950),x=e.i(31065),m=e.i(93695);e.i(971);var R=e.i(67902),v=e.i(60526),g=e.i(73943),w=e.i(74533);async function E(e){return(0,v.platform)(),y(e)}async function y(e){let t=(e.prompt??"Select a folder").replace(/["\\]/g,"\\$&"),r=e.defaultLocation?` default location POSIX file "${e.defaultLocation.replace(/["\\]/g,"\\$&")}"`:"",a=`
    try
      set f to choose folder with prompt "${t}"${r}
      return POSIX path of f
    on error errMsg number errNum
      if errNum is -128 then
        return "__USER_CANCELLED__"
      else
        error errMsg number errNum
      end if
    end try
  `,n=await new Promise(e=>{(0,w.execFile)("/usr/bin/osascript",["-e",a],{timeout:3e5},(t,r,a)=>{e({stdout:r,stderr:a,code:t?"number"==typeof t.code?t.code:1:0})})});if(0!==n.code)return{ok:!1,kind:"error",message:n.stderr.trim()||`osascript exited with code ${n.code??"unknown"}`};let o=n.stdout.trim();return"__USER_CANCELLED__"===o||""===o?{ok:!1,kind:"cancelled"}:{ok:!0,path:o.replace(/\/+$/,"")}}async function k(e){let t=await E({prompt:"Select your project's codebase folder",defaultLocation:(0,v.homedir)()});return t.ok?g.NextResponse.json({ok:!0,path:t.path}):"cancelled"===t.kind?g.NextResponse.json({ok:!1,kind:"cancelled"}):"unsupported"===t.kind?g.NextResponse.json({ok:!1,kind:"unsupported",message:`Native folder picker not implemented for ${t.platform}. Type the path manually for now.`},{status:501}):g.NextResponse.json({ok:!1,kind:"error",message:t.message},{status:500})}e.s(["POST",0,k,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],26375);var C=e.i(26375);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/fs/pick-folder/route",pathname:"/api/fs/pick-folder",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/fs/pick-folder/route.ts",nextConfigOutput:"standalone",userland:C,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:_,serverHooks:A}=N;async function S(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),N.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/fs/pick-folder/route";v=v.replace(/\/index$/,"")||"/";let g=await N.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,deploymentId:E,params:y,nextConfig:k,parsedUrl:C,isDraftMode:b,prerenderManifest:_,routerServerContext:A,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,resolvedPathname:T,clientReferenceManifest:q,serverActionsManifest:O}=g,j=(0,i.normalizeAppPath)(v),I=!!(_.dynamicRoutes[j]||_.routes[T]),U=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,C,!1):t.end("This page could not be found"),null);if(I&&!b){let e=!!_.routes[T],t=_.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(k.adapterPath)return await U();throw new m.NoFallbackError}}let H=null;!I||N.isDev||b||(H="/index"===(H=T)?"/":H);let M=!0===N.isDev||!I,$=I&&!M;O&&q&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:q,serverActionsManifest:O});let D=e.method||"GET",L=(0,o.getTracer)(),F=L.getActiveScopeSpan(),K=!!(null==A?void 0:A.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),X=(0,n.getRequestMeta)(e,"incrementalCache")||await N.getIncrementalCache(e,k,_,B);null==X||X.resetRequestCache(),globalThis.__incrementalCache=X;let G={params:y,previewProps:_.preview,renderOpts:{experimental:{authInterrupts:!!k.experimental.authInterrupts},cacheComponents:!!k.cacheComponents,supportsDynamicResponse:M,incrementalCache:X,cacheLifeProfiles:k.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,A)},sharedContext:{buildId:w,deploymentId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),z=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>N.handle(z,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${v}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&S&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,A),t}},d=await N.handleResponse({req:e,nextConfig:k,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!I)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",S?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&I||u.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=L.getActiveScopeSpan(),await L.withPropagatedContext(e.headers,()=>L.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof m.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:S})},!1,A),I)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,S,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:_})},"routeModule",0,N,"serverHooks",0,A,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,_],58458)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0nytcdl._.js.map