jupyterlab-markdown-syntax-rendering-fix 0.6.9__py3-none-any.whl

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 (13) hide show
  1. jupyterlab_markdown_syntax_rendering_fix/__init__.py +16 -0
  2. jupyterlab_markdown_syntax_rendering_fix/_version.py +4 -0
  3. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/install.json +5 -0
  4. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/package.json +145 -0
  5. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/232.2e4cc97d2ebf5013.js +6 -0
  6. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/994.0763ed7064a0e1d0.js +1 -0
  7. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/remoteEntry.9bb7131db659374e.js +7 -0
  8. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/style.js +4 -0
  9. jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/third-party-licenses.json +52 -0
  10. jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/METADATA +105 -0
  11. jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/RECORD +13 -0
  12. jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/WHEEL +4 -0
  13. jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/licenses/LICENSE +29 -0
@@ -0,0 +1,16 @@
1
+ try:
2
+ from ._version import __version__
3
+ except ImportError:
4
+ # Fallback when using the package in dev mode without installing
5
+ # in editable mode with pip. It is highly recommended to install
6
+ # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
7
+ import warnings
8
+ warnings.warn("Importing 'jupyterlab_markdown_syntax_rendering_fix' outside a proper installation.")
9
+ __version__ = "dev"
10
+
11
+
12
+ def _jupyter_labextension_paths():
13
+ return [{
14
+ "src": "labextension",
15
+ "dest": "jupyterlab_markdown_syntax_rendering_fix"
16
+ }]
@@ -0,0 +1,4 @@
1
+ # This file is auto-generated by Hatchling. As such, do not:
2
+ # - modify
3
+ # - track in version control e.g. be sure to add to .gitignore
4
+ __version__ = VERSION = '0.6.9'
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupyterlab_markdown_syntax_rendering_fix",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_markdown_syntax_rendering_fix"
5
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "name": "jupyterlab_markdown_syntax_rendering_fix",
3
+ "version": "0.6.9",
4
+ "description": "Jupyterlab extension to fix a common issue with Markdown renderer where some race condition causes for the fenced code block to not have proper syntax highlighting",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix",
11
+ "bugs": {
12
+ "url": "https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Stellars Henson",
17
+ "email": "konrad.jelen+github@gmail.com"
18
+ },
19
+ "files": [
20
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "src/**/*.{ts,tsx}"
23
+ ],
24
+ "main": "lib/index.js",
25
+ "types": "lib/index.d.ts",
26
+ "style": "style/index.css",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix.git"
30
+ },
31
+ "scripts": {
32
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
33
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
34
+ "build:labextension": "jupyter-builder build .",
35
+ "build:labextension:dev": "jupyter-builder build --development True .",
36
+ "build:lib": "tsc --sourceMap",
37
+ "build:lib:prod": "tsc",
38
+ "clean": "jlpm clean:lib",
39
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
40
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
41
+ "clean:labextension": "rimraf jupyterlab_markdown_syntax_rendering_fix/labextension jupyterlab_markdown_syntax_rendering_fix/_version.py",
42
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
43
+ "eslint": "jlpm eslint:check --fix",
44
+ "eslint:check": "eslint . --cache",
45
+ "install:extension": "jlpm build",
46
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
47
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
48
+ "prettier": "jlpm prettier:base --write --list-different",
49
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
50
+ "prettier:check": "jlpm prettier:base --check",
51
+ "stylelint": "jlpm stylelint:check --fix",
52
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
53
+ "test": "jest --coverage",
54
+ "watch": "run-p watch:src watch:labextension",
55
+ "watch:src": "tsc -w --sourceMap",
56
+ "watch:labextension": "jupyter-builder watch ."
57
+ },
58
+ "dependencies": {
59
+ "@jupyterlab/application": "^4.0.0",
60
+ "@jupyterlab/codemirror": "^4.0.0"
61
+ },
62
+ "devDependencies": {
63
+ "@eslint/js": "^9.0.0",
64
+ "@jupyter/builder": "^1.0.0",
65
+ "@jupyter/eslint-plugin": "^0.0.5",
66
+ "@jupyterlab/testutils": "^4.0.0",
67
+ "@types/jest": "^29.2.0",
68
+ "@types/json-schema": "^7.0.11",
69
+ "@types/react": "^18.0.26",
70
+ "@types/react-addons-linked-state-mixin": "^0.14.22",
71
+ "eslint": "^9.0.0",
72
+ "eslint-config-prettier": "^9.0.0",
73
+ "eslint-plugin-prettier": "^5.0.0",
74
+ "globals": "^15.0.0",
75
+ "jest": "^29.2.0",
76
+ "npm-run-all2": "^7.0.1",
77
+ "prettier": "^3.0.0",
78
+ "rimraf": "^5.0.1",
79
+ "stylelint": "^15.10.1",
80
+ "stylelint-config-recommended": "^13.0.0",
81
+ "stylelint-config-standard": "^34.0.0",
82
+ "stylelint-csstree-validator": "^3.0.0",
83
+ "stylelint-prettier": "^4.0.0",
84
+ "typescript": "~5.8.0",
85
+ "typescript-eslint": "^8.0.0",
86
+ "yjs": "^13.5.0"
87
+ },
88
+ "resolutions": {
89
+ "lib0": "0.2.111",
90
+ "webpack": "5.106.0",
91
+ "chalk": "4.1.2"
92
+ },
93
+ "overrides": {
94
+ "webpack": "5.106.0",
95
+ "chalk": "4.1.2"
96
+ },
97
+ "sideEffects": [
98
+ "style/*.css",
99
+ "style/index.js"
100
+ ],
101
+ "styleModule": "style/index.js",
102
+ "publishConfig": {
103
+ "access": "public"
104
+ },
105
+ "jupyterlab": {
106
+ "extension": true,
107
+ "outputDir": "jupyterlab_markdown_syntax_rendering_fix/labextension",
108
+ "_build": {
109
+ "load": "static/remoteEntry.9bb7131db659374e.js",
110
+ "extension": "./extension",
111
+ "style": "./style"
112
+ }
113
+ },
114
+ "prettier": {
115
+ "singleQuote": true,
116
+ "trailingComma": "none",
117
+ "arrowParens": "avoid",
118
+ "endOfLine": "auto",
119
+ "overrides": [
120
+ {
121
+ "files": "package.json",
122
+ "options": {
123
+ "tabWidth": 4
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ "stylelint": {
129
+ "extends": [
130
+ "stylelint-config-recommended",
131
+ "stylelint-config-standard",
132
+ "stylelint-prettier/recommended"
133
+ ],
134
+ "plugins": [
135
+ "stylelint-csstree-validator"
136
+ ],
137
+ "rules": {
138
+ "csstree/validator": true,
139
+ "property-no-vendor-prefix": null,
140
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
141
+ "selector-no-vendor-prefix": null,
142
+ "value-no-vendor-prefix": null
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";(self.rspackChunkjupyterlab_markdown_syntax_rendering_fix=self.rspackChunkjupyterlab_markdown_syntax_rendering_fix||[]).push([[232],{8475(e,t,n){var r=n(1601),a=n.n(r),o=n(6314),s=n.n(o)()(a());s.push([e.id,`/*
2
+ See the JupyterLab Developer Guide for useful CSS Patterns:
3
+
4
+ https://jupyterlab.readthedocs.io/en/stable/developer/css.html
5
+ */
6
+ `,""]),n.d(t,{},{A:s})},6314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var c=0;c<this.length;c++){var i=this[c][0];null!=i&&(s[i]=!0)}for(var u=0;u<e.length;u++){var p=[].concat(e[u]);r&&s[p[0]]||(void 0!==o&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=o),n&&(p[2]&&(p[1]="@media ".concat(p[2]," {").concat(p[1],"}")),p[2]=n),a&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=a):p[4]="".concat(a)),t.push(p))}},t}},1601(e){e.exports=function(e){return e[1]}},5072(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var c=e[s],i=r.base?c[0]+r.base:c[0],u=a[i]||0,p="".concat(i," ").concat(u);a[i]=u+1;var l=n(p),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==l)t[l].references++,t[l].updater(d);else{var f=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&n.update(e=t):n.remove()}}(d,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:f,references:1})}o.push(p)}return o}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var c=n(o[s]);t[c].references--}for(var i=r(e,a),u=0;u<o.length;u++){var p=n(o[u]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}o=i}}},7659(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){var r,a,o;r="",n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {")),(a=void 0!==n.layer)&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}"),(o=n.sourceMap)&&"u">typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},1113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8579(e,t,n){var r=n(5072),a=n.n(r),o=n(7825),s=n.n(o),c=n(7659),i=n.n(c),u=n(5056),p=n.n(u),l=n(540),d=n.n(l),f=n(1113),v=n.n(f),h=n(8475),m={};m.styleTagTransform=v(),m.setAttributes=p(),m.insert=i().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),a()(h.A,m),h.A&&h.A.locals&&h.A.locals}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.rspackChunkjupyterlab_markdown_syntax_rendering_fix=self.rspackChunkjupyterlab_markdown_syntax_rendering_fix||[]).push([[994],{273(e,t,n){n.r(t),n.d(t,{default:()=>c});var r=n(1750);let i="data-msrf",a=new Set(["mermaid"]);function o(e){let t=/(?:^|\s)language-([\w+#-]+)/.exec(e);return t?t[1]:null}let l='pre > code[class*="language-"]',s=new WeakSet,d=e=>new Promise(t=>{window.setTimeout(t,e)});async function u(e,t){var n;let r=o(e.className);if(!r||s.has(e)||e.hasAttribute(i))return;let a=null!=(n=e.textContent)?n:"";s.add(e);try{for(let n=1;n<=4;n++){let o=t.findBest(r);if(!o)return void e.setAttribute(i,"skipped");let l=document.createElement("div");try{await t.highlight(a,o,l)}catch(t){if(n<4){if(await d(750*2**(n-1)),!e.isConnected)return;continue}e.setAttribute(i,"failed"),console.warn(`[jupyterlab_markdown_syntax_rendering_fix] gave up re-highlighting ${r} after 4 attempts`);return}if(!e.isConnected)return;l.childElementCount>0&&l.textContent===a?(e.setAttribute(i,"1"),e.replaceChildren(...Array.from(l.childNodes))):(l.childElementCount>0&&console.warn(`[jupyterlab_markdown_syntax_rendering_fix] skipped re-highlight of ${r}: highlighted text did not match source`),e.setAttribute(i,"plain"));return}}finally{s.delete(e)}}let c={id:"jupyterlab_markdown_syntax_rendering_fix:plugin",description:"Jupyterlab extension to fix a common issue with Markdown renderer where some race condition causes for the fenced code block to not have proper syntax highlighting",autoStart:!0,requires:[r.IEditorLanguageRegistry],activate:(e,t)=>{console.log("JupyterLab extension jupyterlab_markdown_syntax_rendering_fix is activated!");let n=e=>{let n,r;for(let s of(n=[],r=e=>{(function(e){var t;if(e.hasAttribute(i)||e.childElementCount>0)return!1;let n=o(e.className);return!(!n||a.has(n))&&(null!=(t=e.textContent)?t:"").trim().length>0})(e)&&n.push(e)},e instanceof HTMLElement&&e.matches(l)&&r(e),e.querySelectorAll(l).forEach(r),n))u(s,t).catch(e=>{console.warn("[jupyterlab_markdown_syntax_rendering_fix] unexpected error while re-highlighting",e)})},r=new MutationObserver(e=>{for(let t of e)t.addedNodes.forEach(e=>{e.nodeType!==Node.ELEMENT_NODE||e.closest(".cm-editor, code[data-msrf]")||n(e)})}),s=e.shell.node;r.observe(s,{childList:!0,subtree:!0}),n(s)}}}}]);
@@ -0,0 +1,7 @@
1
+ var _JUPYTERLAB;(()=>{var __webpack_modules__={5606(e){var t,r,o,n=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],u=!1,f=-1;function h(){u&&o&&(u=!1,o.length?c=o.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(o=c,c=[];++f<t;)o&&o[f].run();f=-1,t=c.length}o=null,u=!1,l(e)}}function m(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t)),1!==c.length||u||s(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},4599(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},7633(e,t,r){"use strict";var o,n,i,a,s,l,c,u,f,h,d,m,p=r(7032),g=r.n(p);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),E={},S="jupyterlab_markdown_syntax_rendering_fix",b="version-first",_,I="var";if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{var o,n,i,a,s,l;let c=r();Array.isArray(c)?(null!=(i=(o=e)[n=t])||(o[n]=[]),e[t].push(...c)):"object"==typeof c&&null!==c&&(null!=(l=(a=e)[s=t])||(a[s]={}),Object.assign(e[t],c))},p=(e,t,r)=>{var o,n,i;null!=(i=(o=e)[n=t])||(o[n]=r())},R=null!=(o=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?o:{},T=null!=(n=null==(c=r.remotesLoadingData)?void 0:c.moduleIdToRemoteDataMapping)?n:{},N=null!=(i=null==(u=r.initializeSharingData)?void 0:u.scopeToSharingDataMapping)?i:{},M=null!=(a=null==(f=r.consumesLoadingData)?void 0:f.chunkMapping)?a:{},v=null!=(s=null==(h=r.consumesLoadingData)?void 0:h.moduleIdToConsumeDataMapping)?s:{},w={},O=[],k={},A=null==(d=r.initializeExposesData)?void 0:d.shareScope;for(let e in g())r.federation[e]=g()[e];p(r.federation,"libraryType",()=>I),p(r.federation,"sharedFallback",()=>_);let P=r.federation.sharedFallback;p(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[o,n]of Object.entries(v)){var t;e[o]={getter:P?null==(t=r.federation.bundlerRuntime)?void 0:t.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:r,libraryType:r.federation.libraryType}):n.fallback,treeShakingGetter:P?n.fallback:void 0,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager},scope:[n.shareScope]},shareKey:n.shareKey,treeShaking:r.federation.sharedFallback?{get:n.fallback,mode:n.treeShakingMode}:void 0}}return e}),p(r.federation,"initOptions",()=>({})),p(r.federation.initOptions,"name",()=>S),p(r.federation.initOptions,"shareStrategy",()=>b),p(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(N))for(let o of r)if("object"==typeof o&&null!==o){let{name:r,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c,treeShakingMode:u}=o,f={},h=function(e){return void 0!==e};h(s)&&(f.singleton=s),h(l)&&(f.requiredVersion=l),h(a)&&(f.eager=a),h(c)&&(f.strictVersion=c);let d={version:n,scope:[t],shareConfig:f,get:i,treeShaking:u?{mode:u}:void 0};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(E).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),p(r.federation,"bundlerRuntimeOptions",()=>({})),p(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),p(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>R),p(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>E),p(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(T))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),p(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(T)){let o=E[r.remoteName];o&&(e[t]=o)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:R,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:M,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:w,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:O,initTokens:k,webpackRequire:r})),e(r,"initContainer",(e,t,o)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:o,shareScopeKey:A,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var o=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(o,e)?o[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.bundlerRuntime.init({webpackRequire:r}),(null==(m=r.consumesLoadingData)?void 0:m.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:w,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},9240(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(9579);t.logAndReport=function(e,t,r,n,i,a){return n(o.getShortErrorMsg(e,t,r,i))}},7771(e,t,r){let o=r(9435),n={[o.RUNTIME_001]:"Failed to get remoteEntry exports.",[o.RUNTIME_002]:'The remote entry interface does not contain "init"',[o.RUNTIME_003]:"Failed to get manifest.",[o.RUNTIME_004]:"Failed to locate remote.",[o.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[o.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[o.RUNTIME_007]:"Failed to get remote snapshot.",[o.RUNTIME_008]:"Failed to load script resources.",[o.RUNTIME_009]:"Please call createInstance first.",[o.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.',[o.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[o.RUNTIME_013]:"The manifest is not a valid Module Federation manifest.",[o.RUNTIME_014]:"The remote does not expose the requested module.",[o.RUNTIME_015]:"Remote container initialization failed."},i={[o.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},a={[o.BUILD_001]:"Failed to find expose module.",[o.BUILD_002]:"PublicPath is required in prod mode."},s={...n,...i,...a};t.buildDescMap=a,t.errorDescMap=s,t.runtimeDescMap=n,t.typeDescMap=i},9435(e,t){let r="RUNTIME-001",o="RUNTIME-002",n="RUNTIME-003",i="RUNTIME-004",a="RUNTIME-005",s="RUNTIME-006",l="RUNTIME-007",c="RUNTIME-008",u="RUNTIME-009",f="RUNTIME-010",h="RUNTIME-011",d="RUNTIME-012",m="RUNTIME-013",p="RUNTIME-014",g="RUNTIME-015",y="TYPE-001",E="BUILD-002";t.BUILD_001="BUILD-001",t.BUILD_002=E,t.RUNTIME_001=r,t.RUNTIME_002=o,t.RUNTIME_003=n,t.RUNTIME_004=i,t.RUNTIME_005=a,t.RUNTIME_006=s,t.RUNTIME_007=l,t.RUNTIME_008=c,t.RUNTIME_009=u,t.RUNTIME_010=f,t.RUNTIME_011=h,t.RUNTIME_012=d,t.RUNTIME_013=m,t.RUNTIME_014=p,t.RUNTIME_015=g,t.TYPE_001=y},9579(e,t){let r=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`;t.getShortErrorMsg=(e,t,o,n)=>{let i=[`${[t[e]]} #${e}`];return o&&i.push(`args: ${JSON.stringify(o)}`),i.push(r(e)),n&&i.push(`Original Error Message:
2
+ ${n}`),i.join("\n")}},3996(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(9435),n=r(9579),i=r(7771);t.BUILD_001=o.BUILD_001,t.BUILD_002=o.BUILD_002,t.RUNTIME_001=o.RUNTIME_001,t.RUNTIME_002=o.RUNTIME_002,t.RUNTIME_003=o.RUNTIME_003,t.RUNTIME_004=o.RUNTIME_004,t.RUNTIME_005=o.RUNTIME_005,t.RUNTIME_006=o.RUNTIME_006,t.RUNTIME_007=o.RUNTIME_007,t.RUNTIME_008=o.RUNTIME_008,t.RUNTIME_009=o.RUNTIME_009,t.RUNTIME_010=o.RUNTIME_010,t.RUNTIME_011=o.RUNTIME_011,t.RUNTIME_012=o.RUNTIME_012,t.RUNTIME_013=o.RUNTIME_013,t.RUNTIME_014=o.RUNTIME_014,t.RUNTIME_015=o.RUNTIME_015,t.TYPE_001=o.TYPE_001,t.buildDescMap=i.buildDescMap,t.errorDescMap=i.errorDescMap,t.getShortErrorMsg=n.getShortErrorMsg,t.runtimeDescMap=i.runtimeDescMap,t.typeDescMap=i.typeDescMap},4887(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},5997(e,t){let r="default";t.DEFAULT_REMOTE_TYPE="global",t.DEFAULT_SCOPE=r},9976(e,t,r){let o=r(779),n=r(5997),i=r(7724),a=r(2856),s=r(442),l=r(7503);r(1589);let c=r(5708),u=r(636),f=r(7217),h=r(1776),d=r(4102),m=r(7854);r(7780);let p=r(9339),g=r(4363),y=r(3991),E=r(5023),S=r(9538),b=r(145),_=r(3996),I="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;t.ModuleFederation=class{constructor(e){this.hooks=new m.PluginSystem({beforeInit:new h.SyncWaterfallHook("beforeInit"),init:new u.SyncHook,beforeInitContainer:new d.AsyncWaterfallHook("beforeInitContainer"),initContainer:new d.AsyncWaterfallHook("initContainer")}),this.version="2.5.1",this.moduleCache=new Map,this.loaderHook=new m.PluginSystem({getModuleInfo:new u.SyncHook,createScript:new u.SyncHook,createLink:new u.SyncHook,fetch:new f.AsyncHook,loadEntryError:new f.AsyncHook,afterLoadEntry:new f.AsyncHook("afterLoadEntry"),beforeInitRemote:new f.AsyncHook("beforeInitRemote"),afterInitRemote:new f.AsyncHook("afterInitRemote"),beforeGetExpose:new f.AsyncHook("beforeGetExpose"),afterGetExpose:new f.AsyncHook("afterGetExpose"),beforeExecuteFactory:new f.AsyncHook("beforeExecuteFactory"),afterExecuteFactory:new f.AsyncHook("afterExecuteFactory"),getModuleFactory:new f.AsyncHook}),this.bridgeHook=new m.PluginSystem({beforeBridgeRender:new u.SyncHook,afterBridgeRender:new u.SyncHook,beforeBridgeDestroy:new u.SyncHook,afterBridgeDestroy:new u.SyncHook});const t=I?[p.snapshotPlugin(),g.generatePreloadAssetsPlugin()]:[],r={id:a.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:b.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new y.SnapshotHandler(this),this.sharedHandler=new E.SharedHandler(this),this.remoteHandler=new S.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&&o.error((0,_.getShortErrorMsg)(_.RUNTIME_010,_.runtimeDescMap)),this.registerPlugins(e.plugins);let 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=n.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let o=l.getRemoteInfo({name:e,entry:t}),n=new c.Module({host:this,remoteInfo:o});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{allShareInfos:r}=i.formatShareConfigs(e,t),{userOptions:o,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),a=this.remoteHandler.formatAndRegisterRemote(n,o),{allShareInfos:s}=this.sharedHandler.registerShared(n,o),l=[...n.plugins];o.plugins&&o.plugins.forEach(e=>{l.includes(e)||l.push(e)});let c={...e,...t,plugins:l,remotes:a,shared:s,id:o.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){let t=s.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}},5384(e,t,r){let o=r(779),n=r(5217),i=r(145),a="object"==typeof globalThis?globalThis:window,s=(()=>{try{return document.defaultView}catch{return a}})(),l=s;function c(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function u(e,t){return Object.hasOwnProperty.call(e,t)}u(a,"__GLOBAL_LOADING_REMOTE_ENTRY__")||c(a,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let f=a.__GLOBAL_LOADING_REMOTE_ENTRY__;function h(e){u(e,"__VMOK__")&&!u(e,"__FEDERATION__")&&c(e,"__FEDERATION__",e.__VMOK__),u(e,"__FEDERATION__")||(c(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),c(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function d(){a.__FEDERATION__.__GLOBAL_PLUGIN__=[],a.__FEDERATION__.__INSTANCES__=[],a.__FEDERATION__.moduleInfo={},a.__FEDERATION__.__SHARE__={},a.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(f).forEach(e=>{delete f[e]})}function m(e){a.__FEDERATION__.__INSTANCES__.push(e)}function p(){return a.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function g(e,t=(0,i.isDebugMode)()){t&&(a.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,a.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.5.1")}function y(e,t){if("string"==typeof t)if(e[t])return{value:e[t],key:t};else{for(let r of Object.keys(e)){let[o,n]=r.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}o.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}h(a),h(s);let E=()=>s.__FEDERATION__.moduleInfo,S=(e,t)=>{let r=y(t,n.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){let{version:t,...r}=e,o=n.getFMId(r),i=y(s.__FEDERATION__.moduleInfo,o).value;if(i?.version===t)return i}},b=e=>S(e,s.__FEDERATION__.moduleInfo),_=(e,t)=>{let r=n.getFMId(e);return s.__FEDERATION__.moduleInfo[r]=t,s.__FEDERATION__.moduleInfo},I=e=>(s.__FEDERATION__.moduleInfo={...s.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete s.__FEDERATION__.moduleInfo[t]}),R=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:a[r]}},T=e=>{let{__GLOBAL_PLUGIN__:t}=s.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):o.warn(`The plugin ${e.name} has been registered.`)})},N=()=>s.__FEDERATION__.__GLOBAL_PLUGIN__,M=e=>a.__FEDERATION__.__PRELOADED_MAP__.get(e),v=e=>a.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);t.CurrentGlobal=a,t.Global=l,t.addGlobalSnapshot=I,t.getGlobalFederationConstructor=p,t.getGlobalHostPlugins=N,t.getGlobalSnapshot=E,t.getGlobalSnapshotInfoByModuleInfo=b,t.getInfoWithoutType=y,t.getPreloaded=M,t.getRemoteEntryExports=R,t.getTargetSnapshotInfoByModuleInfo=S,t.globalLoading=f,t.nativeGlobal=s,t.registerGlobalPlugins=T,t.resetFederationGlobalInfo=d,t.setGlobalFederationConstructor=g,t.setGlobalFederationInstance=m,t.setGlobalSnapshotInfoByModuleInfo=_,t.setPreloaded=v},668(e,t,r){let o=r(5384),n=r(7724),i=r(4784),a=r(7503);r(1589);let s=r(254),l={getRegisteredShare:n.getRegisteredShare,getGlobalShareScope:n.getGlobalShareScope};t.default={global:{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},share:l,utils:{matchRemoteWithNameAndExpose:i.matchRemoteWithNameAndExpose,preloadAssets:s.preloadAssets,getRemoteInfo:a.getRemoteInfo}}},4915(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(779),n=r(5217),i=r(5384),a=r(4298),s=r(7724),l=r(4784),c=r(7503);r(1589);let u=r(668),f=r(5708),h=r(9976),d=r(7736),m=r(145),p=u.default;t.CurrentGlobal=i.CurrentGlobal,t.Global=i.Global,t.Module=f.Module,t.ModuleFederation=h.ModuleFederation,t.addGlobalSnapshot=i.addGlobalSnapshot,t.assert=o.assert,t.error=o.error,t.getGlobalFederationConstructor=i.getGlobalFederationConstructor,t.getGlobalSnapshot=i.getGlobalSnapshot,t.getInfoWithoutType=i.getInfoWithoutType,t.getRegisteredShare=s.getRegisteredShare,t.getRemoteEntry=c.getRemoteEntry,t.getRemoteInfo=c.getRemoteInfo,t.helpers=p,t.isStaticResourcesEqual=n.isStaticResourcesEqual,Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return m.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return m.loadScriptNode}}),t.matchRemoteWithNameAndExpose=l.matchRemoteWithNameAndExpose,t.registerGlobalPlugins=i.registerGlobalPlugins,t.resetFederationGlobalInfo=i.resetFederationGlobalInfo,t.safeWrapper=n.safeWrapper,t.satisfy=a.satisfy,t.setGlobalFederationConstructor=i.setGlobalFederationConstructor,t.setGlobalFederationInstance=i.setGlobalFederationInstance,Object.defineProperty(t,"types",{enumerable:!0,get:function(){return d.type_exports}})},5708(e,t,r){let o=r(779),n=r(5217),i=r(4784),a=r(7503),s=r(208);r(1589);let l=r(145),c=r(3996);function u(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(","):void 0}function f(e,t,r){let o=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach(e=>{o[e]||(o[e]={})});let i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:o,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:o[n[0]],initScope:r??[]}}t.Module=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;let t=await a.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:i.composeRemoteRequestId(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return o.assert(t,`remoteEntryExports is undefined
3
+ ${(0,l.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,r,n){let i=await this.getEntry(n);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host}),i;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,cached:!0,origin:this.host}),r}return i}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:n,shareScope:a,initScope:l}=f(this.remoteInfo,this.host.shareScopeMap,r),u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:n,initScope:l,remoteInfo:this.remoteInfo,origin:this.host});void 0===i?.init&&o.error(c.RUNTIME_002,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,s.optionsToMFContext(this.host.options));try{await i.init(u.shareScope,u.initScope,u.remoteEntryInitOptions)}catch(e){o.error(c.RUNTIME_015,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,s.optionsToMFContext(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:t,remoteEntryExports:i}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,origin:this.host}),r}finally{this.initing=!1,this.initPromise=void 0}return i}async get(e,t,r,i){let a,{loadFactory:l=!0}=r||{loadFactory:!0},f=await this.init(e,i,void 0,t);this.lib=f,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:f,origin:this.host});try{let r=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:f,expose:t,moduleInfo:this.remoteInfo});(a="function"==typeof r?r:void 0)||(a=await f.get(t)),a||o.error(c.RUNTIME_014,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:u(i)},void 0,s.optionsToMFContext(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:f,moduleFactory:a,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:f,error:r,origin:this.host}),r}let h=n.processModuleAlias(this.remoteInfo.name,t),d=this.wraperFactory(a,h);if(!l)return d;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,origin:this.host});try{let r=await d();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,exposeModule:r,origin:this.host}),r}catch(r){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,error:r,origin:this.host}),r}}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{let o=e();return o instanceof Promise?o.then(e=>(r(e,t),e)):(r(o,t),o)}}}},4363(e,t,r){let o=r(5217),n=r(5384),i=r(7724);r(1589);let a=r(254),s=r(9339),l=r(145);function c(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function u(e,t,r,i,a={},s){let{value:f}=n.getInfoWithoutType(e,o.getFMId(t)),h=s||f;if(h&&!(0,l.isManifestProvider)(h)&&(r(h,t,i),h.remotesInfo))for(let t of Object.keys(h.remotesInfo)){if(a[t])continue;a[t]=!0;let o=c(t),n=h.remotesInfo[t];u(e,{name:o.name,version:n.matchedVersion},r,!1,a,void 0)}}let f=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function h(e,t,r,s,c){let h=[],d=[],m=[],p=new Set,g=new Set,{options:y}=e,{preloadConfig:E}=t,{depsRemote:S}=E;if(u(s,r,(t,r,i)=>{let s;if(i)s=E;else if(Array.isArray(S)){let e=S.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;s=a.defaultPreloadArgs(e)}else{if(!0!==S)return;s=E}let c=(0,l.getResourceUrl)(t,o.getRemoteEntryInfoFromSnapshot(t).url);c&&m.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],f=a.normalizePreloadExposes(s.exposes);function p(e){let r=e.map(e=>(0,l.getResourceUrl)(t,e));return s.filter?r.filter(s.filter):r}if(f.length&&"modules"in t&&(u=t?.modules?.reduce((e,t)=>(f?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),u){let o=u.length;for(let i=0;i<o;i++){let o=u[i],a=`${r.name}/${o.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===o.moduleName?r.name:a,name:r.name,remoteSnapshot:t,preloadConfig:s,remote:r,origin:e}),n.getPreloaded(a)||("all"===s.resourceCategory?(h.push(...p(o.assets.css.async)),h.push(...p(o.assets.css.sync)),d.push(...p(o.assets.js.async)),d.push(...p(o.assets.js.sync))):"sync"===s.resourceCategory&&(h.push(...p(o.assets.css.sync)),d.push(...p(o.assets.js.sync))),n.setPreloaded(a))}}},!0,{},c),c.shared&&c.shared.length>0){let t=(t,r)=>{let{shared:o}=i.getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};o&&"function"==typeof o.lib&&(r.assets.js.sync.forEach(e=>{p.add(e)}),r.assets.css.sync.forEach(e=>{g.add(e)}))};c.shared.forEach(e=>{let r=y.shared?.[e.sharedName];if(!r)return;let n=e.version?r.find(t=>t.version===e.version):r;n&&o.arrayOptions(n).forEach(r=>{t(r,e)})})}let b=d.filter(e=>!p.has(e)&&!f("script",e));return{cssAssets:h.filter(e=>!g.has(e)&&!f("link",e)),jsAssetsWithoutEntry:b,entryAssets:m.filter(e=>!f("script",e.url))}}t.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:n,remote:i,globalSnapshot:a,remoteSnapshot:c}=e;return l.isBrowserEnvValue?o.isRemoteInfoWithEntry(i)&&o.isPureRemoteEntry(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(s.assignRemoteInfo(n,c),h(t,r,n,a,c)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}}},3991(e,t,r){let o=r(779),n=r(5217),i=r(5384),a=r(7503),s=r(208);r(1589);let l=r(7217),c=r(4102),u=r(7854);r(7780);let f=r(145),h=r(3996);function d(e,t){let r=i.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),o=r&&"remotesInfo"in r&&r.remotesInfo&&i.getInfoWithoutType(r.remotesInfo,e.name).value;return o&&o.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:o.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}t.SnapshotHandler=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new u.PluginSystem({beforeLoadRemoteSnapshot:new l.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new c.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new c.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new c.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=i.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:r="loadRemote"}){let a,l,{options:c}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:c,moduleInfo:e,origin:this.HostInstance});let u=i.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});u||(u={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},i.addGlobalSnapshot({[this.HostInstance.options.name]:u})),u&&"remotesInfo"in u&&!i.getInfoWithoutType(u.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(u.remotesInfo={...u?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:d,remoteSnapshot:m,globalSnapshot:p}=this.getGlobalRemoteInfo(e),{remoteSnapshot:g,globalSnapshot:y}=await this.hooks.lifecycle.loadSnapshot.emit({options:c,moduleInfo:e,hostGlobalSnapshot:d,remoteSnapshot:m,globalSnapshot:p});if(g)if((0,f.isManifestProvider)(g)){let o=f.isBrowserEnvValue?g.remoteEntry:g.ssrRemoteEntry||g.remoteEntry||"",n=await this.loadManifestSnapshot(o,e,{},{initiator:r,id:t||e.name}),s=i.setGlobalSnapshotInfoByModuleInfo({...e,entry:o},n);a=n,l=s}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:g,from:"global"});a=t,l=y}else if(n.isRemoteInfoWithEntry(e)){let o=await this.loadManifestSnapshot(e.entry,e,{},{initiator:r,id:t||e.name}),n=i.setGlobalSnapshotInfoByModuleInfo(e,o);a=o,l=n}else o.error(h.RUNTIME_007,h.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(y)},void 0,s.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:c,moduleInfo:e,remoteSnapshot:a}),{remoteSnapshot:a,globalSnapshot:l}}getGlobalRemoteInfo(e){return d(e,this.HostInstance)}async getManifestJson(e,t,r,n){return(async()=>{let r=a.getRemoteInfo(t),i=this.manifestCache.get(e);if(i)return i;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},r,n?{...n,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),i=await t.json()}catch(n){(i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}))||(delete this.manifestLoading[e],o.error(h.RUNTIME_003,h.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`,s.optionsToMFContext(this.HostInstance.options)))}let l=[!i.metaData&&"metaData",!i.exposes&&"exposes",!i.shared&&"shared"].filter(Boolean);return l.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${l.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}),l.length>0&&o.error(h.RUNTIME_013,h.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:l.join(",")},void 0,s.optionsToMFContext(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,r,o){let n=async()=>{let n=await this.getManifestJson(e,t,r,o),i=(0,f.generateSnapshotFromManifest)(n,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=n().then(e=>e)),this.manifestLoading[e]}},t.getGlobalRemoteInfo=d},9339(e,t,r){let o=r(779),n=r(5217),i=r(4784);r(1589);let a=r(254),s=r(145),l=r(3996);function c(e,t){let r=n.getRemoteEntryInfoFromSnapshot(t);r.url||o.error(l.RUNTIME_011,l.runtimeDescMap,{remoteName:e.name});let i=(0,s.getResourceUrl)(t,r.url);s.isBrowserEnvValue||i.startsWith("http")||(i=`https:${i}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=i,e.version=t.version,e.buildVersion=t.buildVersion}function u(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:o,origin:s,remoteInfo:l,id:u}=e;if(!n.isRemoteInfoWithEntry(t)||!n.isPureRemoteEntry(t)){let{remoteSnapshot:n,globalSnapshot:f}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i.composeRemoteRequestId(t.name,o)});c(l,n);let h={remote:t,preloadConfig:{nameOrAlias:r,exposes:[o],resourceCategory:"sync",share:!1,depsRemote:!1}},d=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:h,remoteInfo:l,remote:t,remoteSnapshot:n,globalSnapshot:f});return d&&a.preloadAssets(l,s,d,!1,{initiator:"loadRemote",id:u}).catch(()=>void 0),{...e,remoteSnapshot:n}}return e}}}t.assignRemoteInfo=c,t.snapshotPlugin=u},9538(e,t,r){let o=r(779),n=r(5384),i=r(5997),a=r(7724),s=r(4784),l=r(7503),c=r(208);r(1589);let u=r(254),f=r(5708),h=r(636),d=r(7217),m=r(1776),p=r(4102),g=r(7854);r(7780);let y=r(3991),E=r(145),S=r(3996);t.RemoteHandler=class{constructor(e){this.hooks=new g.PluginSystem({beforeRegisterRemote:new m.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new m.SyncWaterfallHook("registerRemote"),beforeRequest:new p.AsyncWaterfallHook("beforeRequest"),afterMatchRemote:new d.AsyncHook("afterMatchRemote"),onLoad:new d.AsyncHook("onLoad"),afterLoadRemote:new d.AsyncHook("afterLoadRemote"),handlePreloadModule:new h.SyncHook("handlePreloadModule"),errorLoadRemote:new d.AsyncHook("errorLoadRemote"),beforePreloadRemote:new d.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new d.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new d.AsyncHook("afterPreloadRemote"),loadEntry:new d.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:o}=t,{name:n,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:o},i&&e.startsWith(n)){let t=e.replace(n,i);this.idToRemoteMap[t]={name:r.name,expose:o};return}if(i&&e.startsWith(i)){let t=e.replace(i,n);this.idToRemoteMap[t]={name:r.name,expose:o}}}async loadRemote(e,t){let r,{host:o}=this,n=s.matchRemoteWithNameAndExpose(o.options.remotes,e),i=e,a=n?.expose,c=n?l.getRemoteInfo(n.remote):void 0;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:s,moduleOptions:u,remoteMatchInfo:f}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:h,remote:d,expose:m,id:p,remoteSnapshot:g}=f;i=p,a=m,c=l.getRemoteInfo(d);let y=await s.get(p,m,t,g),E=await this.hooks.lifecycle.onLoad.emit({id:p,pkgNameOrAlias:h,expose:m,exposeModule:n?y:void 0,exposeModuleFactory:n?void 0:y,remote:d,options:u,moduleInstance:s,origin:o});if(this.setIdToRemoteMap(e,f),r={id:i,expose:a,remote:c,options:t,origin:o},"function"==typeof E)return E;return y}catch(l){let n,{from:s="runtime"}=t||{from:"runtime"};try{n=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:l,from:s,lifecycle:"onLoad",expose:a,remote:c,origin:o})}catch(e){throw r={id:i,expose:a,remote:c,options:t,error:e,origin:o},e}if(!n)throw r={id:i,expose:a,remote:c,options:t,error:l,origin:o},l;return r={id:i,expose:a,remote:c,options:t,error:l,origin:o,recovered:!0},n}finally{r&&await this.hooks.lifecycle.afterLoadRemote.emit(r)}}async preloadRemote(e){let t,{host:r}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});let n=u.formatPreloadArgs(r.options.remotes,e),i=e=>{let{preloadConfig:t,remote:r}=e,o=t.exposes||[];return o.length?o.map(o=>({ops:{...e,preloadConfig:{...t,exposes:[o]}},id:s.composeRemoteRequestId(r.name,o)})):[{ops:e,id:`${r.name}/*`}]};await Promise.all(n.flatMap(i).map(async e=>{let{ops:t,id:n}=e,{remote:i,preloadConfig:a}=t,s=l.getRemoteInfo(i);try{let{globalSnapshot:e,remoteSnapshot:l}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:t,remote:i,remoteInfo:s,globalSnapshot:e,remoteSnapshot:l});if(!c)return;let f=await u.preloadAssets(s,r,c,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:f})}catch(e){o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:[{url:s.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(s.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}}));let a=o.flatMap(e=>e.results.filter(e=>"error"===e.status||"timeout"===e.status));if(a.length>0&&Object.assign(t=Error(`preloadRemote failed to load ${a.length} resource(s).`),{results:o,failedResults:a}),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:r.options,origin:r,results:o,error:t}),t)throw t}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=s.matchRemoteWithNameAndExpose(r.options.remotes,i);if(!a)try{o.error(S.RUNTIME_004,S.runtimeDescMap,{hostName:r.options.name,requestId:i},void 0,c.optionsToMFContext(r.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:r.options,error:e,origin:r}),e}let{remote:u}=a,h=l.getRemoteInfo(u);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:r.options,remoteInfo:h,origin:r});let d=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:h}),{remote:m,expose:p}=d;o.assert(m&&p,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let g=r.moduleCache.get(m.name),y={host:r,remoteInfo:h};return g||(g=new f.Module(y),r.moduleCache.set(m.name,g)),{module:g,moduleOptions:y,remoteMatchInfo:d}}registerRemote(e,t,r){let{host:n}=this,a=()=>{if(e.alias){let r=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));o.assert(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&E.isBrowserEnvValue&&"u">typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=i.DEFAULT_SCOPE),e.type||(e.type=i.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let s=t.find(t=>t.name===e.name);if(s){let o=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,E.warn)(o.join(" ")))}else a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:t}=this,{name:r}=e,o=t.options.remotes.findIndex(e=>e.name===r);-1!==o&&t.options.remotes.splice(o,1);let i=t.moduleCache.get(e.name);if(i){let r=i.remoteInfo,o=r.entryGlobalName;n.CurrentGlobal[o]&&(Object.getOwnPropertyDescriptor(n.CurrentGlobal,o)?.configurable?delete n.CurrentGlobal[o]:n.CurrentGlobal[o]=void 0);let s=l.getRemoteEntryUniqueKey(i.remoteInfo);n.globalLoading[s]&&delete n.globalLoading[s],t.snapshotHandler.manifestCache.delete(r.entry);let c=r.buildVersion?(0,E.composeKeyWithSeparator)(r.name,r.buildVersion):r.name,u=n.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===c:e.name===c);if(-1!==u){let e=n.CurrentGlobal.__FEDERATION__.__INSTANCES__[u];c=e.options.id||c;let t=a.getGlobalShareScope(),o=!0,i=[];Object.keys(t).forEach(e=>{let n=t[e];n&&Object.keys(n).forEach(t=>{let a=n[t];a&&Object.keys(a).forEach(n=>{let s=a[n];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==r.name),l.useIn.length?o=!1:i.push([e,t,n,a])):i.push([e,t,n,a]))})})})}),o&&(e.shareScopeMap={},delete t[c]),i.forEach(([e,r,o,n])=>{delete t[e]?.[r]?.[o]?.[n]}),n.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(u,1)}let{hostGlobalSnapshot:f}=y.getGlobalRemoteInfo(e,t);if(f){let t=f&&"remotesInfo"in f&&f.remotesInfo&&n.getInfoWithoutType(f.remotesInfo,e.name).key;t&&(delete f.remotesInfo[t],n.Global.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete n.Global.__FEDERATION__.__MANIFEST_LOADING__[t])}t.moduleCache.delete(e.name)}}catch(e){o.logger.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}}},5023(e,t,r){let o=r(779),n=r(5997),i=r(7724),a=r(208);r(1589);let s=r(636),l=r(7217),c=r(1776),u=r(4102),f=r(7854);r(7780);let h=r(3996);t.SharedHandler=class{constructor(e){this.hooks=new f.PluginSystem({beforeRegisterShare:new c.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new u.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new u.AsyncWaterfallHook("beforeLoadShare"),loadShare:new l.AsyncHook,afterLoadShare:new s.SyncHook("afterLoadShare"),errorLoadShare:new s.SyncHook("errorLoadShare"),resolveShare:new c.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new c.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:r,selectedShared:n}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:r,selectedShared:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){o.warn(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:r,error:n,recovered:i}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:n,recovered:i})}catch(e){o.warn(e)}}registerShared(e,t){let{newShareInfos:r,allShareInfos:o}=i.formatShareConfigs(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(o=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:r}),this.shareScopeMap[o]?.[e]||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{newShareInfos:r,allShareInfos:o}}async loadShare(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),a=n;try{n?.scope&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))})),a=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r})).shareInfo,o.assert(a,`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.`);let s=a,{shared:l,useTreesShaking:c}=i.getRegisteredShare(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare)||{};if(l){let t=i.directShare(l,c);if(t.lib)return i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),t.lib;if(t.loading&&!t.loaded){let o=await t.loading;return t.loaded=!0,t.lib||(t.lib=o),i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),o}{let o=(async()=>{let e=await t.get();return i.addUseIn(t,r.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:l,from:r.options.name,lib:null,loading:o,treeShaking:c?t:void 0});let n=await o;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),n}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,recovered:!0}),!1;let o=i.shouldUseTreeShaking(s.treeShaking),n=i.directShare(s,o),a=(async()=>{let t=await n.get();n.lib=t,n.loaded=!0,i.addUseIn(n,r.options.name);let{shared:o,useTreesShaking:a}=i.getRegisteredShare(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare)||{};if(o){let e=i.directShare(o,a);e.lib=t,e.loaded=!0,o.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:a,treeShaking:o?n:void 0});let l=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:s}),l}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,error:t}),t}}initializeSharing(e=n.DEFAULT_SCOPE,t){let{host:r}=this,o=t?.from,a=t?.strategy,s=t?.initScope,l=[];if("build"!==o){let{initTokens:t}=this;s||(s=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),s.indexOf(r)>=0)return l;s.push(r)}let c=this.shareScopeMap,u=r.options.name;c[e]||(c[e]={});let f=c[e],h=(e,t)=>{let{version:r,eager:o}=t;f[e]=f[e]||{};let n=f[e],a=n[r]&&i.directShare(n[r]),s=!!(a&&("eager"in a&&a.eager||"shareConfig"in a&&a.shareConfig?.eager));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!o!=!s?o:u>n[r].from))&&(n[r]=t)},d=async e=>{let t,{module:o}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});try{t=await o.getEntry()}catch(n){if(!(t=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:o.remoteInfo,origin:r})))return}finally{t?.init&&!o.initing&&(o.remoteEntryExports=t,await o.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&h(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===a)&&r.options.remotes.forEach(t=>{t.shareScope===e&&l.push(d(t.name))}),l}loadShareSync(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});try{n?.scope&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let{shared:s}=i.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){if("function"==typeof s.lib)return i.addUseIn(s,r.options.name),s.loaded||(s.loaded=!0,s.from===r.options.name&&(n.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),s.lib;if("function"==typeof s.get){let t=s.get();if(!(t instanceof Promise))return i.addUseIn(s,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),t}}if(n.lib)return n.loaded||(n.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib;if(n.get){let i=n.get();return i instanceof Promise&&o.error(t?.from==="build"?h.RUNTIME_005:h.RUNTIME_006,h.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib}o.error(h.RUNTIME_006,h.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,error:t}),t}}initShareScopeMap(e,t,r={}){let{host:o}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:o,loading:n,loaded:i,get:a,treeShaking:s}){let{version:l,scope:c="default",...u}=t,f=Array.isArray(c)?c:[c],h=e=>{let t=(e,t,r)=>{r&&!e[t]&&(e[t]=r)},r=s?e.treeShaking:e;t(r,"loaded",i),t(r,"loading",n),t(r,"get",a)};f.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][l]||(this.shareScopeMap[t][e][l]={version:l,scope:[t],...u,lib:o});let n=this.shareScopeMap[t][e][l];h(n),r&&n.from!==r&&(n.from=r)})}_setGlobalShareScopeMap(e){let t=i.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}}},7736(e,t,r){var o=r(4887).__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return o}})},208(e,t){function r(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}}t.optionsToMFContext=function(e){let t={};for(let[r,o]of Object.entries(e.shared)){let e=o[0];e&&(t[r]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:e.shareConfig?.requiredVersion!==!1&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(r)??[],shared:t}}}},2856(e,t,r){r(145),t.getBuilderId=function(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}},7217(e,t,r){let o=r(636);t.AsyncHook=class extends o.SyncHook{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let o=0,n=t=>!1!==t&&(o<r.length?Promise.resolve(r[o++].apply(null,e)).then(r=>void 0===r||1===e.length&&r===e[0]?n(t):n(r)):t);t=n()}return Promise.resolve(t)}}},4102(e,t,r){let o=r(779),n=r(5217),i=r(636),a=r(1776);t.AsyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){n.isObject(e)||o.error(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(o.warn(t),this.onerror(t),e),i=o=>{if(void 0!==o&&a.checkReturnData(e,o))e=o;else if(void 0!==o)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(r<t.length)try{return Promise.resolve(t[r++](e)).then(i,n)}catch(e){return n(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}}},7780(e,t,r){r(636),r(7217),r(1776),r(4102),r(7854)},7854(e,t,r){let o=r(779),n=r(5217);r(1589),t.PluginSystem=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){o.assert(n.isPlainObject(e),"Plugin configuration is invalid.");let r=e.name;o.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(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){o.assert(e,"A name is required.");let t=this.registerPlugins[e];o.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}},636(e,t){t.SyncHook=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...o){return t.remove(r),e.apply(null,o)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{let o=r(...e);void 0!==o&&(t=o)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}},1776(e,t,r){let o=r(779),n=r(5217),i=r(636);function a(e,t){if(!n.isObject(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}t.SyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){for(let t of(n.isObject(e)||o.error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(void 0===r)continue;if(a(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){o.warn(e),this.onerror(e)}return e}},t.checkReturnData=a},1589(e,t,r){r(779),r(5217),r(2856),r(4784),r(442),r(7503),r(208),r(145)},7503(e,t,r){let o=r(779),n=r(5384),i=r(5997),a=r(145),s=r(3996),l=".then(callbacks[0]).catch(callbacks[1])";async function c({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${l}`)([r,n]):import(e).then(r).catch(n)}catch(t){o.error(`Failed to load ESM entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function u({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${l}`)([r,n])}catch(t){o.error(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}function f(e,t,r){let{remoteEntryKey:i,entryExports:a}=n.getRemoteEntryExports(e,t);return a||o.error(s.RUNTIME_001,s.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:i}),a}async function h({name:e,globalName:t,entry:r,remoteInfo:i,loaderHook:l,getEntryUrl:c,resourceContext:u}){let{entryExports:d}=n.getRemoteEntryExports(e,t);if(d)return d;let m=c?c(r):r;return(0,a.loadScript)(m,{attrs:{},createScriptHook:(e,t)=>{let r=l.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:i,resourceContext:u?{...u,url:e}:void 0});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>f(e,t,r),t=>{let r=t instanceof Error?t.message:String(t);o.error(s.RUNTIME_008,s.runtimeDescMap,{remoteName:e,resourceUrl:m},r)})}async function d({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:o,resourceContext:n}){let{entry:i,entryGlobalName:a,name:s,type:l}=e;switch(l){case"esm":case"module":return c({entry:i,remoteEntryExports:t});case"system":return u({entry:i,remoteEntryExports:t});default:return h({entry:i,globalName:a,name:s,remoteInfo:e,loaderHook:r,getEntryUrl:o,resourceContext:n})}}async function m({remoteInfo:e,loaderHook:t,resourceContext:r}){let{entry:i,entryGlobalName:s,name:l,type:c}=e,{entryExports:u}=n.getRemoteEntryExports(l,s);return u||(0,a.loadScriptNode)(i,{attrs:{name:l,globalName:s,type:c},loaderHook:{createScriptHook:(o,n={})=>{let i=t.lifecycle.createScript.emit({url:o,attrs:n,remoteInfo:e,resourceContext:r?{...r,url:o}:void 0});if(i&&"url"in i)return i}}}).then(()=>f(l,s,i)).catch(e=>{o.error(`Failed to load Node.js entry for remote "${l}" from "${i}". ${e instanceof Error?e.message:String(e)}`)})}function p(e){let{entry:t,name:r}=e;return(0,a.composeKeyWithSeparator)(r,t)}async function g(e){let{origin:t,remoteEntryExports:r,remoteInfo:o,getEntryUrl:i,resourceContext:l,_inErrorHandling:c=!1}=e,u=p(o);if(r)return r;if(!n.globalLoading[u]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,f=t.loaderHook;n.globalLoading[u]=e.emit({origin:t,loaderHook:f,remoteInfo:o,remoteEntryExports:r}).then(e=>e||(("u">typeof ENV_TARGET?"web"===ENV_TARGET:a.isBrowserEnvValue)?d({remoteInfo:o,remoteEntryExports:r,loaderHook:f,getEntryUrl:i,resourceContext:l}):m({remoteInfo:o,loaderHook:f,resourceContext:l}))).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e}),e)).catch(async e=>{let i=p(o),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(s.RUNTIME_008)&&!a&&!c){let e=e=>g({...e,_inErrorHandling:!0}),a=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:o,remoteEntryExports:r,globalLoading:n.globalLoading,uniqueKey:i});if(a)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:a,recovered:!0}),a}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,error:e}),e})}return n.globalLoading[u]}function y(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||i.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||i.DEFAULT_SCOPE}}t.getRemoteEntry=g,t.getRemoteEntryUniqueKey=p,t.getRemoteInfo=y},779(e,t,r){let o=r(145),n=r(9240),i="[ Federation Runtime ]",a=(0,o.createLogger)(i);function s(e,t,r,o,a){if(void 0!==t)return(0,n.logAndReport)(e,t,r??{},e=>{throw Error(`${i}: ${e}`)},o,a);let s=e;if(s instanceof Error)throw s.message.startsWith(i)||(s.message=`${i}: ${s.message}`),s;throw Error(`${i}: ${s}`)}function l(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}t.assert=function(e,t,r,o,n){e||(void 0!==r?s(t,r,o,void 0,n):s(t))},t.error=s,t.logger=a,t.warn=l},4784(e,t){function r(e,t){for(let r of e){let e=t.startsWith(r.name),o=t.replace(r.name,"");if(e){if(o.startsWith("/"))return{pkgNameOrAlias:r.name,expose:o=`.${o}`,remote:r};else if(""===o)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let n=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&n){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function o(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}t.composeRemoteRequestId=function(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e},t.matchRemote=o,t.matchRemoteWithNameAndExpose=r},442(e,t,r){let o=r(5384);t.registerPlugins=function(e,t){let r=o.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}},254(e,t,r){let o=r(779),n=r(4784),i=r(7503),a=r(145);function s(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function l(e,t){return t.map(t=>{let r=n.matchRemote(e,t.nameOrAlias);return o.assert(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&(0,a.safeToString)({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:s(t)}})}function c(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function u(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function f(e,t,r,o){return{url:t,status:r,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:o}}async function h(e,t,r,o){let n=e.moduleCache.get(r.name),a=r.entry;if(n?.remoteEntryExports)return f(o,a,"cached");try{if(!await i.getRemoteEntry({origin:e,remoteInfo:r,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...o,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return f(o,a,"success")}catch(e){return f(o,a,u(e)?"timeout":"error",e)}}function d({host:e,remoteInfo:t,url:r,attrs:o,context:n,needDeleteLink:i}){return new Promise(s=>{let{link:l,needAttach:c}=(0,a.createLink)({url:r,cb:()=>{s(f(n,r,c?"success":"cached"))},onErrorCallback:e=>{s(f(n,r,u(e)?"timeout":"error",e))},attrs:o,createLinkHook:(r,o)=>{let i=e.loaderHook.lifecycle.createLink.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLLinkElement,i},needDeleteLink:i});c&&document.head.appendChild(l)})}function m({host:e,remoteInfo:t,url:r,attrs:o,context:n}){return new Promise(i=>{let{script:s,needAttach:l}=(0,a.createScript)({url:r,cb:()=>{i(f(n,r,l?"success":"cached"))},onErrorCallback:e=>{i(f(n,r,u(e)?"timeout":"error",e))},attrs:o,createScriptHook:(r,o)=>{let i=e.loaderHook.lifecycle.createScript.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLScriptElement,i},needDeleteScript:!0});l&&document.head.appendChild(s)})}function p(e,t){return{...e,resourceType:t}}function g(e,t,r,o=!0,n={initiator:"preloadRemote",id:e.name}){let{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:s}=r,l=[];if(t.options.inBrowser){if(s.forEach(r=>{let{moduleInfo:o}=r;l.push(h(t,e,o,p(n,"remoteEntry")))}),o){let r={rel:"preload",as:"style"};i.forEach(o=>{l.push(d({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"css")}))})}else{let r={rel:"stylesheet",type:"text/css"};i.forEach(o=>{l.push(d({host:t,remoteInfo:e,url:o,attrs:r,needDeleteLink:!1,context:p(n,"css")}))})}if(o){let r={rel:"preload",as:"script"};a.forEach(o=>{l.push(d({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"js")}))})}else{let r={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};a.forEach(o=>{l.push(m({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"js")}))})}}return Promise.all(l)}t.defaultPreloadArgs=s,t.formatPreloadArgs=l,t.normalizePreloadExposes=c,t.preloadAssets=g},7995(e,t){function r(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function o(e,t){let{preRelease:o}=e,{preRelease:n}=t;if(void 0===o&&n)return 1;if(o&&void 0===n)return -1;if(void 0===o&&void 0===n)return 0;for(let e=0,t=o.length;e<=t;e++){let t=o[e],i=n[e];if(t!==i){if(void 0===t&&void 0===i)return 0;if(!t)return 1;if(!i)return -1;return r(t,i)}}return 0}function n(e,t){return r(e.major,t.major)||r(e.minor,t.minor)||r(e.patch,t.patch)||o(e,t)}function i(e,t){return e.version===t.version}t.compare=function(e,t){switch(e.operator){case"":case"=":return i(e,t);case">":return 0>n(e,t);case">=":return i(e,t)||0>n(e,t);case"<":return n(e,t)>0;case"<=":return i(e,t)||n(e,t)>0;case void 0:return!0;default:return!1}}},3089(e,t){let r="[0-9A-Za-z-]+",o=`(?:\\+(${r}(?:\\.${r})*))`,n="0|[1-9]\\d*",i="[0-9]+",a="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s=`(?:${i}|${a})`,l=`(?:-?(${s}(?:\\.${s})*))`,c=`(?:${n}|${a})`,u=`(?:-(${c}(?:\\.${c})*))`,f=`${n}|x|X|\\*`,h=`[v=\\s]*(${f})(?:\\.(${f})(?:\\.(${f})(?:${u})?${o}?)?)?`,d=`^\\s*(${h})\\s+-\\s+(${h})\\s*$`,m=`[v=\\s]*${`(${i})\\.(${i})\\.(${i})`}${l}?${o}?`,p="((?:<|>)?=?)",g=`(\\s*)${p}\\s*(${m}|${h})`,y="(?:~>?)",E=`(\\s*)${y}\\s+`,S="(?:\\^)",b=`(\\s*)${S}\\s+`,_="(<|>)?=?\\s*\\*",I=`^${S}${h}$`,R=`v?${`(${n})\\.(${n})\\.(${n})`}${u}?${o}?`,T=`^${y}${h}$`,N=`^${p}\\s*${h}$`,M=`^${p}\\s*(${R})$|^$`,v="^\\s*>=\\s*0.0.0\\s*$";t.caret=I,t.caretTrim=b,t.comparator=M,t.comparatorTrim=g,t.gte0=v,t.hyphenRange=d,t.star=_,t.tilde=T,t.tildeTrim=E,t.xRange=N},4298(e,t,r){let o=r(9933),n=r(5463),i=r(7995);function a(e){return o.pipe(n.parseCarets,n.parseTildes,n.parseXRanges,n.parseStar)(e)}function s(e){return o.pipe(n.parseHyphen,n.parseComparatorTrim,n.parseTildeTrim,n.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}t.satisfy=function(e,t){if(!e)return!1;let r=o.extractComparator(e);if(!r)return!1;let[,l,,c,u,f,h]=r,d={operator:l,version:o.combineVersion(c,u,f,h),major:c,minor:u,patch:f,preRelease:h?.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=s(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>a(e)).join(" ");if(!r.trim())return!0;let l=r.split(/\s+/).map(e=>n.parseGTE0(e)).filter(Boolean);if(0===l.length)continue;let c=!0;for(let e of l){let t=o.extractComparator(e);if(!t){c=!1;break}let[,r,,n,a,s,l]=t;if(!i.compare({operator:r,version:o.combineVersion(n,a,s,l),major:n,minor:a,patch:s,preRelease:l?.split(".")},d)){c=!1;break}}if(c)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}},5463(e,t,r){let o=r(3089),n=r(9933);function i(e){return e.replace(n.parseRegex(o.hyphenRange),(e,t,r,o,i,a,s,l,c,u,f,h)=>(t=n.isXVersion(r)?"":n.isXVersion(o)?`>=${r}.0.0`:n.isXVersion(i)?`>=${r}.${o}.0`:`>=${t}`,l=n.isXVersion(c)?"":n.isXVersion(u)?`<${Number(c)+1}.0.0-0`:n.isXVersion(f)?`<${c}.${Number(u)+1}.0-0`:h?`<=${c}.${u}.${f}-${h}`:`<=${l}`,`${t} ${l}`.trim()))}function a(e){return e.replace(n.parseRegex(o.comparatorTrim),"$1$2$3")}function s(e){return e.replace(n.parseRegex(o.tildeTrim),"$1~")}function l(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.caret),(e,t,r,o,i)=>{if(n.isXVersion(t))return"";if(n.isXVersion(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(n.isXVersion(o))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(i)if("0"!==t)return`>=${t}.${r}.${o}-${i} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${o}-${i} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${o} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${o} <${Number(t)+1}.0.0-0`})).join(" ")}function c(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.tilde),(e,t,r,o,i)=>n.isXVersion(t)?"":n.isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:n.isXVersion(o)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:i?`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`)).join(" ")}function u(e){return e.split(/\s+/).map(e=>e.trim().replace(n.parseRegex(o.xRange),(e,t,r,o,i,a)=>{let s=n.isXVersion(r),l=s||n.isXVersion(o),c=l||n.isXVersion(i);if("="===t&&c&&(t=""),a="",s)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&c?(l&&(o=0),i=0,">"===t?(t=">=",l?(r=Number(r)+1,o=0):o=Number(o)+1,i=0):"<="===t&&(t="<",l?r=Number(r)+1:o=Number(o)+1),"<"===t&&(a="-0"),`${t+r}.${o}.${i}${a}`):l?`>=${r}.0.0${a} <${Number(r)+1}.0.0-0`:c?`>=${r}.${o}.0${a} <${r}.${Number(o)+1}.0-0`:e})).join(" ")}function f(e){return e.trim().replace(n.parseRegex(o.star),"")}function h(e){return e.trim().replace(n.parseRegex(o.gte0),"")}t.parseCaretTrim=function(e){return e.replace(n.parseRegex(o.caretTrim),"$1^")},t.parseCarets=l,t.parseComparatorTrim=a,t.parseGTE0=h,t.parseHyphen=i,t.parseStar=f,t.parseTildeTrim=s,t.parseTildes=c,t.parseXRanges=u},9933(e,t,r){let o=r(3089);function n(e){return new RegExp(e)}function i(e){return!e||"x"===e.toLowerCase()||"*"===e}function a(...e){return t=>e.reduce((e,t)=>t(e),t)}function s(e){return e.match(n(o.comparator))}t.combineVersion=function(e,t,r,o){let n=`${e}.${t}.${r}`;return o?`${n}-${o}`:n},t.extractComparator=s,t.isXVersion=i,t.parseRegex=n,t.pipe=a},7724(e,t,r){let o=r(779),n=r(5217),i=r(5384),a=r(5997),s=r(4298),l=r(145);function c(e,t,r,n){let i;return i="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{o.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&o.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:i,loaded:!!e?.loaded||"lib"in e||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??l.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function u(e,t){let r=t.shared||{},o=t.name,i=Object.keys(r).reduce((e,i)=>{let a=n.arrayOptions(r[i]);return e[i]=e[i]||[],a.forEach(r=>{e[i].push(c(r,o,i,t.shareStrategy))}),e},{}),a={...e.shared};return Object.keys(i).forEach(e=>{a[e]?i[e].forEach(t=>{a[e].find(e=>e.version===t.version)||a[e].push(t)}):a[e]=i[e]}),{allShareInfos:a,newShareInfos:i}}function f(e,t){if(!e)return!1;let{status:r,mode:o}=e;return r!==l.TreeShakingStatus.NO_USE&&(r===l.TreeShakingStatus.CALCULATED||"runtime-infer"===o&&(!t||g(e,t)))}function h(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!s.satisfy(r(e),`<=${r(t)}`)}let d=(e,t)=>{let r=t||function(e,t){return h(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},m=e=>!!e.loaded||"function"==typeof e.lib,p=e=>!!e.loading,g=(e,t)=>{if(!e||!t)return!1;let{usedExports:r}=e;return!!r&&!!t.every(e=>r.includes(e))};function y(e,t,r,o){let n=e[t][r],i="",a=f(o),s=function(e,t){return a?!n[e].treeShaking||!!n[t].treeShaking&&!m(n[e].treeShaking)&&h(e,t):!m(n[e])&&h(e,t)};if(a){if(i=d(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:d(e[t][r],s),useTreesShaking:a}}let E=e=>m(e)||p(e);function S(e,t,r,o){let n=e[t][r],i="",a=f(o),s=function(e,t){if(a){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(E(n[t].treeShaking))if(E(n[e].treeShaking))return!!h(e,t);else return!0;if(E(n[e].treeShaking))return!1}if(E(n[t]))if(E(n[e]))return!!h(e,t);else return!0;return!E(n[e])&&h(e,t)};if(a){if(i=d(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:d(e[t][r],s),useTreesShaking:a}}function b(e){return"loaded-first"===e?S:y}function _(e,t,r,n){if(!e)return;let{shareConfig:l,scope:c=a.DEFAULT_SCOPE,strategy:u,treeShaking:h}=r;for(let a of Array.isArray(c)?c:[c])if(l&&e[a]&&e[a][t]){let{requiredVersion:c}=l,{version:d,useTreesShaking:m}=b(u)(e,a,t,h),p=()=>{let n=e[a][t][d];if(l.singleton){if("string"==typeof c&&!s.satisfy(d,c)){let e=`Version ${d} from ${d&&n.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${c})`;l.strictVersion?o.error(e):o.warn(e)}return{shared:n,useTreesShaking:m}}{if(!1===c||"*"===c||s.satisfy(d,c))return{shared:n,useTreesShaking:m};let r=f(h);if(r){for(let[o,n]of Object.entries(e[a][t]))if(f(n.treeShaking,h?.usedExports)&&s.satisfy(o,c))return{shared:n,useTreesShaking:r}}for(let[r,o]of Object.entries(e[a][t]))if(s.satisfy(r,c))return{shared:o,useTreesShaking:!1}}},g={shareScopeMap:e,scope:a,pkgName:t,version:d,GlobalFederation:i.Global.__FEDERATION__,shareInfo:r,resolver:p};return(n.emit(g)||g).resolver()}}function I(){return i.Global.__FEDERATION__.__SHARE__}function R(e){let{pkgName:t,extraOptions:r,shareInfos:o}=e,n=e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=function(e,r){return!m(t[e])&&h(e,r)};return t[d(t,r)]},i=r?.resolver??n,a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=(...e)=>{let t={};for(let r of e)if(r)for(let[e,o]of Object.entries(r)){let r=t[e];a(r)&&a(o)?t[e]=s(r,o):void 0!==o&&(t[e]=o)}return t};return s(i(o[t]),r?.customShareInfo)}function T(e,t){return t&&e.treeShaking?e.treeShaking:e}t.addUseIn=(e,t)=>{e.useIn||(e.useIn=[]),n.addUniqueItem(e.useIn,t)},t.directShare=T,t.formatShareConfigs=u,t.getGlobalShareScope=I,t.getRegisteredShare=_,t.getTargetSharedOptions=R,t.shouldUseTreeShaking=f},5217(e,t,r){var o;let n=r(779),i=r(145);function a(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function s(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function l(e){return void 0!==e.entry}function c(e){return!e.entry.includes(".json")}async function u(e,t){try{return await e()}catch(e){t||n.warn(e);return}}function f(e){return e&&"object"==typeof e}let h=Object.prototype.toString;function d(e){return"[object Object]"===h.call(e)}function m(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function p(e){return Array.isArray(e)?e:[e]}function g(e){let t={url:"",type:"global",globalName:""};return i.isBrowserEnvValue||(0,i.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}let y=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t};t.addUniqueItem=a,t.arrayOptions=p,t.getFMId=s,t.getRemoteEntryInfoFromSnapshot=g,t.isObject=f,t.isPlainObject=d,t.isPureRemoteEntry=c,t.isRemoteInfoWithEntry=l,t.isStaticResourcesEqual=m,o=h,t.processModuleAlias=y,t.safeWrapper=u},9369(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,c=i(t),u=0,f=c.length;u<f;u++)l=c[u],s.call(e,l)||l===r||o(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(a=n(t,l))||a.enumerable});return e}},1222(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(9369);let o=r(1146),n=r(4915),i={...n.helpers.global,getGlobalFederationInstance:o.getGlobalFederationInstance},a=n.helpers.share,s=n.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},7201(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(9369);let o=r(1146),n=r(4915),i=r(3996);function a(e){let t=new((0,n.getGlobalFederationConstructor)()||n.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.setGlobalFederationInstance)(t),t}let s=null;function l(e){let t=o.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)}function c(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)}function u(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)}function f(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)}function h(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)}function d(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)}function m(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)}function p(e){return e?n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s}function g(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}(0,n.setGlobalFederationConstructor)(n.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return n.Module}}),t.ModuleFederation=n.ModuleFederation,t.createInstance=a,t.getInstance=p,Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return n.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return n.getRemoteInfo}}),t.init=l,t.loadRemote=c,Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return n.loadScriptNode}}),t.loadShare=u,t.loadShareSync=f,t.preloadRemote=h,Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return n.registerGlobalPlugins}}),t.registerPlugins=m,t.registerRemotes=d,t.registerShared=g},1146(e,t,r){r(9369);let o=r(4915);function n(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}t.getGlobalFederationInstance=function(e,t){let r=n();return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}},3113(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},7391(e,t){let r="federation-manifest.json",o=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},a={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},s={[a[i.AT]]:i.AT,[a[i.HYPHEN]]:i.HYPHEN,[a[i.SLASH]]:i.SLASH},l=":",c="mf-manifest.json",u="mf-stats.json",f={NPM:"npm",APP:"app"},h="__MF_DEVTOOLS_MODULE_INFO__",d="ENCODE_NAME_PREFIX",m=".federation",p=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({});t.BROWSER_LOG_KEY=n,t.ENCODE_NAME_PREFIX=d,t.EncodedNameTransformMap=s,t.FederationModuleManifest=r,t.MANIFEST_EXT=o,t.MFModuleType=f,t.MODULE_DEVTOOL_IDENTIFIER=h,t.ManifestFileName=c,t.NameTransformMap=a,t.NameTransformSymbol=i,t.SEPARATOR=l,t.StatsFileName=u,t.TEMP_DIR=m,t.TreeShakingStatus=p},310(e,t){t.createModuleFederationConfig=e=>e},4209(e,t,r){let o=r(2634);async function n(e,t){try{return await e()}catch(e){t||o.warn(e);return}}function i(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function a(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("src");if(a&&i(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=o?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(a=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let l=null,c="u">typeof window?t=>{if(t.filename&&i(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",l=r}}:null;c&&window.addEventListener("error",c);let u=async(o,i)=>{clearTimeout(t),c&&window.removeEventListener("error",c);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else l?e?.onErrorCallback&&e?.onErrorCallback(l):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(i);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),t=setTimeout(()=>{u(null,{type:"error",isTimeout:!0})},a),{script:r,needAttach:o}}function s(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:s}=a({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});s&&document.head.appendChild(i)})}t.createLink=function(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("link");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("href"),l=n.getAttribute("rel");if(a&&i(a,e.url)&&l===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,n=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,n))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(a=t.timeout))),n&&o&&Object.keys(n).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,n[e])})}if(!o)return Promise.resolve().then(()=>{e?.cb&&e?.cb()}),{link:r,needAttach:o};let l=(o,i)=>{t&&clearTimeout(t);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteLink:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o)){let e=o(i);return a(),e}a()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},a),{link:r,needAttach:o}},t.createScript=a,t.isStaticResourcesEqual=i,t.loadScript=s,t.safeWrapper=n},1556(e,t,r){var o=r(5606);let n=r(7391),i="u">typeof ENV_TARGET?"web"===ENV_TARGET:"u">typeof window&&void 0!==window.document;function a(){return i}function s(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function l(){try{if(a()&&window.localStorage)return!!localStorage.getItem(n.BROWSER_LOG_KEY)}catch(e){}return!1}function c(){return void 0!==o&&o.env&&o.env.FEDERATION_DEBUG?!!o.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||l()}t.getProcessEnv=function(){return void 0!==o&&o.env?o.env:{}},t.isBrowserEnv=a,t.isBrowserEnvValue=i,t.isDebugMode=c,t.isReactNativeEnv=s},4465(e,t,r){let o=r(7391),n=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function i(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function a(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(o.MANIFEST_EXT))}function s(e){if(!e)return{statsFileName:o.StatsFileName,manifestFileName:o.ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",i=".json",a=e=>e.endsWith(i)?e:`${e}${i}`,s=(e,t)=>e.replace(i,`${t}${i}`),l=r?a(r):o.ManifestFileName;return{statsFileName:n(t,r?s(l,"-stats"):o.StatsFileName),manifestFileName:n(t,l)}}t.generateSnapshotFromManifest=function(e,t={}){let r,{remotes:o={},overrides:a={},version:s}=t,l=()=>"publicPath"in e.metaData?("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&s?i(s):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(a),u={};Object.keys(o).length||(u=e.remotes?.reduce((e,t)=>{let r,o=t.federationContainerName;return r=c.includes(o)?a[o]:"version"in t?t.version:t.entry,e[o]={matchedVersion:r},e},{})||{}),Object.keys(o).forEach(e=>u[e]={matchedVersion:c.includes(e)?a[e]:o[e]});let{remoteEntry:{path:f,name:h,type:d},types:m={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:p},globalName:g,ssrRemoteEntry:y}=e.metaData,{exposes:E}=e,S={version:s||"",buildVersion:p,globalName:g,remoteEntry:n(f,h),remoteEntryType:d,remoteTypes:n(m.path,m.name),remoteTypesZip:m.zip||"",remoteTypesAPI:m.api||"",remotesInfo:u,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:E?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if("publicPath"in e.metaData?(r={...S,publicPath:l()},"string"==typeof e.metaData.ssrPublicPath&&(r.ssrPublicPath=e.metaData.ssrPublicPath)):r={...S,getPublicPath:l()},y){let e=n(y.path,y.name);r.ssrRemoteEntry=e,r.ssrRemoteEntryType=y.type||"commonjs-module"}return r},t.getManifestFileName=s,t.inferAutoPublicPath=i,t.isManifestProvider=a,t.simpleJoinRemoteEntry=n},145(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(7391),n=r(5966),i=r(4743),a=r(1948),s=r(5126),l=r(8390),c=r(4199),u=r(1556),f=r(2634),h=r(4465),d=r(5743),m=r(4209),p=r(6167),g=r(4382),y=r(310);t.BROWSER_LOG_KEY=o.BROWSER_LOG_KEY,t.ENCODE_NAME_PREFIX=o.ENCODE_NAME_PREFIX,t.EncodedNameTransformMap=o.EncodedNameTransformMap,t.FederationModuleManifest=o.FederationModuleManifest,t.MANIFEST_EXT=o.MANIFEST_EXT,t.MFModuleType=o.MFModuleType,t.MODULE_DEVTOOL_IDENTIFIER=o.MODULE_DEVTOOL_IDENTIFIER,t.ManifestFileName=o.ManifestFileName,t.NameTransformMap=o.NameTransformMap,t.NameTransformSymbol=o.NameTransformSymbol,t.SEPARATOR=o.SEPARATOR,t.StatsFileName=o.StatsFileName,t.TEMP_DIR=o.TEMP_DIR,t.TreeShakingStatus=o.TreeShakingStatus,t.assert=f.assert,t.bindLoggerToCompiler=d.bindLoggerToCompiler,t.composeKeyWithSeparator=f.composeKeyWithSeparator,Object.defineProperty(t,"consumeSharedPlugin",{enumerable:!0,get:function(){return l.ConsumeSharedPlugin_exports}}),Object.defineProperty(t,"containerPlugin",{enumerable:!0,get:function(){return n.ContainerPlugin_exports}}),Object.defineProperty(t,"containerReferencePlugin",{enumerable:!0,get:function(){return i.ContainerReferencePlugin_exports}}),t.createInfrastructureLogger=d.createInfrastructureLogger,t.createLink=m.createLink,t.createLogger=d.createLogger,t.createModuleFederationConfig=y.createModuleFederationConfig,t.createScript=m.createScript,t.createScriptNode=p.createScriptNode,t.decodeName=f.decodeName,t.encodeName=f.encodeName,t.error=f.error,t.generateExposeFilename=f.generateExposeFilename,t.generateShareFilename=f.generateShareFilename,t.generateSnapshotFromManifest=h.generateSnapshotFromManifest,t.getManifestFileName=h.getManifestFileName,t.getProcessEnv=u.getProcessEnv,t.getResourceUrl=f.getResourceUrl,t.inferAutoPublicPath=h.inferAutoPublicPath,t.infrastructureLogger=d.infrastructureLogger,t.isBrowserEnv=u.isBrowserEnv,t.isBrowserEnvValue=u.isBrowserEnvValue,t.isDebugMode=u.isDebugMode,t.isManifestProvider=h.isManifestProvider,t.isReactNativeEnv=u.isReactNativeEnv,t.isRequiredVersion=f.isRequiredVersion,t.isStaticResourcesEqual=m.isStaticResourcesEqual,t.loadScript=m.loadScript,t.loadScriptNode=p.loadScriptNode,t.logger=d.logger,Object.defineProperty(t,"moduleFederationPlugin",{enumerable:!0,get:function(){return a.ModuleFederationPlugin_exports}}),t.normalizeOptions=g.normalizeOptions,t.parseEntry=f.parseEntry,Object.defineProperty(t,"provideSharedPlugin",{enumerable:!0,get:function(){return c.ProvideSharedPlugin_exports}}),t.safeToString=f.safeToString,t.safeWrapper=m.safeWrapper,Object.defineProperty(t,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),t.simpleJoinRemoteEntry=h.simpleJoinRemoteEntry,t.warn=f.warn},5743(e,t,r){let o=r(1556),n="[ Module Federation ]",i=console,a=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function s(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!a.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
4
+ ${r.slice(0,5).join("\n")}`}catch{return}}var l=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){let r=this.delegate,n=o.isDebugMode()?s():void 0,a=n?[...t,n]:t,l=(()=>{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(let e of l){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...a)}for(let e of l){let t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}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){o.isDebugMode()&&this.emit("debug",e)}};function c(e){return new l(e)}function u(e){let t=new l(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function f(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let o=t.getInfrastructureLogger(r);o&&"object"==typeof o&&("function"==typeof o.log||"function"==typeof o.info||"function"==typeof o.warn||"function"==typeof o.error)&&e.setDelegate(o)}catch{e.setDelegate(void 0)}}let h=c(n),d=u(n);t.bindLoggerToCompiler=f,t.createInfrastructureLogger=u,t.createLogger=c,t.infrastructureLogger=d,t.logger=h},6167(__unused_rspack_module,exports){let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let o=(e,t)=>r.lifecycle.fetch.emit(e,t),n=await o(e,t||{});return n&&n instanceof Response?n:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let requireFn,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) {${data}
5
+ })`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});requireFn=eval("require"),script.runInThisContext()(scriptContext.exports,scriptContext.module,requireFn,urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName)return void cb(void 0,exportedInterface[attrs.globalName]||exportedInterface);cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,o)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,o)=>{createScriptNode(e,(e,n)=>{if(e)o(e);else{let e=t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`;r(globalThis[e]=n)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:r,vm:o}=t,n=await (await r(e)).text(),i=new o.SourceTextModule(n,{importModuleDynamically:async(r,o)=>loadModule(new URL(r,e).href,t)});return esmModuleCache.set(e,i),await i.link(async r=>{let o=new URL(r,e).href;return await loadModule(o,t)}),i}exports.createScriptNode=createScriptNode,exports.loadScriptNode=loadScriptNode},4382(e,t){t.normalizeOptions=function(e,t,r){return function(o){if(!1===o)return!1;if(void 0===o)if(e)return t;else return!1;if(!0===o)return t;if(o&&"object"==typeof o)return{...t,...o};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof o}`)}}},8390(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},5966(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"ContainerPlugin_exports",{enumerable:!0,get:function(){return o}})},4743(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return o}})},1948(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return o}})},4199(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},5126(e,t,r){var o=r(3113).__exportAll({});Object.defineProperty(t,"SharePlugin_exports",{enumerable:!0,get:function(){return o}})},2634(e,t,r){let o=r(7391),n=r(1556),i="[ Federation Runtime ]",a=(e,t,r=o.SEPARATOR)=>{let i=e.split(r),a="development"===n.getProcessEnv().NODE_ENV&&t,s="*",l=e=>e.startsWith("http")||e.includes(o.MANIFEST_EXT);if(i.length>=2){let[t,...o]=i;e.startsWith(r)&&(t=i.slice(0,2).join(r),o=[a||i.slice(2).join(r)]);let n=a||o.join(r);return l(n)?{name:t,entry:n}:{name:t,version:n||s}}if(1===i.length){let[e]=i;return a&&l(a)?{name:e,entry:a}:{name:e,version:a||s}}throw`Invalid entry value: ${e}`},s=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${o.SEPARATOR}${t}`:t:e,""):""},l=function(e,t="",r=!1){try{let n=r?".js":"";return`${t}${e.replace(RegExp(`${o.NameTransformSymbol.AT}`,"g"),o.NameTransformMap[o.NameTransformSymbol.AT]).replace(RegExp(`${o.NameTransformSymbol.HYPHEN}`,"g"),o.NameTransformMap[o.NameTransformSymbol.HYPHEN]).replace(RegExp(`${o.NameTransformSymbol.SLASH}`,"g"),o.NameTransformMap[o.NameTransformSymbol.SLASH])}${n}`}catch(e){throw e}},c=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.AT]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.AT]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.SLASH]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.SLASH]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.HYPHEN]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},u=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),l(r,"__federation_expose_",t)},f=(e,t)=>e?l(e,"__federation_shared_",t):"",h=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!n.isBrowserEnv()&&!n.isReactNativeEnv()&&"ssrPublicPath"in e&&"string"==typeof e.ssrPublicPath?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},d=e=>{throw Error(`${i}: ${e}`)},m=e=>{console.warn(`${i}: ${e}`)};function p(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let g=/^([\d^=v<>~]|[*xX]$)/;function y(e){return g.test(e)}t.assert=(e,t)=>{e||d(t)},t.composeKeyWithSeparator=s,t.decodeName=c,t.encodeName=l,t.error=d,t.generateExposeFilename=u,t.generateShareFilename=f,t.getResourceUrl=h,t.isRequiredVersion=y,t.parseEntry=a,t.safeToString=p,t.warn=m},1326(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,c=i(t),u=0,f=c.length;u<f;u++)l=c[u],s.call(e,l)||l===r||o(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(a=n(t,l))||a.enumerable});return e};t.__toESM=(e,t,n)=>(n=null!=e?r(a(e)):{},l(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e))},3026(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},9592(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},5769(e,t,r){let o=r(3026),n=r(9671),i=r(9864),a=r(9296),s=r(2742);t.consumes=function(e){n.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:c,chunkMapping:u,moduleToHandlerMapping:f}=e;o.attachShareScopeMap(c),c.o(u,t)&&u[t].forEach(e=>{if(c.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,c.m[e]=r=>{delete c.c[e];let o=t(),{shareInfo:n}=f[e];if(n?.shareConfig?.layer&&o&&"object"==typeof o)try{o.hasOwnProperty("layer")&&void 0!==o.layer||(o.layer=n.shareConfig.layer)}catch(e){}r.exports=o}},o=t=>{delete l[e],c.m[e]=r=>{throw delete c.c[e],t}};try{let n=c.federation.instance;if(!n)throw Error("Federation instance not found!");let{shareKey:u,getter:h,shareInfo:d,treeShakingGetter:m}=f[e],p=i.getUsedExports(c,u),g={...d};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),p&&(g.treeShaking={usedExports:p,useIn:[n.options.name]});let y=n.loadShare(u,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof h)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:u}));return m?.()||h()}return e});y.then?r.push(l[e]=y.then(t).catch(o)):t(y)}catch(e){o(e)}})}},9296(e,t){t.RUNTIME_012="RUNTIME-012"},2742(e,t){let r=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`;t.getShortErrorMsg=(e,t,o,n)=>{let i=[`${[t[e]]} #${e}`];return o&&i.push(`args: ${JSON.stringify(o)}`),i.push(r(e)),n&&i.push(`Original Error Message:
6
+ ${n}`),i.join("\n")}},2176(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:o,libraryType:n="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=o.federation;if(!l)return t;let c=l[e];if(!c)return t;let u=r?c.find(e=>e[1]===r):c[0];if(!u)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:o.federation.instance,remoteInfo:{name:u[2],entry:`${o.p}${u[0]}`,type:n,entryGlobalName:u[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(o.federation.instance,s).then(()=>t.get())})}},9864(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},7032(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let o=r(1326),n=r(3026),i=r(5313),a=r(5769),s=r(2614),l=r(8066),c=r(8593),u=r(6554),f=r(2176),h=r(7201),d={runtime:h=o.__toESM(h),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:c.initContainerEntry,init:u.init,getSharedFallbackGetter:f.getSharedFallbackGetter},attachShareScopeMap:n.attachShareScopeMap,bundlerRuntimeOptions:{}},m=d.instance,p=d.initOptions,g=d.bundlerRuntime,y=d.bundlerRuntimeOptions;t.attachShareScopeMap=n.attachShareScopeMap,t.bundlerRuntime=g,t.bundlerRuntimeOptions=y,t.default=d,t.initOptions=p,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return h}})},6554(e,t,r){let o=r(1326),n=r(7201),i=r(1222);i=o.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:o,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");let c=function(){return{name:"tree-shake-plugin",beforeInit(t){let{userOptions:o,origin:c,options:u}=t,f=o.version||u.version;if(!a)return t;let h=o.shared||{},d=[];Object.keys(h).forEach(t=>{(Array.isArray(h[t])?h[t]:[h[t]]).forEach(r=>{d.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let m=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:c.name,version:f});if(!m||!("shared"in m))return t;Object.keys(u.shared||{}).forEach(e=>{u.shared[e].forEach(t=>{d.push([e,t])})});let p=(e,t)=>{let o=m.shared.find(t=>t.sharedName===e);if(!o)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:u}=o;i.status!==u&&(i.status=u,s&&l&&a&&(i.get=async()=>{let e=await (0,n.getRemoteEntry)({origin:c,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(c,r.federation.bundlerRuntime),e.get()}))};return d.forEach(([e,t])=>{p(e,t)}),t}}};return t.plugins||=[],t.plugins.push(c()),o.init(t)}},8593(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:o,shareScopeKey:n,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(n&&"string"!=typeof n)n.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=n||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(n))?t.federation.initOptions.shared?t.I(n,o):Promise.all(n.map(e=>t.I(e,o))).then(()=>!0):t.I(n||"default",o)}},2614(e,t,r){let o=r(3026),n=r(9592);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],c=function(s){a||(a=[]);let l=t.federation.instance;var c=i[s];if(c||(c=i[s]={from:l.name}),a.indexOf(c)>=0)return;a.push(c);let u=r[s];if(u)return u;var f=e=>"u">typeof console&&console.warn&&console.warn(e),h=r=>{var o=e=>f("Initialization of sharing external failed: "+e);try{var n=t(r);if(!n)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,o));var l=i(n);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(o))}catch(e){o(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});o.attachShareScopeMap(t);let m=t.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],r=m.idToExternalAndNameMapping[e][2];if(t.length>1)h(r);else if(1===t.length){let e=t[0];n.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||h(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(c(e))}),Promise.all(l).then(()=>!0)}},8066(e,t,r){let o=r(9671),n=r(9864);function i(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:o,asyncLoad:i}=e,a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=n.getUsedExports(o,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}t.installInitialConsumes=function(e){o.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:n,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{let o=()=>i({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s});l.push([e,o])});let c=(e,o)=>{r.m[e]=i=>{n[e]=0,delete r.c[e];let a=o();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}i.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();c(e,()=>r)}));l.forEach(([e,t])=>{c(e,t)})}},5313(e,t,r){r(1326);let o=r(3026),n=r(9592),i=r(9671),a=r(145);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;o.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let o=c[e],i=u[e]||[];if(t.indexOf(o)>=0)return;if(t.push(o),o.p)return r.push(o.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
7
+ while loading "${o[1]}" from ${o[2]}`),s.m[e]=()=>{throw t},o.p=0},f=(e,t,n,i,a,s)=>{try{let c=e(t,n);if(!c||!c.then)return a(c,i,s);{let e=c.then(e=>a(e,i),l);if(!s)return e;r.push(o.p=e)}}catch(e){l(e)}},h=(e,t,r)=>e?f(s.I,o[0],0,e,d,r):l();var d=(e,r,n)=>f(r.get,o[1],t,0,m,n),m=t=>{o.p=1,s.m[e]=e=>{e.exports=t()}};let p=()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+o[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(o[0])?o[0]:[o[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}};1===i.length&&n.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?f(p,o[2],0,0,m,1):f(s,o[2],0,0,h,1)})}},9671(e,t){function r(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:o={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!o[e]&&a[t.remoteName]){let r=a[t.remoteName];o[e]||=[],r.forEach(t=>{o[e].includes(t)||o[e].push(t)})}n&&Object.entries(s).forEach(([e,t])=>{n[e]||(n[e]=[]),t.forEach(t=>{n[e].includes(t)||n[e].push(t)})}),i._updated=1}}t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:o,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(o&&!o._updated){let{moduleIdToConsumeDataMapping:n={},initialConsumes:l=[],chunkMapping:c={}}=o;if(Object.entries(n).forEach(([e,o])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:o.shareKey,factory:o.fallback,webpackRequire:t,libraryType:s}):o.fallback,treeShakingGetter:i?o.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:o.requiredVersion,strictVersion:o.strictVersion,singleton:o.singleton,eager:o.eager,layer:o.layer},scope:Array.isArray(o.shareScope)?o.shareScope:[o.shareScope||"default"],treeShaking:i?{get:o.fallback,mode:o.treeShakingMode}:void 0},shareKey:o.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(c).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}o._updated=1}if(n&&!n._updated){let{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let o of t)if("object"==typeof o&&null!==o){let{name:t,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={requiredVersion:`^${n}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let h={version:n,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(h):r[t]=[h]}e.instance.registerShared(r),n._updated=1}},t.updateRemoteOptions=r}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(4599),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{__webpack_require__.d=(e,t,r)=>{var o=(t,r)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,[r]:t[o]})};o(t,"get"),o(r,"value")}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>""+e+"."+({232:"2e4cc97d2ebf5013",994:"0763ed7064a0e1d0"})[e]+".js?v="+({232:"2e4cc97d2ebf5013",994:"0763ed7064a0e1d0"})[e]})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="jupyterlab_markdown_syntax_rendering_fix:";__webpack_require__.l=function(r,o,n,i){if(e[r])return void e[r].push(o);if(void 0!==n)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-rspack")==t+n){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-rspack",t+n),a.src=r),e[r]=[o];var f=function(t,o){a.onerror=a.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(function(e){return e(o)}),t)return t(o)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!0},rootOutputDir:""})})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"jupyterlab_markdown_syntax_rendering_fix",version:"0.6.9",factory:()=>__webpack_require__.e(994).then(()=>()=>__webpack_require__(273)),eager:0,treeShakingMode:null,singleton:1}]},uniqueName:"jupyterlab_markdown_syntax_rendering_fix"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{994:["1750"]},moduleIdToConsumeDataMapping:{1750:{shareScope:"default",shareKey:"@jupyterlab/codemirror",import:null,requiredVersion:"^4.6.0-beta.0",strictVersion:!1,singleton:!0,eager:!1,fallback:void 0,treeShakingMode:null}},initialConsumes:[]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{__webpack_require__.initializeExposesData={moduleMap:{"./index":()=>__webpack_require__.e(994).then(()=>()=>__webpack_require__(273)),"./extension":()=>__webpack_require__.e(994).then(()=>()=>__webpack_require__(273)),"./style":()=>__webpack_require__.e(232).then(()=>()=>__webpack_require__(8579))},shareScope:"default"},__webpack_require__.getContainer=__webpack_require__.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},__webpack_require__.initContainer=__webpack_require__.initContainer||function(){throw Error("should have __webpack_require__.initContainer")}})(),(()=>{var e={241:0};__webpack_require__.f.j=function(t,r){var o=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var n=new Promise((r,n)=>o=e[t]=[r,n]);r.push(o[2]=n);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(r){if(__webpack_require__.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,o[1](a)}};__webpack_require__.l(i,s,"chunk-"+t,t)}};var t=(t,r)=>{var o,n,[i,a,s]=r,l=0;if(i.some(t=>0!==e[t])){for(o in a)__webpack_require__.o(a,o)&&(__webpack_require__.m[o]=a[o]);s&&s(__webpack_require__)}for(t&&t(r);l<i.length;l++)n=i[l],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=self.rspackChunkjupyterlab_markdown_syntax_rendering_fix=self.rspackChunkjupyterlab_markdown_syntax_rendering_fix||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(7633)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x();(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB).jupyterlab_markdown_syntax_rendering_fix=__webpack_exports__})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyter/builder in Build.ensureAssets() */
3
+
4
+ import 'jupyterlab_markdown_syntax_rendering_fix/style/index.js';
@@ -0,0 +1,52 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "@module-federation/error-codes",
5
+ "versionInfo": "2.5.1",
6
+ "licenseId": "MIT",
7
+ "extractedText": "MIT License\n\nCopyright (c) 2020 ScriptedAlchemy LLC (Zack Jackson) Zhou Shaw (zhouxiao)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
8
+ },
9
+ {
10
+ "name": "@module-federation/runtime",
11
+ "versionInfo": "2.5.1",
12
+ "licenseId": "MIT",
13
+ "extractedText": "MIT License\n\nCopyright (c) 2023-present zhouxiao(zhoushaw)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
14
+ },
15
+ {
16
+ "name": "@module-federation/runtime-core",
17
+ "versionInfo": "2.5.1",
18
+ "licenseId": "MIT",
19
+ "extractedText": "MIT License\n\nCopyright (c) 2023-present zhouxiao(zhoushaw)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
20
+ },
21
+ {
22
+ "name": "@module-federation/sdk",
23
+ "versionInfo": "2.5.1",
24
+ "licenseId": "MIT",
25
+ "extractedText": "MIT License\n\nCopyright (c) 2023-present zhanghang(2heal1)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
26
+ },
27
+ {
28
+ "name": "@module-federation/webpack-bundler-runtime",
29
+ "versionInfo": "2.5.1",
30
+ "licenseId": "MIT",
31
+ "extractedText": "MIT License\n\nCopyright (c) 2023-present zhanghang(2heal1)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
32
+ },
33
+ {
34
+ "name": "css-loader",
35
+ "versionInfo": "6.11.0",
36
+ "licenseId": "MIT",
37
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
38
+ },
39
+ {
40
+ "name": "process",
41
+ "versionInfo": "0.11.10",
42
+ "licenseId": "MIT",
43
+ "extractedText": "(The MIT License)\n\nCopyright (c) 2013 Roman Shtylman <shtylman@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
44
+ },
45
+ {
46
+ "name": "style-loader",
47
+ "versionInfo": "3.3.4",
48
+ "licenseId": "MIT",
49
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
50
+ }
51
+ ]
52
+ }
@@ -0,0 +1,105 @@
1
+ Metadata-Version: 2.4
2
+ Name: jupyterlab_markdown_syntax_rendering_fix
3
+ Version: 0.6.9
4
+ Summary: Jupyterlab extension to fix a common issue with Markdown renderer where some race condition causes for the fenced code block to not have proper syntax highlighting
5
+ Project-URL: Homepage, https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix
6
+ Project-URL: Bug Tracker, https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix/issues
7
+ Project-URL: Repository, https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix.git
8
+ Author-email: Stellars Henson <konrad.jelen+github@gmail.com>
9
+ License: BSD 3-Clause License
10
+
11
+ Copyright (c) 2026, Stellars Henson
12
+ All rights reserved.
13
+
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions are met:
16
+
17
+ 1. Redistributions of source code must retain the above copyright notice, this
18
+ list of conditions and the following disclaimer.
19
+
20
+ 2. Redistributions in binary form must reproduce the above copyright notice,
21
+ this list of conditions and the following disclaimer in the documentation
22
+ and/or other materials provided with the distribution.
23
+
24
+ 3. Neither the name of the copyright holder nor the names of its
25
+ contributors may be used to endorse or promote products derived from
26
+ this software without specific prior written permission.
27
+
28
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
32
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
+ License-File: LICENSE
39
+ Keywords: jupyter,jupyterlab,jupyterlab-extension
40
+ Classifier: Framework :: Jupyter
41
+ Classifier: Framework :: Jupyter :: JupyterLab
42
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
43
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
44
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
45
+ Classifier: License :: OSI Approved :: BSD License
46
+ Classifier: Programming Language :: Python
47
+ Classifier: Programming Language :: Python :: 3
48
+ Classifier: Programming Language :: Python :: 3.10
49
+ Classifier: Programming Language :: Python :: 3.11
50
+ Classifier: Programming Language :: Python :: 3.12
51
+ Classifier: Programming Language :: Python :: 3.13
52
+ Classifier: Programming Language :: Python :: 3.14
53
+ Requires-Python: >=3.10
54
+ Provides-Extra: dev
55
+ Requires-Dist: jupyter-builder>=1.0.0; extra == 'dev'
56
+ Requires-Dist: jupyterlab>=4; extra == 'dev'
57
+ Description-Content-Type: text/markdown
58
+
59
+ # jupyterlab_markdown_syntax_rendering_fix
60
+
61
+ [![GitHub Actions](https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix/actions/workflows/build.yml/badge.svg)](https://github.com/stellarshenson/jupyterlab_markdown_syntax_rendering_fix/actions/workflows/build.yml)
62
+ [![npm version](https://img.shields.io/npm/v/jupyterlab_markdown_syntax_rendering_fix.svg)](https://www.npmjs.com/package/jupyterlab_markdown_syntax_rendering_fix)
63
+ [![PyPI version](https://img.shields.io/pypi/v/jupyterlab-markdown-syntax-rendering-fix.svg)](https://pypi.org/project/jupyterlab-markdown-syntax-rendering-fix/)
64
+ [![Total PyPI downloads](https://static.pepy.tech/badge/jupyterlab-markdown-syntax-rendering-fix)](https://pepy.tech/project/jupyterlab-markdown-syntax-rendering-fix)
65
+ [![JupyterLab 4](https://img.shields.io/badge/JupyterLab-4-orange.svg)](https://jupyterlab.readthedocs.io/en/stable/)
66
+ [![Brought To You By KOLOMOLO](https://img.shields.io/badge/Brought%20To%20You%20By-KOLOMOLO-00ffff?style=flat)](https://kolomolo.com)
67
+ [![Donate PayPal](https://img.shields.io/badge/Donate-PayPal-blue?style=flat)](https://www.paypal.com/donate/?hosted_button_id=B4KPBJDLLXTSA)
68
+
69
+ Fenced code blocks in rendered Markdown sometimes appear plain and uncoloured - the highlighting silently fails when a CodeMirror language chunk loads late or the language registry is not yet ready, and JupyterLab falls back to plain text. This extension restores the highlighting that was lost to that race.
70
+
71
+ ## Features
72
+
73
+ - **Recovers lost highlighting** - re-applies syntax highlighting to fenced code blocks that rendered plain because the async highlighter missed the cache
74
+ - **Language agnostic** - works for any fenced language (bash, python, json, ...), independent of mermaid
75
+ - **Targets the cold-load race** - handles the case where a language chunk imports late or the registry is wired after an early render
76
+ - **Frontend only** - pure TypeScript labextension, no server component
77
+
78
+ ## How it works
79
+
80
+ JupyterLab highlights fenced code in rendered Markdown with an async pass that fills a cache and a synchronous renderer that reads it. When the async highlight throws - a CodeMirror language-chunk import that rejects, or a registry that is not yet wired when an early render fires - the cache misses and the renderer emits a plain `<pre><code>`. This extension watches the application shell for those plain blocks and re-runs the highlight once the language is available.
81
+
82
+ - **Detect** - a `MutationObserver` flags any rendered `pre > code` that has a `language-*` class and text but no token `<span>` children
83
+ - **Recover** - re-runs the highlight through `IEditorLanguageRegistry` and swaps in the token spans, only when the highlighted text matches the source exactly so it never truncates content
84
+ - **Resilient** - retries a thrown highlight a few times with backoff while the language chunk finishes loading, then gives up cleanly and leaves the original plain text untouched
85
+ - **Unobtrusive** - each block is handled at most once, and editor and overlay churn is skipped to keep the observer cheap
86
+
87
+ ## Requirements
88
+
89
+ - JupyterLab >= 4.0.0
90
+
91
+ ## Install
92
+
93
+ To install the extension, execute:
94
+
95
+ ```bash
96
+ pip install jupyterlab_markdown_syntax_rendering_fix
97
+ ```
98
+
99
+ ## Uninstall
100
+
101
+ To remove the extension, execute:
102
+
103
+ ```bash
104
+ pip uninstall jupyterlab_markdown_syntax_rendering_fix
105
+ ```
@@ -0,0 +1,13 @@
1
+ jupyterlab_markdown_syntax_rendering_fix/__init__.py,sha256=_5y1Wm3korTXjbe6rpkDahoGqvI6yb1-AtLq3lsCt5o,638
2
+ jupyterlab_markdown_syntax_rendering_fix/_version.py,sha256=zn2ECeddqSBbdl2lqJ7vjqxAB3bVLD7MZqr0PEhoqDs,171
3
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/package.json,sha256=QANteXelnFcLykwNuZApPqd2T0rmZ4nq4pYtYxyD8Cg,4779
4
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/232.2e4cc97d2ebf5013.js,sha256=UoXOnN6XGg-z2tAgy65I4AM_DQlauRRyLmQdx-8mPpM,3944
5
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/994.0763ed7064a0e1d0.js,sha256=IEzU9-cH7wJ5l6feiQKbtDoA7QWMnEbtrcqA0qKLLZU,2300
6
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/remoteEntry.9bb7131db659374e.js,sha256=Lt-U9Y5n6l2qYnALspHQMP_FBdkRb3mXUbG3M5x8eXk,112468
7
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/style.js,sha256=Rm4lnqbiz5nBuKNHnwldQzRaFTb-FbIJbSWap_-hsqg,180
8
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/static/third-party-licenses.json,sha256=rik9pCMEKCwtRYOPOZx8PE-JN7FUQvRoURoGdvTeVoU,9978
9
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.data/data/share/jupyter/labextensions/jupyterlab_markdown_syntax_rendering_fix/install.json,sha256=4PbVuvFto2AbuErfWf4wG1EC30adgLRrEdmgwxvsjuA,241
10
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/METADATA,sha256=GyjjDgwycma6moLcJL_qx0tlvOokT6YCbJYLBrmVX3Q,6659
11
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/licenses/LICENSE,sha256=5WO6BCE6llvhQT-r4BgmmbzCtABwpeGuJse1ab3HXFo,1523
13
+ jupyterlab_markdown_syntax_rendering_fix-0.6.9.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Stellars Henson
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.