{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/utils/url.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var url_exports={};__export(url_exports,{normalizePathname:()=>normalizePathname});module.exports=__toCommonJS(url_exports);function normalizePathname(requestUrl,basePath){let pathname;try{pathname=new URL(requestUrl).pathname.replace(/\\/+$/,\"\")||\"/\"}catch{return\"/\"}if(basePath===\"/\"||basePath===\"\")return pathname;if(pathname===basePath)return\"/\";if(pathname.startsWith(basePath+\"/\"))return pathname.slice(basePath.length).replace(/\\/+$/,\"\")||\"/\";return pathname}__name(normalizePathname,\"normalizePathname\");0&&(module.exports={normalizePathname});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,4HAiBA,SAAS,kBAAkB,WAAY,SAAU,CAChD,IAAI,SACJ,GAAI,CACH,SAAW,IAAI,IAAI,UAAU,EAAE,SAAS,QAAQ,OAAQ,EAAE,GAAK,GAChE,MAAQ,CACP,MAAO,GACR,CACA,GAAI,WAAa,KAAO,WAAa,GAAI,OAAO,SAChD,GAAI,WAAa,SAAU,MAAO,IAClC,GAAI,SAAS,WAAW,SAAW,GAAG,EAAG,OAAO,SAAS,MAAM,SAAS,MAAM,EAAE,QAAQ,OAAQ,EAAE,GAAK,IACvG,OAAO,QACR,CAXS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/utils/url.mjs"],"sourcesContent":[null]}}