1!function(){try{var e="undefined"!=typeof window?window:void 0!==fe?fe:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"tealde@35968757485"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="199fa5a8-f0d4-49f1-9165-485cc70fd7ee",e._sentryDebugIdIdentifier="sentry-dbid-199fa5a8-f0d4-49f1-9165-485cc70fd7ee")}catch(e){}}();import{_ as e}from"./assets/preload-helper-b8zBA2tm.js";import{B as t}from"./assets/plugin.es-BMvkk2IP.js";var o={},r={},n={},s={},a={},i={};const l={AT:"@",HYPHEN:"-",SLASH:"/"},c={[l.AT]:"scope_",[l.HYPHEN]:"_",[l.SLASH]:"__"},u={[c[l.AT]]:l.AT,[c[l.HYPHEN]]:l.HYPHEN,[c[l.SLASH]]:l.SLASH};let m=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({});i.BROWSER_LOG_KEY="FEDERATION_DEBUG",i.ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",i.EncodedNameTransformMap=u,i.FederationModuleManifest="federation-manifest.json",i.MANIFEST_EXT=".json",i.MFModuleType={NPM:"npm",APP:"app"},i.MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"},i.MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",i.ManifestFileName="mf-manifest.json",i.NameTransformMap=c,i.NameTransformSymbol=l,i.SEPARATOR=":",i.StatsFileName="mf-stats.json",i.TEMP_DIR=".federation",i.TreeShakingStatus=m;var f,d,p={},h={},g=Object.defineProperty;h.__exportAll=(e,t)=>{let o={};for(var r in e)g(o,r,{get:e[r],enumerable:!0});return t||g(o,Symbol.toStringTag,{value:"Module"}),o},f=p,d=h.__exportAll({}),Object.defineProperty(f,"ContainerPlugin_exports",{enumerable:!0,get:function(){return d}});var y={};!function(e){var t=h.__exportAll({});Object.defineProperty(e,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return t}})}(y);var E={};!function(e){var t=h.__exportAll({});Object.defineProperty(e,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return t}})}(E);var _={};!function(e){var t=h.__exportAll({});Object.defineProperty(e,"SharePlugin_exports",{enumerable:!0,get:function(){return t}})}(_);var S={};!function(e){var t=h.__exportAll({});Object.defineProperty(e,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return t}})}(S);var b={};!function(e){var t=h.__exportAll({});Object.defineProperty(e,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return t}})}(b);var I={},R={};const N=i,T=!0;function M(){return T}I.getProcessEnv=function(){return"undefined"!=typeof process&&R?R:{}},I.isBrowserEnv=M,I.isBrowserEnvValue=T,I.isDebugMode=function(){return"undefined"!=typeof process&&R&&R.FEDERATION_DEBUG?Boolean(R.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||function(){try{if(M()&&window.localStorage)return Boolean(localStorage.getItem(N.BROWSER_LOG_KEY))}catch(ie){return!1}return!1}()},I.isReactNativeEnv=function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator?.product};var v={};const A=i,P=I,O="[ Federation Runtime ]",$=function(e,t="",o=!1){try{const r=o?".js":"";return`${t}${e.replace(new RegExp(`${A.NameTransformSymbol.AT}`,"g"),A.NameTransformMap[A.NameTransformSymbol.AT]).replace(new RegExp(`${A.NameTransformSymbol.HYPHEN}`,"g"),A.NameTransformMap[A.NameTransformSymbol.HYPHEN]).replace(new RegExp(`${A.NameTransformSymbol.SLASH}`,"g"),A.NameTransformMap[A.NameTransformSymbol.SLASH])}${r}`}catch(r){throw r}},k=e=>{throw new Error(`${O}: ${e}`)};const w=/^([\d^=v<>~]|[*xX]$)/;v.assert=(e,t)=>{e||k(t)},v.composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${A.SEPARATOR}${t}`:t:e,""):""},v.decodeName=function(e,t,o){try{let r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.replace(new RegExp(`${A.NameTransformMap[A.NameTransformSymbol.AT]}`,"g"),A.EncodedNameTransformMap[A.NameTransformMap[A.NameTransformSymbol.AT]]).replace(new RegExp(`${A.NameTransformMap[A.NameTransformSymbol.SLASH]}`,"g"),A.EncodedNameTransformMap[A.NameTransformMap[A.NameTransformSymbol.SLASH]]).replace(new RegExp(`${A.NameTransformMap[A.NameTransformSymbol.HYPHEN]}`,"g"),A.EncodedNameTransformMap[A.NameTransformMap[A.NameTransformSymbol.HYPHEN]]),o&&(r=r.replace(".js","")),r}catch(r){throw r}},v.encodeName=$,v.error=k,v.generateExposeFilename=(e,t)=>
1{if(!e)return"";let o=e;return"."===o&&(o="default_export"),o.startsWith("./")&&(o=o.replace("./","")),$(o,"__federation_expose_",t)},v.generateShareFilename=(e,t)=>e?$(e,"__federation_shared_",t):"",v.getResourceUrl=(e,t)=>{if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${t}`}return"publicPath"in e?P.isBrowserEnv()||P.isReactNativeEnv()||!("ssrPublicPath"in e)||"string"!=typeof e.ssrPublicPath?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},v.isRequiredVersion=function(e){return w.test(e)},v.parseEntry=(e,t,o=A.SEPARATOR)=>{const r=e.split(o),n="development"===P.getProcessEnv().NODE_ENV&&t,s=e=>e.startsWith("http")||e.includes(A.MANIFEST_EXT);if(r.length>=2){let[t,...a]=r;e.startsWith(o)&&(t=r.slice(0,2).join(o),a=[n||r.slice(2).join(o)]);let i=n||a.join(o);return s(i)?{name:t,entry:i}:{name:t,version:i||"*"}}if(1===r.length){const[e]=r;return n&&s(n)?{name:e,entry:n}:{name:e,version:n||"*"}}throw`Invalid entry value: ${e}`},v.safeToString=function(e){try{return JSON.stringify(e,null,2)}catch(t){return""}},v.warn=e=>{console.warn(`${O}: ${e}`)};var F={};const D=i,L=(e,t)=>{if(!e)return t;const o=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function U(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}F.generateSnapshotFromManifest=function(e,t={}){const{remotes:o={},overrides:r={},version:n}=t;let s;const a=()=>"publicPath"in e.metaData?"auto"!==e.metaData.publicPath&&""!==e.metaData.publicPath||!n?e.metaData.publicPath:U(n):e.metaData.getPublicPath,i=Object.keys(r);let l={};Object.keys(o).length||(l=e.remotes?.reduce((e,t)=>{let o;const n=t.federationContainerName;return o=i.includes(n)?r[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:o},e},{})||{}),Object.keys(o).forEach(e=>l[e]={matchedVersion:i.includes(e)?r[e]:o[e]});const{remoteEntry:{path:c,name:u,type:m},types:f={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:d},globalName:p,ssrRemoteEntry:h}=e.metaData,{exposes:g}=e;let y={version:n||"",buildVersion:d,globalName:p,remoteEntry:L(c,u),remoteEntryType:m,remoteTypes:L(f.path,f.name),remoteTypesZip:f.zip||"",remoteTypesAPI:f.api||"",remotesInfo:l,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:g?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(e.metaData?.prefetchInterface){const t=e.metaData.prefetchInterface;y={...y,prefetchInterface:t}}if(e.metaData?.prefetchEntry){const{path:t,name:o,type:r}=e.metaData.prefetchEntry;y={...y,prefetchEntry:L(t,o),prefetchEntryType:r}}if("publicPath"in e.metaData?(s={...y,publicPath:a()},"string"==typeof e.metaData.ssrPublicPath&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...y,getPublicPath:a()},h){const e=L(h.path,h.name);s.ssrRemoteEntry=e,s.ssrRemoteEntryType=h.type||"commonjs-module"}return s},F.getManifestFileName=function(e){if(!e)return{statsFileName:D.StatsFileName,manifestFileName:D.ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",o="boolean"==typeof e?"":e.fileName||"";const r=".json",n=o?(s=o).endsWith(r)?s:`${s}${r}`:D.ManifestFileName;var s;return{statsFileName:L(t,o?((e,t)=>e.replace(r,`${t}${r}`))(n,"-stats"):D.StatsFileName),manifestFileName:L(t,n)}},F.inferAutoPublicPath=U,F.isManifestProvider=function(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(D.MANIFEST_EXT))},F.simpleJoinRemoteEntry=L;var H={};const x=I,C="[ Module Federation ]",G=console,j=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var B=class{constructor(e,t=G){this.prefix=e,this.delegate=t??G}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??G}emit(e,t){const o=this.delegate,r=x.isDebugMode()?function(){try{const e=(new Error).stack;if(!e)return;const[,...t]=e.split("\n"),o=t.filter(e=>!j.some(t=>e.includes(t)));if(!o.length)return;return`Stack trace:\n${o.slice(0,5).join("\n")}`}catch{return}}():void 0,n=r?[...t,r]:t,s=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(const a of s){const e=o[a];if("function"==typeof e)return void e.call(o,this.prefix,...n)}for(const a of s){const e=G[a];if("function"==typeof e)return void e.call(G,this.prefix,...n)}}
1log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){x.isDebugMode()&&this.emit("debug",e)}};function W(e){return new B(e)}function V(e){const t=new B(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}const q=W(C),X=V(C);H.bindLoggerToCompiler=function(e,t,o){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{const r=t.getInfrastructureLogger(o);!r||"object"!=typeof r||"function"!=typeof r.log&&"function"!=typeof r.info&&"function"!=typeof r.warn&&"function"!=typeof r.error||e.setDelegate(r)}catch{e.setDelegate(void 0)}},H.createInfrastructureLogger=V,H.createLogger=W,H.infrastructureLogger=X,H.logger=q;var K={};const Y=v;async function z(e,t){try{return await e()}catch(o){return void(!t&&Y.warn(o))}}function J(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function Z(e){let t,o=null,r=!0,n=2e4;const s=document.getElementsByTagName("script");for(let c=0;c<s.length;c++){const t=s[c],n=t.getAttribute("src");if(n&&J(n,e.url)){o=t,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===t?.type?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach(e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))})}let a=null;const i="undefined"!=typeof window?t=>{if(t.filename&&J(t.filename,e.url)){const o=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);o.name="ScriptExecutionError",a=o}}:null;i&&window.addEventListener("error",i);const l=async(r,n)=>{clearTimeout(t),i&&window.removeEventListener("error",i);const s=()=>
1{if("error"===n?.type){const t=new Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else a?e?.onErrorCallback&&e?.onErrorCallback(a):e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,z(()=>{const{needDeleteScript:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)}),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return s(),t}return s(),e}s()};return o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},n),{script:o,needAttach:r}}K.createLink=function(e){let t=null,o=!0;const r=document.getElementsByTagName("link");for(let s=0;s<r.length;s++){const n=r[s],a=n.getAttribute("href"),i=n.getAttribute("rel");if(a&&J(a,e.url)&&i===e.attrs.rel){t=n,o=!1;break}}if(!t){let o;t=document.createElement("link"),t.setAttribute("href",e.url);const r=e.attrs;e.createLinkHook&&(o=e.createLinkHook(e.url,r),o instanceof HTMLLinkElement&&(t=o)),r&&!o&&Object.keys(r).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,r[e])})}const n=(o,r)=>{const n=()=>{"error"===r?.type?e?.onErrorCallback&&e?.onErrorCallback(r):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,z(()=>{const{needDeleteLink:o=!0}=e;o&&t?.parentNode&&t.parentNode.removeChild(t)}),o)){const e=o(r);return n(),e}n()};return t.onerror=n.bind(null,t.onerror),t.onload=n.bind(null,t.onload),{link:t,needAttach:o}},K.createScript=Z,K.isStaticResourcesEqual=J,K.loadScript=function(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise((t,n)=>{const{script:s,needAttach:a}=Z({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...o},createScriptHook:r,needDeleteScript:!0});a&&document.head.appendChild(s)})},K.safeWrapper=z;var Q={};Q.createScriptNode=(e,t,o,r)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Q.loadScriptNode=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};var ee={};ee.normalizeOptions=function(e,t,o){return function(r){if(!1===r)return!1;if(void 0===r)return!!e&&t;if(!0===r)return t;if(r&&"object"==typeof r)return{...t,...r};throw new Error(`Unexpected type for \`${o}\`, expect boolean/undefined/object, got: ${typeof r}`)}};var te={};te.createModuleFederationConfig=e=>e,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i,o=p,r=y,n=E,s=_,a=S,l=b,c=I,u=v,m=F,f=H,d=K,h=Q,g=ee,R=te;e.BROWSER_LOG_KEY=t.BROWSER_LOG_KEY,e.ENCODE_NAME_PREFIX=t.ENCODE_NAME_PREFIX,e.EncodedNameTransformMap=t.EncodedNameTransformMap,e.FederationModuleManifest=t.FederationModuleManifest,e.MANIFEST_EXT=t.MANIFEST_EXT,e.MFModuleType=t.MFModuleType,e.MFPrefetchCommon=t.MFPrefetchCommon,e.MODULE_DEVTOOL_IDENTIFIER=t.MODULE_DEVTOOL_IDENTIFIER,e.ManifestFileName=t.ManifestFileName,e.NameTransformMap=t.NameTransformMap,e.NameTransformSymbol=t.NameTransformSymbol,e.SEPARATOR=t.SEPARATOR,e.StatsFileName=t.StatsFileName,e.TEMP_DIR=t.TEMP_DIR,e.TreeShakingStatus=t.TreeShakingStatus,e.assert=u.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=u.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return a.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return o.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return r.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=f.createInfrastructureLogger,e.createLink=d.createLink,e.createLogger=f.createLogger,e.createModuleFederationConfig=R.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=h.createScriptNode,e.decodeName=u.decodeName,e.encodeName=u.encodeName,e.error=u.error,e.generateExposeFilename=u.generateExposeFilename,e.generateShareFilename=u.generateShareFilename,e.generateSnapshotFromManifest=m.generateSnapshotFromManifest,e.getManifestFileName=m.getManifestFileName,e.getProcessEnv=c.getProcessEnv,e.getResourceUrl=u.getResourceUrl,e.inferAutoPublicPath=m.inferAutoPublicPath,e.infrastru
1ctureLogger=f.infrastructureLogger,e.isBrowserEnv=c.isBrowserEnv,e.isBrowserEnvValue=c.isBrowserEnvValue,e.isDebugMode=c.isDebugMode,e.isManifestProvider=m.isManifestProvider,e.isReactNativeEnv=c.isReactNativeEnv,e.isRequiredVersion=u.isRequiredVersion,e.isStaticResourcesEqual=d.isStaticResourcesEqual,e.loadScript=d.loadScript,e.loadScriptNode=h.loadScriptNode,e.logger=f.logger,Object.defineProperty(e,"moduleFederationPlugin",{enumerable:!0,get:function(){return n.ModuleFederationPlugin_exports}}),e.normalizeOptions=g.normalizeOptions,e.parseEntry=u.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return l.ProvideSharedPlugin_exports}}),e.safeToString=u.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=m.simpleJoinRemoteEntry,e.warn=u.warn}(a);var oe={},re={};re.getShortErrorMsg=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")},function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=re;e.logAndReport=function(e,o,r,n,s,a){return n(t.getShortErrorMsg(e,o,r,s))}}(oe);let ne=oe;const se="[ Federation Runtime ]",ae=(0,a.createLogger)(se);function ie(e,t,o,r,n){if(void 0!==t)return(0,ne.logAndReport)(e,t,o??{},e=>{throw new Error(`${se}: ${e}`)},r,n);const s=e;if(s instanceof Error)throw s.message.startsWith(se)||(s.message=`${se}: ${s.message}`),s;throw new Error(`${se}: ${s}`)}s.assert=function(e,t,o,r,n){e||(void 0!==o?ie(t,o,r,void 0,n):ie(t))},s.error=ie,s.logger=ae,s.warn=function(e){e instanceof Error?(e.message.startsWith(se)||(e.message=`${se}: ${e.message}`),ae.warn(e)):ae.warn(e)};var le={};const ce=s;let ue=a;const me=Object.prototype.toString;le.addUniqueItem=function(e,t){return-1===e.findIndex(e=>e===t)&&e.push(t),e},le.arrayOptions=function(e){return Array.isArray(e)?e:[e]},le.getFMId=function(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`},le.getRemoteEntryInfoFromSnapshot=function(e){const t={url:"",type:"global",globalName:""};return ue.isBrowserEnvValue||(0,ue.isReactNativeEnv)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t},le.isObject=function(e){return e&&"object"==typeof e},le.isPlainObject=function(e){return"[object Object]"===me.call(e)},le.isPureRemoteEntry=function(e){return!e.entry.includes(".json")},le.isRemoteInfoWithEntry=function(e){return void 0!==e.entry},le.isStaticResourcesEqual=function(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")},le.objectToString=me,le.processModuleAlias=(e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o},le.safeWrapper=async function(e,t){try{return await e()}catch(o){return void(!t&&ce.warn(o))}};var fe={};const de=s,pe=le;let he=a;const ge="object"==typeof globalThis?globalThis:window,ye=(()=>{try{return document.defaultView}catch{return ge}})(),Ee=ye;function _e(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function Se(e,t){return Object.hasOwnProperty.call(e,t)}Se(ge,"__GLOBAL_LOADING_REMOTE_ENTRY__")||_e(ge,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const be=ge.__GLOBAL_LOADING_REMOTE_ENTRY__;function Ie(e){Se(e,"__VMOK__")&&!Se(e,"__FEDERATION__")&&_e(e,"__FEDERATION__",e.__VMOK__),Se(e,"__FEDERATION__")||(_e(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),_e(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function Re(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),s=`${o}:${t}`,a=e[s];if(a)return{value:a,key:s}}return{value:void 0,key:t}}}de.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}Ie(ge),Ie(ye);const Ne=(e,t)=>{const o=Re(t,pe.getFMId(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t,...o}=e,r=pe.getFMId(o),n=Re(ye.__FEDERATION__.moduleInfo,r).value;if(n?.version===t)return n}};fe.CurrentGlobal=ge,fe.Global=Ee,fe.addGlobalSnapshot=e=>(ye.__FEDERATION__.moduleInfo={...ye.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const e of t)delete ye.__FEDERATION__.moduleInfo[e]}),fe.getGlobalFederationConstructor=function(){return ge.__FEDERATION__.__DEBUG_CONSTRUCTOR__},fe.getGlobalHostPlugins=()=>ye.__FEDERATION__.__GLOBAL_PLUGIN__,fe.getGlobalSnapshot=()=>ye.__FEDERATION__.moduleInfo,fe.getGlobalSnapshotInfoByModuleInfo=e=>Ne(e,ye.__FEDERATION__.moduleInfo),fe.getInfoWithoutType=Re,fe.getPreloaded=e=>ge.__FEDERATION__.__PRELOADED_MAP__.get(e),fe.getRemoteEntryExports=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:ge[o]}},fe.getTargetSnapshotInfoByModuleInfo=Ne,fe.globalLoading=be,fe.nativeGlobal=ye,fe.registerGlobalPlugins=e=>{const{__GLOBAL_PLUGIN__:t}=ye.__FEDERATION__;
1e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):de.warn(`The plugin ${e.name} has been registered.`)})},fe.resetFederationGlobalInfo=function(){ge.__FEDERATION__.__GLOBAL_PLUGIN__=[],ge.__FEDERATION__.__INSTANCES__=[],ge.__FEDERATION__.moduleInfo={},ge.__FEDERATION__.__SHARE__={},ge.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(be).forEach(e=>{delete be[e]})},fe.setGlobalFederationConstructor=function(e,t=(0,he.isDebugMode)()){t&&(ge.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,ge.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.3.3")},fe.setGlobalFederationInstance=function(e){ge.__FEDERATION__.__INSTANCES__.push(e)},fe.setGlobalSnapshotInfoByModuleInfo=(e,t)=>{const o=pe.getFMId(e);return ye.__FEDERATION__.moduleInfo[o]=t,ye.__FEDERATION__.moduleInfo},fe.setPreloaded=e=>ge.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);var Te={},Me={},ve={};const Ae="[0-9A-Za-z-]+",Pe=`(?:\\+(${Ae}(?:\\.${Ae})*))`,Oe="0|[1-9]\\d*",$e="[0-9]+",ke="\\d*[a-zA-Z-][a-zA-Z0-9-]*",we=`(?:${$e}|${ke})`,Fe=`(?:${Oe}|${ke})`,De=`(?:-(${Fe}(?:\\.${Fe})*))`,Le=`${Oe}|x|X|\\*`,Ue=`[v=\\s]*(${Le})(?:\\.(${Le})(?:\\.(${Le})(?:${De})?${Pe}?)?)?`,He=`^\\s*(${Ue})\\s+-\\s+(${Ue})\\s*$`,xe="((?:<|>)?=?)",Ce=`(\\s*)${xe}\\s*(${`[v=\\s]*(${$e})\\.(${$e})\\.(${$e})${`(?:-?(${we}(?:\\.${we})*))`}?${Pe}?`}|${Ue})`,Ge="(?:~>?)",je=`(\\s*)${Ge}\\s+`,Be="(?:\\^)",We=`(\\s*)${Be}\\s+`,Ve=`^${Be}${Ue}$`,qe=`^${Ge}${Ue}$`,Xe=`^${xe}\\s*${Ue}$`,Ke=`^${xe}\\s*(${`v?(${Oe})\\.(${Oe})\\.(${Oe})${De}?${Pe}?`})$|^$`;ve.caret=Ve,ve.caretTrim=We,ve.comparator=Ke,ve.comparatorTrim=Ce,ve.gte0="^\\s*>
1=\\s*0.0.0\\s*$",ve.hyphenRange=He,ve.star="(<|>)?=?\\s*\\*",ve.tilde=qe,ve.tildeTrim=je,ve.xRange=Xe;const Ye=ve;function ze(e){return new RegExp(e)}Me.combineVersion=function(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n},Me.extractComparator=function(e){return e.match(ze(Ye.comparator))},Me.isXVersion=function(e){return!e||"x"===e.toLowerCase()||"*"===e},Me.parseRegex=ze,Me.pipe=function(...e){return t=>e.reduce((e,t)=>t(e),t)};var Je={};const Ze=ve,Qe=Me;Je.parseCaretTrim=function(e){return e.replace(Qe.parseRegex(Ze.caretTrim),"$1^")},Je.parseCarets=function(e){return e.trim().split(/\s+/).map(e=>e.replace(Qe.parseRegex(Ze.caret),(e,t,o,r,n)=>Qe.isXVersion(t)?"":Qe.isXVersion(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Qe.isXVersion(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)).join(" ")},Je.parseComparatorTrim=function(e){return e.replace(Qe.parseRegex(Ze.comparatorTrim),"$1$2$3")},Je.parseGTE0=function(e){return e.trim().replace(Qe.parseRegex(Ze.gte0),"")},Je.parseHyphen=function(e){return e.replace(Qe.parseRegex(Ze.hyphenRange),(e,t,o,r,n,s,a,i,l,c,u,m)=>`${t=Qe.isXVersion(o)?"":Qe.isXVersion(r)?`>=${o}.0.0`:Qe.isXVersion(n)?`>=${o}.${r}.0`:`>=${t}`} ${i=Qe.isXVersion(l)?"":Qe.isXVersion(c)?`<${Number(l)+1}.0.0-0`:Qe.isXVersion(u)?`<${l}.${Number(c)+1}.0-0`:m?`<=${l}.${c}.${u}-${m}`:`<=${i}`}`.trim())},Je.parseStar=function(e){return e.trim().replace(Qe.parseRegex(Ze.star),"")},Je.parseTildeTrim=function(e){return e.replace(Qe.parseRegex(Ze.tildeTrim),"$1~")},Je.parseTildes=function(e){return e.trim().split(/\s+/).map(e=>e.replace(Qe.parseRegex(Ze.tilde),(e,t,o,r,n)=>Qe.isXVersion(t)?"":Qe.isXVersion(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Qe.isXVersion(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)).join(" ")},Je.parseXRanges=function(e){return e.split(/\s+/).map(e=>e.trim().replace(Qe.parseRegex(Ze.xRange),(e,t,o,r,n,s)=>{const a=Qe.isXVersion(o),i=a||Qe.isXVersion(r),l=i||Qe.isXVersion(n);return"="===t&&l&&(t=""),s="",a?">"===t||"<"===t?"<0.0.0-0":"*":t&&l?(i&&(r=0),n=0,">"===t?(t=">=",i?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",i?o=Number(o)+1:r=Number(r)+1),"<"===t&&(s="-0"),`${t+o}.${r}.${n}${s}`):i?`>=${o}.0.0${s} <${Number(o)+1}.0.0-0`:l?`>=${o}.${r}.0${s} <${o}.${Number(r)+1}.0-0`:e})).join(" ")};var et={};function tt(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function ot(e,t){return tt(e.major,t.major)||tt(e.minor,t.minor)||tt(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let n=0,s=o.length;n<=s;n++){const e=o[n],t=r[n];if(e!==t)return void 0===e&&void 0===t?0:e?t?tt(e,t):-1:1}return 0}(e,t)}function rt(e,t){return e.version===t.version}et.compare=function(e,t){switch(e.operator){case"":case"=":return rt(e,t);case">":return ot(e,t)<0;case">=":return rt(e,t)||ot(e,t)<0;case"<":return ot(e,t)>0;case"<=":return rt(e,t)||ot(e,t)>0;case void 0:return!0;default:return!1}};const nt=Me,st=Je,at=et;function it(e){return nt.pipe(st.parseCarets,st.parseTildes,st.parseXRanges,st.parseStar)(e)}function lt(e){return nt.pipe(st.parseHyphen,st.parseComparatorTrim,st.parseTildeTrim,st.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}Te.satisfy=function(e,t){if(!e)return!1;const o=nt.extractComparator(e);if(!o)return!1;const[,r,,n,s,a,i]=o,l={operator:r,version:nt.combineVersion(n,s,a,i),major:n,minor:s,patch:a,preRelease:i?.split(".")},c=t.split("||");for(const m of c){const e=m.trim();if(!e)return!0;if("*"===e||"x"===e)return!0;try{const t=lt(e);if(!t.trim())return!0;const o=t.split(" ").map(e=>it(e)).join(" ");if(!o.trim())return!0;const r=o.split(/\s+/).map(e=>
1st.parseGTE0(e)).filter(Boolean);if(0===r.length)continue;let n=!0;for(const e of r){const t=nt.extractComparator(e);if(!t){n=!1;break}const[,o,,r,s,a,i]=t;if(!at.compare({operator:o,version:nt.combineVersion(r,s,a,i),major:r,minor:s,patch:a,preRelease:i?.split(".")},l)){n=!1;break}}if(n)return!0}catch(u){console.error(`[semver] Error processing range part "${e}":`,u);continue}}return!1};var ct={},ut={};ut.DEFAULT_REMOTE_TYPE="global",ut.DEFAULT_SCOPE="default";const mt=s,ft=le,dt=fe,pt=ut,ht=Te;let gt=a;function yt(e,t){if(!e)return!1;const{status:o,mode:r}=e;return o!==gt.TreeShakingStatus.NO_USE&&(o===gt.TreeShakingStatus.CALCULATED||"runtime-infer"===r&&(!t||bt(e,t)))}function Et(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!ht.satisfy(o(e),`<=${o(t)}`)}const _t=(e,t)=>{const o=t||function(e,t){return Et(e,t)};return Object.keys(e).reduce((e,t)=>e?o(e,t)||"0"===e?t:e:t,0)},St=e=>Boolean(e.loaded)||"function"==typeof e.lib,bt=(e,t)=>{if(!e||!t)return!1;const{usedExports:o}=e;return!!o&&!!t.every(e=>o.includes(e))};function It(e,t,o,r){const n=e[t][o];let s="",a=yt(r);const i=function(e,t){return a?!n[e].treeShaking||!!n[t].treeShaking&&(!St(n[e].treeShaking)&&Et(e,t)):!St(n[e])&&Et(e,t)};if(a){if(s=_t(e[t][o],i),s)return{version:s,useTreesShaking:a};a=!1}return{version:_t(e[t][o],i),useTreesShaking:a}}const Rt=e=>St(e)||(e=>Boolean(e.loading))(e);function Nt(e,t,o,r){const n=e[t][o];let s="",a=yt(r);const i=function(e,t){if(a){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(Rt(n[t].treeShaking))return!Rt(n[e].treeShaking)||Boolean(Et(e,t));if(Rt(n[e].treeShaking))return!1}return Rt(n[t])?!Rt(n[e])||Boolean(Et(e,t)):!Rt(n[e])&&Et(e,t)};if(a){if(s=_t(e[t][o],i),s)return{version:s,useTreesShaking:a};a=!1}return{version:_t(e[t][o],i),useTreesShaking:a}}function Tt(e){return"loaded-first"===e?Nt:It}ct.addUseIn=(e,t)=>{e.useIn||(e.useIn=[]),ft.addUniqueItem(e.useIn,t)},ct.directShare=function(e,t){return t&&e.treeShaking?e.treeShaking:e},ct.formatShareConfigs=function(e,t){const o=t.shared||{},r=t.name,n=Object.keys(o).reduce((e,n)=>{const s=ft.arrayOptions(o[n]);return e[n]=e[n]||[],s.forEach(o=>{e[n].push(function(e,t,o,r){let n;return n="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{mt.error(`Cannot get shared "${o}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&mt.error(`Invalid shared config for "${o}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:n,loaded:!(!e?.loaded&&!("lib"in e))||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??r)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??gt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}(o,r,n,t.shareStrategy))}),e},{}),s={...e.shared};return Object.keys(n).forEach(e=>{s[e]?n[e].forEach(t=>{s[e].find(e=>e.version===t.version)||s[e].push(t)}):s[e]=n[e]}),{allShareInfos:s,newShareInfos:n}},ct.getGlobalShareScope=function(){return dt.Global.__FEDERATION__.__SHARE__},ct.getRegisteredShare=function(e,t,o,r){if(!e)return;const{shareConfig:n,scope:s=pt.DEFAULT_SCOPE,strategy:a,treeShaking:i}=o,l=Array.isArray(s)?s:[s];for(const c of l)if(n&&e[c]&&e[c][t]){const{requiredVersion:s}=n,{version:l,useTreesShaking:u}=Tt(a)(e,c,t,i),m=()=>{const r=e[c][t][l];if(n.singleton){if("string"==typeof s&&!ht.satisfy(l,s)){const e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${s})`;n.strictVersion?mt.error(e):mt.warn(e)}return{shared:r,useTreesShaking:u}}{if(!1===s||"*"===s)return{shared:r,useTreesShaking:u};if(ht.satisfy(l,s))return{shared:r,useTreesShaking:u};const o=yt(i);if(o)for(const[r,n]of Object.entries(e[c][t]))if(yt(n.treeShaking,i?.usedExports)&&ht.satisfy(r,s))return{shared:n,useTreesShaking:o};
1for(const[r,n]of Object.entries(e[c][t]))if(ht.satisfy(r,s))return{shared:n,useTreesShaking:!1}}},f={shareScopeMap:e,scope:c,pkgName:t,version:l,GlobalFederation:dt.Global.__FEDERATION__,shareInfo:o,resolver:m};return(r.emit(f)||f).resolver()}},ct.getTargetSharedOptions=function(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e,n=o?.resolver??(e=>{if(!e)return;const t={};e.forEach(e=>{t[e.version]=e});return t[_t(t,function(e,o){return!St(t[e])&&Et(e,o)})]}),s=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),a=(...e)=>{const t={};for(const o of e)if(o)for(const[e,r]of Object.entries(o)){const o=t[e];s(o)&&s(r)?t[e]=a(o,r):void 0!==r&&(t[e]=r)}return t};return a(n(r[t]),o?.customShareInfo)},ct.shouldUseTreeShaking=yt;var Mt={};Mt.matchRemote=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}},Mt.matchRemoteWithNameAndExpose=function(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/")){return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o}}if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let s=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(s&&s.startsWith("/")){return s=`.${s}`,{pkgNameOrAlias:o.alias,expose:s,remote:o}}if(""===s)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}};var vt={},At={},Pt={};Pt.BUILD_001="BUILD-001",Pt.BUILD_002="BUILD-002",Pt.RUNTIME_001="RUNTIME-001",Pt.RUNTIME_002="RUNTIME-002",Pt.RUNTIME_003="RUNTIME-003",Pt.RUNTIME_004="RUNTIME-004",Pt.RUNTIME_005="RUNTIME-005",Pt.RUNTIME_006="RUNTIME-006",Pt.RUNTIME_007="RUNTIME-007",Pt.RUNTIME_008="RUNTIME-008",Pt.RUNTIME_009="RUNTIME-009",Pt.RUNTIME_010="RUNTIME-010",Pt.RUNTIME_011="RUNTIME-011",Pt.RUNTIME_012="RUNTIME-012",Pt.TYPE_001="TYPE-001";var Ot={};const $t=Pt,kt={[$t.RUNTIME_001]:"Failed to get remoteEntry exports.",[$t.RUNTIME_002]:'The remote entry interface does not contain "init"',[$t.RUNTIME_003]:"Failed to get manifest.",[$t.RUNTIME_004]:"Failed to locate remote.",[$t.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[$t.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[$t.RUNTIME_007]:"Failed to get remote snapshot.",[$t.RUNTIME_008]:"Failed to load script resources.",[$t.RUNTIME_009]:"Please call createInstance first.",[$t.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[$t.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[$t.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},wt={[$t.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},Ft={[$t.BUILD_001]:"Failed to find expose module.",[$t.BUILD_002]:"PublicPath is required in prod mode."},Dt={...kt,...wt,...Ft};Ot.buildDescMap=Ft,Ot.errorDescMap=Dt,Ot.runtimeDescMap=kt,Ot.typeDescMap=wt,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pt,o=re,r=Ot;e.BUILD_001=t.BUILD_001,e.BUILD_002=t.BUILD_002,e.RUNTIME_001=t.RUNTIME_001,e.RUNTIME_002=t.RUNTIME_002,e.RUNTIME_003=t.RUNTIME_003,e.RUNTIME_004=t.RUNTIME_004,e.RUNTIME_005=t.RUNTIME_005,e.RUNTIME_006=t.RUNTIME_006,e.RUNTIME_007=t.RUNTIME_007,e.RUNTIME_008=t.RUNTIME_008,e.RUNTIME_009=t.RUNTIME_009,e.RUNTIME_010=t.RUNTIME_010,e.RUNTIME_011=t.RUNTIME_011,e.RUNTIME_012=t.RUNTIME_012,e.TYPE_001=t.TYPE_001,e.buildDescMap=r.buildDescMap,e.errorDescMap=r.errorDescMap,e.getShortErrorMsg=o.getShortErrorMsg,e.runtimeDescMap=r.runtimeDescMap,e.typeDescMap=r.typeDescMap}(At);const Lt=s,Ut=fe,Ht=ut;let xt=a,Ct=At;const Gt=".then(callbacks[0]).catch(callbacks[1])";async function jt({name:e,globalName:t,entry:o,remoteInfo:r,loaderHook:n,getEntryUrl:s}){const{entryExports:a}=Ut.getRemoteEntryExports(e,t);if(a)return a;const i=s?s(o):o;return(0,xt.loadScript)(i,{attrs:{},createScriptHook:(e,t)=>{const o=n.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then(()=>function(e,t,o){const{remoteEntryKey:r,entryExports:n}=Ut.getRemoteEntryExports(e,t);return n||Lt.error(Ct.RUNTIME_001,Ct.runtimeDescMap,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r}),n}(e,t,o),t=>{const o=t instanceof Error?t.message:String(t);Lt.error(Ct.RUNTIME_008,Ct.runtimeDescMap,{remoteName:e,resourceUrl:i},o)})}async function Bt({remoteInfo:e,remoteEntryExports:t,loaderHook:o,getEntryUrl:r}){const{entry:n,entryGlobalName:s,name:a,type:i}=e;switch(i){case"esm":case"module":return async function({entry:e,remoteEntryExports:t}){return new Promise((o,r)=>{try{t?o(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${e}")${Gt}`)([o,r]):import(e).then(o).catch(r)}catch(n){Lt.error(`Failed to load ESM entry from "${e}". ${n instanceof Error?n.message:String(n)}`)}})}({entry:n,remoteEntryExports:t});case"system":return async function({entry:e,remoteEntryExports:t}){return new Promise((o,r)=>{try{t?o(t):"undefined"==typeof __system_context__?System.import(e).then(o).catch(r):new Function("callbacks",`System.import("${e}")${Gt}`)([o,r])}catch(n){Lt.error(`Failed to load SystemJS entry from "${e}". ${n instanceof Error?n.message:String(n)}`)}})}({entry:n,remoteEntryExports:t});default:return jt({entry:n,globalName:s,name:a,remoteInfo:e,loaderHook:o,getEntryUrl:r})}}function Wt(e){const{entry:t,name:o}=e;return(0,xt.composeKeyWithSeparator)(o,t)}vt.getRemoteEntry=async function e(t){const{origin:o,remoteEntryExports:r,remoteInfo:n,getEntryUrl:s,_inErrorHandling:a=!1}=t,i=Wt(n);if(r)return r;if(!Ut.globalLoading[i]){const t=o.remoteHandler.hooks.lifecycle.loadEntry,l=o.loaderHook;Ut.globalLoading[i]=t.emit({loaderHook:l,remoteInfo:n,remoteEntryExports:r}).then(e=>e||Bt({remoteInfo:n,remoteEntryExports:r,loaderHook:l,getEntryUrl:s})).catch(async t=>{const s=Wt(n),i=t instanceof Error&&t.message.includes("ScriptExecutionError");
1if(t instanceof Error&&t.message.includes(Ct.RUNTIME_008)&&!i&&!a){const t=t=>e({...t,_inErrorHandling:!0}),a=await o.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:t,origin:o,remoteInfo:n,remoteEntryExports:r,globalLoading:Ut.globalLoading,uniqueKey:s});if(a)return a}throw t})}return Ut.globalLoading[i]},vt.getRemoteEntryUniqueKey=Wt,vt.getRemoteInfo=function(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Ht.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Ht.DEFAULT_SCOPE}};var Vt={};Vt.getBuilderId=function(){return"undefined"!=typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""};var qt={};const Xt=fe;qt.registerPlugins=function(e,t){const o=Xt.getGlobalHostPlugins(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return o.length>0&&o.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{r.forEach(o=>{o.applyPlugin(e,t)})}),e};var Kt={};function Yt(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}Kt.optionsToMFContext=function(e){const t={};for(const[o,r]of Object.entries(e.shared)){const e=r[0];e&&(t[o]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:!1!==e.shareConfig?.requiredVersion&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(Yt)??[],shared:t}}};var zt={},Jt={};const Zt=s,Qt=Mt,eo=vt;let to=a;function oo(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}Jt.defaultPreloadArgs=oo,Jt.formatPreloadArgs=function(e,t){return t.map(t=>{const o=Qt.matchRemote(e,t.nameOrAlias);return Zt.assert(o,`Unable to preload ${t.nameOrAlias} as it is not included in ${!o&&(0,to.safeToString)({remoteInfo:o,remotes:e})}`),{remote:o,preloadConfig:oo(t)}})},Jt.normalizePreloadExposes=function(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]},Jt.preloadAssets=function(e,t,o,r=!0){const{cssAssets:n,jsAssetsWithoutEntry:s,entryAssets:a}=o;if(t.options.inBrowser){if(a.forEach(o=>{const{moduleInfo:r}=o,n=t.moduleCache.get(e.name);n?eo.getRemoteEntry({origin:t,remoteInfo:r,remoteEntryExports:n.remoteEntryExports}):eo.getRemoteEntry({origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){const o={rel:"preload",as:"style"};n.forEach(r=>{const{link:n,needAttach:s}=(0,to.createLink)({url:r,cb:()=>{},attrs:o,createLinkHook:(o,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:e});if(n instanceof HTMLLinkElement)return n}});s&&document.head.appendChild(n)})}else{const o={rel:"stylesheet",type:"text/css"};n.forEach(r=>{const{link:n,needAttach:s}=(0,to.createLink)({url:r,cb:()=>{},attrs:o,createLinkHook:(o,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:e});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});s&&document.head.appendChild(n)})}if(r){const o={rel:"preload",as:"script"};s.forEach(r=>{const{link:n,needAttach:s}=(0,to.createLink)({url:r,cb:()=>{},attrs:o,createLinkHook:(o,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:e});if(n instanceof HTMLLinkElement)return n}});s&&document.head.appendChild(n)})}else{const o={fetchpriority:"high",type:"module"===e?.type?"module":"text/javascript"};s.forEach(r=>{const{script:n,needAttach:s}=(0,to.createScript)({url:r,cb:()=>{},attrs:o,createScriptHook:(o,r)=>{const n=t.loaderHook.lifecycle.createScript.emit({url:o,attrs:r,remoteInfo:e});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});s&&document.head.appendChild(n)})}}};const ro=fe,no=ct,so=Mt,ao=vt,io=Jt,lo={getRegisteredShare:no.getRegisteredShare,getGlobalShareScope:no.getGlobalShareScope};var co={global:{Global:ro.Global,nativeGlobal:ro.nativeGlobal,resetFederationGlobalInfo:ro.resetFederationGlobalInfo,setGlobalFederationInstance:ro.setGlobalFederationInstance,getGlobalFederationConstructor:ro.getGlobalFederationConstructor,setGlobalFederationConstructor:ro.setGlobalFederationConstructor,getInfoWithoutType:ro.getInfoWithoutType,getGlobalSnapshot:ro.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:ro.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:ro.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:ro.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:ro.addGlobalSnapshot,getRemoteEntryExports:ro.getRemoteEntryExports,registerGlobalPlugins:ro.registerGlobalPlugins,getGlobalHostPlugins:ro.getGlobalHostPlugins,getPreloaded:ro.getPreloaded,setPreloaded:ro.setPreloaded},share:lo,utils:{matchRemoteWithNameAndExpose:so.matchRemoteWithNameAndExpose,preloadAssets:io.preloadAssets,getRemoteInfo:ao.getRemoteInfo}};zt.default=co;var uo={};const mo=s,fo=le,po=vt,ho=Kt;let go=a,yo=At;uo.Module=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;const e=await po.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return mo.assert(e,`remoteEntryExports is undefined \n ${(0,go.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,o){const r=await this.getEntry();if(this.inited)return r;if(this.initPromise)return await this.initPromise,r;this.initing=!0,this.initPromise=(async()=>{const{remoteEntryInitOptions:n,shareScope:s,initScope:a}=function(e,t,o){const r=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];
1n.length||n.push("default"),n.forEach(e=>{r[e]||(r[e]={})});const s={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(s,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:s,shareScope:r[n[0]],initScope:o??[]}}(this.remoteInfo,this.host.shareScopeMap,o),i=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:n,initScope:a,remoteInfo:this.remoteInfo,origin:this.host});void 0===r?.init&&mo.error(yo.RUNTIME_002,yo.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,ho.optionsToMFContext(this.host.options)),await r.init(i.shareScope,i.initScope,i.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...i,id:e,remoteSnapshot:t,remoteEntryExports:r}),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return r}async get(e,t,o,r){const{loadFactory:n=!0}=o||{loadFactory:!0},s=await this.init(e,r);let a;this.lib=s,a=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:s,expose:t,moduleInfo:this.remoteInfo}),a||(a=await s.get(t)),mo.assert(a,`${fo.getFMId(this.remoteInfo)} remote don't export ${t}.`);const i=fo.processModuleAlias(this.remoteInfo.name,t),l=this.wraperFactory(a,i);return n?await l():l}wraperFactory(e,t){function o(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{const r=await e();return o(r,t),r}:()=>{const r=e();return o(r,t),r}}};var Eo={},_o={};_o.SyncHook=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on(function o(...r){return t.remove(o),e.apply(null,r)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(o=>{t=o(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};var So={};const bo=_o;var Io=class extends bo.SyncHook{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then(n):t);t=n()}return Promise.resolve(t)}};So.AsyncHook=Io;var Ro={};const No=s,To=le,Mo=_o;function vo(e,t){if(!To.isObject(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}var Ao=class extends Mo.SyncHook{constructor(e){super(),this.onerror=No.error,this.type=e}emit(e){To.isObject(e)||No.error(`The data for the "${this.type}" hook should be an object.`);for(const o of this.listeners)try{const t=o(e);if(!vo(e,t)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=t}catch(t){No.warn(t),this.onerror(t)}return e}};Ro.SyncWaterfallHook=Ao,Ro.checkReturnData=vo;var Po={};const Oo=s,$o=le,ko=_o,wo=Ro;var Fo=class extends ko.SyncHook{constructor(e){super(),this.onerror=Oo.error,this.type=e}emit(e){$o.isObject(e)||Oo.error(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(Oo.warn(t),this.onerror(t),e),n=s=>{if(wo.checkReturnData(e,s)){if(e=s,o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(a){return r(a)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(n(e))}return Promise.resolve(e)}};Po.AsyncWaterfallHook=Fo;var Do={};const Lo=s,Uo=le;Do.PluginSystem=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){Lo.assert(Uo.isPlainObject(e),"Plugin configuration is invalid.");const o=e.name;Lo.assert(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{const o=e[t];o&&this.lifecycle[t].on(o)}))}removePlugin(e){Lo.assert(e,"A name is required.");const t=this.registerPlugins[e];Lo.assert(t,`The plugin "${e}
1" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}};var Ho={};const xo=s,Co=le,Go=Jt;let jo=a,Bo=At;function Wo(e,t){const o=Co.getRemoteEntryInfoFromSnapshot(t);o.url||xo.error(Bo.RUNTIME_011,Bo.runtimeDescMap,{remoteName:e.name});let r=(0,jo.getResourceUrl)(t,o.url);jo.isBrowserEnvValue||r.startsWith("http")||(r=`https:${r}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}Ho.assignRemoteInfo=Wo,Ho.snapshotPlugin=function(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:n,remoteInfo:s,id:a}=e;if(!Co.isRemoteInfoWithEntry(t)||!Co.isPureRemoteEntry(t)){const{remoteSnapshot:i,globalSnapshot:l}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});Wo(s,i);const c={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await n.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:c,remoteInfo:s,remote:t,remoteSnapshot:i,globalSnapshot:l});return u&&Go.preloadAssets(s,n,u,!1),{...e,remoteSnapshot:i}}return e}}};var Vo={};const qo=le,Xo=fe,Ko=ct,Yo=Jt,zo=Ho;let Jo=a;function Zo(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Qo(e,t,o,r,n={},s){const{value:a}=Xo.getInfoWithoutType(e,qo.getFMId(t)),i=s||a;if(i&&!(0,Jo.isManifestProvider)(i)&&(o(i,t,r),i.remotesInfo)){const t=Object.keys(i.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=Zo(r),s=i.remotesInfo[r];Qo(e,{name:t.name,version:s.matchedVersion},o,!1,n,void 0)}}}const er=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function tr(e,t,o,r,n){const s=[],a=[],i=[],l=new Set,c=new Set,{options:u}=e,{preloadConfig:m}=t,{depsRemote:f}=m;if(Qo(r,o,(t,o,r)=>{let n;if(r)n=m;else if(Array.isArray(f)){const e=f.find(e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias);if(!e)return;n=Yo.defaultPreloadArgs(e)}else{if(!0!==f)return;n=m}const l=(0,Jo.getResourceUrl)(t,qo.getRemoteEntryInfoFromSnapshot(t).url);l&&i.push({name:o.name,moduleInfo:{name:o.name,entry:l,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:l});let c="modules"in t?t.modules:[];const u=Yo.normalizePreloadExposes(n.exposes);function d(e){const o=e.map(e=>(0,Jo.getResourceUrl)(t,e));return n.filter?o.filter(n.filter):o}if(u.length&&"modules"in t&&(c=t?.modules?.reduce((e,t)=>(-1!==u?.indexOf(t.moduleName)&&e.push(t),e),[])),c){const r=c.length;for(let i=0;i<r;i++){const r=c[i],l=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:l,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),Xo.getPreloaded(l)||("all"===n.resourceCategory?(s.push(...d(r.assets.css.async)),s.push(...d(r.assets.css.sync)),a.push(...d(r.assets.js.async)),a.push(...d(r.assets.js.sync))):"sync"===n.resourceCategory&&(s.push(...d(r.assets.css.sync)),a.push(...d(r.assets.js.sync))),Xo.setPreloaded(l))}}},!0,{},n),n.shared&&n.shared.length>0){const t=(t,o)=>{const{shared:r}=Ko.getRegisteredShare(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach(e=>{l.add(e)}),o.assets.css.sync.forEach(e=>{c.add(e)}))};n.shared.forEach(e=>{const o=u.shared?.[e.sharedName];if(!o)return;const r=e.version?o.find(t=>t.version===e.version):o;r&&qo.arrayOptions(r).forEach(o=>{t(o,e)})})}const d=a.filter(e=>!l.has(e)&&!er("script",e));return{cssAssets:s.filter(e=>!c.has(e)&&!er("link",e)),jsAssetsWithoutEntry:d,entryAssets:i.filter(e=>!er("script",e.url))}}Vo.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:r,remote:n,globalSnapshot:s,remoteSnapshot:a}=e;return Jo.isBrowserEnvValue?qo.isRemoteInfoWithEntry(n)&&qo.isPureRemoteEntry(n)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:n.name,url:n.entry,moduleInfo:{name:r.name,entry:n.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(zo.assignRemoteInfo(r,a),tr(t,o,r,s,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};var or={};const rr=s,nr=le,sr=fe,ar=vt,ir=Kt,lr=So,cr=Po,ur=Do;let mr=a,fr=At;function dr(e,t){const o=sr.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&sr.getInfoWithoutType(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:sr.getGlobalSnapshot(),remoteSnapshot:sr.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:sr.getGlobalSnapshot(),remoteSnapshot:sr.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}or.SnapshotHandler=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ur.PluginSystem({beforeLoadRemoteSnapshot:new lr.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapsh
1ot:new cr.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new cr.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new cr.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=sr.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:o}){const{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e});let n=sr.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});n||(n={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},sr.addGlobalSnapshot({[this.HostInstance.options.name]:n})),n&&"remotesInfo"in n&&!sr.getInfoWithoutType(n.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(n.remotesInfo={...n?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:i}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:c}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:i});let u,m;if(l)if((0,mr.isManifestProvider)(l)){const t=mr.isBrowserEnvValue?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",o=await this.getManifestJson(t,e,{});u=o,m=sr.setGlobalSnapshotInfoByModuleInfo({...e,entry:t},o)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});u=t,m=c}else if(nr.isRemoteInfoWithEntry(e)){const t=await this.getManifestJson(e.entry,e,{}),o=sr.setGlobalSnapshotInfoByModuleInfo(e,t),{remoteSnapshot:r}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});u=r,m=o}else rr.error(fr.RUNTIME_007,fr.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(c)},void 0,ir.optionsToMFContext(this.HostInstance.options));
1return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:r,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:m}}getGlobalRemoteInfo(e){return dr(e,this.HostInstance)}async getManifestJson(e,t,o){const r=async()=>{let o=this.manifestCache.get(e);if(o)return o;try{let r=await this.loaderHook.lifecycle.fetch.emit(e,{},ar.getRemoteInfo(t));r&&r instanceof Response||(r=await fetch(e,{})),o=await r.json()}catch(r){o=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),o||(delete this.manifestLoading[e],rr.error(fr.RUNTIME_003,fr.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,ir.optionsToMFContext(this.HostInstance.options)))}return rr.assert(o.metaData&&o.exposes&&o.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!o.metaData&&"metaData",!o.exposes&&"exposes",!o.shared&&"shared"].filter(Boolean).join(", ")}.`),this.manifestCache.set(e,o),o};return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const o=await r(),n=(0,mr.generateSnapshotFromManifest)(o,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:o,remoteSnapshot:n,manifestUrl:e,from:"manifest"});return s})().then(e=>e)),this.manifestLoading[e]}},or.getGlobalRemoteInfo=dr;var pr={};
1const hr=s,gr=ut,yr=ct,Er=Kt,_r=So,Sr=Ro,br=Po,Ir=Do;let Rr=At;pr.SharedHandler=class{constructor(e){this.hooks=new Ir.PluginSystem({beforeRegisterShare:new Sr.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new br.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new br.AsyncWaterfallHook("beforeLoadShare"),loadShare:new _r.AsyncHook,resolveShare:new Sr.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new Sr.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){const{newShareInfos:o,allShareInfos:r}=yr.formatShareConfigs(e,t);return Object.keys(o).forEach(e=>{o[e].forEach(o=>{o.scope.forEach(r=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:o}),this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:o.loaded||Boolean(o.lib),shared:o,from:t.name})})})}),{newShareInfos:o,allShareInfos:r}}async loadShare(e,t){const{host:o}=this,r=yr.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:o.options.shared});r?.scope&&await Promise.all(r.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}));const{shareInfo:n}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o});hr.assert(n,`Cannot find shared "${e}" in host "${o.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const{shared:s,useTreesShaking:a}=yr.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){const t=yr.directShare(s,a);if(t.lib)return yr.addUseIn(t,o.options.name),t.lib;if(t.loading&&!t.loaded){const e=await t.loading;return t.loaded=!0,t.lib||(t.lib=e),yr.addUseIn(t,o.options.name),e}{const r=(async()=>{const e=await t.get();return yr.addUseIn(t,o.options.name),t.loaded=!0,t.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:r,treeShaking:a?t:void 0}),r}}{if(t?.customShareInfo)return!1;const r=yr.shouldUseTreeShaking(n.treeShaking),s=yr.directShare(n,r),a=(async()=>{const t=await s.get();s.lib=t,s.loaded=!0,yr.addUseIn(s,o.options.name);const{shared:r,useTreesShaking:a}=yr.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(r){const e=yr.directShare(r,a);e.lib=t,e.loaded=!0,r.from=n.from}return t})();return this.setShared({pkgName:e,loaded:!1,shared:n,from:o.options.name,lib:null,loading:a,treeShaking:r?s:void 0}),a}}initializeSharing(e=gr.DEFAULT_SCOPE,t){const{host:o}=this,r=t?.from,n=t?.strategy;let s=t?.initScope;const a=[];if("build"!==r){const{initTokens:t}=this;s||(s=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),s.indexOf(o)>=0)return a;s.push(o)}const i=this.shareScopeMap,l=o.options.name;i[e]||(i[e]={});const c=i[e];return Object.keys(o.options.shared).forEach(t=>{o.options.shared[t].forEach(o=>{o.scope.includes(e)&&((e,t)=>{const{version:o,eager:r}=t;c[e]=c[e]||{};const n=c[e],s=n[o]&&yr.directShare(n[o]),a=Boolean(s&&("eager"in s&&s.eager||"shareConfig"in s&&s.shareConfig?.eager));(!s||"loaded-first"!==s.strategy&&!s.loaded&&(Boolean(!r)!==!a?r:l>n[o].from))&&(n[o]=t)})(t,o)})}),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach(t=>{t.shareScope===e&&a.push((async e=>{const{module:t}=await o.remoteHandler.getRemoteModuleAndOptions({id:e});let r;try{r=await t.getEntry()}catch(ie){if(r=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:ie,from:"runtime",lifecycle:"beforeLoadShare",origin:o}),!r)return}finally{r?.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,s))}})(t.name))}),a}loadShareSync(e,t){const{host:o}=this,r=yr.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:o.options.shared});r?.scope&&r.scope.forEach(e=>{this.initializeSharing(e,{strategy:r.strategy})});const{shared:n,useTreesShaking:s}=yr.getRegisteredShare(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(n){if("function"==typeof n.lib)return yr.addUseIn(n,o.options.name),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return yr.addUseIn(n,o.options.name),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){const n=r.get();return n instanceof Promise&&hr.error("build"===t?.from?Rr.RUNTIME_005:Rr.RUNTIME_006,Rr.runtimeDescMap,{hostName:o.options.name,sharedPkgName:e},void 0,Er.optionsToMFContext(o.options)),r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),r.lib}hr.error(Rr.RUNTIME_006,Rr.runtimeDescMap,{hostName:o.options.name,sharedPkgName:e},void 0,Er.optionsToMFContext(o.options))}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:n,loaded:s,get:a,treeShaking:i}){const{version:l,scope:c="default",...u}=t,m=Array.isArray(c)?c:[c];m.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][l]||(this.shareScopeMap[t][e][l]={version:l,scope:[t],...u,lib:r});const c=this.shareScopeMap[t][e][l];(e=>{const t=(e,t,o)=>{o&&!e[t]&&(e[t]=o)},o=i?e.treeShaking:e;t(o,"loaded",s),t(o,"loading",n),t(o,"get",a)}
1)(c),o&&c.from!==o&&(c.from=o)})}_setGlobalShareScopeMap(e){const t=yr.getGlobalShareScope(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}};var Nr={};const Tr=s,Mr=fe,vr=ut,Ar=ct,Pr=Mt,Or=vt,$r=Kt,kr=Jt,wr=uo,Fr=_o,Dr=So,Lr=Ro,Ur=Po,Hr=Do,xr=or;let Cr=a,Gr=At;Nr.RemoteHandler=class{constructor(e){this.hooks=new Hr.PluginSystem({beforeRegisterRemote:new Lr.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Lr.SyncWaterfallHook("registerRemote"),beforeRequest:new Ur.AsyncWaterfallHook("beforeRequest"),onLoad:new Dr.AsyncHook("onLoad"),handlePreloadModule:new Fr.SyncHook("handlePreloadModule"),errorLoadRemote:new Dr.AsyncHook("errorLoadRemote"),beforePreloadRemote:new Dr.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new Dr.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new Dr.AsyncHook,loadEntry:new Dr.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){const{remote:o,expose:r}=t,{name:n,alias:s}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},s&&e.startsWith(n)){const t=e.replace(n,s);return void(this.idToRemoteMap[t]={name:o.name,expose:r})}if(s&&e.startsWith(s)){const t=e.replace(s,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:n,moduleOptions:s,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:i,remote:l,expose:c,id:u,remoteSnapshot:m}=a,f=await n.get(u,c,t,m),d=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:i,expose:c,exposeModule:r?f:void 0,exposeModuleFactory:r?void 0:f,remote:l,options:s,moduleInstance:n,origin:o});return this.setIdToRemoteMap(e,a),"function"==typeof d?d:f}catch(ie){const{from:n="runtime"}=t||{from:"runtime"},s=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:ie,from:n,lifecycle:"onLoad",origin:o});if(!s)throw ie;return s}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const o=kr.formatPreloadArgs(t.options.remotes,e);await Promise.all(o.map(async e=>{const{remote:o}=e,r=Or.getRemoteInfo(o),{globalSnapshot:n,remoteSnapshot:s}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:o,remoteInfo:r,globalSnapshot:n,remoteSnapshot:s});a&&kr.preloadAssets(r,t,a)}))}registerRemotes(e,t){const{host:o}=this;e.forEach(e=>{this.registerRemote(e,o.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(ie){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:ie,lifecycle:"beforeRequest"}),!r)throw ie}const{id:n}=r,s=Pr.matchRemoteWithNameAndExpose(t.options.remotes,n);s||Tr.error(Gr.RUNTIME_004,Gr.runtimeDescMap,{hostName:t.options.name,requestId:n},void 0,$r.optionsToMFContext(t.options));const{remote:a}=s,i=Or.getRemoteInfo(a),l=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:n,...s,options:t.options,origin:t,remoteInfo:i}),{remote:c,expose:u}=l;Tr.assert(c&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);let m=t.moduleCache.get(c.name);const f={host:t,remoteInfo:i};return m||(m=new wr.Module(f),t.moduleCache.set(c.name,m)),{module:m,moduleOptions:f,remoteMatchInfo:l}}registerRemote(e,t,o){const{host:r}=this,n=()=>{if(e.alias){const o=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));Tr.assert(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&Cr.isBrowserEnvValue&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=vr.DEFAULT_SCOPE),e.type||(e.type=vr.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});const s=t.find(t=>t.name===e.name);if(s){const a=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(s),n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),(0,Cr.warn)(a.join(" ")))}else n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}removeRemote(e){try{const{host:t}=this,{name:o}=e,r=t.options.remotes.findIndex(e=>e.name===o);-1!==r&&t.options.remotes.splice(r,1);
1const n=t.moduleCache.get(e.name);if(n){const o=n.remoteInfo,r=o.entryGlobalName;Mr.CurrentGlobal[r]&&(Object.getOwnPropertyDescriptor(Mr.CurrentGlobal,r)?.configurable?delete Mr.CurrentGlobal[r]:Mr.CurrentGlobal[r]=void 0);const s=Or.getRemoteEntryUniqueKey(n.remoteInfo);Mr.globalLoading[s]&&delete Mr.globalLoading[s],t.snapshotHandler.manifestCache.delete(o.entry);let a=o.buildVersion?(0,Cr.composeKeyWithSeparator)(o.name,o.buildVersion):o.name;const i=Mr.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>o.buildVersion?e.options.id===a:e.name===a);if(-1!==i){const e=Mr.CurrentGlobal.__FEDERATION__.__INSTANCES__[i];a=e.options.id||a;const t=Ar.getGlobalShareScope();let r=!0;const n=[];Object.keys(t).forEach(e=>{const s=t[e];s&&Object.keys(s).forEach(t=>{const a=s[t];a&&Object.keys(a).forEach(s=>{const i=a[s];i&&Object.keys(i).forEach(a=>{const l=i[a];l&&"object"==typeof l&&l.from===o.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==o.name),l.useIn.length?r=!1:n.push([e,t,s,a])):n.push([e,t,s,a]))})})})}),r&&(e.shareScopeMap={},delete t[a]),n.forEach(([e,o,r,n])=>{delete t[e]?.[o]?.[r]?.[n]}),Mr.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(i,1)}const{hostGlobalSnapshot:l}=xr.getGlobalRemoteInfo(e,t);if(l){const t=l&&"remotesInfo"in l&&l.remotesInfo&&Mr.getInfoWithoutType(l.remotesInfo,e.name).key;t&&(delete l.remotesInfo[t],Boolean(Mr.Global.__FEDERATION__.__MANIFEST_LOADING__[t])&&delete Mr.Global.__FEDERATION__.__MANIFEST_LOADING__[t])}t.moduleCache.delete(e.name)}}catch(t){Tr.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};const jr=s,Br=ut,Wr=ct,Vr=Vt,qr=qt,Xr=vt,Kr=uo,Yr=_o,zr=So,Jr=Ro,Zr=Po,Qr=Do,en=Ho,tn=Vo,on=or,rn=pr,nn=Nr;let sn=a,an=At;const ln="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;Eo.ModuleFederation=class{constructor(e){this.hooks=new Qr.PluginSystem({beforeInit:new Jr.SyncWaterfallHook("beforeInit"),init:new Yr.SyncHook,beforeInitContainer:new Zr.AsyncWaterfallHook("beforeInitContainer"),initContainer:new Zr.AsyncWaterfallHook("initContainer")}),this.version="2.3.3",this.moduleCache=new Map,this.loaderHook=new Qr.PluginSystem({getModuleInfo:new Yr.SyncHook,createScript:new Yr.SyncHook,createLink:new Yr.SyncHook,fetch:new zr.AsyncHook,loadEntryError:new zr.AsyncHook,getModuleFactory:new zr.AsyncHook}),this.bridgeHook=new Qr.PluginSystem({beforeBridgeRender:new Yr.SyncHook,afterBridgeRender:new Yr.SyncHook,beforeBridgeDestroy:new Yr.SyncHook,afterBridgeDestroy:new Yr.SyncHook});const t=ln?[en.snapshotPlugin(),tn.generatePreloadAssetsPlugin()]:[],o={id:Vr.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:sn.isBrowserEnvValue};this.name=e.name,this.options=o,this.snapshotHandler=new on.SnapshotHandler(this),this.sharedHandler=new rn.SharedHandler(this),this.remoteHandler=new nn.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...e.plugins||[]]),this.options=this.formatOptions(o,e)}initOptions(e){e.name&&e.name!==this.options.name&&jr.error((0,an.getShortErrorMsg)(an.RUNTIME_010,an.runtimeDescMap)),this.registerPlugins(e.plugins);const t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=Br.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){const r=Xr.getRemoteInfo({name:e,entry:t}),n=new Kr.Module({host:this,remoteInfo:r});return n.remoteEntryExports=o,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const{allShareInfos:o}=Wr.formatShareConfigs(e,t),{userOptions:r,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),s=this.remoteHandler.formatAndRegisterRemote(n,r),{allShareInfos:a}
1=this.sharedHandler.registerShared(n,r),i=[...n.plugins];r.plugins&&r.plugins.forEach(e=>{i.includes(e)||i.push(e)});const l={...e,...t,plugins:i,remotes:s,shared:a};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){const t=qr.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>t?(e&&!e.find(e=>e.name===t.name)&&e.push(t),e):e,t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};var cn={},un={},mn=Object.defineProperty;un.__exportAll=(e,t)=>{let o={};for(var r in e)mn(o,r,{get:e[r],enumerable:!0});return t||mn(o,Symbol.toStringTag,{value:"Module"}),o},function(e){var t=un.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return t}})}(cn),function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s,o=le,r=fe,n=Te,i=ct,l=Mt,c=vt,u=uo,m=Eo,f=cn;let d=a;const p=zt.default;e.CurrentGlobal=r.CurrentGlobal,e.Global=r.Global,e.Module=u.Module,e.ModuleFederation=m.ModuleFederation,e.addGlobalSnapshot=r.addGlobalSnapshot,e.assert=t.assert,e.error=t.error,e.getGlobalFederationConstructor=r.getGlobalFederationConstructor,e.getGlobalSnapshot=r.getGlobalSnapshot,e.getInfoWithoutType=r.getInfoWithoutType,e.getRegisteredShare=i.getRegisteredShare,e.getRemoteEntry=c.getRemoteEntry,e.getRemoteInfo=c.getRemoteInfo,e.helpers=p,e.isStaticResourcesEqual=o.isStaticResourcesEqual,Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return d.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return d.loadScriptNode}}),e.matchRemoteWithNameAndExpose=l.matchRemoteWithNameAndExpose,e.registerGlobalPlugins=r.registerGlobalPlugins,e.resetFederationGlobalInfo=r.resetFederationGlobalInfo,e.safeWrapper=o.safeWrapper,e.satisfy=n.satisfy,e.setGlobalFederationConstructor=r.setGlobalFederationConstructor,e.setGlobalFederationInstance=r.setGlobalFederationInstance,Object.defineProperty(e,"types",{enumerable:!0,get:function(){return f.type_exports}})}(n);let fn=n;r.getGlobalFederationInstance=function(e,t){const o="undefined"!=typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:"";return fn.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(r=>!(!o||r.options.id!==o)||(r.options.name===e&&!r.options.version&&!t||!(r.options.name!==e||!t||r.options.version!==t)))},function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r;let o=n,s=At;function a(e){const t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)(e);return(0,o.setGlobalFederationInstance)(t),t}let i=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(e,"Module",{enumerable:!0,get:function(){return o.Module}}),e.ModuleFederation=o.ModuleFederation,e.createInstance=a,e.getInstance=function(){return i},Object.defineProperty(e,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(e,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),e.init=function(e){const o=t.getGlobalFederationInstance(e.name,e.version);return o?(o.initOptions(e),i||(i=o),o):(i=a(e),i)},e.loadRemote=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.loadRemote.apply(i,e)},Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),e.loadShare=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.loadShare.apply(i,e)},e.loadShareSync=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.loadShareSync.apply(i,e)},e.preloadRemote=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.preloadRemote.apply(i,e)},Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),e.registerPlugins=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.registerPlugins.apply(i,e)},e.registerRemotes=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.registerRemotes.apply(i,e)},e.registerShared=function(...e){return(0,o.assert)(i,s.RUNTIME_009,s.runtimeDescMap),i.registerShared.apply(i,e)}}(o),"undefined"==typeof __VUE_HMR_RUNTIME__&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});const dn="__mf_init____mf__virtual/__mfe_internal__busterai__mf_v__runtimeInit__mf_v__.js__";let pn=globalThis[dn];if(!pn){let e,t;const o=new Promise((o,r)=>{e=o,t=r});pn=globalThis[dn]={initPromise:o,initResolve:e,initReject:t},"undefined"==typeof window&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const hn=pn.initResolve,gn={},yn="default",En="__mfe_internal__busterai";let _n,Sn;async function bn(r={},n=[]){const{usedShared:s,usedRemotes:a}=await async function(){return _n??=e(()=>import("./assets/localSharedImportMap-Cv1AdZMV.js"),[]),_n}(),i=o.init({name:En,remotes:a,shared:s,plugins:[t()],shareStrategy:"version-first"});var l=gn[yn];if(l||(l=gn[yn]={from:En}),!(n.indexOf(l)>=0)){n.push(l),i.initShareScopeMap("default",r),hn(i);try{await Promise.all(await i.initializeSharing("default",{strategy:"version-first",from:"build",initScope:n}))}catch(c){console.error("[Module Federation]",c)}return i}}async function In(t){const o=await async function(){return Sn??=e(()=>import("./assets/virtualExposes-C1ddS62Q.js"),[]).then(e=>e.default??e),Sn}();if(!(t in o))throw new Error(`[Module Federation] Module ${t} does not exist in container.`);return o[t]().then(e=>()=>e)}export{In as get,bn as init};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.