var e=function(){const e="undefined"!=typeof document&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),t={},r=function(r,n,o){let s=Promise.resolve();if(n&&n.length>0){const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");l=n.map(n=>{var o;if(n=function(e){return"/"+e}(n),o=n,(n=import.meta.resolve?import.meta.resolve(o):new URL(o,new URL("../../../src/node/plugins/importAnalysisBuild.ts",import.meta.url)).href)in t)return;t[n]=!0;const s=n.endsWith(".css");for(let e=r.length-1;e>=0;e--){const t=r[e];if(t.href===n&&(!s||"stylesheet"===t.rel))return}const l=document.createElement("link");return l.rel=s?"stylesheet":e,s||(l.as="script"),l.crossOrigin="",l.href=n,i&&l.setAttribute("nonce",i),document.head.appendChild(l),s?new Promise((e,t)=>{l.addEventListener("load",e),l.addEventListener("error",()=>t(new Error(`Unable to preload CSS for ${n}`)))}):void 0}),s=Promise.all(l.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var l;function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),t.holdRecovery){const r=()=>{throw e};return Promise.resolve(t.holdRecovery).then(r,r)}if(!t.defaultPrevented)throw e}return s.then(e=>{for(const t of e||[]){if("rejected"!==t.status)continue;const e=i(t.reason);if(e)return e}return r().catch(i)})};export{r as t};