@module-federation/enhanced
Version:
This package provides enhanced features for module federation.
1,466 lines (1,464 loc) • 113 kB
JavaScript
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
//#region src/schemas/container/ModuleFederationPlugin.check.ts
var ModuleFederationPlugin_check_exports = /* @__PURE__ */ require_runtime.__exportAll({
default: () => ModuleFederationPlugin_check_default,
validate: () => validate
});
function o(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
if (!Array.isArray(e)) return o.errors = [{ params: { type: "array" } }], !1;
{
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = 0;
if ("string" != typeof t) return o.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return o.errors = [{ params: {} }], !1;
if (0 !== n) break;
}
}
return o.errors = null, !0;
}
function i(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let a = null, l = 0;
if (0 === l) {
if (!e || "object" != typeof e || Array.isArray(e)) return i.errors = [{ params: { type: "object" } }], !1;
{
let r;
if (void 0 === e.import && (r = "import")) return i.errors = [{ params: { missingProperty: r } }], !1;
{
const r = l;
for (const t in e) if ("import" !== t && "name" !== t) return i.errors = [{ params: { additionalProperty: t } }], !1;
if (r === l) {
if (void 0 !== e.import) {
let r = e.import;
const n = l, u = l;
let y = !1;
const c = l;
if (l == l) if ("string" == typeof r) {
if (r.length < 1) {
const e = { params: {} };
null === a ? a = [e] : a.push(e), l++;
}
} else {
const e = { params: { type: "string" } };
null === a ? a = [e] : a.push(e), l++;
}
var p = c === l;
if (y = y || p, !y) {
const n = l;
o(r, {
instancePath: t + "/import",
parentData: e,
parentDataProperty: "import",
rootData: s
}) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), p = n === l, y = y || p;
}
if (!y) {
const e = { params: {} };
return null === a ? a = [e] : a.push(e), l++, i.errors = a, !1;
}
l = u, null !== a && (u ? a.length = u : a = null);
var f = n === l;
} else f = !0;
if (f) if (void 0 !== e.name) {
const t = l;
if ("string" != typeof e.name) return i.errors = [{ params: { type: "string" } }], !1;
f = t === l;
} else f = !0;
}
}
}
}
return i.errors = a, 0 === l;
}
function a(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let l = null, p = 0;
if (0 === p) {
if (!e || "object" != typeof e || Array.isArray(e)) return a.errors = [{ params: { type: "object" } }], !1;
for (const r in e) {
let n = e[r];
const u = p, y = p;
let c = !1;
const m = p;
i(n, {
instancePath: t + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: e,
parentDataProperty: r,
rootData: s
}) || (l = null === l ? i.errors : l.concat(i.errors), p = l.length);
var f = m === p;
if (c = c || f, !c) {
const i = p;
if (p == p) if ("string" == typeof n) {
if (n.length < 1) {
const e = { params: {} };
null === l ? l = [e] : l.push(e), p++;
}
} else {
const e = { params: { type: "string" } };
null === l ? l = [e] : l.push(e), p++;
}
if (f = i === p, c = c || f, !c) {
const i = p;
o(n, {
instancePath: t + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: e,
parentDataProperty: r,
rootData: s
}) || (l = null === l ? o.errors : l.concat(o.errors), p = l.length), f = i === p, c = c || f;
}
}
if (!c) {
const e = { params: {} };
return null === l ? l = [e] : l.push(e), p++, a.errors = l, !1;
}
if (p = y, null !== l && (y ? l.length = y : l = null), u !== p) break;
}
}
return a.errors = l, 0 === p;
}
function l(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
const p = i;
let f = !1;
const u = i;
if (i === u) if (Array.isArray(e)) {
const r = e.length;
for (let n = 0; n < r; n++) {
let r = e[n];
const l = i, p = i;
let f = !1;
const u = i;
if (i == i) if ("string" == typeof r) {
if (r.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var y = u === i;
if (f = f || y, !f) {
const l = i;
a(r, {
instancePath: t + "/" + n,
parentData: e,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? a.errors : o.concat(a.errors), i = o.length), y = l === i, f = f || y;
}
if (f) i = p, null !== o && (p ? o.length = p : o = null);
else {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
if (l !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var c = u === i;
if (f = f || c, !f) {
const l = i;
a(e, {
instancePath: t,
parentData: r,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? a.errors : o.concat(a.errors), i = o.length), c = l === i, f = f || c;
}
if (!f) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, l.errors = o, !1;
}
return i = p, null !== o && (p ? o.length = p : o = null), l.errors = o, 0 === i;
}
function f(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
const a = i;
let l = !1;
const p = i;
if ("string" != typeof e) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var u = p === i;
if (l = l || u, !l) {
const t = i;
if (i == i) if (e && "object" == typeof e && !Array.isArray(e)) {
const t = i;
for (const t in e) if ("amd" !== t && "commonjs" !== t && "commonjs2" !== t && "root" !== t) {
const e = { params: { additionalProperty: t } };
null === o ? o = [e] : o.push(e), i++;
break;
}
if (t === i) {
if (void 0 !== e.amd) {
const t = i;
if ("string" != typeof e.amd) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var y = t === i;
} else y = !0;
if (y) {
if (void 0 !== e.commonjs) {
const t = i;
if ("string" != typeof e.commonjs) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
y = t === i;
} else y = !0;
if (y) {
if (void 0 !== e.commonjs2) {
const t = i;
if ("string" != typeof e.commonjs2) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
y = t === i;
} else y = !0;
if (y) if (void 0 !== e.root) {
const t = i;
if ("string" != typeof e.root) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
y = t === i;
} else y = !0;
}
}
}
} else {
const e = { params: { type: "object" } };
null === o ? o = [e] : o.push(e), i++;
}
u = t === i, l = l || u;
}
if (!l) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, f.errors = o, !1;
}
return i = a, null !== o && (a ? o.length = a : o = null), f.errors = o, 0 === i;
}
function u(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
const a = i;
let l = !1;
const p = i;
if (i === p) if (Array.isArray(e)) if (e.length < 1) {
const e = { params: { limit: 1 } };
null === o ? o = [e] : o.push(e), i++;
} else {
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = i;
if (i === n) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (n !== i) break;
}
}
else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var f = p === i;
if (l = l || f, !l) {
const t = i;
if (i === t) if ("string" == typeof e) {
if (e.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (f = t === i, l = l || f, !l) {
const t = i;
if (i == i) if (e && "object" == typeof e && !Array.isArray(e)) {
const t = i;
for (const t in e) if ("amd" !== t && "commonjs" !== t && "root" !== t) {
const e = { params: { additionalProperty: t } };
null === o ? o = [e] : o.push(e), i++;
break;
}
if (t === i) {
if (void 0 !== e.amd) {
let t = e.amd;
const r = i;
if (i === r) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var y = r === i;
} else y = !0;
if (y) {
if (void 0 !== e.commonjs) {
let t = e.commonjs;
const r = i;
if (i === r) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
y = r === i;
} else y = !0;
if (y) if (void 0 !== e.root) {
let t = e.root;
const r = i, n = i;
let s = !1;
const a = i;
if (i === a) if (Array.isArray(t)) {
const e = t.length;
for (let r = 0; r < e; r++) {
let e = t[r];
const n = i;
if (i === n) if ("string" == typeof e) {
if (e.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (n !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var c = a === i;
if (s = s || c, !s) {
const e = i;
if (i === e) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
c = e === i, s = s || c;
}
if (s) i = n, null !== o && (n ? o.length = n : o = null);
else {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
y = r === i;
} else y = !0;
}
}
} else {
const e = { params: { type: "object" } };
null === o ? o = [e] : o.push(e), i++;
}
f = t === i, l = l || f;
}
}
if (!l) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, u.errors = o, !1;
}
return i = a, null !== o && (a ? o.length = a : o = null), u.errors = o, 0 === i;
}
function y(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
if (0 === i) {
if (!e || "object" != typeof e || Array.isArray(e)) return y.errors = [{ params: { type: "object" } }], !1;
{
let r;
if (void 0 === e.type && (r = "type")) return y.errors = [{ params: { missingProperty: r } }], !1;
{
const r = i;
for (const t in e) if ("amdContainer" !== t && "auxiliaryComment" !== t && "export" !== t && "name" !== t && "type" !== t && "umdNamedDefine" !== t) return y.errors = [{ params: { additionalProperty: t } }], !1;
if (r === i) {
if (void 0 !== e.amdContainer) {
let t = e.amdContainer;
const r = i;
if (i == i) {
if ("string" != typeof t) return y.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return y.errors = [{ params: {} }], !1;
}
var a = r === i;
} else a = !0;
if (a) {
if (void 0 !== e.auxiliaryComment) {
const r = i;
f(e.auxiliaryComment, {
instancePath: t + "/auxiliaryComment",
parentData: e,
parentDataProperty: "auxiliaryComment",
rootData: s
}) || (o = null === o ? f.errors : o.concat(f.errors), i = o.length), a = r === i;
} else a = !0;
if (a) {
if (void 0 !== e.export) {
let t = e.export;
const r = i, n = i;
let s = !1;
const p = i;
if (i === p) if (Array.isArray(t)) {
const e = t.length;
for (let r = 0; r < e; r++) {
let e = t[r];
const n = i;
if (i === n) if ("string" == typeof e) {
if (e.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (n !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var l = p === i;
if (s = s || l, !s) {
const e = i;
if (i === e) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
l = e === i, s = s || l;
}
if (!s) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, y.errors = o, !1;
}
i = n, null !== o && (n ? o.length = n : o = null), a = r === i;
} else a = !0;
if (a) {
if (void 0 !== e.name) {
const r = i;
u(e.name, {
instancePath: t + "/name",
parentData: e,
parentDataProperty: "name",
rootData: s
}) || (o = null === o ? u.errors : o.concat(u.errors), i = o.length), a = r === i;
} else a = !0;
if (a) {
if (void 0 !== e.type) {
let t = e.type;
const r = i, n = i;
let s = !1;
const l = i;
if ("var" !== t && "module" !== t && "assign" !== t && "assign-properties" !== t && "this" !== t && "window" !== t && "self" !== t && "global" !== t && "commonjs" !== t && "commonjs2" !== t && "commonjs-module" !== t && "commonjs-static" !== t && "amd" !== t && "amd-require" !== t && "umd" !== t && "umd2" !== t && "jsonp" !== t && "system" !== t) {
const e = { params: { allowedValues: p.anyOf[0].enum } };
null === o ? o = [e] : o.push(e), i++;
}
var c = l === i;
if (s = s || c, !s) {
const e = i;
if ("string" != typeof t) {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
c = e === i, s = s || c;
}
if (!s) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, y.errors = o, !1;
}
i = n, null !== o && (n ? o.length = n : o = null), a = r === i;
} else a = !0;
if (a) if (void 0 !== e.umdNamedDefine) {
const t = i;
if ("boolean" != typeof e.umdNamedDefine) return y.errors = [{ params: { type: "boolean" } }], !1;
a = t === i;
} else a = !0;
}
}
}
}
}
}
}
}
return y.errors = o, 0 === i;
}
function c(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
if (!Array.isArray(e)) return c.errors = [{ params: { type: "array" } }], !1;
{
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = 0;
if ("string" != typeof t) return c.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return c.errors = [{ params: {} }], !1;
if (0 !== n) break;
}
}
return c.errors = null, !0;
}
function m(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
if (0 === i) {
if (!e || "object" != typeof e || Array.isArray(e)) return m.errors = [{ params: { type: "object" } }], !1;
{
let r;
if (void 0 === e.external && (r = "external")) return m.errors = [{ params: { missingProperty: r } }], !1;
{
const r = i;
for (const t in e) if ("external" !== t && "shareScope" !== t) return m.errors = [{ params: { additionalProperty: t } }], !1;
if (r === i) {
if (void 0 !== e.external) {
let r = e.external;
const n = i, p = i;
let f = !1;
const u = i;
if (i == i) if ("string" == typeof r) {
if (r.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var a = u === i;
if (f = f || a, !f) {
const n = i;
c(r, {
instancePath: t + "/external",
parentData: e,
parentDataProperty: "external",
rootData: s
}) || (o = null === o ? c.errors : o.concat(c.errors), i = o.length), a = n === i, f = f || a;
}
if (!f) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, m.errors = o, !1;
}
i = p, null !== o && (p ? o.length = p : o = null);
var l = n === i;
} else l = !0;
if (l) if (void 0 !== e.shareScope) {
let t = e.shareScope;
const r = i, n = i;
let s = !1;
const a = i;
if (i === a) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var p = a === i;
if (s = s || p, !s) {
const e = i;
if (i === e) if (Array.isArray(t)) {
const e = t.length;
for (let r = 0; r < e; r++) {
let e = t[r];
const n = i;
if (i === n) if ("string" == typeof e) {
if (e.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (n !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
p = e === i, s = s || p;
}
if (!s) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, m.errors = o, !1;
}
i = n, null !== o && (n ? o.length = n : o = null), l = r === i;
} else l = !0;
}
}
}
}
return m.errors = o, 0 === i;
}
function d(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
if (0 === i) {
if (!e || "object" != typeof e || Array.isArray(e)) return d.errors = [{ params: { type: "object" } }], !1;
for (const r in e) {
let n = e[r];
const l = i, p = i;
let f = !1;
const u = i;
m(n, {
instancePath: t + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: e,
parentDataProperty: r,
rootData: s
}) || (o = null === o ? m.errors : o.concat(m.errors), i = o.length);
var a = u === i;
if (f = f || a, !f) {
const l = i;
if (i == i) if ("string" == typeof n) {
if (n.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
if (a = l === i, f = f || a, !f) {
const l = i;
c(n, {
instancePath: t + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: e,
parentDataProperty: r,
rootData: s
}) || (o = null === o ? c.errors : o.concat(c.errors), i = o.length), a = l === i, f = f || a;
}
}
if (!f) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, d.errors = o, !1;
}
if (i = p, null !== o && (p ? o.length = p : o = null), l !== i) break;
}
}
return d.errors = o, 0 === i;
}
function g(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
const a = i;
let l = !1;
const p = i;
if (i === p) if (Array.isArray(e)) {
const r = e.length;
for (let n = 0; n < r; n++) {
let r = e[n];
const a = i, l = i;
let p = !1;
const u = i;
if (i == i) if ("string" == typeof r) {
if (r.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var f = u === i;
if (p = p || f, !p) {
const a = i;
d(r, {
instancePath: t + "/" + n,
parentData: e,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? d.errors : o.concat(d.errors), i = o.length), f = a === i, p = p || f;
}
if (p) i = l, null !== o && (l ? o.length = l : o = null);
else {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
if (a !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var u = p === i;
if (l = l || u, !l) {
const a = i;
d(e, {
instancePath: t,
parentData: r,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? d.errors : o.concat(d.errors), i = o.length), u = a === i, l = l || u;
}
if (!l) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, g.errors = o, !1;
}
return i = a, null !== o && (a ? o.length = a : o = null), g.errors = o, 0 === i;
}
function P(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: o = e } = {}) {
let i = null, a = 0;
if (0 === a) {
if (!e || "object" != typeof e || Array.isArray(e)) return P.errors = [{ params: { type: "object" } }], !1;
{
const t = a;
for (const t in e) if (!s.call(h.properties, t)) return P.errors = [{ params: { additionalProperty: t } }], !1;
if (t === a) {
if (void 0 !== e.eager) {
const t = a;
if ("boolean" != typeof e.eager) return P.errors = [{ params: { type: "boolean" } }], !1;
var l = t === a;
} else l = !0;
if (l) {
if (void 0 !== e.exclude) {
let t = e.exclude;
const r = a, n = a, s = a;
let o = !1;
const u = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.request && (e = "request")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
var p = u === a;
if (o = o || p, !o) {
const e = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.version && (e = "version")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
if (p = e === a, o = o || p, !o) {
const e = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.fallbackVersion && (e = "fallbackVersion")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
p = e === a, o = o || p;
}
}
if (!o) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
if (a = s, null !== i && (s ? i.length = s : i = null), a === n) {
if (!t || "object" != typeof t || Array.isArray(t)) return P.errors = [{ params: { type: "object" } }], !1;
{
const e = a;
for (const e in t) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return P.errors = [{ params: { additionalProperty: e } }], !1;
if (e === a) {
if (void 0 !== t.request) {
let e = t.request;
const r = a;
if ("string" != typeof e && (!e || "object" != typeof e || Array.isArray(e))) return P.errors = [{ params: { type: b.properties.request.type } }], !1;
var f = r === a;
} else f = !0;
if (f) {
if (void 0 !== t.version) {
const e = a;
if ("string" != typeof t.version) return P.errors = [{ params: { type: "string" } }], !1;
f = e === a;
} else f = !0;
if (f) if (void 0 !== t.fallbackVersion) {
const e = a;
if ("string" != typeof t.fallbackVersion) return P.errors = [{ params: { type: "string" } }], !1;
f = e === a;
} else f = !0;
}
}
}
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.include) {
let t = e.include;
const r = a, n = a, s = a;
let o = !1;
const p = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.request && (e = "request")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
var u = p === a;
if (o = o || u, !o) {
const e = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.version && (e = "version")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
if (u = e === a, o = o || u, !o) {
const e = a;
if (t && "object" == typeof t && !Array.isArray(t)) {
let e;
if (void 0 === t.fallbackVersion && (e = "fallbackVersion")) {
const t = { params: { missingProperty: e } };
null === i ? i = [t] : i.push(t), a++;
}
}
u = e === a, o = o || u;
}
}
if (!o) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
if (a = s, null !== i && (s ? i.length = s : i = null), a === n) {
if (!t || "object" != typeof t || Array.isArray(t)) return P.errors = [{ params: { type: "object" } }], !1;
{
const e = a;
for (const e in t) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return P.errors = [{ params: { additionalProperty: e } }], !1;
if (e === a) {
if (void 0 !== t.request) {
let e = t.request;
const r = a;
if ("string" != typeof e && (!e || "object" != typeof e || Array.isArray(e))) return P.errors = [{ params: { type: b.properties.request.type } }], !1;
var y = r === a;
} else y = !0;
if (y) {
if (void 0 !== t.version) {
const e = a;
if ("string" != typeof t.version) return P.errors = [{ params: { type: "string" } }], !1;
y = e === a;
} else y = !0;
if (y) if (void 0 !== t.fallbackVersion) {
const e = a;
if ("string" != typeof t.fallbackVersion) return P.errors = [{ params: { type: "string" } }], !1;
y = e === a;
} else y = !0;
}
}
}
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.import) {
let t = e.import;
const r = a, n = a;
let s = !1;
const o = a;
if (!1 !== t) {
const e = { params: { allowedValues: h.properties.import.anyOf[0].enum } };
null === i ? i = [e] : i.push(e), a++;
}
var c = o === a;
if (s = s || c, !s) {
const e = a;
if (a == a) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === i ? i = [e] : i.push(e), a++;
}
} else {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
c = e === a, s = s || c;
}
if (!s) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
a = n, null !== i && (n ? i.length = n : i = null), l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.request) {
let t = e.request;
const r = a;
if (a === r) {
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return P.errors = [{ params: {} }], !1;
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.layer) {
let t = e.layer;
const r = a;
if (a === r) {
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return P.errors = [{ params: {} }], !1;
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.issuerLayer) {
let t = e.issuerLayer;
const r = a;
if (a === r) {
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return P.errors = [{ params: {} }], !1;
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.packageName) {
let t = e.packageName;
const r = a;
if (a === r) {
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return P.errors = [{ params: {} }], !1;
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.requiredVersion) {
let t = e.requiredVersion;
const r = a, n = a;
let s = !1;
const o = a;
if (!1 !== t) {
const e = { params: { allowedValues: h.properties.requiredVersion.anyOf[0].enum } };
null === i ? i = [e] : i.push(e), a++;
}
var m = o === a;
if (s = s || m, !s) {
const e = a;
if ("string" != typeof t) {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
m = e === a, s = s || m;
}
if (!s) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
a = n, null !== i && (n ? i.length = n : i = null), l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.shareKey) {
let t = e.shareKey;
const r = a;
if (a === r) {
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return P.errors = [{ params: {} }], !1;
}
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.shareScope) {
let t = e.shareScope;
const r = a, n = a;
let s = !1;
const o = a;
if (a === o) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === i ? i = [e] : i.push(e), a++;
}
} else {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
var d = o === a;
if (s = s || d, !s) {
const e = a;
if (a === e) if (Array.isArray(t)) {
const e = t.length;
for (let r = 0; r < e; r++) {
let e = t[r];
const n = a;
if (a === n) if ("string" == typeof e) {
if (e.length < 1) {
const e = { params: {} };
null === i ? i = [e] : i.push(e), a++;
}
} else {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
if (n !== a) break;
}
} else {
const e = { params: { type: "array" } };
null === i ? i = [e] : i.push(e), a++;
}
d = e === a, s = s || d;
}
if (!s) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
a = n, null !== i && (n ? i.length = n : i = null), l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.shareStrategy) {
let t = e.shareStrategy;
const r = a;
if ("string" != typeof t) return P.errors = [{ params: { type: "string" } }], !1;
if ("version-first" !== t && "loaded-first" !== t) return P.errors = [{ params: { allowedValues: h.properties.shareStrategy.enum } }], !1;
l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.singleton) {
const t = a;
if ("boolean" != typeof e.singleton) return P.errors = [{ params: { type: "boolean" } }], !1;
l = t === a;
} else l = !0;
if (l) {
if (void 0 !== e.strictVersion) {
const t = a;
if ("boolean" != typeof e.strictVersion) return P.errors = [{ params: { type: "boolean" } }], !1;
l = t === a;
} else l = !0;
if (l) {
if (void 0 !== e.version) {
let t = e.version;
const r = a, n = a;
let s = !1;
const o = a;
if (!1 !== t) {
const e = { params: { allowedValues: h.properties.version.anyOf[0].enum } };
null === i ? i = [e] : i.push(e), a++;
}
var g = o === a;
if (s = s || g, !s) {
const e = a;
if ("string" != typeof t) {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
g = e === a, s = s || g;
}
if (!s) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
a = n, null !== i && (n ? i.length = n : i = null), l = r === a;
} else l = !0;
if (l) {
if (void 0 !== e.allowNodeModulesSuffixMatch) {
const t = a;
if ("boolean" != typeof e.allowNodeModulesSuffixMatch) return P.errors = [{ params: { type: "boolean" } }], !1;
l = t === a;
} else l = !0;
if (l) if (void 0 !== e.treeShaking) {
let t = e.treeShaking;
const r = a, n = a;
let s = !1;
const o = a;
if ("boolean" != typeof t) {
const e = { params: { type: "boolean" } };
null === i ? i = [e] : i.push(e), a++;
}
var j = o === a;
if (s = s || j, !s) {
const e = a;
if (a == a) if (t && "object" == typeof t && !Array.isArray(t)) {
const e = a;
for (const e in t) if ("usedExports" !== e && "mode" !== e && "filename" !== e) {
const t = { params: { additionalProperty: e } };
null === i ? i = [t] : i.push(t), a++;
break;
}
if (e === a) {
if (void 0 !== t.usedExports) {
let e = t.usedExports;
const r = a;
if (a === r) if (Array.isArray(e)) {
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = a;
if (a === n) if ("string" == typeof t) {
if (t.length < 1) {
const e = { params: {} };
null === i ? i = [e] : i.push(e), a++;
}
} else {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
if (n !== a) break;
}
} else {
const e = { params: { type: "array" } };
null === i ? i = [e] : i.push(e), a++;
}
var A = r === a;
} else A = !0;
if (A) {
if (void 0 !== t.mode) {
let e = t.mode;
const r = a;
if ("string" != typeof e) {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
if ("server-calc" !== e && "runtime-infer" !== e) {
const e = { params: { allowedValues: v.properties.mode.enum } };
null === i ? i = [e] : i.push(e), a++;
}
A = r === a;
} else A = !0;
if (A) if (void 0 !== t.filename) {
const e = a;
if ("string" != typeof t.filename) {
const e = { params: { type: "string" } };
null === i ? i = [e] : i.push(e), a++;
}
A = e === a;
} else A = !0;
}
}
} else {
const e = { params: { type: "object" } };
null === i ? i = [e] : i.push(e), a++;
}
j = e === a, s = s || j;
}
if (!s) {
const e = { params: {} };
return null === i ? i = [e] : i.push(e), a++, P.errors = i, !1;
}
a = n, null !== i && (n ? i.length = n : i = null), l = r === a;
} else l = !0;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return P.errors = i, 0 === a;
}
function j(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
if (0 === i) {
if (!e || "object" != typeof e || Array.isArray(e)) return j.errors = [{ params: { type: "object" } }], !1;
for (const r in e) {
let n = e[r];
const l = i, p = i;
let f = !1;
const u = i;
P(n, {
instancePath: t + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
parentData: e,
parentDataProperty: r,
rootData: s
}) || (o = null === o ? P.errors : o.concat(P.errors), i = o.length);
var a = u === i;
if (f = f || a, !f) {
const e = i;
if (i == i) if ("string" == typeof n) {
if (n.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
a = e === i, f = f || a;
}
if (!f) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, j.errors = o, !1;
}
if (i = p, null !== o && (p ? o.length = p : o = null), l !== i) break;
}
}
return j.errors = o, 0 === i;
}
function A(e, { instancePath: t = "", parentData: r, parentDataProperty: n, rootData: s = e } = {}) {
let o = null, i = 0;
const a = i;
let l = !1;
const p = i;
if (i === p) if (Array.isArray(e)) {
const r = e.length;
for (let n = 0; n < r; n++) {
let r = e[n];
const a = i, l = i;
let p = !1;
const u = i;
if (i == i) if ("string" == typeof r) {
if (r.length < 1) {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
} else {
const e = { params: { type: "string" } };
null === o ? o = [e] : o.push(e), i++;
}
var f = u === i;
if (p = p || f, !p) {
const a = i;
j(r, {
instancePath: t + "/" + n,
parentData: e,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? j.errors : o.concat(j.errors), i = o.length), f = a === i, p = p || f;
}
if (p) i = l, null !== o && (l ? o.length = l : o = null);
else {
const e = { params: {} };
null === o ? o = [e] : o.push(e), i++;
}
if (a !== i) break;
}
} else {
const e = { params: { type: "array" } };
null === o ? o = [e] : o.push(e), i++;
}
var u = p === i;
if (l = l || u, !l) {
const a = i;
j(e, {
instancePath: t,
parentData: r,
parentDataProperty: n,
rootData: s
}) || (o = null === o ? j.errors : o.concat(j.errors), i = o.length), u = a === i, l = l || u;
}
if (!l) {
const e = { params: {} };
return null === o ? o = [e] : o.push(e), i++, A.errors = o, !1;
}
return i = a, null !== o && (a ? o.length = a : o = null), A.errors = o, 0 === i;
}
function D(o, { instancePath: i = "", parentData: a, parentDataProperty: p, rootData: f = o } = {}) {
let u = null, c = 0;
if (0 === c) {
if (!o || "object" != typeof o || Array.isArray(o)) return D.errors = [{ params: { type: "object" } }], !1;
{
const a = c;
for (const e in o) if (!s.call(t.properties, e)) return D.errors = [{ params: { additionalProperty: e } }], !1;
if (a === c) {
if (void 0 !== o.async) {
let e = o.async;
const t = c, r = c;
let n = !1;
const s = c;
if ("boolean" != typeof e) {
const e = { params: { type: "boolean" } };
null === u ? u = [e] : u.push(e), c++;
}
var m = s === c;
if (n = n || m, !n) {
const t = c;
if (c === t) if (e && "object" == typeof e && !Array.isArray(e)) {
const t = c;
for (const t in e) if ("eager" !== t && "excludeChunk" !== t) {
const e = { params: { additionalProperty: t } };
null === u ? u = [e] : u.push(e), c++;
break;
}
if (t === c) {
if (void 0 !== e.eager) {
let t = e.eager;
const r = c, n = c;
let s = !1;
const o = c;
if (!(t instanceof RegExp)) {
const e = { params: {} };
null === u ? u = [e] : u.push(e), c++;
}
var d = o === c;
if (s = s || d, !s) {
const e = c;
if (!(t instanceof Function)) {
const e = { params: {} };
null === u ? u = [e] : u.push(e), c++;
}
d = e === c, s = s || d;
}
if (s) c = n, null !== u && (n ? u.length = n : u = null);
else {
const e = { params: {} };
null === u ? u = [e] : u.push(e), c++;
}
var h = r === c;
} else h = !0;
if (h) if (void 0 !== e.excludeChunk) {
const t = c;
if (!(e.excludeChunk instanceof Function)) {
const e = { params: {} };
null === u ? u = [e] : u.push(e), c++;
}
h = t === c;
} else h = !0;
}
} else {
const e = { params: { type: "object" } };
null === u ? u = [e] : u.push(e), c++;
}
m = t === c, n = n || m;
}
if (!n) {
const e = { params: {} };
return null === u ? u = [e] : u.push(e), c++, D.errors = u, !1;
}
c = r, null !== u && (r ? u.length = r : u = null);
var b = t === c;
} else b = !0;
if (b) {
if (void 0 !== o.exposes) {
const e = c;
l(o.exposes, {
instancePath: i + "/exposes",
parentData: o,
parentDataProperty: "exposes",
rootData: f
}) || (u = null === u ? l.errors : u.concat(l.errors), c = u.length), b = e === c;
} else b = !0;
if (b) {
if (void 0 !== o.filename) {
let t = o.filename;
const r = c;
if (c === r) {
if ("string" != typeof t) return D.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return D.errors = [{ params: {} }], !1;
if (t.includes("!") || !1 !== e.test(t)) return D.errors = [{ params: {} }], !1;
}
b = r === c;
} else b = !0;
if (b) {
if (void 0 !== o.treeShakingSharedExcludePlugins) {
let e = o.treeShakingSharedExcludePlugins;
const t = c;
if (c === t) {
if (!Array.isArray(e)) return D.errors = [{ params: { type: "array" } }], !1;
{
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = c;
if (c === n) {
if ("string" != typeof t) return D.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return D.errors = [{ params: {} }], !1;
}
if (n !== c) break;
}
}
}
b = t === c;
} else b = !0;
if (b) {
if (void 0 !== o.treeShakingSharedPlugins) {
let e = o.treeShakingSharedPlugins;
const t = c;
if (c === t) {
if (!Array.isArray(e)) return D.errors = [{ params: { type: "array" } }], !1;
{
const t = e.length;
for (let r = 0; r < t; r++) {
let t = e[r];
const n = c;
if (c === n) {
if ("string" != typeof t) return D.errors = [{ params: { type: "string" } }], !1;
if (t.length < 1) return D.errors = [{ params: {} }], !1;
}
if (n !== c) break;
}
}
}
b = t === c;
} else b = !0;
if (b) {
if (void 0 !== o.treeShakingDir) {
let e = o.treeShakingDir;
const t = c;
if (c === t) {
if ("string" != typeof e) return D.errors = [{ params: { type: "string" } }], !1;
if (e.length < 1) return D.errors = [{ params: {} }], !1;
}
b = t === c;
} else b = !0;
if (b) {
if (void 0 !== o.injectTreeShakingUsedExports) {
const e = c;
if ("boolean" != typeof o.injectTreeShakingUsedExports) return D.errors = [{ params: { type: "boolean" } }], !1;
b = e === c;
} else b = !0;
if (b) {
if (void 0 !== o.library) {
const e = c;
y(o.library, {
instancePath: i + "/library",
parentData: o,
parentDataProperty: "library",
rootData: f
}) || (u = null === u ? y.errors : u.concat(y.errors), c = u.length), b = e === c;
} else b = !0;
if (b) {
if (void 0 !== o.name) {
let e = o.name;
const t = c;
if (c === t) {
if ("string" != typeof e) return D.errors = [{ params: { type: "string" } }], !1;
if (e.length < 1) return D.errors = [{ params: {} }], !1;
}
b = t === c;
} else b = !0;
if (b) {
if (void 0 !== o.remoteType) {
let e = o.remoteType;
const t = c, n = c;
let s = !1, i = null;
const a = c;
if ("var" !== e && "module" !== e && "assign" !== e && "this" !== e && "window" !== e && "self" !== e && "global" !== e && "commonjs" !== e && "commonjs2" !== e && "commonjs-module" !== e && "commonjs-static" !== e && "amd" !== e && "amd-require" !== e && "umd" !== e && "umd2" !== e && "jsonp" !== e && "system" !== e && "promise" !== e && "import" !== e && "module-import" !== e && "script" !== e && "node-commonjs" !== e) {
const e = { params: { allowedValues: r.enum } };
null === u ? u = [e] : u.push(e), c++;
}
if (a === c && (s = !0, i = 0), !s) {
const e = { params: { passingSchemas: i } };
return null === u ? u = [e] : u.push(e), c++, D.errors = u, !1;
}
c = n, null !== u && (n ? u.length = n : u = null), b = t === c;
} else b = !0;
if (b) {