iobroker.javascript 9.0.7 → 9.0.9
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/README.md +4 -7
- package/admin/assets/OpenAiDialog-CDDsvlCe.js +36 -0
- package/admin/assets/{Save-DgI3b32B.js → Save-D3ZQadHC.js} +1 -1
- package/admin/assets/{ScriptEditor-CXV4FkqA.js → ScriptEditor-Ciz-_SvX.js} +1 -1
- package/admin/assets/{ScriptEditorVanillaMonaco-D-2WOvcn.js → ScriptEditorVanillaMonaco-Cs6PL8eZ.js} +1 -1
- package/admin/assets/createSvgIcon-BDXN8whp.js +30 -0
- package/admin/assets/hostInit-fzxL8JAx.js +1 -1
- package/admin/assets/index-BZGWELt0.js +930 -0
- package/admin/assets/index-BompUVvy.js +1 -0
- package/admin/assets/{index-Del0XJb9.js → index-BxkzUxCi.js} +1 -1
- package/admin/assets/index-DOeHpve2.js +193 -0
- package/admin/assets/{index-x0m5vR1T.js → index-DmpUKunr.js} +1 -1
- package/admin/assets/{index-C5V5CZI4.js → index-DsS-er0h.js} +1 -1
- package/admin/assets/{index-D_7ZHRw9.js → index-PhbDiVdG.js} +1 -1
- package/admin/assets/{index-DLBeMhRC.js → index-quKi7QsD.js} +80 -80
- package/admin/assets/inheritsLoose-BLb-YnoJ.js +36 -0
- package/admin/assets/{iobroker_javascript__loadShare__react__loadShare__-BiJPUKBK.js → iobroker_javascript__loadShare__react__loadShare__-B-pIv4x_.js} +1 -1
- package/admin/assets/iobroker_javascript__mf_v__runtimeInit__mf_v__-CmuPLb0X.js +5 -0
- package/admin/assets/useTheme-BbFVG4-1.js +1 -0
- package/admin/custom/assets/Components-za_0yG9W.js +1 -0
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__-BHJt30My.js +1 -0
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_mui_mf_1_material__loadShare__-WrqdT1Hz.js +1 -0
- package/admin/custom/assets/{ConfigCustomJavascriptSet__loadShare__react__loadShare__-CzzIM-HW.js → ConfigCustomJavascriptSet__loadShare__react__loadShare__-B_YWmFeG.js} +1 -1
- package/admin/custom/assets/{ConfigCustomJavascriptSet__loadShare__react_mf_2_dom__loadShare__-DibxNPKw.js → ConfigCustomJavascriptSet__loadShare__react_mf_2_dom__loadShare__-DYzjQQsF.js} +1 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__mf_v__runtimeInit__mf_v__-Cib3-eWa.js +5 -0
- package/admin/custom/assets/DefaultPropsProvider-B41fRCEO.js +1 -0
- package/admin/custom/assets/DefaultPropsProvider-CfXkmG16.js +7 -0
- package/admin/custom/assets/FilledInput-BGGUNS4j.js +2 -0
- package/admin/custom/assets/Tabs-DjdFNknI.js +138 -0
- package/admin/custom/assets/ThemeProvider-Uan4kCQd.js +29 -0
- package/admin/custom/assets/{createSvgIcon-BQThUM-f.js → createSvgIcon-BxCMHFh5.js} +1 -1
- package/admin/custom/assets/createTheme-Ajie0adn.js +16 -0
- package/admin/custom/assets/defaultTheme-C_aSR-NR.js +1 -0
- package/admin/custom/assets/hostInit-CrAs5YZS.js +1 -1
- package/admin/custom/assets/index-7YkEnLQM.js +1 -0
- package/admin/custom/assets/index-B2rBO0oC.js +1 -0
- package/admin/custom/assets/{index-B8sZ2j0S.js → index-BkKMt4bp.js} +1 -1
- package/admin/custom/assets/{index-CoMexdpH.js → index-Bw5ZKbIF.js} +59 -59
- package/admin/custom/assets/index-ClFSKKDu.js +7 -0
- package/admin/custom/assets/index-DOnIDI_a.js +1 -0
- package/admin/custom/assets/{index-DIWNdd4a.js → index-DXg_kRe6.js} +1 -1
- package/admin/custom/assets/index-FOcWxrRT.js +904 -0
- package/admin/custom/assets/index-UhQfKbTz.js +55 -0
- package/admin/custom/assets/{index-CWXHfC2L.js → index-bxilEzdP.js} +1 -1
- package/admin/custom/assets/{index-CUcoXT75.js → index-yiPj_-Rb.js} +1 -1
- package/admin/custom/assets/{jsx-runtime-o-xyxrOj.js → jsx-runtime-lE4rOet2.js} +1 -1
- package/admin/custom/assets/useEnhancedEffect-DSK35Rma.js +8 -0
- package/admin/custom/assets/useTheme-CpiJlUE9.js +1 -0
- package/admin/custom/assets/useTheme-DWmRkwMP.js +1 -0
- package/admin/custom/assets/virtualExposes-4pgHXHfp.js +2 -0
- package/admin/custom/customComponents.js +2 -2
- package/admin/google-blockly/own/blocks_action.js +12 -2
- package/admin/google-blockly/own/blocks_convert.js +17 -3
- package/admin/google-blockly/own/blocks_logic.js +48 -15
- package/admin/google-blockly/own/blocks_object.js +20 -7
- package/admin/google-blockly/own/blocks_sendto.js +48 -11
- package/admin/google-blockly/own/blocks_switch.js +18 -8
- package/admin/google-blockly/own/blocks_system.js +33 -6
- package/admin/google-blockly/own/blocks_text.js +43 -0
- package/admin/google-blockly/own/blocks_time.js +33 -6
- package/admin/google-blockly/own/blocks_trigger.js +60 -22
- package/admin/google-blockly/own/blocks_words.js +4 -0
- package/admin/i18n/pl.json +60 -60
- package/admin/mf-manifest.json +1 -1
- package/admin/remoteEntry.js +2 -2
- package/admin/tab.html +19 -6
- package/io-package.json +14 -14
- package/package.json +2 -2
- package/admin/assets/OpenAiDialog-CVjeP8wR.js +0 -34
- package/admin/assets/createSvgIcon-Dtl7HhPO.js +0 -30
- package/admin/assets/index-BwNmFzfy.js +0 -193
- package/admin/assets/index-C8bcOa64.js +0 -930
- package/admin/assets/index-Dm1jc4t6.js +0 -1
- package/admin/assets/inheritsLoose-C9MZGDit.js +0 -36
- package/admin/assets/iobroker_javascript__mf_v__runtimeInit__mf_v__-CBQgOKij.js +0 -10
- package/admin/assets/useTheme-g_P2Itm2.js +0 -1
- package/admin/custom/assets/Components-D9kRsHNY.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__-DAwHgdl6.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__loadShare___mf_0_mui_mf_1_material__loadShare__-BlV79j8y.js +0 -1
- package/admin/custom/assets/ConfigCustomJavascriptSet__mf_v__runtimeInit__mf_v__-BaLGCXMi.js +0 -10
- package/admin/custom/assets/DefaultPropsProvider-9qubdy-V.js +0 -7
- package/admin/custom/assets/DefaultPropsProvider-DbEA5uR6.js +0 -1
- package/admin/custom/assets/FilledInput-BpuM_GyB.js +0 -2
- package/admin/custom/assets/Tabs-CvEv0KOT.js +0 -138
- package/admin/custom/assets/ThemeProvider-DZTpMR8n.js +0 -29
- package/admin/custom/assets/createTheme-BwMO3rTt.js +0 -16
- package/admin/custom/assets/defaultTheme-avbtL0lf.js +0 -1
- package/admin/custom/assets/index-B6ima1M5.js +0 -904
- package/admin/custom/assets/index-B7G6Jpdl.js +0 -1
- package/admin/custom/assets/index-BzS6q3oS.js +0 -55
- package/admin/custom/assets/index-CttBOMyq.js +0 -1
- package/admin/custom/assets/index-Dbe-II7_.js +0 -7
- package/admin/custom/assets/useEnhancedEffect-CdLBzwyA.js +0 -8
- package/admin/custom/assets/useTheme-CDtRWagv.js +0 -1
- package/admin/custom/assets/useTheme-MELayQMj.js +0 -1
- package/admin/custom/assets/useThemeWithoutDefault-C-hl_s0Z.js +0 -1
- package/admin/custom/assets/virtualExposes-BMKIjWrE.js +0 -2
package/admin/custom/assets/ConfigCustomJavascriptSet__mf_v__runtimeInit__mf_v__-BaLGCXMi.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var index_cjs$3={},index_cjs$2={},polyfills_cjs$1={};function _extends$2(){return _extends$2=Object.assign||function(i){for(var d=1;d<arguments.length;d++){var u=arguments[d];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(i[p]=u[p])}return i},_extends$2.apply(this,arguments)}function _object_without_properties_loose(o,i){if(o==null)return{};var d={},u=Object.keys(o),p,S;for(S=0;S<u.length;S++)p=u[S],!(i.indexOf(p)>=0)&&(d[p]=o[p]);return d}polyfills_cjs$1._extends=_extends$2;polyfills_cjs$1._object_without_properties_loose=_object_without_properties_loose;var index_cjs$1={},__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(o,i)=>{for(var d in i)__defProp(o,d,{get:i[d],enumerable:!0})},__copyProps=(o,i,d,u)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of __getOwnPropNames(i))!__hasOwnProp.call(o,p)&&p!==d&&__defProp(o,p,{get:()=>i[p],enumerable:!(u=__getOwnPropDesc(i,p))||u.enumerable});return o},__toCommonJS=o=>__copyProps(__defProp({},"__esModule",{value:!0}),o),browser_exports={};__export(browser_exports,{createLogger:()=>createLogger2,logger:()=>logger$1});var browser=__toCommonJS(browser_exports),supportsSubstitutions=void 0,supportColor=()=>{if(typeof supportsSubstitutions<"u")return supportsSubstitutions;const o=console.log;try{const i="color test",d="color: red;";supportsSubstitutions=!1,console.log=(...u)=>{u[0]===`%c${i}`&&u[1]===d&&(supportsSubstitutions=!0)},console.log(`%c${i}`,d)}catch{supportsSubstitutions=!1}finally{console.log=o}return supportsSubstitutions},ansiToCss={bold:"font-weight: bold;",red:"color: red;",green:"color: green;",orange:"color: orange;",dodgerblue:"color: dodgerblue;",magenta:"color: magenta;",gray:"color: gray;"},formatter=o=>supportColor()?i=>{if(Array.isArray(i)){const[d,u]=i;return[`%c${d.replace("%c","")}`,u?`${ansiToCss[o]}${u}`:`${ansiToCss[o]||""}`]}return[`%c${String(i).replace("%c","")}`,ansiToCss[o]||""]}:i=>[String(i)],bold=formatter("bold"),red=formatter("red"),green=formatter("green"),orange=formatter("orange"),dodgerblue=formatter("dodgerblue"),magenta=formatter("magenta");formatter("gray");function getLabel(o,i,d){let u=[""];if("label"in i)if(u=[(o!=="log"?d[o]:void 0)||i.label||""],i.color){const S=i.color(u[0]);Array.isArray(S)&&S.length===2?u=bold([S[0],S[1]]):u=bold(S[0]||"")}else u=bold(u[0]);return u=u.filter(Boolean),u}function finalLog(o,i,d,u){o.length?Array.isArray(u)?console.log(...o,...u,...d):console.log(...o,i,...d):Array.isArray(u)?console.log(...u):console.log(i,...d)}var LOG_LEVEL={error:0,warn:1,info:2,log:3,verbose:4},errorStackRegExp=/at\s.*:\d+:\d+[\s\)]*$/,anonymousErrorStackRegExp=/at\s.*\(<anonymous>\)$/,isErrorStackMessage=o=>errorStackRegExp.test(o)||anonymousErrorStackRegExp.test(o);function validateOptions(o){const i={...o};if(o.labels&&typeof o.labels!="object")throw new Error("Labels must be an object");if(o.level&&typeof o.level!="string")throw new Error("Level must be a string");return i}var createLogger$1=(o={},{getLabel:i,handleError:d,finalLog:u,greet:p,LOG_TYPES:S})=>{const b=validateOptions(o);let m=b.level||"log",R=b.labels||{},T=(L,O,...G)=>{if(LOG_LEVEL[S[L].level]>LOG_LEVEL[m])return;if(O==null)return console.log();let Y=S[L],V="";const le=i(L,Y,R);if(O instanceof Error)if(O.stack){let[Z,...B]=O.stack.split(`
|
|
2
|
-
`);Z.startsWith("Error: ")&&(Z=Z.slice(7)),V=`${Z}
|
|
3
|
-
${d(B.join(`
|
|
4
|
-
`))}`}else V=O.message;else Y.level==="error"&&typeof O=="string"?V=O.split(`
|
|
5
|
-
`).map(B=>isErrorStackMessage(B)?d(B):B).join(`
|
|
6
|
-
`):V=`${O}`;u(le,V,G,O)},w={greet:L=>T("log",p(L))};return Object.keys(S).forEach(L=>{w[L]=(...O)=>T(L,...O)}),Object.defineProperty(w,"level",{get:()=>m,set(L){m=L}}),Object.defineProperty(w,"labels",{get:()=>R,set(L){R=L}}),w.override=L=>{Object.assign(w,L)},w},startColor=[189,255,243],endColor=[74,194,154],isWord=o=>!/[\s\n]/.test(o);function gradient(o){if(!supportColor())return[o];const i=[...o],d=i.filter(isWord),u=d.length-1;if(u===0)return console.log(`%c${o}`,`color: rgb(${startColor.join(",")}); font-weight: bold;`),[o];let p="",S=[];return i.forEach(b=>{if(isWord(b)){const m=d.indexOf(b)/u,R=Math.round(startColor[0]+(endColor[0]-startColor[0])*m),T=Math.round(startColor[1]+(endColor[1]-startColor[1])*m),w=Math.round(startColor[2]+(endColor[2]-startColor[2])*m);p+=`%c${b}`,S.push(`color: rgb(${R},${T},${w}); font-weight: bold;`)}else p+=b}),[p,...S]}var LOG_TYPES={error:{label:"error",level:"error",color:red},warn:{label:"warn",level:"warn",color:orange},info:{label:"info",level:"info",color:dodgerblue},start:{label:"start",level:"info",color:dodgerblue},ready:{label:"ready",level:"info",color:green},success:{label:"success",level:"info",color:green},log:{level:"log"},debug:{label:"debug",level:"verbose",color:magenta}};function createLogger2(o={}){return createLogger$1(o,{handleError:i=>i,getLabel,finalLog,LOG_TYPES,greet:i=>gradient(i)})}var logger$1=createLogger2(),polyfills_cjs={};function _extends$1(){return _extends$1=Object.assign||function(i){for(var d=1;d<arguments.length;d++){var u=arguments[d];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(i[p]=u[p])}return i},_extends$1.apply(this,arguments)}polyfills_cjs._extends=_extends$1;var define_process_env_default={},isomorphicRslog=browser,polyfills=polyfills_cjs;const FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",BROWSER_LOG_VALUE="1",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return typeof window<"u"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return localStorage.getItem(BROWSER_LOG_KEY)===BROWSER_LOG_VALUE}catch{return!1}return!1}function isDebugMode(){return typeof process<"u"&&define_process_env_default&&define_process_env_default.FEDERATION_DEBUG?!!define_process_env_default.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:isBrowserDebug()}const getProcessEnv=function(){return typeof process<"u"&&define_process_env_default?define_process_env_default:{}},PREFIX="[ Module Federation ]";function setDebug(o){isDebugMode()&&(o.level="verbose")}function setPrefix(o,i){o.labels={warn:`${i} Warn`,error:`${i} Error`,success:`${i} Success`,info:`${i} Info`,ready:`${i} Ready`,debug:`${i} Debug`}}function createLogger(o){const i=isomorphicRslog.createLogger({labels:{warn:`${PREFIX} Warn`,error:`${PREFIX} Error`,success:`${PREFIX} Success`,info:`${PREFIX} Info`,ready:`${PREFIX} Ready`,debug:`${PREFIX} Debug`}});return setDebug(i),setPrefix(i,o),i}const logger=createLogger(PREFIX),LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(o,i,d=SEPARATOR)=>{const u=o.split(d),p=getProcessEnv().NODE_ENV==="development"&&i,S="*",b=m=>m.startsWith("http")||m.includes(MANIFEST_EXT);if(u.length>=2){let[m,...R]=u;o.startsWith(d)&&(R=[p||u.slice(-1)[0]],m=u.slice(0,-1).join(d));let T=p||R.join(d);return b(T)?{name:m,entry:T}:{name:m,version:T||S}}else if(u.length===1){const[m]=u;return p&&b(p)?{name:m,entry:p}:{name:m,version:p||S}}else throw`Invalid entry value: ${o}`},composeKeyWithSeparator=function(...o){return o.length?o.reduce((i,d)=>d?i?`${i}${SEPARATOR}${d}`:d:i,""):""},encodeName=function(o,i="",d=!1){try{const u=d?".js":"";return`${i}${o.replace(new RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(new RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(new RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${u}`}catch(u){throw u}},decodeName=function(o,i,d){try{let u=o;if(i){if(!u.startsWith(i))return u;u=u.replace(new RegExp(i,"g"),"")}return u=u.replace(new RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),d&&(u=u.replace(".js","")),u}catch(u){throw u}},generateExposeFilename=(o,i)=>{if(!o)return"";let d=o;return d==="."&&(d="default_export"),d.startsWith("./")&&(d=d.replace("./","")),encodeName(d,"__federation_expose_",i)},generateShareFilename=(o,i)=>o?encodeName(o,"__federation_shared_",i):"",getResourceUrl=(o,i)=>{if("getPublicPath"in o){let d;return o.getPublicPath.startsWith("function")?d=new Function("return "+o.getPublicPath)()():d=new Function(o.getPublicPath)(),`${d}${i}`}else return"publicPath"in o?`${o.publicPath}${i}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",o,i),"")},assert=(o,i)=>{o||error(i)},error=o=>{throw new Error(`${LOG_CATEGORY}: ${o}`)},warn=o=>{console.warn(`${LOG_CATEGORY}: ${o}`)};function safeToString(o){try{return JSON.stringify(o,null,2)}catch{return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(o){return VERSION_PATTERN_REGEXP.test(o)}const simpleJoinRemoteEntry=(o,i)=>{if(!o)return i;const u=(p=>{if(p===".")return"";if(p.startsWith("./"))return p.replace("./","");if(p.startsWith("/")){const S=p.slice(1);return S.endsWith("/")?S.slice(0,-1):S}return p})(o);return u?u.endsWith("/")?`${u}${i}`:`${u}/${i}`:i};function inferAutoPublicPath(o){return o.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(o,i={}){var d,u;const{remotes:p={},overrides:S={},version:b}=i;let m;const R=()=>"publicPath"in o.metaData?o.metaData.publicPath==="auto"&&b?inferAutoPublicPath(b):o.metaData.publicPath:o.metaData.getPublicPath,T=Object.keys(S);let w={};if(!Object.keys(p).length){var L;w=((L=o.remotes)==null?void 0:L.reduce((v,x)=>{let k;const te=x.federationContainerName;return T.includes(te)?k=S[te]:"version"in x?k=x.version:k=x.entry,v[te]={matchedVersion:k},v},{}))||{}}Object.keys(p).forEach(v=>w[v]={matchedVersion:T.includes(v)?S[v]:p[v]});const{remoteEntry:{path:O,name:G,type:Y},types:V,buildInfo:{buildVersion:le},globalName:Z,ssrRemoteEntry:B}=o.metaData,{exposes:ce}=o;let ee={version:b||"",buildVersion:le,globalName:Z,remoteEntry:simpleJoinRemoteEntry(O,G),remoteEntryType:Y,remoteTypes:simpleJoinRemoteEntry(V.path,V.name),remoteTypesZip:V.zip||"",remoteTypesAPI:V.api||"",remotesInfo:w,shared:o==null?void 0:o.shared.map(v=>({assets:v.assets,sharedName:v.name,version:v.version})),modules:ce==null?void 0:ce.map(v=>({moduleName:v.name,modulePath:v.path,assets:v.assets}))};if((d=o.metaData)!=null&&d.prefetchInterface){const v=o.metaData.prefetchInterface;ee=polyfills._extends({},ee,{prefetchInterface:v})}if((u=o.metaData)!=null&&u.prefetchEntry){const{path:v,name:x,type:k}=o.metaData.prefetchEntry;ee=polyfills._extends({},ee,{prefetchEntry:simpleJoinRemoteEntry(v,x),prefetchEntryType:k})}if("publicPath"in o.metaData?m=polyfills._extends({},ee,{publicPath:R()}):m=polyfills._extends({},ee,{getPublicPath:R()}),B){const v=simpleJoinRemoteEntry(B.path,B.name);m.ssrRemoteEntry=v,m.ssrRemoteEntryType=B.type||"commonjs-module"}return m}function isManifestProvider(o){return!!("remoteEntry"in o&&o.remoteEntry.includes(MANIFEST_EXT))}async function safeWrapper(o,i){try{return await o()}catch(d){!i&&warn(d);return}}function isStaticResourcesEqual(o,i){const d=/^(https?:)?\/\//i,u=o.replace(d,"").replace(/\/$/,""),p=i.replace(d,"").replace(/\/$/,"");return u===p}function createScript(o){let i=null,d=!0,u=2e4,p;const S=document.getElementsByTagName("script");for(let m=0;m<S.length;m++){const R=S[m],T=R.getAttribute("src");if(T&&isStaticResourcesEqual(T,o.url)){i=R,d=!1;break}}if(!i){const m=o.attrs;i=document.createElement("script"),i.type=(m==null?void 0:m.type)==="module"?"module":"text/javascript";let R;o.createScriptHook&&(R=o.createScriptHook(o.url,o.attrs),R instanceof HTMLScriptElement?i=R:typeof R=="object"&&("script"in R&&R.script&&(i=R.script),"timeout"in R&&R.timeout&&(u=R.timeout))),i.src||(i.src=o.url),m&&!R&&Object.keys(m).forEach(T=>{i&&(T==="async"||T==="defer"?i[T]=m[T]:i.getAttribute(T)||i.setAttribute(T,m[T]))})}const b=async(m,R)=>{clearTimeout(p);const T=()=>{(R==null?void 0:R.type)==="error"?o!=null&&o.onErrorCallback&&(o==null||o.onErrorCallback(R)):o!=null&&o.cb&&(o==null||o.cb())};if(i&&(i.onerror=null,i.onload=null,safeWrapper(()=>{const{needDeleteScript:w=!0}=o;w&&i!=null&&i.parentNode&&i.parentNode.removeChild(i)}),m&&typeof m=="function")){const w=m(R);if(w instanceof Promise){const L=await w;return T(),L}return T(),w}T()};return i.onerror=b.bind(null,i.onerror),i.onload=b.bind(null,i.onload),p=setTimeout(()=>{b(null,new Error(`Remote script "${o.url}" time-outed.`))},u),{script:i,needAttach:d}}function createLink(o){let i=null,d=!0;const u=document.getElementsByTagName("link");for(let S=0;S<u.length;S++){const b=u[S],m=b.getAttribute("href"),R=b.getAttribute("ref");if(m&&isStaticResourcesEqual(m,o.url)&&R===o.attrs.ref){i=b,d=!1;break}}if(!i){i=document.createElement("link"),i.setAttribute("href",o.url);let S;const b=o.attrs;o.createLinkHook&&(S=o.createLinkHook(o.url,b),S instanceof HTMLLinkElement&&(i=S)),b&&!S&&Object.keys(b).forEach(m=>{i&&!i.getAttribute(m)&&i.setAttribute(m,b[m])})}const p=(S,b)=>{const m=()=>{(b==null?void 0:b.type)==="error"?o!=null&&o.onErrorCallback&&(o==null||o.onErrorCallback(b)):o!=null&&o.cb&&(o==null||o.cb())};if(i&&(i.onerror=null,i.onload=null,safeWrapper(()=>{const{needDeleteLink:R=!0}=o;R&&i!=null&&i.parentNode&&i.parentNode.removeChild(i)}),S)){const R=S(b);return m(),R}m()};return i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),{link:i,needAttach:d}}function loadScript(o,i){const{attrs:d={},createScriptHook:u}=i;return new Promise((p,S)=>{const{script:b,needAttach:m}=createScript({url:o,cb:p,onErrorCallback:S,attrs:polyfills._extends({fetchpriority:"high"},d),createScriptHook:u,needDeleteScript:!0});m&&document.head.appendChild(b)})}function importNodeModule(o){if(!o)throw new Error("import specifier is required");return new Function("name","return import(name)")(o).then(d=>d).catch(d=>{throw console.error(`Error importing module ${o}:`,d),d})}const loadNodeFetch=async()=>{const o=await importNodeModule("node-fetch");return o.default||o},lazyLoaderHookFetch=async(o,i,d)=>{const p=await((S,b)=>d.lifecycle.fetch.emit(S,b))(o,i||{});return!p||!(p instanceof Response)?(typeof fetch>"u"?await loadNodeFetch():fetch)(o,i||{}):p};function createScriptNode(url,cb,attrs,loaderHook){if(loaderHook!=null&&loaderHook.createScriptHook){const o=loaderHook.createScriptHook(url);o&&typeof o=="object"&&"url"in o&&(url=o.url)}let urlObj;try{urlObj=new URL(url)}catch(o){console.error("Error constructing URL:",o),cb(new Error(`Invalid URL: ${o}`));return}const getFetch=async()=>loaderHook!=null&&loaderHook.fetch?(o,i)=>lazyLoaderHookFetch(o,i,loaderHook):typeof fetch>"u"?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;const res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname);var _vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER;const script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
|
|
7
|
-
})`,{filename,importModuleDynamically:(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=(_vm_constants=vm.constants)==null?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)!=null?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);const exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){const o=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,o);return}cb(void 0,exportedInterface)}catch(o){cb(o instanceof Error?o:new Error(`Script execution error: ${o}`))}};getFetch().then(async o=>{if((attrs==null?void 0:attrs.type)==="esm"||(attrs==null?void 0:attrs.type)==="module")return loadModule(urlObj.href,{fetch:o,vm:await importNodeModule("vm")}).then(async i=>{await i.evaluate(),cb(void 0,i.namespace)}).catch(i=>{cb(i instanceof Error?i:new Error(`Script execution error: ${i}`))});handleScriptFetch(o,urlObj)}).catch(o=>{cb(o)})}function loadScriptNode(o,i){return new Promise((d,u)=>{createScriptNode(o,(p,S)=>{if(p)u(p);else{var b,m;const R=(i==null||(b=i.attrs)==null?void 0:b.globalName)||`__FEDERATION_${i==null||(m=i.attrs)==null?void 0:m.name}:custom__`,T=globalThis[R]=S;d(T)}},i.attrs,i.loaderHook)})}async function loadModule(o,i){const{fetch:d,vm:u}=i,S=await(await d(o)).text(),b=new u.SourceTextModule(S,{importModuleDynamically:async(m,R)=>{const T=new URL(m,o).href;return loadModule(T,i)}});return await b.link(async m=>{const R=new URL(m,o).href;return await loadModule(R,i)}),b}function normalizeOptions(o,i,d){return function(u){if(u===!1)return!1;if(typeof u>"u")return o?i:!1;if(u===!0)return i;if(u&&typeof u=="object")return polyfills._extends({},i,u);throw new Error(`Unexpected type for \`${d}\`, expect boolean/undefined/object, got: ${typeof u}`)}}index_cjs$1.BROWSER_LOG_KEY=BROWSER_LOG_KEY;index_cjs$1.BROWSER_LOG_VALUE=BROWSER_LOG_VALUE;index_cjs$1.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX;index_cjs$1.EncodedNameTransformMap=EncodedNameTransformMap;index_cjs$1.FederationModuleManifest=FederationModuleManifest;index_cjs$1.MANIFEST_EXT=MANIFEST_EXT;index_cjs$1.MFModuleType=MFModuleType;index_cjs$1.MFPrefetchCommon=MFPrefetchCommon;index_cjs$1.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER;index_cjs$1.ManifestFileName=ManifestFileName;index_cjs$1.NameTransformMap=NameTransformMap;index_cjs$1.NameTransformSymbol=NameTransformSymbol;index_cjs$1.SEPARATOR=SEPARATOR;index_cjs$1.StatsFileName=StatsFileName;index_cjs$1.TEMP_DIR=TEMP_DIR;index_cjs$1.assert=assert;index_cjs$1.composeKeyWithSeparator=composeKeyWithSeparator;index_cjs$1.containerPlugin=ContainerPlugin;index_cjs$1.containerReferencePlugin=ContainerReferencePlugin;index_cjs$1.createLink=createLink;index_cjs$1.createLogger=createLogger;index_cjs$1.createScript=createScript;index_cjs$1.createScriptNode=createScriptNode;index_cjs$1.decodeName=decodeName;index_cjs$1.encodeName=encodeName;index_cjs$1.error=error;index_cjs$1.generateExposeFilename=generateExposeFilename;index_cjs$1.generateShareFilename=generateShareFilename;index_cjs$1.generateSnapshotFromManifest=generateSnapshotFromManifest;index_cjs$1.getProcessEnv=getProcessEnv;index_cjs$1.getResourceUrl=getResourceUrl;index_cjs$1.inferAutoPublicPath=inferAutoPublicPath;index_cjs$1.isBrowserEnv=isBrowserEnv;index_cjs$1.isDebugMode=isDebugMode;index_cjs$1.isManifestProvider=isManifestProvider;index_cjs$1.isRequiredVersion=isRequiredVersion;index_cjs$1.isStaticResourcesEqual=isStaticResourcesEqual;index_cjs$1.loadScript=loadScript;index_cjs$1.loadScriptNode=loadScriptNode;index_cjs$1.logger=logger;index_cjs$1.moduleFederationPlugin=ModuleFederationPlugin;index_cjs$1.normalizeOptions=normalizeOptions;index_cjs$1.parseEntry=parseEntry;index_cjs$1.safeToString=safeToString;index_cjs$1.safeWrapper=safeWrapper;index_cjs$1.sharePlugin=SharePlugin;index_cjs$1.simpleJoinRemoteEntry=simpleJoinRemoteEntry;index_cjs$1.warn=warn;var index_cjs={};const RUNTIME_001="RUNTIME-001",RUNTIME_002="RUNTIME-002",RUNTIME_003="RUNTIME-003",RUNTIME_004="RUNTIME-004",RUNTIME_005="RUNTIME-005",RUNTIME_006="RUNTIME-006",RUNTIME_007="RUNTIME-007",RUNTIME_008="RUNTIME-008",TYPE_001="TYPE-001",BUILD_001="BUILD-001",getDocsUrl=o=>`https://module-federation.io/guide/troubleshooting/${o.split("-")[0].toLowerCase()}/${o}`,getShortErrorMsg=(o,i,d,u)=>{const p=[`${[i[o]]} #${o}`];return d&&p.push(`args: ${JSON.stringify(d)}`),p.push(getDocsUrl(o)),u&&p.push(`Original Error Message:
|
|
8
|
-
${u}`),p.join(`
|
|
9
|
-
`)};function _extends(){return _extends=Object.assign||function(i){for(var d=1;d<arguments.length;d++){var u=arguments[d];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(i[p]=u[p])}return i},_extends.apply(this,arguments)}const runtimeDescMap={[RUNTIME_001]:"Failed to get remoteEntry exports.",[RUNTIME_002]:'The remote entry interface does not contain "init"',[RUNTIME_003]:"Failed to get manifest.",[RUNTIME_004]:"Failed to locate remote.",[RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[RUNTIME_006]:"Invalid loadShareSync function call from runtime",[RUNTIME_007]:"Failed to get remote snapshot.",[RUNTIME_008]:"Failed to load script resources."},typeDescMap={[TYPE_001]:"Failed to generate type declaration."},buildDescMap={[BUILD_001]:"Failed to find expose module."},errorDescMap=_extends({},runtimeDescMap,typeDescMap,buildDescMap);index_cjs.BUILD_001=BUILD_001;index_cjs.RUNTIME_001=RUNTIME_001;index_cjs.RUNTIME_002=RUNTIME_002;index_cjs.RUNTIME_003=RUNTIME_003;index_cjs.RUNTIME_004=RUNTIME_004;index_cjs.RUNTIME_005=RUNTIME_005;index_cjs.RUNTIME_006=RUNTIME_006;index_cjs.RUNTIME_007=RUNTIME_007;index_cjs.RUNTIME_008=RUNTIME_008;index_cjs.TYPE_001=TYPE_001;index_cjs.buildDescMap=buildDescMap;index_cjs.errorDescMap=errorDescMap;index_cjs.getShortErrorMsg=getShortErrorMsg;index_cjs.runtimeDescMap=runtimeDescMap;index_cjs.typeDescMap=typeDescMap;(function(o){var i=polyfills_cjs$1,d=index_cjs$1,u=index_cjs;const p="[ Federation Runtime ]",S=d.createLogger(p);function b(t,e){t||m(e)}function m(t){throw t instanceof Error?(t.message=`${p}: ${t.message}`,t):new Error(`${p}: ${t}`)}function R(t){t instanceof Error&&(t.message=`${p}: ${t.message}`),S.warn(t)}function T(t,e){return t.findIndex(r=>r===e)===-1&&t.push(e),t}function w(t){return"version"in t&&t.version?`${t.name}:${t.version}`:"entry"in t&&t.entry?`${t.name}:${t.entry}`:`${t.name}`}function L(t){return typeof t.entry<"u"}function O(t){return!t.entry.includes(".json")&&t.entry.includes(".js")}async function G(t,e){try{return await t()}catch(r){!e&&R(r);return}}function Y(t){return t&&typeof t=="object"}const V=Object.prototype.toString;function le(t){return V.call(t)==="[object Object]"}function Z(t,e){const r=/^(https?:)?\/\//i,n=t.replace(r,"").replace(/\/$/,""),s=e.replace(r,"").replace(/\/$/,"");return n===s}function B(t){return Array.isArray(t)?t:[t]}function ce(t){const e={url:"",type:"global",globalName:""};return d.isBrowserEnv()?"remoteEntry"in t?{url:t.remoteEntry,type:t.remoteEntryType,globalName:t.globalName}:e:"ssrRemoteEntry"in t?{url:t.ssrRemoteEntry||e.url,type:t.ssrRemoteEntryType||e.type,globalName:t.globalName}:e}const ee=(t,e)=>{let r;return t.endsWith("/")?r=t.slice(0,-1):r=t,e.startsWith(".")&&(e=e.slice(1)),r=r+e,r},v=typeof globalThis=="object"?globalThis:window,x=(()=>{try{return document.defaultView}catch{return v}})(),k=x;function te(t,e,r){Object.defineProperty(t,e,{value:r,configurable:!1,writable:!0})}function ye(t,e){return Object.hasOwnProperty.call(t,e)}ye(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||te(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const re=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function xe(t){var e,r,n,s,c,a;ye(t,"__VMOK__")&&!ye(t,"__FEDERATION__")&&te(t,"__FEDERATION__",t.__VMOK__),ye(t,"__FEDERATION__")||(te(t,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),te(t,"__VMOK__",t.__FEDERATION__));var l;(l=(e=t.__FEDERATION__).__GLOBAL_PLUGIN__)!=null||(e.__GLOBAL_PLUGIN__=[]);var h;(h=(r=t.__FEDERATION__).__INSTANCES__)!=null||(r.__INSTANCES__=[]);var _;(_=(n=t.__FEDERATION__).moduleInfo)!=null||(n.moduleInfo={});var g;(g=(s=t.__FEDERATION__).__SHARE__)!=null||(s.__SHARE__={});var y;(y=(c=t.__FEDERATION__).__MANIFEST_LOADING__)!=null||(c.__MANIFEST_LOADING__={});var E;(E=(a=t.__FEDERATION__).__PRELOADED_MAP__)!=null||(a.__PRELOADED_MAP__=new Map)}xe(v),xe(x);function je(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(re).forEach(t=>{delete re[t]})}function Ce(t){v.__FEDERATION__.__INSTANCES__.push(t)}function ke(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function He(t,e=d.isDebugMode()){e&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=t,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.6.20")}function ne(t,e){if(typeof e=="string"){if(t[e])return{value:t[e],key:e};{const n=Object.keys(t);for(const s of n){const[c,a]=s.split(":"),l=`${c}:${e}`,h=t[l];if(h)return{value:h,key:l}}return{value:void 0,key:e}}}else throw new Error("key must be string")}const ge=()=>x.__FEDERATION__.moduleInfo,Ue=(t,e)=>{const r=w(t),n=ne(e,r).value;if(n&&!n.version&&"version"in t&&t.version&&(n.version=t.version),n)return n;if("version"in t&&t.version){const{version:s}=t,c=i._object_without_properties_loose(t,["version"]),a=w(c),l=ne(x.__FEDERATION__.moduleInfo,a).value;if((l==null?void 0:l.version)===s)return l}},ue=t=>Ue(t,x.__FEDERATION__.moduleInfo),$e=(t,e)=>{const r=w(t);return x.__FEDERATION__.moduleInfo[r]=e,x.__FEDERATION__.moduleInfo},Ne=t=>(x.__FEDERATION__.moduleInfo=i._extends({},x.__FEDERATION__.moduleInfo,t),()=>{const e=Object.keys(t);for(const r of e)delete x.__FEDERATION__.moduleInfo[r]}),fe=(t,e)=>{const r=e||`__FEDERATION_${t}:custom__`,n=v[r];return{remoteEntryKey:r,entryExports:n}},Ge=t=>{const{__GLOBAL_PLUGIN__:e}=x.__FEDERATION__;t.forEach(r=>{e.findIndex(n=>n.name===r.name)===-1?e.push(r):R(`The plugin ${r.name} has been registered.`)})},Be=()=>x.__FEDERATION__.__GLOBAL_PLUGIN__,Ve=t=>v.__FEDERATION__.__PRELOADED_MAP__.get(t),We=t=>v.__FEDERATION__.__PRELOADED_MAP__.set(t,!0),de="default",Xe="global",Ke="[0-9A-Za-z-]+",Ie=`(?:\\+(${Ke}(?:\\.${Ke})*))`,he="0|[1-9]\\d*",be="[0-9]+",qe="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ye=`(?:${be}|${qe})`,dt=`(?:-?(${Ye}(?:\\.${Ye})*))`,ze=`(?:${he}|${qe})`,Je=`(?:-(${ze}(?:\\.${ze})*))`,Te=`${he}|x|X|\\*`,ie=`[v=\\s]*(${Te})(?:\\.(${Te})(?:\\.(${Te})(?:${Je})?${Ie}?)?)?`,ht=`^\\s*(${ie})\\s+-\\s+(${ie})\\s*$`,_t=`[v=\\s]*${`(${be})\\.(${be})\\.(${be})`}${dt}?${Ie}?`,Oe="((?:<|>)?=?)",pt=`(\\s*)${Oe}\\s*(${_t}|${ie})`,Ze="(?:~>?)",mt=`(\\s*)${Ze}\\s+`,Qe="(?:\\^)",Et=`(\\s*)${Qe}\\s+`,yt="(<|>)?=?\\s*\\*",gt=`^${Qe}${ie}$`,bt=`v?${`(${he})\\.(${he})\\.(${he})`}${Je}?${Ie}?`,St=`^${Ze}${ie}$`,Rt=`^${Oe}\\s*${ie}$`,vt=`^${Oe}\\s*(${bt})$|^$`,$t="^\\s*>=\\s*0.0.0\\s*$";function z(t){return new RegExp(t)}function j(t){return!t||t.toLowerCase()==="x"||t==="*"}function et(...t){return e=>t.reduce((r,n)=>n(r),e)}function tt(t){return t.match(z(vt))}function rt(t,e,r,n){const s=`${t}.${e}.${r}`;return n?`${s}-${n}`:s}function Nt(t){return t.replace(z(ht),(e,r,n,s,c,a,l,h,_,g,y,E)=>(j(n)?r="":j(s)?r=`>=${n}.0.0`:j(c)?r=`>=${n}.${s}.0`:r=`>=${r}`,j(_)?h="":j(g)?h=`<${Number(_)+1}.0.0-0`:j(y)?h=`<${_}.${Number(g)+1}.0-0`:E?h=`<=${_}.${g}.${y}-${E}`:h=`<=${h}`,`${r} ${h}`.trim()))}function It(t){return t.replace(z(pt),"$1$2$3")}function Tt(t){return t.replace(z(mt),"$1~")}function Ot(t){return t.replace(z(Et),"$1^")}function Mt(t){return t.trim().split(/\s+/).map(e=>e.replace(z(gt),(r,n,s,c,a)=>j(n)?"":j(s)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:j(c)?n==="0"?`>=${n}.${s}.0 <${n}.${Number(s)+1}.0-0`:`>=${n}.${s}.0 <${Number(n)+1}.0.0-0`:a?n==="0"?s==="0"?`>=${n}.${s}.${c}-${a} <${n}.${s}.${Number(c)+1}-0`:`>=${n}.${s}.${c}-${a} <${n}.${Number(s)+1}.0-0`:`>=${n}.${s}.${c}-${a} <${Number(n)+1}.0.0-0`:n==="0"?s==="0"?`>=${n}.${s}.${c} <${n}.${s}.${Number(c)+1}-0`:`>=${n}.${s}.${c} <${n}.${Number(s)+1}.0-0`:`>=${n}.${s}.${c} <${Number(n)+1}.0.0-0`)).join(" ")}function Pt(t){return t.trim().split(/\s+/).map(e=>e.replace(z(St),(r,n,s,c,a)=>j(n)?"":j(s)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:j(c)?`>=${n}.${s}.0 <${n}.${Number(s)+1}.0-0`:a?`>=${n}.${s}.${c}-${a} <${n}.${Number(s)+1}.0-0`:`>=${n}.${s}.${c} <${n}.${Number(s)+1}.0-0`)).join(" ")}function At(t){return t.split(/\s+/).map(e=>e.trim().replace(z(Rt),(r,n,s,c,a,l)=>{const h=j(s),_=h||j(c),g=_||j(a);return n==="="&&g&&(n=""),l="",h?n===">"||n==="<"?"<0.0.0-0":"*":n&&g?(_&&(c=0),a=0,n===">"?(n=">=",_?(s=Number(s)+1,c=0,a=0):(c=Number(c)+1,a=0)):n==="<="&&(n="<",_?s=Number(s)+1:c=Number(c)+1),n==="<"&&(l="-0"),`${n+s}.${c}.${a}${l}`):_?`>=${s}.0.0${l} <${Number(s)+1}.0.0-0`:g?`>=${s}.${c}.0${l} <${s}.${Number(c)+1}.0-0`:r})).join(" ")}function wt(t){return t.trim().replace(z(yt),"")}function Lt(t){return t.trim().replace(z($t),"")}function Se(t,e){return t=Number(t)||t,e=Number(e)||e,t>e?1:t===e?0:-1}function Dt(t,e){const{preRelease:r}=t,{preRelease:n}=e;if(r===void 0&&n)return 1;if(r&&n===void 0)return-1;if(r===void 0&&n===void 0)return 0;for(let s=0,c=r.length;s<=c;s++){const a=r[s],l=n[s];if(a!==l)return a===void 0&&l===void 0?0:a?l?Se(a,l):-1:1}return 0}function Re(t,e){return Se(t.major,e.major)||Se(t.minor,e.minor)||Se(t.patch,e.patch)||Dt(t,e)}function Me(t,e){return t.version===e.version}function Ft(t,e){switch(t.operator){case"":case"=":return Me(t,e);case">":return Re(t,e)<0;case">=":return Me(t,e)||Re(t,e)<0;case"<":return Re(t,e)>0;case"<=":return Me(t,e)||Re(t,e)>0;case void 0:return!0;default:return!1}}function xt(t){return et(Mt,Pt,At,wt)(t)}function jt(t){return et(Nt,It,Tt,Ot)(t.trim()).split(/\s+/).join(" ")}function _e(t,e){if(!t)return!1;const s=jt(e).split(" ").map(E=>xt(E)).join(" ").split(/\s+/).map(E=>Lt(E)),c=tt(t);if(!c)return!1;const[,a,,l,h,_,g]=c,y={version:rt(l,h,_,g),major:l,minor:h,patch:_,preRelease:g==null?void 0:g.split(".")};for(const E of s){const $=tt(E);if(!$)return!1;const[,I,,P,N,M,F]=$,A={operator:I,version:rt(P,N,M,F),major:P,minor:N,patch:M,preRelease:F==null?void 0:F.split(".")};if(!Ft(A,y))return!1}return!0}function Ct(t,e,r,n){let s;"get"in t?s=t.get:"lib"in t?s=()=>Promise.resolve(t.lib):s=()=>Promise.resolve(()=>{throw new Error(`Can not get shared '${r}'!`)}),t.strategy&&R('"shared.strategy is deprecated, please set in initOptions.shareStrategy instead!"');var c,a,l;return i._extends({deps:[],useIn:[],from:e,loading:null},t,{shareConfig:i._extends({requiredVersion:`^${t.version}`,singleton:!1,eager:!1,strictVersion:!1},t.shareConfig),get:s,loaded:t!=null&&t.loaded||"lib"in t?!0:void 0,version:(c=t.version)!=null?c:"0",scope:Array.isArray(t.scope)?t.scope:[(a=t.scope)!=null?a:"default"],strategy:((l=t.strategy)!=null?l:n)||"version-first"})}function nt(t,e){const r=e.shared||{},n=e.name,s=Object.keys(r).reduce((a,l)=>{const h=B(r[l]);return a[l]=a[l]||[],h.forEach(_=>{a[l].push(Ct(_,n,l,e.shareStrategy))}),a},{}),c=i._extends({},t.shared);return Object.keys(s).forEach(a=>{c[a]?s[a].forEach(l=>{c[a].find(_=>_.version===l.version)||c[a].push(l)}):c[a]=s[a]}),{shared:c,shareInfos:s}}function pe(t,e){const r=n=>{if(!Number.isNaN(Number(n))){const c=n.split(".");let a=n;for(let l=0;l<3-c.length;l++)a+=".0";return a}return n};return!!_e(r(t),`<=${r(e)}`)}const Pe=(t,e)=>{const r=e||function(n,s){return pe(n,s)};return Object.keys(t).reduce((n,s)=>!n||r(n,s)||n==="0"?s:n,0)},Ae=t=>!!t.loaded||typeof t.lib=="function",kt=t=>!!t.loading;function Ht(t,e,r){const n=t[e][r],s=function(c,a){return!Ae(n[c])&&pe(c,a)};return Pe(t[e][r],s)}function Ut(t,e,r){const n=t[e][r],s=function(c,a){const l=h=>Ae(h)||kt(h);return l(n[a])?l(n[c])?!!pe(c,a):!0:l(n[c])?!1:pe(c,a)};return Pe(t[e][r],s)}function Gt(t){return t==="loaded-first"?Ut:Ht}function oe(t,e,r,n){if(!t)return;const{shareConfig:s,scope:c=de,strategy:a}=r,l=Array.isArray(c)?c:[c];for(const h of l)if(s&&t[h]&&t[h][e]){const{requiredVersion:_}=s,y=Gt(a)(t,h,e),E=()=>{if(s.singleton){if(typeof _=="string"&&!_e(y,_)){const P=`Version ${y} from ${y&&t[h][e][y].from} of shared singleton module ${e} does not satisfy the requirement of ${r.from} which needs ${_})`;s.strictVersion?m(P):R(P)}return t[h][e][y]}else{if(_===!1||_==="*"||_e(y,_))return t[h][e][y];for(const[P,N]of Object.entries(t[h][e]))if(_e(P,_))return N}},$={shareScopeMap:t,scope:h,pkgName:e,version:y,GlobalFederation:k.__FEDERATION__,resolver:E};return(n.emit($)||$).resolver()}}function we(){return k.__FEDERATION__.__SHARE__}function ot(t){const{pkgName:e,extraOptions:r,shareInfos:n}=t,s=l=>{if(!l)return;const h={};l.forEach(y=>{h[y.version]=y});const g=Pe(h,function(y,E){return!Ae(h[y])&&pe(y,E)});return h[g]};var c;const a=(c=r==null?void 0:r.resolver)!=null?c:s;return Object.assign({},a(n[e]),r==null?void 0:r.customShareInfo)}var Bt={global:{Global:k,nativeGlobal:x,resetFederationGlobalInfo:je,setGlobalFederationInstance:Ce,getGlobalFederationConstructor:ke,setGlobalFederationConstructor:He,getInfoWithoutType:ne,getGlobalSnapshot:ge,getTargetSnapshotInfoByModuleInfo:Ue,getGlobalSnapshotInfoByModuleInfo:ue,setGlobalSnapshotInfoByModuleInfo:$e,addGlobalSnapshot:Ne,getRemoteEntryExports:fe,registerGlobalPlugins:Ge,getGlobalHostPlugins:Be,getPreloaded:Ve,setPreloaded:We},share:{getRegisteredShare:oe,getGlobalShareScope:we}};function Vt(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function st(t,e){for(const r of t){const n=e.startsWith(r.name);let s=e.replace(r.name,"");if(n){if(s.startsWith("/")){const l=r.name;return s=`.${s}`,{pkgNameOrAlias:l,expose:s,remote:r}}else if(s==="")return{pkgNameOrAlias:r.name,expose:".",remote:r}}const c=r.alias&&e.startsWith(r.alias);let a=r.alias&&e.replace(r.alias,"");if(r.alias&&c){if(a&&a.startsWith("/")){const l=r.alias;return a=`.${a}`,{pkgNameOrAlias:l,expose:a,remote:r}}else if(a==="")return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function Wt(t,e){for(const r of t)if(e===r.name||r.alias&&e===r.alias)return r}function Xt(t,e){const r=Be();return r.length>0&&r.forEach(n=>{t!=null&&t.find(s=>s.name!==n.name)&&t.push(n)}),t&&t.length>0&&t.forEach(n=>{e.forEach(s=>{s.applyPlugin(n)})}),t}async function Kt({entry:t,remoteEntryExports:e}){return new Promise((r,n)=>{try{e?r(e):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${t}").then(callbacks[0]).catch(callbacks[1])`)([r,n]):import(t).then(r).catch(n)}catch(s){n(s)}})}async function qt({entry:t,remoteEntryExports:e}){return new Promise((r,n)=>{try{e?r(e):typeof __system_context__>"u"?System.import(t).then(r).catch(n):new Function("callbacks",`System.import("${t}").then(callbacks[0]).catch(callbacks[1])`)([r,n])}catch(s){n(s)}})}async function Yt({name:t,globalName:e,entry:r,loaderHook:n}){const{entryExports:s}=fe(t,e);return s||d.loadScript(r,{attrs:{},createScriptHook:(c,a)=>{const l=n.lifecycle.createScript.emit({url:c,attrs:a});if(l&&(l instanceof HTMLScriptElement||"script"in l||"timeout"in l))return l}}).then(()=>{const{remoteEntryKey:c,entryExports:a}=fe(t,e);return b(a,u.getShortErrorMsg(u.RUNTIME_001,u.runtimeDescMap,{remoteName:t,remoteEntryUrl:r,remoteEntryKey:c})),a}).catch(c=>{throw b(void 0,u.getShortErrorMsg(u.RUNTIME_008,u.runtimeDescMap,{remoteName:t,resourceUrl:r})),c})}async function zt({remoteInfo:t,remoteEntryExports:e,loaderHook:r}){const{entry:n,entryGlobalName:s,name:c,type:a}=t;switch(a){case"esm":case"module":return Kt({entry:n,remoteEntryExports:e});case"system":return qt({entry:n,remoteEntryExports:e});default:return Yt({entry:n,globalName:s,name:c,loaderHook:r})}}async function Jt({remoteInfo:t,loaderHook:e}){const{entry:r,entryGlobalName:n,name:s,type:c}=t,{entryExports:a}=fe(s,n);return a||d.loadScriptNode(r,{attrs:{name:s,globalName:n,type:c},loaderHook:{createScriptHook:(l,h={})=>{const _=e.lifecycle.createScript.emit({url:l,attrs:h});if(_&&"url"in _)return _}}}).then(()=>{const{remoteEntryKey:l,entryExports:h}=fe(s,n);return b(h,u.getShortErrorMsg(u.RUNTIME_001,u.runtimeDescMap,{remoteName:s,remoteEntryUrl:r,remoteEntryKey:l})),h}).catch(l=>{throw l})}function Le(t){const{entry:e,name:r}=t;return d.composeKeyWithSeparator(r,e)}async function me({origin:t,remoteEntryExports:e,remoteInfo:r}){const n=Le(r);if(e)return e;if(!re[n]){const s=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;re[n]=s.emit({loaderHook:c,remoteInfo:r,remoteEntryExports:e}).then(a=>a||(d.isBrowserEnv()?zt({remoteInfo:r,remoteEntryExports:e,loaderHook:c}):Jt({remoteInfo:r,loaderHook:c})))}return re[n]}function ve(t){return i._extends({},t,{entry:"entry"in t?t.entry:"",type:t.type||Xe,entryGlobalName:t.entryGlobalName||t.name,shareScope:t.shareScope||de})}let De=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e;try{e=await me({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch{const n=Le(this.remoteInfo);e=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:me,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:re,uniqueKey:n})}return b(e,`remoteEntryExports is undefined
|
|
10
|
-
${d.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,r,n,s){const{loadFactory:c=!0}=n||{loadFactory:!0},a=await this.getEntry();if(!this.inited){const y=this.host.shareScopeMap,E=this.remoteInfo.shareScope||"default";y[E]||(y[E]={});const $=y[E],I=[],P={version:this.remoteInfo.version||""};Object.defineProperty(P,"shareScopeMap",{value:y,enumerable:!1});const N=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:$,remoteEntryInitOptions:P,initScope:I,remoteInfo:this.remoteInfo,origin:this.host});typeof(a==null?void 0:a.init)>"u"&&m(u.getShortErrorMsg(u.RUNTIME_002,u.runtimeDescMap,{remoteName:name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await a.init(N.shareScope,N.initScope,N.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(i._extends({},N,{id:e,remoteSnapshot:s,remoteEntryExports:a}))}this.lib=a,this.inited=!0;let l;l=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:r,moduleInfo:this.remoteInfo}),l||(l=await a.get(r)),b(l,`${w(this.remoteInfo)} remote don't export ${r}.`);const h=ee(this.remoteInfo.name,r),_=this.wraperFactory(l,h);return c?await _():_}wraperFactory(e,r){function n(s,c){s&&typeof s=="object"&&Object.isExtensible(s)&&!Object.getOwnPropertyDescriptor(s,Symbol.for("mf_module_id"))&&Object.defineProperty(s,Symbol.for("mf_module_id"),{value:c,enumerable:!1})}return e instanceof Promise?async()=>{const s=await e();return n(s,r),s}:()=>{const s=e();return n(s,r),s}}constructor({remoteInfo:e,host:r}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=r}};class W{on(e){typeof e=="function"&&this.listeners.add(e)}once(e){const r=this;this.on(function n(...s){return r.remove(n),e.apply(null,s)})}emit(...e){let r;return this.listeners.size>0&&this.listeners.forEach(n=>{r=n(...e)}),r}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}}class K extends W{emit(...e){let r;const n=Array.from(this.listeners);if(n.length>0){let s=0;const c=a=>a===!1?!1:s<n.length?Promise.resolve(n[s++].apply(null,e)).then(c):a;r=c()}return Promise.resolve(r)}}function it(t,e){if(!Y(e))return!1;if(t!==e){for(const r in t)if(!(r in e))return!1}return!0}class Ee extends W{emit(e){Y(e)||m(`The data for the "${this.type}" hook should be an object.`);for(const r of this.listeners)try{const n=r(e);if(it(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(n){R(n),this.onerror(n)}return e}constructor(e){super(),this.onerror=m,this.type=e}}class se extends W{emit(e){Y(e)||m(`The response data for the "${this.type}" hook must be an object.`);const r=Array.from(this.listeners);if(r.length>0){let n=0;const s=a=>(R(a),this.onerror(a),e),c=a=>{if(it(e,a)){if(e=a,n<r.length)try{return Promise.resolve(r[n++](e)).then(c,s)}catch(l){return s(l)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(c(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=m,this.type=e}}class ae{applyPlugin(e){b(le(e),"Plugin configuration is invalid.");const r=e.name;b(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,Object.keys(this.lifecycle).forEach(n=>{const s=e[n];s&&this.lifecycle[n].on(s)}))}removePlugin(e){b(e,"A name is required.");const r=this.registerPlugins[e];b(r,`The plugin "${e}" is not registered.`),Object.keys(r).forEach(n=>{n!=="name"&&this.lifecycle[n].remove(r[n])})}inherit({lifecycle:e,registerPlugins:r}){Object.keys(e).forEach(n=>{b(!this.lifecycle[n],`The hook "${n}" has a conflict and cannot be inherited.`),this.lifecycle[n]=e[n]}),Object.keys(r).forEach(n=>{b(!this.registerPlugins[n],`The plugin "${n}" has a conflict and cannot be inherited.`),this.applyPlugin(r[n])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}}function at(t){return i._extends({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},t)}function Zt(t,e){return e.map(r=>{const n=Wt(t,r.nameOrAlias);return b(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&d.safeToString({remoteInfo:n,remotes:t})}`),{remote:n,preloadConfig:at(r)}})}function Qt(t){return t?t.map(e=>e==="."?e:e.startsWith("./")?e.replace("./",""):e):[]}function lt(t,e,r,n=!0){const{cssAssets:s,jsAssetsWithoutEntry:c,entryAssets:a}=r;if(e.options.inBrowser){if(a.forEach(l=>{const{moduleInfo:h}=l,_=e.moduleCache.get(t.name);me(_?{origin:e,remoteInfo:h,remoteEntryExports:_.remoteEntryExports}:{origin:e,remoteInfo:h,remoteEntryExports:void 0})}),n){const l={rel:"preload",as:"style"};s.forEach(h=>{const{link:_,needAttach:g}=d.createLink({url:h,cb:()=>{},attrs:l,createLinkHook:(y,E)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:y,attrs:E});if($ instanceof HTMLLinkElement)return $}});g&&document.head.appendChild(_)})}else{const l={rel:"stylesheet",type:"text/css"};s.forEach(h=>{const{link:_,needAttach:g}=d.createLink({url:h,cb:()=>{},attrs:l,createLinkHook:(y,E)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:y,attrs:E});if($ instanceof HTMLLinkElement)return $},needDeleteLink:!1});g&&document.head.appendChild(_)})}if(n){const l={rel:"preload",as:"script"};c.forEach(h=>{const{link:_,needAttach:g}=d.createLink({url:h,cb:()=>{},attrs:l,createLinkHook:(y,E)=>{const $=e.loaderHook.lifecycle.createLink.emit({url:y,attrs:E});if($ instanceof HTMLLinkElement)return $}});g&&document.head.appendChild(_)})}else{const l={fetchpriority:"high",type:(t==null?void 0:t.type)==="module"?"module":"text/javascript"};c.forEach(h=>{const{script:_,needAttach:g}=d.createScript({url:h,cb:()=>{},attrs:l,createScriptHook:(y,E)=>{const $=e.loaderHook.lifecycle.createScript.emit({url:y,attrs:E});if($ instanceof HTMLScriptElement)return $},needDeleteScript:!0});g&&document.head.appendChild(_)})}}}function ct(t,e){const r=ce(e);r.url||m(`The attribute remoteEntry of ${t.name} must not be undefined.`);let n=d.getResourceUrl(e,r.url);!d.isBrowserEnv()&&!n.startsWith("http")&&(n=`https:${n}`),t.type=r.type,t.entryGlobalName=r.globalName,t.entry=n,t.version=e.version,t.buildVersion=e.buildVersion}function er(){return{name:"snapshot-plugin",async afterResolve(t){const{remote:e,pkgNameOrAlias:r,expose:n,origin:s,remoteInfo:c}=t;if(!L(e)||!O(e)){const{remoteSnapshot:a,globalSnapshot:l}=await s.snapshotHandler.loadRemoteSnapshotInfo(e);ct(c,a);const h={remote:e,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},_=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:h,remoteInfo:c,remote:e,remoteSnapshot:a,globalSnapshot:l});return _&<(c,s,_,!1),i._extends({},t,{remoteSnapshot:a})}return t}}}function tr(t){const e=t.split(":");return e.length===1?{name:e[0],version:void 0}:e.length===2?{name:e[0],version:e[1]}:{name:e[1],version:e[2]}}function ut(t,e,r,n,s={},c){const a=w(e),{value:l}=ne(t,a),h=c||l;if(h&&!d.isManifestProvider(h)&&(r(h,e,n),h.remotesInfo)){const _=Object.keys(h.remotesInfo);for(const g of _){if(s[g])continue;s[g]=!0;const y=tr(g),E=h.remotesInfo[g];ut(t,{name:y.name,version:E.matchedVersion},r,!1,s,void 0)}}}function rr(t,e,r,n,s){const c=[],a=[],l=[],h=new Set,_=new Set,{options:g}=t,{preloadConfig:y}=e,{depsRemote:E}=y;if(ut(n,r,(N,M,F)=>{let A;if(F)A=y;else if(Array.isArray(E)){const q=E.find(X=>X.nameOrAlias===M.name||X.nameOrAlias===M.alias);if(!q)return;A=at(q)}else if(E===!0)A=y;else return;const D=d.getResourceUrl(N,ce(N).url);D&&l.push({name:M.name,moduleInfo:{name:M.name,entry:D,type:"remoteEntryType"in N?N.remoteEntryType:"global",entryGlobalName:"globalName"in N?N.globalName:M.name,shareScope:"",version:"version"in N?N.version:void 0},url:D});let H="modules"in N?N.modules:[];const U=Qt(A.exposes);if(U.length&&"modules"in N){var Q;H=N==null||(Q=N.modules)==null?void 0:Q.reduce((q,X)=>((U==null?void 0:U.indexOf(X.moduleName))!==-1&&q.push(X),q),[])}function C(q){const X=q.map(J=>d.getResourceUrl(N,J));return A.filter?X.filter(A.filter):X}if(H){const q=H.length;for(let X=0;X<q;X++){const J=H[X],Fe=`${M.name}/${J.moduleName}`;t.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:J.moduleName==="."?M.name:Fe,name:M.name,remoteSnapshot:N,preloadConfig:A,remote:M,origin:t}),!Ve(Fe)&&(A.resourceCategory==="all"?(c.push(...C(J.assets.css.async)),c.push(...C(J.assets.css.sync)),a.push(...C(J.assets.js.async)),a.push(...C(J.assets.js.sync))):(A.resourceCategory="sync")&&(c.push(...C(J.assets.css.sync)),a.push(...C(J.assets.js.sync))),We(Fe))}}},!0,{},s),s.shared){const N=(M,F)=>{const A=oe(t.shareScopeMap,F.sharedName,M,t.sharedHandler.hooks.lifecycle.resolveShare);A&&typeof A.lib=="function"&&(F.assets.js.sync.forEach(D=>{h.add(D)}),F.assets.css.sync.forEach(D=>{_.add(D)}))};s.shared.forEach(M=>{var F;const A=(F=g.shared)==null?void 0:F[M.sharedName];if(!A)return;const D=M.version?A.find(U=>U.version===M.version):A;if(!D)return;B(D).forEach(U=>{N(U,M)})})}const I=a.filter(N=>!h.has(N));return{cssAssets:c.filter(N=>!_.has(N)),jsAssetsWithoutEntry:I,entryAssets:l}}const nr=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(t){const{origin:e,preloadOptions:r,remoteInfo:n,remote:s,globalSnapshot:c,remoteSnapshot:a}=t;return L(s)&&O(s)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:s.name,url:s.entry,moduleInfo:{name:n.name,entry:s.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(ct(n,a),rr(e,r,n,c,a))}}};function ft(t,e){const r=ue({name:e.options.name,version:e.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&ne(r.remotesInfo,t.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:ge(),remoteSnapshot:ue({name:t.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:ge(),remoteSnapshot:ue({name:t.name,version:"version"in t?t.version:void 0})}}class or{async loadSnapshot(e){const{options:r}=this.HostInstance,{hostGlobalSnapshot:n,remoteSnapshot:s,globalSnapshot:c}=this.getGlobalRemoteInfo(e),{remoteSnapshot:a,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:n,remoteSnapshot:s,globalSnapshot:c});return{remoteSnapshot:a,globalSnapshot:l}}async loadRemoteSnapshotInfo(e){const{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e});let n=ue({name:this.HostInstance.options.name,version:this.HostInstance.options.version});n||(n={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},Ne({[this.HostInstance.options.name]:n})),n&&"remotesInfo"in n&&!ne(n.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(n.remotesInfo=i._extends({},n==null?void 0:n.remotesInfo,{[e.name]:{matchedVersion:"version"in e?e.version:e.entry}}));const{hostGlobalSnapshot:s,remoteSnapshot:c,globalSnapshot:a}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:c,globalSnapshot:a});let _,g;if(l)if(d.isManifestProvider(l)){const y=d.isBrowserEnv()?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",E=await this.getManifestJson(y,e,{}),$=$e(i._extends({},e,{entry:y}),E);_=E,g=$}else{const{remoteSnapshot:y}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});_=y,g=h}else if(L(e)){const y=await this.getManifestJson(e.entry,e,{}),E=$e(e,y),{remoteSnapshot:$}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:y,from:"global"});_=$,g=E}else m(u.getShortErrorMsg(u.RUNTIME_007,u.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(h)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({options:r,moduleInfo:e,remoteSnapshot:_}),{remoteSnapshot:_,globalSnapshot:g}}getGlobalRemoteInfo(e){return ft(e,this.HostInstance)}async getManifestJson(e,r,n){const s=async()=>{let a=this.manifestCache.get(e);if(a)return a;try{let l=await this.loaderHook.lifecycle.fetch.emit(e,{});(!l||!(l instanceof Response))&&(l=await fetch(e,{})),a=await l.json()}catch(l){a=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:m,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),a||(delete this.manifestLoading[e],m(u.getShortErrorMsg(u.RUNTIME_003,u.runtimeDescMap,{manifestUrl:e,moduleName:r.name},`${l}`)))}return b(a.metaData&&a.exposes&&a.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,a),a},c=async()=>{const a=await s(),l=d.generateSnapshotFromManifest(a,{version:e}),{remoteSnapshot:h}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:r,manifestJson:a,remoteSnapshot:l,manifestUrl:e,from:"manifest"});return h};return this.manifestLoading[e]||(this.manifestLoading[e]=c().then(a=>a)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ae({beforeLoadRemoteSnapshot:new K("beforeLoadRemoteSnapshot"),loadSnapshot:new se("loadGlobalSnapshot"),loadRemoteSnapshot:new se("loadRemoteSnapshot"),afterLoadSnapshot:new se("afterLoadSnapshot")}),this.manifestLoading=k.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class sr{registerShared(e,r){const{shareInfos:n,shared:s}=nt(e,r);return Object.keys(n).forEach(a=>{n[a].forEach(h=>{!oe(this.shareScopeMap,a,h,this.hooks.lifecycle.resolveShare)&&h&&h.lib&&this.setShared({pkgName:a,lib:h.lib,get:h.get,loaded:!0,shared:h,from:r.name})})}),{shareInfos:n,shared:s}}async loadShare(e,r){const{host:n}=this,s=ot({pkgName:e,extraOptions:r,shareInfos:n.options.shared});s!=null&&s.scope&&await Promise.all(s.scope.map(async _=>{await Promise.all(this.initializeSharing(_,{strategy:s.strategy}))}));const c=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:s,shared:n.options.shared,origin:n}),{shareInfo:a}=c;b(a,`Cannot find ${e} Share in the ${n.options.name}. Please ensure that the ${e} Share parameters have been injected`);const l=oe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),h=_=>{_.useIn||(_.useIn=[]),T(_.useIn,n.options.name)};if(l&&l.lib)return h(l),l.lib;if(l&&l.loading&&!l.loaded){const _=await l.loading;return l.loaded=!0,l.lib||(l.lib=_),h(l),_}else if(l){const g=(async()=>{const y=await l.get();a.lib=y,a.loaded=!0,h(a);const E=oe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return E&&(E.lib=y,E.loaded=!0),y})();return this.setShared({pkgName:e,loaded:!1,shared:l,from:n.options.name,lib:null,loading:g}),g}else{if(r!=null&&r.customShareInfo)return!1;const g=(async()=>{const y=await a.get();a.lib=y,a.loaded=!0,h(a);const E=oe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return E&&(E.lib=y,E.loaded=!0),y})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:n.options.name,lib:null,loading:g}),g}}initializeSharing(e=de,r){const{host:n}=this,s=r==null?void 0:r.from,c=r==null?void 0:r.strategy;let a=r==null?void 0:r.initScope;const l=[];if(s!=="build"){const{initTokens:I}=this;a||(a=[]);let P=I[e];if(P||(P=I[e]={from:this.host.name}),a.indexOf(P)>=0)return l;a.push(P)}const h=this.shareScopeMap,_=n.options.name;h[e]||(h[e]={});const g=h[e],y=(I,P)=>{var N;const{version:M,eager:F}=P;g[I]=g[I]||{};const A=g[I],D=A[M],H=!!(D&&(D.eager||(N=D.shareConfig)!=null&&N.eager));(!D||D.strategy!=="loaded-first"&&!D.loaded&&(!F!=!H?F:_>D.from))&&(A[M]=P)},E=I=>I&&I.init&&I.init(h[e],a),$=async I=>{const{module:P}=await n.remoteHandler.getRemoteModuleAndOptions({id:I});if(P.getEntry){let N;try{N=await P.getEntry()}catch(M){N=await n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:I,error:M,from:"runtime",lifecycle:"beforeLoadShare",origin:n})}P.inited||(await E(N),P.inited=!0)}};return Object.keys(n.options.shared).forEach(I=>{n.options.shared[I].forEach(N=>{N.scope.includes(e)&&y(I,N)})}),(n.options.shareStrategy==="version-first"||c==="version-first")&&n.options.remotes.forEach(I=>{I.shareScope===e&&l.push($(I.name))}),l}loadShareSync(e,r){const{host:n}=this,s=ot({pkgName:e,extraOptions:r,shareInfos:n.options.shared});s!=null&&s.scope&&s.scope.forEach(l=>{this.initializeSharing(l,{strategy:s.strategy})});const c=oe(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare),a=l=>{l.useIn||(l.useIn=[]),T(l.useIn,n.options.name)};if(c){if(typeof c.lib=="function")return a(c),c.loaded||(c.loaded=!0,c.from===n.options.name&&(s.loaded=!0)),c.lib;if(typeof c.get=="function"){const l=c.get();if(!(l instanceof Promise))return a(c),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:l,shared:c}),l}}if(s.lib)return s.loaded||(s.loaded=!0),s.lib;if(s.get){const l=s.get();if(l instanceof Promise){const h=(r==null?void 0:r.from)==="build"?u.RUNTIME_005:u.RUNTIME_006;throw new Error(u.getShortErrorMsg(h,u.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}return s.lib=l,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:s.lib,shared:s}),s.lib}throw new Error(u.getShortErrorMsg(u.RUNTIME_006,u.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}initShareScopeMap(e,r,n={}){const{host:s}=this;this.shareScopeMap[e]=r,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:r,options:s.options,origin:s,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:r,from:n,lib:s,loading:c,loaded:a,get:l}){const{version:h,scope:_="default"}=r,g=i._object_without_properties_loose(r,["version","scope"]);(Array.isArray(_)?_:[_]).forEach(E=>{if(this.shareScopeMap[E]||(this.shareScopeMap[E]={}),this.shareScopeMap[E][e]||(this.shareScopeMap[E][e]={}),!this.shareScopeMap[E][e][h]){this.shareScopeMap[E][e][h]=i._extends({version:h,scope:["default"]},g,{lib:s,loaded:a,loading:c}),l&&(this.shareScopeMap[E][e][h].get=l);return}const $=this.shareScopeMap[E][e][h];c&&!$.loading&&($.loading=c)})}_setGlobalShareScopeMap(e){const r=we(),n=e.id||e.name;n&&!r[n]&&(r[n]=this.shareScopeMap)}constructor(e){this.hooks=new ae({afterResolve:new se("afterResolve"),beforeLoadShare:new se("beforeLoadShare"),loadShare:new K,resolveShare:new Ee("resolveShare"),initContainerShareScopeMap:new Ee("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class ir{formatAndRegisterRemote(e,r){return(r.remotes||[]).reduce((s,c)=>(this.registerRemote(c,s,{force:!1}),s),e.remotes)}setIdToRemoteMap(e,r){const{remote:n,expose:s}=r,{name:c,alias:a}=n;if(this.idToRemoteMap[e]={name:n.name,expose:s},a&&e.startsWith(c)){const l=e.replace(c,a);this.idToRemoteMap[l]={name:n.name,expose:s};return}if(a&&e.startsWith(a)){const l=e.replace(a,c);this.idToRemoteMap[l]={name:n.name,expose:s}}}async loadRemote(e,r){const{host:n}=this;try{const{loadFactory:s=!0}=r||{loadFactory:!0},{module:c,moduleOptions:a,remoteMatchInfo:l}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:h,remote:_,expose:g,id:y,remoteSnapshot:E}=l,$=await c.get(y,g,r,E),I=await this.hooks.lifecycle.onLoad.emit({id:y,pkgNameOrAlias:h,expose:g,exposeModule:s?$:void 0,exposeModuleFactory:s?void 0:$,remote:_,options:a,moduleInstance:c,origin:n});return this.setIdToRemoteMap(e,l),typeof I=="function"?I:$}catch(s){const{from:c="runtime"}=r||{from:"runtime"},a=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:s,from:c,lifecycle:"onLoad",origin:n});if(!a)throw s;return a}}async preloadRemote(e){const{host:r}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});const n=Zt(r.options.remotes,e);await Promise.all(n.map(async s=>{const{remote:c}=s,a=ve(c),{globalSnapshot:l,remoteSnapshot:h}=await r.snapshotHandler.loadRemoteSnapshotInfo(c),_=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:s,remote:c,remoteInfo:a,globalSnapshot:l,remoteSnapshot:h});_&<(a,r,_)}))}registerRemotes(e,r){const{host:n}=this;e.forEach(s=>{this.registerRemote(s,n.options.remotes,{force:r==null?void 0:r.force})})}async getRemoteModuleAndOptions(e){const{host:r}=this,{id:n}=e;let s;try{s=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(I){if(s=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:I,lifecycle:"beforeRequest"}),!s)throw I}const{id:c}=s,a=st(r.options.remotes,c);b(a,u.getShortErrorMsg(u.RUNTIME_004,u.runtimeDescMap,{hostName:r.options.name,requestId:c}));const{remote:l}=a,h=ve(l),_=await r.sharedHandler.hooks.lifecycle.afterResolve.emit(i._extends({id:c},a,{options:r.options,origin:r,remoteInfo:h})),{remote:g,expose:y}=_;b(g&&y,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${c}.`);let E=r.moduleCache.get(g.name);const $={host:r,remoteInfo:h};return E||(E=new De($),r.moduleCache.set(g.name,E)),{module:E,moduleOptions:$,remoteMatchInfo:_}}registerRemote(e,r,n){const{host:s}=this,c=()=>{if(e.alias){const l=r.find(h=>{var _;return e.alias&&(h.name.startsWith(e.alias)||((_=h.alias)==null?void 0:_.startsWith(e.alias)))});b(!l,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${l&&l.name} name or alias`)}"entry"in e&&d.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=de),e.type||(e.type=Xe)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:s});const a=r.find(l=>l.name===e.name);if(!a)c(),r.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:s});else{const l=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];n!=null&&n.force&&(this.removeRemote(a),c(),r.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:s}),d.warn(l.join(" ")))}}removeRemote(e){try{const{host:n}=this,{name:s}=e,c=n.options.remotes.findIndex(l=>l.name===s);c!==-1&&n.options.remotes.splice(c,1);const a=n.moduleCache.get(e.name);if(a){const l=a.remoteInfo,h=l.entryGlobalName;if(v[h]){var r;(r=Object.getOwnPropertyDescriptor(v,h))!=null&&r.configurable?delete v[h]:v[h]=void 0}const _=Le(a.remoteInfo);re[_]&&delete re[_],n.snapshotHandler.manifestCache.delete(l.entry);let g=l.buildVersion?d.composeKeyWithSeparator(l.name,l.buildVersion):l.name;const y=v.__FEDERATION__.__INSTANCES__.findIndex($=>l.buildVersion?$.options.id===g:$.name===g);if(y!==-1){const $=v.__FEDERATION__.__INSTANCES__[y];g=$.options.id||g;const I=we();let P=!0;const N=[];Object.keys(I).forEach(M=>{const F=I[M];F&&Object.keys(F).forEach(A=>{const D=F[A];D&&Object.keys(D).forEach(H=>{const U=D[H];U&&Object.keys(U).forEach(Q=>{const C=U[Q];C&&typeof C=="object"&&C.from===l.name&&(C.loaded||C.loading?(C.useIn=C.useIn.filter(q=>q!==l.name),C.useIn.length?P=!1:N.push([M,A,H,Q])):N.push([M,A,H,Q]))})})})}),P&&($.shareScopeMap={},delete I[g]),N.forEach(([M,F,A,D])=>{var H,U,Q;(Q=I[M])==null||(U=Q[F])==null||(H=U[A])==null||delete H[D]}),v.__FEDERATION__.__INSTANCES__.splice(y,1)}const{hostGlobalSnapshot:E}=ft(e,n);if(E){const $=E&&"remotesInfo"in E&&E.remotesInfo&&ne(E.remotesInfo,e.name).key;$&&(delete E.remotesInfo[$],k.__FEDERATION__.__MANIFEST_LOADING__[$]&&delete k.__FEDERATION__.__MANIFEST_LOADING__[$])}n.moduleCache.delete(e.name)}}catch(n){S.log("removeRemote fail: ",n)}}constructor(e){this.hooks=new ae({beforeRegisterRemote:new Ee("beforeRegisterRemote"),registerRemote:new Ee("registerRemote"),beforeRequest:new se("beforeRequest"),onLoad:new K("onLoad"),handlePreloadModule:new W("handlePreloadModule"),errorLoadRemote:new K("errorLoadRemote"),beforePreloadRemote:new K("beforePreloadRemote"),generatePreloadAssets:new K("generatePreloadAssets"),afterPreloadRemote:new K,loadEntry:new K}),this.host=e,this.idToRemoteMap={}}}class ar{initOptions(e){this.registerPlugins(e.plugins);const r=this.formatOptions(this.options,e);return this.options=r,r}async loadShare(e,r){return this.sharedHandler.loadShare(e,r)}loadShareSync(e,r){return this.sharedHandler.loadShareSync(e,r)}initializeSharing(e=de,r){return this.sharedHandler.initializeSharing(e,r)}initRawContainer(e,r,n){const s=ve({name:e,entry:r}),c=new De({host:this,remoteInfo:s});return c.remoteEntryExports=n,this.moduleCache.set(e,c),c}async loadRemote(e,r){return this.remoteHandler.loadRemote(e,r)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,r,n={}){this.sharedHandler.initShareScopeMap(e,r,n)}formatOptions(e,r){const{shared:n}=nt(e,r),{userOptions:s,options:c}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:r,options:e,shareInfo:n}),a=this.remoteHandler.formatAndRegisterRemote(c,s),{shared:l}=this.sharedHandler.registerShared(c,s),h=[...c.plugins];s.plugins&&s.plugins.forEach(g=>{h.includes(g)||h.push(g)});const _=i._extends({},e,r,{plugins:h,remotes:a,shared:l});return this.hooks.lifecycle.init.emit({origin:this,options:_}),_}registerPlugins(e){const r=Xt(e,[this.hooks,this.remoteHandler.hooks,this.sharedHandler.hooks,this.snapshotHandler.hooks,this.loaderHook,this.bridgeHook]);this.options.plugins=this.options.plugins.reduce((n,s)=>(s&&n&&!n.find(c=>c.name===s.name)&&n.push(s),n),r||[])}registerRemotes(e,r){return this.remoteHandler.registerRemotes(e,r)}constructor(e){this.hooks=new ae({beforeInit:new Ee("beforeInit"),init:new W,beforeInitContainer:new se("beforeInitContainer"),initContainer:new se("initContainer")}),this.version="0.6.20",this.moduleCache=new Map,this.loaderHook=new ae({getModuleInfo:new W,createScript:new W,createLink:new W,fetch:new K,loadEntryError:new K,getModuleFactory:new K}),this.bridgeHook=new ae({beforeBridgeRender:new W,afterBridgeRender:new W,beforeBridgeDestroy:new W,afterBridgeDestroy:new W});const r={id:Vt(),name:e.name,plugins:[er(),nr()],remotes:[],shared:{},inBrowser:d.isBrowserEnv()};this.name=e.name,this.options=r,this.snapshotHandler=new or(this),this.sharedHandler=new sr(this),this.remoteHandler=new ir(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}}var lr=Object.freeze({__proto__:null});Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return d.loadScript}}),Object.defineProperty(o,"loadScriptNode",{enumerable:!0,get:function(){return d.loadScriptNode}}),o.CurrentGlobal=v,o.FederationHost=ar,o.Global=k,o.Module=De,o.addGlobalSnapshot=Ne,o.assert=b,o.getGlobalFederationConstructor=ke,o.getGlobalSnapshot=ge,o.getInfoWithoutType=ne,o.getRegisteredShare=oe,o.getRemoteEntry=me,o.getRemoteInfo=ve,o.helpers=Bt,o.isStaticResourcesEqual=Z,o.matchRemoteWithNameAndExpose=st,o.registerGlobalPlugins=Ge,o.resetFederationGlobalInfo=je,o.safeWrapper=G,o.satisfy=_e,o.setGlobalFederationConstructor=He,o.setGlobalFederationInstance=Ce,o.types=lr})(index_cjs$2);var utils_cjs={},runtimeCore=index_cjs$2;function getBuilderId(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function getGlobalFederationInstance(o,i){const d=getBuilderId();return runtimeCore.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(u=>!!(d&&u.options.id===getBuilderId()||u.options.name===o&&!u.options.version&&!i||u.options.name===o&&i&&u.options.version===i))}utils_cjs.getGlobalFederationInstance=getGlobalFederationInstance;(function(o){var i=index_cjs$2,d=utils_cjs;let u=null;function p(O){const G=d.getGlobalFederationInstance(O.name,O.version);if(G)return G.initOptions(O),u||(u=G),G;{const Y=i.getGlobalFederationConstructor()||i.FederationHost;return u=new Y(O),i.setGlobalFederationInstance(u),u}}function S(...O){return i.assert(u,"Please call init first"),u.loadRemote.apply(u,O)}function b(...O){return i.assert(u,"Please call init first"),u.loadShare.apply(u,O)}function m(...O){return i.assert(u,"Please call init first"),u.loadShareSync.apply(u,O)}function R(...O){return i.assert(u,"Please call init first"),u.preloadRemote.apply(u,O)}function T(...O){return i.assert(u,"Please call init first"),u.registerRemotes.apply(u,O)}function w(...O){return i.assert(u,"Please call init first"),u.registerPlugins.apply(u,O)}function L(){return u}i.setGlobalFederationConstructor(i.FederationHost),Object.defineProperty(o,"FederationHost",{enumerable:!0,get:function(){return i.FederationHost}}),Object.defineProperty(o,"Module",{enumerable:!0,get:function(){return i.Module}}),Object.defineProperty(o,"getRemoteEntry",{enumerable:!0,get:function(){return i.getRemoteEntry}}),Object.defineProperty(o,"getRemoteInfo",{enumerable:!0,get:function(){return i.getRemoteInfo}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(o,"loadScriptNode",{enumerable:!0,get:function(){return i.loadScriptNode}}),Object.defineProperty(o,"registerGlobalPlugins",{enumerable:!0,get:function(){return i.registerGlobalPlugins}}),o.getInstance=L,o.init=p,o.loadRemote=S,o.loadShare=b,o.loadShareSync=m,o.preloadRemote=R,o.registerPlugins=w,o.registerRemotes=T})(index_cjs$3);let initResolve,initReject;const initPromise=new Promise((o,i)=>{initResolve=o,initReject=i});var ConfigCustomJavascriptSet__mf_v__runtimeInit__mf_v__={initPromise,initResolve,initReject};export{ConfigCustomJavascriptSet__mf_v__runtimeInit__mf_v__ as C,index_cjs$3 as i};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{d as K}from"./defaultTheme-avbtL0lf.js";import{a6 as Z,a0 as J,Y as Q,a7 as ee,$ as G,a8 as te,a9 as re,a2 as ne,d as ae,s as D,Z as oe,T as ie}from"./createTheme-BwMO3rTt.js";import{_ as se,u as le}from"./DefaultPropsProvider-DbEA5uR6.js";import{C as F}from"./ConfigCustomJavascriptSet__loadShare__react__loadShare__-CzzIM-HW.js";import"./jsx-runtime-o-xyxrOj.js";var ce=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ue=Z(function(e){return ce.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),de=ue,fe=function(t){return t!=="theme"},H=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?de:fe},U=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},me=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return te(r,n,a),re(function(){return ne(r,n,a)}),null},he=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=U(t,r,n),k=s||H(a),f=!k("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var R=d[0];p.push(R[0]);for(var E=d.length,C=1;C<E;C++)p.push(d[C],R[C])}var m=J(function(l,h,w){var T=f&&l.as||a,x="",u=[],c=l;if(l.theme==null){c={};for(var v in l)c[v]=l[v];c.theme=F.useContext(Q)}typeof l.className=="string"?x=ee(h.registered,u,l.className):l.className!=null&&(x=l.className+" ");var y=G(p.concat(u),h.registered,c);x+=h.key+"-"+y.name,i!==void 0&&(x+=" "+i);var M=f&&s===void 0?H(T):k,P={};for(var S in l)f&&S==="as"||M(S)&&(P[S]=l[S]);return P.className=x,w&&(P.ref=w),F.createElement(F.Fragment,null,F.createElement(me,{cache:h,serialized:y,isStringTag:typeof T=="string"}),F.createElement(T,P))});return m.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=p,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(l,h){var w=e(l,se({},r,h,{shouldForwardProp:U(m,h,!0)}));return w.apply(void 0,p)},m}},pe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],I=he.bind(null);pe.forEach(function(e){I[e]=I(e)});/**
|
|
2
|
-
* @mui/styled-engine v6.4.11
|
|
3
|
-
*
|
|
4
|
-
* @license MIT
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/function ye(e,t){return I(e,t)}function ge(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const q=[];function j(e){return q[0]=e,G(q)}const $=e=>e,ve=()=>{let e=$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$}}},Se=ve();function W(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=W(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ve(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=W(e))&&(n&&(n+=" "),n+=t);return n}const be={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ke(e,t,r="Mui"){const n=be[t];return n?`${r}-${n}`:`${Se.generate(e)}-${t}`}function De(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=ke(e,a,r)}),n}function X(e){const{variants:t,...r}=e,n={variants:t,style:j(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=j(a.style))}),n}const we=ae();function N(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xe(e){return e?(t,r)=>r[e]:null}function Pe(e,t,r){e.theme=Te(e.theme)?r:e.theme[t]||e.theme}function z(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>z(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:a,...o}=r;n=o}return Y(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Y(e,t,r=[]){var a;let n;e:for(let o=0;o<t.length;o+=1){const i=t[o];if(typeof i.props=="function"){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(n))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&((a=e.ownerState)==null?void 0:a[s])!==i.props[s])continue e;typeof i.style=="function"?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i.style(n))):r.push(i.style)}return r}function _e(e={}){const{themeId:t,defaultTheme:r=we,rootShouldForwardProp:n=N,slotShouldForwardProp:a=N}=e;function o(s){Pe(s,t,r)}return(s,k={})=>{ge(s,u=>u.filter(c=>c!==D));const{name:f,slot:d,skipVariantsResolver:p,skipSx:R,overridesResolver:E=xe(Oe(d)),...C}=k,m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,l=R||!1;let h=N;d==="Root"||d==="root"?h=n:d?h=a:Ae(s)&&(h=void 0);const w=ye(s,{shouldForwardProp:h,label:Ce(),...C}),T=u=>{if(u.__emotion_real===u)return u;if(typeof u=="function")return function(v){return z(v,u)};if(oe(u)){const c=X(u);return c.variants?function(y){return z(y,c)}:c.style}return u},x=(...u)=>{const c=[],v=u.map(T),y=[];if(c.push(o),f&&E&&y.push(function(b){var O,L;const g=(L=(O=b.theme.components)==null?void 0:O[f])==null?void 0:L.styleOverrides;if(!g)return null;const A={};for(const V in g)A[V]=z(b,g[V]);return E(b,A)}),f&&!m&&y.push(function(b){var A,O;const _=b.theme,g=(O=(A=_==null?void 0:_.components)==null?void 0:A[f])==null?void 0:O.variants;return g?Y(b,g):null}),l||y.push(D),Array.isArray(v[0])){const S=v.shift(),b=new Array(c.length).fill(""),_=new Array(y.length).fill("");let g;g=[...b,...S,..._],g.raw=[...b,...S.raw,..._],c.unshift(g)}const M=[...c,...v,...y],P=w(...M);return s.muiName&&(P.muiName=s.muiName),P};return w.withConfig&&(x.withConfig=w.withConfig),x}}function Ce(e,t){return void 0}function Te(e){for(const t in e)return!1;return!0}function Ae(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Oe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function He(e,t,r=void 0){const n={};for(const a in e){const o=e[a];let i="",s=!0;for(let k=0;k<o.length;k+=1){const f=o[k];f&&(i+=(s===!0?"":" ")+t(f),s=!1,r&&r[f]&&(i+=" "+r[f]))}n[a]=i}return n}const B={theme:void 0};function Fe(e){let t,r;return function(a){let o=t;return(o===void 0||a.theme!==r)&&(B.theme=a.theme,o=X(e(B)),t=o,r=a.theme),o}}function Re(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ee=e=>Re(e)&&e!=="classes",Ue=_e({themeId:ie,defaultTheme:K,rootShouldForwardProp:Ee}),qe=Fe;function je(e){return le(e)}export{Se as C,De as a,He as b,Ve as c,ye as d,_e as e,Re as f,ke as g,qe as m,Ee as r,Ue as s,je as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as f}from"./ConfigCustomJavascriptSet__loadShare__react__loadShare__-CzzIM-HW.js";import{j as m}from"./jsx-runtime-o-xyxrOj.js";function u(){return u=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)({}).hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},u.apply(null,arguments)}function i(n,e){const o={...e};for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)){const t=r;if(t==="components"||t==="slots")o[t]={...n[t],...o[t]};else if(t==="componentsProps"||t==="slotProps"){const s=n[t],a=e[t];if(!a)o[t]=s||{};else if(!s)o[t]=a;else{o[t]={...a};for(const p in s)if(Object.prototype.hasOwnProperty.call(s,p)){const c=p;o[t][c]=i(s[c],a[c])}}}else o[t]===void 0&&(o[t]=n[t])}return o}const l=f.createContext(void 0);function d({value:n,children:e}){return m.jsx(l.Provider,{value:n,children:e})}function P(n){const{theme:e,name:o,props:r}=n;if(!e||!e.components||!e.components[o])return r;const t=e.components[o];return t.defaultProps?i(t.defaultProps,r):!t.styleOverrides&&!t.variants?i(t,r):r}function g({props:n,name:e}){const o=f.useContext(l);return P({props:n,name:e,theme:{components:o}})}export{d as D,u as _,i as r,g as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as d}from"./ConfigCustomJavascriptSet__loadShare__react__loadShare__-CzzIM-HW.js";import{a as xe,g as Se,u as Ce,s as G,c as fe,b as Re,m as D,r as je}from"./DefaultPropsProvider-9qubdy-V.js";import{j as h}from"./jsx-runtime-o-xyxrOj.js";import{d as Ne}from"./defaultTheme-avbtL0lf.js";import{Z as Ue,_ as Ge,T as De,c as j,n as Ve,g as qe}from"./createTheme-BwMO3rTt.js";import{u as Xe}from"./useTheme-MELayQMj.js";import{G as Ke,u as N}from"./useEnhancedEffect-CdLBzwyA.js";function Ze({styles:e,themeId:t,defaultTheme:n={}}){const o=Xe(n),i=typeof e=="function"?e(t&&o[t]||o):e;return h.jsx(Ke,{styles:i})}const Je=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Ge;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Qe(e){const{sx:t,...n}=e,{systemProps:o,otherProps:i}=Je(n);let r;return Array.isArray(t)?r=[o,...t]:typeof t=="function"?r=(...a)=>{const u=t(...a);return Ue(u)?{...o,...u}:o}:r={...o,...t},{...i,sx:r}}function Ye(e,t=166){let n;function o(...i){const r=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(r,t)}return o.clear=()=>{clearTimeout(n)},o}function et(e){return e&&e.ownerDocument||document}function me(e){return et(e).defaultView||window}function tt(e){const t=d.useRef(e);return N(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function we(...e){const t=d.useRef(void 0),n=d.useCallback(o=>{const i=e.map(r=>{if(r==null)return null;if(typeof r=="function"){const a=r,u=a(o);return typeof u=="function"?u:()=>{a(null)}}return r.current=o,()=>{r.current=null}});return()=>{i.forEach(r=>r==null?void 0:r())}},e);return d.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function nt(e){return h.jsx(Ze,{...e,defaultTheme:Ne,themeId:De})}function ot(e){return function(n){return h.jsx(nt,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function Tt(){return Qe}function rt(e){return typeof e.main=="string"}function it(e,t=[]){if(!rt(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function at(e=[]){return([,t])=>t&&it(t,e)}function _(e){return parseInt(e,10)||0}const st={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lt(e){for(const t in e)return!1;return!0}function be(e){return lt(e)||e.outerHeightStyle===0&&!e.overflowing}const dt=d.forwardRef(function(t,n){const{onChange:o,maxRows:i,minRows:r=1,style:a,value:u,...T}=t,{current:g}=d.useRef(u!=null),f=d.useRef(null),R=we(n,f),b=d.useRef(null),S=d.useRef(null),y=d.useCallback(()=>{const s=f.current,l=S.current;if(!s||!l)return;const m=me(s).getComputedStyle(s);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};l.style.width=m.width,l.value=s.value||t.placeholder||"x",l.value.slice(-1)===`
|
|
2
|
-
`&&(l.value+=" ");const V=m.boxSizing,W=_(m.paddingBottom)+_(m.paddingTop),q=_(m.borderBottomWidth)+_(m.borderTopWidth),F=l.scrollHeight;l.value="x";const A=l.scrollHeight;let v=F;r&&(v=Math.max(Number(r)*A,v)),i&&(v=Math.min(Number(i)*A,v)),v=Math.max(v,A);const H=v+(V==="border-box"?W+q:0),X=Math.abs(v-F)<=1;return{outerHeightStyle:H,overflowing:X}},[i,r,t.placeholder]),k=tt(()=>{const s=f.current,l=y();if(!s||!l||be(l))return!1;const C=l.outerHeightStyle;return b.current!=null&&b.current!==C}),w=d.useCallback(()=>{const s=f.current,l=y();if(!s||!l||be(l))return;const C=l.outerHeightStyle;b.current!==C&&(b.current=C,s.style.height=`${C}px`),s.style.overflow=l.overflowing?"hidden":""},[y]),B=d.useRef(-1);N(()=>{const s=Ye(w),l=f==null?void 0:f.current;if(!l)return;const C=me(l);C.addEventListener("resize",s);let m;return typeof ResizeObserver<"u"&&(m=new ResizeObserver(()=>{k()&&(m.unobserve(l),cancelAnimationFrame(B.current),w(),B.current=requestAnimationFrame(()=>{m.observe(l)}))}),m.observe(l)),()=>{s.clear(),cancelAnimationFrame(B.current),C.removeEventListener("resize",s),m&&m.disconnect()}},[y,w,k]),N(()=>{w()});const E=s=>{g||w(),o&&o(s)};return h.jsxs(d.Fragment,{children:[h.jsx("textarea",{value:u,onChange:E,ref:R,rows:r,style:a,...T}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...st.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ge(e){return typeof e=="string"}function ut({props:e,states:t,muiFormControl:n}){return t.reduce((o,i)=>(o[i]=e[i],n&&typeof e[i]>"u"&&(o[i]=n[i]),o),{})}const Ie=d.createContext(void 0);function ct(){return d.useContext(Ie)}function he(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pt(e,t=!1){return e&&(he(e.value)&&e.value!==""||t&&he(e.defaultValue)&&e.defaultValue!=="")}function zt(e){return e.startAdornment}function ft(e){return Se("MuiInputBase",e)}const U=xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ye;const ke=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${j(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Be=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},mt=e=>{const{classes:t,color:n,disabled:o,error:i,endAdornment:r,focused:a,formControl:u,fullWidth:T,hiddenLabel:g,multiline:f,readOnly:R,size:b,startAdornment:S,type:y}=e,k={root:["root",`color${j(n)}`,o&&"disabled",i&&"error",T&&"fullWidth",a&&"focused",u&&"formControl",b&&b!=="medium"&&`size${j(b)}`,f&&"multiline",S&&"adornedStart",r&&"adornedEnd",g&&"hiddenLabel",R&&"readOnly"],input:["input",o&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",b==="small"&&"inputSizeSmall",g&&"inputHiddenLabel",S&&"inputAdornedStart",r&&"inputAdornedEnd",R&&"readOnly"]};return Re(k,ft,t)},Fe=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ke})(D(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${U.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Te=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Be})(D(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${U.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${U.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ve=ot({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bt=d.forwardRef(function(t,n){const o=Ce({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:r,autoFocus:a,className:u,color:T,components:g={},componentsProps:f={},defaultValue:R,disabled:b,disableInjectingGlobalStyles:S,endAdornment:y,error:k,fullWidth:w=!1,id:B,inputComponent:E="input",inputProps:s={},inputRef:l,margin:C,maxRows:m,minRows:V,multiline:W=!1,name:q,onBlur:F,onChange:A,onClick:v,onFocus:H,onKeyDown:X,onKeyUp:ze,placeholder:Ae,readOnly:K,renderSuffix:re,rows:$,size:St,slotProps:ie={},slots:ae={},startAdornment:L,type:se="text",value:Pe,...Ee}=o,O=s.value!=null?s.value:Pe,{current:Z}=d.useRef(O!=null),P=d.useRef(),Le=d.useCallback(c=>{},[]),Me=we(P,l,s.ref,Le),[J,Q]=d.useState(!1),p=ct(),x=ut({props:o,muiFormControl:p,states:["color","disabled","error","hiddenLabel","size","required","filled"]});x.focused=p?p.focused:J,d.useEffect(()=>{!p&&b&&J&&(Q(!1),F&&F())},[p,b,J,F]);const Y=p&&p.onFilled,ee=p&&p.onEmpty,M=d.useCallback(c=>{pt(c)?Y&&Y():ee&&ee()},[Y,ee]);N(()=>{Z&&M({value:O})},[O,M,Z]);const We=c=>{H&&H(c),s.onFocus&&s.onFocus(c),p&&p.onFocus?p.onFocus(c):Q(!0)},He=c=>{F&&F(c),s.onBlur&&s.onBlur(c),p&&p.onBlur?p.onBlur(c):Q(!1)},$e=(c,...ce)=>{if(!Z){const pe=c.target||P.current;if(pe==null)throw new Error(Ve(1));M({value:pe.value})}s.onChange&&s.onChange(c,...ce),A&&A(c,...ce)};d.useEffect(()=>{M(P.current)},[]);const Oe=c=>{P.current&&c.currentTarget===c.target&&P.current.focus(),v&&v(c)};let te=E,I=s;W&&te==="input"&&($?I={type:void 0,minRows:$,maxRows:$,...I}:I={type:void 0,maxRows:m,minRows:V,...I},te=dt);const _e=c=>{M(c.animationName==="mui-auto-fill-cancel"?P.current:{value:"x"})};d.useEffect(()=>{p&&p.setAdornedStart(!!L)},[p,L]);const ne={...o,color:x.color||"primary",disabled:x.disabled,endAdornment:y,error:x.error,focused:x.focused,formControl:p,fullWidth:w,hiddenLabel:x.hiddenLabel,multiline:W,size:x.size,startAdornment:L,type:se},le=mt(ne),de=ae.root||g.Root||Fe,oe=ie.root||f.root||{},ue=ae.input||g.Input||Te;return I={...I,...ie.input??f.input},h.jsxs(d.Fragment,{children:[!S&&typeof ve=="function"&&(ye||(ye=h.jsx(ve,{}))),h.jsxs(de,{...oe,ref:n,onClick:Oe,...Ee,...!ge(de)&&{ownerState:{...ne,...oe.ownerState}},className:fe(le.root,oe.className,u,K&&"MuiInputBase-readOnly"),children:[L,h.jsx(Ie.Provider,{value:null,children:h.jsx(ue,{"aria-invalid":x.error,"aria-describedby":i,autoComplete:r,autoFocus:a,defaultValue:R,disabled:x.disabled,id:B,onAnimationStart:_e,name:q,placeholder:Ae,readOnly:K,required:x.required,rows:$,value:O,onKeyDown:X,onKeyUp:ze,type:se,...I,...!ge(ue)&&{as:te,ownerState:{...ne,...I.ownerState}},ref:Me,className:fe(le.input,I.className,K&&"MuiInputBase-readOnly"),onBlur:He,onChange:$e,onFocus:We})}),y,re?re({...x,startAdornment:L}):null]})]})});function gt(e){return Se("MuiFilledInput",e)}const z={...U,...xe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ht=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:i,size:r,hiddenLabel:a,multiline:u}=e,T={root:["root",!n&&"underline",o&&"adornedStart",i&&"adornedEnd",r==="small"&&`size${j(r)}`,a&&"hiddenLabel",u&&"multiline"],input:["input"]},g=Re(T,gt,t);return{...t,...g}},yt=G(Fe,{shouldForwardProp:e=>je(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ke(e,t),!n.disableUnderline&&t.underline]}})(D(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${z.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${z.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${z.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${z.disabled}, .${z.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${z.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(at()).map(([a])=>{var u;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[a])==null?void 0:u.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:u})=>a.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),vt=G(Te,{name:"MuiFilledInput",slot:"Input",overridesResolver:Be})(D(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),xt=d.forwardRef(function(t,n){const o=Ce({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:r={},componentsProps:a,fullWidth:u=!1,hiddenLabel:T,inputComponent:g="input",multiline:f=!1,slotProps:R,slots:b={},type:S="text",...y}=o,k={...o,disableUnderline:i,fullWidth:u,inputComponent:g,multiline:f,type:S},w=ht(o),B={root:{ownerState:k},input:{ownerState:k}},E=R??a?qe(B,R??a):B,s=b.root??r.Root??yt,l=b.input??r.Input??vt;return h.jsx(bt,{slots:{root:s,input:l},slotProps:E,fullWidth:u,inputComponent:g,multiline:f,ref:n,type:S,...y,classes:w})});xt.muiName="Input";export{xt as F,nt as G,bt as I,dt as T,we as a,ct as b,at as c,Ye as d,Qe as e,z as f,ot as g,me as h,U as i,ut as j,ge as k,gt as l,ft as m,Tt as n,et as o,Fe as p,Te as q,ke as r,Be as s,zt as t,tt as u,pt as v,Ie as w};
|