@perses-dev/histogram-chart-plugin 0.12.0-beta.1 → 0.12.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/__mf/js/{HistogramChart.03253429.js → HistogramChart.7392c881.js} +3 -3
  2. package/__mf/js/async/121.4fbaef7c.js +2 -0
  3. package/__mf/js/async/17.9ef3526a.js +144 -0
  4. package/__mf/js/async/392.76c75fd4.js +2 -0
  5. package/__mf/js/async/470.46eda164.js +2 -0
  6. package/__mf/js/async/535.3e045ff2.js +1 -0
  7. package/__mf/js/async/888.0f662c7e.js +1 -0
  8. package/__mf/js/async/941.4dc35097.js +2 -0
  9. package/__mf/js/async/{953.17304f5a.js → 953.5b6a6f54.js} +2 -2
  10. package/__mf/js/async/963.85edfb9c.js +1 -0
  11. package/__mf/js/async/__federation_expose_HistogramChart.b3613fda.js +1 -0
  12. package/__mf/js/main.246e6111.js +7 -0
  13. package/mf-manifest.json +13 -13
  14. package/mf-stats.json +13 -13
  15. package/package.json +3 -3
  16. package/__mf/js/async/121.80bade4a.js +0 -2
  17. package/__mf/js/async/17.c58aeb97.js +0 -144
  18. package/__mf/js/async/392.61cbfb70.js +0 -2
  19. package/__mf/js/async/470.0d31a960.js +0 -2
  20. package/__mf/js/async/535.9e33e59d.js +0 -1
  21. package/__mf/js/async/888.a6ffb759.js +0 -1
  22. package/__mf/js/async/941.4f06d1da.js +0 -2
  23. package/__mf/js/async/963.d584ed77.js +0 -1
  24. package/__mf/js/async/__federation_expose_HistogramChart.40fa7490.js +0 -1
  25. package/__mf/js/main.3181e7fe.js +0 -7
  26. /package/__mf/js/async/{121.80bade4a.js.LICENSE.txt → 121.4fbaef7c.js.LICENSE.txt} +0 -0
  27. /package/__mf/js/async/{17.c58aeb97.js.LICENSE.txt → 17.9ef3526a.js.LICENSE.txt} +0 -0
  28. /package/__mf/js/async/{392.61cbfb70.js.LICENSE.txt → 392.76c75fd4.js.LICENSE.txt} +0 -0
  29. /package/__mf/js/async/{470.0d31a960.js.LICENSE.txt → 470.46eda164.js.LICENSE.txt} +0 -0
  30. /package/__mf/js/async/{941.4f06d1da.js.LICENSE.txt → 941.4dc35097.js.LICENSE.txt} +0 -0
  31. /package/__mf/js/async/{953.17304f5a.js.LICENSE.txt → 953.5b6a6f54.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[]).push([["535"],{25706(e,t,a){let r;a.r(t),a.d(t,{ONE_WEEK_IN_MS:()=>v,querySpecSchema:()=>tf,annotationDisplaySchema:()=>td,buildPanelSpecSchema:()=>tg,resolvePanelRef:()=>I,variableDefinitionSchema:()=>tE,variableTextSchema:()=>tA,isTimeSeriesValueTuple:()=>P,otlpresourcev1:()=>p,parseDurationString:()=>x,isValidQueryPluginType:()=>$,ONE_YEAR_IN_MS:()=>k,DURATION_REGEX:()=>b,createPanelRef:()=>R,getSuggestedStepMs:()=>E,otlpcommonv1:()=>c,variableListSpecSchema:()=>tS,variableDisplaySchema:()=>tw,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>y,getPanelKeyFromRef:()=>j,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>T,convertTimeToDuration:()=>O,isDurationString:()=>w,panelSpecSchema:()=>ty,buildVariableDefinitionSchema:()=>tI,otlptracev1:()=>h,annotationSpecSchema:()=>tl,buildDatasourceSpecSchema:()=>tp,panelDisplaySpec:()=>tm,panelDefinitionSchema:()=>tv,buildVariableListSchema:()=>tZ,datasourceSpecSchema:()=>tc,buildVariableSpecSchema:()=>tN,isAbsoluteTimeRange:()=>C,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>to,panelEditorSchema:()=>tb,variableListSchema:()=>tO,isValidTraceId:()=>D,roundStepInterval:()=>N,variableTextSpecSchema:()=>tC,durationValidationSchema:()=>th,toAbsoluteTimeRange:()=>A,buildVariableListSpecSchema:()=>tT,buildAnnotationSpecSchema:()=>tu,buildPanelDefinitionSchema:()=>tk,isRelativeTimeRange:()=>Z,linkSchema:()=>t_,variableSpecSchema:()=>tM,formatDuration:()=>S,buildPanelEditorSchema:()=>tx,ONE_DAY_IN_MS:()=>g,pluginSchema:()=>tn});var s,i,n,d,u,l,o,c={};a.r(c);var p={};a.r(p);var h={};a.r(h),a.d(h,{StatusCodeError:()=>V,StatusCodeOk:()=>F,StatusCodeUnset:()=>L});var m=a(12015),f=a(65130),_=a(38086);let y=36e5,g=864e5,v=6048e5,k=31536e6,b=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function x(e){let t=b.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function w(e){return""!==e&&b.test(e)}function S(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let a=Math.trunc(e.seconds);a&&t.push(`${a}s`);let r=Math.round((e.seconds-a)*1e3);r&&t.push(`${r}ms`)}return t.join("")}function T(e){return O(e.end.valueOf()-e.start.valueOf())}function O(e){let t=Math.trunc(e/k);t>0&&(e-=t*k);let a=Math.trunc(e/v);a>0&&(e-=a*v);let r=Math.trunc(e/g);r>0&&(e-=r*g);let s=Math.trunc(e/y);s>0&&(e-=s*y);let i=Math.trunc(e/6e4);return i>0&&(e-=6e4*i),{years:t,months:0,weeks:a,days:r,hours:s,minutes:i,seconds:e/1e3}}function Z(e){return void 0!==e.pastDuration}function C(e){return void 0!==e.start&&void 0!==e.end}function A(e){let t=e.end??new Date;return{start:function(e,t){var a,r,s,i,n;let{years:d=0,months:u=0,weeks:l=0,days:o=0,hours:c=0,minutes:p=0,seconds:h=0}=t,y=(a=u+12*d,r=void 0,s=(0,_.P)(e,-a,r),i=o+7*l,n=void 0,(0,f.f)(s,-i,n));return(0,m.w)(e,y-1e3*(h+60*(p+60*c)))}(t,x(e.pastDuration)),end:t}}let M=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function N(e){for(let{maxMs:t,roundedStepMs:a}of M)if(e<t)return a;return 15e3}function E(e,t){return N(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function I(e,t){let a=j(t),r=e.panels[a];if(void 0===r)throw Error(`Could not resolve panels reference ${t.$ref}`);return r}function j(e){return e.$ref.substring(14)}function R(e){return{$ref:`#/spec/panels/${e}`}}function $(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery"].includes(e)}function P(e){return 2===e.length}function D(e){return/^[0-9a-fA-F]+$/.test(e)}let L="STATUS_CODE_UNSET",F="STATUS_CODE_OK",V="STATUS_CODE_ERROR";(s=d||(d={})).assertEqual=e=>{},s.assertIs=function(e){},s.assertNever=function(e){throw Error()},s.arrayToEnum=e=>{let t={};for(let a of e)t[a]=a;return t},s.getValidEnumValues=e=>{let t=s.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),a={};for(let r of t)a[r]=e[r];return s.objectValues(a)},s.objectValues=e=>s.objectKeys(e).map(function(t){return e[t]}),s.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},s.find=(e,t)=>{for(let a of e)if(t(a))return a},s.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,s.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},s.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(u||(u={})).mergeShapes=(e,t)=>({...e,...t});let z=d.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),U=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":if(Array.isArray(e))return z.array;if(null===e)return z.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return z.promise;if("u">typeof Map&&e instanceof Map)return z.map;if("u">typeof Set&&e instanceof Set)return z.set;if("u">typeof Date&&e instanceof Date)return z.date;return z.object;default:return z.unknown}},K=d.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class W extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},a={_errors:[]},r=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(r);else if("invalid_return_type"===s.code)r(s.returnTypeError);else if("invalid_arguments"===s.code)r(s.argumentsError);else if(0===s.path.length)a._errors.push(t(s));else{let e=a,r=0;for(;r<s.path.length;){let a=s.path[r];r===s.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(s))):e[a]=e[a]||{_errors:[]},e=e[a],r++}}};return r(this),a}static assert(e){if(!(e instanceof W))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,d.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},a=[];for(let r of this.issues)if(r.path.length>0){let a=r.path[0];t[a]=t[a]||[],t[a].push(e(r))}else a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}W.create=e=>new W(e);let B=(e,t)=>{let a;switch(e.code){case K.invalid_type:a=e.received===z.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,d.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:a=`Unrecognized key(s) in object: ${d.joinValues(e.keys,", ")}`;break;case K.invalid_union:a="Invalid input";break;case K.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${d.joinValues(e.options)}`;break;case K.invalid_enum_value:a=`Invalid enum value. Expected ${d.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:a="Invalid function arguments";break;case K.invalid_return_type:a="Invalid function return type";break;case K.invalid_date:a="Invalid date";break;case K.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:d.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case K.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case K.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case K.custom:a="Invalid input";break;case K.invalid_intersection_types:a="Intersection results could not be merged";break;case K.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:a="Number must be finite";break;default:a=t.defaultError,d.assertNever(e)}return{message:a}};(i=l||(l={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let q=e=>{let{data:t,path:a,errorMaps:r,issueData:s}=e,i=[...a,...s.path||[]],n={...s,path:i};if(void 0!==s.message)return{...s,path:i,message:s.message};let d="";for(let e of r.filter(e=>!!e).slice().reverse())d=e(n,{data:t,defaultError:d}).message;return{...s,path:i,message:d}};function Q(e,t){let a=q({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,B,void 0].filter(e=>!!e)});e.common.issues.push(a)}class H{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let a=[];for(let r of t){if("aborted"===r.status)return J;"dirty"===r.status&&e.dirty(),a.push(r.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){let a=[];for(let e of t){let t=await e.key,r=await e.value;a.push({key:t,value:r})}return H.mergeObjectSync(e,a)}static mergeObjectSync(e,t){let a={};for(let r of t){let{key:t,value:s}=r;if("aborted"===t.status||"aborted"===s.status)return J;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==s.value||r.alwaysSet)&&(a[t.value]=s.value)}return{status:e.value,value:a}}}let J=Object.freeze({status:"aborted"}),Y=e=>({status:"dirty",value:e}),G=e=>({status:"valid",value:e}),X=e=>"u">typeof Promise&&e instanceof Promise;class ee{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let et=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new W(e.common.issues);return this._error=t,this._error}}};function ea(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:s}=e;if(t&&(a||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(t,s)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??s.defaultError}:void 0===s.data?{message:i??r??s.defaultError}:"invalid_type"!==t.code?{message:s.defaultError}:{message:i??a??s.defaultError}},description:s}}class er{get description(){return this._def.description}_getType(e){return U(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:U(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new H,ctx:{common:e.parent.common,data:e.data,parsedType:U(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(X(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){let a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:U(e)},r=this._parseSync({data:e,path:a.path,parent:a});return et(a,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:U(e)};if(!this["~standard"].async)try{let a=this._parseSync({data:e,path:[],parent:t});return"valid"===a.status?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){let a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:U(e)},r=this._parse({data:e,path:a.path,parent:a});return et(a,await (X(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((a,r)=>{let s=e(a),i=()=>r.addIssue({code:K.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(a):t});return"u">typeof Promise&&s instanceof Promise?s.then(e=>!!e||(i(),!1)):!!s||(i(),!1)})}refinement(e,t){return this._refinement((a,r)=>!!e(a)||(r.addIssue("function"==typeof t?t(a,r):t),!1))}_refinement(e){return new eJ({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eY.create(this,this._def)}nullable(){return eG.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eI.create(this)}promise(){return eH.create(this,this._def)}or(e){return eR.create([this,e],this._def)}and(e){return eD.create(this,e,this._def)}transform(e){return new eJ({...ea(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eX({...ea(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:o.ZodDefault})}brand(){return new e4({typeName:o.ZodBranded,type:this,...ea(this._def)})}catch(e){return new e0({...ea(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return e9.create(this,e)}readonly(){return e5.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let es=/^c[^\s-]{8,}$/i,ei=/^[0-9a-z]+$/,en=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ed=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eu=/^[a-z0-9_-]{21}$/i,el=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eo=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ec=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ep=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,em=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ef=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ey=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,eg="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ev=RegExp(`^${eg}$`);function ek(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}class eb extends er{_parse(e){var t,a,s,i;let n;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.string,received:t.parsedType}),J}let u=new H;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(Q(n=this._getOrReturnCtx(e,n),{code:K.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("max"===l.kind)e.data.length>l.value&&(Q(n=this._getOrReturnCtx(e,n),{code:K.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("length"===l.kind){let t=e.data.length>l.value,a=e.data.length<l.value;(t||a)&&(n=this._getOrReturnCtx(e,n),t?Q(n,{code:K.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):a&&Q(n,{code:K.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),u.dirty())}else if("email"===l.kind)ec.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"email",code:K.invalid_string,message:l.message}),u.dirty());else if("emoji"===l.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"emoji",code:K.invalid_string,message:l.message}),u.dirty());else if("uuid"===l.kind)ed.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"uuid",code:K.invalid_string,message:l.message}),u.dirty());else if("nanoid"===l.kind)eu.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"nanoid",code:K.invalid_string,message:l.message}),u.dirty());else if("cuid"===l.kind)es.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"cuid",code:K.invalid_string,message:l.message}),u.dirty());else if("cuid2"===l.kind)ei.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"cuid2",code:K.invalid_string,message:l.message}),u.dirty());else if("ulid"===l.kind)en.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"ulid",code:K.invalid_string,message:l.message}),u.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{Q(n=this._getOrReturnCtx(e,n),{validation:"url",code:K.invalid_string,message:l.message}),u.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"regex",code:K.invalid_string,message:l.message}),u.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),u.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:{startsWith:l.value},message:l.message}),u.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:{endsWith:l.value},message:l.message}),u.dirty()):"datetime"===l.kind?(function(e){let t=`${eg}T${ek(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:"datetime",message:l.message}),u.dirty()):"date"===l.kind?ev.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:"date",message:l.message}),u.dirty()):"time"===l.kind?RegExp(`^${ek(l)}$`).test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{code:K.invalid_string,validation:"time",message:l.message}),u.dirty()):"duration"===l.kind?eo.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"duration",code:K.invalid_string,message:l.message}),u.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(a=l.version)||!a)&&ep.test(t)||("v6"===a||!a)&&em.test(t))&&1&&(Q(n=this._getOrReturnCtx(e,n),{validation:"ip",code:K.invalid_string,message:l.message}),u.dirty())):"jwt"===l.kind?!function(e,t){if(!el.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=JSON.parse(atob(r));if("object"!=typeof s||null===s||"typ"in s&&s?.typ!=="JWT"||!s.alg||t&&s.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(Q(n=this._getOrReturnCtx(e,n),{validation:"jwt",code:K.invalid_string,message:l.message}),u.dirty()):"cidr"===l.kind?(s=e.data,!(("v4"===(i=l.version)||!i)&&eh.test(s)||("v6"===i||!i)&&ef.test(s))&&1&&(Q(n=this._getOrReturnCtx(e,n),{validation:"cidr",code:K.invalid_string,message:l.message}),u.dirty())):"base64"===l.kind?e_.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"base64",code:K.invalid_string,message:l.message}),u.dirty()):"base64url"===l.kind?ey.test(e.data)||(Q(n=this._getOrReturnCtx(e,n),{validation:"base64url",code:K.invalid_string,message:l.message}),u.dirty()):d.assertNever(l);return{status:u.value,value:e.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:K.invalid_string,...l.errToObj(a)})}_addCheck(e){return new eb({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...l.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...l.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...l.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new eb({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new eb({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new eb({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}eb.create=e=>new eb({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...ea(e)});class ex extends er{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.number,received:t.parsedType}),J}let a=new H;for(let r of this._def.checks)"int"===r.kind?d.isInteger(e.data)||(Q(t=this._getOrReturnCtx(e,t),{code:K.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):"multipleOf"===r.kind?0!==function(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=a>r?a:r;return Number.parseInt(e.toFixed(s).replace(".",""))%Number.parseInt(t.toFixed(s).replace(".",""))/10**s}(e.data,r.value)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(Q(t=this._getOrReturnCtx(e,t),{code:K.not_finite,message:r.message}),a.dirty()):d.assertNever(r);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,a,r){return new ex({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:l.toString(r)}]})}_addCheck(e){return new ex({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&d.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let a of this._def.checks)if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;else"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value);return Number.isFinite(t)&&Number.isFinite(e)}}ex.create=e=>new ex({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...ea(e)});class ew extends er{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let a=new H;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(Q(t=this._getOrReturnCtx(e,t),{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):d.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.bigint,received:t.parsedType}),J}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,a,r){return new ew({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:l.toString(r)}]})}_addCheck(e){return new ew({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ew.create=e=>new ew({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...ea(e)});class eS extends er{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.boolean,received:t.parsedType}),J}return G(e.data)}}eS.create=e=>new eS({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...ea(e)});class eT extends er{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.date,received:t.parsedType}),J}if(Number.isNaN(e.data.getTime()))return Q(this._getOrReturnCtx(e),{code:K.invalid_date}),J;let a=new H;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),a.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(Q(t=this._getOrReturnCtx(e,t),{code:K.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),a.dirty()):d.assertNever(r);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new eT({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}eT.create=e=>new eT({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...ea(e)});class eO extends er{_parse(e){if(this._getType(e)!==z.symbol){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.symbol,received:t.parsedType}),J}return G(e.data)}}eO.create=e=>new eO({typeName:o.ZodSymbol,...ea(e)});class eZ extends er{_parse(e){if(this._getType(e)!==z.undefined){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.undefined,received:t.parsedType}),J}return G(e.data)}}eZ.create=e=>new eZ({typeName:o.ZodUndefined,...ea(e)});class eC extends er{_parse(e){if(this._getType(e)!==z.null){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.null,received:t.parsedType}),J}return G(e.data)}}eC.create=e=>new eC({typeName:o.ZodNull,...ea(e)});class eA extends er{constructor(){super(...arguments),this._any=!0}_parse(e){return G(e.data)}}eA.create=e=>new eA({typeName:o.ZodAny,...ea(e)});class eM extends er{constructor(){super(...arguments),this._unknown=!0}_parse(e){return G(e.data)}}eM.create=e=>new eM({typeName:o.ZodUnknown,...ea(e)});class eN extends er{_parse(e){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.never,received:t.parsedType}),J}}eN.create=e=>new eN({typeName:o.ZodNever,...ea(e)});class eE extends er{_parse(e){if(this._getType(e)!==z.undefined){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.void,received:t.parsedType}),J}return G(e.data)}}eE.create=e=>new eE({typeName:o.ZodVoid,...ea(e)});class eI extends er{_parse(e){let{ctx:t,status:a}=this._processInputParams(e),r=this._def;if(t.parsedType!==z.array)return Q(t,{code:K.invalid_type,expected:z.array,received:t.parsedType}),J;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,s=t.data.length<r.exactLength.value;(e||s)&&(Q(t,{code:e?K.too_big:K.too_small,minimum:s?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),a.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(Q(t,{code:K.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),a.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(Q(t,{code:K.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>r.type._parseAsync(new ee(t,e,t.path,a)))).then(e=>H.mergeArray(a,e));let s=[...t.data].map((e,a)=>r.type._parseSync(new ee(t,e,t.path,a)));return H.mergeArray(a,s)}get element(){return this._def.type}min(e,t){return new eI({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new eI({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new eI({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}eI.create=(e,t)=>new eI({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...ea(t)});class ej extends er{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=d.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==z.object){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.object,received:t.parsedType}),J}let{status:t,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof eN&&"strip"===this._def.unknownKeys))for(let e in a.data)s.includes(e)||i.push(e);let n=[];for(let e of s){let t=r[e],s=a.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new ee(a,s,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof eN){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)n.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)i.length>0&&(Q(a,{code:K.unrecognized_keys,keys:i}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=a.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new ee(a,r,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let a=await t.key,r=await t.value;e.push({key:a,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>H.mergeObjectSync(t,e)):H.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new ej({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{let r=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:l.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new ej({...this._def,unknownKeys:"strip"})}passthrough(){return new ej({...this._def,unknownKeys:"passthrough"})}extend(e){return new ej({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ej({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ej({...this._def,catchall:e})}pick(e){let t={};for(let a of d.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new ej({...this._def,shape:()=>t})}omit(e){let t={};for(let a of d.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new ej({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ej){let a={};for(let r in t.shape){let s=t.shape[r];a[r]=eY.create(e(s))}return new ej({...t._def,shape:()=>a})}if(t instanceof eI)return new eI({...t._def,type:e(t.element)});if(t instanceof eY)return eY.create(e(t.unwrap()));if(t instanceof eG)return eG.create(e(t.unwrap()));if(t instanceof eL)return eL.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let a of d.objectKeys(this.shape)){let r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()}return new ej({...this._def,shape:()=>t})}required(e){let t={};for(let a of d.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof eY;)e=e._def.innerType;t[a]=e}return new ej({...this._def,shape:()=>t})}keyof(){return eB(d.objectKeys(this.shape))}}ej.create=(e,t)=>new ej({shape:()=>e,unknownKeys:"strip",catchall:eN.create(),typeName:o.ZodObject,...ea(t)}),ej.strictCreate=(e,t)=>new ej({shape:()=>e,unknownKeys:"strict",catchall:eN.create(),typeName:o.ZodObject,...ea(t)}),ej.lazycreate=(e,t)=>new ej({shape:e,unknownKeys:"strip",catchall:eN.create(),typeName:o.ZodObject,...ea(t)});class eR extends er{_parse(e){let{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{let a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;let a=e.map(e=>new W(e.ctx.common.issues));return Q(t,{code:K.invalid_union,unionErrors:a}),J});{let e,r=[];for(let s of a){let a={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:a});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:a}),a.common.issues.length&&r.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=r.map(e=>new W(e));return Q(t,{code:K.invalid_union,unionErrors:s}),J}}get options(){return this._def.options}}eR.create=(e,t)=>new eR({options:e,typeName:o.ZodUnion,...ea(t)});let e$=e=>{if(e instanceof eK)return e$(e.schema);if(e instanceof eJ)return e$(e.innerType());if(e instanceof eW)return[e.value];if(e instanceof eq)return e.options;if(e instanceof eQ)return d.objectValues(e.enum);else if(e instanceof eX)return e$(e._def.innerType);else if(e instanceof eZ)return[void 0];else if(e instanceof eC)return[null];else if(e instanceof eY)return[void 0,...e$(e.unwrap())];else if(e instanceof eG)return[null,...e$(e.unwrap())];else if(e instanceof e4)return e$(e.unwrap());else if(e instanceof e5)return e$(e.unwrap());else if(e instanceof e0)return e$(e._def.innerType);else return[]};class eP extends er{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==z.object)return Q(t,{code:K.invalid_type,expected:z.object,received:t.parsedType}),J;let a=this.discriminator,r=t.data[a],s=this.optionsMap.get(r);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(Q(t,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){let r=new Map;for(let a of t){let t=e$(a.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of t){if(r.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);r.set(s,a)}}return new eP({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ea(a)})}}class eD extends er{_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=(e,r)=>{if("aborted"===e.status||"aborted"===r.status)return J;let s=function e(t,a){let r=U(t),s=U(a);if(t===a)return{valid:!0,data:t};if(r===z.object&&s===z.object){let r=d.objectKeys(a),s=d.objectKeys(t).filter(e=>-1!==r.indexOf(e)),i={...t,...a};for(let r of s){let s=e(t[r],a[r]);if(!s.valid)return{valid:!1};i[r]=s.data}return{valid:!0,data:i}}if(r===z.array&&s===z.array){if(t.length!==a.length)return{valid:!1};let r=[];for(let s=0;s<t.length;s++){let i=e(t[s],a[s]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===z.date&&s===z.date&&+t==+a)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return s.valid?(("dirty"===e.status||"dirty"===r.status)&&t.dirty(),{status:t.value,value:s.data}):(Q(a,{code:K.invalid_intersection_types}),J)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}eD.create=(e,t,a)=>new eD({left:e,right:t,typeName:o.ZodIntersection,...ea(a)});class eL extends er{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==z.array)return Q(a,{code:K.invalid_type,expected:z.array,received:a.parsedType}),J;if(a.data.length<this._def.items.length)return Q(a,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&a.data.length>this._def.items.length&&(Q(a,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...a.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new ee(a,e,a.path,t)):null}).filter(e=>!!e);return a.common.async?Promise.all(r).then(e=>H.mergeArray(t,e)):H.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eL({...this._def,rest:e})}}eL.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eL({items:e,typeName:o.ZodTuple,rest:null,...ea(t)})};class eF extends er{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==z.object)return Q(a,{code:K.invalid_type,expected:z.object,received:a.parsedType}),J;let r=[],s=this._def.keyType,i=this._def.valueType;for(let e in a.data)r.push({key:s._parse(new ee(a,e,a.path,e)),value:i._parse(new ee(a,a.data[e],a.path,e)),alwaysSet:e in a.data});return a.common.async?H.mergeObjectAsync(t,r):H.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,a){return new eF(t instanceof er?{keyType:e,valueType:t,typeName:o.ZodRecord,...ea(a)}:{keyType:eb.create(),valueType:e,typeName:o.ZodRecord,...ea(t)})}}class eV extends er{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==z.map)return Q(a,{code:K.invalid_type,expected:z.map,received:a.parsedType}),J;let r=this._def.keyType,s=this._def.valueType,i=[...a.data.entries()].map(([e,t],i)=>({key:r._parse(new ee(a,e,a.path,[i,"key"])),value:s._parse(new ee(a,t,a.path,[i,"value"]))}));if(a.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let a of i){let r=await a.key,s=await a.value;if("aborted"===r.status||"aborted"===s.status)return J;("dirty"===r.status||"dirty"===s.status)&&t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let a of i){let r=a.key,s=a.value;if("aborted"===r.status||"aborted"===s.status)return J;("dirty"===r.status||"dirty"===s.status)&&t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}}}}eV.create=(e,t,a)=>new eV({valueType:t,keyType:e,typeName:o.ZodMap,...ea(a)});class ez extends er{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==z.set)return Q(a,{code:K.invalid_type,expected:z.set,received:a.parsedType}),J;let r=this._def;null!==r.minSize&&a.data.size<r.minSize.value&&(Q(a,{code:K.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&a.data.size>r.maxSize.value&&(Q(a,{code:K.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let s=this._def.valueType;function i(e){let a=new Set;for(let r of e){if("aborted"===r.status)return J;"dirty"===r.status&&t.dirty(),a.add(r.value)}return{status:t.value,value:a}}let n=[...a.data.values()].map((e,t)=>s._parse(new ee(a,e,a.path,t)));return a.common.async?Promise.all(n).then(e=>i(e)):i(n)}min(e,t){return new ez({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new ez({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ez.create=(e,t)=>new ez({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...ea(t)});class eU extends er{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==z.function)return Q(t,{code:K.invalid_type,expected:z.function,received:t.parsedType}),J;function a(e,a){return q({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,B,B].filter(e=>!!e),issueData:{code:K.invalid_arguments,argumentsError:a}})}function r(e,a){return q({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,B,B].filter(e=>!!e),issueData:{code:K.invalid_return_type,returnTypeError:a}})}let s={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof eH){let e=this;return G(async function(...t){let n=new W([]),d=await e._def.args.parseAsync(t,s).catch(e=>{throw n.addIssue(a(t,e)),n}),u=await Reflect.apply(i,this,d);return await e._def.returns._def.type.parseAsync(u,s).catch(e=>{throw n.addIssue(r(u,e)),n})})}{let e=this;return G(function(...t){let n=e._def.args.safeParse(t,s);if(!n.success)throw new W([a(t,n.error)]);let d=Reflect.apply(i,this,n.data),u=e._def.returns.safeParse(d,s);if(!u.success)throw new W([r(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eU({...this._def,args:eL.create(e).rest(eM.create())})}returns(e){return new eU({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new eU({args:e||eL.create([]).rest(eM.create()),returns:t||eM.create(),typeName:o.ZodFunction,...ea(a)})}}class eK extends er{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eK.create=(e,t)=>new eK({getter:e,typeName:o.ZodLazy,...ea(t)});class eW extends er{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return Q(t,{received:t.data,code:K.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eB(e,t){return new eq({values:e,typeName:o.ZodEnum,...ea(t)})}eW.create=(e,t)=>new eW({value:e,typeName:o.ZodLiteral,...ea(t)});class eq extends er{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),a=this._def.values;return Q(t,{expected:d.joinValues(a),received:t.parsedType,code:K.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),a=this._def.values;return Q(t,{received:t.data,code:K.invalid_enum_value,options:a}),J}return G(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eq.create(e,{...this._def,...t})}exclude(e,t=this._def){return eq.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eq.create=eB;class eQ extends er{_parse(e){let t=d.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==z.string&&a.parsedType!==z.number){let e=d.objectValues(t);return Q(a,{expected:d.joinValues(e),received:a.parsedType,code:K.invalid_type}),J}if(this._cache||(this._cache=new Set(d.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=d.objectValues(t);return Q(a,{received:a.data,code:K.invalid_enum_value,options:e}),J}return G(e.data)}get enum(){return this._def.values}}eQ.create=(e,t)=>new eQ({values:e,typeName:o.ZodNativeEnum,...ea(t)});class eH extends er{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==z.promise&&!1===t.common.async?(Q(t,{code:K.invalid_type,expected:z.promise,received:t.parsedType}),J):G((t.parsedType===z.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eH.create=(e,t)=>new eH({type:e,typeName:o.ZodPromise,...ea(t)});class eJ extends er{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:a}=this._processInputParams(e),r=this._def.effect||null,s={addIssue:e=>{Q(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===r.type){let e=r.transform(a.data,s);if(a.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return J;let r=await this._def.schema._parseAsync({data:e,path:a.path,parent:a});return"aborted"===r.status?J:"dirty"===r.status||"dirty"===t.value?Y(r.value):r});{if("aborted"===t.value)return J;let r=this._def.schema._parseSync({data:e,path:a.path,parent:a});return"aborted"===r.status?J:"dirty"===r.status||"dirty"===t.value?Y(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,s);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(a=>"aborted"===a.status?J:("dirty"===a.status&&t.dirty(),e(a.value).then(()=>({status:t.value,value:a.value}))));{let r=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===r.status?J:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==a.common.async)return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(e=>"valid"!==e.status?J:Promise.resolve(r.transform(e.value,s)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if("valid"!==e.status)return J;let i=r.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}d.assertNever(r)}}eJ.create=(e,t,a)=>new eJ({schema:e,typeName:o.ZodEffects,effect:t,...ea(a)}),eJ.createWithPreprocess=(e,t,a)=>new eJ({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...ea(a)});class eY extends er{_parse(e){return this._getType(e)===z.undefined?G(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eY.create=(e,t)=>new eY({innerType:e,typeName:o.ZodOptional,...ea(t)});class eG extends er{_parse(e){return this._getType(e)===z.null?G(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eG.create=(e,t)=>new eG({innerType:e,typeName:o.ZodNullable,...ea(t)});class eX extends er{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return t.parsedType===z.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eX.create=(e,t)=>new eX({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ea(t)});class e0 extends er{_parse(e){let{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return X(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new W(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new W(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}e0.create=(e,t)=>new e0({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ea(t)});class e1 extends er{_parse(e){if(this._getType(e)!==z.nan){let t=this._getOrReturnCtx(e);return Q(t,{code:K.invalid_type,expected:z.nan,received:t.parsedType}),J}return{status:"valid",value:e.data}}}e1.create=e=>new e1({typeName:o.ZodNaN,...ea(e)}),Symbol("zod_brand");class e4 extends er{_parse(e){let{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class e9 extends er{_parse(e){let{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?J:"dirty"===e.status?(t.dirty(),Y(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})();{let e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?J:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new e9({in:e,out:t,typeName:o.ZodPipeline})}}class e5 extends er{_parse(e){let t=this._def.innerType._parse(e),a=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return X(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}e5.create=(e,t)=>new e5({innerType:e,typeName:o.ZodReadonly,...ea(t)}),ej.lazycreate,(n=o||(o={})).ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly";let e2=eb.create,e3=ex.create;e1.create,ew.create;let e6=eS.create;eT.create,eO.create,eZ.create,eC.create;let e8=eA.create;eM.create,eN.create,eE.create;let e7=eI.create,te=ej.create;ej.strictCreate;let tt=eR.create,ta=eP.create;eD.create,eL.create;let tr=eF.create;eV.create,ez.create,eU.create,eK.create;let ts=eW.create,ti=eq.create;eQ.create,eH.create,eJ.create,eY.create,eG.create,eJ.createWithPreprocess,e9.create;let tn=te({kind:e2().min(1,"Required"),spec:tr(e2(),e8())}),td=te({name:e2(),description:e2().optional(),hidden:e6().optional(),color:e2().optional()});function tu(e){return te({display:td,plugin:e})}let tl=te({display:td,plugin:tn}),to=te({name:e2().optional(),description:e2().optional()}),tc=te({display:to.optional(),default:e6(),plugin:tn});function tp(e){return te({display:to.optional(),default:e6(),plugin:e})}let th=e2().min(1,"Required").regex(b,"Must be a valid duration string"),tm=te({name:e2().optional(),description:e2().optional()}),tf=te({kind:e2().min(1),spec:te({name:e2().optional(),plugin:tn})}),t_=te({name:e2().optional(),url:e2().min(1),tooltip:e2().optional(),renderVariables:e6().optional(),targetBlank:e6().optional()}),ty=te({display:tm.optional(),plugin:tn,queries:e7(tf).optional(),links:e7(t_).optional()});function tg(e){return te({display:tm.optional(),plugin:e,queries:e7(tf).optional(),links:e7(t_).optional()})}let tv=te({kind:ts("Panel"),spec:ty});function tk(e){return te({kind:ts("Panel"),spec:tg(e)})}let tb=te({groupId:e3(),panelDefinition:tv});function tx(e){return te({groupId:e3(),panelDefinition:tk(e)})}let tw=te({name:e2().optional(),description:e2().optional(),hidden:e6().optional()}),tS=te({name:e2().min(1),display:tw.optional(),defaultValue:e2().or(e7(e2())).optional(),allowAllValue:e6(),allowMultiple:e6(),customAllValue:e2().optional(),capturingRegexp:e2().optional(),sort:ti(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:tn});function tT(e){return te({name:e2().min(1),display:tw.optional(),defaultValue:e2().or(e7(e2())).optional(),allowAllValue:e6(),allowMultiple:e6(),customAllValue:e2().optional(),capturingRegexp:e2().optional(),sort:ti(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}let tO=te({kind:ts("ListVariable"),spec:tS});function tZ(e){return te({kind:ts("ListVariable"),spec:tT(e)})}let tC=te({name:e2().min(1),display:tw.optional(),value:e2(),constant:e6().optional()}),tA=te({kind:ts("TextVariable"),spec:tC}),tM=ta("kind",[tA,tO]);function tN(e){return tt([tA,tZ(e)])}let tE=tM;function tI(e){return ta("kind",[te({kind:ts("ListVariable"),spec:tT(e)}),te({kind:ts("TextVariable"),spec:tC})])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[]).push([["888"],{65130(t,e,n){n.d(e,{f:()=>i});var r=n(12015),a=n(4721);function i(t,e,n){let i=(0,a.a)(t,n?.in);return isNaN(e)?(0,r.w)(n?.in||t,NaN):(e&&i.setDate(i.getDate()+e),i)}},38086(t,e,n){n.d(e,{P:()=>i});var r=n(12015),a=n(4721);function i(t,e,n){let i=(0,a.a)(t,n?.in);if(isNaN(e))return(0,r.w)(n?.in||t,NaN);if(!e)return i;let o=i.getDate(),u=(0,r.w)(n?.in||t,i.getTime());return(u.setMonth(i.getMonth()+e+1,0),o>=u.getDate())?u:(i.setFullYear(u.getFullYear(),u.getMonth(),o),i)}},30439(t,e,n){n.d(e,{_P:()=>o,my:()=>r,s0:()=>i,w4:()=>a});let r=6048e5,a=864e5,i=36e5,o=Symbol.for("constructDateFrom")},12015(t,e,n){n.d(e,{w:()=>a});var r=n(30439);function a(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&r._P in t?t[r._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},4721(t,e,n){n.d(e,{a:()=>a});var r=n(12015);function a(t,e){return(0,r.w)(e||t,t)}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 941.4f06d1da.js.LICENSE.txt */
2
- "use strict";(self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[]).push([["941"],{7470(e,r,t){var o=t(20231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(70451),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var o,n={},c=null,l=null;for(o in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)s.call(r,o)&&!f.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:a,type:e,key:c,ref:l,props:n,_owner:_.current}}r.Fragment=n,r.jsx=c,r.jsxs=c},62540(e,r,t){e.exports=t(2192)},86604(e,r,t){t.r(r);var o=t(62540),a=t(70451),n=t.n(a);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(n().StrictMode,{}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[]).push([["963"],{38662(e,t,r){r.r(t),r.d(t,{Immer:()=>X,applyPatches:()=>et,castDraft:()=>ea,castImmutable:()=>ei,createDraft:()=>er,current:()=>q,enableMapSet:()=>G,enablePatches:()=>B,finishDraft:()=>en,freeze:()=>z,immerable:()=>i,isDraft:()=>u,isDraftable:()=>l,nothing:()=>a,original:()=>h,produce:()=>T,produceWithPatches:()=>V,setAutoFreeze:()=>Y,setUseStrictIteration:()=>ee,setUseStrictShallowCopy:()=>Z});var n,a=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function u(e){return!!e&&!!e[s]}function l(e){return!!e&&(_(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||m(e)||S(e))}var f=Object.prototype.constructor.toString(),p=new WeakMap;function _(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=p.get(r);return void 0===n&&(n=Function.toString.call(r),p.set(r,n)),n===f}function h(e){return u(e)||o(15,e),e[s].base_}function d(e,t,r=!0){0===y(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function y(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:m(e)?2:3*!!S(e)}function b(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===y(e)?e.get(t):e[t]}function g(e,t,r){let n=y(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function m(e){return e instanceof Map}function S(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function P(e,t){if(m(e))return new Map(e);if(S(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(c(e),t)}}function z(e,t=!1){return j(e)||u(e)||!l(e)||(y(e)>1&&Object.defineProperties(e,{set:O,add:O,clear:O,delete:O}),Object.freeze(e),t&&Object.values(e).forEach(e=>z(e,!0))),e}var O={value:function(){o(2)}};function j(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var M={};function A(e){let t=M[e];return t||o(0,e),t}function k(e,t){t&&(A("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){F(e),e.drafts_.forEach(E),e.drafts_=null}function F(e){e===n&&(n=e.parent_)}function I(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function x(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(D(t),o(4)),l(e)&&(e=C(t,e),t.parent_||N(t,e)),t.patches_&&A("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=C(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==a?e:void 0}function C(e,t,r){if(j(t))return t;let n=e.immer_.shouldUseStrictIteration(),a=t[s];if(!a)return d(t,(n,i)=>U(e,a,t,n,i,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return N(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;let t=a.copy_,i=t,s=!1;3===a.type_&&(i=new Set(t),t.clear(),s=!0),d(i,(n,i)=>U(e,a,t,n,i,r,s),n),N(e,t,!1),r&&e.patches_&&A("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function U(e,t,r,n,a,i,s){if(null==a||"object"!=typeof a&&!s)return;let o=j(a);if(!o||s){if(u(a)){let s=C(e,a,i&&t&&3!==t.type_&&!b(t.assigned_,n)?i.concat(n):void 0);if(g(r,n,s),!u(s))return;e.canAutoFreeze_=!1}else s&&r.add(a);if(l(a)&&!o){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===a&&o)return;C(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(m(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&N(e,a)}}}function N(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&z(t,r)}var R={get(e,t){if(t===s)return e;let r=w(e);if(!b(r,t)){var n;let a;return n=e,(a=H(r,t))?"value"in a?a.value:a.get?.call(n.draft_):void 0}let a=r[t];return e.finalized_||!l(a)?a:a===K(e.base_,t)?(J(e),e.copy_[t]=$(a,e)):a},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,r){let n=H(w(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=K(w(e),t),a=n?.[s];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||b(e.base_,t)))return!0;J(e),L(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,J(e),L(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=w(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){o(12)}},W={};function K(e,t){let r=e[s];return(r?w(r):e)[t]}function H(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function L(e){!e.modified_&&(e.modified_=!0,e.parent_&&L(e.parent_))}function J(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}d(R,(e,t)=>{W[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),W.deleteProperty=function(e,t){return W.set.call(this,e,t,void 0)},W.set=function(e,t,r){return R.set.call(this,e[0],t,r,e[0])};var X=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),l(e)){let a=I(this),i=$(e,void 0),s=!0;try{n=t(i),s=!1}finally{s?D(a):F(a)}return k(a,r),x(n,a)}if(e&&"object"==typeof e)o(1,e);else{if(void 0===(n=t(e))&&(n=e),n===a&&(n=void 0),this.autoFreeze_&&z(n,!0),r){let t=[],a=[];A("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){l(e)||o(8),u(e)&&(e=q(e));let t=I(this),r=$(e,void 0);return r[s].isManual_=!0,F(t),r}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||o(9);let{scope_:n}=r;return k(n,t),x(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=A("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}};function $(e,t){let r=m(e)?A("MapSet").proxyMap_(e,t):S(e)?A("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=a,s=R;r&&(i=[a],s=W);let{revoke:o,proxy:c}=Proxy.revocable(i,s);return a.draft_=c,a.revoke_=o,c}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function q(e){return u(e)||o(10,e),function e(t){let r;if(!l(t)||j(t))return t;let n=t[s],a=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_),a=n.scope_.immer_.shouldUseStrictIteration()}else r=P(t,!0);return d(r,(t,n)=>{g(r,t,e(n))},a),n&&(n.finalized_=!1),r}(e)}function B(){let e="replace",t="remove";function r(e){if(!l(e))return e;if(Array.isArray(e))return e.map(r);if(m(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(S(e))return new Set(Array.from(e).map(r));let t=Object.create(c(e));for(let n in e)t[n]=r(e[n]);return b(e,i)&&(t[i]=e[i]),t}function n(e){return u(e)?r(e):e}M.Patches||(M.Patches={applyPatches_:function(n,a){return a.forEach(a=>{let{path:i,op:s}=a,c=n;for(let e=0;e<i.length-1;e++){let t=y(c),r=i[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&o(19),"function"==typeof c&&"prototype"===r&&o(19),"object"!=typeof(c=v(c,r))&&o(18,i.join("/"))}let u=y(c),l=r(a.value),f=i[i.length-1];switch(s){case e:switch(u){case 2:return c.set(f,l);case 3:o(16);default:return c[f]=l}case"add":switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case t:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(a.value);default:return delete c[f]}default:o(17,s)}}),n},generatePatches_:function(r,a,i,s){switch(r.type_){case 0:case 2:return function(r,a,i,s){let{base_:o,copy_:c}=r;d(r.assigned_,(r,u)=>{let l=v(o,r),f=v(c,r),p=u?b(o,r)?e:"add":t;if(l===f&&p===e)return;let _=a.concat(r);i.push(p===t?{op:p,path:_}:{op:p,path:_,value:f}),s.push("add"===p?{op:t,path:_}:p===t?{op:"add",path:_,value:n(l)}:{op:e,path:_,value:n(l)})})}(r,a,i,s);case 1:return function(r,a,i,s){let{base_:o,assigned_:c}=r,u=r.copy_;u.length<o.length&&([o,u]=[u,o],[i,s]=[s,i]);for(let t=0;t<o.length;t++)if(c[t]&&u[t]!==o[t]){let r=a.concat([t]);i.push({op:e,path:r,value:n(u[t])}),s.push({op:e,path:r,value:n(o[t])})}for(let e=o.length;e<u.length;e++){let t=a.concat([e]);i.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;o.length<=e;--e){let r=a.concat([e]);s.push({op:t,path:r})}}(r,a,i,s);case 3:return function(e,r,n,a){let{base_:i,copy_:s}=e,o=0;i.forEach(e=>{if(!s.has(e)){let i=r.concat([o]);n.push({op:t,path:i,value:e}),a.unshift({op:"add",path:i,value:e})}o++}),o=0,s.forEach(e=>{if(!i.has(e)){let i=r.concat([o]);n.push({op:"add",path:i,value:e}),a.unshift({op:t,path:i,value:e})}o++})}(r,a,i,s)}},generateReplacementPatches_:function(t,r,n,i){n.push({op:e,path:[],value:r===a?void 0:r}),i.push({op:e,path:[],value:t})}})}function G(){class e extends Map{constructor(e,t){super(),this[s]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return w(this[s]).size}has(e){return w(this[s]).has(e)}set(e,r){let n=this[s];return i(n),w(n).has(e)&&w(n).get(e)===r||(t(n),L(n),n.assigned_.set(e,!0),n.copy_.set(e,r),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[s];return i(r),t(r),L(r),r.base_.has(e)?r.assigned_.set(e,!1):r.assigned_.delete(e),r.copy_.delete(e),!0}clear(){let e=this[s];i(e),w(e).size&&(t(e),L(e),e.assigned_=new Map,d(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){w(this[s]).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let r=this[s];i(r);let n=w(r).get(e);if(r.finalized_||!l(n)||n!==r.base_.get(e))return n;let a=$(n,r);return t(r),r.copy_.set(e,a),a}keys(){return w(this[s]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class r extends Set{constructor(e,t){super(),this[s]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return w(this[s]).size}has(e){let t=this[s];return(i(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[s];return i(t),this.has(e)||(a(t),L(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[s];return i(t),a(t),L(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[s];i(e),w(e).size&&(a(e),L(e),e.copy_.clear())}values(){let e=this[s];return i(e),a(e),e.copy_.values()}entries(){let e=this[s];return i(e),a(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function a(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(l(t)){let r=$(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function i(e){e.revoked_&&o(3,JSON.stringify(w(e)))}M.MapSet||(M.MapSet={proxyMap_:function(t,r){return new e(t,r)},proxySet_:function(e,t){return new r(e,t)}})}var Q=new X,T=Q.produce,V=Q.produceWithPatches.bind(Q),Y=Q.setAutoFreeze.bind(Q),Z=Q.setUseStrictShallowCopy.bind(Q),ee=Q.setUseStrictIteration.bind(Q),et=Q.applyPatches.bind(Q),er=Q.createDraft.bind(Q),en=Q.finishDraft.bind(Q);function ea(e){return e}function ei(e){return e}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[]).push([["759"],{64278(e,t,o){o.r(t),o.d(t,{HistogramChart:()=>C});var l=o(62540),n=o(93648),r=o(17811),i=o(43945),a=o(25632),s=o.n(a);let u={unit:"decimal"},d={defaultColor:"#56b4e9"},h={none:{label:"None",log:void 0},2:{label:"2",log:2},10:{label:"10",log:10}},c=Object.entries(h).map(e=>{let[t,o]=e;return{id:t,...o}});var m=o(315),p=o(88091),g=o(74628),v=o(70451),f=o(74653),x=o(96331);function b(e){let{width:t,height:o,data:n,format:i,min:a,max:s,thresholds:u,logBase:d}=e,h=(0,r.useChartsTheme)(),c=(0,v.useMemo)(()=>n.buckets.map(e=>{let[t,o,l,n]=e,r=parseFloat(o),i=parseFloat(l),a=parseFloat(n);if(void 0!==d&&r<=0){if(i<=0)return null;r=.001*i}return{value:[r,i,a,t],itemStyle:{color:function(e,t,o,l){if(null==t?void 0:t.steps){let n=t.steps.map((n,r)=>e>=n.value?n.color??o.thresholds.palette[r]??t.defaultColor??l:null).filter(e=>null!==e);return n[n.length-1]??t.defaultColor??l}return(null==t?void 0:t.defaultColor)??l}(parseFloat(o),u,h,h.echartsTheme[0])}}}).filter(e=>null!==e),[h,n.buckets,d,u]),m=(0,v.useMemo)(()=>{if(void 0===d){if(a)return a;if(c&&c[0]){var e;return Math.min(0,Math.floor((null==(e=c[0])?void 0:e.value[0])??0))}}},[d,a,c]),p=(0,v.useMemo)(()=>{if(s)return s;if(c&&c[c.length-1]){var e;return Math.ceil((null==(e=c[c.length-1])?void 0:e.value[1])??1)}},[s,c]),g=(0,v.useMemo)(()=>{if(!c)return h.noDataOption;let e={scale:!1,min:m,max:p};return void 0!==d&&(e.type="log",e.logBase=d),{title:{show:!1},tooltip:{},xAxis:e,yAxis:(0,r.getFormattedAxis)({},i),series:[{type:"custom",renderItem:function(e,t){var o;let l=t.value(0),n=t.value(1),r=t.value(2),i=t.coord([l,r]),a=t.coord([n,0]),s=null==i?void 0:i[0],u=null==i?void 0:i[1],d=null==a?void 0:a[0],h=null==a?void 0:a[1];if(void 0===s||void 0===u||void 0===d||void 0===h)return null;let c=d-s,m=h-u,p=null==(o=t.style)?void 0:o.call(t);return Number.isFinite(s)&&Number.isFinite(u)&&Number.isFinite(c)&&Number.isFinite(m)?{type:"rect",shape:{x:s,y:u,width:c,height:m},style:p}:null},label:{show:!1},dimensions:["from","to"],encode:{x:[0,1],y:2,tooltip:[0,1],itemName:2},data:c}]}},[h.noDataOption,i,d,p,m,c]);return(0,l.jsx)(r.EChart,{style:{width:t,height:o},sx:{padding:`${h.container.padding.default}px`},option:g,theme:h.echartsTheme})}(0,f.Y)([x.a]);let C={PanelComponent:function(e){let{spec:t,contentDimensions:o,queryResults:n}=e,{min:i,max:a}=t,h=(0,r.useChartsTheme)(),c=s()({},u,t.format),f=s()({},d,t.thresholds),x=(0,v.useMemo)(()=>{let e=[];for(let t of n)for(let o of t.data.series){if(!o.histograms||0===o.histograms.length)continue;let[,t]=o.histograms[0];t&&t.buckets&&e.push({buckets:t.buckets})}return e},[n]);if(0===x.length)return(0,l.jsx)(m.A,{justifyContent:"center",height:"100%",children:(0,l.jsx)(p.A,{variant:"body2",textAlign:"center",children:"No data available (only native histograms are supported for now)"})});if(void 0===o)return null;let C=o.width/x.length-h.container.padding.default;return C<90&&x.length>1&&(C=90),(0,l.jsx)(m.A,{direction:"row",justifyContent:"center",alignItems:"center",sx:{overflowX:x.length>1?"scroll":"auto"},children:x.map((e,n)=>(0,l.jsx)(g.A,{children:(0,l.jsx)(b,{width:C,height:o.height,data:e,format:c,min:i,max:a,thresholds:f,logBase:t.logBase})},`histogram-series-${n}`))})},supportedQueryTypes:["TimeSeriesQuery"],queryOptions:{mode:"instant"},panelOptionsEditorComponents:[{label:"Settings",content:function(e){let{onChange:t,value:o}=e,a=s()({},u,o.format),m=s()({},d,o.thresholds),p=o.logBase?h[o.logBase]:h.none,g="Enter value";"percent"===a.unit?g="0":"percent-decimal"===a.unit&&(g="0");let v="Enter value";return"percent"===a.unit?v="100":"percent-decimal"===a.unit&&(v="1"),(0,l.jsxs)(r.OptionsEditorGrid,{children:[(0,l.jsx)(r.OptionsEditorColumn,{children:(0,l.jsxs)(r.OptionsEditorGroup,{title:"Misc",children:[(0,l.jsx)(r.FormatControls,{value:a,onChange:e=>{t((0,i.produce)(o,t=>{t.format=e}))}}),(0,l.jsx)(r.OptionsEditorControl,{label:"Min",control:(0,l.jsx)(n.A,{type:"number",value:o.min??"",onChange:e=>{let l=e.target.value?Number(e.target.value):void 0;t((0,i.produce)(o,e=>{e.min=l}))},placeholder:g,sx:{width:"100%"}})}),(0,l.jsx)(r.OptionsEditorControl,{label:"Max",control:(0,l.jsx)(n.A,{type:"number",value:o.max??"",onChange:e=>{let l=e.target.value?Number(e.target.value):void 0;t((0,i.produce)(o,e=>{e.max=l}))},placeholder:v,sx:{width:"100%"}})}),(0,l.jsx)(r.OptionsEditorControl,{label:"Log Base",control:(0,l.jsx)(r.SettingsAutocomplete,{value:{...p,id:(null==p?void 0:p.label)??"None"},options:c,onChange:(e,l)=>{t((0,i.produce)(o,e=>{e.logBase=l.log}))},disableClearable:!0})})]})}),(0,l.jsx)(r.OptionsEditorColumn,{children:(0,l.jsx)(r.ThresholdsEditor,{thresholds:m,onChange:e=>{t((0,i.produce)(o,t=>{t.thresholds=e}))}})})]})}}],createInitialOptions:function(){return{format:u}}}}}]);
@@ -1,7 +0,0 @@
1
- (()=>{var __webpack_modules__={23362(e,t,r){Promise.all([r.e("312"),r.e("4"),r.e("941")]).then(r.bind(r,86604))},89095(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(3958);t.logAndReport=function(e,t,r,n,i,a){return n(o.getShortErrorMsg(e,t,r,i))}},84990(e,t,r){let o=r(44528),n={[o.RUNTIME_001]:"Failed to get remoteEntry exports.",[o.RUNTIME_002]:'The remote entry interface does not contain "init"',[o.RUNTIME_003]:"Failed to get manifest.",[o.RUNTIME_004]:"Failed to locate remote.",[o.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[o.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[o.RUNTIME_007]:"Failed to get remote snapshot.",[o.RUNTIME_008]:"Failed to load script resources.",[o.RUNTIME_009]:"Please call createInstance first.",[o.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[o.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[o.RUNTIME_013]:"The manifest is not a valid Module Federation manifest.",[o.RUNTIME_014]:"The remote does not expose the requested module.",[o.RUNTIME_015]:"Remote container initialization failed."},i={[o.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},a={[o.BUILD_001]:"Failed to find expose module.",[o.BUILD_002]:"PublicPath is required in prod mode."},s={...n,...i,...a};t.buildDescMap=a,t.errorDescMap=s,t.runtimeDescMap=n,t.typeDescMap=i},44528(e,t){let r="RUNTIME-001",o="RUNTIME-002",n="RUNTIME-003",i="RUNTIME-004",a="RUNTIME-005",s="RUNTIME-006",l="RUNTIME-007",c="RUNTIME-008",u="RUNTIME-009",d="RUNTIME-010",f="RUNTIME-011",h="RUNTIME-012",m="RUNTIME-013",p="RUNTIME-014",g="RUNTIME-015",y="TYPE-001",E="BUILD-002";t.BUILD_001="BUILD-001",t.BUILD_002=E,t.RUNTIME_001=r,t.RUNTIME_002=o,t.RUNTIME_003=n,t.RUNTIME_004=i,t.RUNTIME_005=a,t.RUNTIME_006=s,t.RUNTIME_007=l,t.RUNTIME_008=c,t.RUNTIME_009=u,t.RUNTIME_010=d,t.RUNTIME_011=f,t.RUNTIME_012=h,t.RUNTIME_013=m,t.RUNTIME_014=p,t.RUNTIME_015=g,t.TYPE_001=y},3958(e,t){let r=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`;t.getShortErrorMsg=(e,t,o,n)=>{let i=[`${[t[e]]} #${e}`];return o&&i.push(`args: ${JSON.stringify(o)}`),i.push(r(e)),n&&i.push(`Original Error Message:
2
- ${n}`),i.join("\n")}},4071(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(44528),n=r(3958),i=r(84990);t.BUILD_001=o.BUILD_001,t.BUILD_002=o.BUILD_002,t.RUNTIME_001=o.RUNTIME_001,t.RUNTIME_002=o.RUNTIME_002,t.RUNTIME_003=o.RUNTIME_003,t.RUNTIME_004=o.RUNTIME_004,t.RUNTIME_005=o.RUNTIME_005,t.RUNTIME_006=o.RUNTIME_006,t.RUNTIME_007=o.RUNTIME_007,t.RUNTIME_008=o.RUNTIME_008,t.RUNTIME_009=o.RUNTIME_009,t.RUNTIME_010=o.RUNTIME_010,t.RUNTIME_011=o.RUNTIME_011,t.RUNTIME_012=o.RUNTIME_012,t.RUNTIME_013=o.RUNTIME_013,t.RUNTIME_014=o.RUNTIME_014,t.RUNTIME_015=o.RUNTIME_015,t.TYPE_001=o.TYPE_001,t.buildDescMap=i.buildDescMap,t.errorDescMap=i.errorDescMap,t.getShortErrorMsg=n.getShortErrorMsg,t.runtimeDescMap=i.runtimeDescMap,t.typeDescMap=i.typeDescMap},36568(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},45818(e,t){let r="default";t.DEFAULT_REMOTE_TYPE="global",t.DEFAULT_SCOPE=r},97795(e,t,r){let o=r(85968),n=r(45818),i=r(7269),a=r(90537),s=r(8349),l=r(84616);r(87728);let c=r(11415),u=r(14007),d=r(25344),f=r(69757),h=r(11767),m=r(27185);r(7353);let p=r(62648),g=r(88170),y=r(36292),E=r(39032),S=r(61949),b=r(89850),_=r(4071);t.ModuleFederation=class{initOptions(e){e.name&&e.name!==this.options.name&&o.error((0,_.getShortErrorMsg)(_.RUNTIME_010,_.runtimeDescMap)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.DEFAULT_SCOPE,t=arguments.length>1?arguments[1]:void 0;return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let o=l.getRemoteInfo({name:e,entry:t}),n=new c.Module({host:this,remoteInfo:o});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{allShareInfos:r}=i.formatShareConfigs(e,t),{userOptions:o,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),a=this.remoteHandler.formatAndRegisterRemote(n,o),{allShareInfos:s}=this.sharedHandler.registerShared(n,o),l=[...n.plugins];o.plugins&&o.plugins.forEach(e=>{l.includes(e)||l.push(e)});let c={...e,...t,plugins:l,remotes:a,shared:s,id:o.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){let t=s.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}constructor(e){this.hooks=new m.PluginSystem({beforeInit:new f.SyncWaterfallHook("beforeInit"),init:new u.SyncHook,beforeInitContainer:new h.AsyncWaterfallHook("beforeInitContainer"),initContainer:new h.AsyncWaterfallHook("initContainer")}),this.version="2.5.1",this.moduleCache=new Map,this.loaderHook=new m.PluginSystem({getModuleInfo:new u.SyncHook,createScript:new u.SyncHook,createLink:new u.SyncHook,fetch:new d.AsyncHook,loadEntryError:new d.AsyncHook,afterLoadEntry:new d.AsyncHook("afterLoadEntry"),beforeInitRemote:new d.AsyncHook("beforeInitRemote"),afterInitRemote:new d.AsyncHook("afterInitRemote"),beforeGetExpose:new d.AsyncHook("beforeGetExpose"),afterGetExpose:new d.AsyncHook("afterGetExpose"),beforeExecuteFactory:new d.AsyncHook("beforeExecuteFactory"),afterExecuteFactory:new d.AsyncHook("afterExecuteFactory"),getModuleFactory:new d.AsyncHook}),this.bridgeHook=new m.PluginSystem({beforeBridgeRender:new u.SyncHook,afterBridgeRender:new u.SyncHook,beforeBridgeDestroy:new u.SyncHook,afterBridgeDestroy:new u.SyncHook});const t=[p.snapshotPlugin(),g.generatePreloadAssetsPlugin()],r={id:a.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:b.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new y.SnapshotHandler(this),this.sharedHandler=new E.SharedHandler(this),this.remoteHandler=new S.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}}},74331(e,t,r){let o=r(85968),n=r(95018),i=r(89850),a="object"==typeof globalThis?globalThis:window,s=(()=>{try{return document.defaultView}catch{return a}})(),l=s;function c(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function u(e,t){return Object.hasOwnProperty.call(e,t)}u(a,"__GLOBAL_LOADING_REMOTE_ENTRY__")||c(a,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let d=a.__GLOBAL_LOADING_REMOTE_ENTRY__;function f(e){var t,r,o,n,i,a;u(e,"__VMOK__")&&!u(e,"__FEDERATION__")&&c(e,"__FEDERATION__",e.__VMOK__),u(e,"__FEDERATION__")||(c(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),c(e,"__VMOK__",e.__FEDERATION__)),(t=e.__FEDERATION__).__GLOBAL_PLUGIN__??(t.__GLOBAL_PLUGIN__=[]),(r=e.__FEDERATION__).__INSTANCES__??(r.__INSTANCES__=[]),(o=e.__FEDERATION__).moduleInfo??(o.moduleInfo={}),(n=e.__FEDERATION__).__SHARE__??(n.__SHARE__={}),(i=e.__FEDERATION__).__MANIFEST_LOADING__??(i.__MANIFEST_LOADING__={}),(a=e.__FEDERATION__).__PRELOADED_MAP__??(a.__PRELOADED_MAP__=new Map)}function h(){a.__FEDERATION__.__GLOBAL_PLUGIN__=[],a.__FEDERATION__.__INSTANCES__=[],a.__FEDERATION__.moduleInfo={},a.__FEDERATION__.__SHARE__={},a.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(d).forEach(e=>{delete d[e]})}function m(e){a.__FEDERATION__.__INSTANCES__.push(e)}function p(){return a.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.isDebugMode)();t&&(a.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,a.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.5.1")}function y(e,t){if("string"==typeof t)if(e[t])return{value:e[t],key:t};else{for(let r of Object.keys(e)){let[o,n]=r.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}o.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}f(a),f(s);let E=()=>s.__FEDERATION__.moduleInfo,S=(e,t)=>{let r=y(t,n.getFMId(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t,...r}=e,o=n.getFMId(r),i=y(s.__FEDERATION__.moduleInfo,o).value;if((null==i?void 0:i.version)===t)return i}},b=e=>S(e,s.__FEDERATION__.moduleInfo),_=(e,t)=>{let r=n.getFMId(e);return s.__FEDERATION__.moduleInfo[r]=t,s.__FEDERATION__.moduleInfo},I=e=>(s.__FEDERATION__.moduleInfo={...s.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete s.__FEDERATION__.moduleInfo[t]}),R=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:a[r]}},v=e=>{let{__GLOBAL_PLUGIN__:t}=s.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):o.warn(`The plugin ${e.name} has been registered.`)})},N=()=>s.__FEDERATION__.__GLOBAL_PLUGIN__,T=e=>a.__FEDERATION__.__PRELOADED_MAP__.get(e),M=e=>a.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);t.CurrentGlobal=a,t.Global=l,t.addGlobalSnapshot=I,t.getGlobalFederationConstructor=p,t.getGlobalHostPlugins=N,t.getGlobalSnapshot=E,t.getGlobalSnapshotInfoByModuleInfo=b,t.getInfoWithoutType=y,t.getPreloaded=T,t.getRemoteEntryExports=R,t.getTargetSnapshotInfoByModuleInfo=S,t.globalLoading=d,t.nativeGlobal=s,t.registerGlobalPlugins=v,t.resetFederationGlobalInfo=h,t.setGlobalFederationConstructor=g,t.setGlobalFederationInstance=m,t.setGlobalSnapshotInfoByModuleInfo=_,t.setPreloaded=M},4697(e,t,r){let o=r(74331),n=r(7269),i=r(28395),a=r(84616);r(87728);let s=r(3371),l={getRegisteredShare:n.getRegisteredShare,getGlobalShareScope:n.getGlobalShareScope};t.default={global:{Global:o.Global,nativeGlobal:o.nativeGlobal,resetFederationGlobalInfo:o.resetFederationGlobalInfo,setGlobalFederationInstance:o.setGlobalFederationInstance,getGlobalFederationConstructor:o.getGlobalFederationConstructor,setGlobalFederationConstructor:o.setGlobalFederationConstructor,getInfoWithoutType:o.getInfoWithoutType,getGlobalSnapshot:o.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:o.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:o.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:o.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:o.addGlobalSnapshot,getRemoteEntryExports:o.getRemoteEntryExports,registerGlobalPlugins:o.registerGlobalPlugins,getGlobalHostPlugins:o.getGlobalHostPlugins,getPreloaded:o.getPreloaded,setPreloaded:o.setPreloaded},share:l,utils:{matchRemoteWithNameAndExpose:i.matchRemoteWithNameAndExpose,preloadAssets:s.preloadAssets,getRemoteInfo:a.getRemoteInfo}}},6614(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(85968),n=r(95018),i=r(74331),a=r(51209),s=r(7269),l=r(28395),c=r(84616);r(87728);let u=r(4697),d=r(11415),f=r(97795),h=r(94219),m=r(89850),p=u.default;t.CurrentGlobal=i.CurrentGlobal,t.Global=i.Global,t.Module=d.Module,t.ModuleFederation=f.ModuleFederation,t.addGlobalSnapshot=i.addGlobalSnapshot,t.assert=o.assert,t.error=o.error,t.getGlobalFederationConstructor=i.getGlobalFederationConstructor,t.getGlobalSnapshot=i.getGlobalSnapshot,t.getInfoWithoutType=i.getInfoWithoutType,t.getRegisteredShare=s.getRegisteredShare,t.getRemoteEntry=c.getRemoteEntry,t.getRemoteInfo=c.getRemoteInfo,t.helpers=p,t.isStaticResourcesEqual=n.isStaticResourcesEqual,Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return m.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return m.loadScriptNode}}),t.matchRemoteWithNameAndExpose=l.matchRemoteWithNameAndExpose,t.registerGlobalPlugins=i.registerGlobalPlugins,t.resetFederationGlobalInfo=i.resetFederationGlobalInfo,t.safeWrapper=n.safeWrapper,t.satisfy=a.satisfy,t.setGlobalFederationConstructor=i.setGlobalFederationConstructor,t.setGlobalFederationInstance=i.setGlobalFederationInstance,Object.defineProperty(t,"types",{enumerable:!0,get:function(){return h.type_exports}})},11415(e,t,r){let o=r(85968),n=r(95018),i=r(28395),a=r(84616),s=r(53565);r(87728);let l=r(89850),c=r(4071);function u(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(","):void 0}function d(e,t,r){let o=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach(e=>{o[e]||(o[e]={})});let i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:o,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:o[n[0]],initScope:r??[]}}t.Module=class{async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;let t=await a.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:i.composeRemoteRequestId(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return o.assert(t,`remoteEntryExports is undefined
3
- ${(0,l.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,r,n){let i=await this.getEntry(n);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host}),i;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,cached:!0,origin:this.host}),r}return i}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:n,shareScope:a,initScope:l}=d(this.remoteInfo,this.host.shareScopeMap,r),u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:n,initScope:l,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==i?void 0:i.init)&&o.error(c.RUNTIME_002,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,s.optionsToMFContext(this.host.options));try{await i.init(u.shareScope,u.initScope,u.remoteEntryInitOptions)}catch(e){o.error(c.RUNTIME_015,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,s.optionsToMFContext(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:t,remoteEntryExports:i}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,origin:this.host}),r}finally{this.initing=!1,this.initPromise=void 0}return i}async get(e,t,r,i){let a,{loadFactory:l=!0}=r||{loadFactory:!0},d=await this.init(e,i,void 0,t);this.lib=d,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:d,origin:this.host});try{let r=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:d,expose:t,moduleInfo:this.remoteInfo});(a="function"==typeof r?r:void 0)||(a=await d.get(t)),a||o.error(c.RUNTIME_014,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:u(i)},void 0,s.optionsToMFContext(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:d,moduleFactory:a,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:d,error:r,origin:this.host}),r}let f=n.processModuleAlias(this.remoteInfo.name,t),h=this.wraperFactory(a,f);if(!l)return h;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,origin:this.host});try{let r=await h();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,exposeModule:r,origin:this.host}),r}catch(r){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,error:r,origin:this.host}),r}}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{let o=e();return o instanceof Promise?o.then(e=>(r(e,t),e)):(r(o,t),o)}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}}},88170(e,t,r){let o=r(95018),n=r(74331),i=r(7269);r(87728);let a=r(3371),s=r(62648),l=r(89850);function c(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function u(e,t,r,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,{value:d}=n.getInfoWithoutType(e,o.getFMId(t)),f=s||d;if(f&&!(0,l.isManifestProvider)(f)&&(r(f,t,i),f.remotesInfo))for(let t of Object.keys(f.remotesInfo)){if(a[t])continue;a[t]=!0;let o=c(t),n=f.remotesInfo[t];u(e,{name:o.name,version:n.matchedVersion},r,!1,a,void 0)}}let d=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function f(e,t,r,s,c){let f=[],h=[],m=[],p=new Set,g=new Set,{options:y}=e,{preloadConfig:E}=t,{depsRemote:S}=E;if(u(s,r,(t,r,i)=>{var s;let c;if(i)c=E;else if(Array.isArray(S)){let e=S.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;c=a.defaultPreloadArgs(e)}else{if(!0!==S)return;c=E}let u=(0,l.getResourceUrl)(t,o.getRemoteEntryInfoFromSnapshot(t).url);u&&m.push({name:r.name,moduleInfo:{name:r.name,entry:u,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:u});let d="modules"in t?t.modules:[],p=a.normalizePreloadExposes(c.exposes);function g(e){let r=e.map(e=>(0,l.getResourceUrl)(t,e));return c.filter?r.filter(c.filter):r}if(p.length&&"modules"in t&&(d=null==t||null==(s=t.modules)?void 0:s.reduce((e,t)=>((null==p?void 0:p.indexOf(t.moduleName))!==-1&&e.push(t),e),[])),d){let o=d.length;for(let i=0;i<o;i++){let o=d[i],a=`${r.name}/${o.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===o.moduleName?r.name:a,name:r.name,remoteSnapshot:t,preloadConfig:c,remote:r,origin:e}),n.getPreloaded(a)||("all"===c.resourceCategory?(f.push(...g(o.assets.css.async)),f.push(...g(o.assets.css.sync)),h.push(...g(o.assets.js.async)),h.push(...g(o.assets.js.sync))):"sync"===c.resourceCategory&&(f.push(...g(o.assets.css.sync)),h.push(...g(o.assets.js.sync))),n.setPreloaded(a))}}},!0,{},c),c.shared&&c.shared.length>0){let t=(t,r)=>{let{shared:o}=i.getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};o&&"function"==typeof o.lib&&(r.assets.js.sync.forEach(e=>{p.add(e)}),r.assets.css.sync.forEach(e=>{g.add(e)}))};c.shared.forEach(e=>{var r;let n=null==(r=y.shared)?void 0:r[e.sharedName];if(!n)return;let i=e.version?n.find(t=>t.version===e.version):n;i&&o.arrayOptions(i).forEach(r=>{t(r,e)})})}let b=h.filter(e=>!p.has(e)&&!d("script",e));return{cssAssets:f.filter(e=>!g.has(e)&&!d("link",e)),jsAssetsWithoutEntry:b,entryAssets:m.filter(e=>!d("script",e.url))}}t.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:n,remote:i,globalSnapshot:a,remoteSnapshot:c}=e;return l.isBrowserEnvValue?o.isRemoteInfoWithEntry(i)&&o.isPureRemoteEntry(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(s.assignRemoteInfo(n,c),f(t,r,n,a,c)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}}},36292(e,t,r){let o=r(85968),n=r(95018),i=r(74331),a=r(84616),s=r(53565);r(87728);let l=r(25344),c=r(11767),u=r(27185);r(7353);let d=r(89850),f=r(4071);function h(e,t){let r=i.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),o=r&&"remotesInfo"in r&&r.remotesInfo&&i.getInfoWithoutType(r.remotesInfo,e.name).value;return o&&o.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:o.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}t.SnapshotHandler=class{async loadRemoteSnapshotInfo(e){let t,r,{moduleInfo:a,id:l,initiator:c="loadRemote"}=e,{options:u}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:u,moduleInfo:a,origin:this.HostInstance});let h=i.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});h||(h={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},i.addGlobalSnapshot({[this.HostInstance.options.name]:h})),h&&"remotesInfo"in h&&!i.getInfoWithoutType(h.remotesInfo,a.name).value&&("version"in a||"entry"in a)&&(h.remotesInfo={...null==h?void 0:h.remotesInfo,[a.name]:{matchedVersion:"version"in a?a.version:a.entry}});let{hostGlobalSnapshot:m,remoteSnapshot:p,globalSnapshot:g}=this.getGlobalRemoteInfo(a),{remoteSnapshot:y,globalSnapshot:E}=await this.hooks.lifecycle.loadSnapshot.emit({options:u,moduleInfo:a,hostGlobalSnapshot:m,remoteSnapshot:p,globalSnapshot:g});if(y)if((0,d.isManifestProvider)(y)){let e=d.isBrowserEnvValue?y.remoteEntry:y.ssrRemoteEntry||y.remoteEntry||"",o=await this.loadManifestSnapshot(e,a,{},{initiator:c,id:l||a.name}),n=i.setGlobalSnapshotInfoByModuleInfo({...a,entry:e},o);t=o,r=n}else{let{remoteSnapshot:e}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:a,remoteSnapshot:y,from:"global"});t=e,r=E}else if(n.isRemoteInfoWithEntry(a)){let e=await this.loadManifestSnapshot(a.entry,a,{},{initiator:c,id:l||a.name}),o=i.setGlobalSnapshotInfoByModuleInfo(a,e);t=e,r=o}else o.error(f.RUNTIME_007,f.runtimeDescMap,{remoteName:a.name,remoteVersion:a.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(E)},void 0,s.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:l,host:this.HostInstance,options:u,moduleInfo:a,remoteSnapshot:t}),{remoteSnapshot:t,globalSnapshot:r}}getGlobalRemoteInfo(e){return h(e,this.HostInstance)}async getManifestJson(e,t,r,n){return(async()=>{let r=a.getRemoteInfo(t),i=this.manifestCache.get(e);if(i)return i;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},r,n?{...n,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),i=await t.json()}catch(n){(i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}))||(delete this.manifestLoading[e],o.error(f.RUNTIME_003,f.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`,s.optionsToMFContext(this.HostInstance.options)))}let l=[!i.metaData&&"metaData",!i.exposes&&"exposes",!i.shared&&"shared"].filter(Boolean);return l.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${l.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}),l.length>0&&o.error(f.RUNTIME_013,f.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:l.join(",")},void 0,s.optionsToMFContext(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,r,o){let n=async()=>{let n=await this.getManifestJson(e,t,r,o),i=(0,d.generateSnapshotFromManifest)(n,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=n().then(e=>e)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new u.PluginSystem({beforeLoadRemoteSnapshot:new l.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new c.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new c.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new c.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=i.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}},t.getGlobalRemoteInfo=h},62648(e,t,r){let o=r(85968),n=r(95018),i=r(28395);r(87728);let a=r(3371),s=r(89850),l=r(4071);function c(e,t){let r=n.getRemoteEntryInfoFromSnapshot(t);r.url||o.error(l.RUNTIME_011,l.runtimeDescMap,{remoteName:e.name});let i=(0,s.getResourceUrl)(t,r.url);s.isBrowserEnvValue||i.startsWith("http")||(i=`https:${i}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=i,e.version=t.version,e.buildVersion=t.buildVersion}function u(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:o,origin:s,remoteInfo:l,id:u}=e;if(!n.isRemoteInfoWithEntry(t)||!n.isPureRemoteEntry(t)){let{remoteSnapshot:n,globalSnapshot:d}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i.composeRemoteRequestId(t.name,o)});c(l,n);let f={remote:t,preloadConfig:{nameOrAlias:r,exposes:[o],resourceCategory:"sync",share:!1,depsRemote:!1}},h=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:f,remoteInfo:l,remote:t,remoteSnapshot:n,globalSnapshot:d});return h&&a.preloadAssets(l,s,h,!1,{initiator:"loadRemote",id:u}).catch(()=>void 0),{...e,remoteSnapshot:n}}return e}}}t.assignRemoteInfo=c,t.snapshotPlugin=u},61949(e,t,r){let o=r(85968),n=r(74331),i=r(45818),a=r(7269),s=r(28395),l=r(84616),c=r(53565);r(87728);let u=r(3371),d=r(11415),f=r(14007),h=r(25344),m=r(69757),p=r(11767),g=r(27185);r(7353);let y=r(36292),E=r(89850),S=r(4071);t.RemoteHandler=class{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:o}=t,{name:n,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:o},i&&e.startsWith(n)){let t=e.replace(n,i);this.idToRemoteMap[t]={name:r.name,expose:o};return}if(i&&e.startsWith(i)){let t=e.replace(i,n);this.idToRemoteMap[t]={name:r.name,expose:o}}}async loadRemote(e,t){let r,{host:o}=this,n=s.matchRemoteWithNameAndExpose(o.options.remotes,e),i=e,a=null==n?void 0:n.expose,c=n?l.getRemoteInfo(n.remote):void 0;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:s,moduleOptions:u,remoteMatchInfo:d}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:f,remote:h,expose:m,id:p,remoteSnapshot:g}=d;i=p,a=m,c=l.getRemoteInfo(h);let y=await s.get(p,m,t,g),E=await this.hooks.lifecycle.onLoad.emit({id:p,pkgNameOrAlias:f,expose:m,exposeModule:n?y:void 0,exposeModuleFactory:n?void 0:y,remote:h,options:u,moduleInstance:s,origin:o});if(this.setIdToRemoteMap(e,d),r={id:i,expose:a,remote:c,options:t,origin:o},"function"==typeof E)return E;return y}catch(l){let n,{from:s="runtime"}=t||{from:"runtime"};try{n=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:l,from:s,lifecycle:"onLoad",expose:a,remote:c,origin:o})}catch(e){throw r={id:i,expose:a,remote:c,options:t,error:e,origin:o},e}if(!n)throw r={id:i,expose:a,remote:c,options:t,error:l,origin:o},l;return r={id:i,expose:a,remote:c,options:t,error:l,origin:o,recovered:!0},n}finally{r&&await this.hooks.lifecycle.afterLoadRemote.emit(r)}}async preloadRemote(e){let t,{host:r}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});let n=u.formatPreloadArgs(r.options.remotes,e),i=e=>{let{preloadConfig:t,remote:r}=e,o=t.exposes||[];return o.length?o.map(o=>({ops:{...e,preloadConfig:{...t,exposes:[o]}},id:s.composeRemoteRequestId(r.name,o)})):[{ops:e,id:`${r.name}/*`}]};await Promise.all(n.flatMap(i).map(async e=>{let{ops:t,id:n}=e,{remote:i,preloadConfig:a}=t,s=l.getRemoteInfo(i);try{let{globalSnapshot:e,remoteSnapshot:l}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:t,remote:i,remoteInfo:s,globalSnapshot:e,remoteSnapshot:l});if(!c)return;let d=await u.preloadAssets(s,r,c,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:d})}catch(e){o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:[{url:s.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(s.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}}));let a=o.flatMap(e=>e.results.filter(e=>"error"===e.status||"timeout"===e.status));if(a.length>0&&Object.assign(t=Error(`preloadRemote failed to load ${a.length} resource(s).`),{results:o,failedResults:a}),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:r.options,origin:r,results:o,error:t}),t)throw t}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=s.matchRemoteWithNameAndExpose(r.options.remotes,i);if(!a)try{o.error(S.RUNTIME_004,S.runtimeDescMap,{hostName:r.options.name,requestId:i},void 0,c.optionsToMFContext(r.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:r.options,error:e,origin:r}),e}let{remote:u}=a,f=l.getRemoteInfo(u);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:r.options,remoteInfo:f,origin:r});let h=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:f}),{remote:m,expose:p}=h;o.assert(m&&p,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let g=r.moduleCache.get(m.name),y={host:r,remoteInfo:f};return g||(g=new d.Module(y),r.moduleCache.set(m.name,g)),{module:g,moduleOptions:y,remoteMatchInfo:h}}registerRemote(e,t,r){let{host:n}=this,a=()=>{if(e.alias){let r=t.find(t=>{var r;return e.alias&&(t.name.startsWith(e.alias)||(null==(r=t.alias)?void 0:r.startsWith(e.alias)))});o.assert(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&E.isBrowserEnvValue&&"u">typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=i.DEFAULT_SCOPE),e.type||(e.type=i.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let s=t.find(t=>t.name===e.name);if(s){let o=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==r?void 0:r.force)&&(this.removeRemote(s),a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,E.warn)(o.join(" ")))}else a(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:r}=this,{name:o}=e,i=r.options.remotes.findIndex(e=>e.name===o);-1!==i&&r.options.remotes.splice(i,1);let s=r.moduleCache.get(e.name);if(s){var t;let o=s.remoteInfo,i=o.entryGlobalName;n.CurrentGlobal[i]&&((null==(t=Object.getOwnPropertyDescriptor(n.CurrentGlobal,i))?void 0:t.configurable)?delete n.CurrentGlobal[i]:n.CurrentGlobal[i]=void 0);let c=l.getRemoteEntryUniqueKey(s.remoteInfo);n.globalLoading[c]&&delete n.globalLoading[c],r.snapshotHandler.manifestCache.delete(o.entry);let u=o.buildVersion?(0,E.composeKeyWithSeparator)(o.name,o.buildVersion):o.name,d=n.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>o.buildVersion?e.options.id===u:e.name===u);if(-1!==d){let e=n.CurrentGlobal.__FEDERATION__.__INSTANCES__[d];u=e.options.id||u;let t=a.getGlobalShareScope(),r=!0,i=[];Object.keys(t).forEach(e=>{let n=t[e];n&&Object.keys(n).forEach(t=>{let a=n[t];a&&Object.keys(a).forEach(n=>{let s=a[n];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===o.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==o.name),l.useIn.length?r=!1:i.push([e,t,n,a])):i.push([e,t,n,a]))})})})}),r&&(e.shareScopeMap={},delete t[u]),i.forEach(e=>{var r,o,n;let[i,a,s,l]=e;null==(n=t[i])||null==(o=n[a])||null==(r=o[s])||delete r[l]}),n.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(d,1)}let{hostGlobalSnapshot:f}=y.getGlobalRemoteInfo(e,r);if(f){let t=f&&"remotesInfo"in f&&f.remotesInfo&&n.getInfoWithoutType(f.remotesInfo,e.name).key;t&&(delete f.remotesInfo[t],n.Global.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete n.Global.__FEDERATION__.__MANIFEST_LOADING__[t])}r.moduleCache.delete(e.name)}}catch(e){o.logger.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}constructor(e){this.hooks=new g.PluginSystem({beforeRegisterRemote:new m.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new m.SyncWaterfallHook("registerRemote"),beforeRequest:new p.AsyncWaterfallHook("beforeRequest"),afterMatchRemote:new h.AsyncHook("afterMatchRemote"),onLoad:new h.AsyncHook("onLoad"),afterLoadRemote:new h.AsyncHook("afterLoadRemote"),handlePreloadModule:new f.SyncHook("handlePreloadModule"),errorLoadRemote:new h.AsyncHook("errorLoadRemote"),beforePreloadRemote:new h.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new h.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new h.AsyncHook("afterPreloadRemote"),loadEntry:new h.AsyncHook}),this.host=e,this.idToRemoteMap={}}}},39032(e,t,r){let o=r(85968),n=r(45818),i=r(7269),a=r(53565);r(87728);let s=r(14007),l=r(25344),c=r(69757),u=r(11767),d=r(27185);r(7353);let f=r(4071);t.SharedHandler=class{emitAfterLoadShare(e){let{lifecycle:t,pkgName:r,shareInfo:n,selectedShared:i}=e;try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:r,shareInfo:n,selectedShared:i,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:t,origin:this.host})}catch(e){o.warn(e)}}emitErrorLoadShare(e){let{lifecycle:t,pkgName:r,shareInfo:n,error:i,recovered:a}=e;try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:r,shareInfo:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:t,origin:this.host,error:i,recovered:a})}catch(e){o.warn(e)}}registerShared(e,t){let{newShareInfos:r,allShareInfos:o}=i.formatShareConfigs(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(o=>{var n;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:r}),(null==(n=this.shareScopeMap[o])?void 0:n[e])||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{newShareInfos:r,allShareInfos:o}}async loadShare(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),a=n;try{(null==n?void 0:n.scope)&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))})),a=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r})).shareInfo,o.assert(a,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let s=a,{shared:l,useTreesShaking:c}=i.getRegisteredShare(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare)||{};if(l){let t=i.directShare(l,c);if(t.lib)return i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),t.lib;if(t.loading&&!t.loaded){let o=await t.loading;return t.loaded=!0,t.lib||(t.lib=o),i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),o}{let o=(async()=>{let e=await t.get();return i.addUseIn(t,r.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:l,from:r.options.name,lib:null,loading:o,treeShaking:c?t:void 0});let n=await o;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),n}}{if(null==t?void 0:t.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,recovered:!0}),!1;let o=i.shouldUseTreeShaking(s.treeShaking),n=i.directShare(s,o),a=(async()=>{let t=await n.get();n.lib=t,n.loaded=!0,i.addUseIn(n,r.options.name);let{shared:o,useTreesShaking:a}=i.getRegisteredShare(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare)||{};if(o){let e=i.directShare(o,a);e.lib=t,e.loaded=!0,o.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:a,treeShaking:o?n:void 0});let l=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:s}),l}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,error:t}),t}}initializeSharing(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.DEFAULT_SCOPE,t=arguments.length>1?arguments[1]:void 0,{host:r}=this,o=null==t?void 0:t.from,a=null==t?void 0:t.strategy,s=null==t?void 0:t.initScope,l=[];if("build"!==o){let{initTokens:t}=this;s||(s=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),s.indexOf(r)>=0)return l;s.push(r)}let c=this.shareScopeMap,u=r.options.name;c[e]||(c[e]={});let d=c[e],f=(e,t)=>{var r;let{version:o,eager:n}=t;d[e]=d[e]||{};let a=d[e],s=a[o]&&i.directShare(a[o]),l=!!(s&&("eager"in s&&s.eager||"shareConfig"in s&&(null==(r=s.shareConfig)?void 0:r.eager)));(!s||"loaded-first"!==s.strategy&&!s.loaded&&(!n!=!l?n:u>a[o].from))&&(a[o]=t)},h=async e=>{let t,{module:o}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});try{t=await o.getEntry()}catch(n){if(!(t=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:o.remoteInfo,origin:r})))return}finally{(null==t?void 0:t.init)&&!o.initing&&(o.remoteEntryExports=t,await o.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&f(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===a)&&r.options.remotes.forEach(t=>{t.shareScope===e&&l.push(h(t.name))}),l}loadShareSync(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});try{(null==n?void 0:n.scope)&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let{shared:s}=i.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){if("function"==typeof s.lib)return i.addUseIn(s,r.options.name),s.loaded||(s.loaded=!0,s.from===r.options.name&&(n.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),s.lib;if("function"==typeof s.get){let t=s.get();if(!(t instanceof Promise))return i.addUseIn(s,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),t}}if(n.lib)return n.loaded||(n.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib;if(n.get){let i=n.get();return i instanceof Promise&&o.error((null==t?void 0:t.from)==="build"?f.RUNTIME_005:f.RUNTIME_006,f.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib}o.error(f.RUNTIME_006,f.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,error:t}),t}}initShareScopeMap(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{host:o}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared(e){let{pkgName:t,shared:r,from:o,lib:n,loading:i,loaded:a,get:s,treeShaking:l}=e,{version:c,scope:u="default",...d}=r,f=Array.isArray(u)?u:[u],h=e=>{let t=(e,t,r)=>{r&&!e[t]&&(e[t]=r)},r=l?e.treeShaking:e;t(r,"loaded",a),t(r,"loading",i),t(r,"get",s)};f.forEach(e=>{this.shareScopeMap[e]||(this.shareScopeMap[e]={}),this.shareScopeMap[e][t]||(this.shareScopeMap[e][t]={}),this.shareScopeMap[e][t][c]||(this.shareScopeMap[e][t][c]={version:c,scope:[e],...d,lib:n});let r=this.shareScopeMap[e][t][c];h(r),o&&r.from!==o&&(r.from=o)})}_setGlobalShareScopeMap(e){let t=i.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}constructor(e){this.hooks=new d.PluginSystem({beforeRegisterShare:new c.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new u.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new u.AsyncWaterfallHook("beforeLoadShare"),loadShare:new l.AsyncHook,afterLoadShare:new s.SyncHook("afterLoadShare"),errorLoadShare:new s.SyncHook("errorLoadShare"),resolveShare:new c.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new c.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}},94219(e,t,r){var o=r(36568).__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return o}})},53565(e,t){function r(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}t.optionsToMFContext=function(e){var t,o,n,i,a,s;let l={};for(let[t,r]of Object.entries(e.shared)){let e=r[0];e&&(l[t]={version:e.version,singleton:null==(n=e.shareConfig)?void 0:n.singleton,requiredVersion:(null==(i=e.shareConfig)?void 0:i.requiredVersion)!==!1&&(null==(a=e.shareConfig)?void 0:a.requiredVersion),eager:e.eager,strictVersion:null==(s=e.shareConfig)?void 0:s.strictVersion})}return{project:{name:e.name,mfRole:(null==(t=e.remotes)?void 0:t.length)>0?"host":"unknown"},mfConfig:{name:e.name,remotes:(null==(o=e.remotes)?void 0:o.map(r))??[],shared:l}}}},90537(e,t,r){r(89850),t.getBuilderId=function(){return"HistogramChart:0.12.0-beta.1"}},25344(e,t,r){let o=r(14007);t.AsyncHook=class extends o.SyncHook{emit(){let e;for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];let n=Array.from(this.listeners);if(n.length>0){let t=0,o=e=>!1!==e&&(t<n.length?Promise.resolve(n[t++].apply(null,r)).then(t=>void 0===t||1===r.length&&t===r[0]?o(e):o(t)):e);e=o()}return Promise.resolve(e)}}},11767(e,t,r){let o=r(85968),n=r(95018),i=r(14007),a=r(69757);t.AsyncWaterfallHook=class extends i.SyncHook{emit(e){n.isObject(e)||o.error(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(o.warn(t),this.onerror(t),e),i=o=>{if(void 0!==o&&a.checkReturnData(e,o))e=o;else if(void 0!==o)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(r<t.length)try{return Promise.resolve(t[r++](e)).then(i,n)}catch(e){return n(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=o.error,this.type=e}}},7353(e,t,r){r(14007),r(25344),r(69757),r(11767),r(27185)},27185(e,t,r){let o=r(85968),n=r(95018);r(87728),t.PluginSystem=class{applyPlugin(e,t){o.assert(n.isPlainObject(e),"Plugin configuration is invalid.");let r=e.name;if(o.assert(r,"A name must be provided by the plugin."),!this.registerPlugins[r]){var i;this.registerPlugins[r]=e,null==(i=e.apply)||i.call(e,t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)})}}removePlugin(e){o.assert(e,"A name is required.");let t=this.registerPlugins[e];o.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}}},14007(e,t){t.SyncHook=class{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(){for(var o=arguments.length,n=Array(o),i=0;i<o;i++)n[i]=arguments[i];return t.remove(r),e.apply(null,n)})}emit(){let e;for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return this.listeners.size>0&&this.listeners.forEach(t=>{let o=t(...r);void 0!==o&&(e=o)}),e}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}}},69757(e,t,r){let o=r(85968),n=r(95018),i=r(14007);function a(e,t){if(!n.isObject(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}t.SyncWaterfallHook=class extends i.SyncHook{emit(e){for(let t of(n.isObject(e)||o.error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(void 0===r)continue;if(a(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){o.warn(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=o.error,this.type=e}},t.checkReturnData=a},87728(e,t,r){r(85968),r(95018),r(90537),r(28395),r(8349),r(84616),r(53565),r(89850)},84616(e,t,r){let o=r(85968),n=r(74331),i=r(45818),a=r(89850),s=r(4071),l=".then(callbacks[0]).catch(callbacks[1])";async function c(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${t}")${l}`)([e,n]):import(t).then(e).catch(n)}catch(e){o.error(`Failed to load ESM entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}async function u(e){let{entry:t,remoteEntryExports:r}=e;return new Promise((e,n)=>{try{r?e(r):Function("callbacks",`System.import("${t}")${l}`)([e,n])}catch(e){o.error(`Failed to load SystemJS entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}function d(e,t,r){let{remoteEntryKey:i,entryExports:a}=n.getRemoteEntryExports(e,t);return a||o.error(s.RUNTIME_001,s.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:i}),a}async function f(e){let{name:t,globalName:r,entry:i,remoteInfo:l,loaderHook:c,getEntryUrl:u,resourceContext:f}=e,{entryExports:h}=n.getRemoteEntryExports(t,r);if(h)return h;let m=u?u(i):i;return(0,a.loadScript)(m,{attrs:{},createScriptHook:(e,t)=>{let r=c.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:l,resourceContext:f?{...f,url:e}:void 0});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>d(t,r,i),e=>{let r=e instanceof Error?e.message:String(e);o.error(s.RUNTIME_008,s.runtimeDescMap,{remoteName:t,resourceUrl:m},r)})}async function h(e){let{remoteInfo:t,remoteEntryExports:r,loaderHook:o,getEntryUrl:n,resourceContext:i}=e,{entry:a,entryGlobalName:s,name:l,type:d}=t;switch(d){case"esm":case"module":return c({entry:a,remoteEntryExports:r});case"system":return u({entry:a,remoteEntryExports:r});default:return f({entry:a,globalName:s,name:l,remoteInfo:t,loaderHook:o,getEntryUrl:n,resourceContext:i})}}async function m(e){let{remoteInfo:t,loaderHook:r,resourceContext:i}=e,{entry:s,entryGlobalName:l,name:c,type:u}=t,{entryExports:f}=n.getRemoteEntryExports(c,l);return f||(0,a.loadScriptNode)(s,{attrs:{name:c,globalName:l,type:u},loaderHook:{createScriptHook:function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.lifecycle.createScript.emit({url:e,attrs:o,remoteInfo:t,resourceContext:i?{...i,url:e}:void 0});if(n&&"url"in n)return n}}}).then(()=>d(c,l,s)).catch(e=>{o.error(`Failed to load Node.js entry for remote "${c}" from "${s}". ${e instanceof Error?e.message:String(e)}`)})}function p(e){let{entry:t,name:r}=e;return(0,a.composeKeyWithSeparator)(r,t)}async function g(e){let{origin:t,remoteEntryExports:r,remoteInfo:o,getEntryUrl:i,resourceContext:l,_inErrorHandling:c=!1}=e,u=p(o);if(r)return r;if(!n.globalLoading[u]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,d=t.loaderHook;n.globalLoading[u]=e.emit({origin:t,loaderHook:d,remoteInfo:o,remoteEntryExports:r}).then(e=>e||(("u">typeof ENV_TARGET?"web"===ENV_TARGET:a.isBrowserEnvValue)?h({remoteInfo:o,remoteEntryExports:r,loaderHook:d,getEntryUrl:i,resourceContext:l}):m({remoteInfo:o,loaderHook:d,resourceContext:l}))).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e}),e)).catch(async e=>{let i=p(o),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(s.RUNTIME_008)&&!a&&!c){let e=e=>g({...e,_inErrorHandling:!0}),a=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:o,remoteEntryExports:r,globalLoading:n.globalLoading,uniqueKey:i});if(a)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:a,recovered:!0}),a}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,error:e}),e})}return n.globalLoading[u]}function y(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||i.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||i.DEFAULT_SCOPE}}t.getRemoteEntry=g,t.getRemoteEntryUniqueKey=p,t.getRemoteInfo=y},85968(e,t,r){let o=r(89850),n=r(89095),i="[ Federation Runtime ]",a=(0,o.createLogger)(i);function s(e,t,r,o,a){if(void 0!==t)return(0,n.logAndReport)(e,t,r??{},e=>{throw Error(`${i}: ${e}`)},o,a);let s=e;if(s instanceof Error)throw s.message.startsWith(i)||(s.message=`${i}: ${s.message}`),s;throw Error(`${i}: ${s}`)}function l(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}t.assert=function(e,t,r,o,n){e||(void 0!==r?s(t,r,o,void 0,n):s(t))},t.error=s,t.logger=a,t.warn=l},28395(e,t){function r(e,t){for(let r of e){let e=t.startsWith(r.name),o=t.replace(r.name,"");if(e){if(o.startsWith("/"))return{pkgNameOrAlias:r.name,expose:o=`.${o}`,remote:r};else if(""===o)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let n=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&n){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function o(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}t.composeRemoteRequestId=function(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e},t.matchRemote=o,t.matchRemoteWithNameAndExpose=r},8349(e,t,r){let o=r(74331);t.registerPlugins=function(e,t){let r=o.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{(null==e?void 0:e.find(e=>e.name!==t.name))&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}},3371(e,t,r){let o=r(85968),n=r(28395),i=r(84616),a=r(89850);function s(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function l(e,t){return t.map(t=>{let r=n.matchRemote(e,t.nameOrAlias);return o.assert(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&(0,a.safeToString)({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:s(t)}})}function c(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function u(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function d(e,t,r,o){return{url:t,status:r,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:o}}async function f(e,t,r,o){let n=e.moduleCache.get(r.name),a=r.entry;if(null==n?void 0:n.remoteEntryExports)return d(o,a,"cached");try{if(!await i.getRemoteEntry({origin:e,remoteInfo:r,remoteEntryExports:null==n?void 0:n.remoteEntryExports,resourceContext:{...o,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return d(o,a,"success")}catch(e){return d(o,a,u(e)?"timeout":"error",e)}}function h(e){let{host:t,remoteInfo:r,url:o,attrs:n,context:i,needDeleteLink:s}=e;return new Promise(e=>{let{link:l,needAttach:c}=(0,a.createLink)({url:o,cb:()=>{e(d(i,o,c?"success":"cached"))},onErrorCallback:t=>{e(d(i,o,u(t)?"timeout":"error",t))},attrs:n,createLinkHook:(e,o)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o,remoteInfo:r,resourceContext:{...i,url:e}});return n instanceof HTMLLinkElement,n},needDeleteLink:s});c&&document.head.appendChild(l)})}function m(e){let{host:t,remoteInfo:r,url:o,attrs:n,context:i}=e;return new Promise(e=>{let{script:s,needAttach:l}=(0,a.createScript)({url:o,cb:()=>{e(d(i,o,l?"success":"cached"))},onErrorCallback:t=>{e(d(i,o,u(t)?"timeout":"error",t))},attrs:n,createScriptHook:(e,o)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:o,remoteInfo:r,resourceContext:{...i,url:e}});return n instanceof HTMLScriptElement,n},needDeleteScript:!0});l&&document.head.appendChild(s)})}function p(e,t){return{...e,resourceType:t}}function g(e,t,r){let o=!(arguments.length>3)||void 0===arguments[3]||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{initiator:"preloadRemote",id:e.name},{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:s}=r,l=[];if(t.options.inBrowser){if(s.forEach(r=>{let{moduleInfo:o}=r;l.push(f(t,e,o,p(n,"remoteEntry")))}),o){let r={rel:"preload",as:"style"};i.forEach(o=>{l.push(h({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"css")}))})}else{let r={rel:"stylesheet",type:"text/css"};i.forEach(o=>{l.push(h({host:t,remoteInfo:e,url:o,attrs:r,needDeleteLink:!1,context:p(n,"css")}))})}if(o){let r={rel:"preload",as:"script"};a.forEach(o=>{l.push(h({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"js")}))})}else{let r={fetchpriority:"high",type:(null==e?void 0:e.type)==="module"?"module":"text/javascript"};a.forEach(o=>{l.push(m({host:t,remoteInfo:e,url:o,attrs:r,context:p(n,"js")}))})}}return Promise.all(l)}t.defaultPreloadArgs=s,t.formatPreloadArgs=l,t.normalizePreloadExposes=c,t.preloadAssets=g},17564(e,t){function r(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function o(e,t){let{preRelease:o}=e,{preRelease:n}=t;if(void 0===o&&n)return 1;if(o&&void 0===n)return -1;if(void 0===o&&void 0===n)return 0;for(let e=0,t=o.length;e<=t;e++){let t=o[e],i=n[e];if(t!==i){if(void 0===t&&void 0===i)return 0;if(!t)return 1;if(!i)return -1;return r(t,i)}}return 0}function n(e,t){return r(e.major,t.major)||r(e.minor,t.minor)||r(e.patch,t.patch)||o(e,t)}function i(e,t){return e.version===t.version}t.compare=function(e,t){switch(e.operator){case"":case"=":return i(e,t);case">":return 0>n(e,t);case">=":return i(e,t)||0>n(e,t);case"<":return n(e,t)>0;case"<=":return i(e,t)||n(e,t)>0;case void 0:return!0;default:return!1}}},8950(e,t){let r="[0-9A-Za-z-]+",o=`(?:\\+(${r}(?:\\.${r})*))`,n="0|[1-9]\\d*",i="[0-9]+",a="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s=`(?:${i}|${a})`,l=`(?:-?(${s}(?:\\.${s})*))`,c=`(?:${n}|${a})`,u=`(?:-(${c}(?:\\.${c})*))`,d=`${n}|x|X|\\*`,f=`[v=\\s]*(${d})(?:\\.(${d})(?:\\.(${d})(?:${u})?${o}?)?)?`,h=`^\\s*(${f})\\s+-\\s+(${f})\\s*$`,m=`[v=\\s]*${`(${i})\\.(${i})\\.(${i})`}${l}?${o}?`,p="((?:<|>)?=?)",g=`(\\s*)${p}\\s*(${m}|${f})`,y="(?:~>?)",E=`(\\s*)${y}\\s+`,S="(?:\\^)",b=`(\\s*)${S}\\s+`,_="(<|>)?=?\\s*\\*",I=`^${S}${f}$`,R=`v?${`(${n})\\.(${n})\\.(${n})`}${u}?${o}?`,v=`^${y}${f}$`,N=`^${p}\\s*${f}$`,T=`^${p}\\s*(${R})$|^$`,M="^\\s*>=\\s*0.0.0\\s*$";t.caret=I,t.caretTrim=b,t.comparator=T,t.comparatorTrim=g,t.gte0=M,t.hyphenRange=h,t.star=_,t.tilde=v,t.tildeTrim=E,t.xRange=N},51209(e,t,r){let o=r(13842),n=r(92190),i=r(17564);function a(e){return o.pipe(n.parseCarets,n.parseTildes,n.parseXRanges,n.parseStar)(e)}function s(e){return o.pipe(n.parseHyphen,n.parseComparatorTrim,n.parseTildeTrim,n.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}t.satisfy=function(e,t){if(!e)return!1;let r=o.extractComparator(e);if(!r)return!1;let[,l,,c,u,d,f]=r,h={operator:l,version:o.combineVersion(c,u,d,f),major:c,minor:u,patch:d,preRelease:null==f?void 0:f.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=s(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>a(e)).join(" ");if(!r.trim())return!0;let l=r.split(/\s+/).map(e=>n.parseGTE0(e)).filter(Boolean);if(0===l.length)continue;let c=!0;for(let e of l){let t=o.extractComparator(e);if(!t){c=!1;break}let[,r,,n,a,s,l]=t;if(!i.compare({operator:r,version:o.combineVersion(n,a,s,l),major:n,minor:a,patch:s,preRelease:null==l?void 0:l.split(".")},h)){c=!1;break}}if(c)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}},92190(e,t,r){let o=r(8950),n=r(13842);function i(e){return e.replace(n.parseRegex(o.hyphenRange),(e,t,r,o,i,a,s,l,c,u,d,f)=>(t=n.isXVersion(r)?"":n.isXVersion(o)?`>=${r}.0.0`:n.isXVersion(i)?`>=${r}.${o}.0`:`>=${t}`,l=n.isXVersion(c)?"":n.isXVersion(u)?`<${Number(c)+1}.0.0-0`:n.isXVersion(d)?`<${c}.${Number(u)+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:`<=${l}`,`${t} ${l}`.trim()))}function a(e){return e.replace(n.parseRegex(o.comparatorTrim),"$1$2$3")}function s(e){return e.replace(n.parseRegex(o.tildeTrim),"$1~")}function l(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.caret),(e,t,r,o,i)=>{if(n.isXVersion(t))return"";if(n.isXVersion(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(n.isXVersion(o))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(i)if("0"!==t)return`>=${t}.${r}.${o}-${i} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${o}-${i} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${o} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${o} <${Number(t)+1}.0.0-0`})).join(" ")}function c(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.tilde),(e,t,r,o,i)=>n.isXVersion(t)?"":n.isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:n.isXVersion(o)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:i?`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`)).join(" ")}function u(e){return e.split(/\s+/).map(e=>e.trim().replace(n.parseRegex(o.xRange),(e,t,r,o,i,a)=>{let s=n.isXVersion(r),l=s||n.isXVersion(o),c=l||n.isXVersion(i);if("="===t&&c&&(t=""),a="",s)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&c?(l&&(o=0),i=0,">"===t?(t=">=",l?(r=Number(r)+1,o=0):o=Number(o)+1,i=0):"<="===t&&(t="<",l?r=Number(r)+1:o=Number(o)+1),"<"===t&&(a="-0"),`${t+r}.${o}.${i}${a}`):l?`>=${r}.0.0${a} <${Number(r)+1}.0.0-0`:c?`>=${r}.${o}.0${a} <${r}.${Number(o)+1}.0-0`:e})).join(" ")}function d(e){return e.trim().replace(n.parseRegex(o.star),"")}function f(e){return e.trim().replace(n.parseRegex(o.gte0),"")}t.parseCaretTrim=function(e){return e.replace(n.parseRegex(o.caretTrim),"$1^")},t.parseCarets=l,t.parseComparatorTrim=a,t.parseGTE0=f,t.parseHyphen=i,t.parseStar=d,t.parseTildeTrim=s,t.parseTildes=c,t.parseXRanges=u},13842(e,t,r){let o=r(8950);function n(e){return new RegExp(e)}function i(e){return!e||"x"===e.toLowerCase()||"*"===e}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>t.reduce((e,t)=>t(e),e)}function s(e){return e.match(n(o.comparator))}t.combineVersion=function(e,t,r,o){let n=`${e}.${t}.${r}`;return o?`${n}-${o}`:n},t.extractComparator=s,t.isXVersion=i,t.parseRegex=n,t.pipe=a},7269(e,t,r){let o=r(85968),n=r(95018),i=r(74331),a=r(45818),s=r(51209),l=r(89850);function c(e,t,r,n){var i,a;let s;return s="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{o.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(null==(i=e.shareConfig)?void 0:i.eager)&&(null==(a=e.treeShaking)?void 0:a.mode)&&o.error(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:s,loaded:null!=e&&!!e.loaded||"lib"in e||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??l.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function u(e,t){let r=t.shared||{},o=t.name,i=Object.keys(r).reduce((e,i)=>{let a=n.arrayOptions(r[i]);return e[i]=e[i]||[],a.forEach(r=>{e[i].push(c(r,o,i,t.shareStrategy))}),e},{}),a={...e.shared};return Object.keys(i).forEach(e=>{a[e]?i[e].forEach(t=>{a[e].find(e=>e.version===t.version)||a[e].push(t)}):a[e]=i[e]}),{allShareInfos:a,newShareInfos:i}}function d(e,t){if(!e)return!1;let{status:r,mode:o}=e;return r!==l.TreeShakingStatus.NO_USE&&(r===l.TreeShakingStatus.CALCULATED||"runtime-infer"===o&&(!t||g(e,t)))}function f(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!s.satisfy(r(e),`<=${r(t)}`)}let h=(e,t)=>{let r=t||function(e,t){return f(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},m=e=>!!e.loaded||"function"==typeof e.lib,p=e=>!!e.loading,g=(e,t)=>{if(!e||!t)return!1;let{usedExports:r}=e;return!!r&&!!t.every(e=>r.includes(e))};function y(e,t,r,o){let n=e[t][r],i="",a=d(o),s=function(e,t){return a?!n[e].treeShaking||!!n[t].treeShaking&&!m(n[e].treeShaking)&&f(e,t):!m(n[e])&&f(e,t)};if(a){if(i=h(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:h(e[t][r],s),useTreesShaking:a}}let E=e=>m(e)||p(e);function S(e,t,r,o){let n=e[t][r],i="",a=d(o),s=function(e,t){if(a){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(E(n[t].treeShaking))if(E(n[e].treeShaking))return!!f(e,t);else return!0;if(E(n[e].treeShaking))return!1}if(E(n[t]))if(E(n[e]))return!!f(e,t);else return!0;return!E(n[e])&&f(e,t)};if(a){if(i=h(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:h(e[t][r],s),useTreesShaking:a}}function b(e){return"loaded-first"===e?S:y}function _(e,t,r,n){if(!e)return;let{shareConfig:l,scope:c=a.DEFAULT_SCOPE,strategy:u,treeShaking:f}=r;for(let a of Array.isArray(c)?c:[c])if(l&&e[a]&&e[a][t]){let{requiredVersion:c}=l,{version:h,useTreesShaking:m}=b(u)(e,a,t,f),p=()=>{let n=e[a][t][h];if(l.singleton){if("string"==typeof c&&!s.satisfy(h,c)){let e=`Version ${h} from ${h&&n.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${c})`;l.strictVersion?o.error(e):o.warn(e)}return{shared:n,useTreesShaking:m}}{if(!1===c||"*"===c||s.satisfy(h,c))return{shared:n,useTreesShaking:m};let r=d(f);if(r){for(let[o,n]of Object.entries(e[a][t]))if(d(n.treeShaking,null==f?void 0:f.usedExports)&&s.satisfy(o,c))return{shared:n,useTreesShaking:r}}for(let[r,o]of Object.entries(e[a][t]))if(s.satisfy(r,c))return{shared:o,useTreesShaking:!1}}},g={shareScopeMap:e,scope:a,pkgName:t,version:h,GlobalFederation:i.Global.__FEDERATION__,shareInfo:r,resolver:p};return(n.emit(g)||g).resolver()}}function I(){return i.Global.__FEDERATION__.__SHARE__}function R(e){let{pkgName:t,extraOptions:r,shareInfos:o}=e,n=e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=function(e,r){return!m(t[e])&&f(e,r)};return t[h(t,r)]},i=(null==r?void 0:r.resolver)??n,a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o={};for(let e of t)if(e)for(let[t,r]of Object.entries(e)){let e=o[t];a(e)&&a(r)?o[t]=s(e,r):void 0!==r&&(o[t]=r)}return o};return s(i(o[t]),null==r?void 0:r.customShareInfo)}function v(e,t){return t&&e.treeShaking?e.treeShaking:e}t.addUseIn=(e,t)=>{e.useIn||(e.useIn=[]),n.addUniqueItem(e.useIn,t)},t.directShare=v,t.formatShareConfigs=u,t.getGlobalShareScope=I,t.getRegisteredShare=_,t.getTargetSharedOptions=R,t.shouldUseTreeShaking=d},95018(e,t,r){let o=r(85968),n=r(89850);function i(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function a(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function s(e){return void 0!==e.entry}function l(e){return!e.entry.includes(".json")}async function c(e,t){try{return await e()}catch(e){t||o.warn(e);return}}function u(e){return e&&"object"==typeof e}let d=Object.prototype.toString;function f(e){return"[object Object]"===d.call(e)}function h(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function m(e){return Array.isArray(e)?e:[e]}function p(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnvValue||(0,n.isReactNativeEnv)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let g=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t};t.addUniqueItem=i,t.arrayOptions=m,t.getFMId=a,t.getRemoteEntryInfoFromSnapshot=p,t.isObject=u,t.isPlainObject=f,t.isPureRemoteEntry=l,t.isRemoteInfoWithEntry=s,t.isStaticResourcesEqual=h,t.objectToString=d,t.processModuleAlias=g,t.safeWrapper=c},66396(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,c=i(t),u=0,d=c.length;u<d;u++)l=c[u],s.call(e,l)||l===r||o(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(a=n(t,l))||a.enumerable});return e};t.__toESM=(e,t,n)=>(n=null!=e?r(a(e)):{},l(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e))},86173(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(66396);let o=r(45229),n=r(6614),i={...n.helpers.global,getGlobalFederationInstance:o.getGlobalFederationInstance},a=n.helpers.share,s=n.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},79706(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(66396);let o=r(45229),n=r(6614),i=r(4071);function a(e){let t=new((0,n.getGlobalFederationConstructor)()||n.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.setGlobalFederationInstance)(t),t}let s=null;function l(e){let t=o.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,t)}function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,t)}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,t)}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,t)}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,t)}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,t)}function p(e){return e?n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s}function g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,t)}(0,n.setGlobalFederationConstructor)(n.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return n.Module}}),t.ModuleFederation=n.ModuleFederation,t.createInstance=a,t.getInstance=p,Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return n.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return n.getRemoteInfo}}),t.init=l,t.loadRemote=c,Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return n.loadScriptNode}}),t.loadShare=u,t.loadShareSync=d,t.preloadRemote=f,Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return n.registerGlobalPlugins}}),t.registerPlugins=m,t.registerRemotes=h,t.registerShared=g},45229(e,t,r){r(66396);let o=r(6614);function n(){return"HistogramChart:0.12.0-beta.1"}t.getGlobalFederationInstance=function(e,t){let r=n();return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}},21820(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},38342(e,t){let r="federation-manifest.json",o=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},a={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},s={[a[i.AT]]:i.AT,[a[i.HYPHEN]]:i.HYPHEN,[a[i.SLASH]]:i.SLASH},l=":",c="mf-manifest.json",u="mf-stats.json",d={NPM:"npm",APP:"app"},f="__MF_DEVTOOLS_MODULE_INFO__",h="ENCODE_NAME_PREFIX",m=".federation",p=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({});t.BROWSER_LOG_KEY=n,t.ENCODE_NAME_PREFIX=h,t.EncodedNameTransformMap=s,t.FederationModuleManifest=r,t.MANIFEST_EXT=o,t.MFModuleType=d,t.MODULE_DEVTOOL_IDENTIFIER=f,t.ManifestFileName=c,t.NameTransformMap=a,t.NameTransformSymbol=i,t.SEPARATOR=l,t.StatsFileName=u,t.TEMP_DIR=m,t.TreeShakingStatus=p},94975(e,t){t.createModuleFederationConfig=e=>e},72802(e,t,r){let o=r(33901);async function n(e,t){try{return await e()}catch(e){t||o.warn(e);return}}function i(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function a(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("src");if(a&&i(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=(null==o?void 0:o.type)==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(a=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let l=null,c="u">typeof window?t=>{if(t.filename&&i(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",l=r}}:null;c&&window.addEventListener("error",c);let u=async(o,i)=>{clearTimeout(t),c&&window.removeEventListener("error",c);let a=()=>{if((null==i?void 0:i.type)==="error"){let t=Error((null==i?void 0:i.isTimeout)?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(t))}else l?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(l)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(i);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),t=setTimeout(()=>{u(null,{type:"error",isTimeout:!0})},a),{script:r,needAttach:o}}function s(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:s}=a({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});s&&document.head.appendChild(i)})}t.createLink=function(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("link");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("href"),l=n.getAttribute("rel");if(a&&i(a,e.url)&&l===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,n=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,n))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(a=t.timeout))),n&&o&&Object.keys(n).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,n[e])})}if(!o)return Promise.resolve().then(()=>{(null==e?void 0:e.cb)&&(null==e||e.cb())}),{link:r,needAttach:o};let l=(o,i)=>{t&&clearTimeout(t);let a=()=>{if((null==i?void 0:i.type)==="error"){let t=Error((null==i?void 0:i.isTimeout)?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(t))}else(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteLink:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),o)){let e=o(i);return a(),e}a()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},a),{link:r,needAttach:o}},t.createScript=a,t.isStaticResourcesEqual=i,t.loadScript=s,t.safeWrapper=n},47799(e,t,r){let o=r(38342),n="u">typeof ENV_TARGET?"web"===ENV_TARGET:"u">typeof window&&void 0!==window.document;function i(){return n}function a(){var e;return"u">typeof navigator&&(null==(e=navigator)?void 0:e.product)==="ReactNative"}function s(){try{if(i()&&window.localStorage)return!!localStorage.getItem(o.BROWSER_LOG_KEY)}catch(e){}return!1}function l(){return"u">typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||s()}t.getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},t.isBrowserEnv=i,t.isBrowserEnvValue=n,t.isDebugMode=l,t.isReactNativeEnv=a},66244(e,t,r){let o=r(38342),n=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function i(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function a(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(o.MANIFEST_EXT))}function s(e){if(!e)return{statsFileName:o.StatsFileName,manifestFileName:o.ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",i=".json",a=e=>e.endsWith(i)?e:`${e}${i}`,s=(e,t)=>e.replace(i,`${t}${i}`),l=r?a(r):o.ManifestFileName;return{statsFileName:n(t,r?s(l,"-stats"):o.StatsFileName),manifestFileName:n(t,l)}}t.generateSnapshotFromManifest=function(e){var t;let r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{remotes:a={},overrides:s={},version:l}=o,c=()=>"publicPath"in e.metaData?("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&l?i(l):e.metaData.publicPath:e.metaData.getPublicPath,u=Object.keys(s),d={};Object.keys(a).length||(d=(null==(t=e.remotes)?void 0:t.reduce((e,t)=>{let r,o=t.federationContainerName;return r=u.includes(o)?s[o]:"version"in t?t.version:t.entry,e[o]={matchedVersion:r},e},{}))||{}),Object.keys(a).forEach(e=>d[e]={matchedVersion:u.includes(e)?s[e]:a[e]});let{remoteEntry:{path:f,name:h,type:m},types:p={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:g},globalName:y,ssrRemoteEntry:E}=e.metaData,{exposes:S}=e,b={version:l||"",buildVersion:g,globalName:y,remoteEntry:n(f,h),remoteEntryType:m,remoteTypes:n(p.path,p.name),remoteTypesZip:p.zip||"",remoteTypesAPI:p.api||"",remotesInfo:d,shared:null==e?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:null==S?void 0:S.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if("publicPath"in e.metaData?(r={...b,publicPath:c()},"string"==typeof e.metaData.ssrPublicPath&&(r.ssrPublicPath=e.metaData.ssrPublicPath)):r={...b,getPublicPath:c()},E){let e=n(E.path,E.name);r.ssrRemoteEntry=e,r.ssrRemoteEntryType=E.type||"commonjs-module"}return r},t.getManifestFileName=s,t.inferAutoPublicPath=i,t.isManifestProvider=a,t.simpleJoinRemoteEntry=n},89850(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(38342),n=r(2413),i=r(70858),a=r(74945),s=r(38861),l=r(84101),c=r(2820),u=r(47799),d=r(33901),f=r(66244),h=r(72290),m=r(72802),p=r(60914),g=r(63651),y=r(94975);t.BROWSER_LOG_KEY=o.BROWSER_LOG_KEY,t.ENCODE_NAME_PREFIX=o.ENCODE_NAME_PREFIX,t.EncodedNameTransformMap=o.EncodedNameTransformMap,t.FederationModuleManifest=o.FederationModuleManifest,t.MANIFEST_EXT=o.MANIFEST_EXT,t.MFModuleType=o.MFModuleType,t.MODULE_DEVTOOL_IDENTIFIER=o.MODULE_DEVTOOL_IDENTIFIER,t.ManifestFileName=o.ManifestFileName,t.NameTransformMap=o.NameTransformMap,t.NameTransformSymbol=o.NameTransformSymbol,t.SEPARATOR=o.SEPARATOR,t.StatsFileName=o.StatsFileName,t.TEMP_DIR=o.TEMP_DIR,t.TreeShakingStatus=o.TreeShakingStatus,t.assert=d.assert,t.bindLoggerToCompiler=h.bindLoggerToCompiler,t.composeKeyWithSeparator=d.composeKeyWithSeparator,Object.defineProperty(t,"consumeSharedPlugin",{enumerable:!0,get:function(){return l.ConsumeSharedPlugin_exports}}),Object.defineProperty(t,"containerPlugin",{enumerable:!0,get:function(){return n.ContainerPlugin_exports}}),Object.defineProperty(t,"containerReferencePlugin",{enumerable:!0,get:function(){return i.ContainerReferencePlugin_exports}}),t.createInfrastructureLogger=h.createInfrastructureLogger,t.createLink=m.createLink,t.createLogger=h.createLogger,t.createModuleFederationConfig=y.createModuleFederationConfig,t.createScript=m.createScript,t.createScriptNode=p.createScriptNode,t.decodeName=d.decodeName,t.encodeName=d.encodeName,t.error=d.error,t.generateExposeFilename=d.generateExposeFilename,t.generateShareFilename=d.generateShareFilename,t.generateSnapshotFromManifest=f.generateSnapshotFromManifest,t.getManifestFileName=f.getManifestFileName,t.getProcessEnv=u.getProcessEnv,t.getResourceUrl=d.getResourceUrl,t.inferAutoPublicPath=f.inferAutoPublicPath,t.infrastructureLogger=h.infrastructureLogger,t.isBrowserEnv=u.isBrowserEnv,t.isBrowserEnvValue=u.isBrowserEnvValue,t.isDebugMode=u.isDebugMode,t.isManifestProvider=f.isManifestProvider,t.isReactNativeEnv=u.isReactNativeEnv,t.isRequiredVersion=d.isRequiredVersion,t.isStaticResourcesEqual=m.isStaticResourcesEqual,t.loadScript=m.loadScript,t.loadScriptNode=p.loadScriptNode,t.logger=h.logger,Object.defineProperty(t,"moduleFederationPlugin",{enumerable:!0,get:function(){return a.ModuleFederationPlugin_exports}}),t.normalizeOptions=g.normalizeOptions,t.parseEntry=d.parseEntry,Object.defineProperty(t,"provideSharedPlugin",{enumerable:!0,get:function(){return c.ProvideSharedPlugin_exports}}),t.safeToString=d.safeToString,t.safeWrapper=m.safeWrapper,Object.defineProperty(t,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),t.simpleJoinRemoteEntry=f.simpleJoinRemoteEntry,t.warn=d.warn},72290(e,t,r){let o=r(47799),n="[ Module Federation ]",i=console,a=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function s(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!a.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
4
- ${r.slice(0,5).join("\n")}`}catch{return}}var l=class{setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){let r=this.delegate,n=o.isDebugMode()?s():void 0,a=n?[...t,n]:t,l=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of l){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...a)}for(let e of l){let t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("log",t)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("warn",t)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("error",t)}success(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}info(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}ready(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.emit("info",t)}debug(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.isDebugMode()&&this.emit("debug",t)}constructor(e,t=i){this.prefix=e,this.delegate=t??i}};function c(e){return new l(e)}function u(e){let t=new l(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function d(e,t,r){if(e.__mf_infrastructure_logger__&&(null==t?void 0:t.getInfrastructureLogger))try{let o=t.getInfrastructureLogger(r);o&&"object"==typeof o&&("function"==typeof o.log||"function"==typeof o.info||"function"==typeof o.warn||"function"==typeof o.error)&&e.setDelegate(o)}catch{e.setDelegate(void 0)}}let f=c(n),h=u(n);t.bindLoggerToCompiler=d,t.createInfrastructureLogger=u,t.createLogger=c,t.infrastructureLogger=h,t.logger=f},60914(__unused_rspack_module,exports){let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let o=(e,t)=>r.lifecycle.fetch.emit(e,t),n=await o(e,t||{});return n&&n instanceof Response?n:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(null==loaderHook?void 0:loaderHook.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>(null==loaderHook?void 0:loaderHook.fetch)?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;let requireFn,res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
5
- })`,{filename,importModuleDynamically:(null==(_vm_constants=vm.constants)?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)??importNodeModule});requireFn=eval("require"),script.runInThisContext()(scriptContext.exports,scriptContext.module,requireFn,urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName)return void cb(void 0,exportedInterface[attrs.globalName]||exportedInterface);cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if((null==attrs?void 0:attrs.type)==="esm"||(null==attrs?void 0:attrs.type)==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,o)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,o)=>{createScriptNode(e,(e,n)=>{if(e)o(e);else{var i,a;let e=(null==t||null==(i=t.attrs)?void 0:i.globalName)||`__FEDERATION_${null==t||null==(a=t.attrs)?void 0:a.name}:custom__`;r(globalThis[e]=n)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:r,vm:o}=t,n=await (await r(e)).text(),i=new o.SourceTextModule(n,{importModuleDynamically:async(r,o)=>loadModule(new URL(r,e).href,t)});return esmModuleCache.set(e,i),await i.link(async r=>{let o=new URL(r,e).href;return await loadModule(o,t)}),i}exports.createScriptNode=createScriptNode,exports.loadScriptNode=loadScriptNode},63651(e,t){t.normalizeOptions=function(e,t,r){return function(o){if(!1===o)return!1;if(void 0===o)if(e)return t;else return!1;if(!0===o)return t;if(o&&"object"==typeof o)return{...t,...o};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof o}`)}}},84101(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},2413(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"ContainerPlugin_exports",{enumerable:!0,get:function(){return o}})},70858(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return o}})},74945(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return o}})},2820(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},38861(e,t,r){var o=r(21820).__exportAll({});Object.defineProperty(t,"SharePlugin_exports",{enumerable:!0,get:function(){return o}})},33901(e,t,r){let o=r(38342),n=r(47799),i="[ Federation Runtime ]",a=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.SEPARATOR,i=e.split(r),a="development"===n.getProcessEnv().NODE_ENV&&t,s="*",l=e=>e.startsWith("http")||e.includes(o.MANIFEST_EXT);if(i.length>=2){let[t,...o]=i;e.startsWith(r)&&(t=i.slice(0,2).join(r),o=[a||i.slice(2).join(r)]);let n=a||o.join(r);return l(n)?{name:t,entry:n}:{name:t,version:n||s}}if(1===i.length){let[e]=i;return a&&l(a)?{name:e,entry:a}:{name:e,version:a||s}}throw`Invalid entry value: ${e}`},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length?t.reduce((e,t)=>t?e?`${e}${o.SEPARATOR}${t}`:t:e,""):""},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{let n=r?".js":"";return`${t}${e.replace(RegExp(`${o.NameTransformSymbol.AT}`,"g"),o.NameTransformMap[o.NameTransformSymbol.AT]).replace(RegExp(`${o.NameTransformSymbol.HYPHEN}`,"g"),o.NameTransformMap[o.NameTransformSymbol.HYPHEN]).replace(RegExp(`${o.NameTransformSymbol.SLASH}`,"g"),o.NameTransformMap[o.NameTransformSymbol.SLASH])}${n}`}catch(e){throw e}},c=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.AT]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.AT]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.SLASH]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.SLASH]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.HYPHEN]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},u=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),l(r,"__federation_expose_",t)},d=(e,t)=>e?l(e,"__federation_shared_",t):"",f=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!n.isBrowserEnv()&&!n.isReactNativeEnv()&&"ssrPublicPath"in e&&"string"==typeof e.ssrPublicPath?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},h=e=>{throw Error(`${i}: ${e}`)},m=e=>{console.warn(`${i}: ${e}`)};function p(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let g=/^([\d^=v<>~]|[*xX]$)/;function y(e){return g.test(e)}t.assert=(e,t)=>{e||h(t)},t.composeKeyWithSeparator=s,t.decodeName=c,t.encodeName=l,t.error=h,t.generateExposeFilename=u,t.generateShareFilename=d,t.getResourceUrl=f,t.isRequiredVersion=y,t.parseEntry=a,t.safeToString=p,t.warn=m},64975(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,c=i(t),u=0,d=c.length;u<d;u++)l=c[u],s.call(e,l)||l===r||o(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(a=n(t,l))||a.enumerable});return e};t.__toESM=(e,t,n)=>(n=null!=e?r(a(e)):{},l(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e))},98057(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},45509(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},52664(e,t,r){let o=r(98057),n=r(47188),i=r(13957),a=r(15589),s=r(76077);t.consumes=function(e){n.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:c,chunkMapping:u,moduleToHandlerMapping:d}=e;o.attachShareScopeMap(c),c.o(u,t)&&u[t].forEach(e=>{if(c.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,c.m[e]=r=>{var o;delete c.c[e];let n=t(),{shareInfo:i}=d[e];if((null==i||null==(o=i.shareConfig)?void 0:o.layer)&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},o=t=>{delete l[e],c.m[e]=r=>{throw delete c.c[e],t}};try{let n=c.federation.instance;if(!n)throw Error("Federation instance not found!");let{shareKey:u,getter:f,shareInfo:h,treeShakingGetter:m}=d[e],p=i.getUsedExports(c,u),g={...h};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),p&&(g.treeShaking={usedExports:p,useIn:[n.options.name]});let y=n.loadShare(u,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof f)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:u}));return(null==m?void 0:m())||f()}return e});y.then?r.push(l[e]=y.then(t).catch(o)):t(y)}catch(e){o(e)}})}},15589(e,t){t.RUNTIME_012="RUNTIME-012"},76077(e,t){let r=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`;t.getShortErrorMsg=(e,t,o,n)=>{let i=[`${[t[e]]} #${e}`];return o&&i.push(`args: ${JSON.stringify(o)}`),i.push(r(e)),n&&i.push(`Original Error Message:
6
- ${n}`),i.join("\n")}},59651(e,t){t.getSharedFallbackGetter=e=>{let{shareKey:t,factory:r,version:o,webpackRequire:n,libraryType:i="global"}=e,{runtime:a,instance:s,bundlerRuntime:l,sharedFallback:c}=n.federation;if(!c)return r;let u=c[t];if(!u)return r;let d=o?u.find(e=>e[1]===o):u[0];if(!d)throw Error(`No fallback item found for shareKey: ${t} and version: ${o}`);return()=>a.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:d[2],entry:`${n.p}${d[0]}`,type:i,entryGlobalName:d[2],shareScope:"default"}}).then(e=>{if(!e)throw Error(`Failed to load fallback entry for shareKey: ${t} and version: ${o}`);return e.init(n.federation.instance,l).then(()=>e.get())})}},13957(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},31531(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let o=r(64975),n=r(98057),i=r(39490),a=r(52664),s=r(47501),l=r(55331),c=r(34476),u=r(47391),d=r(59651),f=r(79706),h={runtime:f=o.__toESM(f),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:c.initContainerEntry,init:u.init,getSharedFallbackGetter:d.getSharedFallbackGetter},attachShareScopeMap:n.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,p=h.initOptions,g=h.bundlerRuntime,y=h.bundlerRuntimeOptions;t.attachShareScopeMap=n.attachShareScopeMap,t.bundlerRuntime=g,t.bundlerRuntimeOptions=y,t.default=h,t.initOptions=p,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return f}})},47391(e,t,r){let o=r(64975),n=r(79706),i=r(86173);i=o.__toESM(i),t.init=function(e){var t;let{webpackRequire:o}=e,{initOptions:a,runtime:s,sharedFallback:l,bundlerRuntime:c,libraryType:u}=o.federation;if(!a)throw Error("initOptions is required!");let d=function(){return{name:"tree-shake-plugin",beforeInit(e){let{userOptions:t,origin:a,options:s}=e,d=t.version||s.version;if(!l)return e;let f=t.shared||{},h=[];Object.keys(f).forEach(e=>{(Array.isArray(f[e])?f[e]:[f[e]]).forEach(t=>{if(h.push([e,t]),"get"in t){var r;(r=t).treeShaking||(r.treeShaking={}),t.treeShaking.get=t.get,t.get=c.getSharedFallbackGetter({shareKey:e,factory:t.get,webpackRequire:o,libraryType:u,version:t.version})}})});let m=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:a.name,version:d});if(!m||!("shared"in m))return e;Object.keys(s.shared||{}).forEach(e=>{s.shared[e].forEach(t=>{h.push([e,t])})});let p=(e,t)=>{let o=m.shared.find(t=>t.sharedName===e);if(!o)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:s,secondarySharedTreeShakingEntry:l,treeShakingStatus:c}=o;i.status!==c&&(i.status=c,l&&u&&s&&(i.get=async()=>{let e=await (0,n.getRemoteEntry)({origin:a,remoteInfo:{name:s,entry:l,type:u,entryGlobalName:s,shareScope:"default"}});return await e.init(a,r.federation.bundlerRuntime),e.get()}))};return h.forEach(e=>{let[t,r]=e;p(t,r)}),e}}};return(t=a).plugins||(t.plugins=[]),a.plugins.push(d()),s.init(a)}},34476(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:o,shareScopeKey:n,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=null==i?void 0:i.shareScopeKeys,l=null==i?void 0:i.shareScopeMap;if(n&&"string"!=typeof n)n.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})});else{let e=n||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:(null==i?void 0:i.shareScopeMap)||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(n))?t.federation.initOptions.shared?t.I(n,o):Promise.all(n.map(e=>t.I(e,o))).then(()=>!0):t.I(n||"default",o)}},47501(e,t,r){let o=r(98057),n=r(45509);t.initializeSharing=function(e){let{shareScopeName:t,webpackRequire:r,initPromises:i,initTokens:a,initScope:s}=e,l=Array.isArray(t)?t:[t];var c=[],u=function(e){s||(s=[]);let l=r.federation.instance;var c=a[e];if(c||(c=a[e]={from:l.name}),s.indexOf(c)>=0)return;s.push(c);let u=i[e];if(u)return u;var d=e=>"u">typeof console&&console.warn&&console.warn(e),f=o=>{var n=e=>d("Initialization of sharing external failed: "+e);try{var i=r(o);if(!i)return;var a=o=>o&&o.init&&o.init(r.S[e],s,{shareScopeMap:r.S||{},shareScopeKeys:t});if(i.then)return h.push(i.then(a,n));var l=a(i);if(l&&"boolean"!=typeof l&&l.then)return h.push(l.catch(n))}catch(e){n(e)}};let h=l.initializeSharing(e,{strategy:l.options.shareStrategy,initScope:s,from:"build"});o.attachShareScopeMap(r);let m=r.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],r=m.idToExternalAndNameMapping[e][2];if(t.length>1)f(r);else if(1===t.length){let e=t[0];n.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||f(r)}}),h.length)?i[e]=Promise.all(h).then(()=>i[e]=!0):i[e]=!0};return l.forEach(e=>{c.push(u(e))}),Promise.all(c).then(()=>!0)}},55331(e,t,r){let o=r(47188),n=r(13957);function i(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:o,asyncLoad:i}=e,a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=n.getUsedExports(o,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}t.installInitialConsumes=function(e){o.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:n,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{let o=()=>i({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s});l.push([e,o])});let c=(e,o)=>{r.m[e]=i=>{var a;n[e]=0,delete r.c[e];let s=o();if("function"!=typeof s)throw Error(`Shared module is not available for eager consumption: ${e}`);let l=s(),{shareInfo:c}=t[e];if((null==c||null==(a=c.shareConfig)?void 0:a.layer)&&l&&"object"==typeof l)try{l.hasOwnProperty("layer")&&void 0!==l.layer||(l.layer=c.shareConfig.layer)}catch(e){}i.exports=l}};if(s)return Promise.all(l.map(async e=>{let[t,r]=e,o=await r();c(t,()=>o)}));l.forEach(e=>{let[t,r]=e;c(t,r)})}},39490(e,t,r){r(64975);let o=r(98057),n=r(45509),i=r(47188),a=r(89850);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;o.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let o=c[e],i=u[e]||[];if(t.indexOf(o)>=0)return;if(t.push(o),o.p)return r.push(o.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
7
- while loading "${o[1]}" from ${o[2]}`),s.m[e]=()=>{throw t},o.p=0},d=(e,t,n,i,a,s)=>{try{let c=e(t,n);if(!c||!c.then)return a(c,i,s);{let e=c.then(e=>a(e,i),l);if(!s)return e;r.push(o.p=e)}}catch(e){l(e)}},f=(e,t,r)=>e?d(s.I,o[0],0,e,h,r):l();var h=(e,r,n)=>d(r.get,o[1],t,0,m,n),m=t=>{o.p=1,s.m[e]=e=>{e.exports=t()}};let p=()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+o[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(o[0])?o[0]:[o[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}};1===i.length&&n.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?d(p,o[2],0,0,m,1):d(s,o[2],0,0,f,1)})}},47188(e,t){function r(e){var t,r,o,n,i;let{webpackRequire:a,idToExternalAndNameMapping:s={},idToRemoteMap:l={},chunkMapping:c={}}=e,{remotesLoadingData:u}=a,d=null==(o=a.federation)||null==(r=o.bundlerRuntimeOptions)||null==(t=r.remotes)?void 0:t.remoteInfos;if(!u||u._updated||!d)return;let{chunkMapping:f,moduleIdToRemoteDataMapping:h}=u;if(f&&h){for(let[e,t]of Object.entries(h))if(s[e]||(s[e]=[t.shareScope,t.name,t.externalModuleId]),!l[e]&&d[t.remoteName]){let r=d[t.remoteName];(n=l)[i=e]||(n[i]=[]),r.forEach(t=>{l[e].includes(t)||l[e].push(t)})}c&&Object.entries(f).forEach(e=>{let[t,r]=e;c[t]||(c[t]=[]),r.forEach(e=>{c[t].includes(e)||c[t].push(e)})}),u._updated=1}}t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:o,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(o&&!o._updated){let{moduleIdToConsumeDataMapping:n={},initialConsumes:l=[],chunkMapping:c={}}=o;if(Object.entries(n).forEach(e=>{let[o,n]=e;r[o]||(r[o]={getter:i?null==a?void 0:a.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(c).forEach(e=>{let[r,o]=e;t[r]||(t[r]=[]),o.forEach(e=>{t[r].includes(e)||t[r].push(e)})})}o._updated=1}if(n&&!n._updated){let{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let o of t)if("object"==typeof o&&null!==o){let{name:t,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={requiredVersion:`^${n}`},d=function(e){return void 0!==e};d(s)&&(u.singleton=s),d(l)&&(u.requiredVersion=l),d(a)&&(u.eager=a),d(c)&&(u.strictVersion=c);let f={version:n,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(f):r[t]=[f]}e.instance.registerShared(r),n._updated=1}},t.updateRemoteOptions=r},94335(e,t,r){"use strict";var o,n,i,a,s,l,c,u,d,f,h,m,p=r(31531),g=r.n(p);let y=[].filter(e=>{let{plugin:t}=e;return t}).map(e=>{let{plugin:t,params:r}=e;return t(r)}),E={},S="HistogramChart",b="version-first";if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{var o,n,i,a,s,l;let c=r();Array.isArray(c)?(null!=(i=(o=e)[n=t])||(o[n]=[]),e[t].push(...c)):"object"==typeof c&&null!==c&&(null!=(l=(a=e)[s=t])||(a[s]={}),Object.assign(e[t],c))},p=(e,t,r)=>{var o,n,i;null!=(i=(o=e)[n=t])||(o[n]=r())},_=null!=(o=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?o:{},I=null!=(n=null==(c=r.remotesLoadingData)?void 0:c.moduleIdToRemoteDataMapping)?n:{},R=null!=(i=null==(u=r.initializeSharingData)?void 0:u.scopeToSharingDataMapping)?i:{},v=null!=(a=null==(d=r.consumesLoadingData)?void 0:d.chunkMapping)?a:{},N=null!=(s=null==(f=r.consumesLoadingData)?void 0:f.moduleIdToConsumeDataMapping)?s:{},T={},M=[],A={},O=null==(h=r.initializeExposesData)?void 0:h.shareScope;for(let e in g())r.federation[e]=g()[e];p(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(N))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),p(r.federation,"initOptions",()=>({})),p(r.federation.initOptions,"name",()=>S),p(r.federation.initOptions,"shareStrategy",()=>b),p(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(R))for(let o of r)if("object"==typeof o&&null!==o){let{name:r,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={},d=function(e){return void 0!==e};d(s)&&(u.singleton=s),d(l)&&(u.requiredVersion=l),d(a)&&(u.eager=a),d(c)&&(u.strictVersion=c);let f={version:n,scope:[t],shareConfig:u,get:i};e[r]?e[r].push(f):e[r]=[f]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(E).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),p(r.federation,"bundlerRuntimeOptions",()=>({})),p(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),p(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>_),p(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>E),p(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(I))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),p(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(I)){let o=E[r.remoteName];o&&(e[t]=o)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:_,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:v,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:T,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:M,initTokens:A,webpackRequire:r})),e(r,"initContainer",(e,t,o)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:o,shareScopeKey:O,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var o=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(o,e)?o[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(m=r.consumesLoadingData)?void 0:m.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:T,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(23362),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(312|4|460|602)$/.test(e)},rootOutputDir:"../../"})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>"__mf/js/async/"+e+"."+({121:"80bade4a",17:"c58aeb97",392:"61cbfb70",470:"0d31a960",535:"9e33e59d",888:"a6ffb759",941:"4f06d1da",953:"17304f5a",963:"d584ed77"})[e]+".js"})(),(()=>{__webpack_require__.miniCssF=e=>"__mf/css/async/"+e+".85c2cbf6.css"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="HistogramChart:";__webpack_require__.l=function(r,o,n,i){if(e[r])return void e[r].push(o);if(void 0!==n)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-rspack")==t+n){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-rspack",t+n),a.src=r),e[r]=[o];var d=function(t,o){a.onerror=a.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(function(e){return e(o)}),t)return t(o)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@perses-dev/components",version:"0.54.0-beta.8",factory:()=>Promise.all([__webpack_require__.e("17"),__webpack_require__.e("953"),__webpack_require__.e("312"),__webpack_require__.e("4"),__webpack_require__.e("460"),__webpack_require__.e("602")]).then(()=>()=>__webpack_require__(8320)),eager:0,singleton:1},{name:"@perses-dev/spec",version:"0.2.0-beta.6",factory:()=>Promise.all([__webpack_require__.e("535"),__webpack_require__.e("888")]).then(()=>()=>__webpack_require__(25706)),eager:0,singleton:1},{name:"immer",version:"10.2.0",factory:()=>__webpack_require__.e("963").then(()=>()=>__webpack_require__(38662)),eager:0,singleton:1},{name:"lodash",version:"4.18.1",factory:()=>__webpack_require__.e("392").then(()=>()=>__webpack_require__(17243)),eager:0,singleton:1},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([__webpack_require__.e("470"),__webpack_require__.e("312")]).then(()=>()=>__webpack_require__(78325)),eager:0,singleton:1,requiredVersion:"18.2.0"},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("121").then(()=>()=>__webpack_require__(63696)),eager:0,singleton:1,requiredVersion:"18.2.0"}]},uniqueName:"HistogramChart"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=(e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../"})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{312:["70451"],4:["20231"],602:["43945"],460:["25696","40224"]},moduleIdToConsumeDataMapping:{70451:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("121").then(()=>()=>__webpack_require__(63696))},43945:{shareScope:"default",shareKey:"immer",import:"immer",requiredVersion:"^10.1.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("963").then(()=>()=>__webpack_require__(38662))},40224:{shareScope:"default",shareKey:"lodash",import:"lodash",requiredVersion:"^4.17.21",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("392").then(()=>()=>__webpack_require__(17243))},20231:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.2.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("470").then(()=>()=>__webpack_require__(78325))},25696:{shareScope:"default",shareKey:"@perses-dev/spec",import:"@perses-dev/spec",requiredVersion:"0.2.0-beta.6",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("535").then(()=>()=>__webpack_require__(25706))}},initialConsumes:[]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{if("u">typeof document){var e=function(e,t,r,o,n){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",__webpack_require__.nc&&(i.nonce=__webpack_require__.nc),i.href=t;var a=function(r){if(i.onerror=i.onload=null,"load"===r.type)o();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),n(l)}};return i.onerror=i.onload=a,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var n=r[o],i=n.getAttribute("data-href")||n.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===n.rel&&(i===e||i===t))return n}for(var a=document.getElementsByTagName("style"),o=0;o<a.length;o++){var n=a[o],i=n.getAttribute("data-href");if(i===e||i===t)return n}},r=function(r){return new Promise(function(o,n){var i=__webpack_require__.miniCssF(r),a=__webpack_require__.p+i;if(t(i,a))return o();e(r,a,null,o,n)})},o={889:0};__webpack_require__.f.miniCss=function(e,t){var n={17:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then(function(){o[e]=0},function(t){throw delete o[e],t}))}}})(),(()=>{var e={889:0};__webpack_require__.f.j=function(t,r){var o=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(312|4|460|602)$/.test(t))e[t]=0;else{var n=new Promise((r,n)=>o=e[t]=[r,n]);r.push(o[2]=n);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(r){if(__webpack_require__.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,o[1](a)}};__webpack_require__.l(i,s,"chunk-"+t,t)}};var t=(t,r)=>{var o,n,[i,a,s]=r,l=0;if(i.some(t=>0!==e[t])){for(o in a)__webpack_require__.o(a,o)&&(__webpack_require__.m[o]=a[o]);s&&s(__webpack_require__)}for(t&&t(r);l<i.length;l++)n=i[l],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=self["chunk_HistogramChart "]=self["chunk_HistogramChart "]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(94335)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();