@scalar/api-reference 1.22.26 → 1.22.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/browser/standalone.js +3 -3
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/MarkdownRenderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.css +1 -1
- package/dist/index.js +185 -185
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -28301,7 +28301,7 @@ var Ce = {};
|
|
|
28301
28301
|
})(Ce);
|
|
28302
28302
|
var or = {};
|
|
28303
28303
|
Object.defineProperty(or, "__esModule", { value: !0 });
|
|
28304
|
-
const xt = we,
|
|
28304
|
+
const xt = we, eN = {
|
|
28305
28305
|
// validation function arguments
|
|
28306
28306
|
data: new xt.Name("data"),
|
|
28307
28307
|
// args passed from referencing schema
|
|
@@ -28324,7 +28324,7 @@ const xt = we, e4 = {
|
|
|
28324
28324
|
jsonLen: new xt.Name("jsonLen"),
|
|
28325
28325
|
jsonPart: new xt.Name("jsonPart")
|
|
28326
28326
|
};
|
|
28327
|
-
or.default =
|
|
28327
|
+
or.default = eN;
|
|
28328
28328
|
(function(r) {
|
|
28329
28329
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.extendErrors = r.resetErrorsCount = r.reportExtraError = r.reportError = r.keyword$DataError = r.keywordError = void 0;
|
|
28330
28330
|
const e = we, t = Ce, s = or;
|
|
@@ -28399,19 +28399,19 @@ or.default = e4;
|
|
|
28399
28399
|
})(ml);
|
|
28400
28400
|
Object.defineProperty(ii, "__esModule", { value: !0 });
|
|
28401
28401
|
ii.boolOrEmptySchema = ii.topBoolOrEmptySchema = void 0;
|
|
28402
|
-
const
|
|
28402
|
+
const tN = ml, rN = we, sN = or, nN = {
|
|
28403
28403
|
message: "boolean schema is false"
|
|
28404
28404
|
};
|
|
28405
|
-
function
|
|
28405
|
+
function oN(r) {
|
|
28406
28406
|
const { gen: e, schema: t, validateName: s } = r;
|
|
28407
|
-
t === !1 ? kS(r, !1) : typeof t == "object" && t.$async === !0 ? e.return(
|
|
28407
|
+
t === !1 ? kS(r, !1) : typeof t == "object" && t.$async === !0 ? e.return(sN.default.data) : (e.assign((0, rN._)`${s}.errors`, null), e.return(!0));
|
|
28408
28408
|
}
|
|
28409
|
-
ii.topBoolOrEmptySchema =
|
|
28410
|
-
function
|
|
28409
|
+
ii.topBoolOrEmptySchema = oN;
|
|
28410
|
+
function iN(r, e) {
|
|
28411
28411
|
const { gen: t, schema: s } = r;
|
|
28412
28412
|
s === !1 ? (t.var(e, !1), kS(r)) : t.var(e, !0);
|
|
28413
28413
|
}
|
|
28414
|
-
ii.boolOrEmptySchema =
|
|
28414
|
+
ii.boolOrEmptySchema = iN;
|
|
28415
28415
|
function kS(r, e) {
|
|
28416
28416
|
const { gen: t, data: s } = r, n = {
|
|
28417
28417
|
gen: t,
|
|
@@ -28423,17 +28423,17 @@ function kS(r, e) {
|
|
|
28423
28423
|
params: {},
|
|
28424
28424
|
it: r
|
|
28425
28425
|
};
|
|
28426
|
-
(0,
|
|
28426
|
+
(0, tN.reportError)(n, nN, void 0, e);
|
|
28427
28427
|
}
|
|
28428
28428
|
var gl = {}, Kn = {};
|
|
28429
28429
|
Object.defineProperty(Kn, "__esModule", { value: !0 });
|
|
28430
28430
|
Kn.getRules = Kn.isJSONType = void 0;
|
|
28431
|
-
const
|
|
28432
|
-
function
|
|
28433
|
-
return typeof r == "string" &&
|
|
28431
|
+
const aN = ["string", "number", "integer", "boolean", "null", "object", "array"], lN = new Set(aN);
|
|
28432
|
+
function cN(r) {
|
|
28433
|
+
return typeof r == "string" && lN.has(r);
|
|
28434
28434
|
}
|
|
28435
|
-
Kn.isJSONType =
|
|
28436
|
-
function
|
|
28435
|
+
Kn.isJSONType = cN;
|
|
28436
|
+
function dN() {
|
|
28437
28437
|
const r = {
|
|
28438
28438
|
number: { type: "number", rules: [] },
|
|
28439
28439
|
string: { type: "string", rules: [] },
|
|
@@ -28448,15 +28448,15 @@ function d4() {
|
|
|
28448
28448
|
keywords: {}
|
|
28449
28449
|
};
|
|
28450
28450
|
}
|
|
28451
|
-
Kn.getRules =
|
|
28451
|
+
Kn.getRules = dN;
|
|
28452
28452
|
var ks = {};
|
|
28453
28453
|
Object.defineProperty(ks, "__esModule", { value: !0 });
|
|
28454
28454
|
ks.shouldUseRule = ks.shouldUseGroup = ks.schemaHasRulesForType = void 0;
|
|
28455
|
-
function
|
|
28455
|
+
function uN({ schema: r, self: e }, t) {
|
|
28456
28456
|
const s = e.RULES.types[t];
|
|
28457
28457
|
return s && s !== !0 && $S(r, s);
|
|
28458
28458
|
}
|
|
28459
|
-
ks.schemaHasRulesForType =
|
|
28459
|
+
ks.schemaHasRulesForType = uN;
|
|
28460
28460
|
function $S(r, e) {
|
|
28461
28461
|
return e.rules.some((t) => PS(r, t));
|
|
28462
28462
|
}
|
|
@@ -28614,8 +28614,8 @@ ks.shouldUseRule = PS;
|
|
|
28614
28614
|
var su = {};
|
|
28615
28615
|
Object.defineProperty(su, "__esModule", { value: !0 });
|
|
28616
28616
|
su.assignDefaults = void 0;
|
|
28617
|
-
const vo = we,
|
|
28618
|
-
function
|
|
28617
|
+
const vo = we, hN = Ce;
|
|
28618
|
+
function fN(r, e) {
|
|
28619
28619
|
const { properties: t, items: s } = r.schema;
|
|
28620
28620
|
if (e === "object" && t)
|
|
28621
28621
|
for (const n in t)
|
|
@@ -28623,14 +28623,14 @@ function f4(r, e) {
|
|
|
28623
28623
|
else
|
|
28624
28624
|
e === "array" && Array.isArray(s) && s.forEach((n, o) => xy(r, o, n.default));
|
|
28625
28625
|
}
|
|
28626
|
-
su.assignDefaults =
|
|
28626
|
+
su.assignDefaults = fN;
|
|
28627
28627
|
function xy(r, e, t) {
|
|
28628
28628
|
const { gen: s, compositeRule: n, data: o, opts: i } = r;
|
|
28629
28629
|
if (t === void 0)
|
|
28630
28630
|
return;
|
|
28631
28631
|
const a = (0, vo._)`${o}${(0, vo.getProperty)(e)}`;
|
|
28632
28632
|
if (n) {
|
|
28633
|
-
(0,
|
|
28633
|
+
(0, hN.checkStrictMode)(r, `default is ignored for: ${a}`);
|
|
28634
28634
|
return;
|
|
28635
28635
|
}
|
|
28636
28636
|
let l = (0, vo._)`${a} === undefined`;
|
|
@@ -28639,22 +28639,22 @@ function xy(r, e, t) {
|
|
|
28639
28639
|
var ns = {}, Qe = {};
|
|
28640
28640
|
Object.defineProperty(Qe, "__esModule", { value: !0 });
|
|
28641
28641
|
Qe.validateUnion = Qe.validateArray = Qe.usePattern = Qe.callValidateCode = Qe.schemaProperties = Qe.allSchemaProperties = Qe.noPropertyInData = Qe.propertyInData = Qe.isOwnProperty = Qe.hasPropFunc = Qe.reportMissingProp = Qe.checkMissingProp = Qe.checkReportMissingProp = void 0;
|
|
28642
|
-
const Fe = we, wm = Ce, Ms = or,
|
|
28643
|
-
function
|
|
28642
|
+
const Fe = we, wm = Ce, Ms = or, pN = Ce;
|
|
28643
|
+
function mN(r, e) {
|
|
28644
28644
|
const { gen: t, data: s, it: n } = r;
|
|
28645
28645
|
t.if(km(t, s, e, n.opts.ownProperties), () => {
|
|
28646
28646
|
r.setParams({ missingProperty: (0, Fe._)`${e}` }, !0), r.error();
|
|
28647
28647
|
});
|
|
28648
28648
|
}
|
|
28649
|
-
Qe.checkReportMissingProp =
|
|
28650
|
-
function
|
|
28649
|
+
Qe.checkReportMissingProp = mN;
|
|
28650
|
+
function gN({ gen: r, data: e, it: { opts: t } }, s, n) {
|
|
28651
28651
|
return (0, Fe.or)(...s.map((o) => (0, Fe.and)(km(r, e, o, t.ownProperties), (0, Fe._)`${n} = ${o}`)));
|
|
28652
28652
|
}
|
|
28653
|
-
Qe.checkMissingProp =
|
|
28654
|
-
function
|
|
28653
|
+
Qe.checkMissingProp = gN;
|
|
28654
|
+
function ON(r, e) {
|
|
28655
28655
|
r.setParams({ missingProperty: e }, !0), r.error();
|
|
28656
28656
|
}
|
|
28657
|
-
Qe.reportMissingProp =
|
|
28657
|
+
Qe.reportMissingProp = ON;
|
|
28658
28658
|
function xS(r) {
|
|
28659
28659
|
return r.scopeValue("func", {
|
|
28660
28660
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -28667,11 +28667,11 @@ function Sm(r, e, t) {
|
|
|
28667
28667
|
return (0, Fe._)`${xS(r)}.call(${e}, ${t})`;
|
|
28668
28668
|
}
|
|
28669
28669
|
Qe.isOwnProperty = Sm;
|
|
28670
|
-
function
|
|
28670
|
+
function yN(r, e, t, s) {
|
|
28671
28671
|
const n = (0, Fe._)`${e}${(0, Fe.getProperty)(t)} !== undefined`;
|
|
28672
28672
|
return s ? (0, Fe._)`${n} && ${Sm(r, e, t)}` : n;
|
|
28673
28673
|
}
|
|
28674
|
-
Qe.propertyInData =
|
|
28674
|
+
Qe.propertyInData = yN;
|
|
28675
28675
|
function km(r, e, t, s) {
|
|
28676
28676
|
const n = (0, Fe._)`${e}${(0, Fe.getProperty)(t)} === undefined`;
|
|
28677
28677
|
return s ? (0, Fe.or)(n, (0, Fe.not)(Sm(r, e, t))) : n;
|
|
@@ -28681,11 +28681,11 @@ function _S(r) {
|
|
|
28681
28681
|
return r ? Object.keys(r).filter((e) => e !== "__proto__") : [];
|
|
28682
28682
|
}
|
|
28683
28683
|
Qe.allSchemaProperties = _S;
|
|
28684
|
-
function
|
|
28684
|
+
function bN(r, e) {
|
|
28685
28685
|
return _S(e).filter((t) => !(0, wm.alwaysValidSchema)(r, e[t]));
|
|
28686
28686
|
}
|
|
28687
|
-
Qe.schemaProperties =
|
|
28688
|
-
function
|
|
28687
|
+
Qe.schemaProperties = bN;
|
|
28688
|
+
function vN({ schemaCode: r, data: e, it: { gen: t, topSchemaRef: s, schemaPath: n, errorPath: o }, it: i }, a, l, c) {
|
|
28689
28689
|
const d = c ? (0, Fe._)`${r}, ${e}, ${s}${n}` : e, u = [
|
|
28690
28690
|
[Ms.default.instancePath, (0, Fe.strConcat)(Ms.default.instancePath, o)],
|
|
28691
28691
|
[Ms.default.parentData, i.parentData],
|
|
@@ -28696,18 +28696,18 @@ function v4({ schemaCode: r, data: e, it: { gen: t, topSchemaRef: s, schemaPath:
|
|
|
28696
28696
|
const h = (0, Fe._)`${d}, ${t.object(...u)}`;
|
|
28697
28697
|
return l !== Fe.nil ? (0, Fe._)`${a}.call(${l}, ${h})` : (0, Fe._)`${a}(${h})`;
|
|
28698
28698
|
}
|
|
28699
|
-
Qe.callValidateCode =
|
|
28700
|
-
const
|
|
28701
|
-
function
|
|
28699
|
+
Qe.callValidateCode = vN;
|
|
28700
|
+
const wN = (0, Fe._)`new RegExp`;
|
|
28701
|
+
function SN({ gen: r, it: { opts: e } }, t) {
|
|
28702
28702
|
const s = e.unicodeRegExp ? "u" : "", { regExp: n } = e.code, o = n(t, s);
|
|
28703
28703
|
return r.scopeValue("pattern", {
|
|
28704
28704
|
key: o.toString(),
|
|
28705
28705
|
ref: o,
|
|
28706
|
-
code: (0, Fe._)`${n.code === "new RegExp" ?
|
|
28706
|
+
code: (0, Fe._)`${n.code === "new RegExp" ? wN : (0, pN.useFunc)(r, n)}(${t}, ${s})`
|
|
28707
28707
|
});
|
|
28708
28708
|
}
|
|
28709
|
-
Qe.usePattern =
|
|
28710
|
-
function
|
|
28709
|
+
Qe.usePattern = SN;
|
|
28710
|
+
function kN(r) {
|
|
28711
28711
|
const { gen: e, data: t, keyword: s, it: n } = r, o = e.name("valid");
|
|
28712
28712
|
if (n.allErrors) {
|
|
28713
28713
|
const a = e.let("valid", !0);
|
|
@@ -28725,8 +28725,8 @@ function k4(r) {
|
|
|
28725
28725
|
});
|
|
28726
28726
|
}
|
|
28727
28727
|
}
|
|
28728
|
-
Qe.validateArray =
|
|
28729
|
-
function $
|
|
28728
|
+
Qe.validateArray = kN;
|
|
28729
|
+
function $N(r) {
|
|
28730
28730
|
const { gen: e, schema: t, keyword: s, it: n } = r;
|
|
28731
28731
|
if (!Array.isArray(t))
|
|
28732
28732
|
throw new Error("ajv implementation error");
|
|
@@ -28742,11 +28742,11 @@ function $4(r) {
|
|
|
28742
28742
|
e.assign(o, (0, Fe._)`${o} || ${i}`), r.mergeValidEvaluated(c, i) || e.if((0, Fe.not)(o));
|
|
28743
28743
|
})), r.result(o, () => r.reset(), () => r.error(!0));
|
|
28744
28744
|
}
|
|
28745
|
-
Qe.validateUnion = $
|
|
28745
|
+
Qe.validateUnion = $N;
|
|
28746
28746
|
Object.defineProperty(ns, "__esModule", { value: !0 });
|
|
28747
28747
|
ns.validateKeywordUsage = ns.validSchemaType = ns.funcKeywordCode = ns.macroKeywordCode = void 0;
|
|
28748
|
-
const It = we, Qn = or,
|
|
28749
|
-
function
|
|
28748
|
+
const It = we, Qn = or, PN = Qe, xN = ml;
|
|
28749
|
+
function _N(r, e) {
|
|
28750
28750
|
const { gen: t, keyword: s, schema: n, parentSchema: o, it: i } = r, a = e.macro.call(i.self, n, o, i), l = QS(t, s, a);
|
|
28751
28751
|
i.opts.validateSchema !== !1 && i.self.validateSchema(a, !0);
|
|
28752
28752
|
const c = t.name("valid");
|
|
@@ -28758,11 +28758,11 @@ function _4(r, e) {
|
|
|
28758
28758
|
compositeRule: !0
|
|
28759
28759
|
}, c), r.pass(c, () => r.error(!0));
|
|
28760
28760
|
}
|
|
28761
|
-
ns.macroKeywordCode =
|
|
28762
|
-
function
|
|
28761
|
+
ns.macroKeywordCode = _N;
|
|
28762
|
+
function QN(r, e) {
|
|
28763
28763
|
var t;
|
|
28764
28764
|
const { gen: s, keyword: n, schema: o, parentSchema: i, $data: a, it: l } = r;
|
|
28765
|
-
|
|
28765
|
+
CN(l, e);
|
|
28766
28766
|
const c = !a && e.compile ? e.compile.call(l.self, o, i, l) : e.validate, d = QS(s, n, c), u = s.let("valid");
|
|
28767
28767
|
r.block$data(u, h), r.ok((t = e.valid) !== null && t !== void 0 ? t : u);
|
|
28768
28768
|
function h() {
|
|
@@ -28770,7 +28770,7 @@ function Q4(r, e) {
|
|
|
28770
28770
|
m(), e.modifying && _y(r), g(() => r.error());
|
|
28771
28771
|
else {
|
|
28772
28772
|
const O = e.async ? f() : p();
|
|
28773
|
-
e.modifying && _y(r), g(() =>
|
|
28773
|
+
e.modifying && _y(r), g(() => TN(r, O));
|
|
28774
28774
|
}
|
|
28775
28775
|
}
|
|
28776
28776
|
function f() {
|
|
@@ -28783,25 +28783,25 @@ function Q4(r, e) {
|
|
|
28783
28783
|
}
|
|
28784
28784
|
function m(O = e.async ? (0, It._)`await ` : It.nil) {
|
|
28785
28785
|
const y = l.opts.passContext ? Qn.default.this : Qn.default.self, w = !("compile" in e && !a || e.schema === !1);
|
|
28786
|
-
s.assign(u, (0, It._)`${O}${(0,
|
|
28786
|
+
s.assign(u, (0, It._)`${O}${(0, PN.callValidateCode)(r, d, y, w)}`, e.modifying);
|
|
28787
28787
|
}
|
|
28788
28788
|
function g(O) {
|
|
28789
28789
|
var y;
|
|
28790
28790
|
s.if((0, It.not)((y = e.valid) !== null && y !== void 0 ? y : u), O);
|
|
28791
28791
|
}
|
|
28792
28792
|
}
|
|
28793
|
-
ns.funcKeywordCode =
|
|
28793
|
+
ns.funcKeywordCode = QN;
|
|
28794
28794
|
function _y(r) {
|
|
28795
28795
|
const { gen: e, data: t, it: s } = r;
|
|
28796
28796
|
e.if(s.parentData, () => e.assign(t, (0, It._)`${s.parentData}[${s.parentDataProperty}]`));
|
|
28797
28797
|
}
|
|
28798
|
-
function
|
|
28798
|
+
function TN(r, e) {
|
|
28799
28799
|
const { gen: t } = r;
|
|
28800
28800
|
t.if((0, It._)`Array.isArray(${e})`, () => {
|
|
28801
|
-
t.assign(Qn.default.vErrors, (0, It._)`${Qn.default.vErrors} === null ? ${e} : ${Qn.default.vErrors}.concat(${e})`).assign(Qn.default.errors, (0, It._)`${Qn.default.vErrors}.length`), (0,
|
|
28801
|
+
t.assign(Qn.default.vErrors, (0, It._)`${Qn.default.vErrors} === null ? ${e} : ${Qn.default.vErrors}.concat(${e})`).assign(Qn.default.errors, (0, It._)`${Qn.default.vErrors}.length`), (0, xN.extendErrors)(r);
|
|
28802
28802
|
}, () => r.error());
|
|
28803
28803
|
}
|
|
28804
|
-
function
|
|
28804
|
+
function CN({ schemaEnv: r }, e) {
|
|
28805
28805
|
if (e.async && !r.$async)
|
|
28806
28806
|
throw new Error("async keyword in sync schema");
|
|
28807
28807
|
}
|
|
@@ -28810,11 +28810,11 @@ function QS(r, e, t) {
|
|
|
28810
28810
|
throw new Error(`keyword "${e}" failed to compile`);
|
|
28811
28811
|
return r.scopeValue("keyword", typeof t == "function" ? { ref: t } : { ref: t, code: (0, It.stringify)(t) });
|
|
28812
28812
|
}
|
|
28813
|
-
function
|
|
28813
|
+
function EN(r, e, t = !1) {
|
|
28814
28814
|
return !e.length || e.some((s) => s === "array" ? Array.isArray(r) : s === "object" ? r && typeof r == "object" && !Array.isArray(r) : typeof r == s || t && typeof r > "u");
|
|
28815
28815
|
}
|
|
28816
|
-
ns.validSchemaType =
|
|
28817
|
-
function
|
|
28816
|
+
ns.validSchemaType = EN;
|
|
28817
|
+
function AN({ schema: r, opts: e, self: t, errSchemaPath: s }, n, o) {
|
|
28818
28818
|
if (Array.isArray(n.keyword) ? !n.keyword.includes(o) : n.keyword !== o)
|
|
28819
28819
|
throw new Error("ajv implementation error");
|
|
28820
28820
|
const i = n.dependencies;
|
|
@@ -28828,12 +28828,12 @@ function A4({ schema: r, opts: e, self: t, errSchemaPath: s }, n, o) {
|
|
|
28828
28828
|
throw new Error(a);
|
|
28829
28829
|
}
|
|
28830
28830
|
}
|
|
28831
|
-
ns.validateKeywordUsage =
|
|
28831
|
+
ns.validateKeywordUsage = AN;
|
|
28832
28832
|
var rn = {};
|
|
28833
28833
|
Object.defineProperty(rn, "__esModule", { value: !0 });
|
|
28834
28834
|
rn.extendSubschemaMode = rn.extendSubschemaData = rn.getSubschema = void 0;
|
|
28835
28835
|
const es = we, TS = Ce;
|
|
28836
|
-
function
|
|
28836
|
+
function RN(r, { keyword: e, schemaProp: t, schema: s, schemaPath: n, errSchemaPath: o, topSchemaRef: i }) {
|
|
28837
28837
|
if (e !== void 0 && s !== void 0)
|
|
28838
28838
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
28839
28839
|
if (e !== void 0) {
|
|
@@ -28860,8 +28860,8 @@ function R4(r, { keyword: e, schemaProp: t, schema: s, schemaPath: n, errSchemaP
|
|
|
28860
28860
|
}
|
|
28861
28861
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
28862
28862
|
}
|
|
28863
|
-
rn.getSubschema =
|
|
28864
|
-
function
|
|
28863
|
+
rn.getSubschema = RN;
|
|
28864
|
+
function ZN(r, e, { dataProp: t, dataPropType: s, data: n, dataTypes: o, propertyName: i }) {
|
|
28865
28865
|
if (n !== void 0 && t !== void 0)
|
|
28866
28866
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
28867
28867
|
const { gen: a } = e;
|
|
@@ -28878,11 +28878,11 @@ function Z4(r, e, { dataProp: t, dataPropType: s, data: n, dataTypes: o, propert
|
|
|
28878
28878
|
r.data = c, r.dataLevel = e.dataLevel + 1, r.dataTypes = [], e.definedProperties = /* @__PURE__ */ new Set(), r.parentData = e.data, r.dataNames = [...e.dataNames, c];
|
|
28879
28879
|
}
|
|
28880
28880
|
}
|
|
28881
|
-
rn.extendSubschemaData =
|
|
28882
|
-
function
|
|
28881
|
+
rn.extendSubschemaData = ZN;
|
|
28882
|
+
function IN(r, { jtdDiscriminator: e, jtdMetadata: t, compositeRule: s, createErrors: n, allErrors: o }) {
|
|
28883
28883
|
s !== void 0 && (r.compositeRule = s), n !== void 0 && (r.createErrors = n), o !== void 0 && (r.allErrors = o), r.jtdDiscriminator = e, r.jtdMetadata = t;
|
|
28884
28884
|
}
|
|
28885
|
-
rn.extendSubschemaMode =
|
|
28885
|
+
rn.extendSubschemaMode = IN;
|
|
28886
28886
|
var vt = {}, CS = function r(e, t) {
|
|
28887
28887
|
if (e === t)
|
|
28888
28888
|
return !0;
|
|
@@ -28980,20 +28980,20 @@ function Rc(r, e, t, s, n, o, i, a, l, c) {
|
|
|
28980
28980
|
} else if (d in Js.propsKeywords) {
|
|
28981
28981
|
if (u && typeof u == "object")
|
|
28982
28982
|
for (var f in u)
|
|
28983
|
-
Rc(r, e, t, u[f], n + "/" + d + "/" +
|
|
28983
|
+
Rc(r, e, t, u[f], n + "/" + d + "/" + jN(f), o, n, d, s, f);
|
|
28984
28984
|
} else
|
|
28985
28985
|
(d in Js.keywords || r.allKeys && !(d in Js.skipKeywords)) && Rc(r, e, t, u, n + "/" + d, o, n, d, s);
|
|
28986
28986
|
}
|
|
28987
28987
|
t(s, n, o, i, a, l, c);
|
|
28988
28988
|
}
|
|
28989
28989
|
}
|
|
28990
|
-
function
|
|
28990
|
+
function jN(r) {
|
|
28991
28991
|
return r.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
28992
28992
|
}
|
|
28993
|
-
var
|
|
28993
|
+
var NN = ES.exports;
|
|
28994
28994
|
Object.defineProperty(vt, "__esModule", { value: !0 });
|
|
28995
28995
|
vt.getSchemaRefs = vt.resolveUrl = vt.normalizeId = vt._getFullPath = vt.getFullPath = vt.inlineRef = void 0;
|
|
28996
|
-
const
|
|
28996
|
+
const DN = Ce, MN = CS, XN = NN, WN = /* @__PURE__ */ new Set([
|
|
28997
28997
|
"type",
|
|
28998
28998
|
"format",
|
|
28999
28999
|
"pattern",
|
|
@@ -29011,11 +29011,11 @@ const D4 = Ce, M4 = CS, X4 = N4, W4 = /* @__PURE__ */ new Set([
|
|
|
29011
29011
|
"enum",
|
|
29012
29012
|
"const"
|
|
29013
29013
|
]);
|
|
29014
|
-
function
|
|
29014
|
+
function qN(r, e = !0) {
|
|
29015
29015
|
return typeof r == "boolean" ? !0 : e === !0 ? !Kf(r) : e ? AS(r) <= e : !1;
|
|
29016
29016
|
}
|
|
29017
|
-
vt.inlineRef =
|
|
29018
|
-
const
|
|
29017
|
+
vt.inlineRef = qN;
|
|
29018
|
+
const VN = /* @__PURE__ */ new Set([
|
|
29019
29019
|
"$ref",
|
|
29020
29020
|
"$recursiveRef",
|
|
29021
29021
|
"$recursiveAnchor",
|
|
@@ -29024,7 +29024,7 @@ const V4 = /* @__PURE__ */ new Set([
|
|
|
29024
29024
|
]);
|
|
29025
29025
|
function Kf(r) {
|
|
29026
29026
|
for (const e in r) {
|
|
29027
|
-
if (
|
|
29027
|
+
if (VN.has(e))
|
|
29028
29028
|
return !0;
|
|
29029
29029
|
const t = r[e];
|
|
29030
29030
|
if (Array.isArray(t) && t.some(Kf) || typeof t == "object" && Kf(t))
|
|
@@ -29035,7 +29035,7 @@ function Kf(r) {
|
|
|
29035
29035
|
function AS(r) {
|
|
29036
29036
|
let e = 0;
|
|
29037
29037
|
for (const t in r)
|
|
29038
|
-
if (t === "$ref" || (e++, !
|
|
29038
|
+
if (t === "$ref" || (e++, !WN.has(t) && (typeof r[t] == "object" && (0, DN.eachItem)(r[t], (s) => e += AS(s)), e === 1 / 0)))
|
|
29039
29039
|
return 1 / 0;
|
|
29040
29040
|
return e;
|
|
29041
29041
|
}
|
|
@@ -29049,21 +29049,21 @@ function ZS(r, e) {
|
|
|
29049
29049
|
return r.serialize(e).split("#")[0] + "#";
|
|
29050
29050
|
}
|
|
29051
29051
|
vt._getFullPath = ZS;
|
|
29052
|
-
const
|
|
29052
|
+
const zN = /#\/?$/;
|
|
29053
29053
|
function Bo(r) {
|
|
29054
|
-
return r ? r.replace(
|
|
29054
|
+
return r ? r.replace(zN, "") : "";
|
|
29055
29055
|
}
|
|
29056
29056
|
vt.normalizeId = Bo;
|
|
29057
|
-
function
|
|
29057
|
+
function UN(r, e, t) {
|
|
29058
29058
|
return t = Bo(t), r.resolve(e, t);
|
|
29059
29059
|
}
|
|
29060
|
-
vt.resolveUrl =
|
|
29061
|
-
const
|
|
29062
|
-
function
|
|
29060
|
+
vt.resolveUrl = UN;
|
|
29061
|
+
const YN = /^[a-z_][-a-z0-9._]*$/i;
|
|
29062
|
+
function BN(r, e) {
|
|
29063
29063
|
if (typeof r == "boolean")
|
|
29064
29064
|
return {};
|
|
29065
29065
|
const { schemaId: t, uriResolver: s } = this.opts, n = Bo(r[t] || e), o = { "": n }, i = RS(s, n, !1), a = {}, l = /* @__PURE__ */ new Set();
|
|
29066
|
-
return
|
|
29066
|
+
return XN(r, { allKeys: !0 }, (u, h, f, p) => {
|
|
29067
29067
|
if (p === void 0)
|
|
29068
29068
|
return;
|
|
29069
29069
|
const m = i + h;
|
|
@@ -29079,54 +29079,54 @@ function B4(r, e) {
|
|
|
29079
29079
|
}
|
|
29080
29080
|
function y(w) {
|
|
29081
29081
|
if (typeof w == "string") {
|
|
29082
|
-
if (!
|
|
29082
|
+
if (!YN.test(w))
|
|
29083
29083
|
throw new Error(`invalid anchor "${w}"`);
|
|
29084
29084
|
O.call(this, `#${w}`);
|
|
29085
29085
|
}
|
|
29086
29086
|
}
|
|
29087
29087
|
}), a;
|
|
29088
29088
|
function c(u, h, f) {
|
|
29089
|
-
if (h !== void 0 && !
|
|
29089
|
+
if (h !== void 0 && !MN(u, h))
|
|
29090
29090
|
throw d(f);
|
|
29091
29091
|
}
|
|
29092
29092
|
function d(u) {
|
|
29093
29093
|
return new Error(`reference "${u}" resolves to more than one schema`);
|
|
29094
29094
|
}
|
|
29095
29095
|
}
|
|
29096
|
-
vt.getSchemaRefs =
|
|
29096
|
+
vt.getSchemaRefs = BN;
|
|
29097
29097
|
Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
29098
29098
|
pr.getData = pr.KeywordCxt = pr.validateFunctionCode = void 0;
|
|
29099
|
-
const IS = ii, Qy = gl, $m = ks, Od = gl,
|
|
29100
|
-
function
|
|
29099
|
+
const IS = ii, Qy = gl, $m = ks, Od = gl, LN = su, ka = ns, yh = rn, ue = we, ve = or, HN = vt, $s = Ce, ta = ml;
|
|
29100
|
+
function GN(r) {
|
|
29101
29101
|
if (DS(r) && (MS(r), NS(r))) {
|
|
29102
|
-
|
|
29102
|
+
JN(r);
|
|
29103
29103
|
return;
|
|
29104
29104
|
}
|
|
29105
29105
|
jS(r, () => (0, IS.topBoolOrEmptySchema)(r));
|
|
29106
29106
|
}
|
|
29107
|
-
pr.validateFunctionCode =
|
|
29107
|
+
pr.validateFunctionCode = GN;
|
|
29108
29108
|
function jS({ gen: r, validateName: e, schema: t, schemaEnv: s, opts: n }, o) {
|
|
29109
29109
|
n.code.es5 ? r.func(e, (0, ue._)`${ve.default.data}, ${ve.default.valCxt}`, s.$async, () => {
|
|
29110
|
-
r.code((0, ue._)`"use strict"; ${Ty(t, n)}`),
|
|
29111
|
-
}) : r.func(e, (0, ue._)`${ve.default.data}, ${
|
|
29110
|
+
r.code((0, ue._)`"use strict"; ${Ty(t, n)}`), KN(r, n), r.code(o);
|
|
29111
|
+
}) : r.func(e, (0, ue._)`${ve.default.data}, ${FN(n)}`, s.$async, () => r.code(Ty(t, n)).code(o));
|
|
29112
29112
|
}
|
|
29113
|
-
function
|
|
29113
|
+
function FN(r) {
|
|
29114
29114
|
return (0, ue._)`{${ve.default.instancePath}="", ${ve.default.parentData}, ${ve.default.parentDataProperty}, ${ve.default.rootData}=${ve.default.data}${r.dynamicRef ? (0, ue._)`, ${ve.default.dynamicAnchors}={}` : ue.nil}}={}`;
|
|
29115
29115
|
}
|
|
29116
|
-
function
|
|
29116
|
+
function KN(r, e) {
|
|
29117
29117
|
r.if(ve.default.valCxt, () => {
|
|
29118
29118
|
r.var(ve.default.instancePath, (0, ue._)`${ve.default.valCxt}.${ve.default.instancePath}`), r.var(ve.default.parentData, (0, ue._)`${ve.default.valCxt}.${ve.default.parentData}`), r.var(ve.default.parentDataProperty, (0, ue._)`${ve.default.valCxt}.${ve.default.parentDataProperty}`), r.var(ve.default.rootData, (0, ue._)`${ve.default.valCxt}.${ve.default.rootData}`), e.dynamicRef && r.var(ve.default.dynamicAnchors, (0, ue._)`${ve.default.valCxt}.${ve.default.dynamicAnchors}`);
|
|
29119
29119
|
}, () => {
|
|
29120
29120
|
r.var(ve.default.instancePath, (0, ue._)`""`), r.var(ve.default.parentData, (0, ue._)`undefined`), r.var(ve.default.parentDataProperty, (0, ue._)`undefined`), r.var(ve.default.rootData, ve.default.data), e.dynamicRef && r.var(ve.default.dynamicAnchors, (0, ue._)`{}`);
|
|
29121
29121
|
});
|
|
29122
29122
|
}
|
|
29123
|
-
function
|
|
29123
|
+
function JN(r) {
|
|
29124
29124
|
const { schema: e, opts: t, gen: s } = r;
|
|
29125
29125
|
jS(r, () => {
|
|
29126
|
-
t.$comment && e.$comment && WS(r),
|
|
29126
|
+
t.$comment && e.$comment && WS(r), n4(r), s.let(ve.default.vErrors, null), s.let(ve.default.errors, 0), t.unevaluated && e4(r), XS(r), a4(r);
|
|
29127
29127
|
});
|
|
29128
29128
|
}
|
|
29129
|
-
function
|
|
29129
|
+
function e4(r) {
|
|
29130
29130
|
const { gen: e, validateName: t } = r;
|
|
29131
29131
|
r.evaluated = e.const("evaluated", (0, ue._)`${t}.evaluated`), e.if((0, ue._)`${r.evaluated}.dynamicProps`, () => e.assign((0, ue._)`${r.evaluated}.props`, (0, ue._)`undefined`)), e.if((0, ue._)`${r.evaluated}.dynamicItems`, () => e.assign((0, ue._)`${r.evaluated}.items`, (0, ue._)`undefined`));
|
|
29132
29132
|
}
|
|
@@ -29134,9 +29134,9 @@ function Ty(r, e) {
|
|
|
29134
29134
|
const t = typeof r == "object" && r[e.schemaId];
|
|
29135
29135
|
return t && (e.code.source || e.code.process) ? (0, ue._)`/*# sourceURL=${t} */` : ue.nil;
|
|
29136
29136
|
}
|
|
29137
|
-
function
|
|
29137
|
+
function t4(r, e) {
|
|
29138
29138
|
if (DS(r) && (MS(r), NS(r))) {
|
|
29139
|
-
|
|
29139
|
+
r4(r, e);
|
|
29140
29140
|
return;
|
|
29141
29141
|
}
|
|
29142
29142
|
(0, IS.boolOrEmptySchema)(r, e);
|
|
@@ -29152,14 +29152,14 @@ function NS({ schema: r, self: e }) {
|
|
|
29152
29152
|
function DS(r) {
|
|
29153
29153
|
return typeof r.schema != "boolean";
|
|
29154
29154
|
}
|
|
29155
|
-
function
|
|
29155
|
+
function r4(r, e) {
|
|
29156
29156
|
const { schema: t, gen: s, opts: n } = r;
|
|
29157
|
-
n.$comment && t.$comment && WS(r),
|
|
29157
|
+
n.$comment && t.$comment && WS(r), o4(r), i4(r);
|
|
29158
29158
|
const o = s.const("_errs", ve.default.errors);
|
|
29159
29159
|
XS(r, o), s.var(e, (0, ue._)`${o} === ${ve.default.errors}`);
|
|
29160
29160
|
}
|
|
29161
29161
|
function MS(r) {
|
|
29162
|
-
(0, $s.checkUnknownRules)(r),
|
|
29162
|
+
(0, $s.checkUnknownRules)(r), s4(r);
|
|
29163
29163
|
}
|
|
29164
29164
|
function XS(r, e) {
|
|
29165
29165
|
if (r.opts.jtd)
|
|
@@ -29167,19 +29167,19 @@ function XS(r, e) {
|
|
|
29167
29167
|
const t = (0, Qy.getSchemaTypes)(r.schema), s = (0, Qy.coerceAndCheckDataType)(r, t);
|
|
29168
29168
|
Cy(r, t, !s, e);
|
|
29169
29169
|
}
|
|
29170
|
-
function
|
|
29170
|
+
function s4(r) {
|
|
29171
29171
|
const { schema: e, errSchemaPath: t, opts: s, self: n } = r;
|
|
29172
29172
|
e.$ref && s.ignoreKeywordsWithRef && (0, $s.schemaHasRulesButRef)(e, n.RULES) && n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`);
|
|
29173
29173
|
}
|
|
29174
|
-
function
|
|
29174
|
+
function n4(r) {
|
|
29175
29175
|
const { schema: e, opts: t } = r;
|
|
29176
29176
|
e.default !== void 0 && t.useDefaults && t.strictSchema && (0, $s.checkStrictMode)(r, "default is ignored in the schema root");
|
|
29177
29177
|
}
|
|
29178
|
-
function
|
|
29178
|
+
function o4(r) {
|
|
29179
29179
|
const e = r.schema[r.opts.schemaId];
|
|
29180
|
-
e && (r.baseId = (0,
|
|
29180
|
+
e && (r.baseId = (0, HN.resolveUrl)(r.opts.uriResolver, r.baseId, e));
|
|
29181
29181
|
}
|
|
29182
|
-
function
|
|
29182
|
+
function i4(r) {
|
|
29183
29183
|
if (r.schema.$async && !r.schemaEnv.$async)
|
|
29184
29184
|
throw new Error("async schema in sync schema");
|
|
29185
29185
|
}
|
|
@@ -29192,11 +29192,11 @@ function WS({ gen: r, schemaEnv: e, schema: t, errSchemaPath: s, opts: n }) {
|
|
|
29192
29192
|
r.code((0, ue._)`${ve.default.self}.opts.$comment(${o}, ${i}, ${a}.schema)`);
|
|
29193
29193
|
}
|
|
29194
29194
|
}
|
|
29195
|
-
function
|
|
29195
|
+
function a4(r) {
|
|
29196
29196
|
const { gen: e, schemaEnv: t, validateName: s, ValidationError: n, opts: o } = r;
|
|
29197
|
-
t.$async ? e.if((0, ue._)`${ve.default.errors} === 0`, () => e.return(ve.default.data), () => e.throw((0, ue._)`new ${n}(${ve.default.vErrors})`)) : (e.assign((0, ue._)`${s}.errors`, ve.default.vErrors), o.unevaluated &&
|
|
29197
|
+
t.$async ? e.if((0, ue._)`${ve.default.errors} === 0`, () => e.return(ve.default.data), () => e.throw((0, ue._)`new ${n}(${ve.default.vErrors})`)) : (e.assign((0, ue._)`${s}.errors`, ve.default.vErrors), o.unevaluated && l4(r), e.return((0, ue._)`${ve.default.errors} === 0`));
|
|
29198
29198
|
}
|
|
29199
|
-
function
|
|
29199
|
+
function l4({ gen: r, evaluated: e, props: t, items: s }) {
|
|
29200
29200
|
t instanceof ue.Name && r.assign((0, ue._)`${e}.props`, t), s instanceof ue.Name && r.assign((0, ue._)`${e}.items`, s);
|
|
29201
29201
|
}
|
|
29202
29202
|
function Cy(r, e, t, s) {
|
|
@@ -29205,7 +29205,7 @@ function Cy(r, e, t, s) {
|
|
|
29205
29205
|
n.block(() => zS(r, "$ref", d.all.$ref.definition));
|
|
29206
29206
|
return;
|
|
29207
29207
|
}
|
|
29208
|
-
l.jtd ||
|
|
29208
|
+
l.jtd || c4(r, e), n.block(() => {
|
|
29209
29209
|
for (const h of d.rules)
|
|
29210
29210
|
u(h);
|
|
29211
29211
|
u(d.post);
|
|
@@ -29216,15 +29216,15 @@ function Cy(r, e, t, s) {
|
|
|
29216
29216
|
}
|
|
29217
29217
|
function Ey(r, e) {
|
|
29218
29218
|
const { gen: t, schema: s, opts: { useDefaults: n } } = r;
|
|
29219
|
-
n && (0,
|
|
29219
|
+
n && (0, LN.assignDefaults)(r, e.type), t.block(() => {
|
|
29220
29220
|
for (const o of e.rules)
|
|
29221
29221
|
(0, $m.shouldUseRule)(s, o) && zS(r, o.keyword, o.definition, e.type);
|
|
29222
29222
|
});
|
|
29223
29223
|
}
|
|
29224
|
-
function
|
|
29225
|
-
r.schemaEnv.meta || !r.opts.strictTypes || (
|
|
29224
|
+
function c4(r, e) {
|
|
29225
|
+
r.schemaEnv.meta || !r.opts.strictTypes || (d4(r, e), r.opts.allowUnionTypes || u4(r, e), h4(r, r.dataTypes));
|
|
29226
29226
|
}
|
|
29227
|
-
function
|
|
29227
|
+
function d4(r, e) {
|
|
29228
29228
|
if (e.length) {
|
|
29229
29229
|
if (!r.dataTypes.length) {
|
|
29230
29230
|
r.dataTypes = e;
|
|
@@ -29232,29 +29232,29 @@ function dN(r, e) {
|
|
|
29232
29232
|
}
|
|
29233
29233
|
e.forEach((t) => {
|
|
29234
29234
|
qS(r.dataTypes, t) || Pm(r, `type "${t}" not allowed by context "${r.dataTypes.join(",")}"`);
|
|
29235
|
-
}),
|
|
29235
|
+
}), p4(r, e);
|
|
29236
29236
|
}
|
|
29237
29237
|
}
|
|
29238
|
-
function
|
|
29238
|
+
function u4(r, e) {
|
|
29239
29239
|
e.length > 1 && !(e.length === 2 && e.includes("null")) && Pm(r, "use allowUnionTypes to allow union type keyword");
|
|
29240
29240
|
}
|
|
29241
|
-
function
|
|
29241
|
+
function h4(r, e) {
|
|
29242
29242
|
const t = r.self.RULES.all;
|
|
29243
29243
|
for (const s in t) {
|
|
29244
29244
|
const n = t[s];
|
|
29245
29245
|
if (typeof n == "object" && (0, $m.shouldUseRule)(r.schema, n)) {
|
|
29246
29246
|
const { type: o } = n.definition;
|
|
29247
|
-
o.length && !o.some((i) =>
|
|
29247
|
+
o.length && !o.some((i) => f4(e, i)) && Pm(r, `missing type "${o.join(",")}" for keyword "${s}"`);
|
|
29248
29248
|
}
|
|
29249
29249
|
}
|
|
29250
29250
|
}
|
|
29251
|
-
function
|
|
29251
|
+
function f4(r, e) {
|
|
29252
29252
|
return r.includes(e) || e === "number" && r.includes("integer");
|
|
29253
29253
|
}
|
|
29254
29254
|
function qS(r, e) {
|
|
29255
29255
|
return r.includes(e) || e === "integer" && r.includes("number");
|
|
29256
29256
|
}
|
|
29257
|
-
function
|
|
29257
|
+
function p4(r, e) {
|
|
29258
29258
|
const t = [];
|
|
29259
29259
|
for (const s of r.dataTypes)
|
|
29260
29260
|
qS(e, s) ? t.push(s) : e.includes("integer") && s === "number" && t.push("integer");
|
|
@@ -29353,7 +29353,7 @@ class VS {
|
|
|
29353
29353
|
const s = (0, yh.getSubschema)(this.it, e);
|
|
29354
29354
|
(0, yh.extendSubschemaData)(s, this.it, e), (0, yh.extendSubschemaMode)(s, e);
|
|
29355
29355
|
const n = { ...this.it, ...s, items: void 0, props: void 0 };
|
|
29356
|
-
return
|
|
29356
|
+
return t4(n, t), n;
|
|
29357
29357
|
}
|
|
29358
29358
|
mergeEvaluated(e, t) {
|
|
29359
29359
|
const { it: s, gen: n } = this;
|
|
@@ -29370,17 +29370,17 @@ function zS(r, e, t, s) {
|
|
|
29370
29370
|
const n = new VS(r, t, e);
|
|
29371
29371
|
"code" in t ? t.code(n, s) : n.$data && t.validate ? (0, ka.funcKeywordCode)(n, t) : "macro" in t ? (0, ka.macroKeywordCode)(n, t) : (t.compile || t.validate) && (0, ka.funcKeywordCode)(n, t);
|
|
29372
29372
|
}
|
|
29373
|
-
const
|
|
29373
|
+
const m4 = /^\/(?:[^~]|~0|~1)*$/, g4 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
29374
29374
|
function US(r, { dataLevel: e, dataNames: t, dataPathArr: s }) {
|
|
29375
29375
|
let n, o;
|
|
29376
29376
|
if (r === "")
|
|
29377
29377
|
return ve.default.rootData;
|
|
29378
29378
|
if (r[0] === "/") {
|
|
29379
|
-
if (!
|
|
29379
|
+
if (!m4.test(r))
|
|
29380
29380
|
throw new Error(`Invalid JSON-pointer: ${r}`);
|
|
29381
29381
|
n = r, o = ve.default.rootData;
|
|
29382
29382
|
} else {
|
|
29383
|
-
const c =
|
|
29383
|
+
const c = g4.exec(r);
|
|
29384
29384
|
if (!c)
|
|
29385
29385
|
throw new Error(`Invalid JSON-pointer: ${r}`);
|
|
29386
29386
|
const d = +c[1];
|
|
@@ -29406,25 +29406,25 @@ function US(r, { dataLevel: e, dataNames: t, dataPathArr: s }) {
|
|
|
29406
29406
|
pr.getData = US;
|
|
29407
29407
|
var vi = {};
|
|
29408
29408
|
Object.defineProperty(vi, "__esModule", { value: !0 });
|
|
29409
|
-
class
|
|
29409
|
+
class O4 extends Error {
|
|
29410
29410
|
constructor(e) {
|
|
29411
29411
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
29412
29412
|
}
|
|
29413
29413
|
}
|
|
29414
|
-
vi.default =
|
|
29414
|
+
vi.default = O4;
|
|
29415
29415
|
var wi = {};
|
|
29416
29416
|
Object.defineProperty(wi, "__esModule", { value: !0 });
|
|
29417
29417
|
const bh = vt;
|
|
29418
|
-
class
|
|
29418
|
+
class y4 extends Error {
|
|
29419
29419
|
constructor(e, t, s, n) {
|
|
29420
29420
|
super(n || `can't resolve reference ${s} from id ${t}`), this.missingRef = (0, bh.resolveUrl)(e, t, s), this.missingSchema = (0, bh.normalizeId)((0, bh.getFullPath)(e, this.missingRef));
|
|
29421
29421
|
}
|
|
29422
29422
|
}
|
|
29423
|
-
wi.default =
|
|
29423
|
+
wi.default = y4;
|
|
29424
29424
|
var Nt = {};
|
|
29425
29425
|
Object.defineProperty(Nt, "__esModule", { value: !0 });
|
|
29426
29426
|
Nt.resolveSchema = Nt.getCompilingSchema = Nt.resolveRef = Nt.compileSchema = Nt.SchemaEnv = void 0;
|
|
29427
|
-
const wr = we,
|
|
29427
|
+
const wr = we, b4 = vi, $n = or, Cr = vt, Ay = Ce, v4 = pr;
|
|
29428
29428
|
class nu {
|
|
29429
29429
|
constructor(e) {
|
|
29430
29430
|
var t;
|
|
@@ -29441,7 +29441,7 @@ function xm(r) {
|
|
|
29441
29441
|
const t = (0, Cr.getFullPath)(this.opts.uriResolver, r.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: o } = this.opts, i = new wr.CodeGen(this.scope, { es5: s, lines: n, ownProperties: o });
|
|
29442
29442
|
let a;
|
|
29443
29443
|
r.$async && (a = i.scopeValue("Error", {
|
|
29444
|
-
ref:
|
|
29444
|
+
ref: b4.default,
|
|
29445
29445
|
code: (0, wr._)`require("ajv/dist/runtime/validation_error").default`
|
|
29446
29446
|
}));
|
|
29447
29447
|
const l = i.scopeName("validate");
|
|
@@ -29472,7 +29472,7 @@ function xm(r) {
|
|
|
29472
29472
|
};
|
|
29473
29473
|
let d;
|
|
29474
29474
|
try {
|
|
29475
|
-
this._compilations.add(r), (0,
|
|
29475
|
+
this._compilations.add(r), (0, v4.validateFunctionCode)(c), i.optimize(this.opts.code.optimize);
|
|
29476
29476
|
const u = i.toString();
|
|
29477
29477
|
d = `${i.scopeRefs($n.default.scope)}return ${u}`, this.opts.code.process && (d = this.opts.code.process(d, r));
|
|
29478
29478
|
const h = new Function(`${$n.default.self}`, `${$n.default.scope}`, d)(this, this.scope.get());
|
|
@@ -29493,34 +29493,34 @@ function xm(r) {
|
|
|
29493
29493
|
}
|
|
29494
29494
|
}
|
|
29495
29495
|
Nt.compileSchema = xm;
|
|
29496
|
-
function
|
|
29496
|
+
function w4(r, e, t) {
|
|
29497
29497
|
var s;
|
|
29498
29498
|
t = (0, Cr.resolveUrl)(this.opts.uriResolver, e, t);
|
|
29499
29499
|
const n = r.refs[t];
|
|
29500
29500
|
if (n)
|
|
29501
29501
|
return n;
|
|
29502
|
-
let o = $
|
|
29502
|
+
let o = $4.call(this, r, t);
|
|
29503
29503
|
if (o === void 0) {
|
|
29504
29504
|
const i = (s = r.localRefs) === null || s === void 0 ? void 0 : s[t], { schemaId: a } = this.opts;
|
|
29505
29505
|
i && (o = new nu({ schema: i, schemaId: a, root: r, baseId: e }));
|
|
29506
29506
|
}
|
|
29507
29507
|
if (o !== void 0)
|
|
29508
|
-
return r.refs[t] =
|
|
29508
|
+
return r.refs[t] = S4.call(this, o);
|
|
29509
29509
|
}
|
|
29510
|
-
Nt.resolveRef =
|
|
29511
|
-
function
|
|
29510
|
+
Nt.resolveRef = w4;
|
|
29511
|
+
function S4(r) {
|
|
29512
29512
|
return (0, Cr.inlineRef)(r.schema, this.opts.inlineRefs) ? r.schema : r.validate ? r : xm.call(this, r);
|
|
29513
29513
|
}
|
|
29514
29514
|
function YS(r) {
|
|
29515
29515
|
for (const e of this._compilations)
|
|
29516
|
-
if (
|
|
29516
|
+
if (k4(e, r))
|
|
29517
29517
|
return e;
|
|
29518
29518
|
}
|
|
29519
29519
|
Nt.getCompilingSchema = YS;
|
|
29520
|
-
function
|
|
29520
|
+
function k4(r, e) {
|
|
29521
29521
|
return r.schema === e.schema && r.root === e.root && r.baseId === e.baseId;
|
|
29522
29522
|
}
|
|
29523
|
-
function $
|
|
29523
|
+
function $4(r, e) {
|
|
29524
29524
|
let t;
|
|
29525
29525
|
for (; typeof (t = this.refs[e]) == "string"; )
|
|
29526
29526
|
e = t;
|
|
@@ -29545,7 +29545,7 @@ function ou(r, e) {
|
|
|
29545
29545
|
}
|
|
29546
29546
|
}
|
|
29547
29547
|
Nt.resolveSchema = ou;
|
|
29548
|
-
const
|
|
29548
|
+
const P4 = /* @__PURE__ */ new Set([
|
|
29549
29549
|
"properties",
|
|
29550
29550
|
"patternProperties",
|
|
29551
29551
|
"enum",
|
|
@@ -29564,7 +29564,7 @@ function vh(r, { baseId: e, schema: t, root: s }) {
|
|
|
29564
29564
|
return;
|
|
29565
29565
|
t = l;
|
|
29566
29566
|
const c = typeof t == "object" && t[this.opts.schemaId];
|
|
29567
|
-
!
|
|
29567
|
+
!P4.has(a) && c && (e = (0, Cr.resolveUrl)(this.opts.uriResolver, e, c));
|
|
29568
29568
|
}
|
|
29569
29569
|
let o;
|
|
29570
29570
|
if (typeof t != "boolean" && t.$ref && !(0, Ay.schemaHasRulesButRef)(t, this.RULES)) {
|
|
@@ -29575,9 +29575,9 @@ function vh(r, { baseId: e, schema: t, root: s }) {
|
|
|
29575
29575
|
if (o = o || new nu({ schema: t, schemaId: i, root: s, baseId: e }), o.schema !== o.root.schema)
|
|
29576
29576
|
return o;
|
|
29577
29577
|
}
|
|
29578
|
-
const
|
|
29578
|
+
const x4 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", _4 = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Q4 = "object", T4 = [
|
|
29579
29579
|
"$data"
|
|
29580
|
-
],
|
|
29580
|
+
], C4 = {
|
|
29581
29581
|
$data: {
|
|
29582
29582
|
type: "string",
|
|
29583
29583
|
anyOf: [
|
|
@@ -29589,13 +29589,13 @@ const xN = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
29589
29589
|
}
|
|
29590
29590
|
]
|
|
29591
29591
|
}
|
|
29592
|
-
},
|
|
29593
|
-
$id:
|
|
29594
|
-
description:
|
|
29595
|
-
type:
|
|
29596
|
-
required:
|
|
29597
|
-
properties:
|
|
29598
|
-
additionalProperties:
|
|
29592
|
+
}, E4 = !1, A4 = {
|
|
29593
|
+
$id: x4,
|
|
29594
|
+
description: _4,
|
|
29595
|
+
type: Q4,
|
|
29596
|
+
required: T4,
|
|
29597
|
+
properties: C4,
|
|
29598
|
+
additionalProperties: E4
|
|
29599
29599
|
};
|
|
29600
29600
|
var _m = {}, Jf = { exports: {} };
|
|
29601
29601
|
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
@@ -30149,9 +30149,9 @@ var _m = {}, Jf = { exports: {} };
|
|
|
30149
30149
|
te[bn.scheme] = bn, te[Ng.scheme] = Ng, te[Vi.scheme] = Vi, te[Mg.scheme] = Mg, te[qg.scheme] = qg, te[Vg.scheme] = Vg, te[zg.scheme] = zg, t.SCHEMES = te, t.pctEncChar = oe, t.pctDecChars = $e, t.parse = Lt, t.removeDotSegments = Vr, t.serialize = Wt, t.resolveComponents = fo, t.resolve = Wi, t.normalize = yn, t.equal = qi, t.escapeComponent = El, t.unescapeComponent = ir, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
30150
30150
|
});
|
|
30151
30151
|
})(Jf, Jf.exports);
|
|
30152
|
-
var
|
|
30152
|
+
var R4 = Jf.exports;
|
|
30153
30153
|
Object.defineProperty(_m, "__esModule", { value: !0 });
|
|
30154
|
-
const BS =
|
|
30154
|
+
const BS = R4;
|
|
30155
30155
|
BS.code = 'require("ajv/dist/runtime/uri").default';
|
|
30156
30156
|
_m.default = BS;
|
|
30157
30157
|
(function(r) {
|
|
@@ -30174,7 +30174,7 @@ _m.default = BS;
|
|
|
30174
30174
|
} }), Object.defineProperty(r, "CodeGen", { enumerable: !0, get: function() {
|
|
30175
30175
|
return t.CodeGen;
|
|
30176
30176
|
} });
|
|
30177
|
-
const s = vi, n = wi, o = Kn, i = Nt, a = we, l = vt, c = gl, d = Ce, u =
|
|
30177
|
+
const s = vi, n = wi, o = Kn, i = Nt, a = we, l = vt, c = gl, d = Ce, u = A4, h = _m, f = (ee, N) => new RegExp(ee, N);
|
|
30178
30178
|
f.code = "new RegExp";
|
|
30179
30179
|
const p = ["removeAdditional", "useDefaults", "coerceTypes"], m = /* @__PURE__ */ new Set([
|
|
30180
30180
|
"validate",
|
|
@@ -30596,17 +30596,17 @@ _m.default = BS;
|
|
|
30596
30596
|
})(Un);
|
|
30597
30597
|
var Qm = {}, iu = {}, Tm = {};
|
|
30598
30598
|
Object.defineProperty(Tm, "__esModule", { value: !0 });
|
|
30599
|
-
const
|
|
30599
|
+
const Z4 = {
|
|
30600
30600
|
keyword: "id",
|
|
30601
30601
|
code() {
|
|
30602
30602
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
30603
30603
|
}
|
|
30604
30604
|
};
|
|
30605
|
-
Tm.default =
|
|
30605
|
+
Tm.default = Z4;
|
|
30606
30606
|
var ls = {};
|
|
30607
30607
|
Object.defineProperty(ls, "__esModule", { value: !0 });
|
|
30608
30608
|
ls.callRef = ls.getValidate = void 0;
|
|
30609
|
-
const
|
|
30609
|
+
const I4 = wi, Ry = Qe, Vt = we, wo = or, Zy = Nt, ic = Ce, j4 = {
|
|
30610
30610
|
keyword: "$ref",
|
|
30611
30611
|
schemaType: "string",
|
|
30612
30612
|
code(r) {
|
|
@@ -30615,7 +30615,7 @@ const IN = wi, Ry = Qe, Vt = we, wo = or, Zy = Nt, ic = Ce, jN = {
|
|
|
30615
30615
|
return u();
|
|
30616
30616
|
const d = Zy.resolveRef.call(l, c, n, t);
|
|
30617
30617
|
if (d === void 0)
|
|
30618
|
-
throw new
|
|
30618
|
+
throw new I4.default(s.opts.uriResolver, n, t);
|
|
30619
30619
|
if (d instanceof Zy.SchemaEnv)
|
|
30620
30620
|
return h(d);
|
|
30621
30621
|
return f(d);
|
|
@@ -30688,19 +30688,19 @@ function Zc(r, e, t, s) {
|
|
|
30688
30688
|
}
|
|
30689
30689
|
}
|
|
30690
30690
|
ls.callRef = Zc;
|
|
30691
|
-
ls.default =
|
|
30691
|
+
ls.default = j4;
|
|
30692
30692
|
Object.defineProperty(iu, "__esModule", { value: !0 });
|
|
30693
|
-
const
|
|
30693
|
+
const N4 = Tm, D4 = ls, M4 = [
|
|
30694
30694
|
"$schema",
|
|
30695
30695
|
"$id",
|
|
30696
30696
|
"$defs",
|
|
30697
30697
|
"$vocabulary",
|
|
30698
30698
|
{ keyword: "$comment" },
|
|
30699
30699
|
"definitions",
|
|
30700
|
-
|
|
30701
|
-
|
|
30700
|
+
N4.default,
|
|
30701
|
+
D4.default
|
|
30702
30702
|
];
|
|
30703
|
-
iu.default =
|
|
30703
|
+
iu.default = M4;
|
|
30704
30704
|
var au = {}, Cm = {};
|
|
30705
30705
|
Object.defineProperty(Cm, "__esModule", { value: !0 });
|
|
30706
30706
|
const yd = we, Xs = yd.operators, bd = {
|
|
@@ -30708,38 +30708,38 @@ const yd = we, Xs = yd.operators, bd = {
|
|
|
30708
30708
|
minimum: { okStr: ">=", ok: Xs.GTE, fail: Xs.LT },
|
|
30709
30709
|
exclusiveMaximum: { okStr: "<", ok: Xs.LT, fail: Xs.GTE },
|
|
30710
30710
|
exclusiveMinimum: { okStr: ">", ok: Xs.GT, fail: Xs.LTE }
|
|
30711
|
-
},
|
|
30711
|
+
}, X4 = {
|
|
30712
30712
|
message: ({ keyword: r, schemaCode: e }) => (0, yd.str)`must be ${bd[r].okStr} ${e}`,
|
|
30713
30713
|
params: ({ keyword: r, schemaCode: e }) => (0, yd._)`{comparison: ${bd[r].okStr}, limit: ${e}}`
|
|
30714
|
-
},
|
|
30714
|
+
}, W4 = {
|
|
30715
30715
|
keyword: Object.keys(bd),
|
|
30716
30716
|
type: "number",
|
|
30717
30717
|
schemaType: "number",
|
|
30718
30718
|
$data: !0,
|
|
30719
|
-
error:
|
|
30719
|
+
error: X4,
|
|
30720
30720
|
code(r) {
|
|
30721
30721
|
const { keyword: e, data: t, schemaCode: s } = r;
|
|
30722
30722
|
r.fail$data((0, yd._)`${t} ${bd[e].fail} ${s} || isNaN(${t})`);
|
|
30723
30723
|
}
|
|
30724
30724
|
};
|
|
30725
|
-
Cm.default =
|
|
30725
|
+
Cm.default = W4;
|
|
30726
30726
|
var lu = {};
|
|
30727
30727
|
Object.defineProperty(lu, "__esModule", { value: !0 });
|
|
30728
|
-
const $a = we,
|
|
30728
|
+
const $a = we, q4 = {
|
|
30729
30729
|
message: ({ schemaCode: r }) => (0, $a.str)`must be multiple of ${r}`,
|
|
30730
30730
|
params: ({ schemaCode: r }) => (0, $a._)`{multipleOf: ${r}}`
|
|
30731
|
-
},
|
|
30731
|
+
}, V4 = {
|
|
30732
30732
|
keyword: "multipleOf",
|
|
30733
30733
|
type: "number",
|
|
30734
30734
|
schemaType: "number",
|
|
30735
30735
|
$data: !0,
|
|
30736
|
-
error:
|
|
30736
|
+
error: q4,
|
|
30737
30737
|
code(r) {
|
|
30738
30738
|
const { gen: e, data: t, schemaCode: s, it: n } = r, o = n.opts.multipleOfPrecision, i = e.let("res"), a = o ? (0, $a._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}` : (0, $a._)`${i} !== parseInt(${i})`;
|
|
30739
30739
|
r.fail$data((0, $a._)`(${s} === 0 || (${i} = ${t}/${s}, ${a}))`);
|
|
30740
30740
|
}
|
|
30741
30741
|
};
|
|
30742
|
-
lu.default =
|
|
30742
|
+
lu.default = V4;
|
|
30743
30743
|
var cu = {}, Em = {};
|
|
30744
30744
|
Object.defineProperty(Em, "__esModule", { value: !0 });
|
|
30745
30745
|
function HS(r) {
|
|
@@ -30752,64 +30752,64 @@ function HS(r) {
|
|
|
30752
30752
|
Em.default = HS;
|
|
30753
30753
|
HS.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
30754
30754
|
Object.defineProperty(cu, "__esModule", { value: !0 });
|
|
30755
|
-
const Tn = we,
|
|
30755
|
+
const Tn = we, z4 = Ce, U4 = Em, Y4 = {
|
|
30756
30756
|
message({ keyword: r, schemaCode: e }) {
|
|
30757
30757
|
const t = r === "maxLength" ? "more" : "fewer";
|
|
30758
30758
|
return (0, Tn.str)`must NOT have ${t} than ${e} characters`;
|
|
30759
30759
|
},
|
|
30760
30760
|
params: ({ schemaCode: r }) => (0, Tn._)`{limit: ${r}}`
|
|
30761
|
-
},
|
|
30761
|
+
}, B4 = {
|
|
30762
30762
|
keyword: ["maxLength", "minLength"],
|
|
30763
30763
|
type: "string",
|
|
30764
30764
|
schemaType: "number",
|
|
30765
30765
|
$data: !0,
|
|
30766
|
-
error:
|
|
30766
|
+
error: Y4,
|
|
30767
30767
|
code(r) {
|
|
30768
|
-
const { keyword: e, data: t, schemaCode: s, it: n } = r, o = e === "maxLength" ? Tn.operators.GT : Tn.operators.LT, i = n.opts.unicode === !1 ? (0, Tn._)`${t}.length` : (0, Tn._)`${(0,
|
|
30768
|
+
const { keyword: e, data: t, schemaCode: s, it: n } = r, o = e === "maxLength" ? Tn.operators.GT : Tn.operators.LT, i = n.opts.unicode === !1 ? (0, Tn._)`${t}.length` : (0, Tn._)`${(0, z4.useFunc)(r.gen, U4.default)}(${t})`;
|
|
30769
30769
|
r.fail$data((0, Tn._)`${i} ${o} ${s}`);
|
|
30770
30770
|
}
|
|
30771
30771
|
};
|
|
30772
|
-
cu.default =
|
|
30772
|
+
cu.default = B4;
|
|
30773
30773
|
var du = {};
|
|
30774
30774
|
Object.defineProperty(du, "__esModule", { value: !0 });
|
|
30775
|
-
const
|
|
30775
|
+
const L4 = Qe, vd = we, H4 = {
|
|
30776
30776
|
message: ({ schemaCode: r }) => (0, vd.str)`must match pattern "${r}"`,
|
|
30777
30777
|
params: ({ schemaCode: r }) => (0, vd._)`{pattern: ${r}}`
|
|
30778
|
-
},
|
|
30778
|
+
}, G4 = {
|
|
30779
30779
|
keyword: "pattern",
|
|
30780
30780
|
type: "string",
|
|
30781
30781
|
schemaType: "string",
|
|
30782
30782
|
$data: !0,
|
|
30783
|
-
error:
|
|
30783
|
+
error: H4,
|
|
30784
30784
|
code(r) {
|
|
30785
|
-
const { data: e, $data: t, schema: s, schemaCode: n, it: o } = r, i = o.opts.unicodeRegExp ? "u" : "", a = t ? (0, vd._)`(new RegExp(${n}, ${i}))` : (0,
|
|
30785
|
+
const { data: e, $data: t, schema: s, schemaCode: n, it: o } = r, i = o.opts.unicodeRegExp ? "u" : "", a = t ? (0, vd._)`(new RegExp(${n}, ${i}))` : (0, L4.usePattern)(r, s);
|
|
30786
30786
|
r.fail$data((0, vd._)`!${a}.test(${e})`);
|
|
30787
30787
|
}
|
|
30788
30788
|
};
|
|
30789
|
-
du.default =
|
|
30789
|
+
du.default = G4;
|
|
30790
30790
|
var uu = {};
|
|
30791
30791
|
Object.defineProperty(uu, "__esModule", { value: !0 });
|
|
30792
|
-
const Pa = we,
|
|
30792
|
+
const Pa = we, F4 = {
|
|
30793
30793
|
message({ keyword: r, schemaCode: e }) {
|
|
30794
30794
|
const t = r === "maxProperties" ? "more" : "fewer";
|
|
30795
30795
|
return (0, Pa.str)`must NOT have ${t} than ${e} properties`;
|
|
30796
30796
|
},
|
|
30797
30797
|
params: ({ schemaCode: r }) => (0, Pa._)`{limit: ${r}}`
|
|
30798
|
-
},
|
|
30798
|
+
}, K4 = {
|
|
30799
30799
|
keyword: ["maxProperties", "minProperties"],
|
|
30800
30800
|
type: "object",
|
|
30801
30801
|
schemaType: "number",
|
|
30802
30802
|
$data: !0,
|
|
30803
|
-
error:
|
|
30803
|
+
error: F4,
|
|
30804
30804
|
code(r) {
|
|
30805
30805
|
const { keyword: e, data: t, schemaCode: s } = r, n = e === "maxProperties" ? Pa.operators.GT : Pa.operators.LT;
|
|
30806
30806
|
r.fail$data((0, Pa._)`Object.keys(${t}).length ${n} ${s}`);
|
|
30807
30807
|
}
|
|
30808
30808
|
};
|
|
30809
|
-
uu.default =
|
|
30809
|
+
uu.default = K4;
|
|
30810
30810
|
var hu = {};
|
|
30811
30811
|
Object.defineProperty(hu, "__esModule", { value: !0 });
|
|
30812
|
-
const ra = Qe, xa = we,
|
|
30812
|
+
const ra = Qe, xa = we, J4 = Ce, e7 = {
|
|
30813
30813
|
message: ({ params: { missingProperty: r } }) => (0, xa.str)`must have required property '${r}'`,
|
|
30814
30814
|
params: ({ params: { missingProperty: r } }) => (0, xa._)`{missingProperty: ${r}}`
|
|
30815
30815
|
}, t7 = {
|
|
@@ -30828,7 +30828,7 @@ const ra = Qe, xa = we, JN = Ce, e7 = {
|
|
|
30828
30828
|
for (const m of t)
|
|
30829
30829
|
if ((f == null ? void 0 : f[m]) === void 0 && !p.has(m)) {
|
|
30830
30830
|
const g = i.schemaEnv.baseId + i.errSchemaPath, O = `required property "${m}" is not defined at "${g}" (strictRequired)`;
|
|
30831
|
-
(0,
|
|
30831
|
+
(0, J4.checkStrictMode)(i, O, i.opts.strictRequired);
|
|
30832
30832
|
}
|
|
30833
30833
|
}
|
|
30834
30834
|
function c() {
|
|
@@ -40873,7 +40873,7 @@ const io = /* @__PURE__ */ se(sz, [["render", oz], ["__scopeId", "data-v-dcabb13
|
|
|
40873
40873
|
innerHTML: t.value
|
|
40874
40874
|
}, null, 8, bz));
|
|
40875
40875
|
}
|
|
40876
|
-
}), nr = /* @__PURE__ */ se(vz, [["__scopeId", "data-v-
|
|
40876
|
+
}), nr = /* @__PURE__ */ se(vz, [["__scopeId", "data-v-e301bbc8"]]), wz = ["title", "innerHTML"], Sz = /* @__PURE__ */ L({
|
|
40877
40877
|
__name: "ServerItem",
|
|
40878
40878
|
props: {
|
|
40879
40879
|
value: {},
|
|
@@ -42013,7 +42013,7 @@ const Tl = /* @__PURE__ */ se(pU, [["render", gU], ["__scopeId", "data-v-34b2695
|
|
|
42013
42013
|
]);
|
|
42014
42014
|
};
|
|
42015
42015
|
}
|
|
42016
|
-
}), hY = /* @__PURE__ */ se(uY, [["__scopeId", "data-v-
|
|
42016
|
+
}), hY = /* @__PURE__ */ se(uY, [["__scopeId", "data-v-0b4351f0"]]), fY = (r) => ($t("data-v-ca3c524d"), r = r(), Pt(), r), pY = {
|
|
42017
42017
|
key: 0,
|
|
42018
42018
|
class: "property-description"
|
|
42019
42019
|
}, mY = {
|