@signalk/server-admin-ui 2.23.2 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +42 -10
  2. package/index.html +1 -1
  3. package/package.json +54 -25
  4. package/public/assets/adminUI__loadShare__react__loadShare__.mjs-D12K3nc7.js +2 -0
  5. package/public/assets/adminUI__loadShare__react__loadShare__.mjs_commonjs-proxy-CxhLHr3R.js +2 -0
  6. package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.mjs-BWXpsqcx.js +2 -0
  7. package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-BdljRO5t.js +2 -0
  8. package/public/assets/bootstrap-BU9GjXh2.js +832 -0
  9. package/public/assets/hostInit-D-eMgRM5.js +2 -0
  10. package/public/assets/index-A9nEavld.js +10 -0
  11. package/public/assets/index-CRpLmmqx.js +10 -0
  12. package/public/assets/index-CjzeMIEK.js +3 -0
  13. package/public/assets/localSharedImportMap-DB5tFz3u.js +2 -0
  14. package/public/assets/style-CLVMbhfE.css +11 -0
  15. package/public/assets/virtualExposes-FmFgRqLi.js +2 -0
  16. package/public/index.html +4 -5
  17. package/public/react-16.production.min.js +786 -0
  18. package/public/react-dom-16.production.min.js +7454 -0
  19. package/public/remoteEntry.js +7 -2
  20. package/tsconfig.node.json +10 -0
  21. package/public/assets/Simple-Line-Icons-TZpPYPE3.svg +0 -200
  22. package/public/assets/adminUI__loadShare__react__loadShare__.mjs-D8asHvWX.js +0 -2
  23. package/public/assets/adminUI__loadShare__react__loadShare__.mjs_commonjs-proxy-ByXi4yJ8.js +0 -2
  24. package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.mjs-DH1wL779.js +0 -2
  25. package/public/assets/bootstrap-bNZv2cMS.js +0 -818
  26. package/public/assets/fa-brands-400-CEJbCg16.woff +0 -0
  27. package/public/assets/fa-brands-400-CSYNqBb_.ttf +0 -0
  28. package/public/assets/fa-brands-400-DnkPfk3o.eot +0 -0
  29. package/public/assets/fa-brands-400-UxlILjvJ.woff2 +0 -0
  30. package/public/assets/fa-brands-400-cH1MgKbP.svg +0 -3717
  31. package/public/assets/fa-regular-400-BhTwtT8w.eot +0 -0
  32. package/public/assets/fa-regular-400-D1vz6WBx.ttf +0 -0
  33. package/public/assets/fa-regular-400-DFnMcJPd.woff +0 -0
  34. package/public/assets/fa-regular-400-DGzu1beS.woff2 +0 -0
  35. package/public/assets/fa-regular-400-gwj8Pxq-.svg +0 -801
  36. package/public/assets/fa-solid-900-B4ZZ7kfP.svg +0 -5034
  37. package/public/assets/fa-solid-900-B6Axprfb.eot +0 -0
  38. package/public/assets/fa-solid-900-BUswJgRo.woff2 +0 -0
  39. package/public/assets/fa-solid-900-DOXgCApm.woff +0 -0
  40. package/public/assets/fa-solid-900-mxuxnBEa.ttf +0 -0
  41. package/public/assets/fontawesome-webfont-B-jkhYfk.woff2 +0 -0
  42. package/public/assets/fontawesome-webfont-CDK5bt4p.woff +0 -0
  43. package/public/assets/fontawesome-webfont-CQDK8MU3.ttf +0 -0
  44. package/public/assets/fontawesome-webfont-D13rzr4g.svg +0 -2671
  45. package/public/assets/fontawesome-webfont-G5YE5S7X.eot +0 -0
  46. package/public/assets/hostInit-BMKH-INB.js +0 -3
  47. package/public/assets/index-BEQk0SN_.js +0 -9
  48. package/public/assets/index-C0euSWDO.js +0 -19
  49. package/public/assets/index-CLC5Par7.js +0 -3
  50. package/public/assets/index-LtR7LJbL.js +0 -6
  51. package/public/assets/index.cjs-qNTcCtpj.js +0 -8
  52. package/public/assets/loadingerror-Beick9Sd.js +0 -2
  53. package/public/assets/runtimeInit-DE95pSy4.js +0 -2
  54. package/public/assets/style-CzSZ78W4.css +0 -18
  55. package/public/assets/virtualExposes-BIHI7g3E.js +0 -2
  56. package/vite.config.js +0 -66
