module.exports=[902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},591262,a=>{"use strict";let b,c;var d=Object.getOwnPropertyNames;let e=(b={"src/runtime/node/safe-node-apis.js"(b,c){let{existsSync:d,writeFileSync:e,readFileSync:f,appendFileSync:g,mkdirSync:h,rmSync:i}=a.r(902157);c.exports={fs:{existsSync:d,writeFileSync:e,readFileSync:f,appendFileSync:g,mkdirSync:h,rmSync:i},path:a.r(750227),cwd:()=>process.cwd()}}},function(){return c||(0,b[d(b)[0]])((c={exports:{}}).exports,c),c.exports})();function f(a,b){if(!a)throw Error(`Clerk: ${b} is missing. This is an internal error. Please contact Clerk's support.`)}let g=()=>(f(e.fs,"fs"),e.fs),h=()=>(f(e.path,"path"),e.path),i=()=>(f(e.cwd,"cwd"),e.cwd);a.s(["nodeCwdOrThrow",()=>i,"nodeFsOrThrow",()=>g,"nodePathOrThrow",()=>h],591262)},182040,a=>{"use strict";var b=a.i(591262);function c(){let{existsSync:a}=(0,b.nodeFsOrThrow)(),c=(0,b.nodePathOrThrow)(),d=(0,b.nodeCwdOrThrow)();return!!a(c.join(d(),"src","app"))}function d(){let a=["ts","js"],c=(a,b,c)=>`Clerk: clerkMiddleware() was not run, your middleware file might be misplaced. Move your middleware file to ./${b}middleware.${a}. Currently located at ./${c}middleware.${a}`,{existsSync:d}=(0,b.nodeFsOrThrow)(),e=(0,b.nodePathOrThrow)(),f=(0,b.nodeCwdOrThrow)(),g=e.join(f(),"src","app"),h=e.join(f(),"app"),i=(b,f,g)=>{for(let h of a)if(d(e.join(b,`middleware.${h}`)))return c(h,f,g)};return d(g)?i(g,"src/","src/app/")||i(f(),"src/",""):d(h)?i(h,"","app/"):void 0}a.s(["hasSrcAppDir",()=>c,"suggestMiddlewareLocation",()=>d])}];

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