"use strict";const l=s=>{const n=new URL(s).pathname,e=n.endsWith("/")?n.slice(0,-1):n,i=/\.[^.]+$/;let t;return e===""?t=new URL("index.html","file:///"):i.test(e)?t=new URL(e.slice(1),"file:///"):t=new URL(`${e.slice(1)}/index.html`,"file:///"),fetch(t)};exports.mountMPA=l;