{"version":3,"sources":["/assets/app/actions/public/import-map-support.ts"],"names":["script","url","specifier"],"mappings":"AAEA,OAAO,MAAM,4BAA8B,SAAY,CACrD,IAAMA,EAAS,SAAS,cAAc,SAAS,CAC3CC,EACJ,GAAI,CACF,EAAM,IAAI,gBAAgB,IAAI,KAAK,CAAC,GAAG,CAAE,CAAE,KAAM,kBAAmB,CAAC,CAAC,CACtE,IAAMC,EAAY,0BAA0BD,IAM5C,MALA,GAAO,KAAO,YACd,EAAO,MAAQ,SAAS,cAAiC,gBAAgB,EAAE,OAAS,GACpF,EAAO,KAAO,KAAK,UAAU,CAAE,QAAS,EAAGC,GAAYD,EAAK,CAAE,CAAC,CAC/D,SAAS,KAAK,YAAYD,EAAO,CACjC,MAAM,OAAOE,GACN,QACD,CAEN,MAAO,UACC,CACRF,EAAO,QAAQ,CACXC,GAAK,IAAI,gBAAgBA,EAAI,KAEjC","sourcesContent":["// The server installs a complete initial import map before this module runs. Test\n// one additional mapping in this document instead of booting a hidden iframe.\nexport const supportsMultipleImportMaps = (async () => {\n  const script = document.createElement(\"script\");\n  let url: string | undefined;\n  try {\n    url = URL.createObjectURL(new Blob([\"\"], { type: \"text/javascript\" }));\n    const specifier = `remix-import-map-probe:${url}`;\n    script.type = \"importmap\";\n    script.nonce = document.querySelector<HTMLScriptElement>(\"script[nonce]\")?.nonce ?? \"\";\n    script.text = JSON.stringify({ imports: { [specifier]: url } });\n    document.head.appendChild(script);\n    await import(specifier);\n    return true;\n  } catch {\n    // Unsupported maps or a blocked probe retain Remix's compatibility loader.\n    return false;\n  } finally {\n    script.remove();\n    if (url) URL.revokeObjectURL(url);\n  }\n})();\n"]}