@empjs/share 3.11.1 → 3.11.3
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.
- package/output/sdk.js +1 -1
- package/package.json +6 -6
package/output/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function _async_to_generator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,i,c,"throw",e)}i(void 0)})}}function _call_super(e,t,n){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,n||[],_get_prototype_of(e).constructor):t.apply(e,n))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _create_class(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _define_property(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_define_property(e,t,n[t])})}return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function _object_without_properties(e,t){if(null==e)return{};var n,r,o=_object_without_properties_loose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _object_without_properties_loose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_array(e){return _array_with_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_array_like_to_array(e,t):void 0}}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var EMP_SHARE_RUNTIME=function(exports){"use strict";var nr=Object.defineProperty,dt=function(e,t){for(var n in t)nr(e,n,{get:t[n],enumerable:!0})},ft={};dt(ft,{Module:function(){return ee},ModuleFederation:function(){return K},createInstance:function(){return rr},getInstance:function(){return Xn},getRemoteEntry:function(){return Q},getRemoteInfo:function(){return de},init:function(){return jn},loadRemote:function(){return Bn},loadScript:function(){return q},loadScriptNode:function(){return z},loadShare:function(){return Wn},loadShareSync:function(){return Kn},preloadRemote:function(){return qn},registerGlobalPlugins:function(){return Ht},registerPlugins:function(){return Yn},registerRemotes:function(){return zn},registerShared:function(){return Jn}});var je={},_obj,_obj1;dt(je,{BROWSER_LOG_KEY:function(){return ht},ENCODE_NAME_PREFIX:function(){return lr},EncodedNameTransformMap:function(){return me},FederationModuleManifest:function(){return or},MANIFEST_EXT:function(){return xe},MFModuleType:function(){return ar},MFPrefetchCommon:function(){return fr},MODULE_DEVTOOL_IDENTIFIER:function(){return cr},ManifestFileName:function(){return sr},NameTransformMap:function(){return v},NameTransformSymbol:function(){return I},SEPARATOR:function(){return He},StatsFileName:function(){return ir},TEMP_DIR:function(){return ur},assert:function(){return Rr},bindLoggerToCompiler:function(){return Tr},composeKeyWithSeparator:function(){return Ee},containerPlugin:function(){return dr},containerReferencePlugin:function(){return hr},createInfrastructureLogger:function(){return gt},createLink:function(){return ie},createLogger:function(){return Se},createModuleFederationConfig:function(){return Mr},createScript:function(){return Ie},createScriptNode:function(){return Rt},decodeName:function(){return Er},encodeName:function(){return Ce},error:function(){return yt},generateExposeFilename:function(){return gr},generateShareFilename:function(){return br},generateSnapshotFromManifest:function(){return Ge},getProcessEnv:function(){return pt},getResourceUrl:function(){return se},inferAutoPublicPath:function(){return _t},infrastructureLogger:function(){return Or},isBrowserEnv:function(){return x},isDebugMode:function(){return oe},isManifestProvider:function(){return Re},isReactNativeEnv:function(){return _e},isRequiredVersion:function(){return Ir},isStaticResourcesEqual:function(){return Ve},loadScript:function(){return q},loadScriptNode:function(){return z},logger:function(){return wr},moduleFederationPlugin:function(){return pr},normalizeOptions:function(){return Pr},parseEntry:function(){return _r},safeToString:function(){return be},safeWrapper:function(){return Ue},sharePlugin:function(){return mr},simpleJoinRemoteEntry:function(){return re},warn:function(){return ge}});var or="federation-manifest.json",xe=".json",ht="FEDERATION_DEBUG",I={AT:"@",HYPHEN:"-",SLASH:"/"},v=(_obj={},_define_property(_obj,I.AT,"scope_"),_define_property(_obj,I.HYPHEN,"_"),_define_property(_obj,I.SLASH,"__"),_obj),me=(_obj1={},_define_property(_obj1,v[I.AT],I.AT),_define_property(_obj1,v[I.HYPHEN],I.HYPHEN),_define_property(_obj1,v[I.SLASH],I.SLASH),_obj1),He=":",sr="mf-manifest.json",ir="mf-stats.json",ar={NPM:"npm",APP:"app"},cr="__MF_DEVTOOLS_MODULE_INFO__",lr="ENCODE_NAME_PREFIX",ur=".federation",fr={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"},dr=Object.freeze({__proto__:null}),hr=Object.freeze({__proto__:null}),pr=Object.freeze({__proto__:null}),mr=Object.freeze({__proto__:null});function x(){return("undefined"==typeof window?"undefined":_type_of(window))<"u"&&_type_of(window.document)<"u"}function _e(){var e;return("undefined"==typeof navigator?"undefined":_type_of(navigator))<"u"&&"ReactNative"===(null===(e=navigator)||void 0===e?void 0:e.product)}function yr(){try{if(x()&&window.localStorage)return!!localStorage.getItem(ht)}catch(e){return!1}return!1}function oe(){return("undefined"==typeof process?"undefined":_type_of(process))<"u"&&process.env,yr()}var pt=function(){return("undefined"==typeof process?"undefined":_type_of(process))<"u"&&process.env?process.env:{}},mt="[ Federation Runtime ]",_r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:He,r=e.split(n),o="development"===pt().NODE_ENV&&t,a=function(e){return e.startsWith("http")||e.includes(xe)};if(r.length>=2){var i=_to_array(r),c=i[0],s=i.slice(1);e.startsWith(n)&&(c=r.slice(0,2).join(n),s=[o||r.slice(2).join(n)]);var u=o||s.join(n);return a(u)?{name:c,entry:u}:{name:c,version:u||"*"}}if(1===r.length){var l=_sliced_to_array(r,1)[0];return o&&a(o)?{name:l,entry:o}:{name:l,version:o||"*"}}throw"Invalid entry value: ".concat(e)},Ee=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length?t.reduce(function(e,t){return t?e?"".concat(e).concat(He).concat(t):t:e},""):""},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var r=n?".js":"";return"".concat(t).concat(e.replace(new RegExp("".concat(I.AT),"g"),v[I.AT]).replace(new RegExp("".concat(I.HYPHEN),"g"),v[I.HYPHEN]).replace(new RegExp("".concat(I.SLASH),"g"),v[I.SLASH])).concat(r)}catch(e){throw e}},Er=function(e,t,n){try{var r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.replace(new RegExp("".concat(v[I.AT]),"g"),me[v[I.AT]]).replace(new RegExp("".concat(v[I.SLASH]),"g"),me[v[I.SLASH]]).replace(new RegExp("".concat(v[I.HYPHEN]),"g"),me[v[I.HYPHEN]]),n&&(r=r.replace(".js","")),r}catch(e){throw e}},gr=function(e,t){if(!e)return"";var n=e;return"."===n&&(n="default_export"),n.startsWith("./")&&(n=n.replace("./","")),Ce(n,"__federation_expose_",t)},br=function(e,t){return e?Ce(e,"__federation_shared_",t):""},se=function(e,t){var n;return"getPublicPath"in e?(n=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),"".concat(n).concat(t)):"publicPath"in e?x()||_e()||!("ssrPublicPath"in e)?"".concat(e.publicPath).concat(t):"".concat(e.ssrPublicPath).concat(t):(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},Rr=function(e,t){e||yt(t)},yt=function(e){throw new Error("".concat(mt,": ").concat(e))},ge=function(e){console.warn("".concat(mt,": ").concat(e))};function be(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}var Sr=/^([\d^=v<>~]|[*xX]$)/;function Ir(e){return Sr.test(e)}var re=function(e,t){if(!e)return t;var n=function(e){if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){var t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e}(e);return n?n.endsWith("/")?"".concat(n).concat(t):"".concat(n,"/").concat(t):t};function _t(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Ge(e){var t,n,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.remotes,c=void 0===i?{}:i,s=a.overrides,u=void 0===s?{}:s,l=a.version,f=function(){return"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&l?_t(l):e.metaData.publicPath:e.metaData.getPublicPath},_=Object.keys(u),h={};Object.keys(c).length||(h=(null===(t=e.remotes)||void 0===t?void 0:t.reduce(function(e,t){var n,r=t.federationContainerName;return n=_.includes(r)?u[r]:"version"in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(c).forEach(function(e){return h[e]={matchedVersion:_.includes(e)?u[e]:c[e]}});var p=e.metaData,d=p.remoteEntry,m=d.path,y=d.name,v=d.type,g=p.types,b=p.buildInfo.buildVersion,E=p.globalName,S=p.ssrRemoteEntry,I=e.exposes,N={version:l||"",buildVersion:b,globalName:E,remoteEntry:re(m,y),remoteEntryType:v,remoteTypes:re(g.path,g.name),remoteTypesZip:g.zip||"",remoteTypesAPI:g.api||"",remotesInfo:h,shared:null==e?void 0:e.shared.map(function(e){return{assets:e.assets,sharedName:e.name,version:e.version}}),modules:null==I?void 0:I.map(function(e){return{moduleName:e.name,modulePath:e.path,assets:e.assets}})};if(null===(n=e.metaData)||void 0===n?void 0:n.prefetchInterface){var w=e.metaData.prefetchInterface;N=_object_spread_props(_object_spread({},N),{prefetchInterface:w})}if(null===(r=e.metaData)||void 0===r?void 0:r.prefetchEntry){var R=e.metaData.prefetchEntry,A=R.path,k=R.name,O=R.type;N=_object_spread_props(_object_spread({},N),{prefetchEntry:re(A,k),prefetchEntryType:O})}if(o="publicPath"in e.metaData?_object_spread_props(_object_spread({},N),{publicPath:f(),ssrPublicPath:e.metaData.ssrPublicPath}):_object_spread_props(_object_spread({},N),{getPublicPath:f()}),S){var j=re(S.path,S.name);o.ssrRemoteEntry=j,o.ssrRemoteEntryType=S.type||"commonjs-module"}return o}function Re(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(xe))}var Et="[ Module Federation ]",te=console,$r=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Nr(){try{var e=(new Error).stack;if(!e)return;var t=_to_array(e.split("\n")).slice(1).filter(function(e){return!$r.some(function(t){return e.includes(t)})});return t.length?"Stack trace:\n".concat(t.slice(0,5).join("\n")):void 0}catch(e){return}}var ye=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te;_class_call_check(this,e),this.prefix=t,this.delegate=null!=n?n:te}return _create_class(e,[{key:"setPrefix",value:function(e){this.prefix=e}},{key:"setDelegate",value:function(e){this.delegate=null!=e?e:te}},{key:"emit",value:function(e,t){var n=this.delegate,r=oe()?Nr():void 0,o=r?_to_consumable_array(t).concat([r]):t,a=function(){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"]}}(),i=!0,c=!1,s=void 0;try{for(var u,l=a[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f,_=n[u.value];if("function"==typeof _)return void(f=_).call.apply(f,[n,this.prefix].concat(_to_consumable_array(o)))}}catch(e){c=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(c)throw s}}var h=!0,p=!1,d=void 0;try{for(var m,y=a[Symbol.iterator]();!(h=(m=y.next()).done);h=!0){var v,g=m.value,b=te[g];if("function"==typeof b)return void(v=b).call.apply(v,[te,this.prefix].concat(_to_consumable_array(o)))}}catch(e){p=!0,d=e}finally{try{h||null==y.return||y.return()}finally{if(p)throw d}}}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("log",t)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("warn",t)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("error",t)}},{key:"success",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"ready",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];oe()&&this.emit("debug",t)}}]),e}();function Se(e){return new ye(e)}function gt(e){var t=new ye(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Tr(e,t,n){if(e.__mf_infrastructure_logger__&&(null==t?void 0:t.getInfrastructureLogger))try{var r=t.getInfrastructureLogger(n);r&&"object"==(void 0===r?"undefined":_type_of(r))&&("function"==typeof r.log||"function"==typeof r.info||"function"==typeof r.warn||"function"==typeof r.error)&&e.setDelegate(r)}catch(t){e.setDelegate(void 0)}}var wr=Se(Et),Or=gt(Et);function Ue(e,t){return _async_to_generator(function(){var n;return _ts_generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),!t&&ge(n),[2];case 3:return[2]}})})()}function Ve(e,t){var n=/^(https?:)?\/\//i;return e.replace(n,"").replace(/\/$/,"")===t.replace(n,"").replace(/\/$/,"")}function Ie(e){for(var t,n=null,r=!0,o=2e4,a=document.getElementsByTagName("script"),i=0;i<a.length;i++){var c=a[i],s=c.getAttribute("src");if(s&&Ve(s,e.url)){n=c,r=!1;break}}if(!n){var u,l=e.attrs;(n=document.createElement("script")).type="module"===(null==l?void 0:l.type)?"module":"text/javascript",e.createScriptHook&&(_instanceof(u=e.createScriptHook(e.url,e.attrs),HTMLScriptElement)?n=u:"object"==(void 0===u?"undefined":_type_of(u))&&("script"in u&&u.script&&(n=u.script),"timeout"in u&&u.timeout&&(o=u.timeout))),n.src||(n.src=e.url),l&&!u&&Object.keys(l).forEach(function(e){n&&("async"===e||"defer"===e?n[e]=l[e]:n.getAttribute(e)||n.setAttribute(e,l[e]))})}var f=function(r,o){return _async_to_generator(function(){var a,i,c;return _ts_generator(this,function(s){switch(s.label){case 0:return clearTimeout(t),a=function(){"error"===(null==o?void 0:o.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(o)):(null==e?void 0:e.cb)&&(null==e||e.cb())},n&&(n.onerror=null,n.onload=null,Ue(function(){var t=e.needDeleteScript;(void 0===t||t)&&(null==n?void 0:n.parentNode)&&n.parentNode.removeChild(n)}),r&&"function"==typeof r)?_instanceof(i=r(o),Promise)?[4,i]:[3,2]:[3,3];case 1:return c=s.sent(),[2,(a(),c)];case 2:return[2,(a(),i)];case 3:return a(),[2]}})})()};return n.onerror=f.bind(null,n.onerror),n.onload=f.bind(null,n.onload),t=setTimeout(function(){f(null,new Error('Remote script "'.concat(e.url,'" time-outed.')))},o),{script:n,needAttach:r}}function ie(e){for(var t=null,n=!0,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var a=r[o],i=a.getAttribute("href"),c=a.getAttribute("rel");if(i&&Ve(i,e.url)&&c===e.attrs.rel){t=a,n=!1;break}}if(!t){(t=document.createElement("link")).setAttribute("href",e.url);var s,u=e.attrs;e.createLinkHook&&(_instanceof(s=e.createLinkHook(e.url,u),HTMLLinkElement)&&(t=s)),u&&!s&&Object.keys(u).forEach(function(e){t&&!t.getAttribute(e)&&t.setAttribute(e,u[e])})}var l=function(n,r){var o=function(){"error"===(null==r?void 0:r.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(r)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,Ue(function(){var n=e.needDeleteLink;(void 0===n||n)&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n)){var a=n(r);return o(),a}o()};return t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),{link:t,needAttach:n}}function q(e,t){var n=t.attrs,r=void 0===n?{}:n,o=t.createScriptHook;return new Promise(function(t,n){var a=Ie({url:e,cb:t,onErrorCallback:n,attrs:_object_spread({fetchpriority:"high"},r),createScriptHook:o,needDeleteScript:!0}),i=a.script;a.needAttach&&document.head.appendChild(i)})}var pe=new Map;function ne(e){if(!e)throw new Error("import specifier is required");if(pe.has(e))return pe.get(e);var t=new Function("name","return import(name)")(e).then(function(e){return e}).catch(function(t){throw console.error("Error importing module ".concat(e,":"),t),pe.delete(e),t});return pe.set(e,t),t}var bt=function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,ne("node-fetch")];case 1:return[2,(e=t.sent()).default||e]}})})()},Ar=function(e,t,n){return _async_to_generator(function(){var r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,(c=e,s=t||{},n.lifecycle.fetch.emit(c,s))];case 1:return(r=i.sent())&&_instanceof(r,Response)?[3,5]:("undefined"==typeof fetch?"undefined":_type_of(fetch))>"u"?[4,bt()]:[3,3];case 2:return a=i.sent(),[3,4];case 3:a=fetch,i.label=4;case 4:return o=a(e,t||{}),[3,6];case 5:o=r,i.label=6;case 6:return[2,o]}var c,s})})()},Rt=("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))>"u"||"web"!==ENV_TARGET?function(url,cb,attrs,loaderHook){if(null==loaderHook?void 0:loaderHook.createScriptHook){var _$t=loaderHook.createScriptHook(url);_$t&&"object"==(void 0===_$t?"undefined":_type_of(_$t))&&"url"in _$t&&(url=_$t.url)}var urlObj;try{urlObj=new URL(url)}catch(e){return console.error("Error constructing URL:",e),void cb(new Error("Invalid URL: ".concat(e)))}var getFetch=function(){return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,(null==loaderHook?void 0:loaderHook.fetch)?function(e,t){return Ar(e,t,loaderHook)}:("undefined"==typeof fetch?"undefined":_type_of(fetch))>"u"?bt():fetch]})})()},handleScriptFetch=function(f,urlObj){return _async_to_generator(function(){var _vm_constants,_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER,res,data,_ref,path,vm,scriptContext,urlDirname,filename,script,exportedInterface,_$t,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return _state.trys.push([0,4,,5]),[4,f(urlObj.href)];case 1:return res=_state.sent(),[4,res.text()];case 2:return data=_state.sent(),[4,Promise.all([ne("path"),ne("vm")])];case 3:return _ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),path=_ref[0],vm=_ref[1],scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data,"\n})"),{filename:filename,importModuleDynamically:null!==(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=null===(_vm_constants=vm.constants)||void 0===_vm_constants?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)&&void 0!==_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:ne}),script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename),exportedInterface=scriptContext.module.exports||scriptContext.exports,attrs&&exportedInterface&&attrs.globalName?(_$t=exportedInterface[attrs.globalName]||exportedInterface,cb(void 0,_$t),[2]):(cb(void 0,exportedInterface),[3,5]);case 4:return t=_state.sent(),cb(_instanceof(t,Error)?t:new Error("Script execution error: ".concat(t))),[3,5];case 5:return[2]}})})()};getFetch().then(function(e){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return"esm"!==(null==attrs?void 0:attrs.type)&&"module"!==(null==attrs?void 0:attrs.type)?[3,2]:(t=[urlObj.href],n={fetch:e},[4,ne("vm")]);case 1:return[2,ke.apply(void 0,t.concat([(n.vm=r.sent(),n)])).then(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,e.evaluate()];case 1:return t.sent(),cb(void 0,e.namespace),[2]}})})()}).catch(function(e){cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)))})];case 2:return handleScriptFetch(e,urlObj),[2]}})})()}).catch(function(e){cb(e)})}:function(e,t,n,r){t(new Error("createScriptNode is disabled in non-Node.js environment"))},z=("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))>"u"||"web"!==ENV_TARGET?function(e,t){return new Promise(function(n,r){Rt(e,function(e,o){if(e)r(e);else{var a,i,c=(null==t||null===(a=t.attrs)||void 0===a?void 0:a.globalName)||"__FEDERATION_".concat(null==t||null===(i=t.attrs)||void 0===i?void 0:i.name,":custom__"),s=globalThis[c]=o;n(s)}},t.attrs,t.loaderHook)})}:function(e,t){throw new Error("loadScriptNode is disabled in non-Node.js environment")},De=new Map;function ke(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return De.has(e)?[2,De.get(e)]:(n=t.fetch,r=t.vm,[4,n(e)]);case 1:return[4,i.sent().text()];case 2:return o=i.sent(),a=new r.SourceTextModule(o,{importModuleDynamically:function(n,r){return _async_to_generator(function(){return _ts_generator(this,function(r){return[2,ke(new URL(n,e).href,t)]})})()}}),De.set(e,a),[4,a.link(function(n){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,ke(new URL(n,e).href,t)];case 1:return[2,r.sent()]}})})()})];case 3:return[2,(i.sent(),a)]}})})()}function Pr(e,t,n){return function(r){if(!1===r)return!1;if((void 0===r?"undefined":_type_of(r))>"u")return!!e&&t;if(!0===r)return t;if(r&&"object"==(void 0===r?"undefined":_type_of(r)))return _object_spread({},t,r);throw new Error("Unexpected type for `".concat(n,"`, expect boolean/undefined/object, got: ").concat(void 0===r?"undefined":_type_of(r)))}}var Mr=function(e){return e},_obj2,Be="RUNTIME-001",We="RUNTIME-002",Ke="RUNTIME-003",qe="RUNTIME-004",ze="RUNTIME-005",$e="RUNTIME-006",Ye="RUNTIME-007",Ne="RUNTIME-008",j="RUNTIME-009",Dr=function(e){return"View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/".concat(e.split("-")[0].toLowerCase(),"/").concat(e)},A=function(e,t,n,r){var o=["".concat([t[e]]," #").concat(e)];return n&&o.push("args: ".concat(JSON.stringify(n))),o.push(Dr(e)),r&&o.push("Original Error Message:\n ".concat(r)),o.join("\n")},w=(_obj2={},_define_property(_obj2,Be,"Failed to get remoteEntry exports."),_define_property(_obj2,We,'The remote entry interface does not contain "init"'),_define_property(_obj2,Ke,"Failed to get manifest."),_define_property(_obj2,qe,"Failed to locate remote."),_define_property(_obj2,ze,"Invalid loadShareSync function call from bundler runtime"),_define_property(_obj2,$e,"Invalid loadShareSync function call from runtime"),_define_property(_obj2,Ye,"Failed to get remote snapshot."),_define_property(_obj2,Ne,"Failed to load script resources."),_define_property(_obj2,j,"Please call createInstance first."),_obj2),X="[ Federation Runtime ]",Qe=Se(X);function $(e,t){e||G(t)}function G(e){throw _instanceof(e,Error)?(e.message.startsWith(X)||(e.message="".concat(X,": ").concat(e.message)),e):new Error("".concat(X,": ").concat(e))}function Le(e){_instanceof(e,Error)&&(e.message.startsWith(X)||(e.message="".concat(X,": ").concat(e.message))),Qe.warn(e)}function St(e,t){return-1===e.findIndex(function(e){return e===t})&&e.push(t),e}function le(e){return"version"in e&&e.version?"".concat(e.name,":").concat(e.version):"entry"in e&&e.entry?"".concat(e.name,":").concat(e.entry):"".concat(e.name)}function ot(e){return _type_of(e.entry)<"u"}function Mt(e){return!e.entry.includes(".json")}function st(e){return e&&"object"==(void 0===e?"undefined":_type_of(e))}var Hr=Object.prototype.toString;function Cr(e){return"[object Object]"===Hr.call(e)}function vt(e){return Array.isArray(e)?e:[e]}function Lt(e){var t={url:"",type:"global",globalName:""};return x()||_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}var Gr=function(e,t){var n;return n=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),n+=t},N="object"==("undefined"==typeof globalThis?"undefined":_type_of(globalThis))?globalThis:window,D=function(){try{return document.defaultView}catch(e){return N}}(),ue=D;function we(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function Oe(e,t){return Object.hasOwnProperty.call(e,t)}Oe(N,"__GLOBAL_LOADING_REMOTE_ENTRY__")||we(N,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});var Y=N.__GLOBAL_LOADING_REMOTE_ENTRY__;function Ft(e){var t,n,r,o,a,i,c,s,u,l,f,_;Oe(e,"__VMOK__")&&!Oe(e,"__FEDERATION__")&&we(e,"__FEDERATION__",e.__VMOK__),Oe(e,"__FEDERATION__")||(we(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),we(e,"__VMOK__",e.__FEDERATION__)),null!==(c=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)&&void 0!==c||(t.__GLOBAL_PLUGIN__=[]),null!==(s=(n=e.__FEDERATION__).__INSTANCES__)&&void 0!==s||(n.__INSTANCES__=[]),null!==(u=(r=e.__FEDERATION__).moduleInfo)&&void 0!==u||(r.moduleInfo={}),null!==(l=(o=e.__FEDERATION__).__SHARE__)&&void 0!==l||(o.__SHARE__={}),null!==(f=(a=e.__FEDERATION__).__MANIFEST_LOADING__)&&void 0!==f||(a.__MANIFEST_LOADING__={}),null!==(_=(i=e.__FEDERATION__).__PRELOADED_MAP__)&&void 0!==_||(i.__PRELOADED_MAP__=new Map)}function Dt(e){N.__FEDERATION__.__INSTANCES__.push(e)}function kt(){return N.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function xt(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe())&&(N.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,N.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.21.2")}function J(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};var n=Object.keys(e),r=!0,o=!1,a=void 0;try{for(var i,c=n[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var s=_sliced_to_array(i.value.split(":"),2),u=s[0],l=(s[1],"".concat(u,":").concat(t)),f=e[l];if(f)return{value:f,key:l}}}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return{value:void 0,key:t}}throw new Error("key must be string")}Ft(N),Ft(D);var It=function(){return D.__FEDERATION__.moduleInfo},Ur=function(e,t){var n=J(t,le(e)).value;if(n&&!n.version&&"version"in e&&e.version&&(n.version=e.version),n)return n;if("version"in e&&e.version){var r=e.version,o=le(_object_without_properties(e,["version"])),a=J(D.__FEDERATION__.moduleInfo,o).value;if((null==a?void 0:a.version)===r)return a}},Ae=function(e){return Ur(e,D.__FEDERATION__.moduleInfo)},$t=function(e,t){var n=le(e);return D.__FEDERATION__.moduleInfo[n]=t,D.__FEDERATION__.moduleInfo},Vr=function(e){return D.__FEDERATION__.moduleInfo=_object_spread({},D.__FEDERATION__.moduleInfo,e),function(){var t=Object.keys(e),n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;delete D.__FEDERATION__.moduleInfo[c]}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}},it=function(e,t){var n=t||"__FEDERATION_".concat(e,":custom__");return{remoteEntryKey:n,entryExports:N[n]}},Ht=function(e){var t=D.__FEDERATION__.__GLOBAL_PLUGIN__;e.forEach(function(e){-1===t.findIndex(function(t){return t.name===e.name})?t.push(e):Le("The plugin ".concat(e.name," has been registered."))})},jr=function(){return D.__FEDERATION__.__GLOBAL_PLUGIN__},Br=function(e){return N.__FEDERATION__.__PRELOADED_MAP__.get(e)},Wr=function(e){return N.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)},he="default",Ct="global",Nt="[0-9A-Za-z-]+",at="(?:\\+(".concat(Nt,"(?:\\.").concat(Nt,")*))"),ce="0|[1-9]\\d*",Pe="[0-9]+",Gt="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Tt="(?:".concat(Pe,"|").concat(Gt,")"),Kr="(?:-?(".concat(Tt,"(?:\\.").concat(Tt,")*))"),wt="(?:".concat(ce,"|").concat(Gt,")"),Ut="(?:-(".concat(wt,"(?:\\.").concat(wt,")*))"),Xe="".concat(ce,"|x|X|\\*"),Z="[v=\\s]*(".concat(Xe,")(?:\\.(").concat(Xe,")(?:\\.(").concat(Xe,")(?:").concat(Ut,")?").concat(at,"?)?)?"),qr="^\\s*(".concat(Z,")\\s+-\\s+(").concat(Z,")\\s*$"),zr="(".concat(Pe,")\\.(").concat(Pe,")\\.(").concat(Pe,")"),Yr="[v=\\s]*".concat(zr).concat(Kr,"?").concat(at,"?"),ct="((?:<|>)?=?)",Xr="(\\s*)".concat(ct,"\\s*(").concat(Yr,"|").concat(Z,")"),Vt="(?:~>?)",Jr="(\\s*)".concat(Vt,"\\s+"),jt="(?:\\^)",Zr="(\\s*)".concat(jt,"\\s+"),Qr="(<|>)?=?\\s*\\*",en="^".concat(jt).concat(Z,"$"),tn="(".concat(ce,")\\.(").concat(ce,")\\.(").concat(ce,")"),rn="v?".concat(tn).concat(Ut,"?").concat(at,"?"),nn="^".concat(Vt).concat(Z,"$"),on="^".concat(ct,"\\s*").concat(Z,"$"),sn="^".concat(ct,"\\s*(").concat(rn,")$|^$"),an="^\\s*>=\\s*0.0.0\\s*$";function U(e){return new RegExp(e)}function P(e){return!e||"x"===e.toLowerCase()||"*"===e}function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}}function Ot(e){return e.match(U(sn))}function At(e,t,n,r){var o="".concat(e,".").concat(t,".").concat(n);return r?"".concat(o,"-").concat(r):o}function cn(e){return e.replace(U(qr),function(e,t,n,r,o,a,i,c,s,u,l,f){return t=P(n)?"":P(r)?">=".concat(n,".0.0"):P(o)?">=".concat(n,".").concat(r,".0"):">=".concat(t),c=P(s)?"":P(u)?"<".concat(Number(s)+1,".0.0-0"):P(l)?"<".concat(s,".").concat(Number(u)+1,".0-0"):f?"<=".concat(s,".").concat(u,".").concat(l,"-").concat(f):"<=".concat(c),"".concat(t," ").concat(c).trim()})}function ln(e){return e.replace(U(Xr),"$1$2$3")}function un(e){return e.replace(U(Jr),"$1~")}function fn(e){return e.replace(U(Zr),"$1^")}function dn(e){return e.trim().split(/\s+/).map(function(e){return e.replace(U(en),function(e,t,n,r,o){return P(t)?"":P(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):P(r)?"0"===t?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".0 <").concat(Number(t)+1,".0.0-0"):o?"0"===t?"0"===n?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(Number(t)+1,".0.0-0"):"0"===t?"0"===n?">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(Number(t)+1,".0.0-0")})}).join(" ")}function hn(e){return e.trim().split(/\s+/).map(function(e){return e.replace(U(nn),function(e,t,n,r,o){return P(t)?"":P(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):P(r)?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):o?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0")})}).join(" ")}function pn(e){return e.split(/\s+/).map(function(e){return e.trim().replace(U(on),function(e,t,n,r,o,a){var i=P(n),c=i||P(r),s=c||P(o);return"="===t&&s&&(t=""),a="",i?">"===t||"<"===t?"<0.0.0-0":"*":t&&s?(c&&(r=0),o=0,">"===t?(t=">=",c?(n=Number(n)+1,r=0,o=0):(r=Number(r)+1,o=0)):"<="===t&&(t="<",c?n=Number(n)+1:r=Number(r)+1),"<"===t&&(a="-0"),"".concat(t+n,".").concat(r,".").concat(o).concat(a)):c?">=".concat(n,".0.0").concat(a," <").concat(Number(n)+1,".0.0-0"):s?">=".concat(n,".").concat(r,".0").concat(a," <").concat(n,".").concat(Number(r)+1,".0-0"):e})}).join(" ")}function mn(e){return e.trim().replace(U(Qr),"")}function yn(e){return e.trim().replace(U(an),"")}function Me(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function _n(e,t){var n=e.preRelease,r=t.preRelease;if(void 0===n&&r)return 1;if(n&&void 0===r)return-1;if(void 0===n&&void 0===r)return 0;for(var o=0,a=n.length;o<=a;o++){var i=n[o],c=r[o];if(i!==c)return void 0===i&&void 0===c?0:i?c?Me(i,c):-1:1}return 0}function Te(e,t){return Me(e.major,t.major)||Me(e.minor,t.minor)||Me(e.patch,t.patch)||_n(e,t)}function Je(e,t){return e.version===t.version}function En(e,t){switch(e.operator){case"":case"=":return Je(e,t);case">":return Te(e,t)<0;case">=":return Je(e,t)||Te(e,t)<0;case"<":return Te(e,t)>0;case"<=":return Je(e,t)||Te(e,t)>0;case void 0:return!0;default:return!1}}function gn(e){return Bt(dn,hn,pn,mn)(e)}function bn(e){return Bt(cn,ln,un,fn)(e.trim()).split(/\s+/).join(" ")}function ve(e,t){if(!e)return!1;var n=Ot(e);if(!n)return!1;var r=_sliced_to_array(n,7),o=r[1],a=r[3],i=r[4],c=r[5],s=r[6],u={operator:o,version:At(a,i,c,s),major:a,minor:i,patch:c,preRelease:null==s?void 0:s.split(".")},l=t.split("||"),f=!0,_=!1,h=void 0;try{for(var p,d=l[Symbol.iterator]();!(f=(p=d.next()).done);f=!0){var m=p.value.trim();if(!m||"*"===m||"x"===m)return!0;try{var y=bn(m);if(!y.trim())return!0;var v=y.split(" ").map(function(e){return gn(e)}).join(" ");if(!v.trim())return!0;var g=v.split(/\s+/).map(function(e){return yn(e)}).filter(Boolean);if(0===g.length)continue;var b=!0,E=!0,S=!1,I=void 0;try{for(var N,w=g[Symbol.iterator]();!(E=(N=w.next()).done);E=!0){var R=Ot(N.value);if(!R){b=!1;break}var A=_sliced_to_array(R,7),k=A[1],O=A[3],j=A[4],T=A[5],P=A[6];if(!En({operator:k,version:At(O,j,T,P),major:O,minor:j,patch:T,preRelease:null==P?void 0:P.split(".")},u)){b=!1;break}}}catch(e){S=!0,I=e}finally{try{E||null==w.return||w.return()}finally{if(S)throw I}}if(b)return!0}catch(e){console.error('[semver] Error processing range part "'.concat(m,'":'),e);continue}}}catch(e){_=!0,h=e}finally{try{f||null==d.return||d.return()}finally{if(_)throw h}}return!1}function Rn(e,t,n,r){var o,a,i,c;return o="get"in e?e.get:"lib"in e?function(){return Promise.resolve(e.lib)}:function(){return Promise.resolve(function(){throw new Error("Can not get shared '".concat(n,"'!"))})},_object_spread_props(_object_spread({deps:[],useIn:[],from:t,loading:null},e),{shareConfig:_object_spread({requiredVersion:"^".concat(e.version),singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:o,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!==(a=e.version)&&void 0!==a?a:"0",scope:Array.isArray(e.scope)?e.scope:[null!==(i=e.scope)&&void 0!==i?i:"default"],strategy:(null!==(c=e.strategy)&&void 0!==c?c:r)||"version-first"})}function Wt(e,t){var n=t.shared||{},r=t.name,o=Object.keys(n).reduce(function(e,o){var a=vt(n[o]);return e[o]=e[o]||[],a.forEach(function(n){e[o].push(Rn(n,r,o,t.shareStrategy))}),e},{}),a=_object_spread({},e.shared);return Object.keys(o).forEach(function(e){a[e]?o[e].forEach(function(t){a[e].find(function(e){return e.version===t.version})||a[e].push(t)}):a[e]=o[e]}),{shared:a,shareInfos:o}}function fe(e,t){var n=function(e){if(!Number.isNaN(Number(e))){for(var t=e.split("."),n=e,r=0;r<3-t.length;r++)n+=".0";return n}return e};return!!ve(n(e),"<=".concat(n(t)))}var lt=function(e,t){var n=t||function(e,t){return fe(e,t)};return Object.keys(e).reduce(function(e,t){return!e||n(e,t)||"0"===e?t:e},0)},ut=function(e){return!!e.loaded||"function"==typeof e.lib},Sn=function(e){return!!e.loading};function In(e,t,n){var r=e[t][n];return lt(e[t][n],function(e,t){return!ut(r[e])&&fe(e,t)})}function $n(e,t,n){var r=e[t][n];return lt(e[t][n],function(e,t){var n=function(e){return ut(e)||Sn(e)};return n(r[t])?!n(r[e])||!!fe(e,t):!n(r[e])&&fe(e,t)})}function Nn(e){return"loaded-first"===e?$n:In}function ae(e,t,n,r){if(e){var o=n.shareConfig,a=n.scope,i=void 0===a?he:a,c=n.strategy,s=Array.isArray(i)?i:[i],u=!0,l=!1,f=void 0;try{for(var _,h=function(){var a=_.value;if(o&&e[a]&&e[a][t]){var i=o.requiredVersion,s=Nn(c)(e,a,t),u={shareScopeMap:e,scope:a,pkgName:t,version:s,GlobalFederation:ue.__FEDERATION__,resolver:function(){if(o.singleton){if("string"==typeof i&&!ve(s,i)){var r="Version ".concat(s," from ").concat(s&&e[a][t][s].from," of shared singleton module ").concat(t," does not satisfy the requirement of ").concat(n.from," which needs ").concat(i,")");o.strictVersion?G(r):Le(r)}return e[a][t][s]}if(!1===i||"*"===i||ve(s,i))return e[a][t][s];var c=!0,u=!1,l=void 0;try{for(var f,_=Object.entries(e[a][t])[Symbol.iterator]();!(c=(f=_.next()).done);c=!0){var h=_sliced_to_array(f.value,2),p=h[0],d=h[1];if(ve(p,i))return d}}catch(e){u=!0,l=e}finally{try{c||null==_.return||_.return()}finally{if(u)throw l}}}};return{v:(r.emit(u)||u).resolver()}}},p=s[Symbol.iterator]();!(u=(_=p.next()).done);u=!0){var d=h();if("object"===_type_of(d))return d.v}}catch(e){l=!0,f=e}finally{try{u||null==p.return||p.return()}finally{if(l)throw f}}}}function Kt(){return ue.__FEDERATION__.__SHARE__}function Pt(e){var t,n=e.pkgName,r=e.extraOptions,o=e.shareInfos,a=null!==(t=null==r?void 0:r.resolver)&&void 0!==t?t:function(e){if(e){var t={};e.forEach(function(e){t[e.version]=e});var n=lt(t,function(e,n){return!ut(t[e])&&fe(e,n)});return t[n]}};return Object.assign({},a(o[n]),null==r?void 0:r.customShareInfo)}function Tn(){return("undefined"==typeof FEDERATION_BUILD_IDENTIFIER?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""}function wn(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value,s=t.startsWith(c.name),u=t.replace(c.name,"");if(s){if(u.startsWith("/"))return{pkgNameOrAlias:c.name,expose:u=".".concat(u),remote:c};if(""===u)return{pkgNameOrAlias:c.name,expose:".",remote:c}}var l=c.alias&&t.startsWith(c.alias),f=c.alias&&t.replace(c.alias,"");if(c.alias&&l){if(f&&f.startsWith("/"))return{pkgNameOrAlias:c.alias,expose:f=".".concat(f),remote:c};if(""===f)return{pkgNameOrAlias:c.alias,expose:".",remote:c}}}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function On(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;if(t===c.name||c.alias&&t===c.alias)return c}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function An(e,t){var n=jr(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return n.length>0&&n.forEach(function(t){(null==e?void 0:e.find(function(e){return e.name!==t.name}))&&e.push(t)}),e&&e.length>0&&e.forEach(function(e){r.forEach(function(n){n.applyPlugin(e,t)})}),e}var qt=".then(callbacks[0]).catch(callbacks[1])";function Pn(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){return t=e.entry,n=e.remoteEntryExports,[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'import("'.concat(t,'")').concat(qt))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)}function Mn(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){return t=e.entry,n=e.remoteEntryExports,[2,new Promise(function(e,r){try{n?e(n):("undefined"==typeof __system_context__?"undefined":_type_of(__system_context__))>"u"?System.import(t).then(e).catch(r):new Function("callbacks",'System.import("'.concat(t,'")').concat(qt))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)}function zt(e,t,n){var r=it(e,t),o=r.remoteEntryKey,a=r.entryExports;return $(a,A(Be,w,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:o})),a}function vn(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){return t=e.name,n=e.globalName,r=e.entry,o=e.loaderHook,a=e.getEntryUrl,i=it(t,n),(c=i.entryExports)?[2,c]:[2,q(a?a(r):r,{attrs:{},createScriptHook:function(e,t){var n=o.lifecycle.createScript.emit({url:e,attrs:t});if(n&&(_instanceof(n,HTMLScriptElement)||"script"in n||"timeout"in n))return n}}).then(function(){return zt(t,n,r)}).catch(function(e){throw $(void 0,A(Ne,w,{remoteName:t,resourceUrl:r})),e})]})}).apply(this,arguments)}function Ln(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){switch(t=e.remoteInfo,n=e.remoteEntryExports,r=e.loaderHook,o=e.getEntryUrl,a=t.entry,i=t.entryGlobalName,c=t.name,t.type){case"esm":case"module":return[2,Pn({entry:a,remoteEntryExports:n})];case"system":return[2,Mn({entry:a,remoteEntryExports:n})];default:return[2,vn({entry:a,globalName:i,name:c,loaderHook:r,getEntryUrl:o})]}return[2]})}).apply(this,arguments)}function Fn(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){return t=e.remoteInfo,n=e.loaderHook,r=t.entry,o=t.entryGlobalName,a=t.name,i=t.type,c=it(a,o),[2,c.entryExports||z(r,{attrs:{name:a,globalName:o,type:i},loaderHook:{createScriptHook:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.lifecycle.createScript.emit({url:e,attrs:t});if(r&&"url"in r)return r}}}).then(function(){return zt(a,o,r)}).catch(function(e){throw e})]})}).apply(this,arguments)}function et(e){var t=e.entry,n=e.name;return Ee(n,t)}function Q(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u;return _ts_generator(this,function(l){return t=e.origin,n=e.remoteEntryExports,r=e.remoteInfo,o=e.getEntryUrl,a=e._inErrorHandling,i=void 0!==a&&a,c=et(r),n?[2,n]:(Y[c]||(s=t.remoteHandler.hooks.lifecycle.loadEntry,u=t.loaderHook,Y[c]=s.emit({loaderHook:u,remoteInfo:r,remoteEntryExports:n}).then(function(e){return e||((("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))<"u"?"web"===ENV_TARGET:x())?Ln({remoteInfo:r,remoteEntryExports:n,loaderHook:u,getEntryUrl:o}):Fn({remoteInfo:r,loaderHook:u}))}).catch(function(e){return _async_to_generator(function(){var o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return o=et(r),_instanceof(e,Error)&&e.message.includes(Ne)&&!i?(a=function(e){return Q(_object_spread_props(_object_spread({},e),{_inErrorHandling:!0}))},[4,t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:a,origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:Y,uniqueKey:o})]):[3,2];case 1:if(c=s.sent())return[2,c];s.label=2;case 2:throw e}})})()})),[2,Y[c]])})})()}function de(e){return _object_spread_props(_object_spread({},e),{entry:"entry"in e?e.entry:"",type:e.type||Ct,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||he})}function Yt(e){return _object_spread({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function Dn(e,t){return t.map(function(t){var n=On(e,t.nameOrAlias);return $(n,"Unable to preload ".concat(t.nameOrAlias," as it is not included in ").concat(!n&&be({remoteInfo:n,remotes:e}))),{remote:n,preloadConfig:Yt(t)}})}function kn(e){return e?e.map(function(e){return"."===e?e:e.startsWith("./")?e.replace("./",""):e}):[]}function Xt(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=n.cssAssets,a=n.jsAssetsWithoutEntry,i=n.entryAssets;if(t.options.inBrowser){if(i.forEach(function(n){var r=n.moduleInfo,o=t.moduleCache.get(e.name);Q(o?{origin:t,remoteInfo:r,remoteEntryExports:o.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){var c={rel:"preload",as:"style"};o.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:c,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r}}),r=n.link;n.needAttach&&document.head.appendChild(r)})}else{var s={rel:"stylesheet",type:"text/css"};o.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:s,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},needDeleteLink:!1}),r=n.link;n.needAttach&&document.head.appendChild(r)})}if(r){var u={rel:"preload",as:"script"};a.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:u,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r}}),r=n.link;n.needAttach&&document.head.appendChild(r)})}else{var l={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};a.forEach(function(e){var n=Ie({url:e,cb:function(){},attrs:l,createScriptHook:function(e,n){var r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:n});if(_instanceof(r,HTMLScriptElement))return r},needDeleteScript:!0}),r=n.script;n.needAttach&&document.head.appendChild(r)})}}}var ee=function(){function e(t){var n=t.remoteInfo,r=t.host;_class_call_check(this,e),this.inited=!1,this.lib=void 0,this.remoteInfo=n,this.host=r}return _create_class(e,[{key:"getEntry",value:function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return this.remoteEntryExports?[2,this.remoteEntryExports]:[4,Q({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})];case 1:return[2,(e=t.sent(),$(e,"remoteEntryExports is undefined \n ".concat(be(this.remoteInfo))),this.remoteEntryExports=e,this.remoteEntryExports)]}})}).call(this)}},{key:"get",value:function(e,t,n,r){return _async_to_generator(function(){var o,a,i,c,s,u,l,f,_,h,p,d,m;return _ts_generator(this,function(y){switch(y.label){case 0:return o=(n||{loadFactory:!0}).loadFactory,a=void 0===o||o,[4,this.getEntry()];case 1:return i=y.sent(),this.inited?[3,5]:(c=this.host.shareScopeMap,(s=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope]).length||s.push("default"),s.forEach(function(e){c[e]||(c[e]={})}),u=c[s[0]],l=[],f={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?s:this.remoteInfo.shareScope||"default"},Object.defineProperty(f,"shareScopeMap",{value:c,enumerable:!1}),[4,this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:u,remoteEntryInitOptions:f,initScope:l,remoteInfo:this.remoteInfo,origin:this.host})]);case 2:return _=y.sent(),_type_of(null==i?void 0:i.init)>"u"&&G(A(We,w,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),[4,i.init(_.shareScope,_.initScope,_.remoteEntryInitOptions)];case 3:return y.sent(),[4,this.host.hooks.lifecycle.initContainer.emit(_object_spread_props(_object_spread({},_),{id:e,remoteSnapshot:r,remoteEntryExports:i}))];case 4:y.sent(),y.label=5;case 5:return this.lib=i,this.inited=!0,[4,this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo})];case 6:return h=y.sent(),h?[3,8]:[4,i.get(t)];case 7:h=y.sent(),y.label=8;case 8:return $(h,"".concat(le(this.remoteInfo)," remote don't export ").concat(t,".")),p=Gr(this.remoteInfo.name,t),d=this.wraperFactory(h,p),a?[4,d()]:[3,10];case 9:return m=y.sent(),[3,11];case 10:m=d,y.label=11;case 11:return[2,m]}})}).call(this)}},{key:"wraperFactory",value:function(e,t){function n(e,t){e&&"object"==(void 0===e?"undefined":_type_of(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 _instanceof(e,Promise)?function(){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:return[4,e()];case 1:return[2,(n(r=o.sent(),t),r)]}})})()}:function(){var r=e();return n(r,t),r}}}]),e}(),M=function(){function e(t){_class_call_check(this,e),this.type="",this.listeners=new Set,t&&(this.type=t)}return _create_class(e,[{key:"on",value:function(e){"function"==typeof e&&this.listeners.add(e)}},{key:"once",value:function(e){var t=this;this.on(function n(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t.remove(n),e.apply(null,o)})}},{key:"emit",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return this.listeners.size>0&&this.listeners.forEach(function(e){r=e.apply(void 0,_to_consumable_array(t))}),r}},{key:"remove",value:function(e){this.listeners.delete(e)}},{key:"removeAll",value:function(){this.listeners.clear()}}]),e}(),L=function(e){function t(){return _class_call_check(this,t),_call_super(this,t,arguments)}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=Array.from(this.listeners);if(o.length>0){var a=0,i=function(e){return!1!==e&&(a<o.length?Promise.resolve(o[a++].apply(null,t)).then(i):e)};r=i()}return Promise.resolve(r)}}]),t}(M);function Jt(e,t){if(!st(t))return!1;if(e!==t)for(var n in e)if(!(n in t))return!1;return!0}var W=function(e){function t(e){var n;return _class_call_check(this,t),(n=_call_super(this,t)).onerror=G,n.type=e,n}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(e){st(e)||G('The data for the "'.concat(this.type,'" hook should be an object.'));var t=!0,n=!1,r=void 0;try{for(var o,a=this.listeners[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;try{var c=i(e);if(!Jt(e,c)){this.onerror('A plugin returned an unacceptable value for the "'.concat(this.type,'" type.'));break}e=c}catch(e){Le(e),this.onerror(e)}}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}}]),t}(M),C=function(e){function t(e){var n;return _class_call_check(this,t),(n=_call_super(this,t)).onerror=G,n.type=e,n}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(e){var t=this;st(e)||G('The response data for the "'.concat(this.type,'" hook must be an object.'));var n=Array.from(this.listeners);if(n.length>0){var r=0,o=function(n){return Le(n),t.onerror(n),e},a=function(i){if(Jt(e,i)){if(e=i,r<n.length)try{return Promise.resolve(n[r++](e)).then(a,o)}catch(e){return o(e)}}else t.onerror('A plugin returned an incorrect value for the "'.concat(t.type,'" type.'));return e};return Promise.resolve(a(e))}return Promise.resolve(e)}}]),t}(M),B=function(){function e(t){_class_call_check(this,e),this.registerPlugins={},this.lifecycle=t,this.lifecycleKeys=Object.keys(t)}return _create_class(e,[{key:"applyPlugin",value:function(e,t){var n,r=this;$(Cr(e),"Plugin configuration is invalid.");var o=e.name;$(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=e,null===(n=e.apply)||void 0===n||n.call(e,t),Object.keys(this.lifecycle).forEach(function(t){var n=e[t];n&&r.lifecycle[t].on(n)}))}},{key:"removePlugin",value:function(e){var t=this;$(e,"A name is required.");var n=this.registerPlugins[e];$(n,'The plugin "'.concat(e,'" is not registered.')),Object.keys(n).forEach(function(e){"name"!==e&&t.lifecycle[e].remove(n[e])})}}]),e}();function Zt(e,t){var n=Lt(t);n.url||G("The attribute remoteEntry of ".concat(e.name," must not be undefined."));var r=se(t,n.url);!x()&&!r.startsWith("http")&&(r="https:".concat(r)),e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function xn(){return{name:"snapshot-plugin",afterResolve:function(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l,f;return _ts_generator(this,function(_){switch(_.label){case 0:return t=e.remote,n=e.pkgNameOrAlias,r=e.expose,o=e.origin,a=e.remoteInfo,i=e.id,ot(t)&&Mt(t)?[3,3]:[4,o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i})];case 1:return c=_.sent(),s=c.remoteSnapshot,u=c.globalSnapshot,Zt(a,s),l={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},[4,o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:l,remoteInfo:a,remote:t,remoteSnapshot:s,globalSnapshot:u})];case 2:return[2,((f=_.sent())&&Xt(a,o,f,!1),_object_spread_props(_object_spread({},e),{remoteSnapshot:s}))];case 3:return[2,e]}})})()}}}function Hn(e){var 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 Qt(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0,i=J(e,le(t)).value,c=a||i;if(c&&!Re(c)&&(n(c,t,r),c.remotesInfo)){var s=Object.keys(c.remotesInfo),u=!0,l=!1,f=void 0;try{for(var _,h=s[Symbol.iterator]();!(u=(_=h.next()).done);u=!0){var p=_.value;if(!o[p]){o[p]=!0;var d=Hn(p),m=c.remotesInfo[p];Qt(e,{name:d.name,version:m.matchedVersion},n,!1,o,void 0)}}}catch(e){l=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}}}var Ze=function(e,t){return document.querySelector("".concat(e,"[").concat("link"===e?"href":"src",'="').concat(t,'"]'))};function Cn(e,t,n,r,o){var a=[],i=[],c=[],s=new Set,u=new Set,l=e.options,f=t.preloadConfig,_=f.depsRemote;if(Qt(r,n,function(t,n,r){var o,s,u=function(e){var n=e.map(function(e){return se(t,e)});return s.filter?n.filter(s.filter):n};if(r)s=f;else if(Array.isArray(_)){var l=_.find(function(e){return e.nameOrAlias===n.name||e.nameOrAlias===n.alias});if(!l)return;s=Yt(l)}else{if(!0!==_)return;s=f}var h=se(t,Lt(t).url);h&&c.push({name:n.name,moduleInfo:{name:n.name,entry:h,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:n.name,shareScope:"",version:"version"in t?t.version:void 0},url:h});var p="modules"in t?t.modules:[],d=kn(s.exposes);if(d.length&&"modules"in t&&(p=null==t||null===(o=t.modules)||void 0===o?void 0:o.reduce(function(e,t){return-1!==(null==d?void 0:d.indexOf(t.moduleName))&&e.push(t),e},[])),p)for(var m=p.length,y=0;y<m;y++){var v,g,b,E,S,I,N=p[y],w="".concat(n.name,"/").concat(N.moduleName);e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===N.moduleName?n.name:w,name:n.name,remoteSnapshot:t,preloadConfig:s,remote:n,origin:e}),!Br(w)&&("all"===s.resourceCategory?((v=a).push.apply(v,_to_consumable_array(u(N.assets.css.async))),(g=a).push.apply(g,_to_consumable_array(u(N.assets.css.sync))),(b=i).push.apply(b,_to_consumable_array(u(N.assets.js.async))),(E=i).push.apply(E,_to_consumable_array(u(N.assets.js.sync)))):(s.resourceCategory="sync")&&((S=a).push.apply(S,_to_consumable_array(u(N.assets.css.sync))),(I=i).push.apply(I,_to_consumable_array(u(N.assets.js.sync)))),Wr(w))}},!0,{},o),o.shared&&o.shared.length>0){o.shared.forEach(function(t){var n,r=null===(n=l.shared)||void 0===n?void 0:n[t.sharedName];if(r){var o=t.version?r.find(function(e){return e.version===t.version}):r;o&&vt(o).forEach(function(n){!function(t,n){var r=ae(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&"function"==typeof r.lib&&(n.assets.js.sync.forEach(function(e){s.add(e)}),n.assets.css.sync.forEach(function(e){u.add(e)}))}(n,t)})}})}var h=i.filter(function(e){return!s.has(e)&&!Ze("script",e)});return{cssAssets:a.filter(function(e){return!u.has(e)&&!Ze("link",e)}),jsAssetsWithoutEntry:h,entryAssets:c.filter(function(e){return!Ze("script",e.url)})}}var Gn=function(){return{name:"generate-preload-assets-plugin",generatePreloadAssets:function(e){return _async_to_generator(function(){var t,n,r,o,a,i;return _ts_generator(this,function(c){return t=e.origin,n=e.preloadOptions,r=e.remoteInfo,o=e.remote,a=e.globalSnapshot,i=e.remoteSnapshot,[2,x()?ot(o)&&Mt(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:r.name,entry:o.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(Zt(r,i),Cn(t,n,r,a,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}]})})()}}};function er(e,t){var n=Ae({name:t.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&J(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:It(),remoteSnapshot:Ae({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:It(),remoteSnapshot:Ae({name:e.name,version:"version"in e?e.version:void 0})}}var tt=function(){function e(t){_class_call_check(this,e),this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new B({beforeLoadRemoteSnapshot:new L("beforeLoadRemoteSnapshot"),loadSnapshot:new C("loadGlobalSnapshot"),loadRemoteSnapshot:new C("loadRemoteSnapshot"),afterLoadSnapshot:new C("afterLoadSnapshot")}),this.manifestLoading=ue.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=t,this.loaderHook=t.loaderHook}return _create_class(e,[{key:"loadRemoteSnapshotInfo",value:function(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c,s,u,l,f,_,h,p,d,m,y,v,g,b,E,S,I;return _ts_generator(this,function(N){switch(N.label){case 0:return t=e.moduleInfo,n=e.id,e.expose,r=this.HostInstance,o=r.options,[4,this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:o,moduleInfo:t})];case 1:return N.sent(),(a=Ae({name:this.HostInstance.options.name,version:this.HostInstance.options.version}))||(a={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},Vr(_define_property({},this.HostInstance.options.name,a))),a&&"remotesInfo"in a&&!J(a.remotesInfo,t.name).value&&("version"in t||"entry"in t)&&(a.remotesInfo=_object_spread_props(_object_spread({},null==a?void 0:a.remotesInfo),_define_property({},t.name,{matchedVersion:"version"in t?t.version:t.entry}))),i=this.getGlobalRemoteInfo(t),c=i.hostGlobalSnapshot,s=i.remoteSnapshot,u=i.globalSnapshot,[4,this.hooks.lifecycle.loadSnapshot.emit({options:o,moduleInfo:t,hostGlobalSnapshot:c,remoteSnapshot:s,globalSnapshot:u})];case 2:return l=N.sent(),f=l.remoteSnapshot,_=l.globalSnapshot,f?Re(f)?(d=x()?f.remoteEntry:f.ssrRemoteEntry||f.remoteEntry||"",[4,this.getManifestJson(d,t,{})]):[3,4]:[3,7];case 3:return m=N.sent(),y=$t(_object_spread_props(_object_spread({},t),{entry:d}),m),h=m,p=y,[3,6];case 4:return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:f,from:"global"})];case 5:v=N.sent(),g=v.remoteSnapshot,h=g,p=_,N.label=6;case 6:return[3,11];case 7:return ot(t)?[4,this.getManifestJson(t.entry,t,{})]:[3,10];case 8:return b=N.sent(),E=$t(t,b),[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:b,from:"global"})];case 9:return S=N.sent(),I=S.remoteSnapshot,h=I,p=E,[3,11];case 10:G(A(Ye,w,{hostName:t.name,hostVersion:t.version,globalSnapshot:JSON.stringify(_)})),N.label=11;case 11:return[4,this.hooks.lifecycle.afterLoadSnapshot.emit({id:n,host:this.HostInstance,options:o,moduleInfo:t,remoteSnapshot:h})];case 12:return[2,(N.sent(),{remoteSnapshot:h,globalSnapshot:p})]}})}).apply(this,arguments)}},{key:"getGlobalRemoteInfo",value:function(e){return er(e,this.HostInstance)}},{key:"getManifestJson",value:function(e,t,n){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){return n=this,r=function(){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){switch(a.label){case 0:if(n=this.manifestCache.get(e))return[2,n];a.label=1;case 1:return a.trys.push([1,6,,8]),[4,this.loaderHook.lifecycle.fetch.emit(e,{})];case 2:return r=a.sent(),!r||!_instanceof(r,Response)?[4,fetch(e,{})]:[3,4];case 3:r=a.sent(),a.label=4;case 4:return[4,r.json()];case 5:return n=a.sent(),[3,8];case 6:return o=a.sent(),[4,this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:o,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance})];case 7:return(n=a.sent())||(delete this.manifestLoading[e],G(A(Ke,w,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},"".concat(o)))),[3,8];case 8:return[2,($(n.metaData&&n.exposes&&n.shared,"".concat(e," is not a federation manifest")),this.manifestCache.set(e,n),n)]}})}).call(n)},o=function(){return _async_to_generator(function(){var n,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,r()];case 1:return n=i.sent(),o=Ge(n,{version:e}),[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:o,manifestUrl:e,from:"manifest"})];case 2:return a=i.sent(),[2,a.remoteSnapshot]}})}).call(n)},[2,(this.manifestLoading[e]||(this.manifestLoading[e]=o().then(function(e){return e})),this.manifestLoading[e])]})}).call(this)}}]),e}(),rt=function(){function e(t){_class_call_check(this,e),this.hooks=new B({afterResolve:new C("afterResolve"),beforeLoadShare:new C("beforeLoadShare"),loadShare:new L,resolveShare:new W("resolveShare"),initContainerShareScopeMap:new W("initContainerShareScopeMap")}),this.host=t,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(t.options)}return _create_class(e,[{key:"registerShared",value:function(e,t){var n=this,r=Wt(e,t),o=r.shareInfos,a=r.shared;return Object.keys(o).forEach(function(e){o[e].forEach(function(r){!ae(n.shareScopeMap,e,r,n.hooks.lifecycle.resolveShare)&&r&&r.lib&&n.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:!0,shared:r,from:t.name})})}),{shareInfos:o,shared:a}}},{key:"loadShare",value:function(e,t){return _async_to_generator(function(){var n,r,o,a,i,c,s,u,l,f;return _ts_generator(this,function(_){switch(_.label){case 0:return n=this,r=this.host,o=Pt({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),(null==o?void 0:o.scope)?[4,Promise.all(o.scope.map(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.initializeSharing(e,{strategy:o.strategy}))];case 1:return t.sent(),[2]}})}).call(n)}))]:[3,2];case 1:_.sent(),_.label=2;case 2:return[4,this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:o,shared:r.options.shared,origin:r})];case 3:return a=_.sent(),$(i=a.shareInfo,"Cannot find ".concat(e," Share in the ").concat(r.options.name,". Please ensure that the ").concat(e," Share parameters have been injected")),c=ae(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare),s=function(e){e.useIn||(e.useIn=[]),St(e.useIn,r.options.name)},c&&c.lib?[2,(s(c),c.lib)]:c&&c.loading&&!c.loaded?[4,c.loading]:[3,5];case 4:return u=_.sent(),[2,(c.loaded=!0,c.lib||(c.lib=u),s(c),u)];case 5:return c?(l=_async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,c.get()];case 1:return e=t.sent(),[2,(s(c),c.loaded=!0,c.lib=e,e)]}})})(),[2,(this.setShared({pkgName:e,loaded:!1,shared:c,from:r.options.name,lib:null,loading:l}),l)]):(null==t?void 0:t.customShareInfo)?[2,!1]:(f=_async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,i.get()];case 1:return t=r.sent(),i.lib=t,i.loaded=!0,s(i),[2,((n=ae(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare))&&(n.lib=t,n.loaded=!0,n.from=i.from),t)]}})}).call(n),[2,(this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:f}),f)]);case 6:return[2]}})}).call(this)}},{key:"initializeSharing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he,t=arguments.length>1?arguments[1]:void 0,n=this.host,r=null==t?void 0:t.from,o=null==t?void 0:t.strategy,a=null==t?void 0:t.initScope,i=[];if("build"!==r){var c=this.initTokens;a||(a=[]);var s=c[e];if(s||(s=c[e]={from:this.host.name}),a.indexOf(s)>=0)return i;a.push(s)}var u=this.shareScopeMap,l=n.options.name;u[e]||(u[e]={});var f=u[e],_=function(t){return t&&t.init&&t.init(u[e],a)};return Object.keys(n.options.shared).forEach(function(t){n.options.shared[t].forEach(function(n){n.scope.includes(e)&&function(e,t){var n,r=t.version,o=t.eager;f[e]=f[e]||{};var a=f[e],i=a[r],c=!(!i||!i.eager&&!(null===(n=i.shareConfig)||void 0===n?void 0:n.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(!o!=!c?o:l>i.from))&&(a[r]=t)}(t,n)})}),("version-first"===n.options.shareStrategy||"version-first"===o)&&n.options.remotes.forEach(function(t){t.shareScope===e&&i.push(function(e){return _async_to_generator(function(){var t,r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,n.remoteHandler.getRemoteModuleAndOptions({id:e})];case 1:if(t=i.sent(),!(r=t.module).getEntry)return[3,9];i.label=2;case 2:return i.trys.push([2,4,,6]),[4,r.getEntry()];case 3:return o=i.sent(),[3,6];case 4:return a=i.sent(),[4,n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:a,from:"runtime",lifecycle:"beforeLoadShare",origin:n})];case 5:return o=i.sent(),[3,6];case 6:return r.inited?[3,8]:[4,_(o)];case 7:i.sent(),r.inited=!0,i.label=8;case 8:i.label=9;case 9:return[2]}})})()}(t.name))}),i}},{key:"loadShareSync",value:function(e,t){var n=this,r=this.host,o=Pt({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==o?void 0:o.scope)&&o.scope.forEach(function(e){n.initializeSharing(e,{strategy:o.strategy})});var a=ae(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),i=function(e){e.useIn||(e.useIn=[]),St(e.useIn,r.options.name)};if(a){if("function"==typeof a.lib)return i(a),a.loaded||(a.loaded=!0,a.from===r.options.name&&(o.loaded=!0)),a.lib;if("function"==typeof a.get){var c=a.get();if(!_instanceof(c,Promise))return i(a),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:c,shared:a}),c}}if(o.lib)return o.loaded||(o.loaded=!0),o.lib;if(o.get){var s=o.get();if(_instanceof(s,Promise)){var u="build"===(null==t?void 0:t.from)?ze:$e;throw new Error(A(u,w,{hostName:r.options.name,sharedPkgName:e}))}return o.lib=s,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:o.lib,shared:o}),o.lib}throw new Error(A($e,w,{hostName:r.options.name,sharedPkgName:e}))}},{key:"initShareScopeMap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.host;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}},{key:"setShared",value:function(e){var t=this,n=e.pkgName,r=e.shared,o=e.from,a=e.lib,i=e.loading,c=e.loaded,s=e.get,u=r.version,l=r.scope,f=void 0===l?"default":l,_=_object_without_properties(r,["version","scope"]);(Array.isArray(f)?f:[f]).forEach(function(e){if(t.shareScopeMap[e]||(t.shareScopeMap[e]={}),t.shareScopeMap[e][n]||(t.shareScopeMap[e][n]={}),!t.shareScopeMap[e][n][u])return t.shareScopeMap[e][n][u]=_object_spread_props(_object_spread({version:u,scope:["default"]},_),{lib:a,loaded:c,loading:i}),void(s&&(t.shareScopeMap[e][n][u].get=s));var r=t.shareScopeMap[e][n][u];i&&!r.loading&&(r.loading=i),c&&!r.loaded&&(r.loaded=c),o&&r.from!==o&&(r.from=o)})}},{key:"_setGlobalShareScopeMap",value:function(e){var t=Kt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}]),e}(),nt=function(){function e(t){_class_call_check(this,e),this.hooks=new B({beforeRegisterRemote:new W("beforeRegisterRemote"),registerRemote:new W("registerRemote"),beforeRequest:new C("beforeRequest"),onLoad:new L("onLoad"),handlePreloadModule:new M("handlePreloadModule"),errorLoadRemote:new L("errorLoadRemote"),beforePreloadRemote:new L("beforePreloadRemote"),generatePreloadAssets:new L("generatePreloadAssets"),afterPreloadRemote:new L,loadEntry:new L}),this.host=t,this.idToRemoteMap={}}return _create_class(e,[{key:"formatAndRegisterRemote",value:function(e,t){var n=this;return(t.remotes||[]).reduce(function(e,t){return n.registerRemote(t,e,{force:!1}),e},e.remotes)}},{key:"setIdToRemoteMap",value:function(e,t){var n=t.remote,r=t.expose,o=n.name,a=n.alias;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(o)){var i=e.replace(o,a);this.idToRemoteMap[i]={name:n.name,expose:r}}else if(a&&e.startsWith(a)){var c=e.replace(a,o);this.idToRemoteMap[c]={name:n.name,expose:r}}}},{key:"loadRemote",value:function(e,t){return _async_to_generator(function(){var n,r,o,a,i,c,s,u,l,f,_,h,p,d,m,y,v,g;return _ts_generator(this,function(b){switch(b.label){case 0:n=this.host,b.label=1;case 1:return b.trys.push([1,5,,7]),r=(t||{loadFactory:!0}).loadFactory,o=void 0===r||r,[4,this.getRemoteModuleAndOptions({id:e})];case 2:return a=b.sent(),i=a.module,c=a.moduleOptions,s=a.remoteMatchInfo,u=s.pkgNameOrAlias,l=s.remote,f=s.expose,_=s.id,h=s.remoteSnapshot,[4,i.get(_,f,t,h)];case 3:return p=b.sent(),[4,this.hooks.lifecycle.onLoad.emit({id:_,pkgNameOrAlias:u,expose:f,exposeModule:o?p:void 0,exposeModuleFactory:o?void 0:p,remote:l,options:c,moduleInstance:i,origin:n})];case 4:return d=b.sent(),[2,(this.setIdToRemoteMap(e,s),"function"==typeof d?d:p)];case 5:return m=b.sent(),y=(t||{from:"runtime"}).from,v=void 0===y?"runtime":y,[4,this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:m,from:v,lifecycle:"onLoad",origin:n})];case 6:if(!(g=b.sent()))throw m;return[2,g];case 7:return[2]}})}).call(this)}},{key:"preloadRemote",value:function(e){return _async_to_generator(function(){var t,n,r;return _ts_generator(this,function(o){switch(o.label){case 0:return t=this,n=this.host,[4,this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:n.options,origin:n})];case 1:return o.sent(),r=Dn(n.options.remotes,e),[4,Promise.all(r.map(function(e){return _async_to_generator(function(){var t,r,o,a,i,c;return _ts_generator(this,function(s){switch(s.label){case 0:return t=e.remote,r=de(t),[4,n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t})];case 1:return o=s.sent(),a=o.globalSnapshot,i=o.remoteSnapshot,[4,this.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:e,remote:t,remoteInfo:r,globalSnapshot:a,remoteSnapshot:i})];case 2:return(c=s.sent())&&Xt(r,n,c),[2]}})}).call(t)}))];case 2:return o.sent(),[2]}})}).call(this)}},{key:"registerRemotes",value:function(e,t){var n=this,r=this.host;e.forEach(function(e){n.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}},{key:"getRemoteModuleAndOptions",value:function(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l,f,_,h;return _ts_generator(this,function(p){switch(p.label){case 0:t=this.host,n=e.id,p.label=1;case 1:return p.trys.push([1,3,,5]),[4,this.hooks.lifecycle.beforeRequest.emit({id:n,options:t.options,origin:t})];case 2:return r=p.sent(),[3,5];case 3:return o=p.sent(),[4,this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:t.options,origin:t,from:"runtime",error:o,lifecycle:"beforeRequest"})];case 4:if(!(r=p.sent()))throw o;return[3,5];case 5:return a=r.id,$(i=wn(t.options.remotes,a),A(qe,w,{hostName:t.options.name,requestId:a})),c=i.remote,s=de(c),[4,t.sharedHandler.hooks.lifecycle.afterResolve.emit(_object_spread_props(_object_spread({id:a},i),{options:t.options,origin:t,remoteInfo:s}))];case 6:return u=p.sent(),l=u.remote,f=u.expose,$(l&&f,"The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ".concat(a,".")),_=t.moduleCache.get(l.name),h={host:t,remoteInfo:s},[2,(_||(_=new ee(h),t.moduleCache.set(l.name,_)),{module:_,moduleOptions:h,remoteMatchInfo:u})]}})}).call(this)}},{key:"registerRemote",value:function(e,t,n){var r=this.host,o=function(){if(e.alias){var n=t.find(function(t){var n;return e.alias&&(t.name.startsWith(e.alias)||(null===(n=t.alias)||void 0===n?void 0:n.startsWith(e.alias)))});$(!n,"The alias ".concat(e.alias," of remote ").concat(e.name," is not allowed to be the prefix of ").concat(n&&n.name," name or alias"))}"entry"in e&&x()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=he),e.type||(e.type=Ct)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});var a=t.find(function(t){return t.name===e.name});if(a){var i=['The remote "'.concat(e.name,'" is already registered.'),"Please note that overriding it may cause unexpected errors."];(null==n?void 0:n.force)&&(this.removeRemote(a),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),ge(i.join(" ")))}else o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}},{key:"removeRemote",value:function(e){try{var t=this.host,n=e.name,r=t.options.remotes.findIndex(function(e){return e.name===n});-1!==r&&t.options.remotes.splice(r,1);var o=t.moduleCache.get(e.name);if(o){var a,i=o.remoteInfo,c=i.entryGlobalName;N[c]&&((null===(a=Object.getOwnPropertyDescriptor(N,c))||void 0===a?void 0:a.configurable)?delete N[c]:N[c]=void 0);var s=et(o.remoteInfo);Y[s]&&delete Y[s],t.snapshotHandler.manifestCache.delete(i.entry);var u=i.buildVersion?Ee(i.name,i.buildVersion):i.name,l=N.__FEDERATION__.__INSTANCES__.findIndex(function(e){return i.buildVersion?e.options.id===u:e.name===u});if(-1!==l){var f=N.__FEDERATION__.__INSTANCES__[l];u=f.options.id||u;var _=Kt(),h=!0,p=[];Object.keys(_).forEach(function(e){var t=_[e];t&&Object.keys(t).forEach(function(n){var r=t[n];r&&Object.keys(r).forEach(function(t){var o=r[t];o&&Object.keys(o).forEach(function(r){var a=o[r];a&&"object"==(void 0===a?"undefined":_type_of(a))&&a.from===i.name&&(a.loaded||a.loading?(a.useIn=a.useIn.filter(function(e){return e!==i.name}),a.useIn.length?h=!1:p.push([e,n,t,r])):p.push([e,n,t,r]))})})})}),h&&(f.shareScopeMap={},delete _[u]),p.forEach(function(e){var t,n,r,o=_sliced_to_array(e,4),a=o[0],i=o[1],c=o[2],s=o[3];null===(r=_[a])||void 0===r||(null===(n=r[i])||void 0===n||(null===(t=n[c])||void 0===t||delete t[s]))}),N.__FEDERATION__.__INSTANCES__.splice(l,1)}var d=er(e,t).hostGlobalSnapshot;if(d){var m=d&&"remotesInfo"in d&&d.remotesInfo&&J(d.remotesInfo,e.name).key;m&&(delete d.remotesInfo[m],ue.__FEDERATION__.__MANIFEST_LOADING__[m]&&delete ue.__FEDERATION__.__MANIFEST_LOADING__[m])}t.moduleCache.delete(e.name)}}catch(e){Qe.log("removeRemote fail: ",e)}}}]),e}(),Un="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN,K=function(){function e(t){_class_call_check(this,e),this.hooks=new B({beforeInit:new W("beforeInit"),init:new M,beforeInitContainer:new C("beforeInitContainer"),initContainer:new C("initContainer")}),this.version="0.21.2",this.moduleCache=new Map,this.loaderHook=new B({getModuleInfo:new M,createScript:new M,createLink:new M,fetch:new L,loadEntryError:new L,getModuleFactory:new L}),this.bridgeHook=new B({beforeBridgeRender:new M,afterBridgeRender:new M,beforeBridgeDestroy:new M,afterBridgeDestroy:new M});var n=Un?[xn(),Gn()]:[],r={id:Tn(),name:t.name,plugins:n,remotes:[],shared:{},inBrowser:x()};this.name=t.name,this.options=r,this.snapshotHandler=new tt(this),this.sharedHandler=new rt(this),this.remoteHandler=new nt(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins(_to_consumable_array(r.plugins).concat(_to_consumable_array(t.plugins||[]))),this.options=this.formatOptions(r,t)}return _create_class(e,[{key:"initOptions",value:function(e){this.registerPlugins(e.plugins);var t=this.formatOptions(this.options,e);return this.options=t,t}},{key:"loadShare",value:function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.sharedHandler.loadShare(e,t)]})}).call(this)}},{key:"loadShareSync",value:function(e,t){return this.sharedHandler.loadShareSync(e,t)}},{key:"initializeSharing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}},{key:"initRawContainer",value:function(e,t,n){var r=de({name:e,entry:t}),o=new ee({host:this,remoteInfo:r});return o.remoteEntryExports=n,this.moduleCache.set(e,o),o}},{key:"loadRemote",value:function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.remoteHandler.loadRemote(e,t)]})}).call(this)}},{key:"preloadRemote",value:function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){return[2,this.remoteHandler.preloadRemote(e)]})}).call(this)}},{key:"initShareScopeMap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,n)}},{key:"formatOptions",value:function(e,t){var n=Wt(e,t).shared,r=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),o=r.userOptions,a=r.options,i=this.remoteHandler.formatAndRegisterRemote(a,o),c=this.sharedHandler.registerShared(a,o).shared,s=_to_consumable_array(a.plugins);o.plugins&&o.plugins.forEach(function(e){s.includes(e)||s.push(e)});var u=_object_spread_props(_object_spread({},e,t),{plugins:s,remotes:i,shared:c});return this.hooks.lifecycle.init.emit({origin:this,options:u}),u}},{key:"registerPlugins",value:function(e){var t=An(e,this);this.options.plugins=this.options.plugins.reduce(function(e,t){return t&&e&&!e.find(function(e){return e.name===t.name})&&e.push(t),e},t||[])}},{key:"registerRemotes",value:function(e,t){return this.remoteHandler.registerRemotes(e,t)}},{key:"registerShared",value:function(e){this.sharedHandler.registerShared(this.options,_object_spread_props(_object_spread({},this.options),{shared:e}))}}]),e}();function Vn(){return("undefined"==typeof FEDERATION_BUILD_IDENTIFIER?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""}function tr(e,t){var n=Vn();return N.__FEDERATION__.__INSTANCES__.find(function(r){return!!(n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t)})}function rr(e){var t=new(kt()||K)(e);return Dt(t),t}var R=null;function jn(e){var t=tr(e.name,e.version);return t?(t.initOptions(e),R||(R=t),t):R=rr(e)}function Bn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadRemote.apply(R,t)}function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadShare.apply(R,t)}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadShareSync.apply(R,t)}function qn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.preloadRemote.apply(R,t)}function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerRemotes.apply(R,t)}function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerPlugins.apply(R,t)}function Xn(){return R}function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerShared.apply(R,t)}return xt(K),exports.MFRuntime=ft,exports.MFSDK=je,exports}({});
|
|
1
|
+
function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function _assert_this_initialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function _async_to_generator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,i,c,"throw",e)}i(void 0)})}}function _call_super(e,t,n){return t=_get_prototype_of(t),_possible_constructor_return(e,_is_native_reflect_construct()?Reflect.construct(t,n||[],_get_prototype_of(e).constructor):t.apply(e,n))}function _class_call_check(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _create_class(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _define_property(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_get_prototype_of(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_define_property(e,t,n[t])})}return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function _object_without_properties(e,t){if(null==e)return{};var n,r,o=_object_without_properties_loose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _object_without_properties_loose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _possible_constructor_return(e,t){return!t||"object"!==_type_of(t)&&"function"!=typeof t?_assert_this_initialized(e):t}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_set_prototype_of(e,t)}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_array(e){return _array_with_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_array_like_to_array(e,t):void 0}}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_is_native_reflect_construct=function(){return!!e})()}function _ts_generator(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=c(0),i.throw=c(1),i.return=c(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var EMP_SHARE_RUNTIME=function(exports){"use strict";var sr=Object.defineProperty,pt=function(e,t){for(var n in t)sr(e,n,{get:t[n],enumerable:!0})},ht={};pt(ht,{Module:function(){return te},ModuleFederation:function(){return q},createInstance:function(){return or},getInstance:function(){return Jn},getRemoteEntry:function(){return ee},getRemoteInfo:function(){return fe},init:function(){return Bn},loadRemote:function(){return Wn},loadScript:function(){return z},loadScriptNode:function(){return X},loadShare:function(){return Kn},loadShareSync:function(){return qn},preloadRemote:function(){return zn},registerGlobalPlugins:function(){return Gt},registerPlugins:function(){return Yn},registerRemotes:function(){return Xn},registerShared:function(){return Zn}});var We={},_obj,_obj1;pt(We,{BROWSER_LOG_KEY:function(){return mt},ENCODE_NAME_PREFIX:function(){return lr},EncodedNameTransformMap:function(){return pe},FederationModuleManifest:function(){return ir},MANIFEST_EXT:function(){return Ce},MFModuleType:function(){return ar},MFPrefetchCommon:function(){return fr},MODULE_DEVTOOL_IDENTIFIER:function(){return cr},ManifestFileName:function(){return ke},NameTransformMap:function(){return v},NameTransformSymbol:function(){return I},SEPARATOR:function(){return Ge},StatsFileName:function(){return xe},TEMP_DIR:function(){return ur},assert:function(){return Rr},bindLoggerToCompiler:function(){return wr},composeKeyWithSeparator:function(){return _e},containerPlugin:function(){return dr},containerReferencePlugin:function(){return hr},createInfrastructureLogger:function(){return Rt},createLink:function(){return ie},createLogger:function(){return Re},createModuleFederationConfig:function(){return vr},createScript:function(){return Se},createScriptNode:function(){return It},decodeName:function(){return Er},encodeName:function(){return Ue},error:function(){return Et},generateExposeFilename:function(){return gr},generateShareFilename:function(){return br},generateSnapshotFromManifest:function(){return Ve},getManifestFileName:function(){return $r},getProcessEnv:function(){return yt},getResourceUrl:function(){return se},inferAutoPublicPath:function(){return gt},infrastructureLogger:function(){return Ar},isBrowserEnv:function(){return x},isDebugMode:function(){return oe},isManifestProvider:function(){return be},isReactNativeEnv:function(){return ye},isRequiredVersion:function(){return Ir},isStaticResourcesEqual:function(){return Be},loadScript:function(){return z},loadScriptNode:function(){return X},logger:function(){return Or},moduleFederationPlugin:function(){return pr},normalizeOptions:function(){return Mr},parseEntry:function(){return _r},safeToString:function(){return ge},safeWrapper:function(){return je},sharePlugin:function(){return mr},simpleJoinRemoteEntry:function(){return W},warn:function(){return Ee}});var ir="federation-manifest.json",Ce=".json",mt="FEDERATION_DEBUG",I={AT:"@",HYPHEN:"-",SLASH:"/"},v=(_obj={},_define_property(_obj,I.AT,"scope_"),_define_property(_obj,I.HYPHEN,"_"),_define_property(_obj,I.SLASH,"__"),_obj),pe=(_obj1={},_define_property(_obj1,v[I.AT],I.AT),_define_property(_obj1,v[I.HYPHEN],I.HYPHEN),_define_property(_obj1,v[I.SLASH],I.SLASH),_obj1),Ge=":",ke="mf-manifest.json",xe="mf-stats.json",ar={NPM:"npm",APP:"app"},cr="__MF_DEVTOOLS_MODULE_INFO__",lr="ENCODE_NAME_PREFIX",ur=".federation",fr={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"},dr=Object.freeze({__proto__:null}),hr=Object.freeze({__proto__:null}),pr=Object.freeze({__proto__:null}),mr=Object.freeze({__proto__:null});function x(){return("undefined"==typeof window?"undefined":_type_of(window))<"u"&&_type_of(window.document)<"u"}function ye(){var e;return("undefined"==typeof navigator?"undefined":_type_of(navigator))<"u"&&"ReactNative"===(null===(e=navigator)||void 0===e?void 0:e.product)}function yr(){try{if(x()&&window.localStorage)return!!localStorage.getItem(mt)}catch(e){return!1}return!1}function oe(){return("undefined"==typeof process?"undefined":_type_of(process))<"u"&&process.env,yr()}var yt=function(){return("undefined"==typeof process?"undefined":_type_of(process))<"u"&&process.env?process.env:{}},_t="[ Federation Runtime ]",_r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge,r=e.split(n),o="development"===yt().NODE_ENV&&t,a=function(e){return e.startsWith("http")||e.includes(Ce)};if(r.length>=2){var i=_to_array(r),c=i[0],s=i.slice(1);e.startsWith(n)&&(c=r.slice(0,2).join(n),s=[o||r.slice(2).join(n)]);var u=o||s.join(n);return a(u)?{name:c,entry:u}:{name:c,version:u||"*"}}if(1===r.length){var l=_sliced_to_array(r,1)[0];return o&&a(o)?{name:l,entry:o}:{name:l,version:o||"*"}}throw"Invalid entry value: ".concat(e)},_e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length?t.reduce(function(e,t){return t?e?"".concat(e).concat(Ge).concat(t):t:e},""):""},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var r=n?".js":"";return"".concat(t).concat(e.replace(new RegExp("".concat(I.AT),"g"),v[I.AT]).replace(new RegExp("".concat(I.HYPHEN),"g"),v[I.HYPHEN]).replace(new RegExp("".concat(I.SLASH),"g"),v[I.SLASH])).concat(r)}catch(e){throw e}},Er=function(e,t,n){try{var r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.replace(new RegExp("".concat(v[I.AT]),"g"),pe[v[I.AT]]).replace(new RegExp("".concat(v[I.SLASH]),"g"),pe[v[I.SLASH]]).replace(new RegExp("".concat(v[I.HYPHEN]),"g"),pe[v[I.HYPHEN]]),n&&(r=r.replace(".js","")),r}catch(e){throw e}},gr=function(e,t){if(!e)return"";var n=e;return"."===n&&(n="default_export"),n.startsWith("./")&&(n=n.replace("./","")),Ue(n,"__federation_expose_",t)},br=function(e,t){return e?Ue(e,"__federation_shared_",t):""},se=function(e,t){var n;return"getPublicPath"in e?(n=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),"".concat(n).concat(t)):"publicPath"in e?x()||ye()||!("ssrPublicPath"in e)?"".concat(e.publicPath).concat(t):"".concat(e.ssrPublicPath).concat(t):(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},Rr=function(e,t){e||Et(t)},Et=function(e){throw new Error("".concat(_t,": ").concat(e))},Ee=function(e){console.warn("".concat(_t,": ").concat(e))};function ge(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}var Sr=/^([\d^=v<>~]|[*xX]$)/;function Ir(e){return Sr.test(e)}var W=function(e,t){if(!e)return t;var n=function(e){if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){var t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e}(e);return n?n.endsWith("/")?"".concat(n).concat(t):"".concat(n,"/").concat(t):t};function gt(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Ve(e){var t,n,r,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.remotes,c=void 0===i?{}:i,s=a.overrides,u=void 0===s?{}:s,l=a.version,f=function(){return"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&l?gt(l):e.metaData.publicPath:e.metaData.getPublicPath},_=Object.keys(u),p={};Object.keys(c).length||(p=(null===(t=e.remotes)||void 0===t?void 0:t.reduce(function(e,t){var n,r=t.federationContainerName;return n=_.includes(r)?u[r]:"version"in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(c).forEach(function(e){return p[e]={matchedVersion:_.includes(e)?u[e]:c[e]}});var h=e.metaData,d=h.remoteEntry,m=d.path,y=d.name,v=d.type,g=h.types,b=void 0===g?{path:"",name:"",zip:"",api:""}:g,E=h.buildInfo.buildVersion,S=h.globalName,I=h.ssrRemoteEntry,N=e.exposes,w={version:l||"",buildVersion:E,globalName:S,remoteEntry:W(m,y),remoteEntryType:v,remoteTypes:W(b.path,b.name),remoteTypesZip:b.zip||"",remoteTypesAPI:b.api||"",remotesInfo:p,shared:null==e?void 0:e.shared.map(function(e){return{assets:e.assets,sharedName:e.name,version:e.version}}),modules:null==N?void 0:N.map(function(e){return{moduleName:e.name,modulePath:e.path,assets:e.assets}})};if(null===(n=e.metaData)||void 0===n?void 0:n.prefetchInterface){var R=e.metaData.prefetchInterface;w=_object_spread_props(_object_spread({},w),{prefetchInterface:R})}if(null===(r=e.metaData)||void 0===r?void 0:r.prefetchEntry){var A=e.metaData.prefetchEntry,k=A.path,O=A.name,j=A.type;w=_object_spread_props(_object_spread({},w),{prefetchEntry:W(k,O),prefetchEntryType:j})}if(o="publicPath"in e.metaData?_object_spread_props(_object_spread({},w),{publicPath:f(),ssrPublicPath:e.metaData.ssrPublicPath}):_object_spread_props(_object_spread({},w),{getPublicPath:f()}),I){var T=W(I.path,I.name);o.ssrRemoteEntry=T,o.ssrRemoteEntryType=I.type||"commonjs-module"}return o}function be(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(Ce))}function $r(e){if(!e)return{statsFileName:xe,manifestFileName:ke};var t,n="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",o=".json",a=r?(t=r).endsWith(o)?t:"".concat(t).concat(o):ke,i=r?function(e,t){return e.replace(o,"".concat(t).concat(o))}(a,"-stats"):xe;return{statsFileName:W(n,i),manifestFileName:W(n,a)}}var bt="[ Module Federation ]",re=console,Nr=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Tr(){try{var e=(new Error).stack;if(!e)return;var t=_to_array(e.split("\n")).slice(1).filter(function(e){return!Nr.some(function(t){return e.includes(t)})});return t.length?"Stack trace:\n".concat(t.slice(0,5).join("\n")):void 0}catch(e){return}}var me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re;_class_call_check(this,e),this.prefix=t,this.delegate=null!=n?n:re}return _create_class(e,[{key:"setPrefix",value:function(e){this.prefix=e}},{key:"setDelegate",value:function(e){this.delegate=null!=e?e:re}},{key:"emit",value:function(e,t){var n=this.delegate,r=oe()?Tr():void 0,o=r?_to_consumable_array(t).concat([r]):t,a=function(){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"]}}(),i=!0,c=!1,s=void 0;try{for(var u,l=a[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f,_=n[u.value];if("function"==typeof _)return void(f=_).call.apply(f,[n,this.prefix].concat(_to_consumable_array(o)))}}catch(e){c=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(c)throw s}}var p=!0,h=!1,d=void 0;try{for(var m,y=a[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v,g=m.value,b=re[g];if("function"==typeof b)return void(v=b).call.apply(v,[re,this.prefix].concat(_to_consumable_array(o)))}}catch(e){h=!0,d=e}finally{try{p||null==y.return||y.return()}finally{if(h)throw d}}}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("log",t)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("warn",t)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("error",t)}},{key:"success",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"ready",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.emit("info",t)}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];oe()&&this.emit("debug",t)}}]),e}();function Re(e){return new me(e)}function Rt(e){var t=new me(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function wr(e,t,n){if(e.__mf_infrastructure_logger__&&(null==t?void 0:t.getInfrastructureLogger))try{var r=t.getInfrastructureLogger(n);r&&"object"==(void 0===r?"undefined":_type_of(r))&&("function"==typeof r.log||"function"==typeof r.info||"function"==typeof r.warn||"function"==typeof r.error)&&e.setDelegate(r)}catch(t){e.setDelegate(void 0)}}var Or=Re(bt),Ar=Rt(bt);function je(e,t){return _async_to_generator(function(){var n;return _ts_generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),!t&&Ee(n),[2];case 3:return[2]}})})()}function Be(e,t){var n=/^(https?:)?\/\//i;return e.replace(n,"").replace(/\/$/,"")===t.replace(n,"").replace(/\/$/,"")}function Se(e){for(var t,n=null,r=!0,o=2e4,a=document.getElementsByTagName("script"),i=0;i<a.length;i++){var c=a[i],s=c.getAttribute("src");if(s&&Be(s,e.url)){n=c,r=!1;break}}if(!n){var u,l=e.attrs;(n=document.createElement("script")).type="module"===(null==l?void 0:l.type)?"module":"text/javascript",e.createScriptHook&&(_instanceof(u=e.createScriptHook(e.url,e.attrs),HTMLScriptElement)?n=u:"object"==(void 0===u?"undefined":_type_of(u))&&("script"in u&&u.script&&(n=u.script),"timeout"in u&&u.timeout&&(o=u.timeout))),n.src||(n.src=e.url),l&&!u&&Object.keys(l).forEach(function(e){n&&("async"===e||"defer"===e?n[e]=l[e]:n.getAttribute(e)||n.setAttribute(e,l[e]))})}var f=function(r,o){return _async_to_generator(function(){var a,i,c;return _ts_generator(this,function(s){switch(s.label){case 0:return clearTimeout(t),a=function(){"error"===(null==o?void 0:o.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(o)):(null==e?void 0:e.cb)&&(null==e||e.cb())},n&&(n.onerror=null,n.onload=null,je(function(){var t=e.needDeleteScript;(void 0===t||t)&&(null==n?void 0:n.parentNode)&&n.parentNode.removeChild(n)}),r&&"function"==typeof r)?_instanceof(i=r(o),Promise)?[4,i]:[3,2]:[3,3];case 1:return c=s.sent(),[2,(a(),c)];case 2:return[2,(a(),i)];case 3:return a(),[2]}})})()};return n.onerror=f.bind(null,n.onerror),n.onload=f.bind(null,n.onload),t=setTimeout(function(){f(null,new Error('Remote script "'.concat(e.url,'" time-outed.')))},o),{script:n,needAttach:r}}function ie(e){for(var t=null,n=!0,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var a=r[o],i=a.getAttribute("href"),c=a.getAttribute("rel");if(i&&Be(i,e.url)&&c===e.attrs.rel){t=a,n=!1;break}}if(!t){(t=document.createElement("link")).setAttribute("href",e.url);var s,u=e.attrs;e.createLinkHook&&(_instanceof(s=e.createLinkHook(e.url,u),HTMLLinkElement)&&(t=s)),u&&!s&&Object.keys(u).forEach(function(e){t&&!t.getAttribute(e)&&t.setAttribute(e,u[e])})}var l=function(n,r){var o=function(){"error"===(null==r?void 0:r.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(r)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,je(function(){var n=e.needDeleteLink;(void 0===n||n)&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),n)){var a=n(r);return o(),a}o()};return t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),{link:t,needAttach:n}}function z(e,t){var n=t.attrs,r=void 0===n?{}:n,o=t.createScriptHook;return new Promise(function(t,n){var a=Se({url:e,cb:t,onErrorCallback:n,attrs:_object_spread({fetchpriority:"high"},r),createScriptHook:o,needDeleteScript:!0}),i=a.script;a.needAttach&&document.head.appendChild(i)})}var he=new Map;function ne(e){if(!e)throw new Error("import specifier is required");if(he.has(e))return he.get(e);var t=new Function("name","return import(name)")(e).then(function(e){return e}).catch(function(t){throw console.error("Error importing module ".concat(e,":"),t),he.delete(e),t});return he.set(e,t),t}var St=function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,ne("node-fetch")];case 1:return[2,(e=t.sent()).default||e]}})})()},Pr=function(e,t,n){return _async_to_generator(function(){var r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,(c=e,s=t||{},n.lifecycle.fetch.emit(c,s))];case 1:return(r=i.sent())&&_instanceof(r,Response)?[3,5]:("undefined"==typeof fetch?"undefined":_type_of(fetch))>"u"?[4,St()]:[3,3];case 2:return a=i.sent(),[3,4];case 3:a=fetch,i.label=4;case 4:return o=a(e,t||{}),[3,6];case 5:o=r,i.label=6;case 6:return[2,o]}var c,s})})()},It=("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))>"u"||"web"!==ENV_TARGET?function(url,cb,attrs,loaderHook){if(null==loaderHook?void 0:loaderHook.createScriptHook){var _$t=loaderHook.createScriptHook(url);_$t&&"object"==(void 0===_$t?"undefined":_type_of(_$t))&&"url"in _$t&&(url=_$t.url)}var urlObj;try{urlObj=new URL(url)}catch(e){return console.error("Error constructing URL:",e),void cb(new Error("Invalid URL: ".concat(e)))}var getFetch=function(){return _async_to_generator(function(){return _ts_generator(this,function(e){return[2,(null==loaderHook?void 0:loaderHook.fetch)?function(e,t){return Pr(e,t,loaderHook)}:("undefined"==typeof fetch?"undefined":_type_of(fetch))>"u"?St():fetch]})})()},handleScriptFetch=function(f,urlObj){return _async_to_generator(function(){var _vm_constants,_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER,res,data,_ref,path,vm,scriptContext,urlDirname,filename,script,exportedInterface,_$t,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return _state.trys.push([0,4,,5]),[4,f(urlObj.href)];case 1:return res=_state.sent(),[4,res.text()];case 2:return data=_state.sent(),[4,Promise.all([ne("path"),ne("vm")])];case 3:return _ref=_sliced_to_array.apply(void 0,[_state.sent(),2]),path=_ref[0],vm=_ref[1],scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data,"\n})"),{filename:filename,importModuleDynamically:null!==(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=null===(_vm_constants=vm.constants)||void 0===_vm_constants?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)&&void 0!==_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:ne}),script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename),exportedInterface=scriptContext.module.exports||scriptContext.exports,attrs&&exportedInterface&&attrs.globalName?(_$t=exportedInterface[attrs.globalName]||exportedInterface,cb(void 0,_$t),[2]):(cb(void 0,exportedInterface),[3,5]);case 4:return t=_state.sent(),cb(_instanceof(t,Error)?t:new Error("Script execution error: ".concat(t))),[3,5];case 5:return[2]}})})()};getFetch().then(function(e){return _async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return"esm"!==(null==attrs?void 0:attrs.type)&&"module"!==(null==attrs?void 0:attrs.type)?[3,2]:(t=[urlObj.href],n={fetch:e},[4,ne("vm")]);case 1:return[2,He.apply(void 0,t.concat([(n.vm=r.sent(),n)])).then(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,e.evaluate()];case 1:return t.sent(),cb(void 0,e.namespace),[2]}})})()}).catch(function(e){cb(_instanceof(e,Error)?e:new Error("Script execution error: ".concat(e)))})];case 2:return handleScriptFetch(e,urlObj),[2]}})})()}).catch(function(e){cb(e)})}:function(e,t,n,r){t(new Error("createScriptNode is disabled in non-Node.js environment"))},X=("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))>"u"||"web"!==ENV_TARGET?function(e,t){return new Promise(function(n,r){It(e,function(e,o){if(e)r(e);else{var a,i,c=(null==t||null===(a=t.attrs)||void 0===a?void 0:a.globalName)||"__FEDERATION_".concat(null==t||null===(i=t.attrs)||void 0===i?void 0:i.name,":custom__"),s=globalThis[c]=o;n(s)}},t.attrs,t.loaderHook)})}:function(e,t){throw new Error("loadScriptNode is disabled in non-Node.js environment")},De=new Map;function He(e,t){return _async_to_generator(function(){var n,r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return De.has(e)?[2,De.get(e)]:(n=t.fetch,r=t.vm,[4,n(e)]);case 1:return[4,i.sent().text()];case 2:return o=i.sent(),a=new r.SourceTextModule(o,{importModuleDynamically:function(n,r){return _async_to_generator(function(){return _ts_generator(this,function(r){return[2,He(new URL(n,e).href,t)]})})()}}),De.set(e,a),[4,a.link(function(n){return _async_to_generator(function(){return _ts_generator(this,function(r){switch(r.label){case 0:return[4,He(new URL(n,e).href,t)];case 1:return[2,r.sent()]}})})()})];case 3:return[2,(i.sent(),a)]}})})()}function Mr(e,t,n){return function(r){if(!1===r)return!1;if((void 0===r?"undefined":_type_of(r))>"u")return!!e&&t;if(!0===r)return t;if(r&&"object"==(void 0===r?"undefined":_type_of(r)))return _object_spread({},t,r);throw new Error("Unexpected type for `".concat(n,"`, expect boolean/undefined/object, got: ").concat(void 0===r?"undefined":_type_of(r)))}}var vr=function(e){return e},_obj2,Ke="RUNTIME-001",qe="RUNTIME-002",ze="RUNTIME-003",Xe="RUNTIME-004",Ye="RUNTIME-005",Ie="RUNTIME-006",Je="RUNTIME-007",$e="RUNTIME-008",j="RUNTIME-009",kr=function(e){return"View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/".concat(e.split("-")[0].toLowerCase(),"/").concat(e)},A=function(e,t,n,r){var o=["".concat([t[e]]," #").concat(e)];return n&&o.push("args: ".concat(JSON.stringify(n))),o.push(kr(e)),r&&o.push("Original Error Message:\n ".concat(r)),o.join("\n")},w=(_obj2={},_define_property(_obj2,Ke,"Failed to get remoteEntry exports."),_define_property(_obj2,qe,'The remote entry interface does not contain "init"'),_define_property(_obj2,ze,"Failed to get manifest."),_define_property(_obj2,Xe,"Failed to locate remote."),_define_property(_obj2,Ye,"Invalid loadShareSync function call from bundler runtime"),_define_property(_obj2,Ie,"Invalid loadShareSync function call from runtime"),_define_property(_obj2,Je,"Failed to get remote snapshot."),_define_property(_obj2,$e,"Failed to load script resources."),_define_property(_obj2,j,"Please call createInstance first."),_obj2),J="[ Federation Runtime ]",tt=Re(J);function $(e,t){e||G(t)}function G(e){throw _instanceof(e,Error)?(e.message.startsWith(J)||(e.message="".concat(J,": ").concat(e.message)),e):new Error("".concat(J,": ").concat(e))}function Le(e){_instanceof(e,Error)&&(e.message.startsWith(J)||(e.message="".concat(J,": ").concat(e.message))),tt.warn(e)}function $t(e,t){return-1===e.findIndex(function(e){return e===t})&&e.push(t),e}function ce(e){return"version"in e&&e.version?"".concat(e.name,":").concat(e.version):"entry"in e&&e.entry?"".concat(e.name,":").concat(e.entry):"".concat(e.name)}function it(e){return _type_of(e.entry)<"u"}function Lt(e){return!e.entry.includes(".json")}function at(e){return e&&"object"==(void 0===e?"undefined":_type_of(e))}var Cr=Object.prototype.toString;function Gr(e){return"[object Object]"===Cr.call(e)}function Ft(e){return Array.isArray(e)?e:[e]}function Dt(e){var t={url:"",type:"global",globalName:""};return x()||ye()?"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}var Ur=function(e,t){var n;return n=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),n+=t},N="object"==("undefined"==typeof globalThis?"undefined":_type_of(globalThis))?globalThis:window,D=function(){try{return document.defaultView}catch(e){return N}}(),le=D;function Te(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function we(e,t){return Object.hasOwnProperty.call(e,t)}we(N,"__GLOBAL_LOADING_REMOTE_ENTRY__")||Te(N,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});var Y=N.__GLOBAL_LOADING_REMOTE_ENTRY__;function kt(e){var t,n,r,o,a,i,c,s,u,l,f,_;we(e,"__VMOK__")&&!we(e,"__FEDERATION__")&&Te(e,"__FEDERATION__",e.__VMOK__),we(e,"__FEDERATION__")||(Te(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),Te(e,"__VMOK__",e.__FEDERATION__)),null!==(c=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__)&&void 0!==c||(t.__GLOBAL_PLUGIN__=[]),null!==(s=(n=e.__FEDERATION__).__INSTANCES__)&&void 0!==s||(n.__INSTANCES__=[]),null!==(u=(r=e.__FEDERATION__).moduleInfo)&&void 0!==u||(r.moduleInfo={}),null!==(l=(o=e.__FEDERATION__).__SHARE__)&&void 0!==l||(o.__SHARE__={}),null!==(f=(a=e.__FEDERATION__).__MANIFEST_LOADING__)&&void 0!==f||(a.__MANIFEST_LOADING__={}),null!==(_=(i=e.__FEDERATION__).__PRELOADED_MAP__)&&void 0!==_||(i.__PRELOADED_MAP__=new Map)}function xt(e){N.__FEDERATION__.__INSTANCES__.push(e)}function Ht(){return N.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ct(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe())&&(N.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,N.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.21.4")}function Z(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};var n=Object.keys(e),r=!0,o=!1,a=void 0;try{for(var i,c=n[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var s=_sliced_to_array(i.value.split(":"),2),u=s[0],l=(s[1],"".concat(u,":").concat(t)),f=e[l];if(f)return{value:f,key:l}}}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return{value:void 0,key:t}}throw new Error("key must be string")}kt(N),kt(D);var Nt=function(){return D.__FEDERATION__.moduleInfo},Vr=function(e,t){var n=Z(t,ce(e)).value;if(n&&!n.version&&"version"in e&&e.version&&(n.version=e.version),n)return n;if("version"in e&&e.version){var r=e.version,o=ce(_object_without_properties(e,["version"])),a=Z(D.__FEDERATION__.moduleInfo,o).value;if((null==a?void 0:a.version)===r)return a}},Oe=function(e){return Vr(e,D.__FEDERATION__.moduleInfo)},Tt=function(e,t){var n=ce(e);return D.__FEDERATION__.moduleInfo[n]=t,D.__FEDERATION__.moduleInfo},jr=function(e){return D.__FEDERATION__.moduleInfo=_object_spread({},D.__FEDERATION__.moduleInfo,e),function(){var t=Object.keys(e),n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;delete D.__FEDERATION__.moduleInfo[c]}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}},ct=function(e,t){var n=t||"__FEDERATION_".concat(e,":custom__");return{remoteEntryKey:n,entryExports:N[n]}},Gt=function(e){var t=D.__FEDERATION__.__GLOBAL_PLUGIN__;e.forEach(function(e){-1===t.findIndex(function(t){return t.name===e.name})?t.push(e):Le("The plugin ".concat(e.name," has been registered."))})},Br=function(){return D.__FEDERATION__.__GLOBAL_PLUGIN__},Wr=function(e){return N.__FEDERATION__.__PRELOADED_MAP__.get(e)},Kr=function(e){return N.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)},de="default",Ut="global",wt="[0-9A-Za-z-]+",lt="(?:\\+(".concat(wt,"(?:\\.").concat(wt,")*))"),ae="0|[1-9]\\d*",Ae="[0-9]+",Vt="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ot="(?:".concat(Ae,"|").concat(Vt,")"),qr="(?:-?(".concat(Ot,"(?:\\.").concat(Ot,")*))"),At="(?:".concat(ae,"|").concat(Vt,")"),jt="(?:-(".concat(At,"(?:\\.").concat(At,")*))"),Ze="".concat(ae,"|x|X|\\*"),Q="[v=\\s]*(".concat(Ze,")(?:\\.(").concat(Ze,")(?:\\.(").concat(Ze,")(?:").concat(jt,")?").concat(lt,"?)?)?"),zr="^\\s*(".concat(Q,")\\s+-\\s+(").concat(Q,")\\s*$"),Xr="(".concat(Ae,")\\.(").concat(Ae,")\\.(").concat(Ae,")"),Yr="[v=\\s]*".concat(Xr).concat(qr,"?").concat(lt,"?"),ut="((?:<|>)?=?)",Jr="(\\s*)".concat(ut,"\\s*(").concat(Yr,"|").concat(Q,")"),Bt="(?:~>?)",Zr="(\\s*)".concat(Bt,"\\s+"),Wt="(?:\\^)",Qr="(\\s*)".concat(Wt,"\\s+"),en="(<|>)?=?\\s*\\*",tn="^".concat(Wt).concat(Q,"$"),rn="(".concat(ae,")\\.(").concat(ae,")\\.(").concat(ae,")"),nn="v?".concat(rn).concat(jt,"?").concat(lt,"?"),on="^".concat(Bt).concat(Q,"$"),sn="^".concat(ut,"\\s*").concat(Q,"$"),an="^".concat(ut,"\\s*(").concat(nn,")$|^$"),cn="^\\s*>=\\s*0.0.0\\s*$";function U(e){return new RegExp(e)}function P(e){return!e||"x"===e.toLowerCase()||"*"===e}function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}}function Pt(e){return e.match(U(an))}function Mt(e,t,n,r){var o="".concat(e,".").concat(t,".").concat(n);return r?"".concat(o,"-").concat(r):o}function ln(e){return e.replace(U(zr),function(e,t,n,r,o,a,i,c,s,u,l,f){return t=P(n)?"":P(r)?">=".concat(n,".0.0"):P(o)?">=".concat(n,".").concat(r,".0"):">=".concat(t),c=P(s)?"":P(u)?"<".concat(Number(s)+1,".0.0-0"):P(l)?"<".concat(s,".").concat(Number(u)+1,".0-0"):f?"<=".concat(s,".").concat(u,".").concat(l,"-").concat(f):"<=".concat(c),"".concat(t," ").concat(c).trim()})}function un(e){return e.replace(U(Jr),"$1$2$3")}function fn(e){return e.replace(U(Zr),"$1~")}function dn(e){return e.replace(U(Qr),"$1^")}function hn(e){return e.trim().split(/\s+/).map(function(e){return e.replace(U(tn),function(e,t,n,r,o){return P(t)?"":P(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):P(r)?"0"===t?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".0 <").concat(Number(t)+1,".0.0-0"):o?"0"===t?"0"===n?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(Number(t)+1,".0.0-0"):"0"===t?"0"===n?">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(n,".").concat(Number(r)+1,"-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(Number(t)+1,".0.0-0")})}).join(" ")}function pn(e){return e.trim().split(/\s+/).map(function(e){return e.replace(U(on),function(e,t,n,r,o){return P(t)?"":P(n)?">=".concat(t,".0.0 <").concat(Number(t)+1,".0.0-0"):P(r)?">=".concat(t,".").concat(n,".0 <").concat(t,".").concat(Number(n)+1,".0-0"):o?">=".concat(t,".").concat(n,".").concat(r,"-").concat(o," <").concat(t,".").concat(Number(n)+1,".0-0"):">=".concat(t,".").concat(n,".").concat(r," <").concat(t,".").concat(Number(n)+1,".0-0")})}).join(" ")}function mn(e){return e.split(/\s+/).map(function(e){return e.trim().replace(U(sn),function(e,t,n,r,o,a){var i=P(n),c=i||P(r),s=c||P(o);return"="===t&&s&&(t=""),a="",i?">"===t||"<"===t?"<0.0.0-0":"*":t&&s?(c&&(r=0),o=0,">"===t?(t=">=",c?(n=Number(n)+1,r=0,o=0):(r=Number(r)+1,o=0)):"<="===t&&(t="<",c?n=Number(n)+1:r=Number(r)+1),"<"===t&&(a="-0"),"".concat(t+n,".").concat(r,".").concat(o).concat(a)):c?">=".concat(n,".0.0").concat(a," <").concat(Number(n)+1,".0.0-0"):s?">=".concat(n,".").concat(r,".0").concat(a," <").concat(n,".").concat(Number(r)+1,".0-0"):e})}).join(" ")}function yn(e){return e.trim().replace(U(en),"")}function _n(e){return e.trim().replace(U(cn),"")}function Pe(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function En(e,t){var n=e.preRelease,r=t.preRelease;if(void 0===n&&r)return 1;if(n&&void 0===r)return-1;if(void 0===n&&void 0===r)return 0;for(var o=0,a=n.length;o<=a;o++){var i=n[o],c=r[o];if(i!==c)return void 0===i&&void 0===c?0:i?c?Pe(i,c):-1:1}return 0}function Ne(e,t){return Pe(e.major,t.major)||Pe(e.minor,t.minor)||Pe(e.patch,t.patch)||En(e,t)}function Qe(e,t){return e.version===t.version}function gn(e,t){switch(e.operator){case"":case"=":return Qe(e,t);case">":return Ne(e,t)<0;case">=":return Qe(e,t)||Ne(e,t)<0;case"<":return Ne(e,t)>0;case"<=":return Qe(e,t)||Ne(e,t)>0;case void 0:return!0;default:return!1}}function bn(e){return Kt(hn,pn,mn,yn)(e)}function Rn(e){return Kt(ln,un,fn,dn)(e.trim()).split(/\s+/).join(" ")}function Me(e,t){if(!e)return!1;var n=Pt(e);if(!n)return!1;var r=_sliced_to_array(n,7),o=r[1],a=r[3],i=r[4],c=r[5],s=r[6],u={operator:o,version:Mt(a,i,c,s),major:a,minor:i,patch:c,preRelease:null==s?void 0:s.split(".")},l=t.split("||"),f=!0,_=!1,p=void 0;try{for(var h,d=l[Symbol.iterator]();!(f=(h=d.next()).done);f=!0){var m=h.value.trim();if(!m||"*"===m||"x"===m)return!0;try{var y=Rn(m);if(!y.trim())return!0;var v=y.split(" ").map(function(e){return bn(e)}).join(" ");if(!v.trim())return!0;var g=v.split(/\s+/).map(function(e){return _n(e)}).filter(Boolean);if(0===g.length)continue;var b=!0,E=!0,S=!1,I=void 0;try{for(var N,w=g[Symbol.iterator]();!(E=(N=w.next()).done);E=!0){var R=Pt(N.value);if(!R){b=!1;break}var A=_sliced_to_array(R,7),k=A[1],O=A[3],j=A[4],T=A[5],P=A[6];if(!gn({operator:k,version:Mt(O,j,T,P),major:O,minor:j,patch:T,preRelease:null==P?void 0:P.split(".")},u)){b=!1;break}}}catch(e){S=!0,I=e}finally{try{E||null==w.return||w.return()}finally{if(S)throw I}}if(b)return!0}catch(e){console.error('[semver] Error processing range part "'.concat(m,'":'),e);continue}}}catch(e){_=!0,p=e}finally{try{f||null==d.return||d.return()}finally{if(_)throw p}}return!1}function Sn(e,t,n,r){var o,a,i,c;return o="get"in e?e.get:"lib"in e?function(){return Promise.resolve(e.lib)}:function(){return Promise.resolve(function(){throw new Error("Can not get shared '".concat(n,"'!"))})},_object_spread_props(_object_spread({deps:[],useIn:[],from:t,loading:null},e),{shareConfig:_object_spread({requiredVersion:"^".concat(e.version),singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:o,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!==(a=e.version)&&void 0!==a?a:"0",scope:Array.isArray(e.scope)?e.scope:[null!==(i=e.scope)&&void 0!==i?i:"default"],strategy:(null!==(c=e.strategy)&&void 0!==c?c:r)||"version-first"})}function qt(e,t){var n=t.shared||{},r=t.name,o=Object.keys(n).reduce(function(e,o){var a=Ft(n[o]);return e[o]=e[o]||[],a.forEach(function(n){e[o].push(Sn(n,r,o,t.shareStrategy))}),e},{}),a=_object_spread({},e.shared);return Object.keys(o).forEach(function(e){a[e]?o[e].forEach(function(t){a[e].find(function(e){return e.version===t.version})||a[e].push(t)}):a[e]=o[e]}),{shared:a,shareInfos:o}}function ue(e,t){var n=function(e){if(!Number.isNaN(Number(e))){for(var t=e.split("."),n=e,r=0;r<3-t.length;r++)n+=".0";return n}return e};return!!Me(n(e),"<=".concat(n(t)))}var ft=function(e,t){var n=t||function(e,t){return ue(e,t)};return Object.keys(e).reduce(function(e,t){return!e||n(e,t)||"0"===e?t:e},0)},dt=function(e){return!!e.loaded||"function"==typeof e.lib},In=function(e){return!!e.loading};function $n(e,t,n){var r=e[t][n];return ft(e[t][n],function(e,t){return!dt(r[e])&&ue(e,t)})}function Nn(e,t,n){var r=e[t][n];return ft(e[t][n],function(e,t){var n=function(e){return dt(e)||In(e)};return n(r[t])?!n(r[e])||!!ue(e,t):!n(r[e])&&ue(e,t)})}function Tn(e){return"loaded-first"===e?Nn:$n}function ve(e,t,n,r){if(e){var o=n.shareConfig,a=n.scope,i=void 0===a?de:a,c=n.strategy,s=Array.isArray(i)?i:[i],u=!0,l=!1,f=void 0;try{for(var _,p=function(){var a=_.value;if(o&&e[a]&&e[a][t]){var i=o.requiredVersion,s=Tn(c)(e,a,t),u={shareScopeMap:e,scope:a,pkgName:t,version:s,GlobalFederation:le.__FEDERATION__,resolver:function(){if(o.singleton){if("string"==typeof i&&!Me(s,i)){var r="Version ".concat(s," from ").concat(s&&e[a][t][s].from," of shared singleton module ").concat(t," does not satisfy the requirement of ").concat(n.from," which needs ").concat(i,")");o.strictVersion?G(r):Le(r)}return e[a][t][s]}if(!1===i||"*"===i||Me(s,i))return e[a][t][s];var c=!0,u=!1,l=void 0;try{for(var f,_=Object.entries(e[a][t])[Symbol.iterator]();!(c=(f=_.next()).done);c=!0){var p=_sliced_to_array(f.value,2),h=p[0],d=p[1];if(Me(h,i))return d}}catch(e){u=!0,l=e}finally{try{c||null==_.return||_.return()}finally{if(u)throw l}}}};return{v:(r.emit(u)||u).resolver()}}},h=s[Symbol.iterator]();!(u=(_=h.next()).done);u=!0){var d=p();if("object"===_type_of(d))return d.v}}catch(e){l=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}}}function zt(){return le.__FEDERATION__.__SHARE__}function vt(e){var t,n=e.pkgName,r=e.extraOptions,o=e.shareInfos,a=null!==(t=null==r?void 0:r.resolver)&&void 0!==t?t:function(e){if(e){var t={};e.forEach(function(e){t[e.version]=e});var n=ft(t,function(e,n){return!dt(t[e])&&ue(e,n)});return t[n]}};return Object.assign({},a(o[n]),null==r?void 0:r.customShareInfo)}function wn(){return("undefined"==typeof FEDERATION_BUILD_IDENTIFIER?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""}function On(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value,s=t.startsWith(c.name),u=t.replace(c.name,"");if(s){if(u.startsWith("/"))return{pkgNameOrAlias:c.name,expose:u=".".concat(u),remote:c};if(""===u)return{pkgNameOrAlias:c.name,expose:".",remote:c}}var l=c.alias&&t.startsWith(c.alias),f=c.alias&&t.replace(c.alias,"");if(c.alias&&l){if(f&&f.startsWith("/"))return{pkgNameOrAlias:c.alias,expose:f=".".concat(f),remote:c};if(""===f)return{pkgNameOrAlias:c.alias,expose:".",remote:c}}}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function An(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;if(t===c.name||c.alias&&t===c.alias)return c}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}function Pn(e,t){var n=Br(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return n.length>0&&n.forEach(function(t){(null==e?void 0:e.find(function(e){return e.name!==t.name}))&&e.push(t)}),e&&e.length>0&&e.forEach(function(e){r.forEach(function(n){n.applyPlugin(e,t)})}),e}var Xt=".then(callbacks[0]).catch(callbacks[1])";function Mn(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){return t=e.entry,n=e.remoteEntryExports,[2,new Promise(function(e,r){try{n?e(n):new Function("callbacks",'import("'.concat(t,'")').concat(Xt))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)}function vn(e){return _async_to_generator(function(e){var t,n;return _ts_generator(this,function(r){return t=e.entry,n=e.remoteEntryExports,[2,new Promise(function(e,r){try{n?e(n):("undefined"==typeof __system_context__?"undefined":_type_of(__system_context__))>"u"?System.import(t).then(e).catch(r):new Function("callbacks",'System.import("'.concat(t,'")').concat(Xt))([e,r])}catch(e){r(e)}})]})}).apply(this,arguments)}function Yt(e,t,n){var r=ct(e,t),o=r.remoteEntryKey,a=r.entryExports;return $(a,A(Ke,w,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:o})),a}function Ln(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){return t=e.name,n=e.globalName,r=e.entry,o=e.loaderHook,a=e.getEntryUrl,i=ct(t,n),(c=i.entryExports)?[2,c]:[2,z(a?a(r):r,{attrs:{},createScriptHook:function(e,t){var n=o.lifecycle.createScript.emit({url:e,attrs:t});if(n&&(_instanceof(n,HTMLScriptElement)||"script"in n||"timeout"in n))return n}}).then(function(){return Yt(t,n,r)}).catch(function(e){throw $(void 0,A($e,w,{remoteName:t,resourceUrl:r})),e})]})}).apply(this,arguments)}function Fn(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){switch(t=e.remoteInfo,n=e.remoteEntryExports,r=e.loaderHook,o=e.getEntryUrl,a=t.entry,i=t.entryGlobalName,c=t.name,t.type){case"esm":case"module":return[2,Mn({entry:a,remoteEntryExports:n})];case"system":return[2,vn({entry:a,remoteEntryExports:n})];default:return[2,Ln({entry:a,globalName:i,name:c,loaderHook:r,getEntryUrl:o})]}return[2]})}).apply(this,arguments)}function Dn(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c;return _ts_generator(this,function(s){return t=e.remoteInfo,n=e.loaderHook,r=t.entry,o=t.entryGlobalName,a=t.name,i=t.type,c=ct(a,o),[2,c.entryExports||X(r,{attrs:{name:a,globalName:o,type:i},loaderHook:{createScriptHook:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.lifecycle.createScript.emit({url:e,attrs:t});if(r&&"url"in r)return r}}}).then(function(){return Yt(a,o,r)}).catch(function(e){throw e})]})}).apply(this,arguments)}function rt(e){var t=e.entry,n=e.name;return _e(n,t)}function ee(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u;return _ts_generator(this,function(l){return t=e.origin,n=e.remoteEntryExports,r=e.remoteInfo,o=e.getEntryUrl,a=e._inErrorHandling,i=void 0!==a&&a,c=rt(r),n?[2,n]:(Y[c]||(s=t.remoteHandler.hooks.lifecycle.loadEntry,u=t.loaderHook,Y[c]=s.emit({loaderHook:u,remoteInfo:r,remoteEntryExports:n}).then(function(e){return e||((("undefined"==typeof ENV_TARGET?"undefined":_type_of(ENV_TARGET))<"u"?"web"===ENV_TARGET:x())?Fn({remoteInfo:r,remoteEntryExports:n,loaderHook:u,getEntryUrl:o}):Dn({remoteInfo:r,loaderHook:u}))}).catch(function(e){return _async_to_generator(function(){var o,a,c;return _ts_generator(this,function(s){switch(s.label){case 0:return o=rt(r),_instanceof(e,Error)&&e.message.includes($e)&&!i?(a=function(e){return ee(_object_spread_props(_object_spread({},e),{_inErrorHandling:!0}))},[4,t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:a,origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:Y,uniqueKey:o})]):[3,2];case 1:if(c=s.sent())return[2,c];s.label=2;case 2:throw e}})})()})),[2,Y[c]])})})()}function fe(e){return _object_spread_props(_object_spread({},e),{entry:"entry"in e?e.entry:"",type:e.type||Ut,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||de})}function Jt(e){return _object_spread({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function kn(e,t){return t.map(function(t){var n=An(e,t.nameOrAlias);return $(n,"Unable to preload ".concat(t.nameOrAlias," as it is not included in ").concat(!n&&ge({remoteInfo:n,remotes:e}))),{remote:n,preloadConfig:Jt(t)}})}function xn(e){return e?e.map(function(e){return"."===e?e:e.startsWith("./")?e.replace("./",""):e}):[]}function Zt(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=n.cssAssets,a=n.jsAssetsWithoutEntry,i=n.entryAssets;if(t.options.inBrowser){if(i.forEach(function(n){var r=n.moduleInfo,o=t.moduleCache.get(e.name);ee(o?{origin:t,remoteInfo:r,remoteEntryExports:o.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){var c={rel:"preload",as:"style"};o.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:c,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r}}),r=n.link;n.needAttach&&document.head.appendChild(r)})}else{var s={rel:"stylesheet",type:"text/css"};o.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:s,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r},needDeleteLink:!1}),r=n.link;n.needAttach&&document.head.appendChild(r)})}if(r){var u={rel:"preload",as:"script"};a.forEach(function(e){var n=ie({url:e,cb:function(){},attrs:u,createLinkHook:function(e,n){var r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(_instanceof(r,HTMLLinkElement))return r}}),r=n.link;n.needAttach&&document.head.appendChild(r)})}else{var l={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};a.forEach(function(e){var n=Se({url:e,cb:function(){},attrs:l,createScriptHook:function(e,n){var r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:n});if(_instanceof(r,HTMLScriptElement))return r},needDeleteScript:!0}),r=n.script;n.needAttach&&document.head.appendChild(r)})}}}var te=function(){function e(t){var n=t.remoteInfo,r=t.host;_class_call_check(this,e),this.inited=!1,this.lib=void 0,this.remoteInfo=n,this.host=r}return _create_class(e,[{key:"getEntry",value:function(){return _async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return this.remoteEntryExports?[2,this.remoteEntryExports]:[4,ee({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})];case 1:return[2,(e=t.sent(),$(e,"remoteEntryExports is undefined \n ".concat(ge(this.remoteInfo))),this.remoteEntryExports=e,this.remoteEntryExports)]}})}).call(this)}},{key:"get",value:function(e,t,n,r){return _async_to_generator(function(){var o,a,i,c,s,u,l,f,_,p,h,d,m;return _ts_generator(this,function(y){switch(y.label){case 0:return o=(n||{loadFactory:!0}).loadFactory,a=void 0===o||o,[4,this.getEntry()];case 1:return i=y.sent(),this.inited?[3,5]:(c=this.host.shareScopeMap,(s=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope]).length||s.push("default"),s.forEach(function(e){c[e]||(c[e]={})}),u=c[s[0]],l=[],f={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?s:this.remoteInfo.shareScope||"default"},Object.defineProperty(f,"shareScopeMap",{value:c,enumerable:!1}),[4,this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:u,remoteEntryInitOptions:f,initScope:l,remoteInfo:this.remoteInfo,origin:this.host})]);case 2:return _=y.sent(),_type_of(null==i?void 0:i.init)>"u"&&G(A(qe,w,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),[4,i.init(_.shareScope,_.initScope,_.remoteEntryInitOptions)];case 3:return y.sent(),[4,this.host.hooks.lifecycle.initContainer.emit(_object_spread_props(_object_spread({},_),{id:e,remoteSnapshot:r,remoteEntryExports:i}))];case 4:y.sent(),y.label=5;case 5:return this.lib=i,this.inited=!0,[4,this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo})];case 6:return p=y.sent(),p?[3,8]:[4,i.get(t)];case 7:p=y.sent(),y.label=8;case 8:return $(p,"".concat(ce(this.remoteInfo)," remote don't export ").concat(t,".")),h=Ur(this.remoteInfo.name,t),d=this.wraperFactory(p,h),a?[4,d()]:[3,10];case 9:return m=y.sent(),[3,11];case 10:m=d,y.label=11;case 11:return[2,m]}})}).call(this)}},{key:"wraperFactory",value:function(e,t){function n(e,t){e&&"object"==(void 0===e?"undefined":_type_of(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 _instanceof(e,Promise)?function(){return _async_to_generator(function(){var r;return _ts_generator(this,function(o){switch(o.label){case 0:return[4,e()];case 1:return[2,(n(r=o.sent(),t),r)]}})})()}:function(){var r=e();return n(r,t),r}}}]),e}(),M=function(){function e(t){_class_call_check(this,e),this.type="",this.listeners=new Set,t&&(this.type=t)}return _create_class(e,[{key:"on",value:function(e){"function"==typeof e&&this.listeners.add(e)}},{key:"once",value:function(e){var t=this;this.on(function n(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t.remove(n),e.apply(null,o)})}},{key:"emit",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return this.listeners.size>0&&this.listeners.forEach(function(e){r=e.apply(void 0,_to_consumable_array(t))}),r}},{key:"remove",value:function(e){this.listeners.delete(e)}},{key:"removeAll",value:function(){this.listeners.clear()}}]),e}(),L=function(e){function t(){return _class_call_check(this,t),_call_super(this,t,arguments)}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=Array.from(this.listeners);if(o.length>0){var a=0,i=function(e){return!1!==e&&(a<o.length?Promise.resolve(o[a++].apply(null,t)).then(i):e)};r=i()}return Promise.resolve(r)}}]),t}(M);function Qt(e,t){if(!at(t))return!1;if(e!==t)for(var n in e)if(!(n in t))return!1;return!0}var K=function(e){function t(e){var n;return _class_call_check(this,t),(n=_call_super(this,t)).onerror=G,n.type=e,n}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(e){at(e)||G('The data for the "'.concat(this.type,'" hook should be an object.'));var t=!0,n=!1,r=void 0;try{for(var o,a=this.listeners[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;try{var c=i(e);if(!Qt(e,c)){this.onerror('A plugin returned an unacceptable value for the "'.concat(this.type,'" type.'));break}e=c}catch(e){Le(e),this.onerror(e)}}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}}]),t}(M),C=function(e){function t(e){var n;return _class_call_check(this,t),(n=_call_super(this,t)).onerror=G,n.type=e,n}return _inherits(t,e),_create_class(t,[{key:"emit",value:function(e){var t=this;at(e)||G('The response data for the "'.concat(this.type,'" hook must be an object.'));var n=Array.from(this.listeners);if(n.length>0){var r=0,o=function(n){return Le(n),t.onerror(n),e},a=function(i){if(Qt(e,i)){if(e=i,r<n.length)try{return Promise.resolve(n[r++](e)).then(a,o)}catch(e){return o(e)}}else t.onerror('A plugin returned an incorrect value for the "'.concat(t.type,'" type.'));return e};return Promise.resolve(a(e))}return Promise.resolve(e)}}]),t}(M),B=function(){function e(t){_class_call_check(this,e),this.registerPlugins={},this.lifecycle=t,this.lifecycleKeys=Object.keys(t)}return _create_class(e,[{key:"applyPlugin",value:function(e,t){var n,r=this;$(Gr(e),"Plugin configuration is invalid.");var o=e.name;$(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=e,null===(n=e.apply)||void 0===n||n.call(e,t),Object.keys(this.lifecycle).forEach(function(t){var n=e[t];n&&r.lifecycle[t].on(n)}))}},{key:"removePlugin",value:function(e){var t=this;$(e,"A name is required.");var n=this.registerPlugins[e];$(n,'The plugin "'.concat(e,'" is not registered.')),Object.keys(n).forEach(function(e){"name"!==e&&t.lifecycle[e].remove(n[e])})}}]),e}();function er(e,t){var n=Dt(t);n.url||G("The attribute remoteEntry of ".concat(e.name," must not be undefined."));var r=se(t,n.url);!x()&&!r.startsWith("http")&&(r="https:".concat(r)),e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function Hn(){return{name:"snapshot-plugin",afterResolve:function(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l,f;return _ts_generator(this,function(_){switch(_.label){case 0:return t=e.remote,n=e.pkgNameOrAlias,r=e.expose,o=e.origin,a=e.remoteInfo,i=e.id,it(t)&&Lt(t)?[3,3]:[4,o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i})];case 1:return c=_.sent(),s=c.remoteSnapshot,u=c.globalSnapshot,er(a,s),l={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},[4,o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:l,remoteInfo:a,remote:t,remoteSnapshot:s,globalSnapshot:u})];case 2:return[2,((f=_.sent())&&Zt(a,o,f,!1),_object_spread_props(_object_spread({},e),{remoteSnapshot:s}))];case 3:return[2,e]}})})()}}}function Cn(e){var 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 tr(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5?arguments[5]:void 0,i=Z(e,ce(t)).value,c=a||i;if(c&&!be(c)&&(n(c,t,r),c.remotesInfo)){var s=Object.keys(c.remotesInfo),u=!0,l=!1,f=void 0;try{for(var _,p=s[Symbol.iterator]();!(u=(_=p.next()).done);u=!0){var h=_.value;if(!o[h]){o[h]=!0;var d=Cn(h),m=c.remotesInfo[h];tr(e,{name:d.name,version:m.matchedVersion},n,!1,o,void 0)}}}catch(e){l=!0,f=e}finally{try{u||null==p.return||p.return()}finally{if(l)throw f}}}}var et=function(e,t){return document.querySelector("".concat(e,"[").concat("link"===e?"href":"src",'="').concat(t,'"]'))};function Gn(e,t,n,r,o){var a=[],i=[],c=[],s=new Set,u=new Set,l=e.options,f=t.preloadConfig,_=f.depsRemote;if(tr(r,n,function(t,n,r){var o,s,u=function(e){var n=e.map(function(e){return se(t,e)});return s.filter?n.filter(s.filter):n};if(r)s=f;else if(Array.isArray(_)){var l=_.find(function(e){return e.nameOrAlias===n.name||e.nameOrAlias===n.alias});if(!l)return;s=Jt(l)}else{if(!0!==_)return;s=f}var p=se(t,Dt(t).url);p&&c.push({name:n.name,moduleInfo:{name:n.name,entry:p,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:n.name,shareScope:"",version:"version"in t?t.version:void 0},url:p});var h="modules"in t?t.modules:[],d=xn(s.exposes);if(d.length&&"modules"in t&&(h=null==t||null===(o=t.modules)||void 0===o?void 0:o.reduce(function(e,t){return-1!==(null==d?void 0:d.indexOf(t.moduleName))&&e.push(t),e},[])),h)for(var m=h.length,y=0;y<m;y++){var v,g,b,E,S,I,N=h[y],w="".concat(n.name,"/").concat(N.moduleName);e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===N.moduleName?n.name:w,name:n.name,remoteSnapshot:t,preloadConfig:s,remote:n,origin:e}),!Wr(w)&&("all"===s.resourceCategory?((v=a).push.apply(v,_to_consumable_array(u(N.assets.css.async))),(g=a).push.apply(g,_to_consumable_array(u(N.assets.css.sync))),(b=i).push.apply(b,_to_consumable_array(u(N.assets.js.async))),(E=i).push.apply(E,_to_consumable_array(u(N.assets.js.sync)))):(s.resourceCategory="sync")&&((S=a).push.apply(S,_to_consumable_array(u(N.assets.css.sync))),(I=i).push.apply(I,_to_consumable_array(u(N.assets.js.sync)))),Kr(w))}},!0,{},o),o.shared&&o.shared.length>0){o.shared.forEach(function(t){var n,r=null===(n=l.shared)||void 0===n?void 0:n[t.sharedName];if(r){var o=t.version?r.find(function(e){return e.version===t.version}):r;o&&Ft(o).forEach(function(n){!function(t,n){var r=ve(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&"function"==typeof r.lib&&(n.assets.js.sync.forEach(function(e){s.add(e)}),n.assets.css.sync.forEach(function(e){u.add(e)}))}(n,t)})}})}var p=i.filter(function(e){return!s.has(e)&&!et("script",e)});return{cssAssets:a.filter(function(e){return!u.has(e)&&!et("link",e)}),jsAssetsWithoutEntry:p,entryAssets:c.filter(function(e){return!et("script",e.url)})}}var Un=function(){return{name:"generate-preload-assets-plugin",generatePreloadAssets:function(e){return _async_to_generator(function(){var t,n,r,o,a,i;return _ts_generator(this,function(c){return t=e.origin,n=e.preloadOptions,r=e.remoteInfo,o=e.remote,a=e.globalSnapshot,i=e.remoteSnapshot,[2,x()?it(o)&&Lt(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:r.name,entry:o.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(er(r,i),Gn(t,n,r,a,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}]})})()}}};function rr(e,t){var n=Oe({name:t.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&Z(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:Nt(),remoteSnapshot:Oe({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Nt(),remoteSnapshot:Oe({name:e.name,version:"version"in e?e.version:void 0})}}var nt=function(){function e(t){_class_call_check(this,e),this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new B({beforeLoadRemoteSnapshot:new L("beforeLoadRemoteSnapshot"),loadSnapshot:new C("loadGlobalSnapshot"),loadRemoteSnapshot:new C("loadRemoteSnapshot"),afterLoadSnapshot:new C("afterLoadSnapshot")}),this.manifestLoading=le.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=t,this.loaderHook=t.loaderHook}return _create_class(e,[{key:"loadRemoteSnapshotInfo",value:function(e){return _async_to_generator(function(e){var t,n,r,o,a,i,c,s,u,l,f,_,p,h,d,m,y,v,g,b,E,S,I;return _ts_generator(this,function(N){switch(N.label){case 0:return t=e.moduleInfo,n=e.id,e.expose,r=this.HostInstance,o=r.options,[4,this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:o,moduleInfo:t})];case 1:return N.sent(),(a=Oe({name:this.HostInstance.options.name,version:this.HostInstance.options.version}))||(a={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},jr(_define_property({},this.HostInstance.options.name,a))),a&&"remotesInfo"in a&&!Z(a.remotesInfo,t.name).value&&("version"in t||"entry"in t)&&(a.remotesInfo=_object_spread_props(_object_spread({},null==a?void 0:a.remotesInfo),_define_property({},t.name,{matchedVersion:"version"in t?t.version:t.entry}))),i=this.getGlobalRemoteInfo(t),c=i.hostGlobalSnapshot,s=i.remoteSnapshot,u=i.globalSnapshot,[4,this.hooks.lifecycle.loadSnapshot.emit({options:o,moduleInfo:t,hostGlobalSnapshot:c,remoteSnapshot:s,globalSnapshot:u})];case 2:return l=N.sent(),f=l.remoteSnapshot,_=l.globalSnapshot,f?be(f)?(d=x()?f.remoteEntry:f.ssrRemoteEntry||f.remoteEntry||"",[4,this.getManifestJson(d,t,{})]):[3,4]:[3,7];case 3:return m=N.sent(),y=Tt(_object_spread_props(_object_spread({},t),{entry:d}),m),p=m,h=y,[3,6];case 4:return[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:f,from:"global"})];case 5:v=N.sent(),g=v.remoteSnapshot,p=g,h=_,N.label=6;case 6:return[3,11];case 7:return it(t)?[4,this.getManifestJson(t.entry,t,{})]:[3,10];case 8:return b=N.sent(),E=Tt(t,b),[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,remoteSnapshot:b,from:"global"})];case 9:return S=N.sent(),I=S.remoteSnapshot,p=I,h=E,[3,11];case 10:G(A(Je,w,{hostName:t.name,hostVersion:t.version,globalSnapshot:JSON.stringify(_)})),N.label=11;case 11:return[4,this.hooks.lifecycle.afterLoadSnapshot.emit({id:n,host:this.HostInstance,options:o,moduleInfo:t,remoteSnapshot:p})];case 12:return[2,(N.sent(),{remoteSnapshot:p,globalSnapshot:h})]}})}).apply(this,arguments)}},{key:"getGlobalRemoteInfo",value:function(e){return rr(e,this.HostInstance)}},{key:"getManifestJson",value:function(e,t,n){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){return n=this,r=function(){return _async_to_generator(function(){var n,r,o;return _ts_generator(this,function(a){switch(a.label){case 0:if(n=this.manifestCache.get(e))return[2,n];a.label=1;case 1:return a.trys.push([1,6,,8]),[4,this.loaderHook.lifecycle.fetch.emit(e,{})];case 2:return r=a.sent(),!r||!_instanceof(r,Response)?[4,fetch(e,{})]:[3,4];case 3:r=a.sent(),a.label=4;case 4:return[4,r.json()];case 5:return n=a.sent(),[3,8];case 6:return o=a.sent(),[4,this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:o,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance})];case 7:return(n=a.sent())||(delete this.manifestLoading[e],G(A(ze,w,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},"".concat(o)))),[3,8];case 8:return[2,($(n.metaData&&n.exposes&&n.shared,"".concat(e," is not a federation manifest")),this.manifestCache.set(e,n),n)]}})}).call(n)},o=function(){return _async_to_generator(function(){var n,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,r()];case 1:return n=i.sent(),o=Ve(n,{version:e}),[4,this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:o,manifestUrl:e,from:"manifest"})];case 2:return a=i.sent(),[2,a.remoteSnapshot]}})}).call(n)},[2,(this.manifestLoading[e]||(this.manifestLoading[e]=o().then(function(e){return e})),this.manifestLoading[e])]})}).call(this)}}]),e}(),ot=function(){function e(t){_class_call_check(this,e),this.hooks=new B({afterResolve:new C("afterResolve"),beforeLoadShare:new C("beforeLoadShare"),loadShare:new L,resolveShare:new K("resolveShare"),initContainerShareScopeMap:new K("initContainerShareScopeMap")}),this.host=t,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(t.options)}return _create_class(e,[{key:"registerShared",value:function(e,t){var n=this,r=qt(e,t),o=r.shareInfos,a=r.shared;return Object.keys(o).forEach(function(e){o[e].forEach(function(r){r.scope.forEach(function(o){var a;(null===(a=n.shareScopeMap[o])||void 0===a?void 0:a[e])||n.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{shareInfos:o,shared:a}}},{key:"loadShare",value:function(e,t){return _async_to_generator(function(){var n,r,o,a,i,c,s,u,l,f;return _ts_generator(this,function(_){switch(_.label){case 0:return n=this,r=this.host,o=vt({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),(null==o?void 0:o.scope)?[4,Promise.all(o.scope.map(function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.initializeSharing(e,{strategy:o.strategy}))];case 1:return t.sent(),[2]}})}).call(n)}))]:[3,2];case 1:_.sent(),_.label=2;case 2:return[4,this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:o,shared:r.options.shared,origin:r})];case 3:return a=_.sent(),$(i=a.shareInfo,"Cannot find ".concat(e," Share in the ").concat(r.options.name,". Please ensure that the ").concat(e," Share parameters have been injected")),c=ve(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare),s=function(e){e.useIn||(e.useIn=[]),$t(e.useIn,r.options.name)},c&&c.lib?[2,(s(c),c.lib)]:c&&c.loading&&!c.loaded?[4,c.loading]:[3,5];case 4:return u=_.sent(),[2,(c.loaded=!0,c.lib||(c.lib=u),s(c),u)];case 5:return c?(l=_async_to_generator(function(){var e;return _ts_generator(this,function(t){switch(t.label){case 0:return[4,c.get()];case 1:return e=t.sent(),[2,(s(c),c.loaded=!0,c.lib=e,e)]}})})(),[2,(this.setShared({pkgName:e,loaded:!1,shared:c,from:r.options.name,lib:null,loading:l}),l)]):(null==t?void 0:t.customShareInfo)?[2,!1]:(f=_async_to_generator(function(){var t,n;return _ts_generator(this,function(r){switch(r.label){case 0:return[4,i.get()];case 1:return t=r.sent(),i.lib=t,i.loaded=!0,s(i),[2,((n=ve(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare))&&(n.lib=t,n.loaded=!0,n.from=i.from),t)]}})}).call(n),[2,(this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:f}),f)]);case 6:return[2]}})}).call(this)}},{key:"initializeSharing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0,n=this.host,r=null==t?void 0:t.from,o=null==t?void 0:t.strategy,a=null==t?void 0:t.initScope,i=[];if("build"!==r){var c=this.initTokens;a||(a=[]);var s=c[e];if(s||(s=c[e]={from:this.host.name}),a.indexOf(s)>=0)return i;a.push(s)}var u=this.shareScopeMap,l=n.options.name;u[e]||(u[e]={});var f=u[e],_=function(t){return t&&t.init&&t.init(u[e],a)};return Object.keys(n.options.shared).forEach(function(t){n.options.shared[t].forEach(function(n){n.scope.includes(e)&&function(e,t){var n,r=t.version,o=t.eager;f[e]=f[e]||{};var a=f[e],i=a[r],c=!(!i||!i.eager&&!(null===(n=i.shareConfig)||void 0===n?void 0:n.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(!o!=!c?o:l>i.from))&&(a[r]=t)}(t,n)})}),("version-first"===n.options.shareStrategy||"version-first"===o)&&n.options.remotes.forEach(function(t){t.shareScope===e&&i.push(function(e){return _async_to_generator(function(){var t,r,o,a;return _ts_generator(this,function(i){switch(i.label){case 0:return[4,n.remoteHandler.getRemoteModuleAndOptions({id:e})];case 1:if(t=i.sent(),!(r=t.module).getEntry)return[3,9];i.label=2;case 2:return i.trys.push([2,4,,6]),[4,r.getEntry()];case 3:return o=i.sent(),[3,6];case 4:return a=i.sent(),[4,n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:a,from:"runtime",lifecycle:"beforeLoadShare",origin:n})];case 5:return o=i.sent(),[3,6];case 6:return r.inited?[3,8]:[4,_(o)];case 7:i.sent(),r.inited=!0,i.label=8;case 8:i.label=9;case 9:return[2]}})})()}(t.name))}),i}},{key:"loadShareSync",value:function(e,t){var n=this,r=this.host,o=vt({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==o?void 0:o.scope)&&o.scope.forEach(function(e){n.initializeSharing(e,{strategy:o.strategy})});var a=ve(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),i=function(e){e.useIn||(e.useIn=[]),$t(e.useIn,r.options.name)};if(a){if("function"==typeof a.lib)return i(a),a.loaded||(a.loaded=!0,a.from===r.options.name&&(o.loaded=!0)),a.lib;if("function"==typeof a.get){var c=a.get();if(!_instanceof(c,Promise))return i(a),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:c,shared:a}),c}}if(o.lib)return o.loaded||(o.loaded=!0),o.lib;if(o.get){var s=o.get();if(_instanceof(s,Promise)){var u="build"===(null==t?void 0:t.from)?Ye:Ie;throw new Error(A(u,w,{hostName:r.options.name,sharedPkgName:e}))}return o.lib=s,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:o.lib,shared:o}),o.lib}throw new Error(A(Ie,w,{hostName:r.options.name,sharedPkgName:e}))}},{key:"initShareScopeMap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.host;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}},{key:"setShared",value:function(e){var t=this,n=e.pkgName,r=e.shared,o=e.from,a=e.lib,i=e.loading,c=e.loaded,s=e.get,u=r.version,l=r.scope,f=void 0===l?"default":l,_=_object_without_properties(r,["version","scope"]);(Array.isArray(f)?f:[f]).forEach(function(e){if(t.shareScopeMap[e]||(t.shareScopeMap[e]={}),t.shareScopeMap[e][n]||(t.shareScopeMap[e][n]={}),!t.shareScopeMap[e][n][u])return t.shareScopeMap[e][n][u]=_object_spread_props(_object_spread({version:u,scope:[e]},_),{lib:a,loaded:c,loading:i}),void(s&&(t.shareScopeMap[e][n][u].get=s));var r=t.shareScopeMap[e][n][u];i&&!r.loading&&(r.loading=i),c&&!r.loaded&&(r.loaded=c),o&&r.from!==o&&(r.from=o)})}},{key:"_setGlobalShareScopeMap",value:function(e){var t=zt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}]),e}(),st=function(){function e(t){_class_call_check(this,e),this.hooks=new B({beforeRegisterRemote:new K("beforeRegisterRemote"),registerRemote:new K("registerRemote"),beforeRequest:new C("beforeRequest"),onLoad:new L("onLoad"),handlePreloadModule:new M("handlePreloadModule"),errorLoadRemote:new L("errorLoadRemote"),beforePreloadRemote:new L("beforePreloadRemote"),generatePreloadAssets:new L("generatePreloadAssets"),afterPreloadRemote:new L,loadEntry:new L}),this.host=t,this.idToRemoteMap={}}return _create_class(e,[{key:"formatAndRegisterRemote",value:function(e,t){var n=this;return(t.remotes||[]).reduce(function(e,t){return n.registerRemote(t,e,{force:!1}),e},e.remotes)}},{key:"setIdToRemoteMap",value:function(e,t){var n=t.remote,r=t.expose,o=n.name,a=n.alias;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(o)){var i=e.replace(o,a);this.idToRemoteMap[i]={name:n.name,expose:r}}else if(a&&e.startsWith(a)){var c=e.replace(a,o);this.idToRemoteMap[c]={name:n.name,expose:r}}}},{key:"loadRemote",value:function(e,t){return _async_to_generator(function(){var n,r,o,a,i,c,s,u,l,f,_,p,h,d,m,y,v,g;return _ts_generator(this,function(b){switch(b.label){case 0:n=this.host,b.label=1;case 1:return b.trys.push([1,5,,7]),r=(t||{loadFactory:!0}).loadFactory,o=void 0===r||r,[4,this.getRemoteModuleAndOptions({id:e})];case 2:return a=b.sent(),i=a.module,c=a.moduleOptions,s=a.remoteMatchInfo,u=s.pkgNameOrAlias,l=s.remote,f=s.expose,_=s.id,p=s.remoteSnapshot,[4,i.get(_,f,t,p)];case 3:return h=b.sent(),[4,this.hooks.lifecycle.onLoad.emit({id:_,pkgNameOrAlias:u,expose:f,exposeModule:o?h:void 0,exposeModuleFactory:o?void 0:h,remote:l,options:c,moduleInstance:i,origin:n})];case 4:return d=b.sent(),[2,(this.setIdToRemoteMap(e,s),"function"==typeof d?d:h)];case 5:return m=b.sent(),y=(t||{from:"runtime"}).from,v=void 0===y?"runtime":y,[4,this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:m,from:v,lifecycle:"onLoad",origin:n})];case 6:if(!(g=b.sent()))throw m;return[2,g];case 7:return[2]}})}).call(this)}},{key:"preloadRemote",value:function(e){return _async_to_generator(function(){var t,n,r;return _ts_generator(this,function(o){switch(o.label){case 0:return t=this,n=this.host,[4,this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:n.options,origin:n})];case 1:return o.sent(),r=kn(n.options.remotes,e),[4,Promise.all(r.map(function(e){return _async_to_generator(function(){var t,r,o,a,i,c;return _ts_generator(this,function(s){switch(s.label){case 0:return t=e.remote,r=fe(t),[4,n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t})];case 1:return o=s.sent(),a=o.globalSnapshot,i=o.remoteSnapshot,[4,this.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:e,remote:t,remoteInfo:r,globalSnapshot:a,remoteSnapshot:i})];case 2:return(c=s.sent())&&Zt(r,n,c),[2]}})}).call(t)}))];case 2:return o.sent(),[2]}})}).call(this)}},{key:"registerRemotes",value:function(e,t){var n=this,r=this.host;e.forEach(function(e){n.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}},{key:"getRemoteModuleAndOptions",value:function(e){return _async_to_generator(function(){var t,n,r,o,a,i,c,s,u,l,f,_,p;return _ts_generator(this,function(h){switch(h.label){case 0:t=this.host,n=e.id,h.label=1;case 1:return h.trys.push([1,3,,5]),[4,this.hooks.lifecycle.beforeRequest.emit({id:n,options:t.options,origin:t})];case 2:return r=h.sent(),[3,5];case 3:return o=h.sent(),[4,this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:t.options,origin:t,from:"runtime",error:o,lifecycle:"beforeRequest"})];case 4:if(!(r=h.sent()))throw o;return[3,5];case 5:return a=r.id,$(i=On(t.options.remotes,a),A(Xe,w,{hostName:t.options.name,requestId:a})),c=i.remote,s=fe(c),[4,t.sharedHandler.hooks.lifecycle.afterResolve.emit(_object_spread_props(_object_spread({id:a},i),{options:t.options,origin:t,remoteInfo:s}))];case 6:return u=h.sent(),l=u.remote,f=u.expose,$(l&&f,"The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ".concat(a,".")),_=t.moduleCache.get(l.name),p={host:t,remoteInfo:s},[2,(_||(_=new te(p),t.moduleCache.set(l.name,_)),{module:_,moduleOptions:p,remoteMatchInfo:u})]}})}).call(this)}},{key:"registerRemote",value:function(e,t,n){var r=this.host,o=function(){if(e.alias){var n=t.find(function(t){var n;return e.alias&&(t.name.startsWith(e.alias)||(null===(n=t.alias)||void 0===n?void 0:n.startsWith(e.alias)))});$(!n,"The alias ".concat(e.alias," of remote ").concat(e.name," is not allowed to be the prefix of ").concat(n&&n.name," name or alias"))}"entry"in e&&x()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=de),e.type||(e.type=Ut)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});var a=t.find(function(t){return t.name===e.name});if(a){var i=['The remote "'.concat(e.name,'" is already registered.'),"Please note that overriding it may cause unexpected errors."];(null==n?void 0:n.force)&&(this.removeRemote(a),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),Ee(i.join(" ")))}else o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}},{key:"removeRemote",value:function(e){try{var t=this.host,n=e.name,r=t.options.remotes.findIndex(function(e){return e.name===n});-1!==r&&t.options.remotes.splice(r,1);var o=t.moduleCache.get(e.name);if(o){var a,i=o.remoteInfo,c=i.entryGlobalName;N[c]&&((null===(a=Object.getOwnPropertyDescriptor(N,c))||void 0===a?void 0:a.configurable)?delete N[c]:N[c]=void 0);var s=rt(o.remoteInfo);Y[s]&&delete Y[s],t.snapshotHandler.manifestCache.delete(i.entry);var u=i.buildVersion?_e(i.name,i.buildVersion):i.name,l=N.__FEDERATION__.__INSTANCES__.findIndex(function(e){return i.buildVersion?e.options.id===u:e.name===u});if(-1!==l){var f=N.__FEDERATION__.__INSTANCES__[l];u=f.options.id||u;var _=zt(),p=!0,h=[];Object.keys(_).forEach(function(e){var t=_[e];t&&Object.keys(t).forEach(function(n){var r=t[n];r&&Object.keys(r).forEach(function(t){var o=r[t];o&&Object.keys(o).forEach(function(r){var a=o[r];a&&"object"==(void 0===a?"undefined":_type_of(a))&&a.from===i.name&&(a.loaded||a.loading?(a.useIn=a.useIn.filter(function(e){return e!==i.name}),a.useIn.length?p=!1:h.push([e,n,t,r])):h.push([e,n,t,r]))})})})}),p&&(f.shareScopeMap={},delete _[u]),h.forEach(function(e){var t,n,r,o=_sliced_to_array(e,4),a=o[0],i=o[1],c=o[2],s=o[3];null===(r=_[a])||void 0===r||(null===(n=r[i])||void 0===n||(null===(t=n[c])||void 0===t||delete t[s]))}),N.__FEDERATION__.__INSTANCES__.splice(l,1)}var d=rr(e,t).hostGlobalSnapshot;if(d){var m=d&&"remotesInfo"in d&&d.remotesInfo&&Z(d.remotesInfo,e.name).key;m&&(delete d.remotesInfo[m],le.__FEDERATION__.__MANIFEST_LOADING__[m]&&delete le.__FEDERATION__.__MANIFEST_LOADING__[m])}t.moduleCache.delete(e.name)}}catch(e){tt.log("removeRemote fail: ",e)}}}]),e}(),Vn="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN,q=function(){function e(t){_class_call_check(this,e),this.hooks=new B({beforeInit:new K("beforeInit"),init:new M,beforeInitContainer:new C("beforeInitContainer"),initContainer:new C("initContainer")}),this.version="0.21.4",this.moduleCache=new Map,this.loaderHook=new B({getModuleInfo:new M,createScript:new M,createLink:new M,fetch:new L,loadEntryError:new L,getModuleFactory:new L}),this.bridgeHook=new B({beforeBridgeRender:new M,afterBridgeRender:new M,beforeBridgeDestroy:new M,afterBridgeDestroy:new M});var n=Vn?[Hn(),Un()]:[],r={id:wn(),name:t.name,plugins:n,remotes:[],shared:{},inBrowser:x()};this.name=t.name,this.options=r,this.snapshotHandler=new nt(this),this.sharedHandler=new ot(this),this.remoteHandler=new st(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins(_to_consumable_array(r.plugins).concat(_to_consumable_array(t.plugins||[]))),this.options=this.formatOptions(r,t)}return _create_class(e,[{key:"initOptions",value:function(e){this.registerPlugins(e.plugins);var t=this.formatOptions(this.options,e);return this.options=t,t}},{key:"loadShare",value:function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.sharedHandler.loadShare(e,t)]})}).call(this)}},{key:"loadShareSync",value:function(e,t){return this.sharedHandler.loadShareSync(e,t)}},{key:"initializeSharing",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}},{key:"initRawContainer",value:function(e,t,n){var r=fe({name:e,entry:t}),o=new te({host:this,remoteInfo:r});return o.remoteEntryExports=n,this.moduleCache.set(e,o),o}},{key:"loadRemote",value:function(e,t){return _async_to_generator(function(){return _ts_generator(this,function(n){return[2,this.remoteHandler.loadRemote(e,t)]})}).call(this)}},{key:"preloadRemote",value:function(e){return _async_to_generator(function(){return _ts_generator(this,function(t){return[2,this.remoteHandler.preloadRemote(e)]})}).call(this)}},{key:"initShareScopeMap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,n)}},{key:"formatOptions",value:function(e,t){var n=qt(e,t).shared,r=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),o=r.userOptions,a=r.options,i=this.remoteHandler.formatAndRegisterRemote(a,o),c=this.sharedHandler.registerShared(a,o).shared,s=_to_consumable_array(a.plugins);o.plugins&&o.plugins.forEach(function(e){s.includes(e)||s.push(e)});var u=_object_spread_props(_object_spread({},e,t),{plugins:s,remotes:i,shared:c});return this.hooks.lifecycle.init.emit({origin:this,options:u}),u}},{key:"registerPlugins",value:function(e){var t=Pn(e,this);this.options.plugins=this.options.plugins.reduce(function(e,t){return t&&e&&!e.find(function(e){return e.name===t.name})&&e.push(t),e},t||[])}},{key:"registerRemotes",value:function(e,t){return this.remoteHandler.registerRemotes(e,t)}},{key:"registerShared",value:function(e){this.sharedHandler.registerShared(this.options,_object_spread_props(_object_spread({},this.options),{shared:e}))}}]),e}();function jn(){return("undefined"==typeof FEDERATION_BUILD_IDENTIFIER?"undefined":_type_of(FEDERATION_BUILD_IDENTIFIER))<"u"?FEDERATION_BUILD_IDENTIFIER:""}function nr(e,t){var n=jn();return N.__FEDERATION__.__INSTANCES__.find(function(r){return!!(n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t)})}function or(e){var t=new(Ht()||q)(e);return xt(t),t}var R=null;function Bn(e){var t=nr(e.name,e.version);return t?(t.initOptions(e),R||(R=t),t):R=or(e)}function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadRemote.apply(R,t)}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadShare.apply(R,t)}function qn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.loadShareSync.apply(R,t)}function zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.preloadRemote.apply(R,t)}function Xn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerRemotes.apply(R,t)}function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerPlugins.apply(R,t)}function Jn(){return R}function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(R,A(j,w)),R.registerShared.apply(R,t)}return Ct(q),exports.MFRuntime=ht,exports.MFSDK=We,exports}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/share",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
4
4
|
"description": "emp share and runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -143,14 +143,14 @@
|
|
|
143
143
|
},
|
|
144
144
|
"author": "Ken",
|
|
145
145
|
"dependencies": {
|
|
146
|
-
"@module-federation/rspack": "0.21.
|
|
147
|
-
"@module-federation/runtime": "0.21.
|
|
148
|
-
"@module-federation/sdk": "0.21.
|
|
146
|
+
"@module-federation/rspack": "0.21.4",
|
|
147
|
+
"@module-federation/runtime": "0.21.4",
|
|
148
|
+
"@module-federation/sdk": "0.21.4",
|
|
149
149
|
"core-js": "^3.46.0"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@swc/core": "^1.
|
|
153
|
-
"@empjs/cli": "3.10.
|
|
152
|
+
"@swc/core": "^1.15.1",
|
|
153
|
+
"@empjs/cli": "3.10.4"
|
|
154
154
|
},
|
|
155
155
|
"scripts": {
|
|
156
156
|
"dev": "pnpm --filter @empjs/share run /^dev:.*/",
|