1import{j as getDefaultExportFromCjs}from"./chunk-D6OfgHje.js";function _mergeNamespaces(s,i){for(var p=0;p<i.length;p++){const m=i[p];if(typeof m!="string"&&!Array.isArray(m)){for(const h in m)if(h!=="default"&&!(h in s)){const _=Object.getOwnPropertyDescriptor(m,h);_&&Object.defineProperty(s,h,_.get?_:{enumerable:!0,get:()=>m[h]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var runtime$2={},runtime_cjs={},index_cjs$3={},index_cjs$2={},index_cjs$1={},define_process_env_default={},hasRequiredIndex_cjs$3;function requireIndex_cjs$3(){if(hasRequiredIndex_cjs$3)return index_cjs$1;hasRequiredIndex_cjs$3=1;const FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return typeof window<"u"&&typeof window.document<"u"}function isReactNativeEnv(){return typeof navigator<"u"&&(navigator==null?void 0:navigator.product)==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(s){return!1}return!1}function isDebugMode(){return typeof process<"u"&&define_process_env_default&&define_process_env_default.FEDERATION_DEBUG?!!define_process_env_default.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:isBrowserDebug()}const getProcessEnv=function(){return typeof process<"u"&&define_process_env_default?define_process_env_default:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(s,i,p=SEPARATOR)=>{const m=s.split(p),h=getProcessEnv().NODE_ENV==="development"&&i,_="*",R=b=>b.startsWith("http")||b.includes(MANIFEST_EXT);if(m.length>=2){let[b,...S]=m;s.startsWith(p)&&(b=m.slice(0,2).join(p),S=[h||m.slice(2).join(p)]);let T=h||S.join(p);return R(T)?{name:b,entry:T}:{name:b,version:T||_}}else if(m.length===1){const[b]=m;return h&&R(h)?{name:b,entry:h}:{name:b,version:h||_}}else throw"Invalid entry value: ".concat(s)},composeKeyWithSeparator=function(...s){return s.length?s.reduce((i,p)=>p?i?"".concat(i).concat(SEPARATOR).concat(p):p:i,""):""},encodeName=function(s,i="",p=!1){try{const m=p?".js":"";return"".concat(i).concat(s.replace(new RegExp("".concat(NameTransformSymbol.AT),"g"),NameTransformMap[NameTransformSymbol.AT]).replace(new RegExp("".concat(NameTransformSymbol.HYPHEN),"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(new RegExp("".concat(NameTransformSymbol.SLASH),"g"),NameTransformMap[NameTransformSymbol.SLASH])).concat(m)}catch(m){throw m}},decodeName=function(s,i,p){try{let m=s;if(i){if(!m.startsWith(i))return m;m=m.replace(new RegExp(i,"g"),"")}return m=m.replace(new RegExp("".concat(NameTransformMap[NameTransformSymbol.AT]),"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(new RegExp("".concat(NameTransformMap[NameTransformSymbol.SLASH]),"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(new RegExp("".concat(NameTransformMap[NameTransformSymbol.HYPHEN]),"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),p&&(m=m.replace(".js","")),m}catch(m){throw m}},generateExposeFilename=(s,i)=>{if(!s)return"";let p=s;return p==="."&&(p="default_export"),p.startsWith("./")&&(p=p.replace("./","")),encodeName(p,"__federation_expose_",i)},generateShareFilename=(s,i)=>s?encodeName(s,"__federation_shared_",i):"",getResourceUrl=(s,i)=>{if("getPublicPath"in s){let p;return s.getPublicPath.startsWith("function")?p=new Function("return "+s.getPublicPath)()():p=new Function(s.getPublicPath)(),"".concat(p).concat(i)}else return"publicPath"in s?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in s?"".concat(s.ssrPublicPath).concat(i):"".concat(s.publicPath).concat(i):(console.warn("Cannot get resource URL. If in debug mode, please ignore.",s,i),"")},assert=(s,i)=>{s||error(i)},error=s=>{throw new Error("".concat(LOG_CATEGORY,": ").concat(s))},warn=s=>{console.warn("".concat(LOG_CATEGORY,": ").concat(s))};function safeToString(s){try{return JSON.stringify(s,null,2)}catch(i){return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(s){return VERSION_PATTERN_REGEXP.test(s)}const simpleJoinRemoteEntry=(s,i)=>{if(!s)return i;const m=(h=>{if(h===".")return"";if(h.startsWith("./"))return h.replace("./","");if(h.startsWith("/")){const _=h.slice(1);
1return _.endsWith("/")?_.slice(0,-1):_}return h})(s);return m?m.endsWith("/")?"".concat(m).concat(i):"".concat(m,"/").concat(i):i};function inferAutoPublicPath(s){return s.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(s,i={}){var z,A,D;const{remotes:p={},overrides:m={},version:h}=i;let _;const R=()=>"publicPath"in s.metaData?s.metaData.publicPath==="auto"&&h?inferAutoPublicPath(h):s.metaData.publicPath:s.metaData.getPublicPath,b=Object.keys(m);let S={};Object.keys(p).length||(S=((z=s.remotes)==null?void 0:z.reduce((j,C)=>{let Y;const V=C.federationContainerName;return b.includes(V)?Y=m[V]:"version"in C?Y=C.version:Y=C.entry,j[V]={matchedVersion:Y},j},{}))||{}),Object.keys(p).forEach(j=>S[j]={matchedVersion:b.includes(j)?m[j]:p[j]});const{remoteEntry:{path:T,name:H,type:ee},types:B={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:se},globalName:x,ssrRemoteEntry:L}=s.metaData,{exposes:q}=s;let X={version:h||"",buildVersion:se,globalName:x,remoteEntry:simpleJoinRemoteEntry(T,H),remoteEntryType:ee,remoteTypes:simpleJoinRemoteEntry(B.path,B.name),remoteTypesZip:B.zip||"",remoteTypesAPI:B.api||"",remotesInfo:S,shared:s==null?void 0:s.shared.map(j=>({assets:j.assets,sharedName:j.name,version:j.version})),modules:q==null?void 0:q.map(j=>({moduleName:j.name,modulePath:j.path,assets:j.assets}))};if((A=s.metaData)!=null&&A.prefetchInterface){const j=s.metaData.prefetchInterface;X={...X,prefetchInterface:j}}if((D=s.metaData)!=null&&D.prefetchEntry){const{path:j,name:C,type:Y}=s.metaData.prefetchEntry;X={...X,prefetchEntry:simpleJoinRemoteEntry(j,C),prefetchEntryType:Y}}if("publicPath"in s.metaData?_={...X,publicPath:R(),ssrPublicPath:s.metaData.ssrPublicPath}:_={...X,getPublicPath:R()},L){const j=simpleJoinRemoteEntry(L.path,L.name);_.ssrRemoteEntry=j,_.ssrRemoteEntryType=L.type||"commonjs-module"}return _}function isManifestProvider(s){return!!("remoteEntry"in s&&s.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(s){if(!s)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let i=typeof s=="boolean"?"":s.filePath||"",p=typeof s=="boolean"?"":s.fileName||"";const m=".json",h=S=>S.endsWith(m)?S:"".concat(S).concat(m),_=(S,T)=>S.replace(m,"".concat(T).concat(m)),R=p?h(p):ManifestFileName,b=p?_(R,"-stats"):StatsFileName;return{statsFileName:simpleJoinRemoteEntry(i,b),manifestFileName:simpleJoinRemoteEntry(i,R)}}const PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{const s=new Error().stack;if(!s)return;const[,...i]=s.split("\n"),p=i.filter(h=>!LOGGER_STACK_SKIP_TOKENS.some(_=>h.includes(_)));if(!p.length)return;const m=p.slice(0,5).join("\n");return"Stack trace:\n".concat(m)}catch(s){return}}class Logger{constructor(i,p=DEFAULT_DELEGATE){this.prefix=i,this.delegate=p!=null?p:DEFAULT_DELEGATE}setPrefix(i){this.prefix=i}setDelegate(i){this.delegate=i!=null?i:DEFAULT_DELEGATE}emit(i,p){const m=this.delegate,_=isDebugMode()?captureStackTrace():void 0,R=_?[...p,_]:p,b=(()=>{switch(i){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 S of b){const T=m[S];if(typeof T=="function"){T.call(m,this.prefix,...R);return}}for(const S of b){const T=DEFAULT_DELEGATE[S];if(typeof T=="function"){T.call(DEFAULT_DELEGATE,this.prefix,...R);return}}}log(...i){this.emit("log",i)}warn(...i){this.emit("warn",i)}error(...i){this.emit("error",i)}success(...i){this.emit("info",i)}info(...i){this.emit("info",i)}ready(...i){this.emit("info",i)}debug(...i){isDebugMode()&&this.emit("debug",i)}}function createLogger(s){return new Logger(s)}function createInfrastructureLogger(s){const i=new Logger(s);return Object.defineProperty(i,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),i}
1function bindLoggerToCompiler(s,i,p){if(s.__mf_infrastructure_logger__&&i!=null&&i.getInfrastructureLogger)try{const m=i.getInfrastructureLogger(p);m&&typeof m=="object"&&(typeof m.log=="function"||typeof m.info=="function"||typeof m.warn=="function"||typeof m.error=="function")&&s.setDelegate(m)}catch(m){s.setDelegate(void 0)}}const logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(s,i){try{return await s()}catch(p){!i&&warn(p);return}}function isStaticResourcesEqual(s,i){const p=/^(https?:)?\/\//i,m=s.replace(p,"").replace(/\/$/,""),h=i.replace(p,"").replace(/\/$/,"");return m===h}function createScript(s){let i=null,p=!0,m=2e4,h;const _=document.getElementsByTagName("script");for(let b=0;b<_.length;b++){const S=_[b],T=S.getAttribute("src");if(T&&isStaticResourcesEqual(T,s.url)){i=S,p=!1;break}}if(!i){const b=s.attrs;i=document.createElement("script"),i.type=(b==null?void 0:b.type)==="module"?"module":"text/javascript";let S;s.createScriptHook&&(S=s.createScriptHook(s.url,s.attrs),S instanceof HTMLScriptElement?i=S:typeof S=="object"&&("script"in S&&S.script&&(i=S.script),"timeout"in S&&S.timeout&&(m=S.timeout))),i.src||(i.src=s.url),b&&!S&&Object.keys(b).forEach(T=>{i&&(T==="async"||T==="defer"?i[T]=b[T]:i.getAttribute(T)||i.setAttribute(T,b[T]))})}const R=async(b,S)=>{clearTimeout(h);const T=()=>{(S==null?void 0:S.type)==="error"?s!=null&&s.onErrorCallback&&(s==null||s.onErrorCallback(S)):s!=null&&s.cb&&(s==null||s.cb())};if(i&&(i.onerror=null,i.onload=null,safeWrapper(()=>{const{needDeleteScript:H=!0}=s;H&&i!=null&&i.parentNode&&i.parentNode.removeChild(i)}),b&&typeof b=="function")){const H=b(S);if(H instanceof Promise){const ee=await H;return T(),ee}return T(),H}T()};return i.onerror=R.bind(null,i.onerror),i.onload=R.bind(null,i.onload),h=setTimeout(()=>{R(null,new Error('Remote script "'.concat(s.url,'" time-outed.')))},m),{script:i,needAttach:p}}function createLink(s){let i=null,p=!0;const m=document.getElementsByTagName("link");for(let _=0;_<m.length;_++){const R=m[_],b=R.getAttribute("href"),S=R.getAttribute("rel");if(b&&isStaticResourcesEqual(b,s.url)&&S===s.attrs.rel){i=R,p=!1;break}}if(!i){i=document.createElement("link"),i.setAttribute("href",s.url);let _;const R=s.attrs;s.createLinkHook&&(_=s.createLinkHook(s.url,R),_ instanceof HTMLLinkElement&&(i=_)),R&&!_&&Object.keys(R).forEach(b=>{i&&!i.getAttribute(b)&&i.setAttribute(b,R[b])})}const h=(_,R)=>{const b=()=>{(R==null?void 0:R.type)==="error"?s!=null&&s.onErrorCallback&&(s==null||s.onErrorCallback(R)):s!=null&&s.cb&&(s==null||s.cb())};if(i&&(i.onerror=null,i.onload=null,safeWrapper(()=>{const{needDeleteLink:S=!0}=s;S&&i!=null&&i.parentNode&&i.parentNode.removeChild(i)}),_)){const S=_(R);return b(),S}b()};return i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),{link:i,needAttach:p}}function loadScript(s,i){const{attrs:p={},createScriptHook:m}=i;return new Promise((h,_)=>{const{script:R,needAttach:b}=createScript({url:s,cb:h,onErrorCallback:_,attrs:{fetchpriority:"high",...p},createScriptHook:m,needDeleteScript:!0});b&&document.head.appendChild(R)})}const sdkImportCache=new Map;function importNodeModule(s){if(!s)throw new Error("import specifier is required");if(sdkImportCache.has(s))return sdkImportCache.get(s);const p=new Function("name","return import(name)")(s).then(m=>m).catch(m=>{throw console.error("Error importing module ".concat(s,":"),m),sdkImportCache.delete(s),m});return sdkImportCache.set(s,p),p}const loadNodeFetch=async()=>{const s=await importNodeModule("node-fetch");return s.default||s},lazyLoaderHookFetch=async(s,i,p)=>{const h=await((_,R)=>p.lifecycle.fetch.emit(_,R))(s,i||{});return!h||!(h instanceof Response)?(typeof fetch>"u"?await loadNodeFetch():fetch)(s,i||{}):h},createScriptNode=typeof ENV_TARGET>"u"||ENV_TARGET!=="web"?(url,cb,attrs,loaderHook)=>{if(loaderHook!=null&&loaderHook.createScriptHook){const s=loaderHook.createScriptHook(url);s&&typeof s=="object"&&"url"in s&&(url=s.url)}let urlObj;try{urlObj=new URL(url)}catch(s){console.error("Error constructing URL:",s),cb(new Error("Invalid URL: ".concat(s)));return}const getFetch=async()=>loaderHook!=null&&loaderHook.fetch?(s,i)=>lazyLoaderHookFetch(s,i,loaderHook):typeof fetch>"u"?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{var s,i;try{const res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data,"\n})"),{filename,importModuleDynamically:(i=(s=vm.constants)==null?void 0:s.USE_MAIN_CONTEXT_DEFAULT_LOADER)!=null?i:importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);const exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){const p=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,p);return}cb(void 0,exportedInterface)}catch(p){cb(p instanceof Error?p:new Error("Script execution error: ".concat(p)))}};getFetch().then(async s=>{if((attrs==null?void 0:attrs.type)==="esm"||(attrs==null?void 0:attrs.type)==="module")return loadModule(urlObj.href,{fetch:s,vm:await importNodeModule("vm")}).then(async i=>{await i.evaluate(),cb(void 0,i.namespace)}).catch(i=>{cb(i instanceof Error?i:new Error("Script execution error: ".concat(i)))});handleScriptFetch(s,urlObj)}).catch(s=>{cb(s)})}:(s,i,p,m)=>{i(new Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode=typeof ENV_TARGET>"u"||ENV_TARGET!=="web"?(s,i)=>new Promise((p,m)=>{createScriptNode(s,(h,_)=>{var R,b;if(h)m(h);else{const S=((R=i==null?void 0:i.attrs)==null?void 0:R.globalName)||"__FEDERATION_".concat((b=i==null?void 0:i.attrs)==null?void 0:b.name,":custom__"),T=globalThis[S]=_;p(T)}},i.attrs,i.loaderHook)}):(s,i)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(s,i){if(esmModuleCache.has(s))return esmModuleCache.get(s);const{fetch:p,vm:m}=i,_=await(await p(s)).text(),R=new m.SourceTextModule(_,{importModuleDynamically:async(b,S)=>{const T=new URL(b,s).href;return loadModule(T,i)}});return esmModuleCache.set(s,R),await R.link(async b=>{const S=new URL(b,s).href;
1return await loadModule(S,i)}),R}function normalizeOptions(s,i,p){return function(m){if(m===!1)return!1;if(typeof m>"u")return s?i:!1;if(m===!0)return i;if(m&&typeof m=="object")return{...i,...m};throw new Error("Unexpected type for `".concat(p,"`, expect boolean/undefined/object, got: ").concat(typeof m))}}const createModuleFederationConfig=s=>s;return index_cjs$1.BROWSER_LOG_KEY=BROWSER_LOG_KEY,index_cjs$1.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,index_cjs$1.EncodedNameTransformMap=EncodedNameTransformMap,index_cjs$1.FederationModuleManifest=FederationModuleManifest,index_cjs$1.MANIFEST_EXT=MANIFEST_EXT,index_cjs$1.MFModuleType=MFModuleType,index_cjs$1.MFPrefetchCommon=MFPrefetchCommon,index_cjs$1.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,index_cjs$1.ManifestFileName=ManifestFileName,index_cjs$1.NameTransformMap=NameTransformMap,index_cjs$1.NameTransformSymbol=NameTransformSymbol,index_cjs$1.SEPARATOR=SEPARATOR,index_cjs$1.StatsFileName=StatsFileName,index_cjs$1.TEMP_DIR=TEMP_DIR,index_cjs$1.assert=assert,index_cjs$1.bindLoggerToCompiler=bindLoggerToCompiler,index_cjs$1.composeKeyWithSeparator=composeKeyWithSeparator,index_cjs$1.containerPlugin=ContainerPlugin,index_cjs$1.containerReferencePlugin=ContainerReferencePlugin,index_cjs$1.createInfrastructureLogger=createInfrastructureLogger,index_cjs$1.createLink=createLink,index_cjs$1.createLogger=createLogger,index_cjs$1.createModuleFederationConfig=createModuleFederationConfig,index_cjs$1.createScript=createScript,index_cjs$1.createScriptNode=createScriptNode,index_cjs$1.decodeName=decodeName,index_cjs$1.encodeName=encodeName,index_cjs$1.error=error,index_cjs$1.generateExposeFilename=generateExposeFilename,index_cjs$1.generateShareFilename=generateShareFilename,index_cjs$1.generateSnapshotFromManifest=generateSnapshotFromManifest,index_cjs$1.getManifestFileName=getManifestFileName,index_cjs$1.getProcessEnv=getProcessEnv,index_cjs$1.getResourceUrl=getResourceUrl,index_cjs$1.inferAutoPublicPath=inferAutoPublicPath,index_cjs$1.infrastructureLogger=infrastructureLogger,index_cjs$1.isBrowserEnv=isBrowserEnv,index_cjs$1.isDebugMode=isDebugMode,index_cjs$1.isManifestProvider=isManifestProvider,index_cjs$1.isReactNativeEnv=isReactNativeEnv,index_cjs$1.isRequiredVersion=isRequiredVersion,index_cjs$1.isStaticResourcesEqual=isStaticResourcesEqual,index_cjs$1.loadScript=loadScript,index_cjs$1.loadScriptNode=loadScriptNode,index_cjs$1.logger=logger,index_cjs$1.moduleFederationPlugin=ModuleFederationPlugin,index_cjs$1.normalizeOptions=normalizeOptions,index_cjs$1.parseEntry=parseEntry,index_cjs$1.safeToString=safeToString,index_cjs$1.safeWrapper=safeWrapper,index_cjs$1.sharePlugin=SharePlugin,index_cjs$1.simpleJoinRemoteEntry=simpleJoinRemoteEntry,index_cjs$1.warn=warn,index_cjs$1}var index_cjs={},hasRequiredIndex_cjs$2;function requireIndex_cjs$2(){if(hasRequiredIndex_cjs$2)return index_cjs;hasRequiredIndex_cjs$2=1;const s="RUNTIME-001",i="RUNTIME-002",p="RUNTIME-003",m="RUNTIME-004",h="RUNTIME-005",_="RUNTIME-006",R="RUNTIME-007",b="RUNTIME-008",S="RUNTIME-009",T="TYPE-001",H="BUILD-001",ee="BUILD-002",B=z=>{const A=z.split("-")[0].toLowerCase();return"View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/".concat(A,"/").concat(z)},se=(z,A,D,j)=>{const C=["".concat([A[z]]," #").concat(z)];return D&&C.push("args: ".concat(JSON.stringify(D))),C.push(B(z)),j&&C.push("Original Error Message:\n ".concat(j)),C.join("\n")},x={[s]:"Failed to get remoteEntry exports.",[i]:'The remote entry interface does not contain "init"',[p]:"Failed to get manifest.",[m]:"Failed to locate remote.",[h]:"Invalid loadShareSync function call from bundler runtime",[_]:"Invalid loadShareSync function call from runtime",[R]:"Failed to get remote snapshot.",[b]:"Failed to load script resources.",[S]:"Please call createInstance first."},L={[T]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},q={[H]:"Failed to find expose module.",[ee]:"PublicPath is required in prod mode."},X={...x,...L,...q};return index_cjs.BUILD_001=H,index_cjs.BUILD_002=ee,index_cjs.RUNTIME_001=s,index_cjs.RUNTIME_002=i,index_cjs.RUNTIME_003=p,index_cjs.RUNTIME_004=m,index_cjs.RUNTIME_005=h,index_cjs.RUNTIME_006=_,index_cjs.RUNTIME_007=R,index_cjs.RUNTIME_008=b,index_cjs.RUNTIME_009=S,index_cjs.TYPE_001=T,index_cjs.buildDescMap=q,index_cjs.errorDescMap=X,index_cjs.getShortErrorMsg=se,index_cjs.runtimeDescMap=x,index_cjs.typeDescMap=L,index_cjs}var hasRequiredIndex_cjs$1;function requireIndex_cjs$1(){if(hasRequiredIndex_cjs$1)return index_cjs$2;hasRequiredIndex_cjs$1=1;var s=requireIndex_cjs$3(),i=requireIndex_cjs$2();const p="[ Federation Runtime ]",m=s.createLogger(p);function h(t,e){t||_(e)}function _(t){throw t instanceof Error?(t.message.startsWith(p)||(t.message="".concat(p,": ").concat(t.message)),t):new Error("".concat(p,": ").concat(t))}function R(t){t instanceof Error&&(t.message.startsWith(p)||(t.message="".concat(p,": ").concat(t.message))),m.warn(t)}function b(t,e){return t.findIndex(r=>r===e)===-1&&t.push(e),t}function S(t){return"version"in t&&t.version?"".concat(t.name,":").concat(t.version):"entry"in t&&t.entry?"".concat(t.name,":").concat(t.entry):"".concat(t.name)}function T(t){return typeof t.entry<"u"}function H(t){return!t.entry.includes(".json")}async function ee(t,e){try{return await t()}catch(r){!e&&R(r);return}}function B(t){return t&&typeof t=="object"}const se=Object.prototype.toString;function x(t){return se.call(t)==="[object Object]"}function L(t,e){const r=/^(https?:)?\/\//i,n=t.replace(r,"").replace(/\/$/,""),o=e.replace(r,"").replace(/\/$/,"");return n===o}function q(t){return Array.isArray(t)?t:[t]}function X(t){const e={url:"",type:"global",globalName:""};return s.isBrowserEnv()||s.isReactNativeEnv()?"remoteEntry"in t?{url:t.remoteEntry,type:t.remoteEntryType,globalName:t.globalName}:e:"ssrRemoteEntry"in t?{url:t.ssrRemoteEntry||e.url,type:t.ssrRemoteEntryType||e.type,globalName:t.globalName}:e}const z=(t,e)=>{let r;
1return t.endsWith("/")?r=t.slice(0,-1):r=t,e.startsWith(".")&&(e=e.slice(1)),r=r+e,r},A=typeof globalThis=="object"?globalThis:window,D=(()=>{try{return document.defaultView}catch(t){return A}})(),j=D;function C(t,e,r){Object.defineProperty(t,e,{value:r,configurable:!1,writable:!0})}function Y(t,e){return Object.hasOwnProperty.call(t,e)}Y(A,"__GLOBAL_LOADING_REMOTE_ENTRY__")||C(A,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const V=A.__GLOBAL_LOADING_REMOTE_ENTRY__;function De(t){var e,r,n,o,l,a,c,u,d,g,E,y;Y(t,"__VMOK__")&&!Y(t,"__FEDERATION__")&&C(t,"__FEDERATION__",t.__VMOK__),Y(t,"__FEDERATION__")||(C(t,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),C(t,"__VMOK__",t.__FEDERATION__)),(r=(e=t.__FEDERATION__).__GLOBAL_PLUGIN__)!=null||(e.__GLOBAL_PLUGIN__=[]),(o=(n=t.__FEDERATION__).__INSTANCES__)!=null||(n.__INSTANCES__=[]),(a=(l=t.__FEDERATION__).moduleInfo)!=null||(l.moduleInfo={}),(u=(c=t.__FEDERATION__).__SHARE__)!=null||(c.__SHARE__={}),(g=(d=t.__FEDERATION__).__MANIFEST_LOADING__)!=null||(d.__MANIFEST_LOADING__={}),(y=(E=t.__FEDERATION__).__PRELOADED_MAP__)!=null||(E.__PRELOADED_MAP__=new Map)}De(A),De(D);function ke(){A.__FEDERATION__.__GLOBAL_PLUGIN__=[],A.__FEDERATION__.__INSTANCES__=[],A.__FEDERATION__.moduleInfo={},A.__FEDERATION__.__SHARE__={},A.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(V).forEach(t=>{delete V[t]})}function Ce(t){A.__FEDERATION__.__INSTANCES__.push(t)}function He(){return A.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ge(t,e=s.isDebugMode()){e&&(A.__FEDERATION__.__DEBUG_CONSTRUCTOR__=t,A.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.21.6")}function ne(t,e){if(typeof e=="string"){if(t[e])return{value:t[e],key:e};{const n=Object.keys(t);for(const o of n){const[l,a]=o.split(":"),c="".concat(l,":").concat(e),u=t[c];if(u)return{value:u,key:c}}return{value:void 0,key:e}}}else throw new Error("key must be string")}const Ee=()=>D.__FEDERATION__.moduleInfo,Ue=(t,e)=>{const r=S(t),n=ne(e,r).value;if(n&&!n.version&&"version"in t&&t.version&&(n.version=t.version),n)return n;if("version"in t&&t.version){const{version:o,...l}=t,a=S(l),c=ne(D.__FEDERATION__.moduleInfo,a).value;if((c==null?void 0:c.version)===o)return c}},le=t=>Ue(t,D.__FEDERATION__.moduleInfo),Se=(t,e)=>{const r=S(t);return D.__FEDERATION__.moduleInfo[r]=e,D.__FEDERATION__.moduleInfo},$e=t=>(D.__FEDERATION__.moduleInfo={...D.__FEDERATION__.moduleInfo,...t},()=>{const e=Object.keys(t);for(const r of e)delete D.__FEDERATION__.moduleInfo[r]}),ye=(t,e)=>{const r=e||"__FEDERATION_".concat(t,":custom__"),n=A[r];return{remoteEntryKey:r,entryExports:n}},Be=t=>{const{__GLOBAL_PLUGIN__:e}=D.__FEDERATION__;t.forEach(r=>{e.findIndex(n=>n.name===r.name)===-1?e.push(r):R("The plugin ".concat(r.name," has been registered."))})},qe=()=>D.__FEDERATION__.__GLOBAL_PLUGIN__,Ve=t=>A.__FEDERATION__.__PRELOADED_MAP__.get(t),We=t=>A.__FEDERATION__.__PRELOADED_MAP__.set(t,!0),ue="default",Ke="global",Xe="[0-9A-Za-z-]+",Ne="(?:\\+(".concat(Xe,"(?:\\.").concat(Xe,")*))"),de="0|[1-9]\\d*",ge="[0-9]+",ze="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ye="(?:".concat(ge,"|").concat(ze,")"),ht="(?:-?(".concat(Ye,"(?:\\.").concat(Ye,")*))"),Je="(?:".concat(de,"|").concat(ze,")"),Ze="(?:-(".concat(Je,"(?:\\.").concat(Je,")*))"),Ie="".concat(de,"|x|X|\\*"),ie="[v=\\s]*(".concat(Ie,")(?:\\.(").concat(Ie,")(?:\\.(").concat(Ie,")(?:").concat(Ze,")?").concat(Ne,"?)?)?"),mt="^\\s*(".concat(ie,")\\s+-\\s+(").concat(ie,")\\s*$"),pt="(".concat(ge,")\\.(").concat(ge,")\\.(").concat(ge,")"),_t="[v=\\s]*".concat(pt).concat(ht,"?").concat(Ne,"?"),Te="((?:<|>)?=?)",Et="(\\s*)".concat(Te,"\\s*(").concat(_t,"|").concat(ie,")"),Qe="(?:~>?)",yt="(\\s*)".concat(Qe,"\\s+"),et="(?:\\^)",gt="(\\s*)".concat(et,"\\s+"),bt="(<|>)?=?\\s*\\*",Rt="^".concat(et).concat(ie,"$"),St="(".concat(de,")\\.(").concat(de,")\\.(").concat(de,")"),$t="v?".concat(St).concat(Ze,"?").concat(Ne,"?"),Nt="^".concat(Qe).concat(ie,"$"),It="^".concat(Te,"\\s*").concat(ie,"$"),Tt="^".concat(Te,"\\s*(").concat($t,")$|^$"),Mt="^\\s*>
1=\\s*0.0.0\\s*$";function te(t){return new RegExp(t)}function G(t){return!t||t.toLowerCase()==="x"||t==="*"}function tt(...t){return e=>t.reduce((r,n)=>n(r),e)}function rt(t){return t.match(te(Tt))}function nt(t,e,r,n){const o="".concat(t,".").concat(e,".").concat(r);return n?"".concat(o,"-").concat(n):o}function wt(t){return t.replace(te(mt),(e,r,n,o,l,a,c,u,d,g,E,y)=>(G(n)?r="":G(o)?r=">=".concat(n,".0.0"):G(l)?r=">=".concat(n,".").concat(o,".0"):r=">=".concat(r),G(d)?u="":G(g)?u="<".concat(Number(d)+1,".0.0-0"):G(E)?u="<".concat(d,".").concat(Number(g)+1,".0-0"):y?u="<=".concat(d,".").concat(g,".").concat(E,"-").concat(y):u="<=".concat(u),"".concat(r," ").concat(u).trim()))}function At(t){return t.replace(te(Et),"$1$2$3")}function jt(t){return t.replace(te(yt),"$1~")}function Pt(t){return t.replace(te(gt),"$1^")}function xt(t){return t.trim().split(/\s+/).map(e=>e.replace(te(Rt),(r,n,o,l,a)=>G(n)?"":G(o)?">=".concat(n,".0.0 <").concat(Number(n)+1,".0.0-0"):G(l)?n==="0"?">=".concat(n,".").concat(o,".0 <").concat(n,".").concat(Number(o)+1,".0-0"):">=".concat(n,".").concat(o,".0 <").concat(Number(n)+1,".0.0-0"):a?n==="0"?o==="0"?">=".concat(n,".").concat(o,".").concat(l,"-").concat(a," <").concat(n,".").concat(o,".").concat(Number(l)+1,"-0"):">=".concat(n,".").concat(o,".").concat(l,"-").concat(a," <").concat(n,".").concat(Number(o)+1,".0-0"):">=".concat(n,".").concat(o,".").concat(l,"-").concat(a," <").concat(Number(n)+1,".0.0-0"):n==="0"?o==="0"?">=".concat(n,".").concat(o,".").concat(l," <").concat(n,".").concat(o,".").concat(Number(l)+1,"-0"):">=".concat(n,".").concat(o,".").concat(l," <").concat(n,".").concat(Number(o)+1,".0-0"):">=".concat(n,".").concat(o,".").concat(l," <").concat(Number(n)+1,".0.0-0"))).join(" ")}function Ot(t){return t.trim().split(/\s+/).map(e=>e.replace(te(Nt),(r,n,o,l,a)=>G(n)?"":G(o)?">=".concat(n,".0.0 <").concat(Number(n)+1,".0.0-0"):G(l)?">=".concat(n,".").concat(o,".0 <").concat(n,".").concat(Number(o)+1,".0-0"):a?">=".concat(n,".").concat(o,".").concat(l,"-").concat(a," <").concat(n,".").concat(Number(o)+1,".0-0"):">=".concat(n,".").concat(o,".").concat(l," <").concat(n,".").concat(Number(o)+1,".0-0"))).join(" ")}function vt(t){return t.split(/\s+/).map(e=>e.trim().replace(te(It),(r,n,o,l,a,c)=>{const u=G(o),d=u||G(l),g=d||G(a);return n==="="&&g&&(n=""),c="",u?n===">"||n==="<"?"<0.0.0-0":"*":n&&g?(d&&(l=0),a=0,n===">"?(n=">=",d?(o=Number(o)+1,l=0,a=0):(l=Number(l)+1,a=0)):n==="<="&&(n="<",d?o=Number(o)+1:l=Number(l)+1),n==="<"&&(c="-0"),"".concat(n+o,".").concat(l,".").concat(a).concat(c)):d?">=".concat(o,".0.0").concat(c," <").concat(Number(o)+1,".0.0-0"):g?">=".concat(o,".").concat(l,".0").concat(c," <").concat(o,".").concat(Number(l)+1,".0-0"):r})).join(" ")}function Ft(t){return t.trim().replace(te(bt),"")}function Lt(t){return t.trim().replace(te(Mt),"")}function be(t,e){return t=Number(t)||t,e=Number(e)||e,t>e?1:t===e?0:-1}function Dt(t,e){const{preRelease:r}=t,{preRelease:n}=e;if(r===void 0&&n)return 1;if(r&&n===void 0)return-1;if(r===void 0&&n===void 0)return 0;for(let o=0,l=r.length;o<=l;o++){const a=r[o],c=n[o];if(a!==c)return a===void 0&&c===void 0?0:a?c?be(a,c):-1:1}return 0}function Re(t,e){return be(t.major,e.major)||be(t.minor,e.minor)||be(t.patch,e.patch)||Dt(t,e)}function Me(t,e){return t.version===e.version}function kt(t,e){switch(t.operator){case"":case"=":return Me(t,e);case">":return Re(t,e)<0;case">=":return Me(t,e)||Re(t,e)<0;case"<":return Re(t,e)>0;case"<=":return Me(t,e)||Re(t,e)>0;case void 0:return!0;default:return!1}}function Ct(t){return tt(xt,Ot,vt,Ft)(t)}function Ht(t){return tt(wt,At,jt,Pt)(t.trim()).split(/\s+/).join(" ")}function fe(t,e){if(!t)return!1;const r=rt(t);if(!r)return!1;const[,n,,o,l,a,c]=r,u={operator:n,version:nt(o,l,a,c),major:o,minor:l,patch:a,preRelease:c==null?void 0:c.split(".")},d=e.split("||");for(const g of d){const E=g.trim();if(!E||E==="*"||E==="x")return!0;try{const y=Ht(E);if(!y.trim())return!0;const $=y.split(" ").map(N=>Ct(N)).join(" ");if(!$.trim())return!0;const I=$.split(/\s+/).map(N=>Lt(N)).filter(Boolean);if(I.length===0)continue;let M=!0;for(const N of I){const w=rt(N);if(!w){M=!1;break}const[,O,,P,k,v,F]=w,U={operator:O,version:nt(P,k,v,F),major:P,minor:k,patch:v,preRelease:F==null?void 0:F.split(".")};if(!kt(U,u)){M=!1;break}}if(M)return!0}catch(y){console.error('[semver] Error processing range part "'.concat(E,'":'),y);continue}}return!1}function Gt(t,e,r,n){var l,a,c;let o;return"get"in t?o=t.get:"lib"in t?o=()=>Promise.resolve(t.lib):o=()=>Promise.resolve(()=>{throw new Error("Can not get shared '".concat(r,"'!"))}),{deps:[],useIn:[],from:e,loading:null,...t,shareConfig:{requiredVersion:"^".concat(t.version),singleton:!1,eager:!1,strictVersion:!1,...t.shareConfig},get:o,loaded:t!=null&&t.loaded||"lib"in t?!0:void 0,version:(l=t.version)!=null?l:"0",scope:Array.isArray(t.scope)?t.scope:[(a=t.scope)!=null?a:"default"],strategy:((c=t.strategy)!=null?c:n)||"version-first"}}function ot(t,e){const r=e.shared||{},n=e.name,o=Object.keys(r).reduce((a,c)=>{const u=q(r[c]);return a[c]=a[c]||[],u.forEach(d=>{a[c].push(Gt(d,n,c,e.shareStrategy))}),a},{}),l={...t.shared};
1return Object.keys(o).forEach(a=>{l[a]?o[a].forEach(c=>{l[a].find(d=>d.version===c.version)||l[a].push(c)}):l[a]=o[a]}),{shared:l,shareInfos:o}}function he(t,e){const r=n=>{if(!Number.isNaN(Number(n))){const l=n.split(".");let a=n;for(let c=0;c<3-l.length;c++)a+=".0";return a}return n};return!!fe(r(t),"<=".concat(r(e)))}const we=(t,e)=>{const r=e||function(n,o){return he(n,o)};return Object.keys(t).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},Ae=t=>!!t.loaded||typeof t.lib=="function",Ut=t=>!!t.loading;function Bt(t,e,r){const n=t[e][r],o=function(l,a){return!Ae(n[l])&&he(l,a)};return we(t[e][r],o)}function qt(t,e,r){const n=t[e][r],o=function(l,a){const c=u=>Ae(u)||Ut(u);return c(n[a])?c(n[l])?!!he(l,a):!0:c(n[l])?!1:he(l,a)};return we(t[e][r],o)}function Vt(t){return t==="loaded-first"?qt:Bt}function ae(t,e,r,n){if(!t)return;const{shareConfig:o,scope:l=ue,strategy:a}=r,c=Array.isArray(l)?l:[l];for(const u of c)if(o&&t[u]&&t[u][e]){const{requiredVersion:d}=o,E=Vt(a)(t,u,e),y=()=>{if(o.singleton){if(typeof d=="string"&&!fe(E,d)){const M="Version ".concat(E," from ").concat(E&&t[u][e][E].from," of shared singleton module ").concat(e," does not satisfy the requirement of ").concat(r.from," which needs ").concat(d,")");o.strictVersion?_(M):R(M)}return t[u][e][E]}else{if(d===!1||d==="*"||fe(E,d))return t[u][e][E];for(const[M,N]of Object.entries(t[u][e]))if(fe(M,d))return N}},$={shareScopeMap:t,scope:u,pkgName:e,version:E,GlobalFederation:j.__FEDERATION__,resolver:y};
1return(n.emit($)||$).resolver()}}function je(){return j.__FEDERATION__.__SHARE__}function st(t){var a;const{pkgName:e,extraOptions:r,shareInfos:n}=t,o=c=>{if(!c)return;const u={};c.forEach(E=>{u[E.version]=E});const g=we(u,function(E,y){return!Ae(u[E])&&he(E,y)});return u[g]},l=(a=r==null?void 0:r.resolver)!=null?a:o;return Object.assign({},l(n[e]),r==null?void 0:r.customShareInfo)}function Wt(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function Pe(t,e){for(const r of t){const n=e.startsWith(r.name);let o=e.replace(r.name,"");if(n){if(o.startsWith("/")){const c=r.name;return o=".".concat(o),{pkgNameOrAlias:c,expose:o,remote:r}}else if(o==="")return{pkgNameOrAlias:r.name,expose:".",remote:r}}const l=r.alias&&e.startsWith(r.alias);let a=r.alias&&e.replace(r.alias,"");if(r.alias&&l){if(a&&a.startsWith("/")){const c=r.alias;return a=".".concat(a),{pkgNameOrAlias:c,expose:a,remote:r}}else if(a==="")return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function Kt(t,e){for(const r of t)if(e===r.name||r.alias&&e===r.alias)return r}function Xt(t,e){const r=qe(),n=[e.hooks,e.remoteHandler.hooks,e.sharedHandler.hooks,e.snapshotHandler.hooks,e.loaderHook,e.bridgeHook];return r.length>0&&r.forEach(o=>{t!=null&&t.find(l=>
1l.name!==o.name)&&t.push(o)}),t&&t.length>0&&t.forEach(o=>{n.forEach(l=>{l.applyPlugin(o,e)})}),t}const it=".then(callbacks[0]).catch(callbacks[1])";async function zt({entry:t,remoteEntryExports:e}){return new Promise((r,n)=>{try{e?r(e):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",'import("'.concat(t,'")').concat(it))([r,n]):import(t).then(r).catch(n)}catch(o){n(o)}})}async function Yt({entry:t,remoteEntryExports:e}){return new Promise((r,n)=>{try{e?r(e):typeof __system_context__>"u"?System.import(t).then(r).catch(n):new Function("callbacks",'System.import("'.concat(t,'")').concat(it))([r,n])}catch(o){n(o)}})}function at(t,e,r){const{remoteEntryKey:n,entryExports:o}=ye(t,e);return h(o,i.getShortErrorMsg(i.RUNTIME_001,i.runtimeDescMap,{remoteName:t,remoteEntryUrl:r,remoteEntryKey:n})),o}async function Jt({name:t,globalName:e,entry:r,loaderHook:n,getEntryUrl:o}){const{entryExports:l}=ye(t,e);if(l)return l;const a=o?o(r):r;return s.loadScript(a,{attrs:{},createScriptHook:(c,u)=>{const d=n.lifecycle.createScript.emit({url:c,attrs:u});if(d&&(d instanceof HTMLScriptElement||"script"in d||"timeout"in d))return d}}).then(()=>at(t,e,r)).catch(c=>{throw h(void 0,i.getShortErrorMsg(i.RUNTIME_008,i.runtimeDescMap,{remoteName:t,resourceUrl:r})),c})}async function Zt({remoteInfo:t,remoteEntryExports:e,loaderHook:r,getEntryUrl:n}){const{entry:o,entryGlobalName:l,name:a,type:c}=t;switch(c){case"esm":case"module":return zt({entry:o,remoteEntryExports:e});case"system":return Yt({entry:o,remoteEntryExports:e});default:return Jt({entry:o,globalName:l,name:a,loaderHook:r,getEntryUrl:n})}}async function Qt({remoteInfo:t,loaderHook:e}){const{entry:r,entryGlobalName:n,name:o,type:l}=t,{entryExports:a}=ye(o,n);return a||s.loadScriptNode(r,{attrs:{name:o,globalName:n,type:l},loaderHook:{createScriptHook:(c,u={})=>{const d=e.lifecycle.createScript.emit({url:c,attrs:u});if(d&&"url"in d)return d}}}).then(()=>at(o,n,r)).catch(c=>{throw c})}function xe(t){const{entry:e,name:r}=t;return s.composeKeyWithSeparator(r,e)}async function me(t){const{origin:e,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:l=!1}=t,a=xe(n);if(r)return r;if(!V[a]){const c=e.remoteHandler.hooks.lifecycle.loadEntry,u=e.loaderHook;V[a]=c.emit({loaderHook:u,remoteInfo:n,remoteEntryExports:r}).then(d=>d||((typeof ENV_TARGET<"u"?ENV_TARGET==="web":s.isBrowserEnv())?Zt({remoteInfo:n,remoteEntryExports:r,loaderHook:u,getEntryUrl:o}):Qt({remoteInfo:n,loaderHook:u}))).catch(async d=>{const g=xe(n);if(d instanceof Error&&d.message.includes(i.RUNTIME_008)&&!l){const y=I=>me({...I,_inErrorHandling:!0}),$=await e.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:y,origin:e,remoteInfo:n,remoteEntryExports:r,globalLoading:V,uniqueKey:g});if($)return $}throw d})}return V[a]}function pe(t){return{...t,entry:"entry"in t?t.entry:"",type:t.type||Ke,entryGlobalName:t.entryGlobalName||t.name,shareScope:t.shareScope||ue}}function ct(t){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...t}}function er(t,e){return e.map(r=>{const n=Kt(t,r.nameOrAlias);return h(n,"Unable to preload ".concat(r.nameOrAlias," as it is not included in ").concat(!n&&s.safeToString({remoteInfo:n,remotes:t}))),{remote:n,preloadConfig:ct(r)}})}function tr(t){return t?t.map(e=>e==="."?e:e.startsWith("./")?e.replace("./",""):e):[]}function Oe(t,e,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:l,entryAssets:a}=r;if(e.options.inBrowser){if(a.forEach(c=>{const{moduleInfo:u}=c,d=e.moduleCache.get(t.name);me(d?{origin:e,remoteInfo:u,remoteEntryExports:d.remoteEntryExports}:{origin:e,remoteInfo:u,remoteEntryExports:void 0})}),n){const c={rel:"preload",as:"style"};o.forEach(u=>{const{link:d,needAttach:g}=s.createLink({url:u,cb:()=>{},attrs:c,createLinkHook:(E,y)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});if($ instanceof HTMLLinkElement)return $}});g&&document.head.appendChild(d)})}else{const c={rel:"stylesheet",type:"text/css"};o.forEach(u=>{const{link:d,needAttach:g}=s.createLink({url:u,cb:()=>{},attrs:c,createLinkHook:(E,y)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});if($ instanceof HTMLLinkElement)return $},needDeleteLink:!1});g&&document.head.appendChild(d)})}if(n){const c={rel:"preload",as:"script"};l.forEach(u=>{const{link:d,needAttach:g}=s.createLink({url:u,cb:()=>{},attrs:c,createLinkHook:(E,y)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:E,attrs:y});if($ instanceof HTMLLinkElement)return $}});g&&document.head.appendChild(d)})}else{const c={fetchpriority:"high",type:(t==null?void 0:t.type)==="module"?"module":"text/javascript"};l.forEach(u=>{const{script:d,needAttach:g}=s.createScript({url:u,cb:()=>{},attrs:c,createScriptHook:(E,y)=>{const $=e.loaderHook.lifecycle.createScript.emit({url:E,attrs:y});if($ instanceof HTMLScriptElement)return $},needDeleteScript:!0});g&&document.head.appendChild(d)})}}}var rr={global:{Global:j,nativeGlobal:D,resetFederationGlobalInfo:ke,setGlobalFederationInstance:Ce,getGlobalFederationConstructor:He,setGlobalFederationConstructor:Ge,getInfoWithoutType:ne,getGlobalSnapshot:Ee,getTargetSnapshotInfoByModuleInfo:Ue,getGlobalSnapshotInfoByModuleInfo:le,setGlobalSnapshotInfoByModuleInfo:Se,addGlobalSnapshot:$e,getRemoteEntryExports:ye,registerGlobalPlugins:Be,getGlobalHostPlugins:qe,getPreloaded:Ve,setPreloaded:We},share:{getRegisteredShare:ae,getGlobalShareScope:je},utils:{matchRemoteWithNameAndExpose:Pe,preloadAssets:Oe,getRemoteInfo:pe}};class ve{constructor({remoteInfo:e,host:r}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=r}async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e;return e=await me({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports}),h(e,"remoteEntryExports is undefined \n ".concat(s.safeToString(this.remoteInfo))),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,r,n,o){const{loadFactory:l=!0}=n||{loadFactory:!0},a=await this.getEntry();if(!this.inited){const E=this.host.shareScopeMap,y=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];
1y.length||y.push("default"),y.forEach(w=>{E[w]||(E[w]={})});const $=E[y[0]],I=[],M={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?y:this.remoteInfo.shareScope||"default"};Object.defineProperty(M,"shareScopeMap",{value:E,enumerable:!1});const N=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:$,remoteEntryInitOptions:M,initScope:I,remoteInfo:this.remoteInfo,origin:this.host});typeof(a==null?void 0:a.init)>"u"&&_(i.getShortErrorMsg(i.RUNTIME_002,i.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await a.init(N.shareScope,N.initScope,N.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...N,id:e,remoteSnapshot:o,remoteEntryExports:a})}this.lib=a,this.inited=!0;let c;c=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:r,moduleInfo:this.remoteInfo}),c||(c=await a.get(r)),h(c,"".concat(S(this.remoteInfo)," remote don't export ").concat(r,"."));const u=z(this.remoteInfo.name,r),d=this.wraperFactory(c,u);return l?await d():d}wraperFactory(e,r){function n(o,l){o&&typeof o=="object"&&Object.isExtensible(o)&&!Object.getOwnPropertyDescriptor(o,Symbol.for("mf_module_id"))&&Object.defineProperty(o,Symbol.for("mf_module_id"),{value:l,enumerable:!1})}return e instanceof Promise?async()=>{const o=await e();return n(o,r),o}:()=>{const o=e();return n(o,r),o}}}class W{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){typeof e=="function"&&this.listeners.add(e)}once(e){const r=this;this.on(function n(...o){return r.remove(n),e.apply(null,o)})}emit(...e){let r;return this.listeners.size>0&&this.listeners.forEach(n=>{r=n(...e)}),r}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}class J extends W{emit(...e){let r;const n=Array.from(this.listeners);if(n.length>0){let o=0;const l=a=>a===!1?!1:o<n.length?Promise.resolve(n[o++].apply(null,e)).then(l):a;r=l()}return Promise.resolve(r)}}function lt(t,e){if(!B(e))return!1;if(t!==e){for(const r in t)if(!(r in e))return!1}return!0}class _e extends W{constructor(e){super(),this.onerror=_,this.type=e}emit(e){B(e)||_('The data for the "'.concat(this.type,'" hook should be an object.'));for(const r of this.listeners)try{const n=r(e);if(lt(e,n))e=n;else{this.onerror('A plugin returned an unacceptable value for the "'.concat(this.type,'" type.'));break}}catch(n){R(n),this.onerror(n)}return e}}class oe extends W{constructor(e){super(),this.onerror=_,this.type=e}emit(e){B(e)||_('The response data for the "'.concat(this.type,'" hook must be an object.'));const r=Array.from(this.listeners);if(r.length>0){let n=0;const o=a=>(R(a),this.onerror(a),e),l=a=>{if(lt(e,a)){if(e=a,n<r.length)try{return Promise.resolve(r[n++](e)).then(l,o)}catch(c){return o(c)}}else this.onerror('A plugin returned an incorrect value for the "'.concat(this.type,'" type.'));return e};return Promise.resolve(l(e))}return Promise.resolve(e)}}class ce{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,r){var o;h(x(e),"Plugin configuration is invalid.");const n=e.name;h(n,"A name must be provided by the plugin."),this.registerPlugins[n]||(this.registerPlugins[n]=e,(o=e.apply)==null||o.call(e,r),Object.keys(this.lifecycle).forEach(l=>{const a=e[l];a&&this.lifecycle[l].on(a)}))}removePlugin(e){h(e,"A name is required.");const r=this.registerPlugins[e];h(r,'The plugin "'.concat(e,'" is not registered.')),Object.keys(r).forEach(n=>{n!=="name"&&this.lifecycle[n].remove(r[n])})}}function ut(t,e){const r=X(e);r.url||_("The attribute remoteEntry of ".concat(t.name," must not be undefined."));let n=s.getResourceUrl(e,r.url);!s.isBrowserEnv()&&!n.startsWith("http")&&(n="https:".concat(n)),t.type=r.type,t.entryGlobalName=r.globalName,t.entry=n,t.version=e.version,t.buildVersion=e.buildVersion}function nr(){return{name:"snapshot-plugin",async afterResolve(t){const{remote:e,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:l,id:a}=t;if(!T(e)||!H(e)){const{remoteSnapshot:c,globalSnapshot:u}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:e,id:a});ut(l,c);const d={remote:e,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},g=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:d,remoteInfo:l,remote:e,remoteSnapshot:c,globalSnapshot:u});return g&&Oe(l,o,g,!1),{...t,remoteSnapshot:c}}return t}}}function or(t){const e=t.split(":");return e.length===1?{name:e[0],version:void 0}:e.length===2?{name:e[0],version:e[1]}:{name:e[1],version:e[2]}
1}function dt(t,e,r,n,o={},l){const a=S(e),{value:c}=ne(t,a),u=l||c;if(u&&!s.isManifestProvider(u)&&(r(u,e,n),u.remotesInfo)){const d=Object.keys(u.remotesInfo);for(const g of d){if(o[g])continue;o[g]=!0;const E=or(g),y=u.remotesInfo[g];dt(t,{name:E.name,version:y.matchedVersion},r,!1,o,void 0)}}}const Fe=(t,e)=>document.querySelector("".concat(t,"[").concat(t==="link"?"href":"src",'="').concat(e,'"]'));function sr(t,e,r,n,o){const l=[],a=[],c=[],u=new Set,d=new Set,{options:g}=t,{preloadConfig:E}=e,{depsRemote:y}=E;if(dt(n,r,(N,w,O)=>{var Z;let P;if(O)P=E;else if(Array.isArray(y)){const Q=y.find(K=>K.nameOrAlias===w.name||K.nameOrAlias===w.alias);if(!Q)return;P=ct(Q)}else if(y===!0)P=E;else return;const k=s.getResourceUrl(N,X(N).url);k&&c.push({name:w.name,moduleInfo:{name:w.name,entry:k,type:"remoteEntryType"in N?N.remoteEntryType:"global",entryGlobalName:"globalName"in N?N.globalName:w.name,shareScope:"",version:"version"in N?N.version:void 0},url:k});let v="modules"in N?N.modules:[];const F=tr(P.exposes);F.length&&"modules"in N&&(v=(Z=N==null?void 0:N.modules)==null?void 0:Z.reduce((Q,K)=>((F==null?void 0:F.indexOf(K.moduleName))!==-1&&Q.push(K),Q),[]));function U(Q){const K=Q.map(re=>s.getResourceUrl(N,re));return P.filter?K.filter(P.filter):K}if(v){const Q=v.length;for(let K=0;K<Q;K++){const re=v[K],Le="".concat(w.name,"/").concat(re.moduleName);t.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:re.moduleName==="."?w.name:Le,name:w.name,remoteSnapshot:N,preloadConfig:P,remote:w,origin:t}),!Ve(Le)&&(P.resourceCategory==="all"?(l.push(...U(re.assets.css.async)),l.push(...U(re.assets.css.sync)),a.push(...U(re.assets.js.async)),a.push(...U(re.assets.js.sync))):(P.resourceCategory="sync")&&(l.push(...U(re.assets.css.sync)),a.push(...U(re.assets.js.sync))),We(Le))}}},!0,{},o),o.shared&&o.shared.length>0){const N=(w,O)=>{const P=ae(t.shareScopeMap,O.sharedName,w,t.sharedHandler.hooks.lifecycle.resolveShare);P&&typeof P.lib=="function"&&(O.assets.js.sync.forEach(k=>{u.add(k)}),O.assets.css.sync.forEach(k=>{d.add(k)}))};o.shared.forEach(w=>{var v;const O=(v=g.shared)==null?void 0:v[w.sharedName];if(!O)return;const P=w.version?O.find(F=>F.version===w.version):O;if(!P)return;q(P).forEach(F=>{N(F,w)})})}const I=a.filter(N=>!u.has(N)&&!Fe("script",N));return{cssAssets:l.filter(N=>!d.has(N)&&!Fe("link",N)),jsAssetsWithoutEntry:I,entryAssets:c.filter(N=>!Fe("script",N.url))}}const ir=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(t){const{origin:e,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:l,remoteSnapshot:a}=t;return s.isBrowserEnv()?T(o)&&H(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(ut(n,a),sr(e,r,n,l,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function ft(t,e){const r=le({name:e.name,version:e.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&ne(r.remotesInfo,t.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:Ee(),remoteSnapshot:le({name:t.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Ee(),remoteSnapshot:le({name:t.name,version:"version"in t?t.version:void 0})}}class ar{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ce({beforeLoadRemoteSnapshot:new J("beforeLoadRemoteSnapshot"),loadSnapshot:new oe("loadGlobalSnapshot"),loadRemoteSnapshot:new oe("loadRemoteSnapshot"),afterLoadSnapsh
1ot:new oe("afterLoadSnapshot")}),this.manifestLoading=j.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:r,expose:n}){const{options:o}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:o,moduleInfo:e});let l=le({name:this.HostInstance.options.name,version:this.HostInstance.options.version});l||(l={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},$e({[this.HostInstance.options.name]:l})),l&&"remotesInfo"in l&&!ne(l.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(l.remotesInfo={...l==null?void 0:l.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:a,remoteSnapshot:c,globalSnapshot:u}=this.getGlobalRemoteInfo(e),{remoteSnapshot:d,globalSnapshot:g}=await this.hooks.lifecycle.loadSnapshot.emit({options:o,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:c,globalSnapshot:u});let E,y;if(d)if(s.isManifestProvider(d)){const $=s.isBrowserEnv()?d.remoteEntry:d.ssrRemoteEntry||d.remoteEntry||"",I=await this.getManifestJson($,e,{}),M=Se({...e,entry:$},I);E=I,y=M}else{const{remoteSnapshot:$}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:d,from:"global"});E=$,y=g}else if(T(e)){const $=await this.getManifestJson(e.entry,e,{}),I=Se(e,$),{remoteSnapshot:M}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:$,from:"global"});E=M,y=I}else _(i.getShortErrorMsg(i.RUNTIME_007,i.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(g)}));
1return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:r,host:this.HostInstance,options:o,moduleInfo:e,remoteSnapshot:E}),{remoteSnapshot:E,globalSnapshot:y}}getGlobalRemoteInfo(e){return ft(e,this.HostInstance)}async getManifestJson(e,r,n){const o=async()=>{let a=this.manifestCache.get(e);if(a)return a;try{let c=await this.loaderHook.lifecycle.fetch.emit(e,{});(!c||!(c instanceof Response))&&(c=await fetch(e,{})),a=await c.json()}catch(c){a=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),a||(delete this.manifestLoading[e],_(i.getShortErrorMsg(i.RUNTIME_003,i.runtimeDescMap,{manifestUrl:e,moduleName:r.name,hostName:this.HostInstance.options.name},"".concat(c))))}return h(a.metaData&&a.exposes&&a.shared,"".concat(e," is not a federation manifest")),this.manifestCache.set(e,a),a},l=async()=>{const a=await o(),c=s.generateSnapshotFromManifest(a,{version:e}),{remoteSnapshot:u}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:r,manifestJson:a,remoteSnapshot:c,manifestUrl:e,from:"manifest"});return u};return this.manifestLoading[e]||(this.manifestLoading[e]=l().then(a=>a)),this.manifestLoading[e]}}class cr{constructor(e){this.hooks=new ce({afterResolve:new oe("afterResolve"),beforeLoadShare:new oe("beforeLoadShare"),loadShare:new J,resolveShare:new _e("resolveShare"),initContainerShareScopeMap:new _e("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,r){const{shareInfos:n,shared:o}=ot(e,r);return Object.keys(n).forEach(a=>{n[a].forEach(u=>{u.scope.forEach(d=>{var E;(E=this.shareScopeMap[d])!=null&&E[a]||this.setShared({pkgName:a,lib:u.lib,get:u.get,loaded:u.loaded||!!u.lib,shared:u,from:r.name})})})}),{shareInfos:n,shared:o}}async loadShare(e,r){const{host:n}=this,o=st({pkgName:e,extraOptions:r,shareInfos:n.options.shared});o!=null&&o.scope&&await Promise.all(o.scope.map(async d=>{await Promise.all(this.initializeSharing(d,{strategy:o.strategy}))}));const l=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:o,shared:n.options.shared,origin:n}),{shareInfo:a}=l;h(a,"Cannot find ".concat(e," Share in the ").concat(n.options.name,". Please ensure that the ").concat(e," Share parameters have been injected"));const c=ae(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),u=d=>{d.useIn||(d.useIn=[]),b(d.useIn,n.options.name)};if(c&&c.lib)return u(c),c.lib;if(c&&c.loading&&!c.loaded){const d=await c.loading;return c.loaded=!0,c.lib||(c.lib=d),u(c),d}else if(c){const g=(async()=>{const E=await c.get();return u(c),c.loaded=!0,c.lib=E,E})();return this.setShared({pkgName:e,loaded:!1,shared:c,from:n.options.name,lib:null,loading:g}),g}else{if(r!=null&&r.customShareInfo)return!1;const g=(async()=>{const E=await a.get();a.lib=E,a.loaded=!0,u(a);const y=ae(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return y&&(y.lib=E,y.loaded=!0,y.from=a.from),E})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:n.options.name,lib:null,loading:g}),g}}initializeSharing(e=ue,r){const{host:n}=this,o=r==null?void 0:r.from,l=r==null?void 0:r.strategy;let a=r==null?void 0:r.initScope;const c=[];if(o!=="build"){const{initTokens:I}=this;a||(a=[]);let M=I[e];if(M||(M=I[e]={from:this.host.name}),a.indexOf(M)>=0)return c;a.push(M)}const u=this.shareScopeMap,d=n.options.name;u[e]||(u[e]={});const g=u[e],E=(I,M)=>{var v;const{version:N,eager:w}=M;g[I]=g[I]||{};const O=g[I],P=O[N],k=!!(P&&(P.eager||(v=P.shareConfig)!=null&&v.eager));(!P||P.strategy!=="loaded-first"&&!P.loaded&&(!w!=!k?w:d>P.from))&&(O[N]=M)},y=I=>I&&I.init&&I.init(u[e],a),$=async I=>{const{module:M}=await n.remoteHandler.getRemoteModuleAndOptions({id:I});if(M.getEntry){let N;try{N=await M.getEntry()}catch(w){N=await n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:I,error:w,from:"runtime",lifecycle:"beforeLoadShare",origin:n})}M.inited||(await y(N),M.inited=!0)}};
1return Object.keys(n.options.shared).forEach(I=>{n.options.shared[I].forEach(N=>{N.scope.includes(e)&&E(I,N)})}),(n.options.shareStrategy==="version-first"||l==="version-first")&&n.options.remotes.forEach(I=>{I.shareScope===e&&c.push($(I.name))}),c}loadShareSync(e,r){const{host:n}=this,o=st({pkgName:e,extraOptions:r,shareInfos:n.options.shared});o!=null&&o.scope&&o.scope.forEach(c=>{this.initializeSharing(c,{strategy:o.strategy})});const l=ae(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),a=c=>{c.useIn||(c.useIn=[]),b(c.useIn,n.options.name)};if(l){if(typeof l.lib=="function")return a(l),l.loaded||(l.loaded=!0,l.from===n.options.name&&(o.loaded=!0)),l.lib;if(typeof l.get=="function"){const c=l.get();if(!(c instanceof Promise))return a(l),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:c,shared:l}),c}}if(o.lib)return o.loaded||(o.loaded=!0),o.lib;if(o.get){const c=o.get();if(c instanceof Promise){const u=(r==null?void 0:r.from)==="build"?i.RUNTIME_005:i.RUNTIME_006;throw new Error(i.getShortErrorMsg(u,i.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}return o.lib=c,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:o.lib,shared:o}),o.lib}throw new Error(i.getShortErrorMsg(i.RUNTIME_006,i.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}initShareScopeMap(e,r,n={}){const{host:o}=this;this.shareScopeMap[e]=r,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:r,options:o.options,origin:o,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:r,from:n,lib:o,loading:l,loaded:a,get:c}){const{version:u,scope:d="default",...g}=r;(Array.isArray(d)?d:[d]).forEach(y=>{if(this.shareScopeMap[y]||(this.shareScopeMap[y]={}),this.shareScopeMap[y][e]||(this.shareScopeMap[y][e]={}),!this.shareScopeMap[y][e][u]){this.shareScopeMap[y][e][u]={version:u,scope:[y],...g,lib:o,loaded:a,loading:l},c&&(this.shareScopeMap[y][e][u].get=c);return}const $=this.shareScopeMap[y][e][u];l&&!$.loading&&($.loading=l),a&&!$.loaded&&($.loaded=a),n&&$.from!==n&&($.from=n)})}_setGlobalShareScopeMap(e){const r=je(),n=e.id||e.name;n&&!r[n]&&(r[n]=this.shareScopeMap)}}class lr{constructor(e){this.hooks=new ce({beforeRegisterRemote:new _e("beforeRegisterRemote"),registerRemote:new _e("registerRemote"),beforeRequest:new oe("beforeRequest"),onLoad:new J("onLoad"),handlePreloadModule:new W("handlePreloadModule"),errorLoadRemote:new J("errorLoadRemote"),beforePreloadRemote:new J("beforePreloadRemote"),generatePreloadAssets:new J("generatePreloadAssets"),afterPreloadRemote:new J,loadEntry:new J}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,r){return(r.remotes||[]).reduce((o,l)=>(this.registerRemote(l,o,{force:!1}),o),e.remotes)}setIdToRemoteMap(e,r){const{remote:n,expose:o}=r,{name:l,alias:a}=n;if(this.idToRemoteMap[e]={name:n.name,expose:o},a&&e.startsWith(l)){const c=e.replace(l,a);this.idToRemoteMap[c]={name:n.name,expose:o};return}if(a&&e.startsWith(a)){const c=e.replace(a,l);this.idToRemoteMap[c]={name:n.name,expose:o}}}async loadRemote(e,r){const{host:n}=this;try{const{loadFactory:o=!0}=r||{loadFactory:!0},{module:l,moduleOptions:a,remoteMatchInfo:c}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:u,remote:d,expose:g,id:E,remoteSnapshot:y}=c,$=await l.get(E,g,r,y),I=await this.hooks.lifecycle.onLoad.emit({id:E,pkgNameOrAlias:u,expose:g,exposeModule:o?$:void 0,exposeModuleFactory:o?void 0:$,remote:d,options:a,moduleInstance:l,origin:n});return this.setIdToRemoteMap(e,c),typeof I=="function"?I:$}catch(o){const{from:l="runtime"}=r||{from:"runtime"},a=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:o,from:l,lifecycle:"onLoad",origin:n});if(!a)throw o;return a}}async preloadRemote(e){const{host:r}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});const n=er(r.options.remotes,e);await Promise.all(n.map(async o=>{const{remote:l}=o,a=pe(l),{globalSnapshot:c,remoteSnapshot:u}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:l}),d=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:o,remote:l,remoteInfo:a,globalSnapshot:c,remoteSnapshot:u});d&&Oe(a,r,d)}))}registerRemotes(e,r){const{host:n}=this;e.forEach(o=>{this.registerRemote(o,n.options.remotes,{force:r==null?void 0:r.force})})}async getRemoteModuleAndOptions(e){const{host:r}=this,{id:n}=e;let o;try{o=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}
1catch(I){if(o=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:I,lifecycle:"beforeRequest"}),!o)throw I}const{id:l}=o,a=Pe(r.options.remotes,l);h(a,i.getShortErrorMsg(i.RUNTIME_004,i.runtimeDescMap,{hostName:r.options.name,requestId:l}));const{remote:c}=a,u=pe(c),d=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:l,...a,options:r.options,origin:r,remoteInfo:u}),{remote:g,expose:E}=d;h(g&&E,"The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ".concat(l,"."));let y=r.moduleCache.get(g.name);const $={host:r,remoteInfo:u};return y||(y=new ve($),r.moduleCache.set(g.name,y)),{module:y,moduleOptions:$,remoteMatchInfo:d}}registerRemote(e,r,n){const{host:o}=this,l=()=>{if(e.alias){const c=r.find(u=>{var d;return e.alias&&(u.name.startsWith(e.alias)||((d=u.alias)==null?void 0:d.startsWith(e.alias)))});h(!c,"The alias ".concat(e.alias," of remote ").concat(e.name," is not allowed to be the prefix of ").concat(c&&c.name," name or alias"))}"entry"in e&&s.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=ue),e.type||(e.type=Ke)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});const a=r.find(c=>c.name===e.name);if(!a)l(),r.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o});else{const c=['The remote "'.concat(e.name,'" is already registered.'),"Please note that overriding it may cause unexpected errors."];n!=null&&n.force&&(this.removeRemote(a),l(),r.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o}),s.warn(c.join(" ")))}}removeRemote(e){var r;try{const{host:n}=this,{name:o}=e,l=n.options.remotes.findIndex(c=>c.name===o);l!==-1&&n.options.remotes.splice(l,1);const a=n.moduleCache.get(e.name);if(a){const c=a.remoteInfo,u=c.entryGlobalName;A[u]&&((r=Object.getOwnPropertyDescriptor(A,u))!=null&&r.configurable?delete A[u]:A[u]=void 0);const d=xe(a.remoteInfo);V[d]&&delete V[d],n.snapshotHandler.manifestCache.delete(c.entry);let g=c.buildVersion?s.composeKeyWithSeparator(c.name,c.buildVersion):c.name;const E=A.__FEDERATION__.__INSTANCES__.findIndex($=>c.buildVersion?$.options.id===g:$.name===g);if(E!==-1){const $=A.__FEDERATION__.__INSTANCES__[E];g=$.options.id||g;const I=je();let M=!0;const N=[];Object.keys(I).forEach(w=>{const O=I[w];O&&Object.keys(O).forEach(P=>{const k=O[P];k&&Object.keys(k).forEach(v=>{const F=k[v];F&&Object.keys(F).forEach(U=>{const Z=F[U];Z&&typeof Z=="object"&&Z.from===c.name&&(Z.loaded||Z.loading?(Z.useIn=Z.useIn.filter(Q=>Q!==c.name),Z.useIn.length?M=!1:N.push([w,P,v,U])):N.push([w,P,v,U]))})})})}),M&&($.shareScopeMap={},delete I[g]),N.forEach(([w,O,P,k])=>{var v,F,U;(U=(F=(v=I[w])==null?void 0:v[O])==null?void 0:F[P])==null||delete U[k]}),A.__FEDERATION__.__INSTANCES__.splice(E,1)}const{hostGlobalSnapshot:y}=ft(e,n);if(y){const $=y&&"remotesInfo"in y&&y.remotesInfo&&ne(y.remotesInfo,e.name).key;$&&(delete y.remotesInfo[$],j.__FEDERATION__.__MANIFEST_LOADING__[$]&&delete j.__FEDERATION__.__MANIFEST_LOADING__[$])}n.moduleCache.delete(e.name)}}catch(n){m.log("removeRemote fail: ",n)}}}const ur=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;class dr{constructor(e){this.hooks=new ce({beforeInit:new _e("beforeInit"),init:new W,beforeInitContainer:new oe("beforeInitContainer"),initContainer:new oe("initContainer")}),this.version="0.21.6",this.moduleCache=new Map,this.loaderHook=new ce({getModuleInfo:new W,createScript:new W,createLink:new W,fetch:new J,loadEntryError:new J,getModuleFactory:new J}),this.bridgeHook=new ce({beforeBridgeRender:new W,afterBridgeRender:new W,beforeBridgeDestroy:new W,afterBridgeDestroy:new W});const r=ur?[nr(),ir()]:[],n={id:Wt(),name:e.name,plugins:r,remotes:[],shared:{},inBrowser:s.isBrowserEnv()};this.name=e.name,this.options=n,this.snapshotHandler=new ar(this),this.sharedHandler=new cr(this),this.remoteHandler=new lr(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...n.plugins,...e.plugins||[]]),this.options=this.formatOptions(n,e)}initOptions(e){this.registerPlugins(e.plugins);const r=this.formatOptions(this.options,e);return this.options=r,r}
1async loadShare(e,r){return this.sharedHandler.loadShare(e,r)}loadShareSync(e,r){return this.sharedHandler.loadShareSync(e,r)}initializeSharing(e=ue,r){return this.sharedHandler.initializeSharing(e,r)}initRawContainer(e,r,n){const o=pe({name:e,entry:r}),l=new ve({host:this,remoteInfo:o});return l.remoteEntryExports=n,this.moduleCache.set(e,l),l}async loadRemote(e,r){return this.remoteHandler.loadRemote(e,r)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,r,n={}){this.sharedHandler.initShareScopeMap(e,r,n)}formatOptions(e,r){const{shared:n}=ot(e,r),{userOptions:o,options:l}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:r,options:e,shareInfo:n}),a=this.remoteHandler.formatAndRegisterRemote(l,o),{shared:c}=this.sharedHandler.registerShared(l,o),u=[...l.plugins];o.plugins&&o.plugins.forEach(g=>{u.includes(g)||u.push(g)});const d={...e,...r,plugins:u,remotes:a,shared:c};return this.hooks.lifecycle.init.emit({origin:this,options:d}),d}registerPlugins(e){const r=Xt(e,this);this.options.plugins=this.options.plugins.reduce((n,o)=>(o&&n&&!n.find(l=>l.name===o.name)&&n.push(o),n),r||[])}registerRemotes(e,r){return this.remoteHandler.registerRemotes(e,r)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}var fr=Object.freeze({__proto__:null});return index_cjs$2.loadScript=s.loadScript,index_cjs$2.loadScriptNode=s.loadScriptNode,index_cjs$2.CurrentGlobal=A,index_cjs$2.Global=j,index_cjs$2.Module=ve,index_cjs$2.ModuleFederation=dr,index_cjs$2.addGlobalSnapshot=$e,index_cjs$2.assert=h,index_cjs$2.getGlobalFederationConstructor=He,index_cjs$2.getGlobalSnapshot=Ee,index_cjs$2.getInfoWithoutType=ne,index_cjs$2.getRegisteredShare=ae,index_cjs$2.getRemoteEntry=me,index_cjs$2.getRemoteInfo=pe,index_cjs$2.helpers=rr,index_cjs$2.isStaticResourcesEqual=L,index_cjs$2.matchRemoteWithNameAndExpose=Pe,index_cjs$2.registerGlobalPlugins=Be,index_cjs$2.resetFederationGlobalInfo=ke,index_cjs$2.safeWrapper=ee,index_cjs$2.satisfy=fe,index_cjs$2.setGlobalFederationConstructor=Ge,index_cjs$2.setGlobalFederationInstance=Ce,index_cjs$2.types=fr,index_cjs$2}var utils_cjs={},hasRequiredUtils_cjs;function requireUtils_cjs(){if(hasRequiredUtils_cjs)return utils_cjs;hasRequiredUtils_cjs=1;var s=requireIndex_cjs$1();function i(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function p(m,h){const _=i();return s.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(R=>!!(_&&R.options.id===_||R.options.name===m&&!R.options.version&&!h||R.options.name===m&&h&&R.options.version===h))}return utils_cjs.getGlobalFederationInstance=p,utils_cjs}var hasRequiredIndex_cjs;function requireIndex_cjs(){if(hasRequiredIndex_cjs)return index_cjs$3;hasRequiredIndex_cjs=1;var s=requireIndex_cjs$1(),i=requireIndex_cjs$2(),p=requireUtils_cjs();function m(x){const L=s.getGlobalFederationConstructor()||s.ModuleFederation,q=new L(x);return s.setGlobalFederationInstance(q),q}let h=null;function _(x){const L=p.getGlobalFederationInstance(x.name,x.version);return L?(L.initOptions(x),h||(h=L),L):(h=m(x),h)}function R(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.loadRemote.apply(h,x)}function b(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.loadShare.apply(h,x)}function S(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.loadShareSync.apply(h,x)}function T(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.preloadRemote.apply(h,x)}function H(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.registerRemotes.apply(h,x)}function ee(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.registerPlugins.apply(h,x)}function B(){return h}function se(...x){return s.assert(h,i.getShortErrorMsg(i.RUNTIME_009,i.runtimeDescMap)),h.registerShared.apply(h,x)}return s.setGlobalFederationConstructor(s.ModuleFederation),index_cjs$3.Module=s.Module,index_cjs$3.ModuleFederation=s.ModuleFederation,index_cjs$3.getRemoteEntry=s.getRemoteEntry,index_cjs$3.getRemoteInfo=s.getRemoteInfo,index_cjs$3.loadScript=s.loadScript,
1index_cjs$3.loadScriptNode=s.loadScriptNode,index_cjs$3.registerGlobalPlugins=s.registerGlobalPlugins,index_cjs$3.createInstance=m,index_cjs$3.getInstance=B,index_cjs$3.init=_,index_cjs$3.loadRemote=R,index_cjs$3.loadShare=b,index_cjs$3.loadShareSync=S,index_cjs$3.preloadRemote=T,index_cjs$3.registerPlugins=ee,index_cjs$3.registerRemotes=H,index_cjs$3.registerShared=se,index_cjs$3}var hasRequiredRuntime_cjs;function requireRuntime_cjs(){return hasRequiredRuntime_cjs||(hasRequiredRuntime_cjs=1,(function(s){var i=requireIndex_cjs();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(s,"__proto__")&&Object.defineProperty(s,"__proto__",{enumerable:!0,value:i.__proto__}),Object.keys(i).forEach(function(p){p!=="default"&&!Object.prototype.hasOwnProperty.call(s,p)&&(s[p]=i[p])})})(runtime_cjs)),runtime_cjs}var hasRequiredRuntime;function requireRuntime(){return hasRequiredRuntime||(hasRequiredRuntime=1,(function(s){var i=runtime$2&&runtime$2.__createBinding||(Object.create?(function(m,h,_,R){R===void 0&&(R=_);var b=Object.getOwnPropertyDescriptor(h,_);(!b||("get"in b?!h.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return h[_]}}),Object.defineProperty(m,R,b)}):(function(m,h,_,R){R===void 0&&(R=_),m[R]=h[_]})),p=runtime$2&&runtime$2.__exportStar||function(m,h){for(var _ in m)_!=="default"&&!Object.prototype.hasOwnProperty.call(h,_)&&i(h,m,_)};Object.defineProperty(s,"__esModule",{value:!0}),p(requireRuntime_cjs(),s)})(runtime$2)),runtime$2}var runtimeExports=requireRuntime();const runtime=getDefaultExportFromCjs(runtimeExports),runtime$1=_mergeNamespaces({__proto__:null,default:runtime},[runtimeExports]);export{runtime$1 as r};
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.