@@ -1,3 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./assets/index-BEQk0SN_.js","./assets/adminUI__loadShare__react__loadShare__.mjs_commonjs-proxy-ByXi4yJ8.js","./assets/adminUI__loadShare__react__loadShare__.mjs-D8asHvWX.js","./assets/runtimeInit-DE95pSy4.js","./assets/index-LtR7LJbL.js","./assets/index-C0euSWDO.js"])))=>i.map(i=>d[i]);
2
- import{i as l}from"./assets/index.cjs-qNTcCtpj.js";import a from"./assets/virtualExposes-BIHI7g3E.js";import{_ as i}from"./assets/preload-helper-Ct5FWWRu.js";import{a as f}from"./assets/runtimeInit-DE95pSy4.js";const s={react:async()=>await i(()=>import("./assets/index-BEQk0SN_.js").then(t=>t.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"react-dom":async()=>await i(()=>import("./assets/index-C0euSWDO.js").then(t=>t.i),__vite__mapDeps([5,1,2,3,4]),import.meta.url)},n={react:{name:"react",version:"16.14.0",scope:["default"],loaded:!1,from:"adminUI",async get(){n.react.loaded=!0;const{react:e}=s,r={...await e()};return Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:"^16.14.0"}},"react-dom":{name:"react-dom",version:"16.14.0",scope:["default"],loaded:!1,from:"adminUI",async get(){n["react-dom"].loaded=!0;const{"react-dom":e}=s,r={...await e()};return Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),function(){return r}},shareConfig:{singleton:!0,requiredVersion:"^16.14.0"}}},p=[],c={},u="default",d="adminUI";async function v(e={},t=[]){const r=l({name:d,remotes:p,shared:n,plugins:[],shareStrategy:"version-first"});var o=c[u];if(o||(o=c[u]={from:d}),!(t.indexOf(o)>=0)){t.push(o),r.initShareScopeMap("default",e);try{await Promise.all(await r.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(m){console.error(m)}return f(r),r}}function k(e){if(!(e in a))throw new Error(`Module ${e} does not exist in container.`);return a[e]().then(t=>()=>t)}export{k as get,v as init};
1
+ var sr={},ir={},Rt={},T={},L={},N={};const an="federation-manifest.json",ln=".json",cn="FEDERATION_DEBUG",B={AT:"@",HYPHEN:"-",SLASH:"/"},Le={[B.AT]:"scope_",[B.HYPHEN]:"_",[B.SLASH]:"__"},un={[Le[B.AT]]:B.AT,[Le[B.HYPHEN]]:B.HYPHEN,[Le[B.SLASH]]:B.SLASH},fn=":",dn="mf-manifest.json",hn="mf-stats.json",mn={NPM:"npm",APP:"app"},pn="__MF_DEVTOOLS_MODULE_INFO__",_n="ENCODE_NAME_PREFIX",gn=".federation",En={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};let yn=(function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e})({});N.BROWSER_LOG_KEY=cn;N.ENCODE_NAME_PREFIX=_n;N.EncodedNameTransformMap=un;N.FederationModuleManifest=an;N.MANIFEST_EXT=ln;N.MFModuleType=mn;N.MFPrefetchCommon=En;N.MODULE_DEVTOOL_IDENTIFIER=pn;N.ManifestFileName=dn;N.NameTransformMap=Le;N.NameTransformSymbol=B;N.SEPARATOR=fn;N.StatsFileName=hn;N.TEMP_DIR=gn;N.TreeShakingStatus=yn;var ar={},te={},Ot=Object.defineProperty,Sn=(e,t)=>{let r={};for(var n in e)Ot(r,n,{get:e[n],enumerable:!0});return t||Ot(r,Symbol.toStringTag,{value:"Module"}),r};te.__exportAll=Sn;(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ContainerPlugin_exports",{enumerable:!0,get:function(){return r}})})(ar);var lr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return r}})})(lr);var cr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return r}})})(cr);var ur={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"SharePlugin_exports",{enumerable:!0,get:function(){return r}})})(ur);var fr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(fr);var dr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(dr);var z={},Se={};const bn=N,hr=!0;function mr(){return hr}function Rn(){return typeof navigator<"u"&&navigator?.product==="ReactNative"}function In(){try{if(mr()&&window.localStorage)return!!localStorage.getItem(bn.BROWSER_LOG_KEY)}catch{return!1}return!1}function Tn(){return typeof process<"u"&&Se&&Se.FEDERATION_DEBUG?!!Se.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:In()}const Nn=function(){return typeof process<"u"&&Se?Se:{}};z.getProcessEnv=Nn;z.isBrowserEnv=mr;z.isBrowserEnvValue=hr;z.isDebugMode=Tn;z.isReactNativeEnv=Rn;var D={};const y=N,ft=z,pr="[ Federation Runtime ]",Mn=(e,t,r=y.SEPARATOR)=>{const n=e.split(r),o=ft.getProcessEnv().NODE_ENV==="development"&&t,s="*",i=a=>a.startsWith("http")||a.includes(y.MANIFEST_EXT);if(n.length>=2){let[a,...c]=n;e.startsWith(r)&&(a=n.slice(0,2).join(r),c=[o||n.slice(2).join(r)]);let l=o||c.join(r);return i(l)?{name:a,entry:l}:{name:a,version:l||s}}else if(n.length===1){const[a]=n;return o&&i(o)?{name:a,entry:o}:{name:a,version:o||s}}else throw`Invalid entry value: ${e}`},Pn=function(...e){return e.length?e.reduce((t,r)=>r?t?`${t}${y.SEPARATOR}${r}`:r:t,""):""},It=function(e,t="",r=!1){try{const n=r?".js":"";return`${t}${e.replace(new RegExp(`${y.NameTransformSymbol.AT}`,"g"),y.NameTransformMap[y.NameTransformSymbol.AT]).replace(new RegExp(`${y.NameTransformSymbol.HYPHEN}`,"g"),y.NameTransformMap[y.NameTransformSymbol.HYPHEN]).replace(new RegExp(`${y.NameTransformSymbol.SLASH}`,"g"),y.NameTransformMap[y.NameTransformSymbol.SLASH])}${n}`}catch(n){throw n}},vn=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.AT]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.AT]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.SLASH]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.SLASH]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.HYPHEN]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(n){throw n}},An=(e,t)=>{if(!e)return"";let r=e;return r==="."&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),It(r,"__federation_expose_",t)},On=(e,t)=>e?It(e,"__federation_shared_",t):"",$n=(e,t)=>{if("getPublicPath"in e){let r;return e.getPublicPath.startsWith("function")?r=new Function("return "+e.getPublicPath)()():r=new Function(e.getPublicPath)(),`${r}${t}`}else return"publicPath"in e?!ft.isBrowserEnv()&&!ft.isReactNativeEnv()&&"ssrPublicPath"in e&&typeof e.ssrPublicPath=="string"?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},kn=(e,t)=>{e||_r(t)},_r=e=>{throw new Error(`${pr}: ${e}`)},Fn=e=>{console.warn(`${pr}: ${e}`)};function wn(e){try{return JSON.stringify(e,null,2)}catch{return""}}const Ln=/^([\d^=v<>~]|[*xX]$)/;function Dn(e){return Ln.test(e)}D.assert=kn;D.composeKeyWithSeparator=Pn;D.decodeName=vn;D.encodeName=It;D.error=_r;D.generateExposeFilename=An;D.generateShareFilename=On;D.getResourceUrl=$n;D.isRequiredVersion=Dn;D.parseEntry=Mn;D.safeToString=wn;D.warn=Fn;var ce={};const ge=N,Z=(e,t)=>{if(!e)return t;const n=(o=>{if(o===".")return"";if(o.startsWith("./"))return o.replace("./","");if(o.startsWith("/")){const s=o.slice(1);return s.endsWith("/")?s.slice(0,-1):s}return o})(e);return n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t};function gr(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Hn(e,t={}){const{remotes:r={},overrides:n={},version:o}=t;let s;const i=()=>"publicPath"in e.metaData?(e.metaData.publicPath==="auto"||e.metaData.publicPath==="")&&o?gr(o):e.metaData.publicPath:e.metaData.getPublicPath,a=Object.keys(n);let c={};Object.keys(r).length||(c=e.remotes?.reduce((_,M)=>{let $;const A=M.federationContainerName;return a.includes(A)?$=n[A]:"version"in M?$=M.version:$=M.entry,_[A]={matchedVersion:$},_},{})||{}),Object.keys(r).forEach(_=>c[_]={matchedVersion:a.includes(_)?n[_]:r[_]});const{remoteEntry:{path:l,name:u,type:f},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:h},globalName:m,ssrRemoteEntry:p}=e.metaData,{exposes:E}=e;let g={version:o||"",buildVersion:h,globalName:m,remoteEntry:Z(l,u),remoteEntryType:f,remoteTypes:Z(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,shared:e?.shared.map(_=>({assets:_.assets,sharedName:_.name,version:_.version,usedExports:_.referenceExports||[]})),modules:E?.map(_=>({moduleName:_.name,modulePath:_.path,assets:_.assets}))};if(e.metaData?.prefetchInterface){const _=e.metaData.prefetchInterface;g={...g,prefetchInterface:_}}if(e.metaData?.prefetchEntry){const{path:_,name:M,type:$}=e.metaData.prefetchEntry;g={...g,prefetchEntry:Z(_,M),prefetchEntryType:$}}if("publicPath"in e.metaData?(s={...g,publicPath:i()},typeof e.metaData.ssrPublicPath=="string"&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...g,getPublicPath:i()},p){const _=Z(p.path,p.name);s.ssrRemoteEntry=_,s.ssrRemoteEntryType=p.type||"commonjs-module"}return s}function Cn(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(ge.MANIFEST_EXT))}function qn(e){if(!e)return{statsFileName:ge.StatsFileName,manifestFileName:ge.ManifestFileName};let t=typeof e=="boolean"?"":e.filePath||"",r=typeof e=="boolean"?"":e.fileName||"";const n=".json",o=a=>a.endsWith(n)?a:`${a}${n}`,s=(a,c)=>a.replace(n,`${c}${n}`),i=r?o(r):ge.ManifestFileName;return{statsFileName:Z(t,r?s(i,"-stats"):ge.StatsFileName),manifestFileName:Z(t,i)}}ce.generateSnapshotFromManifest=Hn;ce.getManifestFileName=qn;ce.inferAutoPublicPath=gr;ce.isManifestProvider=Cn;ce.simpleJoinRemoteEntry=Z;var ue={};const $t=z,Er="[ Module Federation ]",pe=console,Gn=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Un(){try{const e=new Error().stack;if(!e)return;const[,...t]=e.split(`
2
+ `),r=t.filter(n=>!Gn.some(o=>n.includes(o)));return r.length?`Stack trace:
3
+ ${r.slice(0,5).join(`
4
+ `)}`:void 0}catch{return}}var yr=class{constructor(e,t=pe){this.prefix=e,this.delegate=t??pe}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??pe}emit(e,t){const r=this.delegate,n=$t.isDebugMode()?Un():void 0,o=n?[...t,n]: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 i of s){const a=r[i];if(typeof a=="function"){a.call(r,this.prefix,...o);return}}for(const i of s){const a=pe[i];if(typeof a=="function"){a.call(pe,this.prefix,...o);return}}}log(...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){$t.isDebugMode()&&this.emit("debug",e)}};function Sr(e){return new yr(e)}function br(e){const t=new yr(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Wn(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{const n=t.getInfrastructureLogger(r);n&&typeof n=="object"&&(typeof n.log=="function"||typeof n.info=="function"||typeof n.warn=="function"||typeof n.error=="function")&&e.setDelegate(n)}catch{e.setDelegate(void 0)}}const Bn=Sr(Er),jn=br(Er);ue.bindLoggerToCompiler=Wn;ue.createInfrastructureLogger=br;ue.createLogger=Sr;ue.infrastructureLogger=jn;ue.logger=Bn;var fe={};const Vn=D;async function Tt(e,t){try{return await e()}catch(r){!t&&Vn.warn(r);return}}function Ge(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function Rr(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let l=0;l<s.length;l++){const u=s[l],f=u.getAttribute("src");if(f&&Ge(f,e.url)){t=u,r=!1;break}}if(!t){const l=e.attrs;t=document.createElement("script"),t.type=l?.type==="module"?"module":"text/javascript";let u;e.createScriptHook&&(u=e.createScriptHook(e.url,e.attrs),u instanceof HTMLScriptElement?t=u:typeof u=="object"&&("script"in u&&u.script&&(t=u.script),"timeout"in u&&u.timeout&&(n=u.timeout))),t.src||(t.src=e.url),l&&!u&&Object.keys(l).forEach(f=>{t&&(f==="async"||f==="defer"?t[f]=l[f]:t.getAttribute(f)||t.setAttribute(f,l[f]))})}let i=null;const a=typeof window<"u"?l=>{if(l.filename&&Ge(l.filename,e.url)){const u=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${l.message} (${l.filename}:${l.lineno}:${l.colno})`);u.name="ScriptExecutionError",i=u}}:null;a&&window.addEventListener("error",a);const c=async(l,u)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const f=()=>{if(u?.type==="error"){const d=new Error(`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);d.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(d)}else i?e?.onErrorCallback&&e?.onErrorCallback(i):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,Tt(()=>{const{needDeleteScript:d=!0}=e;d&&t?.parentNode&&t.parentNode.removeChild(t)}),l&&typeof l=="function")){const d=l(u);if(d instanceof Promise){const h=await d;return f(),h}return f(),d}f()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),o=setTimeout(()=>{c(null,new Error(`Remote script "${e.url}" time-outed.`))},n),{script:t,needAttach:r}}function xn(e){let t=null,r=!0;const n=document.getElementsByTagName("link");for(let s=0;s<n.length;s++){const i=n[s],a=i.getAttribute("href"),c=i.getAttribute("rel");if(a&&Ge(a,e.url)&&c===e.attrs.rel){t=i,r=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);let s;const i=e.attrs;e.createLinkHook&&(s=e.createLinkHook(e.url,i),s instanceof HTMLLinkElement&&(t=s)),i&&!s&&Object.keys(i).forEach(a=>{t&&!t.getAttribute(a)&&t.setAttribute(a,i[a])})}const o=(s,i)=>{const a=()=>{i?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(i):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,Tt(()=>{const{needDeleteLink:c=!0}=e;c&&t?.parentNode&&t.parentNode.removeChild(t)}),s)){const c=s(i);return a(),c}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function Xn(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=Rr({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}fe.createLink=xn;fe.createScript=Rr;fe.isStaticResourcesEqual=Ge;fe.loadScript=Xn;fe.safeWrapper=Tt;var Nt={};const Kn=(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Yn=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};Nt.createScriptNode=Kn;Nt.loadScriptNode=Yn;var Ir={};function zn(e,t,r){return function(n){if(n===!1)return!1;if(typeof n>"u")return e?t:!1;if(n===!0)return t;if(n&&typeof n=="object")return{...t,...n};throw new Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}Ir.normalizeOptions=zn;var Tr={};const Jn=e=>e;Tr.createModuleFederationConfig=Jn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N,r=ar,n=lr,o=cr,s=ur,i=fr,a=dr,c=z,l=D,u=ce,f=ue,d=fe,h=Nt,m=Ir,p=Tr;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=l.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=l.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return i.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return r.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return n.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=f.createInfrastructureLogger,e.createLink=d.createLink,e.createLogger=f.createLogger,e.createModuleFederationConfig=p.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=h.createScriptNode,e.decodeName=l.decodeName,e.encodeName=l.encodeName,e.error=l.error,e.generateExposeFilename=l.generateExposeFilename,e.generateShareFilename=l.generateShareFilename,e.generateSnapshotFromManifest=u.generateSnapshotFromManifest,e.getManifestFileName=u.getManifestFileName,e.getProcessEnv=c.getProcessEnv,e.getResourceUrl=l.getResourceUrl,e.inferAutoPublicPath=u.inferAutoPublicPath,e.infrastructureLogger=f.infrastructureLogger,e.isBrowserEnv=c.isBrowserEnv,e.isBrowserEnvValue=c.isBrowserEnvValue,e.isDebugMode=c.isDebugMode,e.isManifestProvider=u.isManifestProvider,e.isReactNativeEnv=c.isReactNativeEnv,e.isRequiredVersion=l.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 o.ModuleFederationPlugin_exports}}),e.normalizeOptions=m.normalizeOptions,e.parseEntry=l.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return a.ProvideSharedPlugin_exports}}),e.safeToString=l.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=u.simpleJoinRemoteEntry,e.warn=l.warn})(L);var Nr={},Mt={};const Zn=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,Qn=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(Zn(e)),n&&o.push(`Original Error Message:
5
+ ${n}`),o.join(`
6
+ `)};Mt.getShortErrorMsg=Qn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mt;function r(n,o,s,i,a,c){return i(t.getShortErrorMsg(n,o,s,a))}e.logAndReport=r})(Nr);let eo=L,to=Nr;const Q="[ Federation Runtime ]",dt=(0,eo.createLogger)(Q);function ro(e,t,r,n,o){e||(r!==void 0?ht(t,r,n,void 0,o):ht(t))}function ht(e,t,r,n,o){if(t!==void 0)return(0,to.logAndReport)(e,t,r??{},i=>{throw new Error(`${Q}: ${i}`)},n,o);const s=e;throw s instanceof Error?(s.message.startsWith(Q)||(s.message=`${Q}: ${s.message}`),s):new Error(`${Q}: ${s}`)}function no(e){e instanceof Error&&(e.message.startsWith(Q)||(e.message=`${Q}: ${e.message}`)),dt.warn(e)}T.assert=ro;T.error=ht;T.logger=dt;T.warn=no;var R={};const oo=T;let kt=L;function so(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function io(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function ao(e){return typeof e.entry<"u"}function lo(e){return!e.entry.includes(".json")}async function co(e,t){try{return await e()}catch(r){!t&&oo.warn(r);return}}function uo(e){return e&&typeof e=="object"}const Mr=Object.prototype.toString;function fo(e){return Mr.call(e)==="[object Object]"}function ho(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function mo(e){return Array.isArray(e)?e:[e]}function po(e){const t={url:"",type:"global",globalName:""};return kt.isBrowserEnvValue||(0,kt.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}const _o=(e,t)=>{let r;return e.endsWith("/")?r=e.slice(0,-1):r=e,t.startsWith(".")&&(t=t.slice(1)),r=r+t,r};R.addUniqueItem=so;R.arrayOptions=mo;R.getFMId=io;R.getRemoteEntryInfoFromSnapshot=po;R.isObject=uo;R.isPlainObject=fo;R.isPureRemoteEntry=lo;R.isRemoteInfoWithEntry=ao;R.isStaticResourcesEqual=ho;R.objectToString=Mr;R.processModuleAlias=_o;R.safeWrapper=co;var S={};const Pr=T,mt=R;let go=L;const v=typeof globalThis=="object"?globalThis:window,H=(()=>{try{return document.defaultView}catch{return v}})(),Eo=H;function De(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function He(e,t){return Object.hasOwnProperty.call(e,t)}He(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||De(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const pt=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function vr(e){He(e,"__VMOK__")&&!He(e,"__FEDERATION__")&&De(e,"__FEDERATION__",e.__VMOK__),He(e,"__FEDERATION__")||(De(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),De(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}vr(v);vr(H);function yo(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(pt).forEach(e=>{delete pt[e]})}function So(e){v.__FEDERATION__.__INSTANCES__.push(e)}function bo(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ro(e,t=(0,go.isDebugMode)()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.2.3")}function _t(e,t){if(typeof t=="string"){if(e[t])return{value:e[t],key:t};{const r=Object.keys(e);for(const n of r){const[o,s]=n.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}}else Pr.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const Io=()=>H.__FEDERATION__.moduleInfo,Ar=(e,t)=>{const r=_t(t,mt.getFMId(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){const{version:n,...o}=e,s=mt.getFMId(o),i=_t(H.__FEDERATION__.moduleInfo,s).value;if(i?.version===n)return i}},To=e=>Ar(e,H.__FEDERATION__.moduleInfo),No=(e,t)=>{const r=mt.getFMId(e);return H.__FEDERATION__.moduleInfo[r]=t,H.__FEDERATION__.moduleInfo},Mo=e=>(H.__FEDERATION__.moduleInfo={...H.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete H.__FEDERATION__.moduleInfo[r]}),Po=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:v[r]}},vo=e=>{const{__GLOBAL_PLUGIN__:t}=H.__FEDERATION__;e.forEach(r=>{t.findIndex(n=>n.name===r.name)===-1?t.push(r):Pr.warn(`The plugin ${r.name} has been registered.`)})},Ao=()=>H.__FEDERATION__.__GLOBAL_PLUGIN__,Oo=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),$o=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);S.CurrentGlobal=v;S.Global=Eo;S.addGlobalSnapshot=Mo;S.getGlobalFederationConstructor=bo;S.getGlobalHostPlugins=Ao;S.getGlobalSnapshot=Io;S.getGlobalSnapshotInfoByModuleInfo=To;S.getInfoWithoutType=_t;S.getPreloaded=Oo;S.getRemoteEntryExports=Po;S.getTargetSnapshotInfoByModuleInfo=Ar;S.globalLoading=pt;S.nativeGlobal=H;S.registerGlobalPlugins=vo;S.resetFederationGlobalInfo=yo;S.setGlobalFederationConstructor=Ro;S.setGlobalFederationInstance=So;S.setGlobalSnapshotInfoByModuleInfo=No;S.setPreloaded=$o;var Pt={},re={},U={};const Ft="[0-9A-Za-z-]+",vt=`(?:\\+(${Ft}(?:\\.${Ft})*))`,be="0|[1-9]\\d*",Ce="[0-9]+",Or="\\d*[a-zA-Z-][a-zA-Z0-9-]*",wt=`(?:${Ce}|${Or})`,ko=`(?:-?(${wt}(?:\\.${wt})*))`,Lt=`(?:${be}|${Or})`,$r=`(?:-(${Lt}(?:\\.${Lt})*))`,Ye=`${be}|x|X|\\*`,le=`[v=\\s]*(${Ye})(?:\\.(${Ye})(?:\\.(${Ye})(?:${$r})?${vt}?)?)?`,Fo=`^\\s*(${le})\\s+-\\s+(${le})\\s*$`,wo=`[v=\\s]*${`(${Ce})\\.(${Ce})\\.(${Ce})`}${ko}?${vt}?`,At="((?:<|>)?=?)",Lo=`(\\s*)${At}\\s*(${wo}|${le})`,kr="(?:~>?)",Do=`(\\s*)${kr}\\s+`,Fr="(?:\\^)",Ho=`(\\s*)${Fr}\\s+`,Co="(<|>)?=?\\s*\\*",qo=`^${Fr}${le}$`,Go=`v?${`(${be})\\.(${be})\\.(${be})`}${$r}?${vt}?`,Uo=`^${kr}${le}$`,Wo=`^${At}\\s*${le}$`,Bo=`^${At}\\s*(${Go})$|^$`,jo="^\\s*>=\\s*0.0.0\\s*$";U.caret=qo;U.caretTrim=Ho;U.comparator=Bo;U.comparatorTrim=Lo;U.gte0=jo;U.hyphenRange=Fo;U.star=Co;U.tilde=Uo;U.tildeTrim=Do;U.xRange=Wo;const Vo=U;function wr(e){return new RegExp(e)}function xo(e){return!e||e.toLowerCase()==="x"||e==="*"}function Xo(...e){return t=>e.reduce((r,n)=>n(r),t)}function Ko(e){return e.match(wr(Vo.comparator))}function Yo(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}re.combineVersion=Yo;re.extractComparator=Ko;re.isXVersion=xo;re.parseRegex=wr;re.pipe=Xo;var j={};const x=U,b=re;function zo(e){return e.replace(b.parseRegex(x.hyphenRange),(t,r,n,o,s,i,a,c,l,u,f,d)=>(b.isXVersion(n)?r="":b.isXVersion(o)?r=`>=${n}.0.0`:b.isXVersion(s)?r=`>=${n}.${o}.0`:r=`>=${r}`,b.isXVersion(l)?c="":b.isXVersion(u)?c=`<${Number(l)+1}.0.0-0`:b.isXVersion(f)?c=`<${l}.${Number(u)+1}.0-0`:d?c=`<=${l}.${u}.${f}-${d}`:c=`<=${c}`,`${r} ${c}`.trim()))}function Jo(e){return e.replace(b.parseRegex(x.comparatorTrim),"$1$2$3")}function Zo(e){return e.replace(b.parseRegex(x.tildeTrim),"$1~")}function Qo(e){return e.replace(b.parseRegex(x.caretTrim),"$1^")}function es(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(x.caret),(r,n,o,s,i)=>b.isXVersion(n)?"":b.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:b.isXVersion(s)?n==="0"?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.0 <${Number(n)+1}.0.0-0`:i?n==="0"?o==="0"?`>=${n}.${o}.${s}-${i} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s}-${i} <${Number(n)+1}.0.0-0`:n==="0"?o==="0"?`>=${n}.${o}.${s} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${Number(n)+1}.0.0-0`)).join(" ")}function ts(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(x.tilde),(r,n,o,s,i)=>b.isXVersion(n)?"":b.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:b.isXVersion(s)?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:i?`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`)).join(" ")}function rs(e){return e.split(/\s+/).map(t=>t.trim().replace(b.parseRegex(x.xRange),(r,n,o,s,i,a)=>{const c=b.isXVersion(o),l=c||b.isXVersion(s),u=l||b.isXVersion(i);return n==="="&&u&&(n=""),a="",c?n===">"||n==="<"?"<0.0.0-0":"*":n&&u?(l&&(s=0),i=0,n===">"?(n=">=",l?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",l?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):l?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:u?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function ns(e){return e.trim().replace(b.parseRegex(x.star),"")}function os(e){return e.trim().replace(b.parseRegex(x.gte0),"")}j.parseCaretTrim=Qo;j.parseCarets=es;j.parseComparatorTrim=Jo;j.parseGTE0=os;j.parseHyphen=zo;j.parseStar=ns;j.parseTildeTrim=Zo;j.parseTildes=ts;j.parseXRanges=rs;var Lr={};function qe(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function ss(e,t){const{preRelease:r}=e,{preRelease:n}=t;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,s=r.length;o<=s;o++){const i=r[o],a=n[o];if(i!==a)return i===void 0&&a===void 0?0:i?a?qe(i,a):-1:1}return 0}function $e(e,t){return qe(e.major,t.major)||qe(e.minor,t.minor)||qe(e.patch,t.patch)||ss(e,t)}function ze(e,t){return e.version===t.version}function is(e,t){switch(e.operator){case"":case"=":return ze(e,t);case">":return $e(e,t)<0;case">=":return ze(e,t)||$e(e,t)<0;case"<":return $e(e,t)>0;case"<=":return ze(e,t)||$e(e,t)>0;case void 0:return!0;default:return!1}}Lr.compare=is;const ie=re,V=j,as=Lr;function ls(e){return ie.pipe(V.parseCarets,V.parseTildes,V.parseXRanges,V.parseStar)(e)}function cs(e){return ie.pipe(V.parseHyphen,V.parseComparatorTrim,V.parseTildeTrim,V.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function us(e,t){if(!e)return!1;const r=ie.extractComparator(e);if(!r)return!1;const[,n,,o,s,i,a]=r,c={operator:n,version:ie.combineVersion(o,s,i,a),major:o,minor:s,patch:i,preRelease:a?.split(".")},l=t.split("||");for(const u of l){const f=u.trim();if(!f||f==="*"||f==="x")return!0;try{const d=cs(f);if(!d.trim())return!0;const h=d.split(" ").map(E=>ls(E)).join(" ");if(!h.trim())return!0;const m=h.split(/\s+/).map(E=>V.parseGTE0(E)).filter(Boolean);if(m.length===0)continue;let p=!0;for(const E of m){const g=ie.extractComparator(E);if(!g){p=!1;break}const[,_,,M,$,A,I]=g;if(!as.compare({operator:_,version:ie.combineVersion(M,$,A,I),major:M,minor:$,patch:A,preRelease:I?.split(".")},c)){p=!1;break}}if(p)return!0}catch(d){console.error(`[semver] Error processing range part "${f}":`,d);continue}}return!1}Pt.satisfy=us;var C={},ne={};const fs="default",ds="global";ne.DEFAULT_REMOTE_TYPE=ds;ne.DEFAULT_SCOPE=fs;const Ue=T,Dr=R,Hr=S,hs=ne,Ee=Pt;let gt=L;function ms(e,t,r,n){let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{Ue.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&Ue.error(`Invalid shared config for "${r}" 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:o,loaded:e?.loaded||"lib"in e?!0:void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??gt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function ps(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const c=Dr.arrayOptions(r[a]);return i[a]=i[a]||[],c.forEach(l=>{i[a].push(ms(l,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(c=>c.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function Re(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===gt.TreeShakingStatus.NO_USE?!1:r===gt.TreeShakingStatus.CALCULATED?!0:n==="runtime-infer"?t?gs(e,t):!0:!1}function ee(e,t){const r=n=>{if(!Number.isNaN(Number(n))){const o=n.split(".");let s=n;for(let i=0;i<3-o.length;i++)s+=".0";return s}return n};return!!Ee.satisfy(r(e),`<=${r(t)}`)}const Ie=(e,t)=>{const r=t||function(n,o){return ee(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},We=e=>!!e.loaded||typeof e.lib=="function",_s=e=>!!e.loading,gs=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function Es(e,t,r,n){const o=e[t][r];let s="",i=Re(n);const a=function(c,l){return i?o[c].treeShaking?o[l].treeShaking?!We(o[c].treeShaking)&&ee(c,l):!1:!0:!We(o[c])&&ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}const oe=e=>We(e)||_s(e);function ys(e,t,r,n){const o=e[t][r];let s="",i=Re(n);const a=function(c,l){if(i){if(!o[c].treeShaking)return!0;if(!o[l].treeShaking)return!1;if(oe(o[l].treeShaking))return oe(o[c].treeShaking)?!!ee(c,l):!0;if(oe(o[c].treeShaking))return!1}return oe(o[l])?oe(o[c])?!!ee(c,l):!0:oe(o[c])?!1:ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}function Ss(e){return e==="loaded-first"?ys:Es}function bs(e,t,r,n){if(!e)return;const{shareConfig:o,scope:s=hs.DEFAULT_SCOPE,strategy:i,treeShaking:a}=r,c=Array.isArray(s)?s:[s];for(const l of c)if(o&&e[l]&&e[l][t]){const{requiredVersion:u}=o,{version:f,useTreesShaking:d}=Ss(i)(e,l,t,a),h=()=>{const p=e[l][t][f];if(o.singleton){if(typeof u=="string"&&!Ee.satisfy(f,u)){const E=`Version ${f} from ${f&&p.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;o.strictVersion?Ue.error(E):Ue.warn(E)}return{shared:p,useTreesShaking:d}}else{if(u===!1||u==="*")return{shared:p,useTreesShaking:d};if(Ee.satisfy(f,u))return{shared:p,useTreesShaking:d};const E=Re(a);if(E){for(const[g,_]of Object.entries(e[l][t]))if(Re(_.treeShaking,a?.usedExports)&&Ee.satisfy(g,u))return{shared:_,useTreesShaking:E}}for(const[g,_]of Object.entries(e[l][t]))if(Ee.satisfy(g,u))return{shared:_,useTreesShaking:!1}}},m={shareScopeMap:e,scope:l,pkgName:t,version:f,GlobalFederation:Hr.Global.__FEDERATION__,shareInfo:r,resolver:h};return(n.emit(m)||m).resolver()}}function Rs(){return Hr.Global.__FEDERATION__.__SHARE__}function Is(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=c=>{if(!c)return;const l={};return c.forEach(f=>{l[f.version]=f}),l[Ie(l,function(f,d){return!We(l[f])&&ee(f,d)})]},s=r?.resolver??o,i=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),a=(...c)=>{const l={};for(const u of c)if(u)for(const[f,d]of Object.entries(u)){const h=l[f];i(h)&&i(d)?l[f]=a(h,d):d!==void 0&&(l[f]=d)}return l};return a(s(n[t]),r?.customShareInfo)}const Ts=(e,t)=>{e.useIn||(e.useIn=[]),Dr.addUniqueItem(e.useIn,t)};function Ns(e,t){return t&&e.treeShaking?e.treeShaking:e}C.addUseIn=Ts;C.directShare=Ns;C.formatShareConfigs=ps;C.getGlobalShareScope=Rs;C.getRegisteredShare=bs;C.getTargetSharedOptions=Is;C.shouldUseTreeShaking=Re;var de={};function Ms(e,t){for(const r of e){const n=t.startsWith(r.name);let o=t.replace(r.name,"");if(n){if(o.startsWith("/")){const a=r.name;return o=`.${o}`,{pkgNameOrAlias:a,expose:o,remote:r}}else if(o==="")return{pkgNameOrAlias:r.name,expose:".",remote:r}}const s=r.alias&&t.startsWith(r.alias);let i=r.alias&&t.replace(r.alias,"");if(r.alias&&s){if(i&&i.startsWith("/")){const a=r.alias;return i=`.${i}`,{pkgNameOrAlias:a,expose:i,remote:r}}else if(i==="")return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function Ps(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}de.matchRemote=Ps;de.matchRemoteWithNameAndExpose=Ms;var X={},K={},k={};const vs="RUNTIME-001",As="RUNTIME-002",Os="RUNTIME-003",$s="RUNTIME-004",ks="RUNTIME-005",Fs="RUNTIME-006",ws="RUNTIME-007",Ls="RUNTIME-008",Ds="RUNTIME-009",Hs="RUNTIME-010",Cs="RUNTIME-011",qs="TYPE-001",Gs="BUILD-001",Us="BUILD-002";k.BUILD_001=Gs;k.BUILD_002=Us;k.RUNTIME_001=vs;k.RUNTIME_002=As;k.RUNTIME_003=Os;k.RUNTIME_004=$s;k.RUNTIME_005=ks;k.RUNTIME_006=Fs;k.RUNTIME_007=ws;k.RUNTIME_008=Ls;k.RUNTIME_009=Ds;k.RUNTIME_010=Hs;k.RUNTIME_011=Cs;k.TYPE_001=qs;var Me={};const w=k,Cr={[w.RUNTIME_001]:"Failed to get remoteEntry exports.",[w.RUNTIME_002]:'The remote entry interface does not contain "init"',[w.RUNTIME_003]:"Failed to get manifest.",[w.RUNTIME_004]:"Failed to locate remote.",[w.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[w.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[w.RUNTIME_007]:"Failed to get remote snapshot.",[w.RUNTIME_008]:"Failed to load script resources.",[w.RUNTIME_009]:"Please call createInstance first.",[w.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.',[w.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot."},qr={[w.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},Gr={[w.BUILD_001]:"Failed to find expose module.",[w.BUILD_002]:"PublicPath is required in prod mode."},Ws={...Cr,...qr,...Gr};Me.buildDescMap=Gr;Me.errorDescMap=Ws;Me.runtimeDescMap=Cr;Me.typeDescMap=qr;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k,r=Mt,n=Me;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.TYPE_001=t.TYPE_001,e.buildDescMap=n.buildDescMap,e.errorDescMap=n.errorDescMap,e.getShortErrorMsg=r.getShortErrorMsg,e.runtimeDescMap=n.runtimeDescMap,e.typeDescMap=n.typeDescMap})(K);const je=T,ae=S,Dt=ne;let Ur=L,Te=K;const Wr=".then(callbacks[0]).catch(callbacks[1])";async function Bs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${e}")${Wr}`)([r,n]):import(e).then(r).catch(n)}catch(o){je.error(`Failed to load ESM entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}async function js({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof __system_context__>"u"?System.import(e).then(r).catch(n):new Function("callbacks",`System.import("${e}")${Wr}`)([r,n])}catch(o){je.error(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function Vs(e,t,r){const{remoteEntryKey:n,entryExports:o}=ae.getRemoteEntryExports(e,t);return o||je.error(Te.RUNTIME_001,Te.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function xs({name:e,globalName:t,entry:r,loaderHook:n,getEntryUrl:o}){const{entryExports:s}=ae.getRemoteEntryExports(e,t);if(s)return s;const i=o?o(r):r;return(0,Ur.loadScript)(i,{attrs:{},createScriptHook:(a,c)=>{const l=n.lifecycle.createScript.emit({url:a,attrs:c});if(l&&(l instanceof HTMLScriptElement||"script"in l||"timeout"in l))return l}}).then(()=>Vs(e,t,r),a=>{const c=a instanceof Error?a.message:String(a);je.error(Te.RUNTIME_008,Te.runtimeDescMap,{remoteName:e,resourceUrl:i},c)})}async function Xs({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:n}){const{entry:o,entryGlobalName:s,name:i,type:a}=e;switch(a){case"esm":case"module":return Bs({entry:o,remoteEntryExports:t});case"system":return js({entry:o,remoteEntryExports:t});default:return xs({entry:o,globalName:s,name:i,loaderHook:r,getEntryUrl:n})}}function Et(e){const{entry:t,name:r}=e;return(0,Ur.composeKeyWithSeparator)(r,t)}async function Br(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:s=!1}=e,i=Et(n);if(r)return r;if(!ae.globalLoading[i]){const a=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;ae.globalLoading[i]=a.emit({loaderHook:c,remoteInfo:n,remoteEntryExports:r}).then(l=>l||Xs({remoteInfo:n,remoteEntryExports:r,loaderHook:c,getEntryUrl:o})).catch(async l=>{const u=Et(n),f=l instanceof Error&&l.message.includes("ScriptExecutionError");if(l instanceof Error&&l.message.includes(Te.RUNTIME_008)&&!f&&!s){const d=m=>Br({...m,_inErrorHandling:!0}),h=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:d,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:ae.globalLoading,uniqueKey:u});if(h)return h}throw l})}return ae.globalLoading[i]}function Ks(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Dt.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Dt.DEFAULT_SCOPE}}X.getRemoteEntry=Br;X.getRemoteEntryUniqueKey=Et;X.getRemoteInfo=Ks;var jr={};function Ys(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}jr.getBuilderId=Ys;var Vr={};const zs=S;function Js(e,t){const r=zs.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(o=>{e?.find(s=>s.name!==o.name)&&e.push(o)}),e&&e.length>0&&e.forEach(o=>{n.forEach(s=>{s.applyPlugin(o,t)})}),e}Vr.registerPlugins=Js;var Pe={};function Zs(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}}function Qs(e){const t={};for(const[r,n]of Object.entries(e.shared)){const o=n[0];o&&(t[r]={version:o.version,singleton:o.shareConfig?.singleton,requiredVersion:o.shareConfig?.requiredVersion===!1?!1:o.shareConfig?.requiredVersion,eager:o.eager,strictVersion:o.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(Zs)??[],shared:t}}}Pe.optionsToMFContext=Qs;var xr={},J={};const ei=T,ti=de,Ht=X;let ye=L;function Xr(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ri(e,t){return t.map(r=>{const n=ti.matchRemote(e,r.nameOrAlias);return ei.assert(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&(0,ye.safeToString)({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:Xr(r)}})}function ni(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function oi(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:i}=r;if(t.options.inBrowser){if(i.forEach(a=>{const{moduleInfo:c}=a,l=t.moduleCache.get(e.name);l?Ht.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:l.remoteEntryExports}):Ht.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:void 0})}),n){const a={rel:"preload",as:"style"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(l)})}else{const a={rel:"stylesheet",type:"text/css"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h},needDeleteLink:!1});u&&document.head.appendChild(l)})}if(n){const a={rel:"preload",as:"script"};s.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(l)})}else{const a={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};s.forEach(c=>{const{script:l,needAttach:u}=(0,ye.createScript)({url:c,cb:()=>{},attrs:a,createScriptHook:(f,d)=>{const h=t.loaderHook.lifecycle.createScript.emit({url:f,attrs:d});if(h instanceof HTMLScriptElement)return h},needDeleteScript:!0});u&&document.head.appendChild(l)})}}}J.defaultPreloadArgs=Xr;J.formatPreloadArgs=ri;J.normalizePreloadExposes=ni;J.preloadAssets=oi;const O=S,Ct=C,si=de,ii=X,ai=J,li={getRegisteredShare:Ct.getRegisteredShare,getGlobalShareScope:Ct.getGlobalShareScope},ci={Global:O.Global,nativeGlobal:O.nativeGlobal,resetFederationGlobalInfo:O.resetFederationGlobalInfo,setGlobalFederationInstance:O.setGlobalFederationInstance,getGlobalFederationConstructor:O.getGlobalFederationConstructor,setGlobalFederationConstructor:O.setGlobalFederationConstructor,getInfoWithoutType:O.getInfoWithoutType,getGlobalSnapshot:O.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:O.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:O.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:O.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:O.addGlobalSnapshot,getRemoteEntryExports:O.getRemoteEntryExports,registerGlobalPlugins:O.registerGlobalPlugins,getGlobalHostPlugins:O.getGlobalHostPlugins,getPreloaded:O.getPreloaded,setPreloaded:O.setPreloaded};var ui={global:ci,share:li,utils:{matchRemoteWithNameAndExpose:si.matchRemoteWithNameAndExpose,preloadAssets:ai.preloadAssets,getRemoteInfo:ii.getRemoteInfo}};xr.default=ui;var Ve={};const Je=T,qt=R,fi=X,di=Pe;let hi=L,Gt=K;function mi(e,t,r){const n=t,o=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];o.length||o.push("default"),o.forEach(i=>{n[i]||(n[i]={})});const s={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?o:e.shareScope||"default"};return Object.defineProperty(s,"shareScopeMap",{value:n,enumerable:!1}),{remoteEntryInitOptions:s,shareScope:n[o[0]],initScope:r??[]}}var pi=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 fi.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return Je.assert(e,`remoteEntryExports is undefined
7
+ ${(0,hi.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,r){const n=await this.getEntry();if(this.inited)return n;if(this.initPromise)return await this.initPromise,n;this.initing=!0,this.initPromise=(async()=>{const{remoteEntryInitOptions:o,shareScope:s,initScope:i}=mi(this.remoteInfo,this.host.shareScopeMap,r),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:o,initScope:i,remoteInfo:this.remoteInfo,origin:this.host});typeof n?.init>"u"&&Je.error(Gt.RUNTIME_002,Gt.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,di.optionsToMFContext(this.host.options)),await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,r,n){const{loadFactory:o=!0}=r||{loadFactory:!0},s=await this.init(e,n);this.lib=s;let i;i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:s,expose:t,moduleInfo:this.remoteInfo}),i||(i=await s.get(t)),Je.assert(i,`${qt.getFMId(this.remoteInfo)} remote don't export ${t}.`);const a=qt.processModuleAlias(this.remoteInfo.name,t),c=this.wraperFactory(i,a);return o?await c():c}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}};Ve.Module=pi;var Kr={},he={},_i=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){typeof e=="function"&&this.listeners.add(e)}once(e){const t=this;this.on(function r(...n){return t.remove(r),e.apply(null,n)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{t=r(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};he.SyncHook=_i;var ve={};const gi=he;var Ei=class extends gi.SyncHook{emit(...e){let t;const r=Array.from(this.listeners);if(r.length>0){let n=0;const o=s=>s===!1?!1:n<r.length?Promise.resolve(r[n++].apply(null,e)).then(o):s;t=o()}return Promise.resolve(t)}};ve.AsyncHook=Ei;var me={};const Ze=T,Yr=R,yi=he;function zr(e,t){if(!Yr.isObject(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var Si=class extends yi.SyncHook{constructor(e){super(),this.onerror=Ze.error,this.type=e}emit(e){Yr.isObject(e)||Ze.error(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(zr(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){Ze.warn(r),this.onerror(r)}return e}};me.SyncWaterfallHook=Si;me.checkReturnData=zr;var Ae={};const Qe=T,bi=R,Ri=he,Ii=me;var Ti=class extends Ri.SyncHook{constructor(e){super(),this.onerror=Qe.error,this.type=e}emit(e){bi.isObject(e)||Qe.error(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let r=0;const n=s=>(Qe.warn(s),this.onerror(s),e),o=s=>{if(Ii.checkReturnData(e,s)){if(e=s,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(i){return n(i)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}};Ae.AsyncWaterfallHook=Ti;var Oe={};const ke=T,Ni=R;var Mi=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){ke.assert(Ni.isPlainObject(e),"Plugin configuration is invalid.");const r=e.name;ke.assert(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(n=>{const o=e[n];o&&this.lifecycle[n].on(o)}))}removePlugin(e){ke.assert(e,"A name is required.");const t=this.registerPlugins[e];ke.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(t[r])})}};Oe.PluginSystem=Mi;var xe={};const Pi=T,yt=R,vi=J;let Ut=L,Wt=K;function Jr(e,t){const r=yt.getRemoteEntryInfoFromSnapshot(t);r.url||Pi.error(Wt.RUNTIME_011,Wt.runtimeDescMap,{remoteName:e.name});let n=(0,Ut.getResourceUrl)(t,r.url);!Ut.isBrowserEnvValue&&!n.startsWith("http")&&(n=`https:${n}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}function Ai(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!yt.isRemoteInfoWithEntry(t)||!yt.isPureRemoteEntry(t)){const{remoteSnapshot:a,globalSnapshot:c}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i});Jr(s,a);const l={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:l,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:c});return u&&vi.preloadAssets(s,o,u,!1),{...e,remoteSnapshot:a}}return e}}}xe.assignRemoteInfo=Jr;xe.snapshotPlugin=Ai;var Zr={};const Ne=R,St=S,Oi=C,Bt=J,$i=xe;let Be=L;function ki(e){const t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Qr(e,t,r,n,o={},s){const{value:i}=St.getInfoWithoutType(e,Ne.getFMId(t)),a=s||i;if(a&&!(0,Be.isManifestProvider)(a)&&(r(a,t,n),a.remotesInfo)){const c=Object.keys(a.remotesInfo);for(const l of c){if(o[l])continue;o[l]=!0;const u=ki(l),f=a.remotesInfo[l];Qr(e,{name:u.name,version:f.matchedVersion},r,!1,o,void 0)}}}const et=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function Fi(e,t,r,n,o){const s=[],i=[],a=[],c=new Set,l=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:d}=f;if(Qr(n,r,(m,p,E)=>{let g;if(E)g=f;else if(Array.isArray(d)){const I=d.find(F=>F.nameOrAlias===p.name||F.nameOrAlias===p.alias);if(!I)return;g=Bt.defaultPreloadArgs(I)}else if(d===!0)g=f;else return;const _=(0,Be.getResourceUrl)(m,Ne.getRemoteEntryInfoFromSnapshot(m).url);_&&a.push({name:p.name,moduleInfo:{name:p.name,entry:_,type:"remoteEntryType"in m?m.remoteEntryType:"global",entryGlobalName:"globalName"in m?m.globalName:p.name,shareScope:"",version:"version"in m?m.version:void 0},url:_});let M="modules"in m?m.modules:[];const $=Bt.normalizePreloadExposes(g.exposes);$.length&&"modules"in m&&(M=m?.modules?.reduce((I,F)=>($?.indexOf(F.moduleName)!==-1&&I.push(F),I),[]));function A(I){const F=I.map(W=>(0,Be.getResourceUrl)(m,W));return g.filter?F.filter(g.filter):F}if(M){const I=M.length;for(let F=0;F<I;F++){const W=M[F],Ke=`${p.name}/${W.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:W.moduleName==="."?p.name:Ke,name:p.name,remoteSnapshot:m,preloadConfig:g,remote:p,origin:e}),!St.getPreloaded(Ke)&&(g.resourceCategory==="all"?(s.push(...A(W.assets.css.async)),s.push(...A(W.assets.css.sync)),i.push(...A(W.assets.js.async)),i.push(...A(W.assets.js.sync))):g.resourceCategory==="sync"&&(s.push(...A(W.assets.css.sync)),i.push(...A(W.assets.js.sync))),St.setPreloaded(Ke))}}},!0,{},o),o.shared&&o.shared.length>0){const m=(p,E)=>{const{shared:g}=Oi.getRegisteredShare(e.shareScopeMap,E.sharedName,p,e.sharedHandler.hooks.lifecycle.resolveShare)||{};g&&typeof g.lib=="function"&&(E.assets.js.sync.forEach(_=>{c.add(_)}),E.assets.css.sync.forEach(_=>{l.add(_)}))};o.shared.forEach(p=>{const E=u.shared?.[p.sharedName];if(!E)return;const g=p.version?E.find(_=>_.version===p.version):E;g&&Ne.arrayOptions(g).forEach(_=>{m(_,p)})})}const h=i.filter(m=>!c.has(m)&&!et("script",m));return{cssAssets:s.filter(m=>!l.has(m)&&!et("link",m)),jsAssetsWithoutEntry:h,entryAssets:a.filter(m=>!et("script",m.url))}}const wi=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:s,remoteSnapshot:i}=e;return Be.isBrowserEnvValue?Ne.isRemoteInfoWithEntry(o)&&Ne.isPureRemoteEntry(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:($i.assignRemoteInfo(n,i),Fi(t,r,n,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};Zr.generatePreloadAssetsPlugin=wi;var Xe={};const tt=T,Li=R,G=S,jt=Pe,Di=ve,rt=Ae,Hi=Oe;let nt=L,Fe=K;function en(e,t){const r=G.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&G.getInfoWithoutType(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}var Ci=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Hi.PluginSystem({beforeLoadRemoteSnapshot:new Di.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new rt.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new rt.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new rt.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=G.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e});let o=G.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},G.addGlobalSnapshot({[this.HostInstance.options.name]:o})),o&&"remotesInfo"in o&&!G.getInfoWithoutType(o.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(o.remotesInfo={...o?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let u,f;if(c)if((0,nt.isManifestProvider)(c)){const d=nt.isBrowserEnvValue?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",h=await this.getManifestJson(d,e,{}),m=G.setGlobalSnapshotInfoByModuleInfo({...e,entry:d},h);u=h,f=m}else{const{remoteSnapshot:d}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});u=d,f=l}else if(Li.isRemoteInfoWithEntry(e)){const d=await this.getManifestJson(e.entry,e,{}),h=G.setGlobalSnapshotInfoByModuleInfo(e,d),{remoteSnapshot:m}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:d,from:"global"});u=m,f=h}else tt.error(Fe.RUNTIME_007,Fe.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,jt.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:f}}getGlobalRemoteInfo(e){return en(e,this.HostInstance)}async getManifestJson(e,t,r){const n=async()=>{let s=this.manifestCache.get(e);if(s)return s;try{let i=await this.loaderHook.lifecycle.fetch.emit(e,{});(!i||!(i instanceof Response))&&(i=await fetch(e,{})),s=await i.json()}catch(i){s=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),s||(delete this.manifestLoading[e],tt.error(Fe.RUNTIME_003,Fe.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${i}`,jt.optionsToMFContext(this.HostInstance.options)))}return tt.assert(s.metaData&&s.exposes&&s.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!s.metaData&&"metaData",!s.exposes&&"exposes",!s.shared&&"shared"].filter(Boolean).join(", ")}.`),this.manifestCache.set(e,s),s},o=async()=>{const s=await n(),i=(0,nt.generateSnapshotFromManifest)(s,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:s,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=o().then(s=>s)),this.manifestLoading[e]}};Xe.SnapshotHandler=Ci;Xe.getGlobalRemoteInfo=en;var tn={};const ot=T,qi=ne,P=C,Vt=Pe,Gi=ve,st=me,xt=Ae,Ui=Oe;let _e=K;var Wi=class{constructor(e){this.hooks=new Ui.PluginSystem({beforeRegisterShare:new st.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new xt.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new xt.AsyncWaterfallHook("beforeLoadShare"),loadShare:new Gi.AsyncHook,resolveShare:new st.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new st.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){const{newShareInfos:r,allShareInfos:n}=P.formatShareConfigs(e,t);return Object.keys(r).forEach(o=>{r[o].forEach(s=>{s.scope.forEach(i=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:o,shared:s}),this.shareScopeMap[i]?.[o]||this.setShared({pkgName:o,lib:s.lib,get:s.get,loaded:s.loaded||!!s.lib,shared:s,from:t.name})})})}),{newShareInfos:r,allShareInfos:n}}async loadShare(e,t){const{host:r}=this,n=P.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&await Promise.all(n.scope.map(async a=>{await Promise.all(this.initializeSharing(a,{strategy:n.strategy}))}));const{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});ot.assert(o,`Cannot find shared "${e}" in host "${r.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:i}=P.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(s){const a=P.directShare(s,i);if(a.lib)return P.addUseIn(a,r.options.name),a.lib;if(a.loading&&!a.loaded){const c=await a.loading;return a.loaded=!0,a.lib||(a.lib=c),P.addUseIn(a,r.options.name),c}else{const l=(async()=>{const u=await a.get();return P.addUseIn(a,r.options.name),a.loaded=!0,a.lib=u,u})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:l,treeShaking:i?a:void 0}),l}}else{if(t?.customShareInfo)return!1;const a=P.shouldUseTreeShaking(o.treeShaking),c=P.directShare(o,a),u=(async()=>{const f=await c.get();c.lib=f,c.loaded=!0,P.addUseIn(c,r.options.name);const{shared:d,useTreesShaking:h}=P.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(d){const m=P.directShare(d,h);m.lib=f,m.loaded=!0,d.from=o.from}return f})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:u,treeShaking:a?c:void 0}),u}}initializeSharing(e=qi.DEFAULT_SCOPE,t){const{host:r}=this,n=t?.from,o=t?.strategy;let s=t?.initScope;const i=[];if(n!=="build"){const{initTokens:d}=this;s||(s=[]);let h=d[e];if(h||(h=d[e]={from:this.host.name}),s.indexOf(h)>=0)return i;s.push(h)}const a=this.shareScopeMap,c=r.options.name;a[e]||(a[e]={});const l=a[e],u=(d,h)=>{const{version:m,eager:p}=h;l[d]=l[d]||{};const E=l[d],g=E[m]&&P.directShare(E[m]),_=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||g.strategy!=="loaded-first"&&!g.loaded&&(!p!=!_?p:c>E[m].from))&&(E[m]=h)},f=async d=>{const{module:h}=await r.remoteHandler.getRemoteModuleAndOptions({id:d});let m;try{m=await h.getEntry()}catch(p){if(m=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:p,from:"runtime",lifecycle:"beforeLoadShare",origin:r}),!m)return}finally{m?.init&&!h.initing&&(h.remoteEntryExports=m,await h.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(d=>{r.options.shared[d].forEach(h=>{h.scope.includes(e)&&u(d,h)})}),(r.options.shareStrategy==="version-first"||o==="version-first")&&r.options.remotes.forEach(d=>{d.shareScope===e&&i.push(f(d.name))}),i}loadShareSync(e,t){const{host:r}=this,n=P.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&n.scope.forEach(i=>{this.initializeSharing(i,{strategy:n.strategy})});const{shared:o,useTreesShaking:s}=P.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(o){if(typeof o.lib=="function")return P.addUseIn(o,r.options.name),o.loaded||(o.loaded=!0,o.from===r.options.name&&(n.loaded=!0)),o.lib;if(typeof o.get=="function"){const i=o.get();if(!(i instanceof Promise))return P.addUseIn(o,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:i,shared:o}),i}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){const i=n.get();return i instanceof Promise&&ot.error(t?.from==="build"?_e.RUNTIME_005:_e.RUNTIME_006,_e.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Vt.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}ot.error(_e.RUNTIME_006,_e.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Vt.optionsToMFContext(r.options))}initShareScopeMap(e,t,r={}){const{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:o,loaded:s,get:i,treeShaking:a}){const{version:c,scope:l="default",...u}=t,f=Array.isArray(l)?l:[l],d=h=>{const m=(E,g,_)=>{_&&!E[g]&&(E[g]=_)},p=a?h.treeShaking:h;m(p,"loaded",s),m(p,"loading",o),m(p,"get",i)};f.forEach(h=>{this.shareScopeMap[h]||(this.shareScopeMap[h]={}),this.shareScopeMap[h][e]||(this.shareScopeMap[h][e]={}),this.shareScopeMap[h][e][c]||(this.shareScopeMap[h][e][c]={version:c,scope:[h],...u,lib:n});const m=this.shareScopeMap[h][e][c];d(m),r&&m.from!==r&&(m.from=r)})}_setGlobalShareScopeMap(e){const t=P.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}};tn.SharedHandler=Wi;var rn={};const we=T,q=S,Xt=ne,Bi=C,ji=de,it=X,Vi=Pe,Kt=J,xi=Ve,Xi=he,se=ve,Yt=me,Ki=Ae,Yi=Oe,zi=Xe;let at=L,zt=K;var Ji=class{constructor(e){this.hooks=new Yi.PluginSystem({beforeRegisterRemote:new Yt.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Yt.SyncWaterfallHook("registerRemote"),beforeRequest:new Ki.AsyncWaterfallHook("beforeRequest"),onLoad:new se.AsyncHook("onLoad"),handlePreloadModule:new Xi.SyncHook("handlePreloadModule"),errorLoadRemote:new se.AsyncHook("errorLoadRemote"),beforePreloadRemote:new se.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new se.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new se.AsyncHook,loadEntry:new se.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((r,n)=>(this.registerRemote(n,r,{force:!1}),r),e.remotes)}setIdToRemoteMap(e,t){const{remote:r,expose:n}=t,{name:o,alias:s}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},s&&e.startsWith(o)){const i=e.replace(o,s);this.idToRemoteMap[i]={name:r.name,expose:n};return}if(s&&e.startsWith(s)){const i=e.replace(s,o);this.idToRemoteMap[i]={name:r.name,expose:n}}}async loadRemote(e,t){const{host:r}=this;try{const{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:s,remoteMatchInfo:i}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:a,remote:c,expose:l,id:u,remoteSnapshot:f}=i,d=await o.get(u,l,t,f),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:a,expose:l,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:c,options:s,moduleInstance:o,origin:r});return this.setIdToRemoteMap(e,i),typeof h=="function"?h:d}catch(n){const{from:o="runtime"}=t||{from:"runtime"},s=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:o,lifecycle:"onLoad",origin:r});if(!s)throw n;return s}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=Kt.formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async n=>{const{remote:o}=n,s=it.getRemoteInfo(o),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:n,remote:o,remoteInfo:s,globalSnapshot:i,remoteSnapshot:a});c&&Kt.preloadAssets(s,t,c)}))}registerRemotes(e,t){const{host:r}=this;e.forEach(n=>{this.registerRemote(n,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:r}=e;let n;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:t.options,origin:t})}catch(h){if(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:t.options,origin:t,from:"runtime",error:h,lifecycle:"beforeRequest"}),!n)throw h}const{id:o}=n,s=ji.matchRemoteWithNameAndExpose(t.options.remotes,o);s||we.error(zt.RUNTIME_004,zt.runtimeDescMap,{hostName:t.options.name,requestId:o},void 0,Vi.optionsToMFContext(t.options));const{remote:i}=s,a=it.getRemoteInfo(i),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:u}=c;we.assert(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let f=t.moduleCache.get(l.name);const d={host:t,remoteInfo:a};return f||(f=new xi.Module(d),t.moduleCache.set(l.name,f)),{module:f,moduleOptions:d,remoteMatchInfo:c}}registerRemote(e,t,r){const{host:n}=this,o=()=>{if(e.alias){const i=t.find(a=>e.alias&&(a.name.startsWith(e.alias)||a.alias?.startsWith(e.alias)));we.assert(!i,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i&&i.name} name or alias`)}"entry"in e&&at.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Xt.DEFAULT_SCOPE),e.type||(e.type=Xt.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find(i=>i.name===e.name);if(!s)o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n});else{const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,at.warn)(i.join(" ")))}}removeRemote(e){try{const{host:t}=this,{name:r}=e,n=t.options.remotes.findIndex(s=>s.name===r);n!==-1&&t.options.remotes.splice(n,1);const o=t.moduleCache.get(e.name);if(o){const s=o.remoteInfo,i=s.entryGlobalName;q.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(q.CurrentGlobal,i)?.configurable?delete q.CurrentGlobal[i]:q.CurrentGlobal[i]=void 0);const a=it.getRemoteEntryUniqueKey(o.remoteInfo);q.globalLoading[a]&&delete q.globalLoading[a],t.snapshotHandler.manifestCache.delete(s.entry);let c=s.buildVersion?(0,at.composeKeyWithSeparator)(s.name,s.buildVersion):s.name;const l=q.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(f=>s.buildVersion?f.options.id===c:f.name===c);if(l!==-1){const f=q.CurrentGlobal.__FEDERATION__.__INSTANCES__[l];c=f.options.id||c;const d=Bi.getGlobalShareScope();let h=!0;const m=[];Object.keys(d).forEach(p=>{const E=d[p];E&&Object.keys(E).forEach(g=>{const _=E[g];_&&Object.keys(_).forEach(M=>{const $=_[M];$&&Object.keys($).forEach(A=>{const I=$[A];I&&typeof I=="object"&&I.from===s.name&&(I.loaded||I.loading?(I.useIn=I.useIn.filter(F=>F!==s.name),I.useIn.length?h=!1:m.push([p,g,M,A])):m.push([p,g,M,A]))})})})}),h&&(f.shareScopeMap={},delete d[c]),m.forEach(([p,E,g,_])=>{delete d[p]?.[E]?.[g]?.[_]}),q.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}const{hostGlobalSnapshot:u}=zi.getGlobalRemoteInfo(e,t);if(u){const f=u&&"remotesInfo"in u&&u.remotesInfo&&q.getInfoWithoutType(u.remotesInfo,e.name).key;f&&(delete u.remotesInfo[f],q.Global.__FEDERATION__.__MANIFEST_LOADING__[f]&&delete q.Global.__FEDERATION__.__MANIFEST_LOADING__[f])}t.moduleCache.delete(e.name)}}catch(t){we.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};rn.RemoteHandler=Ji;const Zi=T,Qi=ne,ea=C,ta=jr,ra=Vr,na=X,oa=Ve,Y=he,lt=ve,sa=me,Jt=Ae,ct=Oe,ia=xe,aa=Zr,la=Xe,ca=tn,ua=rn;let fa=L,ut=K;const da=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;var ha=class{constructor(e){this.hooks=new ct.PluginSystem({beforeInit:new sa.SyncWaterfallHook("beforeInit"),init:new Y.SyncHook,beforeInitContainer:new Jt.AsyncWaterfallHook("beforeInitContainer"),initContainer:new Jt.AsyncWaterfallHook("initContainer")}),this.version="2.2.3",this.moduleCache=new Map,this.loaderHook=new ct.PluginSystem({getModuleInfo:new Y.SyncHook,createScript:new Y.SyncHook,createLink:new Y.SyncHook,fetch:new lt.AsyncHook,loadEntryError:new lt.AsyncHook,getModuleFactory:new lt.AsyncHook}),this.bridgeHook=new ct.PluginSystem({beforeBridgeRender:new Y.SyncHook,afterBridgeRender:new Y.SyncHook,beforeBridgeDestroy:new Y.SyncHook,afterBridgeDestroy:new Y.SyncHook});const t=da?[ia.snapshotPlugin(),aa.generatePreloadAssetsPlugin()]:[],r={id:ta.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:fa.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new la.SnapshotHandler(this),this.sharedHandler=new ca.SharedHandler(this),this.remoteHandler=new ua.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){e.name&&e.name!==this.options.name&&Zi.error((0,ut.getShortErrorMsg)(ut.RUNTIME_010,ut.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=Qi.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=na.getRemoteInfo({name:e,entry:t}),o=new oa.Module({host:this,remoteInfo:n});return o.remoteEntryExports=r,this.moduleCache.set(e,o),o}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){const{allShareInfos:r}=ea.formatShareConfigs(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),s=this.remoteHandler.formatAndRegisterRemote(o,n),{allShareInfos:i}=this.sharedHandler.registerShared(o,n),a=[...o.plugins];n.plugins&&n.plugins.forEach(l=>{a.includes(l)||a.push(l)});const c={...e,...t,plugins:a,remotes:s,shared:i};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=ra.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((r,n)=>(n&&r&&!r.find(o=>o.name===n.name)&&r.push(n),r),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Kr.ModuleFederation=ha;var nn={},on={},Zt=Object.defineProperty,ma=(e,t)=>{let r={};for(var n in e)Zt(r,n,{get:e[n],enumerable:!0});return t||Zt(r,Symbol.toStringTag,{value:"Module"}),r};on.__exportAll=ma;(function(e){var r=on.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return r}})})(nn);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T,r=R,n=S,o=Pt,s=C,i=de,a=X,c=xr,l=Ve,u=Kr,f=nn;let d=L;const h=c.default;e.CurrentGlobal=n.CurrentGlobal,e.Global=n.Global,e.Module=l.Module,e.ModuleFederation=u.ModuleFederation,e.addGlobalSnapshot=n.addGlobalSnapshot,e.assert=t.assert,e.error=t.error,e.getGlobalFederationConstructor=n.getGlobalFederationConstructor,e.getGlobalSnapshot=n.getGlobalSnapshot,e.getInfoWithoutType=n.getInfoWithoutType,e.getRegisteredShare=s.getRegisteredShare,e.getRemoteEntry=a.getRemoteEntry,e.getRemoteInfo=a.getRemoteInfo,e.helpers=h,e.isStaticResourcesEqual=r.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=i.matchRemoteWithNameAndExpose,e.registerGlobalPlugins=n.registerGlobalPlugins,e.resetFederationGlobalInfo=n.resetFederationGlobalInfo,e.safeWrapper=r.safeWrapper,e.satisfy=o.satisfy,e.setGlobalFederationConstructor=n.setGlobalFederationConstructor,e.setGlobalFederationInstance=n.setGlobalFederationInstance,Object.defineProperty(e,"types",{enumerable:!0,get:function(){return f.type_exports}})})(Rt);let pa=Rt;function _a(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function ga(e,t){const r=_a();return pa.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!(r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&t&&n.options.version===t))}ir.getGlobalFederationInstance=ga;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ir;let r=Rt,n=K;function o(p){const E=new((0,r.getGlobalFederationConstructor)()||r.ModuleFederation)(p);return(0,r.setGlobalFederationInstance)(E),E}let s=null;function i(p){const E=t.getGlobalFederationInstance(p.name,p.version);return E?(E.initOptions(p),s||(s=E),E):(s=o(p),s)}function a(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadRemote.apply(s,p)}function c(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShare.apply(s,p)}function l(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShareSync.apply(s,p)}function u(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.preloadRemote.apply(s,p)}function f(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerRemotes.apply(s,p)}function d(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerPlugins.apply(s,p)}function h(){return s}function m(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerShared.apply(s,p)}(0,r.setGlobalFederationConstructor)(r.ModuleFederation),Object.defineProperty(e,"Module",{enumerable:!0,get:function(){return r.Module}}),e.ModuleFederation=r.ModuleFederation,e.createInstance=o,e.getInstance=h,Object.defineProperty(e,"getRemoteEntry",{enumerable:!0,get:function(){return r.getRemoteEntry}}),Object.defineProperty(e,"getRemoteInfo",{enumerable:!0,get:function(){return r.getRemoteInfo}}),e.init=i,e.loadRemote=a,Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return r.loadScriptNode}}),e.loadShare=c,e.loadShareSync=l,e.preloadRemote=u,Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return r.registerGlobalPlugins}}),e.registerPlugins=d,e.registerRemotes=f,e.registerShared=m})(sr);const sn="__mf_init____mf__virtual/adminUI__mf_v__runtimeInit__mf_v__.js__";let bt=globalThis[sn];if(!bt){let e,t;const r=new Promise((n,o)=>{e=n,t=o});bt=globalThis[sn]={initPromise:r,initResolve:e,initReject:t},typeof window>"u"&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const Ea=bt.initResolve,Qt={},er="default",tr="adminUI";let rr,nr;async function ya(){return rr??=import("./assets/localSharedImportMap-DB5tFz3u.js"),rr}async function Sa(){return nr??=import("./assets/virtualExposes-FmFgRqLi.js").then(e=>e.default??e),nr}async function Ra(e={},t=[]){const{usedShared:r,usedRemotes:n}=await ya(),o=sr.init({name:tr,remotes:n,shared:r,plugins:[],shareStrategy:"version-first"});var s=Qt[er];if(s||(s=Qt[er]={from:tr}),!(t.indexOf(s)>=0)){t.push(s),o.initShareScopeMap("default",e),Ea(o);try{await Promise.all(await o.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(i){console.error("[Module Federation]",i)}return o}}async function Ia(e){const t=await Sa();if(!(e in t))throw new Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(r=>()=>r)}export{Ia as get,Ra as init};
3
8
  //# sourceMappingURL=remoteEntry.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["vite.config.js"]
10
+ }