@ambita/design-system 4.0.2-971.0 → 4.0.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.
- package/dist/ds.js +2 -2
- package/dist/ds.js.map +1 -1
- package/dist/ds.mjs +329 -329
- package/dist/ds.mjs.map +1 -1
- package/dist/ds.umd.js +11 -11
- package/dist/ds.umd.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/types/src/components/JsonForm/JsonForm.vue.d.ts +3 -3
- package/package.json +2 -2
package/dist/ds.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, computed as
|
|
1
|
+
import { defineComponent as X, computed as se, openBlock as U, createElementBlock as W, normalizeClass as _e, renderSlot as be, createCommentVNode as de, createElementVNode as G, createBlock as oe, resolveDynamicComponent as or, toDisplayString as me, pushScopeId as gs, popScopeId as _s, withCtx as Ee, resolveComponent as ee, reactive as Kt, createVNode as Ve, createTextVNode as ft, withModifiers as tf, Fragment as Je, renderList as Gt, ref as tt, normalizeStyle as rf, watch as _o, createSlots as Zm, onMounted as nf, onUnmounted as af, nextTick as Ym, inject as Za, normalizeProps as sf, guardReactiveProps as of, onBeforeMount as Xm, shallowRef as It } from "vue";
|
|
2
2
|
const Qm = X({
|
|
3
3
|
name: "aux-button",
|
|
4
4
|
props: {
|
|
@@ -28,7 +28,7 @@ const Qm = X({
|
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
30
|
return {
|
|
31
|
-
classes:
|
|
31
|
+
classes: se(() => ({
|
|
32
32
|
"aux-button": !0,
|
|
33
33
|
"aux-button--primary": e.primary,
|
|
34
34
|
"aux-button--secondary": !e.primary,
|
|
@@ -215,7 +215,7 @@ const rt = ff.v4, R$ = X({
|
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
setup(e) {
|
|
218
|
-
const t =
|
|
218
|
+
const t = se(() => {
|
|
219
219
|
if (e.title)
|
|
220
220
|
return e.title;
|
|
221
221
|
switch (e.type) {
|
|
@@ -228,15 +228,15 @@ const rt = ff.v4, R$ = X({
|
|
|
228
228
|
default:
|
|
229
229
|
return "Info.";
|
|
230
230
|
}
|
|
231
|
-
}), r =
|
|
231
|
+
}), r = se(() => ({
|
|
232
232
|
"aux-banner": !0,
|
|
233
233
|
[`aux-banner--${e.type}`]: !0
|
|
234
|
-
})), n =
|
|
234
|
+
})), n = se(() => ({
|
|
235
235
|
icon: !0,
|
|
236
236
|
[`icon--${e.type}`]: !0
|
|
237
237
|
}));
|
|
238
238
|
return {
|
|
239
|
-
icon:
|
|
239
|
+
icon: se(() => {
|
|
240
240
|
switch (e.type) {
|
|
241
241
|
case "error":
|
|
242
242
|
return Ya;
|
|
@@ -298,10 +298,10 @@ const Sz = /* @__PURE__ */ te(R$, [["render", k$], ["__scopeId", "data-v-a13bf3f
|
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
setup(e, t) {
|
|
301
|
-
const r =
|
|
301
|
+
const r = se(() => ({
|
|
302
302
|
"aux-spinner": !0,
|
|
303
303
|
[`aux-spinner--${e.size}`]: !0
|
|
304
|
-
})), n =
|
|
304
|
+
})), n = se(() => t.slots.default && e.size !== "small");
|
|
305
305
|
return e.size === "small" && t.slots.default && console.error("AuxSpinner: Label is not displayed for small sizes"), { classes: r, showLabel: n };
|
|
306
306
|
}
|
|
307
307
|
});
|
|
@@ -329,7 +329,7 @@ const Az = /* @__PURE__ */ te(M$, [["render", U$], ["__scopeId", "data-v-dfc87c4
|
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
return console.warn("Pills erstattes med med AuxTag"), { classes:
|
|
332
|
+
return console.warn("Pills erstattes med med AuxTag"), { classes: se(() => ({
|
|
333
333
|
"aux-pill": !0,
|
|
334
334
|
[`aux-pill--${e.color}`]: !0
|
|
335
335
|
})) };
|
|
@@ -367,7 +367,7 @@ const Pz = /* @__PURE__ */ te(z$, [["render", W$], ["__scopeId", "data-v-6bd2fe2
|
|
|
367
367
|
},
|
|
368
368
|
emits: ["change"],
|
|
369
369
|
setup(e, { emit: t }) {
|
|
370
|
-
return { isSelected:
|
|
370
|
+
return { isSelected: se(() => e.value === e.selected), change: (a) => {
|
|
371
371
|
t("change", a.target.value);
|
|
372
372
|
} };
|
|
373
373
|
}
|
|
@@ -404,7 +404,7 @@ const Oz = /* @__PURE__ */ te(B$, [["render", J$], ["__scopeId", "data-v-3ca6a35
|
|
|
404
404
|
},
|
|
405
405
|
emits: ["click"],
|
|
406
406
|
setup(e, { slots: t }) {
|
|
407
|
-
const r =
|
|
407
|
+
const r = se(() => e.href ? "a" : "button"), n = se(() => ({
|
|
408
408
|
"aux-link": !0,
|
|
409
409
|
[`aux-link--${e.size}`]: !0,
|
|
410
410
|
"aux-link-icon-left": t.left,
|
|
@@ -467,7 +467,7 @@ const av = { render: nv }, sv = X({
|
|
|
467
467
|
},
|
|
468
468
|
setup(e) {
|
|
469
469
|
return {
|
|
470
|
-
classes:
|
|
470
|
+
classes: se(() => ({
|
|
471
471
|
"aux-arrow": !0,
|
|
472
472
|
[`aux-arrow--${e.direction}`]: !0
|
|
473
473
|
}))
|
|
@@ -491,7 +491,7 @@ const iv = /* @__PURE__ */ te(sv, [["render", ov], ["__scopeId", "data-v-d1e0983
|
|
|
491
491
|
isOpen: !1
|
|
492
492
|
}), t = () => {
|
|
493
493
|
e.isOpen = !e.isOpen;
|
|
494
|
-
}, r =
|
|
494
|
+
}, r = se(() => e.isOpen ? "up" : "down");
|
|
495
495
|
return { state: e, toggleOpen: t, arrowDirection: r };
|
|
496
496
|
}
|
|
497
497
|
});
|
|
@@ -601,7 +601,7 @@ const sn = /* @__PURE__ */ te(fv, [["render", vv], ["__scopeId", "data-v-ce98c0c
|
|
|
601
601
|
},
|
|
602
602
|
emits: ["change"],
|
|
603
603
|
setup(e, { emit: t }) {
|
|
604
|
-
return { isSelected:
|
|
604
|
+
return { isSelected: se(() => e.value === e.selected.toString()), change: (a) => {
|
|
605
605
|
t("change", a.target.value);
|
|
606
606
|
} };
|
|
607
607
|
}
|
|
@@ -653,7 +653,7 @@ const jl = /* @__PURE__ */ te(yv, [["render", _v], ["__scopeId", "data-v-5dfa60e
|
|
|
653
653
|
},
|
|
654
654
|
emits: ["change"],
|
|
655
655
|
setup(e, { emit: t }) {
|
|
656
|
-
return { isSelected:
|
|
656
|
+
return { isSelected: se(() => e.value == e.selected), change: (a) => {
|
|
657
657
|
t("change", a.target.value);
|
|
658
658
|
} };
|
|
659
659
|
}
|
|
@@ -732,7 +732,7 @@ const Dl = /* @__PURE__ */ te(bv, [["render", Sv], ["__scopeId", "data-v-96dea0f
|
|
|
732
732
|
selected: e.selected.toString()
|
|
733
733
|
}), n = (s) => {
|
|
734
734
|
r.selected = s, t("update:selected", s);
|
|
735
|
-
}, a =
|
|
735
|
+
}, a = se(() => e.layout === "card" ? jl : Dl);
|
|
736
736
|
return { state: r, changeEvent: n, radioType: a };
|
|
737
737
|
}
|
|
738
738
|
});
|
|
@@ -824,7 +824,7 @@ const pf = { render: Rv }, Nv = X({
|
|
|
824
824
|
},
|
|
825
825
|
emits: ["focus", "blur", "input", "update:modelValue"],
|
|
826
826
|
setup(e, { slots: t, emit: r }) {
|
|
827
|
-
const n =
|
|
827
|
+
const n = se(() => t.left), a = se(() => e.clearable || t.right), s = tt(null);
|
|
828
828
|
return {
|
|
829
829
|
inputFieldEl: s,
|
|
830
830
|
focus: () => {
|
|
@@ -933,7 +933,7 @@ const hf = /* @__PURE__ */ te(Nv, [["render", Dv], ["__scopeId", "data-v-dea7925
|
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
935
|
setup(e) {
|
|
936
|
-
const t =
|
|
936
|
+
const t = se(() => ({
|
|
937
937
|
"aux-definition": !0,
|
|
938
938
|
"aux-definition--vertical": e.vertical || e.size !== "small",
|
|
939
939
|
[`aux-definition-value--${e.size}`]: !0
|
|
@@ -1155,7 +1155,7 @@ const Ml = /* @__PURE__ */ te(Qv, [["render", ty], ["__scopeId", "data-v-3a00f3b
|
|
|
1155
1155
|
setup(e, { emit: t }) {
|
|
1156
1156
|
const r = (a) => {
|
|
1157
1157
|
e.layout === "card" && t("update:selected", a), t("change", a);
|
|
1158
|
-
}, n =
|
|
1158
|
+
}, n = se(() => e.layout === "card" ? Ml : kl);
|
|
1159
1159
|
return {
|
|
1160
1160
|
changeEvent: r,
|
|
1161
1161
|
checkboxType: n
|
|
@@ -1284,7 +1284,7 @@ const $f = /* @__PURE__ */ te(ay, [["render", iy], ["__scopeId", "data-v-960128f
|
|
|
1284
1284
|
emits: ["action-clicked"],
|
|
1285
1285
|
setup(e, { emit: t }) {
|
|
1286
1286
|
return {
|
|
1287
|
-
actionsOrganized:
|
|
1287
|
+
actionsOrganized: se(() => {
|
|
1288
1288
|
const n = [], a = [], s = [];
|
|
1289
1289
|
e.actions.forEach((i) => {
|
|
1290
1290
|
i.primary ? n.push(i) : i.destructive ? s.push(i) : a.push(i);
|
|
@@ -1468,7 +1468,7 @@ function yy(e, t, r, n, a, s) {
|
|
|
1468
1468
|
])) : de("", !0)
|
|
1469
1469
|
], 10, fy);
|
|
1470
1470
|
}
|
|
1471
|
-
const Iz = /* @__PURE__ */ te(dy, [["render", yy], ["__scopeId", "data-v-
|
|
1471
|
+
const Iz = /* @__PURE__ */ te(dy, [["render", yy], ["__scopeId", "data-v-2c99598e"]]), gy = X({
|
|
1472
1472
|
name: "aux-textarea",
|
|
1473
1473
|
props: {
|
|
1474
1474
|
modelValue: {
|
|
@@ -1524,7 +1524,7 @@ const Iz = /* @__PURE__ */ te(dy, [["render", yy], ["__scopeId", "data-v-2626d29
|
|
|
1524
1524
|
emits: ["blur", "update:modelValue", "input"],
|
|
1525
1525
|
setup(e, { emit: t }) {
|
|
1526
1526
|
return {
|
|
1527
|
-
styles:
|
|
1527
|
+
styles: se(() => ({
|
|
1528
1528
|
resize: e.resize,
|
|
1529
1529
|
"max-width": e.width
|
|
1530
1530
|
})),
|
|
@@ -1721,11 +1721,11 @@ const Gy = /* @__PURE__ */ te(Ly, [["render", Ky], ["__scopeId", "data-v-418ebf0
|
|
|
1721
1721
|
fileList: e.files,
|
|
1722
1722
|
isOver: !1,
|
|
1723
1723
|
message: ""
|
|
1724
|
-
}), c =
|
|
1724
|
+
}), c = se(() => ({
|
|
1725
1725
|
"aux-input-upload-field-wrapper": !0,
|
|
1726
1726
|
[r]: l.isOver,
|
|
1727
1727
|
[n]: !l.isOver
|
|
1728
|
-
})), d =
|
|
1728
|
+
})), d = se(() => l.fileList.length !== 0), h = () => {
|
|
1729
1729
|
a.value.classList.contains(n) && (l.isOver = !0);
|
|
1730
1730
|
}, g = () => {
|
|
1731
1731
|
l.isOver = !1;
|
|
@@ -1895,7 +1895,7 @@ const jz = /* @__PURE__ */ te(rg, [["render", ag], ["__scopeId", "data-v-8336696
|
|
|
1895
1895
|
}
|
|
1896
1896
|
},
|
|
1897
1897
|
setup(e) {
|
|
1898
|
-
return { classes:
|
|
1898
|
+
return { classes: se(() => ({
|
|
1899
1899
|
"aux-tag": !0,
|
|
1900
1900
|
[`aux-tag--${e.color}`]: !0
|
|
1901
1901
|
})) };
|
|
@@ -2053,7 +2053,7 @@ const kz = /* @__PURE__ */ te(vg, [["render", Eg], ["__scopeId", "data-v-f9f4b5c
|
|
|
2053
2053
|
}, l = (h) => {
|
|
2054
2054
|
if (e.dataTestid)
|
|
2055
2055
|
return `${e.dataTestid}-${h}`;
|
|
2056
|
-
}, c =
|
|
2056
|
+
}, c = se(() => e.onLabel !== void 0 && e.offLabel !== void 0 ? s.value ? e.onLabel : e.offLabel : "På"), d = se(() => e.onLabel !== void 0 && e.offLabel !== void 0 ? s.value ? e.offLabel : e.onLabel : "Av");
|
|
2057
2057
|
return {
|
|
2058
2058
|
activeText: c,
|
|
2059
2059
|
inactiveText: d,
|
|
@@ -2226,10 +2226,10 @@ const xg = { render: Jg }, Zg = X({
|
|
|
2226
2226
|
g(w.value - e.width);
|
|
2227
2227
|
}, p = () => {
|
|
2228
2228
|
g(w.value + e.width);
|
|
2229
|
-
}, v =
|
|
2229
|
+
}, v = se(() => Math.ceil(e.config.totalCount / e.config.limit)), w = se(() => r.value / e.config.limit + 1), C = se(() => {
|
|
2230
2230
|
const P = d(), N = [...P.slice(c(), l())];
|
|
2231
2231
|
return w.value - h() > 2 && (N.shift(), N.unshift("ellipsis-left")), w.value + h() < P.length && (N.pop(), N.push("ellipsis-right")), N.unshift(1), N.push(v.value), N;
|
|
2232
|
-
}), D =
|
|
2232
|
+
}), D = se(() => Object.prototype.hasOwnProperty.call(e.config, "offset") && Object.prototype.hasOwnProperty.call(e.config, "limit") && Object.prototype.hasOwnProperty.call(e.config, "totalCount"));
|
|
2233
2233
|
return (() => {
|
|
2234
2234
|
r.value = e.config.offset, D.value || console.warn("Pagination require: offset, limit, and totalCount");
|
|
2235
2235
|
})(), {
|
|
@@ -2365,7 +2365,7 @@ const Fz = /* @__PURE__ */ te(c0, [["render", f0], ["__scopeId", "data-v-5f63c11
|
|
|
2365
2365
|
},
|
|
2366
2366
|
emits: ["remove-notification"],
|
|
2367
2367
|
setup(e, { emit: t }) {
|
|
2368
|
-
const r = tt(!1), n =
|
|
2368
|
+
const r = tt(!1), n = se(() => ({
|
|
2369
2369
|
"aux-notification": !0,
|
|
2370
2370
|
[`aux-notification--${e.type}`]: e.type,
|
|
2371
2371
|
"aux-notification-show": r.value
|
|
@@ -2377,7 +2377,7 @@ const Fz = /* @__PURE__ */ te(c0, [["render", f0], ["__scopeId", "data-v-5f63c11
|
|
|
2377
2377
|
}, 100), setTimeout(() => {
|
|
2378
2378
|
a();
|
|
2379
2379
|
}, 6e3);
|
|
2380
|
-
const s =
|
|
2380
|
+
const s = se(() => {
|
|
2381
2381
|
switch (e.type) {
|
|
2382
2382
|
case "error":
|
|
2383
2383
|
return Ya;
|
|
@@ -5003,11 +5003,11 @@ function HD(e) {
|
|
|
5003
5003
|
var t = GD(e), r = t % 1;
|
|
5004
5004
|
return t === t ? r ? t - r : t : 0;
|
|
5005
5005
|
}
|
|
5006
|
-
var Rs = HD, JD = Lp, xD = $8, ZD = hD, YD = Hp, XD = _D, QD = Up,
|
|
5007
|
-
function
|
|
5008
|
-
var l = t &
|
|
5006
|
+
var Rs = HD, JD = Lp, xD = $8, ZD = hD, YD = Hp, XD = _D, QD = Up, e9 = OD, t9 = zp, r9 = Wp, ed = Rs, n9 = "Expected a function", td = 1, a9 = 2, to = 8, ro = 16, no = 32, rd = 64, nd = Math.max;
|
|
5007
|
+
function s9(e, t, r, n, a, s, o, i) {
|
|
5008
|
+
var l = t & a9;
|
|
5009
5009
|
if (!l && typeof e != "function")
|
|
5010
|
-
throw new TypeError(
|
|
5010
|
+
throw new TypeError(n9);
|
|
5011
5011
|
var c = n ? n.length : 0;
|
|
5012
5012
|
if (c || (t &= ~(no | rd), n = a = void 0), o = o === void 0 ? o : nd(ed(o), 0), i = i === void 0 ? i : ed(i), c -= a ? a.length : 0, t & rd) {
|
|
5013
5013
|
var d = n, h = a;
|
|
@@ -5025,79 +5025,79 @@ function sk(e, t, r, n, a, s, o, i) {
|
|
|
5025
5025
|
o,
|
|
5026
5026
|
i
|
|
5027
5027
|
];
|
|
5028
|
-
if (g &&
|
|
5028
|
+
if (g && e9(E, g), e = E[0], t = E[1], r = E[2], n = E[3], a = E[4], i = E[9] = E[9] === void 0 ? l ? 0 : e.length : nd(E[9] - c, 0), !i && t & (to | ro) && (t &= ~(to | ro)), !t || t == td)
|
|
5029
5029
|
var $ = xD(e, t, r);
|
|
5030
5030
|
else
|
|
5031
5031
|
t == to || t == ro ? $ = ZD(e, t, i) : (t == no || t == (td | no)) && !a.length ? $ = XD(e, t, r, n) : $ = YD.apply(void 0, E);
|
|
5032
|
-
var b = g ? JD :
|
|
5033
|
-
return
|
|
5032
|
+
var b = g ? JD : t9;
|
|
5033
|
+
return r9(b($, E), e, t);
|
|
5034
5034
|
}
|
|
5035
|
-
var wi =
|
|
5036
|
-
function
|
|
5037
|
-
return t = r ? void 0 : t, t = e && t == null ? e.length : t,
|
|
5035
|
+
var wi = s9, o9 = wi, i9 = 128;
|
|
5036
|
+
function u9(e, t, r) {
|
|
5037
|
+
return t = r ? void 0 : t, t = e && t == null ? e.length : t, o9(e, i9, void 0, void 0, void 0, void 0, t);
|
|
5038
5038
|
}
|
|
5039
|
-
var
|
|
5040
|
-
function
|
|
5041
|
-
return
|
|
5039
|
+
var l9 = u9, c9 = yi, d9 = 4;
|
|
5040
|
+
function f9(e) {
|
|
5041
|
+
return c9(e, d9);
|
|
5042
5042
|
}
|
|
5043
|
-
var
|
|
5043
|
+
var p9 = f9, h9 = wi, m9 = 8;
|
|
5044
5044
|
function Ei(e, t, r) {
|
|
5045
5045
|
t = r ? void 0 : t;
|
|
5046
|
-
var n =
|
|
5046
|
+
var n = h9(e, m9, void 0, void 0, void 0, void 0, void 0, t);
|
|
5047
5047
|
return n.placeholder = Ei.placeholder, n;
|
|
5048
5048
|
}
|
|
5049
5049
|
Ei.placeholder = {};
|
|
5050
|
-
var $
|
|
5051
|
-
function
|
|
5052
|
-
if (!
|
|
5050
|
+
var $9 = Ei, v9 = gr, y9 = pt, g9 = Ap, _9 = "[object DOMException]", b9 = "[object Error]";
|
|
5051
|
+
function w9(e) {
|
|
5052
|
+
if (!y9(e))
|
|
5053
5053
|
return !1;
|
|
5054
|
-
var t =
|
|
5055
|
-
return t ==
|
|
5054
|
+
var t = v9(e);
|
|
5055
|
+
return t == b9 || t == _9 || typeof e.message == "string" && typeof e.name == "string" && !g9(e);
|
|
5056
5056
|
}
|
|
5057
|
-
var
|
|
5058
|
-
function
|
|
5059
|
-
return
|
|
5057
|
+
var E9 = w9, S9 = hn, A9 = pt, P9 = "[object WeakMap]";
|
|
5058
|
+
function O9(e) {
|
|
5059
|
+
return A9(e) && S9(e) == P9;
|
|
5060
5060
|
}
|
|
5061
|
-
var
|
|
5062
|
-
function
|
|
5063
|
-
return
|
|
5061
|
+
var C9 = O9, T9 = yi, I9 = ra, R9 = 1;
|
|
5062
|
+
function N9(e) {
|
|
5063
|
+
return I9(typeof e == "function" ? e : T9(e, R9));
|
|
5064
5064
|
}
|
|
5065
|
-
var
|
|
5066
|
-
function
|
|
5065
|
+
var j9 = N9, D9 = cp;
|
|
5066
|
+
function k9(e) {
|
|
5067
5067
|
var t = e == null ? 0 : e.length;
|
|
5068
|
-
return t ?
|
|
5068
|
+
return t ? D9(e, 1) : [];
|
|
5069
5069
|
}
|
|
5070
|
-
var
|
|
5071
|
-
function
|
|
5072
|
-
return
|
|
5070
|
+
var M9 = k9, L9 = M9, F9 = dp, V9 = fi;
|
|
5071
|
+
function U9(e) {
|
|
5072
|
+
return V9(F9(e, void 0, L9), e + "");
|
|
5073
5073
|
}
|
|
5074
|
-
var
|
|
5075
|
-
return
|
|
5076
|
-
}),
|
|
5077
|
-
function
|
|
5078
|
-
return
|
|
5074
|
+
var q9 = U9, z9 = wi, W9 = q9, B9 = 256, K9 = W9(function(e, t) {
|
|
5075
|
+
return z9(e, B9, void 0, void 0, void 0, t);
|
|
5076
|
+
}), G9 = K9, H9 = ui, J9 = na, x9 = ze, Z9 = un, Y9 = Ff, X9 = mn, Q9 = ta;
|
|
5077
|
+
function ek(e) {
|
|
5078
|
+
return x9(e) ? H9(e, X9) : Z9(e) ? [e] : J9(Y9(Q9(e)));
|
|
5079
5079
|
}
|
|
5080
|
-
var
|
|
5081
|
-
ary:
|
|
5080
|
+
var tk = ek, rk = {
|
|
5081
|
+
ary: l9,
|
|
5082
5082
|
assign: Tp,
|
|
5083
|
-
clone:
|
|
5084
|
-
curry: $
|
|
5083
|
+
clone: p9,
|
|
5084
|
+
curry: $9,
|
|
5085
5085
|
forEach: vi,
|
|
5086
5086
|
isArray: ze,
|
|
5087
|
-
isError:
|
|
5087
|
+
isError: E9,
|
|
5088
5088
|
isFunction: Xn,
|
|
5089
|
-
isWeakMap:
|
|
5090
|
-
iteratee:
|
|
5089
|
+
isWeakMap: C9,
|
|
5090
|
+
iteratee: j9,
|
|
5091
5091
|
keys: ai,
|
|
5092
|
-
rearg:
|
|
5092
|
+
rearg: G9,
|
|
5093
5093
|
toInteger: Rs,
|
|
5094
|
-
toPath:
|
|
5095
|
-
},
|
|
5096
|
-
function
|
|
5097
|
-
return
|
|
5094
|
+
toPath: tk
|
|
5095
|
+
}, nk = s8, ak = rk;
|
|
5096
|
+
function sk(e, t, r) {
|
|
5097
|
+
return nk(ak, e, t, r);
|
|
5098
5098
|
}
|
|
5099
|
-
var
|
|
5100
|
-
function
|
|
5099
|
+
var ok = sk, ao, ad;
|
|
5100
|
+
function ik() {
|
|
5101
5101
|
if (ad)
|
|
5102
5102
|
return ao;
|
|
5103
5103
|
ad = 1;
|
|
@@ -5121,76 +5121,76 @@ function i9() {
|
|
|
5121
5121
|
return ao = s, ao;
|
|
5122
5122
|
}
|
|
5123
5123
|
var so, sd;
|
|
5124
|
-
function
|
|
5124
|
+
function uk() {
|
|
5125
5125
|
if (sd)
|
|
5126
5126
|
return so;
|
|
5127
5127
|
sd = 1;
|
|
5128
|
-
var e =
|
|
5128
|
+
var e = ik();
|
|
5129
5129
|
function t(r, n, a) {
|
|
5130
5130
|
return r == null ? r : e(r, n, a);
|
|
5131
5131
|
}
|
|
5132
5132
|
return so = t, so;
|
|
5133
5133
|
}
|
|
5134
|
-
var
|
|
5134
|
+
var lk = ok, xp = lk("set", uk());
|
|
5135
5135
|
xp.placeholder = kp();
|
|
5136
|
-
var
|
|
5137
|
-
function
|
|
5138
|
-
return e &&
|
|
5136
|
+
var ck = xp, dk = bp, fk = br;
|
|
5137
|
+
function pk(e, t) {
|
|
5138
|
+
return e && dk(e, t, fk);
|
|
5139
5139
|
}
|
|
5140
|
-
var
|
|
5141
|
-
function $
|
|
5140
|
+
var hk = pk, mk = _r;
|
|
5141
|
+
function $k(e, t) {
|
|
5142
5142
|
return function(r, n) {
|
|
5143
5143
|
if (r == null)
|
|
5144
5144
|
return r;
|
|
5145
|
-
if (!
|
|
5145
|
+
if (!mk(r))
|
|
5146
5146
|
return e(r, n);
|
|
5147
5147
|
for (var a = r.length, s = t ? a : -1, o = Object(r); (t ? s-- : ++s < a) && n(o[s], s, o) !== !1; )
|
|
5148
5148
|
;
|
|
5149
5149
|
return r;
|
|
5150
5150
|
};
|
|
5151
5151
|
}
|
|
5152
|
-
var
|
|
5153
|
-
function
|
|
5152
|
+
var vk = $k, yk = hk, gk = vk, _k = gk(yk), bk = _k, wk = bk;
|
|
5153
|
+
function Ek(e, t) {
|
|
5154
5154
|
var r = [];
|
|
5155
|
-
return
|
|
5155
|
+
return wk(e, function(n, a, s) {
|
|
5156
5156
|
t(n, a, s) && r.push(n);
|
|
5157
5157
|
}), r;
|
|
5158
5158
|
}
|
|
5159
|
-
var
|
|
5160
|
-
function
|
|
5161
|
-
var r =
|
|
5162
|
-
return r(e,
|
|
5159
|
+
var Sk = Ek, Ak = Af, Pk = Sk, Ok = ra, Ck = ze;
|
|
5160
|
+
function Tk(e, t) {
|
|
5161
|
+
var r = Ck(e) ? Ak : Pk;
|
|
5162
|
+
return r(e, Ok(t));
|
|
5163
5163
|
}
|
|
5164
|
-
var od =
|
|
5165
|
-
function
|
|
5166
|
-
return
|
|
5164
|
+
var od = Tk, Ik = si;
|
|
5165
|
+
function Rk(e, t) {
|
|
5166
|
+
return Ik(e, t);
|
|
5167
5167
|
}
|
|
5168
|
-
var Zp =
|
|
5169
|
-
function
|
|
5170
|
-
return typeof e == "string" || !
|
|
5168
|
+
var Zp = Rk, Nk = gr, jk = ze, Dk = pt, kk = "[object String]";
|
|
5169
|
+
function Mk(e) {
|
|
5170
|
+
return typeof e == "string" || !jk(e) && Dk(e) && Nk(e) == kk;
|
|
5171
5171
|
}
|
|
5172
|
-
var
|
|
5173
|
-
function
|
|
5174
|
-
return
|
|
5172
|
+
var Lk = Mk, Fk = ui;
|
|
5173
|
+
function Vk(e, t) {
|
|
5174
|
+
return Fk(t, function(r) {
|
|
5175
5175
|
return e[r];
|
|
5176
5176
|
});
|
|
5177
5177
|
}
|
|
5178
|
-
var
|
|
5179
|
-
function
|
|
5180
|
-
return e == null ? [] :
|
|
5178
|
+
var Uk = Vk, qk = Uk, zk = br;
|
|
5179
|
+
function Wk(e) {
|
|
5180
|
+
return e == null ? [] : qk(e, zk(e));
|
|
5181
5181
|
}
|
|
5182
|
-
var
|
|
5183
|
-
function
|
|
5184
|
-
e =
|
|
5182
|
+
var Bk = Wk, Kk = $p, Gk = _r, Hk = Lk, Jk = Rs, xk = Bk, Zk = Math.max;
|
|
5183
|
+
function Yk(e, t, r, n) {
|
|
5184
|
+
e = Gk(e) ? e : xk(e), r = r && !n ? Jk(r) : 0;
|
|
5185
5185
|
var a = e.length;
|
|
5186
|
-
return r < 0 && (r =
|
|
5186
|
+
return r < 0 && (r = Zk(a + r, 0)), Hk(e) ? r <= a && e.indexOf(t, r) > -1 : !!a && Kk(e, t, r) > -1;
|
|
5187
5187
|
}
|
|
5188
|
-
var
|
|
5188
|
+
var Xk = Yk, Qk = ra, e4 = _r, t4 = br;
|
|
5189
5189
|
function r4(e) {
|
|
5190
5190
|
return function(t, r, n) {
|
|
5191
5191
|
var a = Object(t);
|
|
5192
5192
|
if (!e4(t)) {
|
|
5193
|
-
var s =
|
|
5193
|
+
var s = Qk(r);
|
|
5194
5194
|
t = t4(t), r = function(i) {
|
|
5195
5195
|
return s(a[i], i, a);
|
|
5196
5196
|
};
|
|
@@ -6561,7 +6561,7 @@ function Q4(e, t) {
|
|
|
6561
6561
|
return rh(t).filter((r) => !(0, Si.alwaysValidSchema)(e, t[r]));
|
|
6562
6562
|
}
|
|
6563
6563
|
le.schemaProperties = Q4;
|
|
6564
|
-
function
|
|
6564
|
+
function eM({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: a, errorPath: s }, it: o }, i, l, c) {
|
|
6565
6565
|
const d = c ? (0, Ce._)`${e}, ${t}, ${n}${a}` : t, h = [
|
|
6566
6566
|
[lr.default.instancePath, (0, Ce.strConcat)(lr.default.instancePath, s)],
|
|
6567
6567
|
[lr.default.parentData, o.parentData],
|
|
@@ -6572,18 +6572,18 @@ function e3({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath:
|
|
|
6572
6572
|
const g = (0, Ce._)`${d}, ${r.object(...h)}`;
|
|
6573
6573
|
return l !== Ce.nil ? (0, Ce._)`${i}.call(${l}, ${g})` : (0, Ce._)`${i}(${g})`;
|
|
6574
6574
|
}
|
|
6575
|
-
le.callValidateCode =
|
|
6576
|
-
const
|
|
6577
|
-
function
|
|
6575
|
+
le.callValidateCode = eM;
|
|
6576
|
+
const tM = (0, Ce._)`new RegExp`;
|
|
6577
|
+
function rM({ gen: e, it: { opts: t } }, r) {
|
|
6578
6578
|
const n = t.unicodeRegExp ? "u" : "", { regExp: a } = t.code, s = a(r, n);
|
|
6579
6579
|
return e.scopeValue("pattern", {
|
|
6580
6580
|
key: s.toString(),
|
|
6581
6581
|
ref: s,
|
|
6582
|
-
code: (0, Ce._)`${a.code === "new RegExp" ?
|
|
6582
|
+
code: (0, Ce._)`${a.code === "new RegExp" ? tM : (0, J4.useFunc)(e, a)}(${r}, ${n})`
|
|
6583
6583
|
});
|
|
6584
6584
|
}
|
|
6585
|
-
le.usePattern =
|
|
6586
|
-
function
|
|
6585
|
+
le.usePattern = rM;
|
|
6586
|
+
function nM(e) {
|
|
6587
6587
|
const { gen: t, data: r, keyword: n, it: a } = e, s = t.name("valid");
|
|
6588
6588
|
if (a.allErrors) {
|
|
6589
6589
|
const i = t.let("valid", !0);
|
|
@@ -6601,8 +6601,8 @@ function n3(e) {
|
|
|
6601
6601
|
});
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
6604
|
-
le.validateArray =
|
|
6605
|
-
function
|
|
6604
|
+
le.validateArray = nM;
|
|
6605
|
+
function aM(e) {
|
|
6606
6606
|
const { gen: t, schema: r, keyword: n, it: a } = e;
|
|
6607
6607
|
if (!Array.isArray(r))
|
|
6608
6608
|
throw new Error("ajv implementation error");
|
|
@@ -6618,11 +6618,11 @@ function a3(e) {
|
|
|
6618
6618
|
t.assign(o, (0, Ce._)`${o} || ${i}`), e.mergeValidEvaluated(d, i) || t.if((0, Ce.not)(o));
|
|
6619
6619
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
6620
6620
|
}
|
|
6621
|
-
le.validateUnion =
|
|
6621
|
+
le.validateUnion = aM;
|
|
6622
6622
|
Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
6623
6623
|
zt.validateKeywordUsage = zt.validSchemaType = zt.funcKeywordCode = zt.macroKeywordCode = void 0;
|
|
6624
|
-
const Qe = fe, Cr = Ht,
|
|
6625
|
-
function
|
|
6624
|
+
const Qe = fe, Cr = Ht, sM = le, oM = oa;
|
|
6625
|
+
function iM(e, t) {
|
|
6626
6626
|
const { gen: r, keyword: n, schema: a, parentSchema: s, it: o } = e, i = t.macro.call(o.self, a, s, o), l = nh(r, n, i);
|
|
6627
6627
|
o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
|
|
6628
6628
|
const c = r.name("valid");
|
|
@@ -6634,11 +6634,11 @@ function i3(e, t) {
|
|
|
6634
6634
|
compositeRule: !0
|
|
6635
6635
|
}, c), e.pass(c, () => e.error(!0));
|
|
6636
6636
|
}
|
|
6637
|
-
zt.macroKeywordCode =
|
|
6638
|
-
function
|
|
6637
|
+
zt.macroKeywordCode = iM;
|
|
6638
|
+
function uM(e, t) {
|
|
6639
6639
|
var r;
|
|
6640
6640
|
const { gen: n, keyword: a, schema: s, parentSchema: o, $data: i, it: l } = e;
|
|
6641
|
-
|
|
6641
|
+
cM(l, t);
|
|
6642
6642
|
const c = !i && t.compile ? t.compile.call(l.self, s, o, l) : t.validate, d = nh(n, a, c), h = n.let("valid");
|
|
6643
6643
|
e.block$data(h, g), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
|
|
6644
6644
|
function g() {
|
|
@@ -6646,7 +6646,7 @@ function u3(e, t) {
|
|
|
6646
6646
|
b(), t.modifying && ud(e), m(() => e.error());
|
|
6647
6647
|
else {
|
|
6648
6648
|
const p = t.async ? E() : $();
|
|
6649
|
-
t.modifying && ud(e), m(() =>
|
|
6649
|
+
t.modifying && ud(e), m(() => lM(e, p));
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
6652
|
function E() {
|
|
@@ -6659,25 +6659,25 @@ function u3(e, t) {
|
|
|
6659
6659
|
}
|
|
6660
6660
|
function b(p = t.async ? (0, Qe._)`await ` : Qe.nil) {
|
|
6661
6661
|
const v = l.opts.passContext ? Cr.default.this : Cr.default.self, w = !("compile" in t && !i || t.schema === !1);
|
|
6662
|
-
n.assign(h, (0, Qe._)`${p}${(0,
|
|
6662
|
+
n.assign(h, (0, Qe._)`${p}${(0, sM.callValidateCode)(e, d, v, w)}`, t.modifying);
|
|
6663
6663
|
}
|
|
6664
6664
|
function m(p) {
|
|
6665
6665
|
var v;
|
|
6666
6666
|
n.if((0, Qe.not)((v = t.valid) !== null && v !== void 0 ? v : h), p);
|
|
6667
6667
|
}
|
|
6668
6668
|
}
|
|
6669
|
-
zt.funcKeywordCode =
|
|
6669
|
+
zt.funcKeywordCode = uM;
|
|
6670
6670
|
function ud(e) {
|
|
6671
6671
|
const { gen: t, data: r, it: n } = e;
|
|
6672
6672
|
t.if(n.parentData, () => t.assign(r, (0, Qe._)`${n.parentData}[${n.parentDataProperty}]`));
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function lM(e, t) {
|
|
6675
6675
|
const { gen: r } = e;
|
|
6676
6676
|
r.if((0, Qe._)`Array.isArray(${t})`, () => {
|
|
6677
|
-
r.assign(Cr.default.vErrors, (0, Qe._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors, (0, Qe._)`${Cr.default.vErrors}.length`), (0,
|
|
6677
|
+
r.assign(Cr.default.vErrors, (0, Qe._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors, (0, Qe._)`${Cr.default.vErrors}.length`), (0, oM.extendErrors)(e);
|
|
6678
6678
|
}, () => e.error());
|
|
6679
6679
|
}
|
|
6680
|
-
function
|
|
6680
|
+
function cM({ schemaEnv: e }, t) {
|
|
6681
6681
|
if (t.async && !e.$async)
|
|
6682
6682
|
throw new Error("async keyword in sync schema");
|
|
6683
6683
|
}
|
|
@@ -6686,11 +6686,11 @@ function nh(e, t, r) {
|
|
|
6686
6686
|
throw new Error(`keyword "${t}" failed to compile`);
|
|
6687
6687
|
return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, Qe.stringify)(r) });
|
|
6688
6688
|
}
|
|
6689
|
-
function
|
|
6689
|
+
function dM(e, t, r = !1) {
|
|
6690
6690
|
return !t.length || t.some((n) => n === "array" ? Array.isArray(e) : n === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == n || r && typeof e > "u");
|
|
6691
6691
|
}
|
|
6692
|
-
zt.validSchemaType =
|
|
6693
|
-
function
|
|
6692
|
+
zt.validSchemaType = dM;
|
|
6693
|
+
function fM({ schema: e, opts: t, self: r, errSchemaPath: n }, a, s) {
|
|
6694
6694
|
if (Array.isArray(a.keyword) ? !a.keyword.includes(s) : a.keyword !== s)
|
|
6695
6695
|
throw new Error("ajv implementation error");
|
|
6696
6696
|
const o = a.dependencies;
|
|
@@ -6704,12 +6704,12 @@ function f3({ schema: e, opts: t, self: r, errSchemaPath: n }, a, s) {
|
|
|
6704
6704
|
throw new Error(l);
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
|
-
zt.validateKeywordUsage =
|
|
6707
|
+
zt.validateKeywordUsage = fM;
|
|
6708
6708
|
var $r = {};
|
|
6709
6709
|
Object.defineProperty($r, "__esModule", { value: !0 });
|
|
6710
6710
|
$r.extendSubschemaMode = $r.extendSubschemaData = $r.getSubschema = void 0;
|
|
6711
6711
|
const Ut = fe, ah = $e;
|
|
6712
|
-
function
|
|
6712
|
+
function pM(e, { keyword: t, schemaProp: r, schema: n, schemaPath: a, errSchemaPath: s, topSchemaRef: o }) {
|
|
6713
6713
|
if (t !== void 0 && n !== void 0)
|
|
6714
6714
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
6715
6715
|
if (t !== void 0) {
|
|
@@ -6736,8 +6736,8 @@ function p3(e, { keyword: t, schemaProp: r, schema: n, schemaPath: a, errSchemaP
|
|
|
6736
6736
|
}
|
|
6737
6737
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
6738
6738
|
}
|
|
6739
|
-
$r.getSubschema =
|
|
6740
|
-
function
|
|
6739
|
+
$r.getSubschema = pM;
|
|
6740
|
+
function hM(e, t, { dataProp: r, dataPropType: n, data: a, dataTypes: s, propertyName: o }) {
|
|
6741
6741
|
if (a !== void 0 && r !== void 0)
|
|
6742
6742
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
6743
6743
|
const { gen: i } = t;
|
|
@@ -6754,11 +6754,11 @@ function h3(e, t, { dataProp: r, dataPropType: n, data: a, dataTypes: s, propert
|
|
|
6754
6754
|
e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
|
|
6755
6755
|
}
|
|
6756
6756
|
}
|
|
6757
|
-
$r.extendSubschemaData =
|
|
6758
|
-
function
|
|
6757
|
+
$r.extendSubschemaData = hM;
|
|
6758
|
+
function mM(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: n, createErrors: a, allErrors: s }) {
|
|
6759
6759
|
n !== void 0 && (e.compositeRule = n), a !== void 0 && (e.createErrors = a), s !== void 0 && (e.allErrors = s), e.jtdDiscriminator = t, e.jtdMetadata = r;
|
|
6760
6760
|
}
|
|
6761
|
-
$r.extendSubschemaMode =
|
|
6761
|
+
$r.extendSubschemaMode = mM;
|
|
6762
6762
|
var Ge = {}, js = function e(t, r) {
|
|
6763
6763
|
if (t === r)
|
|
6764
6764
|
return !0;
|
|
@@ -6793,14 +6793,14 @@ var Ge = {}, js = function e(t, r) {
|
|
|
6793
6793
|
return !0;
|
|
6794
6794
|
}
|
|
6795
6795
|
return t !== t && r !== r;
|
|
6796
|
-
}, No = {}, $
|
|
6796
|
+
}, No = {}, $M = {
|
|
6797
6797
|
get exports() {
|
|
6798
6798
|
return No;
|
|
6799
6799
|
},
|
|
6800
6800
|
set exports(e) {
|
|
6801
6801
|
No = e;
|
|
6802
6802
|
}
|
|
6803
|
-
}, pr = $
|
|
6803
|
+
}, pr = $M.exports = function(e, t, r) {
|
|
6804
6804
|
typeof t == "function" && (r = t, t = {}), r = t.cb || r;
|
|
6805
6805
|
var n = typeof r == "function" ? r : r.pre || function() {
|
|
6806
6806
|
}, a = r.post || function() {
|
|
@@ -6863,19 +6863,19 @@ function Fa(e, t, r, n, a, s, o, i, l, c) {
|
|
|
6863
6863
|
} else if (d in pr.propsKeywords) {
|
|
6864
6864
|
if (h && typeof h == "object")
|
|
6865
6865
|
for (var E in h)
|
|
6866
|
-
Fa(e, t, r, h[E], a + "/" + d + "/" +
|
|
6866
|
+
Fa(e, t, r, h[E], a + "/" + d + "/" + vM(E), s, a, d, n, E);
|
|
6867
6867
|
} else
|
|
6868
6868
|
(d in pr.keywords || e.allKeys && !(d in pr.skipKeywords)) && Fa(e, t, r, h, a + "/" + d, s, a, d, n);
|
|
6869
6869
|
}
|
|
6870
6870
|
r(n, a, s, o, i, l, c);
|
|
6871
6871
|
}
|
|
6872
6872
|
}
|
|
6873
|
-
function
|
|
6873
|
+
function vM(e) {
|
|
6874
6874
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
6875
6875
|
}
|
|
6876
6876
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
6877
6877
|
Ge.getSchemaRefs = Ge.resolveUrl = Ge.normalizeId = Ge._getFullPath = Ge.getFullPath = Ge.inlineRef = void 0;
|
|
6878
|
-
const
|
|
6878
|
+
const yM = $e, gM = js, _M = No, bM = /* @__PURE__ */ new Set([
|
|
6879
6879
|
"type",
|
|
6880
6880
|
"format",
|
|
6881
6881
|
"pattern",
|
|
@@ -6893,11 +6893,11 @@ const y3 = $e, g3 = js, _3 = No, b3 = /* @__PURE__ */ new Set([
|
|
|
6893
6893
|
"enum",
|
|
6894
6894
|
"const"
|
|
6895
6895
|
]);
|
|
6896
|
-
function
|
|
6896
|
+
function wM(e, t = !0) {
|
|
6897
6897
|
return typeof e == "boolean" ? !0 : t === !0 ? !jo(e) : t ? sh(e) <= t : !1;
|
|
6898
6898
|
}
|
|
6899
|
-
Ge.inlineRef =
|
|
6900
|
-
const
|
|
6899
|
+
Ge.inlineRef = wM;
|
|
6900
|
+
const EM = /* @__PURE__ */ new Set([
|
|
6901
6901
|
"$ref",
|
|
6902
6902
|
"$recursiveRef",
|
|
6903
6903
|
"$recursiveAnchor",
|
|
@@ -6906,7 +6906,7 @@ const E3 = /* @__PURE__ */ new Set([
|
|
|
6906
6906
|
]);
|
|
6907
6907
|
function jo(e) {
|
|
6908
6908
|
for (const t in e) {
|
|
6909
|
-
if (
|
|
6909
|
+
if (EM.has(t))
|
|
6910
6910
|
return !0;
|
|
6911
6911
|
const r = e[t];
|
|
6912
6912
|
if (Array.isArray(r) && r.some(jo) || typeof r == "object" && jo(r))
|
|
@@ -6919,7 +6919,7 @@ function sh(e) {
|
|
|
6919
6919
|
for (const r in e) {
|
|
6920
6920
|
if (r === "$ref")
|
|
6921
6921
|
return 1 / 0;
|
|
6922
|
-
if (t++, !
|
|
6922
|
+
if (t++, !bM.has(r) && (typeof e[r] == "object" && (0, yM.eachItem)(e[r], (n) => t += sh(n)), t === 1 / 0))
|
|
6923
6923
|
return 1 / 0;
|
|
6924
6924
|
}
|
|
6925
6925
|
return t;
|
|
@@ -6934,21 +6934,21 @@ function ih(e, t) {
|
|
|
6934
6934
|
return e.serialize(t).split("#")[0] + "#";
|
|
6935
6935
|
}
|
|
6936
6936
|
Ge._getFullPath = ih;
|
|
6937
|
-
const
|
|
6937
|
+
const SM = /#\/?$/;
|
|
6938
6938
|
function Yr(e) {
|
|
6939
|
-
return e ? e.replace(
|
|
6939
|
+
return e ? e.replace(SM, "") : "";
|
|
6940
6940
|
}
|
|
6941
6941
|
Ge.normalizeId = Yr;
|
|
6942
|
-
function
|
|
6942
|
+
function AM(e, t, r) {
|
|
6943
6943
|
return r = Yr(r), e.resolve(t, r);
|
|
6944
6944
|
}
|
|
6945
|
-
Ge.resolveUrl =
|
|
6946
|
-
const
|
|
6947
|
-
function
|
|
6945
|
+
Ge.resolveUrl = AM;
|
|
6946
|
+
const PM = /^[a-z_][-a-z0-9._]*$/i;
|
|
6947
|
+
function OM(e, t) {
|
|
6948
6948
|
if (typeof e == "boolean")
|
|
6949
6949
|
return {};
|
|
6950
6950
|
const { schemaId: r, uriResolver: n } = this.opts, a = Yr(e[r] || t), s = { "": a }, o = oh(n, a, !1), i = {}, l = /* @__PURE__ */ new Set();
|
|
6951
|
-
return
|
|
6951
|
+
return _M(e, { allKeys: !0 }, (h, g, E, $) => {
|
|
6952
6952
|
if ($ === void 0)
|
|
6953
6953
|
return;
|
|
6954
6954
|
const b = o + g;
|
|
@@ -6964,54 +6964,54 @@ function O3(e, t) {
|
|
|
6964
6964
|
}
|
|
6965
6965
|
function v(w) {
|
|
6966
6966
|
if (typeof w == "string") {
|
|
6967
|
-
if (!
|
|
6967
|
+
if (!PM.test(w))
|
|
6968
6968
|
throw new Error(`invalid anchor "${w}"`);
|
|
6969
6969
|
p.call(this, `#${w}`);
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
6972
|
}), i;
|
|
6973
6973
|
function c(h, g, E) {
|
|
6974
|
-
if (g !== void 0 && !
|
|
6974
|
+
if (g !== void 0 && !gM(h, g))
|
|
6975
6975
|
throw d(E);
|
|
6976
6976
|
}
|
|
6977
6977
|
function d(h) {
|
|
6978
6978
|
return new Error(`reference "${h}" resolves to more than one schema`);
|
|
6979
6979
|
}
|
|
6980
6980
|
}
|
|
6981
|
-
Ge.getSchemaRefs =
|
|
6981
|
+
Ge.getSchemaRefs = OM;
|
|
6982
6982
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
6983
6983
|
Ct.getData = Ct.KeywordCxt = Ct.validateFunctionCode = void 0;
|
|
6984
|
-
const uh = en, ld = ia, Oi = rr, as = ia,
|
|
6985
|
-
function
|
|
6984
|
+
const uh = en, ld = ia, Oi = rr, as = ia, CM = Ns, Dn = zt, io = $r, J = fe, re = Ht, TM = Ge, nr = $e, On = oa;
|
|
6985
|
+
function IM(e) {
|
|
6986
6986
|
if (dh(e) && (fh(e), ch(e))) {
|
|
6987
|
-
|
|
6987
|
+
jM(e);
|
|
6988
6988
|
return;
|
|
6989
6989
|
}
|
|
6990
6990
|
lh(e, () => (0, uh.topBoolOrEmptySchema)(e));
|
|
6991
6991
|
}
|
|
6992
|
-
Ct.validateFunctionCode =
|
|
6992
|
+
Ct.validateFunctionCode = IM;
|
|
6993
6993
|
function lh({ gen: e, validateName: t, schema: r, schemaEnv: n, opts: a }, s) {
|
|
6994
6994
|
a.code.es5 ? e.func(t, (0, J._)`${re.default.data}, ${re.default.valCxt}`, n.$async, () => {
|
|
6995
|
-
e.code((0, J._)`"use strict"; ${cd(r, a)}`),
|
|
6996
|
-
}) : e.func(t, (0, J._)`${re.default.data}, ${
|
|
6995
|
+
e.code((0, J._)`"use strict"; ${cd(r, a)}`), NM(e, a), e.code(s);
|
|
6996
|
+
}) : e.func(t, (0, J._)`${re.default.data}, ${RM(a)}`, n.$async, () => e.code(cd(r, a)).code(s));
|
|
6997
6997
|
}
|
|
6998
|
-
function
|
|
6998
|
+
function RM(e) {
|
|
6999
6999
|
return (0, J._)`{${re.default.instancePath}="", ${re.default.parentData}, ${re.default.parentDataProperty}, ${re.default.rootData}=${re.default.data}${e.dynamicRef ? (0, J._)`, ${re.default.dynamicAnchors}={}` : J.nil}}={}`;
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function NM(e, t) {
|
|
7002
7002
|
e.if(re.default.valCxt, () => {
|
|
7003
7003
|
e.var(re.default.instancePath, (0, J._)`${re.default.valCxt}.${re.default.instancePath}`), e.var(re.default.parentData, (0, J._)`${re.default.valCxt}.${re.default.parentData}`), e.var(re.default.parentDataProperty, (0, J._)`${re.default.valCxt}.${re.default.parentDataProperty}`), e.var(re.default.rootData, (0, J._)`${re.default.valCxt}.${re.default.rootData}`), t.dynamicRef && e.var(re.default.dynamicAnchors, (0, J._)`${re.default.valCxt}.${re.default.dynamicAnchors}`);
|
|
7004
7004
|
}, () => {
|
|
7005
7005
|
e.var(re.default.instancePath, (0, J._)`""`), e.var(re.default.parentData, (0, J._)`undefined`), e.var(re.default.parentDataProperty, (0, J._)`undefined`), e.var(re.default.rootData, re.default.data), t.dynamicRef && e.var(re.default.dynamicAnchors, (0, J._)`{}`);
|
|
7006
7006
|
});
|
|
7007
7007
|
}
|
|
7008
|
-
function
|
|
7008
|
+
function jM(e) {
|
|
7009
7009
|
const { schema: t, opts: r, gen: n } = e;
|
|
7010
7010
|
lh(e, () => {
|
|
7011
|
-
r.$comment && t.$comment && hh(e),
|
|
7011
|
+
r.$comment && t.$comment && hh(e), FM(e), n.let(re.default.vErrors, null), n.let(re.default.errors, 0), r.unevaluated && DM(e), ph(e), qM(e);
|
|
7012
7012
|
});
|
|
7013
7013
|
}
|
|
7014
|
-
function
|
|
7014
|
+
function DM(e) {
|
|
7015
7015
|
const { gen: t, validateName: r } = e;
|
|
7016
7016
|
e.evaluated = t.const("evaluated", (0, J._)`${r}.evaluated`), t.if((0, J._)`${e.evaluated}.dynamicProps`, () => t.assign((0, J._)`${e.evaluated}.props`, (0, J._)`undefined`)), t.if((0, J._)`${e.evaluated}.dynamicItems`, () => t.assign((0, J._)`${e.evaluated}.items`, (0, J._)`undefined`));
|
|
7017
7017
|
}
|
|
@@ -7019,9 +7019,9 @@ function cd(e, t) {
|
|
|
7019
7019
|
const r = typeof e == "object" && e[t.schemaId];
|
|
7020
7020
|
return r && (t.code.source || t.code.process) ? (0, J._)`/*# sourceURL=${r} */` : J.nil;
|
|
7021
7021
|
}
|
|
7022
|
-
function
|
|
7022
|
+
function kM(e, t) {
|
|
7023
7023
|
if (dh(e) && (fh(e), ch(e))) {
|
|
7024
|
-
|
|
7024
|
+
MM(e, t);
|
|
7025
7025
|
return;
|
|
7026
7026
|
}
|
|
7027
7027
|
(0, uh.boolOrEmptySchema)(e, t);
|
|
@@ -7037,14 +7037,14 @@ function ch({ schema: e, self: t }) {
|
|
|
7037
7037
|
function dh(e) {
|
|
7038
7038
|
return typeof e.schema != "boolean";
|
|
7039
7039
|
}
|
|
7040
|
-
function
|
|
7040
|
+
function MM(e, t) {
|
|
7041
7041
|
const { schema: r, gen: n, opts: a } = e;
|
|
7042
|
-
a.$comment && r.$comment && hh(e),
|
|
7042
|
+
a.$comment && r.$comment && hh(e), VM(e), UM(e);
|
|
7043
7043
|
const s = n.const("_errs", re.default.errors);
|
|
7044
7044
|
ph(e, s), n.var(t, (0, J._)`${s} === ${re.default.errors}`);
|
|
7045
7045
|
}
|
|
7046
7046
|
function fh(e) {
|
|
7047
|
-
(0, nr.checkUnknownRules)(e),
|
|
7047
|
+
(0, nr.checkUnknownRules)(e), LM(e);
|
|
7048
7048
|
}
|
|
7049
7049
|
function ph(e, t) {
|
|
7050
7050
|
if (e.opts.jtd)
|
|
@@ -7052,19 +7052,19 @@ function ph(e, t) {
|
|
|
7052
7052
|
const r = (0, ld.getSchemaTypes)(e.schema), n = (0, ld.coerceAndCheckDataType)(e, r);
|
|
7053
7053
|
dd(e, r, !n, t);
|
|
7054
7054
|
}
|
|
7055
|
-
function
|
|
7055
|
+
function LM(e) {
|
|
7056
7056
|
const { schema: t, errSchemaPath: r, opts: n, self: a } = e;
|
|
7057
7057
|
t.$ref && n.ignoreKeywordsWithRef && (0, nr.schemaHasRulesButRef)(t, a.RULES) && a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
|
|
7058
7058
|
}
|
|
7059
|
-
function
|
|
7059
|
+
function FM(e) {
|
|
7060
7060
|
const { schema: t, opts: r } = e;
|
|
7061
7061
|
t.default !== void 0 && r.useDefaults && r.strictSchema && (0, nr.checkStrictMode)(e, "default is ignored in the schema root");
|
|
7062
7062
|
}
|
|
7063
|
-
function
|
|
7063
|
+
function VM(e) {
|
|
7064
7064
|
const t = e.schema[e.opts.schemaId];
|
|
7065
|
-
t && (e.baseId = (0,
|
|
7065
|
+
t && (e.baseId = (0, TM.resolveUrl)(e.opts.uriResolver, e.baseId, t));
|
|
7066
7066
|
}
|
|
7067
|
-
function
|
|
7067
|
+
function UM(e) {
|
|
7068
7068
|
if (e.schema.$async && !e.schemaEnv.$async)
|
|
7069
7069
|
throw new Error("async schema in sync schema");
|
|
7070
7070
|
}
|
|
@@ -7077,11 +7077,11 @@ function hh({ gen: e, schemaEnv: t, schema: r, errSchemaPath: n, opts: a }) {
|
|
|
7077
7077
|
e.code((0, J._)`${re.default.self}.opts.$comment(${s}, ${o}, ${i}.schema)`);
|
|
7078
7078
|
}
|
|
7079
7079
|
}
|
|
7080
|
-
function
|
|
7080
|
+
function qM(e) {
|
|
7081
7081
|
const { gen: t, schemaEnv: r, validateName: n, ValidationError: a, opts: s } = e;
|
|
7082
|
-
r.$async ? t.if((0, J._)`${re.default.errors} === 0`, () => t.return(re.default.data), () => t.throw((0, J._)`new ${a}(${re.default.vErrors})`)) : (t.assign((0, J._)`${n}.errors`, re.default.vErrors), s.unevaluated &&
|
|
7082
|
+
r.$async ? t.if((0, J._)`${re.default.errors} === 0`, () => t.return(re.default.data), () => t.throw((0, J._)`new ${a}(${re.default.vErrors})`)) : (t.assign((0, J._)`${n}.errors`, re.default.vErrors), s.unevaluated && zM(e), t.return((0, J._)`${re.default.errors} === 0`));
|
|
7083
7083
|
}
|
|
7084
|
-
function
|
|
7084
|
+
function zM({ gen: e, evaluated: t, props: r, items: n }) {
|
|
7085
7085
|
r instanceof J.Name && e.assign((0, J._)`${t}.props`, r), n instanceof J.Name && e.assign((0, J._)`${t}.items`, n);
|
|
7086
7086
|
}
|
|
7087
7087
|
function dd(e, t, r, n) {
|
|
@@ -7090,7 +7090,7 @@ function dd(e, t, r, n) {
|
|
|
7090
7090
|
a.block(() => vh(e, "$ref", d.all.$ref.definition));
|
|
7091
7091
|
return;
|
|
7092
7092
|
}
|
|
7093
|
-
l.jtd ||
|
|
7093
|
+
l.jtd || WM(e, t), a.block(() => {
|
|
7094
7094
|
for (const g of d.rules)
|
|
7095
7095
|
h(g);
|
|
7096
7096
|
h(d.post);
|
|
@@ -7101,15 +7101,15 @@ function dd(e, t, r, n) {
|
|
|
7101
7101
|
}
|
|
7102
7102
|
function fd(e, t) {
|
|
7103
7103
|
const { gen: r, schema: n, opts: { useDefaults: a } } = e;
|
|
7104
|
-
a && (0,
|
|
7104
|
+
a && (0, CM.assignDefaults)(e, t.type), r.block(() => {
|
|
7105
7105
|
for (const s of t.rules)
|
|
7106
7106
|
(0, Oi.shouldUseRule)(n, s) && vh(e, s.keyword, s.definition, t.type);
|
|
7107
7107
|
});
|
|
7108
7108
|
}
|
|
7109
|
-
function
|
|
7110
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
7109
|
+
function WM(e, t) {
|
|
7110
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (BM(e, t), e.opts.allowUnionTypes || KM(e, t), GM(e, e.dataTypes));
|
|
7111
7111
|
}
|
|
7112
|
-
function
|
|
7112
|
+
function BM(e, t) {
|
|
7113
7113
|
if (t.length) {
|
|
7114
7114
|
if (!e.dataTypes.length) {
|
|
7115
7115
|
e.dataTypes = t;
|
|
@@ -7117,29 +7117,29 @@ function B3(e, t) {
|
|
|
7117
7117
|
}
|
|
7118
7118
|
t.forEach((r) => {
|
|
7119
7119
|
mh(e.dataTypes, r) || Ci(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
7120
|
-
}),
|
|
7120
|
+
}), JM(e, t);
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
|
-
function
|
|
7123
|
+
function KM(e, t) {
|
|
7124
7124
|
t.length > 1 && !(t.length === 2 && t.includes("null")) && Ci(e, "use allowUnionTypes to allow union type keyword");
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7126
|
+
function GM(e, t) {
|
|
7127
7127
|
const r = e.self.RULES.all;
|
|
7128
7128
|
for (const n in r) {
|
|
7129
7129
|
const a = r[n];
|
|
7130
7130
|
if (typeof a == "object" && (0, Oi.shouldUseRule)(e.schema, a)) {
|
|
7131
7131
|
const { type: s } = a.definition;
|
|
7132
|
-
s.length && !s.some((o) =>
|
|
7132
|
+
s.length && !s.some((o) => HM(t, o)) && Ci(e, `missing type "${s.join(",")}" for keyword "${n}"`);
|
|
7133
7133
|
}
|
|
7134
7134
|
}
|
|
7135
7135
|
}
|
|
7136
|
-
function
|
|
7136
|
+
function HM(e, t) {
|
|
7137
7137
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
7138
7138
|
}
|
|
7139
7139
|
function mh(e, t) {
|
|
7140
7140
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
7141
7141
|
}
|
|
7142
|
-
function
|
|
7142
|
+
function JM(e, t) {
|
|
7143
7143
|
const r = [];
|
|
7144
7144
|
for (const n of e.dataTypes)
|
|
7145
7145
|
mh(t, n) ? r.push(n) : t.includes("integer") && n === "number" && r.push("integer");
|
|
@@ -7238,7 +7238,7 @@ let $h = class {
|
|
|
7238
7238
|
const n = (0, io.getSubschema)(this.it, t);
|
|
7239
7239
|
(0, io.extendSubschemaData)(n, this.it, t), (0, io.extendSubschemaMode)(n, t);
|
|
7240
7240
|
const a = { ...this.it, ...n, items: void 0, props: void 0 };
|
|
7241
|
-
return
|
|
7241
|
+
return kM(a, r), a;
|
|
7242
7242
|
}
|
|
7243
7243
|
mergeEvaluated(t, r) {
|
|
7244
7244
|
const { it: n, gen: a } = this;
|
|
@@ -7255,17 +7255,17 @@ function vh(e, t, r, n) {
|
|
|
7255
7255
|
const a = new $h(e, r, t);
|
|
7256
7256
|
"code" in r ? r.code(a, n) : a.$data && r.validate ? (0, Dn.funcKeywordCode)(a, r) : "macro" in r ? (0, Dn.macroKeywordCode)(a, r) : (r.compile || r.validate) && (0, Dn.funcKeywordCode)(a, r);
|
|
7257
7257
|
}
|
|
7258
|
-
const
|
|
7258
|
+
const xM = /^\/(?:[^~]|~0|~1)*$/, ZM = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
7259
7259
|
function yh(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
|
|
7260
7260
|
let a, s;
|
|
7261
7261
|
if (e === "")
|
|
7262
7262
|
return re.default.rootData;
|
|
7263
7263
|
if (e[0] === "/") {
|
|
7264
|
-
if (!
|
|
7264
|
+
if (!xM.test(e))
|
|
7265
7265
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
7266
7266
|
a = e, s = re.default.rootData;
|
|
7267
7267
|
} else {
|
|
7268
|
-
const c =
|
|
7268
|
+
const c = ZM.exec(e);
|
|
7269
7269
|
if (!c)
|
|
7270
7270
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
7271
7271
|
const d = +c[1];
|
|
@@ -7291,25 +7291,25 @@ function yh(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
|
|
|
7291
7291
|
Ct.getData = yh;
|
|
7292
7292
|
var ua = {};
|
|
7293
7293
|
Object.defineProperty(ua, "__esModule", { value: !0 });
|
|
7294
|
-
let
|
|
7294
|
+
let YM = class extends Error {
|
|
7295
7295
|
constructor(t) {
|
|
7296
7296
|
super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
|
|
7297
7297
|
}
|
|
7298
7298
|
};
|
|
7299
|
-
ua.default =
|
|
7299
|
+
ua.default = YM;
|
|
7300
7300
|
var la = {};
|
|
7301
7301
|
Object.defineProperty(la, "__esModule", { value: !0 });
|
|
7302
7302
|
const uo = Ge;
|
|
7303
|
-
let
|
|
7303
|
+
let XM = class extends Error {
|
|
7304
7304
|
constructor(t, r, n, a) {
|
|
7305
7305
|
super(a || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0, uo.resolveUrl)(t, r, n), this.missingSchema = (0, uo.normalizeId)((0, uo.getFullPath)(t, this.missingRef));
|
|
7306
7306
|
}
|
|
7307
7307
|
};
|
|
7308
|
-
la.default =
|
|
7308
|
+
la.default = XM;
|
|
7309
7309
|
var it = {};
|
|
7310
7310
|
Object.defineProperty(it, "__esModule", { value: !0 });
|
|
7311
7311
|
it.resolveSchema = it.getCompilingSchema = it.resolveRef = it.compileSchema = it.SchemaEnv = void 0;
|
|
7312
|
-
const wt = fe,
|
|
7312
|
+
const wt = fe, QM = ua, Ar = Ht, Pt = Ge, pd = $e, e3 = Ct;
|
|
7313
7313
|
let Ds = class {
|
|
7314
7314
|
constructor(t) {
|
|
7315
7315
|
var r;
|
|
@@ -7326,7 +7326,7 @@ function Ti(e) {
|
|
|
7326
7326
|
const r = (0, Pt.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: n, lines: a } = this.opts.code, { ownProperties: s } = this.opts, o = new wt.CodeGen(this.scope, { es5: n, lines: a, ownProperties: s });
|
|
7327
7327
|
let i;
|
|
7328
7328
|
e.$async && (i = o.scopeValue("Error", {
|
|
7329
|
-
ref:
|
|
7329
|
+
ref: QM.default,
|
|
7330
7330
|
code: (0, wt._)`require("ajv/dist/runtime/validation_error").default`
|
|
7331
7331
|
}));
|
|
7332
7332
|
const l = o.scopeName("validate");
|
|
@@ -7357,7 +7357,7 @@ function Ti(e) {
|
|
|
7357
7357
|
};
|
|
7358
7358
|
let d;
|
|
7359
7359
|
try {
|
|
7360
|
-
this._compilations.add(e), (0,
|
|
7360
|
+
this._compilations.add(e), (0, e3.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
|
|
7361
7361
|
const h = o.toString();
|
|
7362
7362
|
d = `${o.scopeRefs(Ar.default.scope)}return ${h}`, this.opts.code.process && (d = this.opts.code.process(d, e));
|
|
7363
7363
|
const E = new Function(`${Ar.default.self}`, `${Ar.default.scope}`, d)(this, this.scope.get());
|
|
@@ -7378,34 +7378,34 @@ function Ti(e) {
|
|
|
7378
7378
|
}
|
|
7379
7379
|
}
|
|
7380
7380
|
it.compileSchema = Ti;
|
|
7381
|
-
function
|
|
7381
|
+
function t3(e, t, r) {
|
|
7382
7382
|
var n;
|
|
7383
7383
|
r = (0, Pt.resolveUrl)(this.opts.uriResolver, t, r);
|
|
7384
7384
|
const a = e.refs[r];
|
|
7385
7385
|
if (a)
|
|
7386
7386
|
return a;
|
|
7387
|
-
let s =
|
|
7387
|
+
let s = a3.call(this, e, r);
|
|
7388
7388
|
if (s === void 0) {
|
|
7389
7389
|
const o = (n = e.localRefs) === null || n === void 0 ? void 0 : n[r], { schemaId: i } = this.opts;
|
|
7390
7390
|
o && (s = new Ds({ schema: o, schemaId: i, root: e, baseId: t }));
|
|
7391
7391
|
}
|
|
7392
7392
|
if (s !== void 0)
|
|
7393
|
-
return e.refs[r] =
|
|
7393
|
+
return e.refs[r] = r3.call(this, s);
|
|
7394
7394
|
}
|
|
7395
|
-
it.resolveRef =
|
|
7396
|
-
function
|
|
7395
|
+
it.resolveRef = t3;
|
|
7396
|
+
function r3(e) {
|
|
7397
7397
|
return (0, Pt.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Ti.call(this, e);
|
|
7398
7398
|
}
|
|
7399
7399
|
function gh(e) {
|
|
7400
7400
|
for (const t of this._compilations)
|
|
7401
|
-
if (
|
|
7401
|
+
if (n3(t, e))
|
|
7402
7402
|
return t;
|
|
7403
7403
|
}
|
|
7404
7404
|
it.getCompilingSchema = gh;
|
|
7405
|
-
function
|
|
7405
|
+
function n3(e, t) {
|
|
7406
7406
|
return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function a3(e, t) {
|
|
7409
7409
|
let r;
|
|
7410
7410
|
for (; typeof (r = this.refs[t]) == "string"; )
|
|
7411
7411
|
t = r;
|
|
@@ -7430,7 +7430,7 @@ function ks(e, t) {
|
|
|
7430
7430
|
}
|
|
7431
7431
|
}
|
|
7432
7432
|
it.resolveSchema = ks;
|
|
7433
|
-
const
|
|
7433
|
+
const s3 = /* @__PURE__ */ new Set([
|
|
7434
7434
|
"properties",
|
|
7435
7435
|
"patternProperties",
|
|
7436
7436
|
"enum",
|
|
@@ -7449,7 +7449,7 @@ function lo(e, { baseId: t, schema: r, root: n }) {
|
|
|
7449
7449
|
return;
|
|
7450
7450
|
r = l;
|
|
7451
7451
|
const c = typeof r == "object" && r[this.opts.schemaId];
|
|
7452
|
-
!
|
|
7452
|
+
!s3.has(i) && c && (t = (0, Pt.resolveUrl)(this.opts.uriResolver, t, c));
|
|
7453
7453
|
}
|
|
7454
7454
|
let s;
|
|
7455
7455
|
if (typeof r != "boolean" && r.$ref && !(0, pd.schemaHasRulesButRef)(r, this.RULES)) {
|
|
@@ -7460,9 +7460,9 @@ function lo(e, { baseId: t, schema: r, root: n }) {
|
|
|
7460
7460
|
if (s = s || new Ds({ schema: r, schemaId: o, root: n, baseId: t }), s.schema !== s.root.schema)
|
|
7461
7461
|
return s;
|
|
7462
7462
|
}
|
|
7463
|
-
const
|
|
7463
|
+
const o3 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", i3 = "Meta-schema for $data reference (JSON AnySchema extension proposal)", u3 = "object", l3 = [
|
|
7464
7464
|
"$data"
|
|
7465
|
-
],
|
|
7465
|
+
], c3 = {
|
|
7466
7466
|
$data: {
|
|
7467
7467
|
type: "string",
|
|
7468
7468
|
anyOf: [
|
|
@@ -7474,15 +7474,15 @@ const oM = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
7474
7474
|
}
|
|
7475
7475
|
]
|
|
7476
7476
|
}
|
|
7477
|
-
},
|
|
7478
|
-
$id:
|
|
7479
|
-
description:
|
|
7480
|
-
type:
|
|
7481
|
-
required:
|
|
7482
|
-
properties:
|
|
7483
|
-
additionalProperties:
|
|
7477
|
+
}, d3 = !1, f3 = {
|
|
7478
|
+
$id: o3,
|
|
7479
|
+
description: i3,
|
|
7480
|
+
type: u3,
|
|
7481
|
+
required: l3,
|
|
7482
|
+
properties: c3,
|
|
7483
|
+
additionalProperties: d3
|
|
7484
7484
|
};
|
|
7485
|
-
var Ii = {}, Gn = {},
|
|
7485
|
+
var Ii = {}, Gn = {}, p3 = {
|
|
7486
7486
|
get exports() {
|
|
7487
7487
|
return Gn;
|
|
7488
7488
|
},
|
|
@@ -7528,7 +7528,7 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7528
7528
|
function c(T) {
|
|
7529
7529
|
var O = "[A-Za-z]", R = "[0-9]", F = n(R, "[A-Fa-f]"), L = a(a("%[EFef]" + F + "%" + F + F + "%" + F + F) + "|" + a("%[89A-Fa-f]" + F + "%" + F + F) + "|" + a("%" + F + F)), Z = "[\\:\\/\\?\\#\\[\\]\\@]", Y = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", he = n(Z, Y), Pe = T ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", De = T ? "[\\uE000-\\uF8FF]" : "[]", pe = n(O, R, "[\\-\\.\\_\\~]", Pe);
|
|
7530
7530
|
a(O + n(O, R, "[\\+\\-\\.]") + "*"), a(a(L + "|" + n(pe, Y, "[\\:]")) + "*");
|
|
7531
|
-
var Se = a(a("25[0-5]") + "|" + a("2[0-4]" + R) + "|" + a("1" + R + R) + "|" + a("0?[1-9]" + R) + "|0?0?" + R), ke = a(Se + "\\." + Se + "\\." + Se + "\\." + Se),
|
|
7531
|
+
var Se = a(a("25[0-5]") + "|" + a("2[0-4]" + R) + "|" + a("1" + R + R) + "|" + a("0?[1-9]" + R) + "|0?0?" + R), ke = a(Se + "\\." + Se + "\\." + Se + "\\." + Se), ae = a(F + "{1,4}"), Ie = a(a(ae + "\\:" + ae) + "|" + ke), Fe = a(a(ae + "\\:") + "{6}" + Ie), Re = a("\\:\\:" + a(ae + "\\:") + "{5}" + Ie), ur = a(a(ae) + "?\\:\\:" + a(ae + "\\:") + "{4}" + Ie), Mt = a(a(a(ae + "\\:") + "{0,1}" + ae) + "?\\:\\:" + a(ae + "\\:") + "{3}" + Ie), Lt = a(a(a(ae + "\\:") + "{0,2}" + ae) + "?\\:\\:" + a(ae + "\\:") + "{2}" + Ie), zr = a(a(a(ae + "\\:") + "{0,3}" + ae) + "?\\:\\:" + ae + "\\:" + Ie), Er = a(a(a(ae + "\\:") + "{0,4}" + ae) + "?\\:\\:" + Ie), vt = a(a(a(ae + "\\:") + "{0,5}" + ae) + "?\\:\\:" + ae), Ft = a(a(a(ae + "\\:") + "{0,6}" + ae) + "?\\:\\:"), Sr = a([Fe, Re, ur, Mt, Lt, zr, Er, vt, Ft].join("|")), er = a(a(pe + "|" + L) + "+");
|
|
7532
7532
|
a("[vV]" + F + "+\\." + n(pe, Y, "[\\:]") + "+"), a(a(L + "|" + n(pe, Y)) + "*");
|
|
7533
7533
|
var En = a(L + "|" + n(pe, Y, "[\\:\\@]"));
|
|
7534
7534
|
return a(a(L + "|" + n(pe, Y, "[\\@]")) + "+"), a(a(En + "|" + n("[\\/\\?]", De)) + "*"), {
|
|
@@ -7639,10 +7639,10 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7639
7639
|
ke += b
|
|
7640
7640
|
) {
|
|
7641
7641
|
De >= F && ie("invalid-input");
|
|
7642
|
-
var
|
|
7643
|
-
(
|
|
7642
|
+
var ae = ct(O.charCodeAt(De++));
|
|
7643
|
+
(ae >= b || ae > K(($ - L) / Se)) && ie("overflow"), L += ae * Se;
|
|
7644
7644
|
var Ie = ke <= Y ? m : ke >= Y + p ? p : ke - Y;
|
|
7645
|
-
if (
|
|
7645
|
+
if (ae < Ie)
|
|
7646
7646
|
break;
|
|
7647
7647
|
var Fe = b - Ie;
|
|
7648
7648
|
Se > K($ / Fe) && ie("overflow"), Se *= Fe;
|
|
@@ -7670,8 +7670,8 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7670
7670
|
throw De;
|
|
7671
7671
|
}
|
|
7672
7672
|
}
|
|
7673
|
-
var
|
|
7674
|
-
for (
|
|
7673
|
+
var ae = R.length, Ie = ae;
|
|
7674
|
+
for (ae && R.push(S); Ie < F; ) {
|
|
7675
7675
|
var Fe = $, Re = !0, ur = !1, Mt = void 0;
|
|
7676
7676
|
try {
|
|
7677
7677
|
for (var Lt = O[Symbol.iterator](), zr; !(Re = (zr = Lt.next()).done); Re = !0) {
|
|
@@ -7707,7 +7707,7 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7707
7707
|
var Al = ga - ba, Pl = b - ba;
|
|
7708
7708
|
R.push(ye(M(ba + Al % Pl, 0))), ga = K(Al / Pl);
|
|
7709
7709
|
}
|
|
7710
|
-
R.push(ye(M(ga, 0))), Y = _(Z, vt, Ie ==
|
|
7710
|
+
R.push(ye(M(ga, 0))), Y = _(Z, vt, Ie == ae), Z = 0, ++Ie;
|
|
7711
7711
|
}
|
|
7712
7712
|
}
|
|
7713
7713
|
} catch (Sn) {
|
|
@@ -7799,9 +7799,9 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7799
7799
|
function je(T, O) {
|
|
7800
7800
|
var R = T.match(O.IPV6ADDRESS) || [], F = g(R, 3), L = F[1], Z = F[2];
|
|
7801
7801
|
if (L) {
|
|
7802
|
-
for (var Y = L.toLowerCase().split("::").reverse(), he = g(Y, 2), Pe = he[0], De = he[1], pe = De ? De.split(":").map(Q) : [], Se = Pe.split(":").map(Q), ke = O.IPV4ADDRESS.test(Se[Se.length - 1]),
|
|
7802
|
+
for (var Y = L.toLowerCase().split("::").reverse(), he = g(Y, 2), Pe = he[0], De = he[1], pe = De ? De.split(":").map(Q) : [], Se = Pe.split(":").map(Q), ke = O.IPV4ADDRESS.test(Se[Se.length - 1]), ae = ke ? 7 : 8, Ie = Se.length - ae, Fe = Array(ae), Re = 0; Re < ae; ++Re)
|
|
7803
7803
|
Fe[Re] = pe[Re] || Se[Ie + Re] || "";
|
|
7804
|
-
ke && (Fe[
|
|
7804
|
+
ke && (Fe[ae - 1] = ge(Fe[ae - 1], O));
|
|
7805
7805
|
var ur = Fe.reduce(function(vt, Ft, Sr) {
|
|
7806
7806
|
if (!Ft || Ft === "0") {
|
|
7807
7807
|
var er = vt[vt.length - 1];
|
|
@@ -7960,7 +7960,7 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
7960
7960
|
var pe = he[Pe].split("=");
|
|
7961
7961
|
switch (pe[0]) {
|
|
7962
7962
|
case "to":
|
|
7963
|
-
for (var Se = pe[1].split(","), ke = 0,
|
|
7963
|
+
for (var Se = pe[1].split(","), ke = 0, ae = Se.length; ke < ae; ++ke)
|
|
7964
7964
|
L.push(Se[ke]);
|
|
7965
7965
|
break;
|
|
7966
7966
|
case "subject":
|
|
@@ -8008,8 +8008,8 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
8008
8008
|
var Se = O.headers = O.headers || {};
|
|
8009
8009
|
O.subject && (Se.subject = O.subject), O.body && (Se.body = O.body);
|
|
8010
8010
|
var ke = [];
|
|
8011
|
-
for (var
|
|
8012
|
-
Se[
|
|
8011
|
+
for (var ae in Se)
|
|
8012
|
+
Se[ae] !== Vm[ae] && ke.push(ae.replace(qr, Ws).replace(qr, o).replace(gl, k) + "=" + Se[ae].replace(qr, Ws).replace(qr, o).replace(Hm, k));
|
|
8013
8013
|
return ke.length && (F.query = ke.join("&")), F;
|
|
8014
8014
|
}
|
|
8015
8015
|
}, Jm = /^([^\:]+)\:(.*)/, bl = {
|
|
@@ -8042,7 +8042,7 @@ var Ii = {}, Gn = {}, pM = {
|
|
|
8042
8042
|
};
|
|
8043
8043
|
j[Qt.scheme] = Qt, j[ml.scheme] = ml, j[wn.scheme] = wn, j[vl.scheme] = vl, j[_l.scheme] = _l, j[bl.scheme] = bl, j[wl.scheme] = wl, r.SCHEMES = j, r.pctEncChar = k, r.pctDecChars = z, r.parse = We, r.removeDotSegments = at, r.serialize = qe, r.resolveComponents = Dt, r.resolve = Yt, r.normalize = dt, r.equal = Xt, r.escapeComponent = wr, r.unescapeComponent = Xe, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
8044
8044
|
});
|
|
8045
|
-
})(
|
|
8045
|
+
})(p3, Gn);
|
|
8046
8046
|
Object.defineProperty(Ii, "__esModule", { value: !0 });
|
|
8047
8047
|
const _h = Gn;
|
|
8048
8048
|
_h.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -8067,7 +8067,7 @@ Ii.default = _h;
|
|
|
8067
8067
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
8068
8068
|
return r.CodeGen;
|
|
8069
8069
|
} });
|
|
8070
|
-
const n = ua, a = la, s = kr, o = it, i = fe, l = Ge, c = ia, d = $e, h =
|
|
8070
|
+
const n = ua, a = la, s = kr, o = it, i = fe, l = Ge, c = ia, d = $e, h = f3, g = Ii, E = (M, _) => new RegExp(M, _);
|
|
8071
8071
|
E.code = "new RegExp";
|
|
8072
8072
|
const $ = ["removeAdditional", "useDefaults", "coerceTypes"], b = /* @__PURE__ */ new Set([
|
|
8073
8073
|
"validate",
|
|
@@ -8489,17 +8489,17 @@ Ii.default = _h;
|
|
|
8489
8489
|
})(Yp);
|
|
8490
8490
|
var Ri = {}, Ni = {}, ji = {};
|
|
8491
8491
|
Object.defineProperty(ji, "__esModule", { value: !0 });
|
|
8492
|
-
const
|
|
8492
|
+
const h3 = {
|
|
8493
8493
|
keyword: "id",
|
|
8494
8494
|
code() {
|
|
8495
8495
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
8496
8496
|
}
|
|
8497
8497
|
};
|
|
8498
|
-
ji.default =
|
|
8498
|
+
ji.default = h3;
|
|
8499
8499
|
var Mr = {};
|
|
8500
8500
|
Object.defineProperty(Mr, "__esModule", { value: !0 });
|
|
8501
8501
|
Mr.callRef = Mr.getValidate = void 0;
|
|
8502
|
-
const
|
|
8502
|
+
const m3 = la, hd = le, st = fe, Br = Ht, md = it, Sa = $e, $3 = {
|
|
8503
8503
|
keyword: "$ref",
|
|
8504
8504
|
schemaType: "string",
|
|
8505
8505
|
code(e) {
|
|
@@ -8508,7 +8508,7 @@ const mM = la, hd = le, st = fe, Br = Ht, md = it, Sa = $e, $M = {
|
|
|
8508
8508
|
return h();
|
|
8509
8509
|
const d = md.resolveRef.call(l, c, a, r);
|
|
8510
8510
|
if (d === void 0)
|
|
8511
|
-
throw new
|
|
8511
|
+
throw new m3.default(n.opts.uriResolver, a, r);
|
|
8512
8512
|
if (d instanceof md.SchemaEnv)
|
|
8513
8513
|
return g(d);
|
|
8514
8514
|
return E(d);
|
|
@@ -8581,19 +8581,19 @@ function Va(e, t, r, n) {
|
|
|
8581
8581
|
}
|
|
8582
8582
|
}
|
|
8583
8583
|
Mr.callRef = Va;
|
|
8584
|
-
Mr.default = $
|
|
8584
|
+
Mr.default = $3;
|
|
8585
8585
|
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
8586
|
-
const
|
|
8586
|
+
const v3 = ji, y3 = Mr, g3 = [
|
|
8587
8587
|
"$schema",
|
|
8588
8588
|
"$id",
|
|
8589
8589
|
"$defs",
|
|
8590
8590
|
"$vocabulary",
|
|
8591
8591
|
{ keyword: "$comment" },
|
|
8592
8592
|
"definitions",
|
|
8593
|
-
|
|
8594
|
-
|
|
8593
|
+
v3.default,
|
|
8594
|
+
y3.default
|
|
8595
8595
|
];
|
|
8596
|
-
Ni.default =
|
|
8596
|
+
Ni.default = g3;
|
|
8597
8597
|
var Di = {}, ki = {};
|
|
8598
8598
|
Object.defineProperty(ki, "__esModule", { value: !0 });
|
|
8599
8599
|
const ss = fe, cr = ss.operators, os = {
|
|
@@ -8601,38 +8601,38 @@ const ss = fe, cr = ss.operators, os = {
|
|
|
8601
8601
|
minimum: { okStr: ">=", ok: cr.GTE, fail: cr.LT },
|
|
8602
8602
|
exclusiveMaximum: { okStr: "<", ok: cr.LT, fail: cr.GTE },
|
|
8603
8603
|
exclusiveMinimum: { okStr: ">", ok: cr.GT, fail: cr.LTE }
|
|
8604
|
-
},
|
|
8604
|
+
}, _3 = {
|
|
8605
8605
|
message: ({ keyword: e, schemaCode: t }) => (0, ss.str)`must be ${os[e].okStr} ${t}`,
|
|
8606
8606
|
params: ({ keyword: e, schemaCode: t }) => (0, ss._)`{comparison: ${os[e].okStr}, limit: ${t}}`
|
|
8607
|
-
},
|
|
8607
|
+
}, b3 = {
|
|
8608
8608
|
keyword: Object.keys(os),
|
|
8609
8609
|
type: "number",
|
|
8610
8610
|
schemaType: "number",
|
|
8611
8611
|
$data: !0,
|
|
8612
|
-
error:
|
|
8612
|
+
error: _3,
|
|
8613
8613
|
code(e) {
|
|
8614
8614
|
const { keyword: t, data: r, schemaCode: n } = e;
|
|
8615
8615
|
e.fail$data((0, ss._)`${r} ${os[t].fail} ${n} || isNaN(${r})`);
|
|
8616
8616
|
}
|
|
8617
8617
|
};
|
|
8618
|
-
ki.default =
|
|
8618
|
+
ki.default = b3;
|
|
8619
8619
|
var Mi = {};
|
|
8620
8620
|
Object.defineProperty(Mi, "__esModule", { value: !0 });
|
|
8621
|
-
const kn = fe,
|
|
8621
|
+
const kn = fe, w3 = {
|
|
8622
8622
|
message: ({ schemaCode: e }) => (0, kn.str)`must be multiple of ${e}`,
|
|
8623
8623
|
params: ({ schemaCode: e }) => (0, kn._)`{multipleOf: ${e}}`
|
|
8624
|
-
},
|
|
8624
|
+
}, E3 = {
|
|
8625
8625
|
keyword: "multipleOf",
|
|
8626
8626
|
type: "number",
|
|
8627
8627
|
schemaType: "number",
|
|
8628
8628
|
$data: !0,
|
|
8629
|
-
error:
|
|
8629
|
+
error: w3,
|
|
8630
8630
|
code(e) {
|
|
8631
8631
|
const { gen: t, data: r, schemaCode: n, it: a } = e, s = a.opts.multipleOfPrecision, o = t.let("res"), i = s ? (0, kn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}` : (0, kn._)`${o} !== parseInt(${o})`;
|
|
8632
8632
|
e.fail$data((0, kn._)`(${n} === 0 || (${o} = ${r}/${n}, ${i}))`);
|
|
8633
8633
|
}
|
|
8634
8634
|
};
|
|
8635
|
-
Mi.default =
|
|
8635
|
+
Mi.default = E3;
|
|
8636
8636
|
var Li = {}, Fi = {};
|
|
8637
8637
|
Object.defineProperty(Fi, "__esModule", { value: !0 });
|
|
8638
8638
|
function wh(e) {
|
|
@@ -8645,72 +8645,72 @@ function wh(e) {
|
|
|
8645
8645
|
Fi.default = wh;
|
|
8646
8646
|
wh.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
8647
8647
|
Object.defineProperty(Li, "__esModule", { value: !0 });
|
|
8648
|
-
const Tr = fe,
|
|
8648
|
+
const Tr = fe, S3 = $e, A3 = Fi, P3 = {
|
|
8649
8649
|
message({ keyword: e, schemaCode: t }) {
|
|
8650
8650
|
const r = e === "maxLength" ? "more" : "fewer";
|
|
8651
8651
|
return (0, Tr.str)`must NOT have ${r} than ${t} characters`;
|
|
8652
8652
|
},
|
|
8653
8653
|
params: ({ schemaCode: e }) => (0, Tr._)`{limit: ${e}}`
|
|
8654
|
-
},
|
|
8654
|
+
}, O3 = {
|
|
8655
8655
|
keyword: ["maxLength", "minLength"],
|
|
8656
8656
|
type: "string",
|
|
8657
8657
|
schemaType: "number",
|
|
8658
8658
|
$data: !0,
|
|
8659
|
-
error:
|
|
8659
|
+
error: P3,
|
|
8660
8660
|
code(e) {
|
|
8661
|
-
const { keyword: t, data: r, schemaCode: n, it: a } = e, s = t === "maxLength" ? Tr.operators.GT : Tr.operators.LT, o = a.opts.unicode === !1 ? (0, Tr._)`${r}.length` : (0, Tr._)`${(0,
|
|
8661
|
+
const { keyword: t, data: r, schemaCode: n, it: a } = e, s = t === "maxLength" ? Tr.operators.GT : Tr.operators.LT, o = a.opts.unicode === !1 ? (0, Tr._)`${r}.length` : (0, Tr._)`${(0, S3.useFunc)(e.gen, A3.default)}(${r})`;
|
|
8662
8662
|
e.fail$data((0, Tr._)`${o} ${s} ${n}`);
|
|
8663
8663
|
}
|
|
8664
8664
|
};
|
|
8665
|
-
Li.default =
|
|
8665
|
+
Li.default = O3;
|
|
8666
8666
|
var Vi = {};
|
|
8667
8667
|
Object.defineProperty(Vi, "__esModule", { value: !0 });
|
|
8668
|
-
const
|
|
8668
|
+
const C3 = le, is = fe, T3 = {
|
|
8669
8669
|
message: ({ schemaCode: e }) => (0, is.str)`must match pattern "${e}"`,
|
|
8670
8670
|
params: ({ schemaCode: e }) => (0, is._)`{pattern: ${e}}`
|
|
8671
|
-
},
|
|
8671
|
+
}, I3 = {
|
|
8672
8672
|
keyword: "pattern",
|
|
8673
8673
|
type: "string",
|
|
8674
8674
|
schemaType: "string",
|
|
8675
8675
|
$data: !0,
|
|
8676
|
-
error:
|
|
8676
|
+
error: T3,
|
|
8677
8677
|
code(e) {
|
|
8678
|
-
const { data: t, $data: r, schema: n, schemaCode: a, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", i = r ? (0, is._)`(new RegExp(${a}, ${o}))` : (0,
|
|
8678
|
+
const { data: t, $data: r, schema: n, schemaCode: a, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", i = r ? (0, is._)`(new RegExp(${a}, ${o}))` : (0, C3.usePattern)(e, n);
|
|
8679
8679
|
e.fail$data((0, is._)`!${i}.test(${t})`);
|
|
8680
8680
|
}
|
|
8681
8681
|
};
|
|
8682
|
-
Vi.default =
|
|
8682
|
+
Vi.default = I3;
|
|
8683
8683
|
var Ui = {};
|
|
8684
8684
|
Object.defineProperty(Ui, "__esModule", { value: !0 });
|
|
8685
|
-
const Mn = fe,
|
|
8685
|
+
const Mn = fe, R3 = {
|
|
8686
8686
|
message({ keyword: e, schemaCode: t }) {
|
|
8687
8687
|
const r = e === "maxProperties" ? "more" : "fewer";
|
|
8688
8688
|
return (0, Mn.str)`must NOT have ${r} than ${t} properties`;
|
|
8689
8689
|
},
|
|
8690
8690
|
params: ({ schemaCode: e }) => (0, Mn._)`{limit: ${e}}`
|
|
8691
|
-
},
|
|
8691
|
+
}, N3 = {
|
|
8692
8692
|
keyword: ["maxProperties", "minProperties"],
|
|
8693
8693
|
type: "object",
|
|
8694
8694
|
schemaType: "number",
|
|
8695
8695
|
$data: !0,
|
|
8696
|
-
error:
|
|
8696
|
+
error: R3,
|
|
8697
8697
|
code(e) {
|
|
8698
8698
|
const { keyword: t, data: r, schemaCode: n } = e, a = t === "maxProperties" ? Mn.operators.GT : Mn.operators.LT;
|
|
8699
8699
|
e.fail$data((0, Mn._)`Object.keys(${r}).length ${a} ${n}`);
|
|
8700
8700
|
}
|
|
8701
8701
|
};
|
|
8702
|
-
Ui.default =
|
|
8702
|
+
Ui.default = N3;
|
|
8703
8703
|
var qi = {};
|
|
8704
8704
|
Object.defineProperty(qi, "__esModule", { value: !0 });
|
|
8705
|
-
const Cn = le, Ln = fe,
|
|
8705
|
+
const Cn = le, Ln = fe, j3 = $e, D3 = {
|
|
8706
8706
|
message: ({ params: { missingProperty: e } }) => (0, Ln.str)`must have required property '${e}'`,
|
|
8707
8707
|
params: ({ params: { missingProperty: e } }) => (0, Ln._)`{missingProperty: ${e}}`
|
|
8708
|
-
},
|
|
8708
|
+
}, k3 = {
|
|
8709
8709
|
keyword: "required",
|
|
8710
8710
|
type: "object",
|
|
8711
8711
|
schemaType: "array",
|
|
8712
8712
|
$data: !0,
|
|
8713
|
-
error:
|
|
8713
|
+
error: D3,
|
|
8714
8714
|
code(e) {
|
|
8715
8715
|
const { gen: t, schema: r, schemaCode: n, data: a, $data: s, it: o } = e, { opts: i } = o;
|
|
8716
8716
|
if (!s && r.length === 0)
|
|
@@ -8721,7 +8721,7 @@ const Cn = le, Ln = fe, jM = $e, DM = {
|
|
|
8721
8721
|
for (const b of r)
|
|
8722
8722
|
if ((E == null ? void 0 : E[b]) === void 0 && !$.has(b)) {
|
|
8723
8723
|
const m = o.schemaEnv.baseId + o.errSchemaPath, p = `required property "${b}" is not defined at "${m}" (strictRequired)`;
|
|
8724
|
-
(0,
|
|
8724
|
+
(0, j3.checkStrictMode)(o, p, o.opts.strictRequired);
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
8727
|
function c() {
|
|
@@ -8753,42 +8753,42 @@ const Cn = le, Ln = fe, jM = $e, DM = {
|
|
|
8753
8753
|
}
|
|
8754
8754
|
}
|
|
8755
8755
|
};
|
|
8756
|
-
qi.default =
|
|
8756
|
+
qi.default = k3;
|
|
8757
8757
|
var zi = {};
|
|
8758
8758
|
Object.defineProperty(zi, "__esModule", { value: !0 });
|
|
8759
|
-
const Fn = fe,
|
|
8759
|
+
const Fn = fe, M3 = {
|
|
8760
8760
|
message({ keyword: e, schemaCode: t }) {
|
|
8761
8761
|
const r = e === "maxItems" ? "more" : "fewer";
|
|
8762
8762
|
return (0, Fn.str)`must NOT have ${r} than ${t} items`;
|
|
8763
8763
|
},
|
|
8764
8764
|
params: ({ schemaCode: e }) => (0, Fn._)`{limit: ${e}}`
|
|
8765
|
-
},
|
|
8765
|
+
}, L3 = {
|
|
8766
8766
|
keyword: ["maxItems", "minItems"],
|
|
8767
8767
|
type: "array",
|
|
8768
8768
|
schemaType: "number",
|
|
8769
8769
|
$data: !0,
|
|
8770
|
-
error:
|
|
8770
|
+
error: M3,
|
|
8771
8771
|
code(e) {
|
|
8772
8772
|
const { keyword: t, data: r, schemaCode: n } = e, a = t === "maxItems" ? Fn.operators.GT : Fn.operators.LT;
|
|
8773
8773
|
e.fail$data((0, Fn._)`${r}.length ${a} ${n}`);
|
|
8774
8774
|
}
|
|
8775
8775
|
};
|
|
8776
|
-
zi.default =
|
|
8776
|
+
zi.default = L3;
|
|
8777
8777
|
var Wi = {}, ca = {};
|
|
8778
8778
|
Object.defineProperty(ca, "__esModule", { value: !0 });
|
|
8779
8779
|
const Eh = js;
|
|
8780
8780
|
Eh.code = 'require("ajv/dist/runtime/equal").default';
|
|
8781
8781
|
ca.default = Eh;
|
|
8782
8782
|
Object.defineProperty(Wi, "__esModule", { value: !0 });
|
|
8783
|
-
const co = ia, Be = fe,
|
|
8783
|
+
const co = ia, Be = fe, F3 = $e, V3 = ca, U3 = {
|
|
8784
8784
|
message: ({ params: { i: e, j: t } }) => (0, Be.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
8785
8785
|
params: ({ params: { i: e, j: t } }) => (0, Be._)`{i: ${e}, j: ${t}}`
|
|
8786
|
-
},
|
|
8786
|
+
}, q3 = {
|
|
8787
8787
|
keyword: "uniqueItems",
|
|
8788
8788
|
type: "array",
|
|
8789
8789
|
schemaType: "boolean",
|
|
8790
8790
|
$data: !0,
|
|
8791
|
-
error:
|
|
8791
|
+
error: U3,
|
|
8792
8792
|
code(e) {
|
|
8793
8793
|
const { gen: t, data: r, $data: n, schema: a, parentSchema: s, schemaCode: o, it: i } = e;
|
|
8794
8794
|
if (!n && !a)
|
|
@@ -8811,46 +8811,46 @@ const co = ia, Be = fe, FM = $e, VM = ca, UM = {
|
|
|
8811
8811
|
});
|
|
8812
8812
|
}
|
|
8813
8813
|
function E($, b) {
|
|
8814
|
-
const m = (0,
|
|
8814
|
+
const m = (0, F3.useFunc)(t, V3.default), p = t.name("outer");
|
|
8815
8815
|
t.label(p).for((0, Be._)`;${$}--;`, () => t.for((0, Be._)`${b} = ${$}; ${b}--;`, () => t.if((0, Be._)`${m}(${r}[${$}], ${r}[${b}])`, () => {
|
|
8816
8816
|
e.error(), t.assign(l, !1).break(p);
|
|
8817
8817
|
})));
|
|
8818
8818
|
}
|
|
8819
8819
|
}
|
|
8820
8820
|
};
|
|
8821
|
-
Wi.default =
|
|
8821
|
+
Wi.default = q3;
|
|
8822
8822
|
var Bi = {};
|
|
8823
8823
|
Object.defineProperty(Bi, "__esModule", { value: !0 });
|
|
8824
|
-
const Do = fe,
|
|
8824
|
+
const Do = fe, z3 = $e, W3 = ca, B3 = {
|
|
8825
8825
|
message: "must be equal to constant",
|
|
8826
8826
|
params: ({ schemaCode: e }) => (0, Do._)`{allowedValue: ${e}}`
|
|
8827
|
-
},
|
|
8827
|
+
}, K3 = {
|
|
8828
8828
|
keyword: "const",
|
|
8829
8829
|
$data: !0,
|
|
8830
|
-
error:
|
|
8830
|
+
error: B3,
|
|
8831
8831
|
code(e) {
|
|
8832
8832
|
const { gen: t, data: r, $data: n, schemaCode: a, schema: s } = e;
|
|
8833
|
-
n || s && typeof s == "object" ? e.fail$data((0, Do._)`!${(0,
|
|
8833
|
+
n || s && typeof s == "object" ? e.fail$data((0, Do._)`!${(0, z3.useFunc)(t, W3.default)}(${r}, ${a})`) : e.fail((0, Do._)`${s} !== ${r}`);
|
|
8834
8834
|
}
|
|
8835
8835
|
};
|
|
8836
|
-
Bi.default =
|
|
8836
|
+
Bi.default = K3;
|
|
8837
8837
|
var Ki = {};
|
|
8838
8838
|
Object.defineProperty(Ki, "__esModule", { value: !0 });
|
|
8839
|
-
const Nn = fe,
|
|
8839
|
+
const Nn = fe, G3 = $e, H3 = ca, J3 = {
|
|
8840
8840
|
message: "must be equal to one of the allowed values",
|
|
8841
8841
|
params: ({ schemaCode: e }) => (0, Nn._)`{allowedValues: ${e}}`
|
|
8842
|
-
},
|
|
8842
|
+
}, x3 = {
|
|
8843
8843
|
keyword: "enum",
|
|
8844
8844
|
schemaType: "array",
|
|
8845
8845
|
$data: !0,
|
|
8846
|
-
error:
|
|
8846
|
+
error: J3,
|
|
8847
8847
|
code(e) {
|
|
8848
8848
|
const { gen: t, data: r, $data: n, schema: a, schemaCode: s, it: o } = e;
|
|
8849
8849
|
if (!n && a.length === 0)
|
|
8850
8850
|
throw new Error("enum must have non-empty array");
|
|
8851
8851
|
const i = a.length >= o.opts.loopEnum;
|
|
8852
8852
|
let l;
|
|
8853
|
-
const c = () => l ?? (l = (0,
|
|
8853
|
+
const c = () => l ?? (l = (0, G3.useFunc)(t, H3.default));
|
|
8854
8854
|
let d;
|
|
8855
8855
|
if (i || n)
|
|
8856
8856
|
d = t.let("valid"), e.block$data(d, h);
|
|
@@ -8870,15 +8870,15 @@ const Nn = fe, GM = $e, HM = ca, JM = {
|
|
|
8870
8870
|
}
|
|
8871
8871
|
}
|
|
8872
8872
|
};
|
|
8873
|
-
Ki.default =
|
|
8873
|
+
Ki.default = x3;
|
|
8874
8874
|
Object.defineProperty(Di, "__esModule", { value: !0 });
|
|
8875
|
-
const
|
|
8875
|
+
const Z3 = ki, Y3 = Mi, X3 = Li, Q3 = Vi, e5 = Ui, t5 = qi, r5 = zi, n5 = Wi, a5 = Bi, s5 = Ki, o5 = [
|
|
8876
8876
|
// number
|
|
8877
|
-
|
|
8878
|
-
|
|
8877
|
+
Z3.default,
|
|
8878
|
+
Y3.default,
|
|
8879
8879
|
// string
|
|
8880
|
-
|
|
8881
|
-
|
|
8880
|
+
X3.default,
|
|
8881
|
+
Q3.default,
|
|
8882
8882
|
// object
|
|
8883
8883
|
e5.default,
|
|
8884
8884
|
t5.default,
|
|
@@ -14367,7 +14367,7 @@ const fm = (e) => typeof e == "object" && e !== null && typeof e.i18n == "string
|
|
|
14367
14367
|
errors: n
|
|
14368
14368
|
};
|
|
14369
14369
|
} else {
|
|
14370
|
-
const r = xe(e.data, t.path), n = t.updater(Dc(r)), a =
|
|
14370
|
+
const r = xe(e.data, t.path), n = t.updater(Dc(r)), a = ck(t.path, n, e.data === void 0 ? {} : e.data), s = tr(e.validator, a);
|
|
14371
14371
|
return {
|
|
14372
14372
|
...e,
|
|
14373
14373
|
data: a,
|
|
@@ -14587,7 +14587,7 @@ const fm = (e) => typeof e == "object" && e !== null && typeof e.i18n == "string
|
|
|
14587
14587
|
var o, i, l;
|
|
14588
14588
|
return (o = e == null ? void 0 : e.jsonforms) != null && o.readonly ? !1 : r && p7(r) ? h7(r, a, t == null ? void 0 : t.path, qs(e)) : typeof ((i = r == null ? void 0 : r.options) == null ? void 0 : i.readonly) == "boolean" ? !r.options.readonly : typeof ((l = r == null ? void 0 : r.options) == null ? void 0 : l.readOnly) == "boolean" ? !r.options.readOnly : typeof (s == null ? void 0 : s.readonly) == "boolean" ? !s.readonly : typeof (s == null ? void 0 : s.readOnly) == "boolean" ? !s.readOnly : (n == null ? void 0 : n.readOnly) === !0 ? !1 : typeof (t == null ? void 0 : t.enabled) == "boolean" ? t.enabled : !0;
|
|
14589
14589
|
}, bm = (e) => e == null ? "" : e.join(`
|
|
14590
|
-
`), wm = (e, t) =>
|
|
14590
|
+
`), wm = (e, t) => Xk(ys(e), t), ys = (e) => {
|
|
14591
14591
|
if (we(e))
|
|
14592
14592
|
return [];
|
|
14593
14593
|
if (!we(e.type) && typeof e.type == "string")
|
|
@@ -15026,7 +15026,7 @@ function pl(e, t, r) {
|
|
|
15026
15026
|
var n = Za("jsonforms"), a = Za("dispatch");
|
|
15027
15027
|
if (!n || !a)
|
|
15028
15028
|
throw "'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?";
|
|
15029
|
-
var s = tt(void 0), o =
|
|
15029
|
+
var s = tt(void 0), o = se(function() {
|
|
15030
15030
|
return mr(mr(mr({}, e), t({
|
|
15031
15031
|
jsonforms: n
|
|
15032
15032
|
}, e)), {}, {
|
|
@@ -15052,13 +15052,13 @@ var bn = function(t) {
|
|
|
15052
15052
|
var r = Za("jsonforms"), n = Za("dispatch");
|
|
15053
15053
|
if (!r || !n)
|
|
15054
15054
|
throw "'jsonforms' or 'dispatch' couldn't be injected. Are you within JSON Forms?";
|
|
15055
|
-
var a =
|
|
15055
|
+
var a = se(function() {
|
|
15056
15056
|
return _7({
|
|
15057
15057
|
jsonforms: r
|
|
15058
15058
|
}, t);
|
|
15059
|
-
}), s =
|
|
15059
|
+
}), s = se(function() {
|
|
15060
15060
|
return a.value.rootSchema;
|
|
15061
|
-
}), o =
|
|
15061
|
+
}), o = se(function() {
|
|
15062
15062
|
var i = a.value;
|
|
15063
15063
|
i.rootSchema;
|
|
15064
15064
|
var l = dl(i, eq);
|
|
@@ -15460,9 +15460,9 @@ const ef = { render: $q }, vq = X({
|
|
|
15460
15460
|
}
|
|
15461
15461
|
},
|
|
15462
15462
|
setup(e) {
|
|
15463
|
-
const t =
|
|
15463
|
+
const t = se(() => ef), r = se(() => ({
|
|
15464
15464
|
icon: !0
|
|
15465
|
-
})), n =
|
|
15465
|
+
})), n = se(() => e.errorMessages.length > 0);
|
|
15466
15466
|
return {
|
|
15467
15467
|
icon: t,
|
|
15468
15468
|
iconClasses: r,
|
|
@@ -15512,9 +15512,9 @@ const bq = /* @__PURE__ */ te(vq, [["render", _q], ["__scopeId", "data-v-8b29f0b
|
|
|
15512
15512
|
}
|
|
15513
15513
|
},
|
|
15514
15514
|
setup(e, { emit: t }) {
|
|
15515
|
-
const r =
|
|
15515
|
+
const r = se(
|
|
15516
15516
|
() => (e.isDirty || e.control.config.showErrors) && e.control.errors
|
|
15517
|
-
), n =
|
|
15517
|
+
), n = se(() => e.control.errors !== "" && r.value ? [e.control.errors] : []);
|
|
15518
15518
|
return e.control.schema.default && t("update-value", e.control.schema.default), {
|
|
15519
15519
|
errors: n,
|
|
15520
15520
|
showErrors: r
|
|
@@ -16116,16 +16116,16 @@ const sz = /* @__PURE__ */ te(rz, [["render", az], ["__scopeId", "data-v-62c8e34
|
|
|
16116
16116
|
},
|
|
16117
16117
|
setup(e, { emit: t }) {
|
|
16118
16118
|
const r = Kt({
|
|
16119
|
-
data: e.data || {}
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16119
|
+
data: e.data || {},
|
|
16120
|
+
config: {
|
|
16121
|
+
showErrors: e.showErrors
|
|
16122
|
+
}
|
|
16123
|
+
});
|
|
16123
16124
|
return {
|
|
16124
|
-
onChange: (
|
|
16125
|
-
const
|
|
16126
|
-
t("updated",
|
|
16125
|
+
onChange: (a) => {
|
|
16126
|
+
const s = a.errors.length === 0;
|
|
16127
|
+
t("updated", a.data), t("validated", s);
|
|
16127
16128
|
},
|
|
16128
|
-
config: n,
|
|
16129
16129
|
renderers: pz,
|
|
16130
16130
|
state: r
|
|
16131
16131
|
};
|
|
@@ -16143,13 +16143,13 @@ function $z(e, t, r, n, a, s) {
|
|
|
16143
16143
|
class: "aux-form-content",
|
|
16144
16144
|
data: e.state.data,
|
|
16145
16145
|
schema: e.schema,
|
|
16146
|
-
config: e.config,
|
|
16146
|
+
config: e.state.config,
|
|
16147
16147
|
renderers: e.renderers,
|
|
16148
16148
|
onChange: e.onChange
|
|
16149
16149
|
}, null, 8, ["data", "schema", "config", "renderers", "onChange"])) : de("", !0)
|
|
16150
16150
|
]);
|
|
16151
16151
|
}
|
|
16152
|
-
const Bz = /* @__PURE__ */ te(hz, [["render", $z], ["__scopeId", "data-v-
|
|
16152
|
+
const Bz = /* @__PURE__ */ te(hz, [["render", $z], ["__scopeId", "data-v-6600cca6"]]), vz = ["success", "info", "warning", "error", "default", "inactive"], yz = X({
|
|
16153
16153
|
name: "aux-status-badge",
|
|
16154
16154
|
props: {
|
|
16155
16155
|
status: {
|
|
@@ -16159,10 +16159,10 @@ const Bz = /* @__PURE__ */ te(hz, [["render", $z], ["__scopeId", "data-v-b51a78a
|
|
|
16159
16159
|
}
|
|
16160
16160
|
},
|
|
16161
16161
|
setup(e) {
|
|
16162
|
-
const t =
|
|
16162
|
+
const t = se(() => ({
|
|
16163
16163
|
"aux-status-badge": !0,
|
|
16164
16164
|
[`aux-status-badge--${e.status}`]: !0
|
|
16165
|
-
})), r =
|
|
16165
|
+
})), r = se(() => ({
|
|
16166
16166
|
"aux-status-badge-dot": !0,
|
|
16167
16167
|
[`aux-status-badge-dot--${e.status}`]: !0
|
|
16168
16168
|
}));
|
|
@@ -16179,7 +16179,7 @@ function gz(e, t, r, n, a, s) {
|
|
|
16179
16179
|
be(e.$slots, "default", {}, void 0, !0)
|
|
16180
16180
|
], 2);
|
|
16181
16181
|
}
|
|
16182
|
-
const Kz = /* @__PURE__ */ te(yz, [["render", gz], ["__scopeId", "data-v-
|
|
16182
|
+
const Kz = /* @__PURE__ */ te(yz, [["render", gz], ["__scopeId", "data-v-d5c7ad07"]]), _z = (e, t) => {
|
|
16183
16183
|
const r = t === "decimals" ? 2 : 0;
|
|
16184
16184
|
return new Intl.NumberFormat("nb-NB", {
|
|
16185
16185
|
minimumFractionDigits: r,
|