@gravitee/graphene-core 3.53.1 → 3.54.0-fix-found-460-validation-scope.9ee2b67
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/USAGE_GUIDE.md +15 -1
- package/dist/composed/AppContextBar/AppContextBar.d.ts +8 -1
- package/dist/composed/AppContextBar/AppContextBar.d.ts.map +1 -1
- package/dist/composed/AppSwitcher/AppSwitcher.d.ts +7 -1
- package/dist/composed/AppSwitcher/AppSwitcher.d.ts.map +1 -1
- package/dist/composed/ContentHeader/ContentHeader.d.ts +6 -1
- package/dist/composed/ContentHeader/ContentHeader.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts +21 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts +39 -0
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/extractDefaults.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts +38 -0
- package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts +4 -3
- package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts +11 -5
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/index.d.ts +2 -0
- package/dist/composed/JsonSchemaForm/index.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts +7 -3
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts +2 -0
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts +21 -0
- package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +6 -5
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts +2 -0
- package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts +1 -2
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts.map +1 -1
- package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts +8 -1
- package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts.map +1 -1
- package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts +2 -0
- package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts.map +1 -1
- package/dist/composed/TopNavUser/TopNavUser.d.ts +7 -1
- package/dist/composed/TopNavUser/TopNavUser.d.ts.map +1 -1
- package/dist/index.js +1361 -477
- package/package.json +3 -3
- package/snippets/json-schema-form-simple.tsx +12 -7
package/dist/index.js
CHANGED
|
@@ -24902,20 +24902,21 @@ function jW({ href: e, fallback: t = "button", followHref: n = !1, menuItem: r =
|
|
|
24902
24902
|
}
|
|
24903
24903
|
//#endregion
|
|
24904
24904
|
//#region src/composed/AppSwitcher/AppSwitcher.tsx
|
|
24905
|
-
function MW({ app: e, isActive: n, followHref: r, onSelect: i }) {
|
|
24906
|
-
let
|
|
24905
|
+
function MW({ app: e, isActive: n, followHref: r, onSelect: i, "data-testid": a }) {
|
|
24906
|
+
let o = e.pinned === !0;
|
|
24907
24907
|
return /* @__PURE__ */ U(TL, {
|
|
24908
24908
|
asChild: !0,
|
|
24909
24909
|
onSelect: i,
|
|
24910
|
-
className: t("cursor-pointer gap-2.5 rounded-lg px-2",
|
|
24910
|
+
className: t("cursor-pointer gap-2.5 rounded-lg px-2", o ? "py-1.5" : "py-2", n ? "bg-accent" : "focus:bg-muted/50 focus:text-foreground"),
|
|
24911
24911
|
"aria-current": n ? "true" : void 0,
|
|
24912
|
+
"data-testid": a,
|
|
24912
24913
|
children: /* @__PURE__ */ W(jW, {
|
|
24913
24914
|
href: e.href,
|
|
24914
24915
|
fallback: "div",
|
|
24915
24916
|
followHref: r,
|
|
24916
24917
|
menuItem: !0,
|
|
24917
24918
|
children: [/* @__PURE__ */ U("span", {
|
|
24918
|
-
className: t("flex shrink-0 items-center justify-center [&_svg]:size-5",
|
|
24919
|
+
className: t("flex shrink-0 items-center justify-center [&_svg]:size-5", o ? "h-5 w-8" : "size-8 rounded-md bg-muted/50"),
|
|
24919
24920
|
"aria-hidden": "true",
|
|
24920
24921
|
children: e.icon
|
|
24921
24922
|
}), /* @__PURE__ */ W("div", {
|
|
@@ -24923,7 +24924,7 @@ function MW({ app: e, isActive: n, followHref: r, onSelect: i }) {
|
|
|
24923
24924
|
children: [/* @__PURE__ */ U("span", {
|
|
24924
24925
|
className: t("truncate text-sm", n ? "font-semibold" : "font-medium"),
|
|
24925
24926
|
children: e.label
|
|
24926
|
-
}), !
|
|
24927
|
+
}), !o && e.description && /* @__PURE__ */ U("span", {
|
|
24927
24928
|
className: "truncate text-xs text-muted-foreground",
|
|
24928
24929
|
children: e.description
|
|
24929
24930
|
})]
|
|
@@ -24931,14 +24932,15 @@ function MW({ app: e, isActive: n, followHref: r, onSelect: i }) {
|
|
|
24931
24932
|
})
|
|
24932
24933
|
});
|
|
24933
24934
|
}
|
|
24934
|
-
function NW({ apps: e, activeKey: n, onChange: r, onOpenChange: i, side: a, contentClassName: o, children: s }) {
|
|
24935
|
-
let
|
|
24935
|
+
function NW({ apps: e, activeKey: n, onChange: r, onOpenChange: i, side: a, contentClassName: o, children: s, "data-testid": c }) {
|
|
24936
|
+
let l = QH(), u = e.filter((e) => e.pinned), d = e.filter((e) => !e.pinned), f = (e) => /* @__PURE__ */ U(MW, {
|
|
24936
24937
|
app: e,
|
|
24937
24938
|
isActive: e.key === n,
|
|
24938
24939
|
followHref: r === void 0 && e.key !== n,
|
|
24939
24940
|
onSelect: () => {
|
|
24940
24941
|
e.key !== n && r?.(e.key);
|
|
24941
|
-
}
|
|
24942
|
+
},
|
|
24943
|
+
"data-testid": J(c, `option-${e.key}`)
|
|
24942
24944
|
}, e.key);
|
|
24943
24945
|
return /* @__PURE__ */ W(bL, {
|
|
24944
24946
|
onOpenChange: i,
|
|
@@ -24946,18 +24948,19 @@ function NW({ apps: e, activeKey: n, onChange: r, onOpenChange: i, side: a, cont
|
|
|
24946
24948
|
asChild: !0,
|
|
24947
24949
|
children: s
|
|
24948
24950
|
}), /* @__PURE__ */ W(CL, {
|
|
24949
|
-
side: a ?? (
|
|
24951
|
+
side: a ?? (l ? "bottom" : "right"),
|
|
24950
24952
|
align: "start",
|
|
24951
24953
|
className: t("w-[34rem] max-w-[calc(100vw-1rem)] p-1", o),
|
|
24954
|
+
"data-testid": J(c, "content"),
|
|
24952
24955
|
children: [
|
|
24953
|
-
|
|
24956
|
+
u.length > 0 && /* @__PURE__ */ U("div", {
|
|
24954
24957
|
className: "grid gap-0.5",
|
|
24955
|
-
children:
|
|
24958
|
+
children: u.map(f)
|
|
24956
24959
|
}),
|
|
24957
|
-
|
|
24958
|
-
|
|
24960
|
+
u.length > 0 && d.length > 0 && /* @__PURE__ */ U(AL, {}),
|
|
24961
|
+
d.length > 0 && /* @__PURE__ */ U("div", {
|
|
24959
24962
|
className: "grid grid-cols-2 gap-0.5",
|
|
24960
|
-
children:
|
|
24963
|
+
children: d.map(f)
|
|
24961
24964
|
})
|
|
24962
24965
|
]
|
|
24963
24966
|
})]
|
|
@@ -24966,25 +24969,27 @@ function NW({ apps: e, activeKey: n, onChange: r, onOpenChange: i, side: a, cont
|
|
|
24966
24969
|
NW.displayName = "AppSwitcher";
|
|
24967
24970
|
//#endregion
|
|
24968
24971
|
//#region src/composed/SelectorDropdown/SelectorDropdown.tsx
|
|
24969
|
-
function PW({ options: e, activeKey: n, onChange: r, onOpenChange: i, align: a = "start", side: o = "bottom", className: s, children: c, renderTrigger: l }) {
|
|
24970
|
-
let
|
|
24972
|
+
function PW({ options: e, activeKey: n, onChange: r, onOpenChange: i, align: a = "start", side: o = "bottom", className: s, children: c, renderTrigger: l, "data-testid": u }) {
|
|
24973
|
+
let d = e.find((e) => e.key === n);
|
|
24971
24974
|
return /* @__PURE__ */ W(bL, {
|
|
24972
24975
|
onOpenChange: i,
|
|
24973
24976
|
children: [/* @__PURE__ */ U(SL, {
|
|
24974
24977
|
asChild: !0,
|
|
24975
24978
|
children: l ? l({
|
|
24976
|
-
activeOption:
|
|
24979
|
+
activeOption: d,
|
|
24977
24980
|
activeKey: n
|
|
24978
24981
|
}) : c
|
|
24979
24982
|
}), /* @__PURE__ */ U(CL, {
|
|
24980
24983
|
align: a,
|
|
24981
24984
|
side: o,
|
|
24982
24985
|
className: t("min-w-48", s),
|
|
24986
|
+
"data-testid": J(u, "content"),
|
|
24983
24987
|
children: e.map((e) => /* @__PURE__ */ U(TL, {
|
|
24984
24988
|
asChild: !0,
|
|
24985
24989
|
className: t("gap-2", e.key === n && "font-medium", e.href && "cursor-pointer"),
|
|
24986
24990
|
onSelect: () => r?.(e.key),
|
|
24987
24991
|
"aria-current": e.key === n ? "true" : void 0,
|
|
24992
|
+
"data-testid": J(u, `option-${e.key}`),
|
|
24988
24993
|
children: /* @__PURE__ */ W(jW, {
|
|
24989
24994
|
href: e.href,
|
|
24990
24995
|
fallback: "div",
|
|
@@ -25022,49 +25027,54 @@ function FW({ activeOption: e, emptyLabel: n = "Select...", className: r, ...i }
|
|
|
25022
25027
|
FW.displayName = "SelectorTriggerButton";
|
|
25023
25028
|
//#endregion
|
|
25024
25029
|
//#region src/composed/AppContextBar/AppContextBar.tsx
|
|
25025
|
-
function IW({ apps: e, activeAppKey: n, onAppChange: r, environments: i, activeEnvironmentKey: a, onEnvironmentChange: o, className: s }) {
|
|
25026
|
-
let
|
|
25030
|
+
function IW({ apps: e, activeAppKey: n, onAppChange: r, environments: i, activeEnvironmentKey: a, onEnvironmentChange: o, className: s, "data-testid": c }) {
|
|
25031
|
+
let l = e.find((e) => e.key === n), u = i && i.length > 0, d = a ?? i?.[0]?.key ?? "", f = i?.find((e) => e.key === d);
|
|
25027
25032
|
return /* @__PURE__ */ W("div", {
|
|
25028
25033
|
className: t("flex items-center gap-0.5", s),
|
|
25034
|
+
"data-testid": c,
|
|
25029
25035
|
children: [/* @__PURE__ */ U(NW, {
|
|
25030
25036
|
apps: e,
|
|
25031
25037
|
activeKey: n,
|
|
25032
25038
|
onChange: r,
|
|
25033
25039
|
side: "bottom",
|
|
25040
|
+
"data-testid": J(c, "app"),
|
|
25034
25041
|
children: /* @__PURE__ */ W(ay, {
|
|
25035
25042
|
variant: "ghost",
|
|
25036
25043
|
size: "sm",
|
|
25037
25044
|
className: "gap-1.5 px-1.5 font-semibold data-open:bg-accent data-open:text-accent-foreground",
|
|
25045
|
+
"data-testid": J(c, "app-trigger"),
|
|
25038
25046
|
children: [
|
|
25039
25047
|
/* @__PURE__ */ U("span", {
|
|
25040
25048
|
className: "flex size-5 shrink-0 items-center justify-center [&_svg]:size-5",
|
|
25041
|
-
children:
|
|
25049
|
+
children: l?.icon
|
|
25042
25050
|
}),
|
|
25043
25051
|
/* @__PURE__ */ U("span", {
|
|
25044
25052
|
className: "max-w-48 truncate text-sm",
|
|
25045
|
-
children:
|
|
25053
|
+
children: l?.label ?? "Select app"
|
|
25046
25054
|
}),
|
|
25047
25055
|
/* @__PURE__ */ U(le, { className: "size-3 shrink-0 opacity-50" })
|
|
25048
25056
|
]
|
|
25049
25057
|
})
|
|
25050
|
-
}),
|
|
25058
|
+
}), u && /* @__PURE__ */ U(PW, {
|
|
25051
25059
|
options: i,
|
|
25052
|
-
activeKey:
|
|
25060
|
+
activeKey: d,
|
|
25053
25061
|
onChange: o,
|
|
25054
25062
|
side: "bottom",
|
|
25055
25063
|
align: "start",
|
|
25064
|
+
"data-testid": J(c, "environment"),
|
|
25056
25065
|
children: /* @__PURE__ */ W(ay, {
|
|
25057
25066
|
variant: "ghost",
|
|
25058
25067
|
size: "sm",
|
|
25059
25068
|
className: "gap-1 px-1.5 text-xs font-medium text-muted-foreground",
|
|
25060
|
-
title:
|
|
25061
|
-
"aria-label": `Switch environment (current: ${
|
|
25069
|
+
title: f?.label,
|
|
25070
|
+
"aria-label": f ? `Switch environment (current: ${f.label})` : void 0,
|
|
25071
|
+
"data-testid": J(c, "environment-trigger"),
|
|
25062
25072
|
children: [
|
|
25063
25073
|
/* @__PURE__ */ U("span", {
|
|
25064
25074
|
className: "size-1.5 rounded-full bg-foreground/30",
|
|
25065
25075
|
"aria-hidden": !0
|
|
25066
25076
|
}),
|
|
25067
|
-
|
|
25077
|
+
f?.label ?? "Select environment",
|
|
25068
25078
|
/* @__PURE__ */ U(le, { className: "size-3 shrink-0 opacity-50" })
|
|
25069
25079
|
]
|
|
25070
25080
|
})
|
|
@@ -25436,36 +25446,43 @@ function tG(e) {
|
|
|
25436
25446
|
}
|
|
25437
25447
|
//#endregion
|
|
25438
25448
|
//#region src/composed/ContentHeader/ContentHeader.tsx
|
|
25439
|
-
function nG({ crumb: e, isLast: t }) {
|
|
25440
|
-
return t ? /* @__PURE__ */ U(ty, {
|
|
25449
|
+
function nG({ crumb: e, isLast: t, "data-testid": n }) {
|
|
25450
|
+
return t ? /* @__PURE__ */ U(ty, {
|
|
25451
|
+
"data-testid": n,
|
|
25452
|
+
children: e.label
|
|
25453
|
+
}) : e.onClick ? /* @__PURE__ */ U(ey, {
|
|
25441
25454
|
asChild: !0,
|
|
25442
25455
|
children: /* @__PURE__ */ U(jW, {
|
|
25443
25456
|
href: e.href,
|
|
25444
25457
|
onClick: e.onClick,
|
|
25458
|
+
"data-testid": n,
|
|
25445
25459
|
children: e.label
|
|
25446
25460
|
})
|
|
25447
25461
|
}) : /* @__PURE__ */ U(ey, {
|
|
25448
25462
|
href: e.href,
|
|
25463
|
+
"data-testid": n,
|
|
25449
25464
|
children: e.label
|
|
25450
25465
|
});
|
|
25451
25466
|
}
|
|
25452
|
-
function rG({ className: e, breadcrumbs: n = [], leading: r, appContext: i, trailing: a }) {
|
|
25453
|
-
let
|
|
25467
|
+
function rG({ className: e, breadcrumbs: n = [], leading: r, appContext: i, trailing: a, "data-testid": o }) {
|
|
25468
|
+
let s = n.length > 0;
|
|
25454
25469
|
return /* @__PURE__ */ W("div", {
|
|
25455
25470
|
"data-slot": "content-header",
|
|
25456
25471
|
className: t("flex items-center gap-2 border-b px-4 py-2", e),
|
|
25472
|
+
"data-testid": o,
|
|
25457
25473
|
children: [
|
|
25458
25474
|
r,
|
|
25459
25475
|
i,
|
|
25460
|
-
i &&
|
|
25476
|
+
i && s && /* @__PURE__ */ U(g, {
|
|
25461
25477
|
orientation: "vertical",
|
|
25462
25478
|
className: "my-1"
|
|
25463
25479
|
}),
|
|
25464
|
-
|
|
25480
|
+
s && /* @__PURE__ */ U(Zv, { children: /* @__PURE__ */ U(Qv, { children: n.map((e, t) => {
|
|
25465
25481
|
let r = t === n.length - 1;
|
|
25466
25482
|
return /* @__PURE__ */ W(Pe, { children: [/* @__PURE__ */ U($v, { children: /* @__PURE__ */ U(nG, {
|
|
25467
25483
|
crumb: e,
|
|
25468
|
-
isLast: r
|
|
25484
|
+
isLast: r,
|
|
25485
|
+
"data-testid": J(o, `breadcrumb-${t}`)
|
|
25469
25486
|
}) }), !r && /* @__PURE__ */ U(ny, {})] }, t);
|
|
25470
25487
|
}) }) }),
|
|
25471
25488
|
/* @__PURE__ */ U("div", { className: "flex-1" }),
|
|
@@ -29823,8 +29840,9 @@ function SY(e) {
|
|
|
29823
29840
|
e !== void 0 && (t[n] = e);
|
|
29824
29841
|
}
|
|
29825
29842
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => !eY(e));
|
|
29826
|
-
if (n?.properties) {
|
|
29827
|
-
|
|
29843
|
+
if (n?.properties) for (let [e, r] of Object.entries(n.properties)) {
|
|
29844
|
+
let n = mY(r);
|
|
29845
|
+
if (n) t[e] = structuredClone(n.value);
|
|
29828
29846
|
else if (!(e in t)) {
|
|
29829
29847
|
let n = SY(r);
|
|
29830
29848
|
n !== void 0 && (t[e] = n);
|
|
@@ -30056,7 +30074,7 @@ function IY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30056
30074
|
basePath: f,
|
|
30057
30075
|
disabled: c
|
|
30058
30076
|
},
|
|
30059
|
-
children: /* @__PURE__ */ U(
|
|
30077
|
+
children: /* @__PURE__ */ U(EX, {
|
|
30060
30078
|
node: r,
|
|
30061
30079
|
name: "",
|
|
30062
30080
|
depth: a + 1,
|
|
@@ -30600,85 +30618,112 @@ function lX(e, t) {
|
|
|
30600
30618
|
//#endregion
|
|
30601
30619
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30602
30620
|
function uX({ node: e, depth: t }) {
|
|
30603
|
-
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o } = n, { schema:
|
|
30604
|
-
|
|
30605
|
-
|
|
30606
|
-
|
|
30607
|
-
|
|
30621
|
+
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o, onVariantChange: s } = n, { schema: c } = e, l = i.variantIndices, u = qe(() => e.variants ?? [], [e.variants]), d = fX(a, n.name), [f, p] = Xe(() => rX(u.map((e) => e.raw), d, l, (e) => r._getWatch(a ? `${a}.${e}` : e))), [m, h] = Xe(!1), g = mX(a ? O(r._defaultValues, a) : r._defaultValues), _ = (u[f] ?? u[0])?.consts ?? [], v = _.map(({ key: e }) => a ? `${a}.${e}` : e), y = M({
|
|
30622
|
+
control: r,
|
|
30623
|
+
name: v.length > 0 ? v : [dX]
|
|
30624
|
+
}), x = _.every(({ value: e }, t) => JSON.stringify(y[t]) === JSON.stringify(e)), S = qe(() => u[f]?.dependencyBranches ?? [], [u, f]), w = Ye(!1);
|
|
30625
|
+
if (Ue(() => {
|
|
30626
|
+
w.current && (w.current = !1, s?.(d, f));
|
|
30627
|
+
}, [
|
|
30628
|
+
s,
|
|
30629
|
+
d,
|
|
30630
|
+
f
|
|
30631
|
+
]), u.length === 0) return null;
|
|
30632
|
+
let T = u[f] ?? u[0], E = n.disabled || c.readOnly === !0, D = `${a || "root"}-variant`, j = (e) => {
|
|
30633
|
+
if (e === f) {
|
|
30634
|
+
l.set(d, e), h(!0);
|
|
30635
|
+
return;
|
|
30636
|
+
}
|
|
30637
|
+
let t = u[f];
|
|
30608
30638
|
if (t) {
|
|
30609
30639
|
for (let e of t.properties.keys()) r.unregister(a ? `${a}.${e}` : e);
|
|
30610
30640
|
for (let e of t.dependencyBranches ?? []) for (let t of e.properties.keys()) r.unregister(a ? `${a}.${t}` : t);
|
|
30611
30641
|
}
|
|
30612
|
-
|
|
30613
|
-
},
|
|
30642
|
+
l.set(d, e), w.current = !0, h(!0), p(e);
|
|
30643
|
+
}, N = t === 0 ? c.title || "Variant" : null;
|
|
30614
30644
|
return /* @__PURE__ */ W($e, { children: [
|
|
30615
30645
|
/* @__PURE__ */ W(k, { children: [
|
|
30616
|
-
|
|
30617
|
-
htmlFor:
|
|
30618
|
-
children:
|
|
30646
|
+
N !== null && /* @__PURE__ */ U(R, {
|
|
30647
|
+
htmlFor: D,
|
|
30648
|
+
children: N
|
|
30619
30649
|
}),
|
|
30620
30650
|
/* @__PURE__ */ W(wH, {
|
|
30621
|
-
value: String(
|
|
30622
|
-
onValueChange: (e) =>
|
|
30623
|
-
disabled:
|
|
30651
|
+
value: x ? String(f) : "",
|
|
30652
|
+
onValueChange: (e) => j(Number(e)),
|
|
30653
|
+
disabled: E,
|
|
30624
30654
|
children: [/* @__PURE__ */ U(DH, {
|
|
30625
|
-
id:
|
|
30626
|
-
"aria-label":
|
|
30655
|
+
id: D,
|
|
30656
|
+
"aria-label": N === null ? "Variant" : void 0,
|
|
30627
30657
|
"data-testid": A(o, a, "variant"),
|
|
30628
30658
|
children: /* @__PURE__ */ U(EH, { placeholder: "Select a variant…" })
|
|
30629
|
-
}), /* @__PURE__ */ U(OH, { children:
|
|
30659
|
+
}), /* @__PURE__ */ U(OH, { children: u.map((e, t) => /* @__PURE__ */ U(AH, {
|
|
30630
30660
|
value: String(t),
|
|
30631
30661
|
"data-testid": A(o, a, `variant-option-${t}`),
|
|
30632
30662
|
children: e.raw.title ?? `Variant ${t + 1}`
|
|
30633
30663
|
}, t)) })]
|
|
30634
30664
|
}),
|
|
30635
|
-
t === 0 &&
|
|
30636
|
-
|
|
30637
|
-
|
|
30638
|
-
|
|
30665
|
+
t === 0 && c.description && /* @__PURE__ */ U(C, { children: c.description }),
|
|
30666
|
+
c.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: c.gioConfig.banner }),
|
|
30667
|
+
T.raw.description && /* @__PURE__ */ U(C, { children: T.raw.description }),
|
|
30668
|
+
T.raw.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: T.raw.gioConfig.banner })
|
|
30639
30669
|
] }),
|
|
30640
|
-
|
|
30670
|
+
T.consts.map(({ key: e, value: t }) => /* @__PURE__ */ U(pX, {
|
|
30641
30671
|
path: a ? `${a}.${e}` : e,
|
|
30642
|
-
value: t
|
|
30672
|
+
value: t,
|
|
30673
|
+
fill: g,
|
|
30674
|
+
picked: m
|
|
30643
30675
|
}, e)),
|
|
30644
|
-
Array.from(
|
|
30676
|
+
Array.from(T.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ U(EX, {
|
|
30645
30677
|
node: n,
|
|
30646
30678
|
name: e,
|
|
30647
30679
|
depth: t + 1
|
|
30648
|
-
}, `${
|
|
30649
|
-
|
|
30650
|
-
branches:
|
|
30680
|
+
}, `${f}-${e}`)),
|
|
30681
|
+
S.length > 0 && /* @__PURE__ */ U(nX, {
|
|
30682
|
+
branches: S,
|
|
30651
30683
|
basePath: a
|
|
30652
30684
|
}),
|
|
30653
|
-
|
|
30685
|
+
S.map((e, n) => /* @__PURE__ */ U(LJ, {
|
|
30654
30686
|
condition: VJ(e.showIf, a),
|
|
30655
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(
|
|
30687
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(EX, {
|
|
30656
30688
|
node: n,
|
|
30657
30689
|
name: e,
|
|
30658
30690
|
depth: t + 1
|
|
30659
30691
|
}, e))
|
|
30660
|
-
}, `${
|
|
30692
|
+
}, `${f}-var-dep-${n}`))
|
|
30661
30693
|
] });
|
|
30662
30694
|
}
|
|
30663
|
-
|
|
30664
|
-
|
|
30665
|
-
|
|
30695
|
+
var dX = "__no-discriminator__";
|
|
30696
|
+
function fX(e, t) {
|
|
30697
|
+
return t ? e === t ? "" : e.startsWith(`${t}.`) ? e.slice(t.length + 1) : e : e;
|
|
30698
|
+
}
|
|
30699
|
+
function pX({ path: e, value: t, fill: n, picked: r }) {
|
|
30700
|
+
let { control: i } = b(), { field: a } = I({
|
|
30701
|
+
control: i,
|
|
30666
30702
|
name: e
|
|
30667
|
-
}), { onChange:
|
|
30703
|
+
}), { onChange: o, value: s } = a;
|
|
30668
30704
|
return Ue(() => {
|
|
30669
|
-
|
|
30670
|
-
}, [
|
|
30705
|
+
(r ? JSON.stringify(s) !== JSON.stringify(t) : n && s === void 0) && o(structuredClone(t));
|
|
30706
|
+
}, [
|
|
30707
|
+
n,
|
|
30708
|
+
r,
|
|
30709
|
+
s,
|
|
30710
|
+
o,
|
|
30711
|
+
t
|
|
30712
|
+
]), null;
|
|
30713
|
+
}
|
|
30714
|
+
function mX(e) {
|
|
30715
|
+
return e == null ? !0 : typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).every((e) => e === void 0);
|
|
30671
30716
|
}
|
|
30672
30717
|
//#endregion
|
|
30673
30718
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30674
|
-
function
|
|
30719
|
+
function hX({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
30675
30720
|
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c = nY(o) || rY(o), l = qe(() => e.dependencyBranches ?? [], [e.dependencyBranches]), u = l.length > 0, d = (e.properties || c || u) && /* @__PURE__ */ U(P.Provider, {
|
|
30676
30721
|
value: {
|
|
30677
30722
|
...a,
|
|
30678
30723
|
basePath: s
|
|
30679
30724
|
},
|
|
30680
30725
|
children: /* @__PURE__ */ W(L, { children: [
|
|
30681
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30726
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(EX, {
|
|
30682
30727
|
node: t,
|
|
30683
30728
|
name: e,
|
|
30684
30729
|
depth: r + 1
|
|
@@ -30689,7 +30734,7 @@ function fX({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
|
30689
30734
|
}),
|
|
30690
30735
|
l.map((e, t) => /* @__PURE__ */ U(LJ, {
|
|
30691
30736
|
condition: VJ(e.showIf, s),
|
|
30692
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30737
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(EX, {
|
|
30693
30738
|
node: t,
|
|
30694
30739
|
name: e,
|
|
30695
30740
|
depth: r + 1
|
|
@@ -30719,7 +30764,7 @@ function fX({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
|
30719
30764
|
}
|
|
30720
30765
|
//#endregion
|
|
30721
30766
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30722
|
-
function
|
|
30767
|
+
function gX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, "data-testid": o, ...s }) {
|
|
30723
30768
|
let [c, l] = Xe(!1);
|
|
30724
30769
|
return /* @__PURE__ */ W($A, {
|
|
30725
30770
|
className: e,
|
|
@@ -30747,15 +30792,15 @@ function pX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30747
30792
|
})]
|
|
30748
30793
|
});
|
|
30749
30794
|
}
|
|
30750
|
-
|
|
30795
|
+
gX.displayName = "PasswordInput";
|
|
30751
30796
|
//#endregion
|
|
30752
30797
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30753
|
-
var
|
|
30754
|
-
function
|
|
30798
|
+
var _X = "{#request.headers['x-custom'] == 'value'}";
|
|
30799
|
+
function vX({ node: n, name: r, hiddenTitle: i }) {
|
|
30755
30800
|
let { control: a, basePath: o, disabled: s, testIdPrefix: c } = b(), { schema: l } = n, u = r ? o ? `${o}.${r}` : r : o, { field: d, fieldState: f } = I({
|
|
30756
30801
|
control: a,
|
|
30757
30802
|
name: u
|
|
30758
|
-
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ?
|
|
30803
|
+
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ? _X : void 0), x = v ? "font-mono text-xs" : void 0, S = {
|
|
30759
30804
|
id: u,
|
|
30760
30805
|
value: g,
|
|
30761
30806
|
onChange: d.onChange,
|
|
@@ -30784,7 +30829,7 @@ function hX({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30784
30829
|
l.format === "text" ? /* @__PURE__ */ U(e, {
|
|
30785
30830
|
...S,
|
|
30786
30831
|
className: x
|
|
30787
|
-
}) : l.format === "password" ? /* @__PURE__ */ U(
|
|
30832
|
+
}) : l.format === "password" ? /* @__PURE__ */ U(gX, {
|
|
30788
30833
|
...S,
|
|
30789
30834
|
pattern: l.pattern
|
|
30790
30835
|
}) : /* @__PURE__ */ U(QA, {
|
|
@@ -30803,23 +30848,23 @@ function hX({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30803
30848
|
}
|
|
30804
30849
|
//#endregion
|
|
30805
30850
|
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
30806
|
-
function
|
|
30807
|
-
let { externalContext: n } = b(), r =
|
|
30808
|
-
return r === null ? /* @__PURE__ */ U(
|
|
30851
|
+
function yX({ node: e, name: t }) {
|
|
30852
|
+
let { externalContext: n } = b(), r = SX(n);
|
|
30853
|
+
return r === null ? /* @__PURE__ */ U(vX, {
|
|
30809
30854
|
node: e,
|
|
30810
30855
|
name: t
|
|
30811
|
-
}) : /* @__PURE__ */ U(
|
|
30856
|
+
}) : /* @__PURE__ */ U(bX, {
|
|
30812
30857
|
node: e,
|
|
30813
30858
|
name: t,
|
|
30814
30859
|
injected: r
|
|
30815
30860
|
});
|
|
30816
30861
|
}
|
|
30817
|
-
function
|
|
30862
|
+
function bX({ node: e, name: t, injected: n }) {
|
|
30818
30863
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30819
30864
|
control: r,
|
|
30820
30865
|
name: c,
|
|
30821
30866
|
defaultValue: s.default
|
|
30822
|
-
}), { ref: d, onBlur: f } = l, p =
|
|
30867
|
+
}), { ref: d, onBlur: f } = l, p = xX(s.gioConfig?.uiTypeProps?.resourceType), m = (e) => p.length === 0 || p.some((t) => e.startsWith(t)), h = n.filter((e) => m(e.type)).map((e) => e.name), g = typeof l.value == "string" ? l.value : "";
|
|
30823
30868
|
g !== "" && !h.includes(g) && h.unshift(g);
|
|
30824
30869
|
let v = T(s, t), y = a || s.readOnly === !0, x = h.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
30825
30870
|
return /* @__PURE__ */ W(k, {
|
|
@@ -30857,17 +30902,17 @@ function _X({ node: e, name: t, injected: n }) {
|
|
|
30857
30902
|
]
|
|
30858
30903
|
});
|
|
30859
30904
|
}
|
|
30860
|
-
function
|
|
30905
|
+
function xX(e) {
|
|
30861
30906
|
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
30862
30907
|
}
|
|
30863
|
-
function
|
|
30908
|
+
function SX(e) {
|
|
30864
30909
|
let t = e?.resources;
|
|
30865
30910
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
30866
30911
|
}
|
|
30867
30912
|
//#endregion
|
|
30868
30913
|
//#region src/composed/JsonSchemaForm/utils/fieldKind.ts
|
|
30869
|
-
function
|
|
30870
|
-
let t =
|
|
30914
|
+
function CX(e) {
|
|
30915
|
+
let t = wX(e.type);
|
|
30871
30916
|
if (e.const !== void 0 && e.type === void 0 && e.enum === void 0) return "const";
|
|
30872
30917
|
if (Array.isArray(e.enum) && e.enum.length > 0 || XJ(e)) return "enum";
|
|
30873
30918
|
if (ZJ(e)) return "multiSelect";
|
|
@@ -30881,19 +30926,19 @@ function bX(e) {
|
|
|
30881
30926
|
if (e.properties || t === "object" || nY(e) || rY(e)) return "object";
|
|
30882
30927
|
if (t === "array" && e.items && !Array.isArray(e.items)) return "array";
|
|
30883
30928
|
}
|
|
30884
|
-
function
|
|
30929
|
+
function wX(e) {
|
|
30885
30930
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30886
30931
|
}
|
|
30887
30932
|
//#endregion
|
|
30888
30933
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30889
|
-
var
|
|
30890
|
-
function
|
|
30934
|
+
var TX = ze(() => import("./CodeEditorField-DJcqc1vU.js").then((e) => ({ default: e.CodeEditorField })));
|
|
30935
|
+
function EX({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
30891
30936
|
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = qe(() => [s], [s]), l = qe(() => Object.prototype.hasOwnProperty.call(a, "default") ? {
|
|
30892
30937
|
path: s,
|
|
30893
30938
|
value: a.default
|
|
30894
30939
|
} : void 0, [a, s]), u = qe(() => e.displayIf ? VJ(e.displayIf, i) : void 0, [e.displayIf, i]), d = qe(() => e.disableIf ? VJ(e.disableIf, i) : void 0, [e.disableIf, i]);
|
|
30895
30940
|
if (a.deprecated === !0) return null;
|
|
30896
|
-
let f =
|
|
30941
|
+
let f = DX(e, o, t, n, r);
|
|
30897
30942
|
return f === null ? null : (d && (f = /* @__PURE__ */ U(zJ, {
|
|
30898
30943
|
condition: d,
|
|
30899
30944
|
children: f
|
|
@@ -30904,8 +30949,8 @@ function CX({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
|
30904
30949
|
children: f
|
|
30905
30950
|
}) : f);
|
|
30906
30951
|
}
|
|
30907
|
-
function
|
|
30908
|
-
let { schema: a } = e, o =
|
|
30952
|
+
function DX(e, t, n, r, i) {
|
|
30953
|
+
let { schema: a } = e, o = CX(a);
|
|
30909
30954
|
switch (o) {
|
|
30910
30955
|
case "const": return /* @__PURE__ */ U(GY, {
|
|
30911
30956
|
node: e,
|
|
@@ -30927,7 +30972,7 @@ function wX(e, t, n, r, i) {
|
|
|
30927
30972
|
});
|
|
30928
30973
|
case "codeEditor": return /* @__PURE__ */ U(Fe, {
|
|
30929
30974
|
fallback: null,
|
|
30930
|
-
children: /* @__PURE__ */ U(
|
|
30975
|
+
children: /* @__PURE__ */ U(TX, {
|
|
30931
30976
|
node: e,
|
|
30932
30977
|
name: t
|
|
30933
30978
|
})
|
|
@@ -30943,16 +30988,16 @@ function wX(e, t, n, r, i) {
|
|
|
30943
30988
|
name: t,
|
|
30944
30989
|
hiddenTitle: i
|
|
30945
30990
|
});
|
|
30946
|
-
case "resourceType": return /* @__PURE__ */ U(
|
|
30991
|
+
case "resourceType": return /* @__PURE__ */ U(yX, {
|
|
30947
30992
|
node: e,
|
|
30948
30993
|
name: t
|
|
30949
30994
|
});
|
|
30950
|
-
case "string": return /* @__PURE__ */ U(
|
|
30995
|
+
case "string": return /* @__PURE__ */ U(vX, {
|
|
30951
30996
|
node: e,
|
|
30952
30997
|
name: t,
|
|
30953
30998
|
hiddenTitle: i
|
|
30954
30999
|
});
|
|
30955
|
-
case "object": return /* @__PURE__ */ U(
|
|
31000
|
+
case "object": return /* @__PURE__ */ U(hX, {
|
|
30956
31001
|
node: e,
|
|
30957
31002
|
name: n,
|
|
30958
31003
|
depth: r,
|
|
@@ -30963,21 +31008,25 @@ function wX(e, t, n, r, i) {
|
|
|
30963
31008
|
name: n,
|
|
30964
31009
|
depth: r
|
|
30965
31010
|
});
|
|
30966
|
-
case void 0: return console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
31011
|
+
case void 0: return console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${OX(a)}). Field is omitted.`), null;
|
|
30967
31012
|
default: return o;
|
|
30968
31013
|
}
|
|
30969
31014
|
}
|
|
30970
|
-
function
|
|
31015
|
+
function OX(e) {
|
|
30971
31016
|
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : "unknown";
|
|
30972
31017
|
}
|
|
30973
31018
|
//#endregion
|
|
30974
31019
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30975
|
-
function
|
|
30976
|
-
let
|
|
31020
|
+
function kX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i, "data-testid": a, variantPicks: o, onVariantChange: s }) {
|
|
31021
|
+
let c = qe(() => {
|
|
30977
31022
|
try {
|
|
31023
|
+
let t = uY(e, n);
|
|
30978
31024
|
return {
|
|
30979
31025
|
ok: !0,
|
|
30980
|
-
value:
|
|
31026
|
+
value: o ? {
|
|
31027
|
+
...t,
|
|
31028
|
+
variantIndices: o
|
|
31029
|
+
} : t
|
|
30981
31030
|
};
|
|
30982
31031
|
} catch (e) {
|
|
30983
31032
|
return {
|
|
@@ -30985,64 +31034,72 @@ function EX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30985
31034
|
error: e instanceof Error ? e.message : "Unknown schema error"
|
|
30986
31035
|
};
|
|
30987
31036
|
}
|
|
30988
|
-
}, [
|
|
31037
|
+
}, [
|
|
31038
|
+
e,
|
|
31039
|
+
n,
|
|
31040
|
+
o
|
|
31041
|
+
]), l = qe(() => c.ok ? {
|
|
30989
31042
|
ok: !0,
|
|
30990
31043
|
contextValue: {
|
|
30991
31044
|
control: t,
|
|
30992
31045
|
basePath: n,
|
|
30993
31046
|
disabled: r,
|
|
30994
31047
|
externalContext: i,
|
|
30995
|
-
|
|
31048
|
+
name: n,
|
|
31049
|
+
onVariantChange: s,
|
|
31050
|
+
index: c.value,
|
|
30996
31051
|
testIdPrefix: a
|
|
30997
31052
|
}
|
|
30998
31053
|
} : {
|
|
30999
31054
|
ok: !1,
|
|
31000
|
-
error:
|
|
31055
|
+
error: c.error
|
|
31001
31056
|
}, [
|
|
31002
|
-
|
|
31057
|
+
c,
|
|
31003
31058
|
t,
|
|
31004
31059
|
n,
|
|
31005
31060
|
r,
|
|
31006
31061
|
i,
|
|
31007
|
-
a
|
|
31062
|
+
a,
|
|
31063
|
+
s
|
|
31008
31064
|
]);
|
|
31009
|
-
return
|
|
31010
|
-
value:
|
|
31011
|
-
children: /* @__PURE__ */ U(
|
|
31065
|
+
return l.ok ? /* @__PURE__ */ U(P.Provider, {
|
|
31066
|
+
value: l.contextValue,
|
|
31067
|
+
children: /* @__PURE__ */ U(EX, { node: l.contextValue.index.root })
|
|
31012
31068
|
}) : /* @__PURE__ */ W("p", {
|
|
31013
31069
|
role: "alert",
|
|
31014
31070
|
className: "text-sm text-destructive",
|
|
31015
31071
|
"data-testid": A(a, "schema-error"),
|
|
31016
|
-
children: ["Schema error: ",
|
|
31072
|
+
children: ["Schema error: ", l.error]
|
|
31017
31073
|
});
|
|
31018
31074
|
}
|
|
31019
31075
|
//#endregion
|
|
31020
31076
|
//#region src/composed/JsonSchemaForm/schema/visibleFields.ts
|
|
31021
|
-
var
|
|
31022
|
-
function
|
|
31023
|
-
let i = [...e.properties ?? []], a = [...e.dependencyBranches ?? []], o =
|
|
31077
|
+
var AX = [];
|
|
31078
|
+
function jX(e, t, n, r) {
|
|
31079
|
+
let i = [...e.properties ?? []], a = [...e.dependencyBranches ?? []], o = MX(e, t, n, r), s = o === void 0 ? void 0 : e.variants?.[o];
|
|
31024
31080
|
s && (i.push(...s.properties), a.push(...s.dependencyBranches ?? []));
|
|
31025
31081
|
let c = [];
|
|
31026
|
-
for (let e of a)
|
|
31082
|
+
for (let e of a) PX(e.showIf, n, r) ? i.push(...e.properties) : c.push(...e.properties.keys());
|
|
31027
31083
|
let l = new Set(i.map(([e]) => e)), u = new Set(c.filter((e) => !l.has(e))), d = i.map(([e, t]) => ({
|
|
31028
31084
|
key: e,
|
|
31029
31085
|
node: t,
|
|
31030
|
-
path:
|
|
31031
|
-
}));
|
|
31032
|
-
for (let e of d) e.node.displayIf && !
|
|
31086
|
+
path: IX(n, e)
|
|
31087
|
+
})), f = /* @__PURE__ */ new Set();
|
|
31088
|
+
for (let e of d) e.node.displayIf && !PX(e.node.displayIf, e.path, r) && (u.add(e.key), f.add(e.key));
|
|
31033
31089
|
return {
|
|
31034
31090
|
visible: d.filter((e) => !u.has(e.key)),
|
|
31035
31091
|
hiddenKeys: [...u],
|
|
31036
|
-
|
|
31092
|
+
hiddenByDisplayIf: [...f],
|
|
31093
|
+
inactiveVariantKeys: NX(e, o, new Set([...l, ...c])),
|
|
31037
31094
|
consts: s?.consts ?? [],
|
|
31038
31095
|
activeVariantIndex: s ? o : void 0
|
|
31039
31096
|
};
|
|
31040
31097
|
}
|
|
31041
|
-
function
|
|
31098
|
+
function MX(e, t, n, r) {
|
|
31042
31099
|
if (!(!e.variants || e.variants.length === 0)) return rX(e.variants.map((e) => e.raw), n, r.variantPicks, (e) => t[e]);
|
|
31043
31100
|
}
|
|
31044
|
-
function
|
|
31045
|
-
if (!e.variants || e.variants.length < 2) return
|
|
31101
|
+
function NX(e, t, n) {
|
|
31102
|
+
if (!e.variants || e.variants.length < 2) return AX;
|
|
31046
31103
|
let r = /* @__PURE__ */ new Set();
|
|
31047
31104
|
return e.variants.forEach((e, i) => {
|
|
31048
31105
|
if (i === t) return;
|
|
@@ -31050,11 +31107,11 @@ function AX(e, t, n) {
|
|
|
31050
31107
|
for (let e of a) n.has(e) || r.add(e);
|
|
31051
31108
|
}), [...r];
|
|
31052
31109
|
}
|
|
31053
|
-
function
|
|
31110
|
+
function PX(e, t, n) {
|
|
31054
31111
|
let r = VJ(e, t);
|
|
31055
31112
|
return FJ(r, new Map([...r.$eq.keys()].map((e) => [e, PJ(n.root, e)])), n.context);
|
|
31056
31113
|
}
|
|
31057
|
-
function
|
|
31114
|
+
function FX(e, t) {
|
|
31058
31115
|
let n = e.variants ?? [], r = [...e.dependencyBranches ?? [], ...n.flatMap((e) => e.dependencyBranches ?? [])];
|
|
31059
31116
|
return [
|
|
31060
31117
|
e.properties?.get(t),
|
|
@@ -31062,86 +31119,86 @@ function MX(e, t) {
|
|
|
31062
31119
|
...r.map((e) => e.properties.get(t))
|
|
31063
31120
|
].some((e) => e?.schema.deprecated === !0);
|
|
31064
31121
|
}
|
|
31065
|
-
function
|
|
31122
|
+
function IX(e, t) {
|
|
31066
31123
|
return e ? `${e}.${t}` : t;
|
|
31067
31124
|
}
|
|
31068
31125
|
//#endregion
|
|
31069
31126
|
//#region src/composed/JsonSchemaForm/form-bindings/indexSchemaRoot.ts
|
|
31070
|
-
var
|
|
31071
|
-
function
|
|
31072
|
-
let t =
|
|
31127
|
+
var LX = /* @__PURE__ */ new WeakMap();
|
|
31128
|
+
function RX(e) {
|
|
31129
|
+
let t = LX.get(e);
|
|
31073
31130
|
if (t === void 0) {
|
|
31074
31131
|
try {
|
|
31075
31132
|
t = uY(e).root;
|
|
31076
31133
|
} catch {
|
|
31077
31134
|
t = null;
|
|
31078
31135
|
}
|
|
31079
|
-
|
|
31136
|
+
LX.set(e, t);
|
|
31080
31137
|
}
|
|
31081
31138
|
return t;
|
|
31082
31139
|
}
|
|
31083
31140
|
//#endregion
|
|
31084
31141
|
//#region src/composed/JsonSchemaForm/form-bindings/applyVisibleDefaults.ts
|
|
31085
|
-
var
|
|
31086
|
-
function
|
|
31087
|
-
let r =
|
|
31142
|
+
var zX = 20, BX = /* @__PURE__ */ new WeakMap(), VX = /* @__PURE__ */ new WeakSet();
|
|
31143
|
+
function HX(e, t, n) {
|
|
31144
|
+
let r = RX(e);
|
|
31088
31145
|
if (!r) return t ?? {};
|
|
31089
31146
|
let i = structuredClone(t ?? {}), a = t ?? {}, o = {
|
|
31090
31147
|
root: i,
|
|
31091
31148
|
context: n
|
|
31092
31149
|
};
|
|
31093
|
-
for (let e = 0; e <
|
|
31150
|
+
for (let e = 0; e < zX; e++) if (!WX(r, i, "", o, "fill", a) && !WX(r, i, "", {
|
|
31094
31151
|
root: structuredClone(i),
|
|
31095
31152
|
context: n
|
|
31096
31153
|
}, "remove", a)) return i;
|
|
31097
|
-
return
|
|
31154
|
+
return VX.has(e) || (VX.add(e), console.warn(`[JsonSchemaForm] applyVisibleDefaults did not settle after ${zX} passes: conditions of this schema feed each other in a loop. Returning the last result.`)), i;
|
|
31098
31155
|
}
|
|
31099
|
-
function
|
|
31156
|
+
function UX(e, t, n, r, i, a) {
|
|
31100
31157
|
if (Array.isArray(t)) {
|
|
31101
31158
|
let { items: o } = e;
|
|
31102
31159
|
if (!o) return !1;
|
|
31103
31160
|
let s = !1;
|
|
31104
31161
|
return t.forEach((e, c) => {
|
|
31105
|
-
let l =
|
|
31106
|
-
if (i === "fill" && e === null &&
|
|
31107
|
-
|
|
31162
|
+
let l = aZ(n, String(c));
|
|
31163
|
+
if (i === "fill" && e === null && CX(o.schema) === "object") {
|
|
31164
|
+
qX(o, l, r, null, (e) => {
|
|
31108
31165
|
t[c] = e;
|
|
31109
31166
|
}) && (s = !0);
|
|
31110
31167
|
return;
|
|
31111
31168
|
}
|
|
31112
|
-
|
|
31169
|
+
UX(o, e, l, r, i, eZ(a, c)) && (s = !0);
|
|
31113
31170
|
}), s;
|
|
31114
31171
|
}
|
|
31115
|
-
return typeof t != "object" || !t ? !1 :
|
|
31172
|
+
return typeof t != "object" || !t ? !1 : WX(e, t, n, r, i, a);
|
|
31116
31173
|
}
|
|
31117
|
-
function
|
|
31118
|
-
let o =
|
|
31119
|
-
for (let n of s ? o.hiddenKeys : []) !(n in t) ||
|
|
31120
|
-
let l =
|
|
31121
|
-
for (let n of s && d ? o.inactiveVariantKeys : []) !(n in t) || u.includes(n) ||
|
|
31122
|
-
let p =
|
|
31174
|
+
function WX(e, t, n, r, i, a) {
|
|
31175
|
+
let o = jX(e, t, n, r), s = i === "remove", c = !1;
|
|
31176
|
+
for (let n of s ? o.hiddenKeys : []) !(n in t) || FX(e, n) || (delete t[n], c = !0);
|
|
31177
|
+
let l = ZX(e, o.activeVariantIndex), u = l?.raw.required ?? [], d = l !== void 0 && tZ(e, l, a), f = l !== void 0 && !d ? $X(e) : QX;
|
|
31178
|
+
for (let n of s && d ? o.inactiveVariantKeys : []) !(n in t) || u.includes(n) || FX(e, n) || (delete t[n], c = !0);
|
|
31179
|
+
let p = nZ(e, d ? o.activeVariantIndex : void 0), m = s && p ? rZ(e) : null;
|
|
31123
31180
|
for (let e of m ? Object.keys(t) : []) m?.keys.has(e) || m?.patterns.some((t) => t.test(e)) || (delete t[e], c = !0);
|
|
31124
31181
|
for (let { key: e, value: n } of s || !d ? [] : o.consts) t[e] === void 0 && (t[e] = n, c = !0);
|
|
31125
31182
|
let h = /* @__PURE__ */ new Set();
|
|
31126
31183
|
for (let e of o.visible) {
|
|
31127
31184
|
if (h.has(e.key) || (h.add(e.key), e.node.schema.deprecated === !0)) continue;
|
|
31128
31185
|
if (!s && t[e.key] === void 0 && !f.has(e.key)) {
|
|
31129
|
-
let n =
|
|
31186
|
+
let n = CX(e.node.schema), i = XX(e.node.schema), a = i === void 0 ? GX(n, e.node.schema) : i;
|
|
31130
31187
|
if (a !== void 0) t[e.key] = a, c = !0;
|
|
31131
31188
|
else if (n === "object") {
|
|
31132
|
-
|
|
31189
|
+
qX(e.node, e.path, r, void 0, JX(t, e.key)) && (c = !0);
|
|
31133
31190
|
continue;
|
|
31134
31191
|
}
|
|
31135
|
-
} else if (!s && t[e.key] === null &&
|
|
31136
|
-
|
|
31192
|
+
} else if (!s && t[e.key] === null && CX(e.node.schema) === "object") {
|
|
31193
|
+
qX(e.node, e.path, r, null, JX(t, e.key)) && (c = !0);
|
|
31137
31194
|
continue;
|
|
31138
|
-
} else !s && t[e.key] === null &&
|
|
31139
|
-
let n =
|
|
31140
|
-
|
|
31195
|
+
} else !s && t[e.key] === null && KX(CX(e.node.schema)) && (t[e.key] = [], c = !0);
|
|
31196
|
+
let n = eZ(a, e.key);
|
|
31197
|
+
UX(e.node, t[e.key], e.path, r, i, n) && (c = !0);
|
|
31141
31198
|
}
|
|
31142
31199
|
return c;
|
|
31143
31200
|
}
|
|
31144
|
-
function
|
|
31201
|
+
function GX(e, t) {
|
|
31145
31202
|
switch (e) {
|
|
31146
31203
|
case "const": return structuredClone(t.const);
|
|
31147
31204
|
case "boolean": return !1;
|
|
@@ -31151,39 +31208,39 @@ function HX(e, t) {
|
|
|
31151
31208
|
default: return;
|
|
31152
31209
|
}
|
|
31153
31210
|
}
|
|
31154
|
-
function
|
|
31211
|
+
function KX(e) {
|
|
31155
31212
|
return e === "array" || e === "headersArray";
|
|
31156
31213
|
}
|
|
31157
|
-
function
|
|
31214
|
+
function qX(e, t, n, r, i) {
|
|
31158
31215
|
let a = {};
|
|
31159
|
-
return i(a),
|
|
31216
|
+
return i(a), WX(e, a, t, n, "fill", void 0), Object.keys(a).length > 0 || YX(e, a, t, n) ? !0 : (i(r), !1);
|
|
31160
31217
|
}
|
|
31161
|
-
function
|
|
31218
|
+
function JX(e, t) {
|
|
31162
31219
|
return (n) => {
|
|
31163
31220
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
31164
31221
|
};
|
|
31165
31222
|
}
|
|
31166
|
-
function
|
|
31167
|
-
return
|
|
31223
|
+
function YX(e, t, n, r) {
|
|
31224
|
+
return jX(e, t, n, r).visible.some((e) => {
|
|
31168
31225
|
if (e.node.schema.deprecated === !0) return !1;
|
|
31169
|
-
let t =
|
|
31226
|
+
let t = CX(e.node.schema);
|
|
31170
31227
|
return t !== void 0 && t !== "null" && t !== "object";
|
|
31171
31228
|
});
|
|
31172
31229
|
}
|
|
31173
|
-
function
|
|
31230
|
+
function XX(e) {
|
|
31174
31231
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return structuredClone(e.default);
|
|
31175
31232
|
}
|
|
31176
|
-
function
|
|
31233
|
+
function ZX(e, t) {
|
|
31177
31234
|
return t === void 0 ? void 0 : e.variants?.[t];
|
|
31178
31235
|
}
|
|
31179
|
-
var
|
|
31180
|
-
function
|
|
31236
|
+
var QX = /* @__PURE__ */ new Set();
|
|
31237
|
+
function $X(e) {
|
|
31181
31238
|
return new Set((e.variants ?? []).flatMap((e) => e.consts.map(({ key: e }) => e)));
|
|
31182
31239
|
}
|
|
31183
|
-
function
|
|
31240
|
+
function eZ(e, t) {
|
|
31184
31241
|
if (!(typeof e != "object" || !e)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
31185
31242
|
}
|
|
31186
|
-
function
|
|
31243
|
+
function tZ(e, t, n) {
|
|
31187
31244
|
if (typeof n != "object" || !n || Object.keys(n).length === 0) return !0;
|
|
31188
31245
|
let r = n, i = (e) => {
|
|
31189
31246
|
let t = e.consts.filter(({ key: e }) => r[e] !== void 0);
|
|
@@ -31191,21 +31248,21 @@ function QX(e, t, n) {
|
|
|
31191
31248
|
};
|
|
31192
31249
|
return i(t) && (e.variants ?? []).every((e) => e === t || !i(e));
|
|
31193
31250
|
}
|
|
31194
|
-
function
|
|
31251
|
+
function nZ(e, t) {
|
|
31195
31252
|
return e.schema.additionalProperties === !1 ? !0 : (t === void 0 ? void 0 : e.variants?.[t])?.raw.additionalProperties === !1;
|
|
31196
31253
|
}
|
|
31197
|
-
function
|
|
31198
|
-
let t =
|
|
31254
|
+
function rZ(e) {
|
|
31255
|
+
let t = BX.get(e);
|
|
31199
31256
|
if (t === void 0) {
|
|
31200
31257
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
31201
|
-
t =
|
|
31258
|
+
t = iZ(e.schema, n, r) ? {
|
|
31202
31259
|
keys: n,
|
|
31203
31260
|
patterns: r
|
|
31204
|
-
} : null,
|
|
31261
|
+
} : null, BX.set(e, t);
|
|
31205
31262
|
}
|
|
31206
31263
|
return t;
|
|
31207
31264
|
}
|
|
31208
|
-
function
|
|
31265
|
+
function iZ(e, t, n) {
|
|
31209
31266
|
if (e.$ref !== void 0 || e.allOf || e.if !== void 0 || e.then !== void 0 || e.else !== void 0) return !1;
|
|
31210
31267
|
for (let n of Object.keys(e.properties ?? {})) t.add(n);
|
|
31211
31268
|
for (let t of Object.keys(e.patternProperties ?? {})) try {
|
|
@@ -31215,14 +31272,14 @@ function tZ(e, t, n) {
|
|
|
31215
31272
|
}
|
|
31216
31273
|
let r = [...e.oneOf ?? [], ...e.anyOf ?? []];
|
|
31217
31274
|
for (let [n, i] of Object.entries(e.dependencies ?? {})) t.add(n), Array.isArray(i) ? i.forEach((e) => t.add(e)) : typeof i == "object" && r.push(i);
|
|
31218
|
-
return r.every((e) =>
|
|
31275
|
+
return r.every((e) => iZ(e, t, n));
|
|
31219
31276
|
}
|
|
31220
|
-
function
|
|
31277
|
+
function aZ(e, t) {
|
|
31221
31278
|
return e ? `${e}.${t}` : t;
|
|
31222
31279
|
}
|
|
31223
31280
|
//#endregion
|
|
31224
31281
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
31225
|
-
function
|
|
31282
|
+
function oZ(...e) {
|
|
31226
31283
|
return async (t, n, r) => {
|
|
31227
31284
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
31228
31285
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -31237,7 +31294,7 @@ function rZ(...e) {
|
|
|
31237
31294
|
}
|
|
31238
31295
|
//#endregion
|
|
31239
31296
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
31240
|
-
var
|
|
31297
|
+
var sZ = /* @__PURE__ */ G(((e) => {
|
|
31241
31298
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
31242
31299
|
var t = class {};
|
|
31243
31300
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -31342,9 +31399,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
31342
31399
|
return new r(e.toString());
|
|
31343
31400
|
}
|
|
31344
31401
|
e.regexpCode = g;
|
|
31345
|
-
})),
|
|
31402
|
+
})), cZ = /* @__PURE__ */ G(((e) => {
|
|
31346
31403
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
31347
|
-
var t =
|
|
31404
|
+
var t = sZ(), n = class extends Error {
|
|
31348
31405
|
constructor(e) {
|
|
31349
31406
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
31350
31407
|
}
|
|
@@ -31453,9 +31510,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
31453
31510
|
return c;
|
|
31454
31511
|
}
|
|
31455
31512
|
};
|
|
31456
|
-
})),
|
|
31513
|
+
})), lZ = /* @__PURE__ */ G(((e) => {
|
|
31457
31514
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
31458
|
-
var t =
|
|
31515
|
+
var t = sZ(), n = cZ(), r = sZ();
|
|
31459
31516
|
Object.defineProperty(e, "_", {
|
|
31460
31517
|
enumerable: !0,
|
|
31461
31518
|
get: function() {
|
|
@@ -31497,7 +31554,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
31497
31554
|
return r.Name;
|
|
31498
31555
|
}
|
|
31499
31556
|
});
|
|
31500
|
-
var i =
|
|
31557
|
+
var i = cZ();
|
|
31501
31558
|
Object.defineProperty(e, "Scope", {
|
|
31502
31559
|
enumerable: !0,
|
|
31503
31560
|
get: function() {
|
|
@@ -31968,9 +32025,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
31968
32025
|
function L(e) {
|
|
31969
32026
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31970
32027
|
}
|
|
31971
|
-
})),
|
|
32028
|
+
})), uZ = /* @__PURE__ */ G(((e) => {
|
|
31972
32029
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
31973
|
-
var t =
|
|
32030
|
+
var t = lZ(), n = sZ();
|
|
31974
32031
|
function r(e) {
|
|
31975
32032
|
let t = {};
|
|
31976
32033
|
for (let n of e) t[n] = !0;
|
|
@@ -32093,9 +32150,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32093
32150
|
}
|
|
32094
32151
|
}
|
|
32095
32152
|
e.checkStrictMode = x;
|
|
32096
|
-
})),
|
|
32153
|
+
})), dZ = /* @__PURE__ */ G(((e) => {
|
|
32097
32154
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32098
|
-
var t =
|
|
32155
|
+
var t = lZ();
|
|
32099
32156
|
e.default = {
|
|
32100
32157
|
data: new t.Name("data"),
|
|
32101
32158
|
valCxt: new t.Name("valCxt"),
|
|
@@ -32114,9 +32171,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32114
32171
|
jsonLen: new t.Name("jsonLen"),
|
|
32115
32172
|
jsonPart: new t.Name("jsonPart")
|
|
32116
32173
|
};
|
|
32117
|
-
})),
|
|
32174
|
+
})), fZ = /* @__PURE__ */ G(((e) => {
|
|
32118
32175
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
32119
|
-
var t =
|
|
32176
|
+
var t = lZ(), n = uZ(), r = dZ();
|
|
32120
32177
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
32121
32178
|
function i(n, r = e.keywordError, i, a) {
|
|
32122
32179
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -32178,9 +32235,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32178
32235
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
32179
32236
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
32180
32237
|
}
|
|
32181
|
-
})),
|
|
32238
|
+
})), pZ = /* @__PURE__ */ G(((e) => {
|
|
32182
32239
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
32183
|
-
var t =
|
|
32240
|
+
var t = fZ(), n = lZ(), r = dZ(), i = { message: "boolean schema is false" };
|
|
32184
32241
|
function a(e) {
|
|
32185
32242
|
let { gen: t, schema: i, validateName: a } = e;
|
|
32186
32243
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -32204,7 +32261,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32204
32261
|
};
|
|
32205
32262
|
(0, t.reportError)(o, i, void 0, n);
|
|
32206
32263
|
}
|
|
32207
|
-
})),
|
|
32264
|
+
})), mZ = /* @__PURE__ */ G(((e) => {
|
|
32208
32265
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
32209
32266
|
var t = new Set([
|
|
32210
32267
|
"string",
|
|
@@ -32258,7 +32315,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32258
32315
|
};
|
|
32259
32316
|
}
|
|
32260
32317
|
e.getRules = r;
|
|
32261
|
-
})),
|
|
32318
|
+
})), hZ = /* @__PURE__ */ G(((e) => {
|
|
32262
32319
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
32263
32320
|
function t({ schema: e, self: t }, r) {
|
|
32264
32321
|
let i = t.RULES.types[r];
|
|
@@ -32273,9 +32330,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32273
32330
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
32274
32331
|
}
|
|
32275
32332
|
e.shouldUseRule = r;
|
|
32276
|
-
})),
|
|
32333
|
+
})), gZ = /* @__PURE__ */ G(((e) => {
|
|
32277
32334
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
32278
|
-
var t =
|
|
32335
|
+
var t = mZ(), n = hZ(), r = fZ(), i = lZ(), a = uZ(), o;
|
|
32279
32336
|
(function(e) {
|
|
32280
32337
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
32281
32338
|
})(o || (e.DataType = o = {}));
|
|
@@ -32410,9 +32467,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32410
32467
|
it: e
|
|
32411
32468
|
};
|
|
32412
32469
|
}
|
|
32413
|
-
})),
|
|
32470
|
+
})), _Z = /* @__PURE__ */ G(((e) => {
|
|
32414
32471
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
32415
|
-
var t =
|
|
32472
|
+
var t = lZ(), n = uZ();
|
|
32416
32473
|
function r(e, t) {
|
|
32417
32474
|
let { properties: n, items: r } = e.schema;
|
|
32418
32475
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -32430,9 +32487,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32430
32487
|
let u = (0, t._)`${l} === undefined`;
|
|
32431
32488
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
32432
32489
|
}
|
|
32433
|
-
})),
|
|
32490
|
+
})), vZ = /* @__PURE__ */ G(((e) => {
|
|
32434
32491
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
32435
|
-
var t =
|
|
32492
|
+
var t = lZ(), n = uZ(), r = dZ(), i = uZ();
|
|
32436
32493
|
function a(e, n) {
|
|
32437
32494
|
let { gen: r, data: i, it: a } = e;
|
|
32438
32495
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32534,9 +32591,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32534
32591
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32535
32592
|
}
|
|
32536
32593
|
e.validateUnion = v;
|
|
32537
|
-
})),
|
|
32594
|
+
})), yZ = /* @__PURE__ */ G(((e) => {
|
|
32538
32595
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32539
|
-
var t =
|
|
32596
|
+
var t = lZ(), n = dZ(), r = vZ(), i = fZ();
|
|
32540
32597
|
function a(e, n) {
|
|
32541
32598
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
32542
32599
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32615,9 +32672,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32615
32672
|
}
|
|
32616
32673
|
}
|
|
32617
32674
|
e.validateKeywordUsage = f;
|
|
32618
|
-
})),
|
|
32675
|
+
})), bZ = /* @__PURE__ */ G(((e) => {
|
|
32619
32676
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32620
|
-
var t =
|
|
32677
|
+
var t = lZ(), n = uZ();
|
|
32621
32678
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32622
32679
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32623
32680
|
if (r !== void 0) {
|
|
@@ -32661,7 +32718,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32661
32718
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32662
32719
|
}
|
|
32663
32720
|
e.extendSubschemaMode = a;
|
|
32664
|
-
})),
|
|
32721
|
+
})), xZ = /* @__PURE__ */ G(((e, t) => {
|
|
32665
32722
|
t.exports = function e(t, n) {
|
|
32666
32723
|
if (t === n) return !0;
|
|
32667
32724
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32685,7 +32742,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32685
32742
|
}
|
|
32686
32743
|
return t !== t && n !== n;
|
|
32687
32744
|
};
|
|
32688
|
-
})),
|
|
32745
|
+
})), SZ = /* @__PURE__ */ G(((e, t) => {
|
|
32689
32746
|
var n = t.exports = function(e, t, n) {
|
|
32690
32747
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32691
32748
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32748,9 +32805,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32748
32805
|
function i(e) {
|
|
32749
32806
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32750
32807
|
}
|
|
32751
|
-
})),
|
|
32808
|
+
})), CZ = /* @__PURE__ */ G(((e) => {
|
|
32752
32809
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32753
|
-
var t =
|
|
32810
|
+
var t = uZ(), n = xZ(), r = SZ(), i = new Set([
|
|
32754
32811
|
"type",
|
|
32755
32812
|
"format",
|
|
32756
32813
|
"pattern",
|
|
@@ -32839,9 +32896,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
32839
32896
|
}
|
|
32840
32897
|
}
|
|
32841
32898
|
e.getSchemaRefs = h;
|
|
32842
|
-
})),
|
|
32899
|
+
})), wZ = /* @__PURE__ */ G(((e) => {
|
|
32843
32900
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32844
|
-
var t =
|
|
32901
|
+
var t = pZ(), n = gZ(), r = hZ(), i = gZ(), a = _Z(), o = yZ(), s = bZ(), c = lZ(), l = dZ(), u = CZ(), d = uZ(), f = fZ();
|
|
32845
32902
|
function p(e) {
|
|
32846
32903
|
if (S(e) && (w(e), x(e))) {
|
|
32847
32904
|
_(e);
|
|
@@ -33131,23 +33188,23 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33131
33188
|
}
|
|
33132
33189
|
}
|
|
33133
33190
|
e.getData = se;
|
|
33134
|
-
})),
|
|
33191
|
+
})), TZ = /* @__PURE__ */ G(((e) => {
|
|
33135
33192
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
33136
33193
|
constructor(e) {
|
|
33137
33194
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
33138
33195
|
}
|
|
33139
33196
|
};
|
|
33140
|
-
})),
|
|
33197
|
+
})), EZ = /* @__PURE__ */ G(((e) => {
|
|
33141
33198
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33142
|
-
var t =
|
|
33199
|
+
var t = CZ();
|
|
33143
33200
|
e.default = class extends Error {
|
|
33144
33201
|
constructor(e, n, r, i) {
|
|
33145
33202
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
33146
33203
|
}
|
|
33147
33204
|
};
|
|
33148
|
-
})),
|
|
33205
|
+
})), DZ = /* @__PURE__ */ G(((e) => {
|
|
33149
33206
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
33150
|
-
var t =
|
|
33207
|
+
var t = lZ(), n = TZ(), r = dZ(), i = CZ(), a = uZ(), o = wZ(), s = class {
|
|
33151
33208
|
constructor(e) {
|
|
33152
33209
|
this.refs = {}, this.dynamicAnchors = {};
|
|
33153
33210
|
let t;
|
|
@@ -33306,27 +33363,27 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33306
33363
|
baseId: t
|
|
33307
33364
|
}), o.schema !== o.root.schema) return o;
|
|
33308
33365
|
}
|
|
33309
|
-
})),
|
|
33310
|
-
$id: () =>
|
|
33366
|
+
})), OZ = /* @__PURE__ */ mt({
|
|
33367
|
+
$id: () => kZ,
|
|
33311
33368
|
additionalProperties: () => !1,
|
|
33312
|
-
default: () =>
|
|
33313
|
-
description: () =>
|
|
33314
|
-
properties: () =>
|
|
33315
|
-
required: () =>
|
|
33316
|
-
type: () =>
|
|
33317
|
-
}),
|
|
33318
|
-
|
|
33369
|
+
default: () => PZ,
|
|
33370
|
+
description: () => AZ,
|
|
33371
|
+
properties: () => NZ,
|
|
33372
|
+
required: () => MZ,
|
|
33373
|
+
type: () => jZ
|
|
33374
|
+
}), kZ, AZ, jZ, MZ, NZ, PZ, FZ = pt((() => {
|
|
33375
|
+
kZ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", AZ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", jZ = "object", MZ = ["$data"], NZ = { $data: {
|
|
33319
33376
|
type: "string",
|
|
33320
33377
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
33321
|
-
} },
|
|
33322
|
-
$id:
|
|
33323
|
-
description:
|
|
33324
|
-
type:
|
|
33325
|
-
required:
|
|
33326
|
-
properties:
|
|
33378
|
+
} }, PZ = {
|
|
33379
|
+
$id: kZ,
|
|
33380
|
+
description: AZ,
|
|
33381
|
+
type: jZ,
|
|
33382
|
+
required: MZ,
|
|
33383
|
+
properties: NZ,
|
|
33327
33384
|
additionalProperties: !1
|
|
33328
33385
|
};
|
|
33329
|
-
})),
|
|
33386
|
+
})), IZ = /* @__PURE__ */ G(((e, t) => {
|
|
33330
33387
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^\d*$/u), a = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), l = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), u = Array(256);
|
|
33331
33388
|
{
|
|
33332
33389
|
let e = "0123456789ABCDEF";
|
|
@@ -33675,8 +33732,8 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33675
33732
|
normalizeIPv6: b,
|
|
33676
33733
|
stringArrayToHexStripped: f
|
|
33677
33734
|
};
|
|
33678
|
-
})),
|
|
33679
|
-
var { isUUID: n } =
|
|
33735
|
+
})), LZ = /* @__PURE__ */ G(((e, t) => {
|
|
33736
|
+
var { isUUID: n } = IZ(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
33680
33737
|
"http",
|
|
33681
33738
|
"https",
|
|
33682
33739
|
"ws",
|
|
@@ -33781,8 +33838,8 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33781
33838
|
isValidSchemeName: a,
|
|
33782
33839
|
getSchemeHandler: y
|
|
33783
33840
|
};
|
|
33784
|
-
})),
|
|
33785
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
33841
|
+
})), RZ = /* @__PURE__ */ G(((e, t) => {
|
|
33842
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = IZ(), { SCHEMES: m, getSchemeHandler: h } = LZ(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
33786
33843
|
function v(e) {
|
|
33787
33844
|
let t = unescape(String(e));
|
|
33788
33845
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -33951,20 +34008,20 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33951
34008
|
parse: N
|
|
33952
34009
|
};
|
|
33953
34010
|
t.exports = L, t.exports.default = L, t.exports.fastUri = L;
|
|
33954
|
-
})),
|
|
34011
|
+
})), zZ = /* @__PURE__ */ G(((e) => {
|
|
33955
34012
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33956
|
-
var t =
|
|
34013
|
+
var t = RZ();
|
|
33957
34014
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33958
|
-
})),
|
|
34015
|
+
})), BZ = /* @__PURE__ */ G(((e) => {
|
|
33959
34016
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33960
|
-
var t =
|
|
34017
|
+
var t = wZ();
|
|
33961
34018
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33962
34019
|
enumerable: !0,
|
|
33963
34020
|
get: function() {
|
|
33964
34021
|
return t.KeywordCxt;
|
|
33965
34022
|
}
|
|
33966
34023
|
});
|
|
33967
|
-
var n =
|
|
34024
|
+
var n = lZ();
|
|
33968
34025
|
Object.defineProperty(e, "_", {
|
|
33969
34026
|
enumerable: !0,
|
|
33970
34027
|
get: function() {
|
|
@@ -33996,7 +34053,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
33996
34053
|
return n.CodeGen;
|
|
33997
34054
|
}
|
|
33998
34055
|
});
|
|
33999
|
-
var r =
|
|
34056
|
+
var r = TZ(), i = EZ(), a = mZ(), o = DZ(), s = lZ(), c = CZ(), l = gZ(), u = uZ(), d = (FZ(), _t(OZ).default), f = zZ(), p = (e, t) => new RegExp(e, t);
|
|
34000
34057
|
p.code = "new RegExp";
|
|
34001
34058
|
var m = [
|
|
34002
34059
|
"removeAdditional",
|
|
@@ -34382,16 +34439,16 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34382
34439
|
function F(e) {
|
|
34383
34440
|
return { anyOf: [e, P] };
|
|
34384
34441
|
}
|
|
34385
|
-
})),
|
|
34442
|
+
})), VZ = /* @__PURE__ */ G(((e) => {
|
|
34386
34443
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34387
34444
|
keyword: "id",
|
|
34388
34445
|
code() {
|
|
34389
34446
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
34390
34447
|
}
|
|
34391
34448
|
};
|
|
34392
|
-
})),
|
|
34449
|
+
})), HZ = /* @__PURE__ */ G(((e) => {
|
|
34393
34450
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
34394
|
-
var t =
|
|
34451
|
+
var t = EZ(), n = vZ(), r = lZ(), i = dZ(), a = DZ(), o = uZ(), s = {
|
|
34395
34452
|
keyword: "$ref",
|
|
34396
34453
|
schemaType: "string",
|
|
34397
34454
|
code(e) {
|
|
@@ -34464,9 +34521,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34464
34521
|
}
|
|
34465
34522
|
}
|
|
34466
34523
|
e.callRef = l, e.default = s;
|
|
34467
|
-
})),
|
|
34524
|
+
})), UZ = /* @__PURE__ */ G(((e) => {
|
|
34468
34525
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34469
|
-
var t =
|
|
34526
|
+
var t = VZ(), n = HZ();
|
|
34470
34527
|
e.default = [
|
|
34471
34528
|
"$schema",
|
|
34472
34529
|
"$id",
|
|
@@ -34477,9 +34534,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34477
34534
|
t.default,
|
|
34478
34535
|
n.default
|
|
34479
34536
|
];
|
|
34480
|
-
})),
|
|
34537
|
+
})), WZ = /* @__PURE__ */ G(((e) => {
|
|
34481
34538
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34482
|
-
var t =
|
|
34539
|
+
var t = lZ(), n = t.operators, r = {
|
|
34483
34540
|
maximum: {
|
|
34484
34541
|
okStr: "<=",
|
|
34485
34542
|
ok: n.LTE,
|
|
@@ -34515,9 +34572,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34515
34572
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
34516
34573
|
}
|
|
34517
34574
|
};
|
|
34518
|
-
})),
|
|
34575
|
+
})), GZ = /* @__PURE__ */ G(((e) => {
|
|
34519
34576
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34520
|
-
var t =
|
|
34577
|
+
var t = lZ();
|
|
34521
34578
|
e.default = {
|
|
34522
34579
|
keyword: "multipleOf",
|
|
34523
34580
|
type: "number",
|
|
@@ -34532,7 +34589,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34532
34589
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
34533
34590
|
}
|
|
34534
34591
|
};
|
|
34535
|
-
})),
|
|
34592
|
+
})), KZ = /* @__PURE__ */ G(((e) => {
|
|
34536
34593
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34537
34594
|
function t(e) {
|
|
34538
34595
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -34540,9 +34597,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34540
34597
|
return n;
|
|
34541
34598
|
}
|
|
34542
34599
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
34543
|
-
})),
|
|
34600
|
+
})), qZ = /* @__PURE__ */ G(((e) => {
|
|
34544
34601
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34545
|
-
var t =
|
|
34602
|
+
var t = lZ(), n = uZ(), r = KZ();
|
|
34546
34603
|
e.default = {
|
|
34547
34604
|
keyword: ["maxLength", "minLength"],
|
|
34548
34605
|
type: "string",
|
|
@@ -34560,9 +34617,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34560
34617
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
34561
34618
|
}
|
|
34562
34619
|
};
|
|
34563
|
-
})),
|
|
34620
|
+
})), JZ = /* @__PURE__ */ G(((e) => {
|
|
34564
34621
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34565
|
-
var t =
|
|
34622
|
+
var t = vZ(), n = uZ(), r = lZ();
|
|
34566
34623
|
e.default = {
|
|
34567
34624
|
keyword: "pattern",
|
|
34568
34625
|
type: "string",
|
|
@@ -34583,9 +34640,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34583
34640
|
}
|
|
34584
34641
|
}
|
|
34585
34642
|
};
|
|
34586
|
-
})),
|
|
34643
|
+
})), YZ = /* @__PURE__ */ G(((e) => {
|
|
34587
34644
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34588
|
-
var t =
|
|
34645
|
+
var t = lZ();
|
|
34589
34646
|
e.default = {
|
|
34590
34647
|
keyword: ["maxProperties", "minProperties"],
|
|
34591
34648
|
type: "object",
|
|
@@ -34603,9 +34660,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34603
34660
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
34604
34661
|
}
|
|
34605
34662
|
};
|
|
34606
|
-
})),
|
|
34663
|
+
})), XZ = /* @__PURE__ */ G(((e) => {
|
|
34607
34664
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34608
|
-
var t =
|
|
34665
|
+
var t = vZ(), n = lZ(), r = uZ();
|
|
34609
34666
|
e.default = {
|
|
34610
34667
|
keyword: "required",
|
|
34611
34668
|
type: "object",
|
|
@@ -34651,9 +34708,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34651
34708
|
}
|
|
34652
34709
|
}
|
|
34653
34710
|
};
|
|
34654
|
-
})),
|
|
34711
|
+
})), ZZ = /* @__PURE__ */ G(((e) => {
|
|
34655
34712
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34656
|
-
var t =
|
|
34713
|
+
var t = lZ();
|
|
34657
34714
|
e.default = {
|
|
34658
34715
|
keyword: ["maxItems", "minItems"],
|
|
34659
34716
|
type: "array",
|
|
@@ -34671,13 +34728,13 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34671
34728
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34672
34729
|
}
|
|
34673
34730
|
};
|
|
34674
|
-
})),
|
|
34731
|
+
})), QZ = /* @__PURE__ */ G(((e) => {
|
|
34675
34732
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34676
|
-
var t =
|
|
34733
|
+
var t = xZ();
|
|
34677
34734
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34678
|
-
})),
|
|
34735
|
+
})), $Z = /* @__PURE__ */ G(((e) => {
|
|
34679
34736
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34680
|
-
var t =
|
|
34737
|
+
var t = gZ(), n = lZ(), r = uZ(), i = QZ();
|
|
34681
34738
|
e.default = {
|
|
34682
34739
|
keyword: "uniqueItems",
|
|
34683
34740
|
type: "array",
|
|
@@ -34718,9 +34775,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34718
34775
|
}
|
|
34719
34776
|
}
|
|
34720
34777
|
};
|
|
34721
|
-
})),
|
|
34778
|
+
})), eQ = /* @__PURE__ */ G(((e) => {
|
|
34722
34779
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34723
|
-
var t =
|
|
34780
|
+
var t = lZ(), n = uZ(), r = QZ();
|
|
34724
34781
|
e.default = {
|
|
34725
34782
|
keyword: "const",
|
|
34726
34783
|
$data: !0,
|
|
@@ -34733,9 +34790,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34733
34790
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34734
34791
|
}
|
|
34735
34792
|
};
|
|
34736
|
-
})),
|
|
34793
|
+
})), tQ = /* @__PURE__ */ G(((e) => {
|
|
34737
34794
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34738
|
-
var t =
|
|
34795
|
+
var t = lZ(), n = uZ(), r = QZ();
|
|
34739
34796
|
e.default = {
|
|
34740
34797
|
keyword: "enum",
|
|
34741
34798
|
schemaType: "array",
|
|
@@ -34765,9 +34822,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34765
34822
|
}
|
|
34766
34823
|
}
|
|
34767
34824
|
};
|
|
34768
|
-
})),
|
|
34825
|
+
})), nQ = /* @__PURE__ */ G(((e) => {
|
|
34769
34826
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34770
|
-
var t =
|
|
34827
|
+
var t = WZ(), n = GZ(), r = qZ(), i = JZ(), a = YZ(), o = XZ(), s = ZZ(), c = $Z(), l = eQ(), u = tQ();
|
|
34771
34828
|
e.default = [
|
|
34772
34829
|
t.default,
|
|
34773
34830
|
n.default,
|
|
@@ -34788,9 +34845,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34788
34845
|
l.default,
|
|
34789
34846
|
u.default
|
|
34790
34847
|
];
|
|
34791
|
-
})),
|
|
34848
|
+
})), rQ = /* @__PURE__ */ G(((e) => {
|
|
34792
34849
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34793
|
-
var t =
|
|
34850
|
+
var t = lZ(), n = uZ(), r = {
|
|
34794
34851
|
keyword: "additionalItems",
|
|
34795
34852
|
type: "array",
|
|
34796
34853
|
schemaType: ["boolean", "object"],
|
|
@@ -34828,9 +34885,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34828
34885
|
}
|
|
34829
34886
|
}
|
|
34830
34887
|
e.validateAdditionalItems = i, e.default = r;
|
|
34831
|
-
})),
|
|
34888
|
+
})), iQ = /* @__PURE__ */ G(((e) => {
|
|
34832
34889
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34833
|
-
var t =
|
|
34890
|
+
var t = lZ(), n = uZ(), r = vZ(), i = {
|
|
34834
34891
|
keyword: "items",
|
|
34835
34892
|
type: "array",
|
|
34836
34893
|
schemaType: [
|
|
@@ -34865,9 +34922,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34865
34922
|
}
|
|
34866
34923
|
}
|
|
34867
34924
|
e.validateTuple = a, e.default = i;
|
|
34868
|
-
})),
|
|
34925
|
+
})), aQ = /* @__PURE__ */ G(((e) => {
|
|
34869
34926
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34870
|
-
var t =
|
|
34927
|
+
var t = iQ();
|
|
34871
34928
|
e.default = {
|
|
34872
34929
|
keyword: "prefixItems",
|
|
34873
34930
|
type: "array",
|
|
@@ -34875,9 +34932,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34875
34932
|
before: "uniqueItems",
|
|
34876
34933
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34877
34934
|
};
|
|
34878
|
-
})),
|
|
34935
|
+
})), oQ = /* @__PURE__ */ G(((e) => {
|
|
34879
34936
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34880
|
-
var t =
|
|
34937
|
+
var t = lZ(), n = uZ(), r = vZ(), i = rQ();
|
|
34881
34938
|
e.default = {
|
|
34882
34939
|
keyword: "items",
|
|
34883
34940
|
type: "array",
|
|
@@ -34892,9 +34949,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34892
34949
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34893
34950
|
}
|
|
34894
34951
|
};
|
|
34895
|
-
})),
|
|
34952
|
+
})), sQ = /* @__PURE__ */ G(((e) => {
|
|
34896
34953
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34897
|
-
var t =
|
|
34954
|
+
var t = lZ(), n = uZ();
|
|
34898
34955
|
e.default = {
|
|
34899
34956
|
keyword: "contains",
|
|
34900
34957
|
type: "array",
|
|
@@ -34947,9 +35004,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
34947
35004
|
}
|
|
34948
35005
|
}
|
|
34949
35006
|
};
|
|
34950
|
-
})),
|
|
35007
|
+
})), cQ = /* @__PURE__ */ G(((e) => {
|
|
34951
35008
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34952
|
-
var t =
|
|
35009
|
+
var t = lZ(), n = uZ(), r = vZ();
|
|
34953
35010
|
e.error = {
|
|
34954
35011
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34955
35012
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -35008,9 +35065,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35008
35065
|
}, () => i.var(c, !0)), e.ok(c));
|
|
35009
35066
|
}
|
|
35010
35067
|
e.validateSchemaDeps = s, e.default = i;
|
|
35011
|
-
})),
|
|
35068
|
+
})), lQ = /* @__PURE__ */ G(((e) => {
|
|
35012
35069
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35013
|
-
var t =
|
|
35070
|
+
var t = lZ(), n = uZ();
|
|
35014
35071
|
e.default = {
|
|
35015
35072
|
keyword: "propertyNames",
|
|
35016
35073
|
type: "object",
|
|
@@ -35036,9 +35093,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35036
35093
|
}), e.ok(s);
|
|
35037
35094
|
}
|
|
35038
35095
|
};
|
|
35039
|
-
})),
|
|
35096
|
+
})), uQ = /* @__PURE__ */ G(((e) => {
|
|
35040
35097
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35041
|
-
var t =
|
|
35098
|
+
var t = vZ(), n = lZ(), r = dZ(), i = uZ();
|
|
35042
35099
|
e.default = {
|
|
35043
35100
|
keyword: "additionalProperties",
|
|
35044
35101
|
type: ["object"],
|
|
@@ -35103,9 +35160,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35103
35160
|
}
|
|
35104
35161
|
}
|
|
35105
35162
|
};
|
|
35106
|
-
})),
|
|
35163
|
+
})), dQ = /* @__PURE__ */ G(((e) => {
|
|
35107
35164
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35108
|
-
var t =
|
|
35165
|
+
var t = wZ(), n = vZ(), r = uZ(), i = uQ();
|
|
35109
35166
|
e.default = {
|
|
35110
35167
|
keyword: "properties",
|
|
35111
35168
|
type: "object",
|
|
@@ -35132,9 +35189,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35132
35189
|
}
|
|
35133
35190
|
}
|
|
35134
35191
|
};
|
|
35135
|
-
})),
|
|
35192
|
+
})), fQ = /* @__PURE__ */ G(((e) => {
|
|
35136
35193
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35137
|
-
var t =
|
|
35194
|
+
var t = vZ(), n = lZ(), r = uZ(), i = uZ();
|
|
35138
35195
|
e.default = {
|
|
35139
35196
|
keyword: "patternProperties",
|
|
35140
35197
|
type: "object",
|
|
@@ -35167,9 +35224,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35167
35224
|
}
|
|
35168
35225
|
}
|
|
35169
35226
|
};
|
|
35170
|
-
})),
|
|
35227
|
+
})), pQ = /* @__PURE__ */ G(((e) => {
|
|
35171
35228
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35172
|
-
var t =
|
|
35229
|
+
var t = uZ();
|
|
35173
35230
|
e.default = {
|
|
35174
35231
|
keyword: "not",
|
|
35175
35232
|
schemaType: ["object", "boolean"],
|
|
@@ -35190,17 +35247,17 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35190
35247
|
},
|
|
35191
35248
|
error: { message: "must NOT be valid" }
|
|
35192
35249
|
};
|
|
35193
|
-
})),
|
|
35250
|
+
})), mQ = /* @__PURE__ */ G(((e) => {
|
|
35194
35251
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35195
35252
|
keyword: "anyOf",
|
|
35196
35253
|
schemaType: "array",
|
|
35197
35254
|
trackErrors: !0,
|
|
35198
|
-
code:
|
|
35255
|
+
code: vZ().validateUnion,
|
|
35199
35256
|
error: { message: "must match a schema in anyOf" }
|
|
35200
35257
|
};
|
|
35201
|
-
})),
|
|
35258
|
+
})), hQ = /* @__PURE__ */ G(((e) => {
|
|
35202
35259
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35203
|
-
var t =
|
|
35260
|
+
var t = lZ(), n = uZ();
|
|
35204
35261
|
e.default = {
|
|
35205
35262
|
keyword: "oneOf",
|
|
35206
35263
|
schemaType: "array",
|
|
@@ -35230,9 +35287,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35230
35287
|
}
|
|
35231
35288
|
}
|
|
35232
35289
|
};
|
|
35233
|
-
})),
|
|
35290
|
+
})), gQ = /* @__PURE__ */ G(((e) => {
|
|
35234
35291
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35235
|
-
var t =
|
|
35292
|
+
var t = uZ();
|
|
35236
35293
|
e.default = {
|
|
35237
35294
|
keyword: "allOf",
|
|
35238
35295
|
schemaType: "array",
|
|
@@ -35251,9 +35308,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35251
35308
|
});
|
|
35252
35309
|
}
|
|
35253
35310
|
};
|
|
35254
|
-
})),
|
|
35311
|
+
})), _Q = /* @__PURE__ */ G(((e) => {
|
|
35255
35312
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35256
|
-
var t =
|
|
35313
|
+
var t = lZ(), n = uZ(), r = {
|
|
35257
35314
|
keyword: "if",
|
|
35258
35315
|
schemaType: ["object", "boolean"],
|
|
35259
35316
|
trackErrors: !0,
|
|
@@ -35294,9 +35351,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35294
35351
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
35295
35352
|
}
|
|
35296
35353
|
e.default = r;
|
|
35297
|
-
})),
|
|
35354
|
+
})), vQ = /* @__PURE__ */ G(((e) => {
|
|
35298
35355
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35299
|
-
var t =
|
|
35356
|
+
var t = uZ();
|
|
35300
35357
|
e.default = {
|
|
35301
35358
|
keyword: ["then", "else"],
|
|
35302
35359
|
schemaType: ["object", "boolean"],
|
|
@@ -35304,9 +35361,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35304
35361
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
35305
35362
|
}
|
|
35306
35363
|
};
|
|
35307
|
-
})),
|
|
35364
|
+
})), yQ = /* @__PURE__ */ G(((e) => {
|
|
35308
35365
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35309
|
-
var t =
|
|
35366
|
+
var t = rQ(), n = aQ(), r = iQ(), i = oQ(), a = sQ(), o = cQ(), s = lQ(), c = uQ(), l = dQ(), u = fQ(), d = pQ(), f = mQ(), p = hQ(), m = gQ(), h = _Q(), g = vQ();
|
|
35310
35367
|
function _(e = !1) {
|
|
35311
35368
|
let _ = [
|
|
35312
35369
|
d.default,
|
|
@@ -35324,9 +35381,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35324
35381
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
35325
35382
|
}
|
|
35326
35383
|
e.default = _;
|
|
35327
|
-
})),
|
|
35384
|
+
})), bQ = /* @__PURE__ */ G(((e) => {
|
|
35328
35385
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35329
|
-
var t =
|
|
35386
|
+
var t = lZ();
|
|
35330
35387
|
e.default = {
|
|
35331
35388
|
keyword: "format",
|
|
35332
35389
|
type: ["number", "string"],
|
|
@@ -35399,9 +35456,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35399
35456
|
}
|
|
35400
35457
|
}
|
|
35401
35458
|
};
|
|
35402
|
-
})),
|
|
35403
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
35404
|
-
})),
|
|
35459
|
+
})), xQ = /* @__PURE__ */ G(((e) => {
|
|
35460
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [bQ().default];
|
|
35461
|
+
})), SQ = /* @__PURE__ */ G(((e) => {
|
|
35405
35462
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
35406
35463
|
"title",
|
|
35407
35464
|
"description",
|
|
@@ -35415,9 +35472,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35415
35472
|
"contentEncoding",
|
|
35416
35473
|
"contentSchema"
|
|
35417
35474
|
];
|
|
35418
|
-
})),
|
|
35475
|
+
})), CQ = /* @__PURE__ */ G(((e) => {
|
|
35419
35476
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35420
|
-
var t =
|
|
35477
|
+
var t = UZ(), n = nQ(), r = yQ(), i = xQ(), a = SQ();
|
|
35421
35478
|
e.default = [
|
|
35422
35479
|
t.default,
|
|
35423
35480
|
n.default,
|
|
@@ -35426,15 +35483,15 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35426
35483
|
a.metadataVocabulary,
|
|
35427
35484
|
a.contentVocabulary
|
|
35428
35485
|
];
|
|
35429
|
-
})),
|
|
35486
|
+
})), wQ = /* @__PURE__ */ G(((e) => {
|
|
35430
35487
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
35431
35488
|
var t;
|
|
35432
35489
|
(function(e) {
|
|
35433
35490
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
35434
35491
|
})(t || (e.DiscrError = t = {}));
|
|
35435
|
-
})),
|
|
35492
|
+
})), TQ = /* @__PURE__ */ G(((e) => {
|
|
35436
35493
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35437
|
-
var t =
|
|
35494
|
+
var t = lZ(), n = wQ(), r = DZ(), i = EZ(), a = uZ();
|
|
35438
35495
|
e.default = {
|
|
35439
35496
|
keyword: "discriminator",
|
|
35440
35497
|
type: "object",
|
|
@@ -35502,16 +35559,16 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35502
35559
|
}
|
|
35503
35560
|
}
|
|
35504
35561
|
};
|
|
35505
|
-
})),
|
|
35506
|
-
$id: () =>
|
|
35507
|
-
$schema: () =>
|
|
35508
|
-
default: () =>
|
|
35509
|
-
definitions: () =>
|
|
35510
|
-
properties: () =>
|
|
35511
|
-
title: () =>
|
|
35512
|
-
type: () =>
|
|
35513
|
-
}),
|
|
35514
|
-
|
|
35562
|
+
})), EQ = /* @__PURE__ */ mt({
|
|
35563
|
+
$id: () => OQ,
|
|
35564
|
+
$schema: () => DQ,
|
|
35565
|
+
default: () => NQ,
|
|
35566
|
+
definitions: () => AQ,
|
|
35567
|
+
properties: () => MQ,
|
|
35568
|
+
title: () => kQ,
|
|
35569
|
+
type: () => jQ
|
|
35570
|
+
}), DQ, OQ, kQ, AQ, jQ, MQ, NQ, PQ = pt((() => {
|
|
35571
|
+
DQ = "http://json-schema.org/draft-07/schema#", OQ = "http://json-schema.org/draft-07/schema#", kQ = "Core schema meta-schema", AQ = {
|
|
35515
35572
|
schemaArray: {
|
|
35516
35573
|
type: "array",
|
|
35517
35574
|
minItems: 1,
|
|
@@ -35537,7 +35594,7 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35537
35594
|
uniqueItems: !0,
|
|
35538
35595
|
default: []
|
|
35539
35596
|
}
|
|
35540
|
-
},
|
|
35597
|
+
}, jQ = ["object", "boolean"], MQ = {
|
|
35541
35598
|
$id: {
|
|
35542
35599
|
type: "string",
|
|
35543
35600
|
format: "uri-reference"
|
|
@@ -35636,18 +35693,18 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35636
35693
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35637
35694
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35638
35695
|
not: { $ref: "#" }
|
|
35639
|
-
},
|
|
35640
|
-
$schema:
|
|
35641
|
-
$id:
|
|
35642
|
-
title:
|
|
35643
|
-
definitions:
|
|
35644
|
-
type:
|
|
35645
|
-
properties:
|
|
35696
|
+
}, NQ = {
|
|
35697
|
+
$schema: DQ,
|
|
35698
|
+
$id: OQ,
|
|
35699
|
+
title: kQ,
|
|
35700
|
+
definitions: AQ,
|
|
35701
|
+
type: jQ,
|
|
35702
|
+
properties: MQ,
|
|
35646
35703
|
default: !0
|
|
35647
35704
|
};
|
|
35648
|
-
})),
|
|
35705
|
+
})), FQ = /* @__PURE__ */ G(((e, t) => {
|
|
35649
35706
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
|
|
35650
|
-
var n =
|
|
35707
|
+
var n = BZ(), r = CQ(), i = TQ(), a = (PQ(), _t(EQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35651
35708
|
_addVocabularies() {
|
|
35652
35709
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35653
35710
|
}
|
|
@@ -35661,14 +35718,14 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35661
35718
|
}
|
|
35662
35719
|
};
|
|
35663
35720
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35664
|
-
var l =
|
|
35721
|
+
var l = wZ();
|
|
35665
35722
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35666
35723
|
enumerable: !0,
|
|
35667
35724
|
get: function() {
|
|
35668
35725
|
return l.KeywordCxt;
|
|
35669
35726
|
}
|
|
35670
35727
|
});
|
|
35671
|
-
var u =
|
|
35728
|
+
var u = lZ();
|
|
35672
35729
|
Object.defineProperty(e, "_", {
|
|
35673
35730
|
enumerable: !0,
|
|
35674
35731
|
get: function() {
|
|
@@ -35700,21 +35757,646 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35700
35757
|
return u.CodeGen;
|
|
35701
35758
|
}
|
|
35702
35759
|
});
|
|
35703
|
-
var d =
|
|
35760
|
+
var d = TZ();
|
|
35704
35761
|
Object.defineProperty(e, "ValidationError", {
|
|
35705
35762
|
enumerable: !0,
|
|
35706
35763
|
get: function() {
|
|
35707
35764
|
return d.default;
|
|
35708
35765
|
}
|
|
35709
35766
|
});
|
|
35710
|
-
var f =
|
|
35767
|
+
var f = EZ();
|
|
35711
35768
|
Object.defineProperty(e, "MissingRefError", {
|
|
35712
35769
|
enumerable: !0,
|
|
35713
35770
|
get: function() {
|
|
35714
35771
|
return f.default;
|
|
35715
35772
|
}
|
|
35716
35773
|
});
|
|
35717
|
-
})),
|
|
35774
|
+
})), IQ = /* @__PURE__ */ G(((e) => {
|
|
35775
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicAnchor = void 0;
|
|
35776
|
+
var t = lZ(), n = dZ(), r = DZ(), i = HZ(), a = {
|
|
35777
|
+
keyword: "$dynamicAnchor",
|
|
35778
|
+
schemaType: "string",
|
|
35779
|
+
code: (e) => o(e, e.schema)
|
|
35780
|
+
};
|
|
35781
|
+
function o(e, r) {
|
|
35782
|
+
let { gen: i, it: a } = e;
|
|
35783
|
+
a.schemaEnv.root.dynamicAnchors[r] = !0;
|
|
35784
|
+
let o = (0, t._)`${n.default.dynamicAnchors}${(0, t.getProperty)(r)}`, c = a.errSchemaPath === "#" ? a.validateName : s(e);
|
|
35785
|
+
i.if((0, t._)`!${o}`, () => i.assign(o, c));
|
|
35786
|
+
}
|
|
35787
|
+
e.dynamicAnchor = o;
|
|
35788
|
+
function s(e) {
|
|
35789
|
+
let { schemaEnv: t, schema: n, self: a } = e.it, { root: o, baseId: s, localRefs: c, meta: l } = t.root, { schemaId: u } = a.opts, d = new r.SchemaEnv({
|
|
35790
|
+
schema: n,
|
|
35791
|
+
schemaId: u,
|
|
35792
|
+
root: o,
|
|
35793
|
+
baseId: s,
|
|
35794
|
+
localRefs: c,
|
|
35795
|
+
meta: l
|
|
35796
|
+
});
|
|
35797
|
+
return r.compileSchema.call(a, d), (0, i.getValidate)(e, d);
|
|
35798
|
+
}
|
|
35799
|
+
e.default = a;
|
|
35800
|
+
})), LQ = /* @__PURE__ */ G(((e) => {
|
|
35801
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicRef = void 0;
|
|
35802
|
+
var t = lZ(), n = dZ(), r = HZ(), i = {
|
|
35803
|
+
keyword: "$dynamicRef",
|
|
35804
|
+
schemaType: "string",
|
|
35805
|
+
code: (e) => a(e, e.schema)
|
|
35806
|
+
};
|
|
35807
|
+
function a(e, i) {
|
|
35808
|
+
let { gen: a, keyword: o, it: s } = e;
|
|
35809
|
+
if (i[0] !== "#") throw Error(`"${o}" only supports hash fragment reference`);
|
|
35810
|
+
let c = i.slice(1);
|
|
35811
|
+
if (s.allErrors) l();
|
|
35812
|
+
else {
|
|
35813
|
+
let t = a.let("valid", !1);
|
|
35814
|
+
l(t), e.ok(t);
|
|
35815
|
+
}
|
|
35816
|
+
function l(e) {
|
|
35817
|
+
if (s.schemaEnv.root.dynamicAnchors[c]) {
|
|
35818
|
+
let r = a.let("_v", (0, t._)`${n.default.dynamicAnchors}${(0, t.getProperty)(c)}`);
|
|
35819
|
+
a.if(r, u(r, e), u(s.validateName, e));
|
|
35820
|
+
} else u(s.validateName, e)();
|
|
35821
|
+
}
|
|
35822
|
+
function u(t, n) {
|
|
35823
|
+
return n ? () => a.block(() => {
|
|
35824
|
+
(0, r.callRef)(e, t), a.let(n, !0);
|
|
35825
|
+
}) : () => (0, r.callRef)(e, t);
|
|
35826
|
+
}
|
|
35827
|
+
}
|
|
35828
|
+
e.dynamicRef = a, e.default = i;
|
|
35829
|
+
})), RQ = /* @__PURE__ */ G(((e) => {
|
|
35830
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35831
|
+
var t = IQ(), n = uZ();
|
|
35832
|
+
e.default = {
|
|
35833
|
+
keyword: "$recursiveAnchor",
|
|
35834
|
+
schemaType: "boolean",
|
|
35835
|
+
code(e) {
|
|
35836
|
+
e.schema ? (0, t.dynamicAnchor)(e, "") : (0, n.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
|
|
35837
|
+
}
|
|
35838
|
+
};
|
|
35839
|
+
})), zQ = /* @__PURE__ */ G(((e) => {
|
|
35840
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35841
|
+
var t = LQ();
|
|
35842
|
+
e.default = {
|
|
35843
|
+
keyword: "$recursiveRef",
|
|
35844
|
+
schemaType: "string",
|
|
35845
|
+
code: (e) => (0, t.dynamicRef)(e, e.schema)
|
|
35846
|
+
};
|
|
35847
|
+
})), BQ = /* @__PURE__ */ G(((e) => {
|
|
35848
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35849
|
+
var t = IQ(), n = LQ(), r = RQ(), i = zQ();
|
|
35850
|
+
e.default = [
|
|
35851
|
+
t.default,
|
|
35852
|
+
n.default,
|
|
35853
|
+
r.default,
|
|
35854
|
+
i.default
|
|
35855
|
+
];
|
|
35856
|
+
})), VQ = /* @__PURE__ */ G(((e) => {
|
|
35857
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35858
|
+
var t = cQ();
|
|
35859
|
+
e.default = {
|
|
35860
|
+
keyword: "dependentRequired",
|
|
35861
|
+
type: "object",
|
|
35862
|
+
schemaType: "object",
|
|
35863
|
+
error: t.error,
|
|
35864
|
+
code: (e) => (0, t.validatePropertyDeps)(e)
|
|
35865
|
+
};
|
|
35866
|
+
})), HQ = /* @__PURE__ */ G(((e) => {
|
|
35867
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35868
|
+
var t = cQ();
|
|
35869
|
+
e.default = {
|
|
35870
|
+
keyword: "dependentSchemas",
|
|
35871
|
+
type: "object",
|
|
35872
|
+
schemaType: "object",
|
|
35873
|
+
code: (e) => (0, t.validateSchemaDeps)(e)
|
|
35874
|
+
};
|
|
35875
|
+
})), UQ = /* @__PURE__ */ G(((e) => {
|
|
35876
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35877
|
+
var t = uZ();
|
|
35878
|
+
e.default = {
|
|
35879
|
+
keyword: ["maxContains", "minContains"],
|
|
35880
|
+
type: "array",
|
|
35881
|
+
schemaType: "number",
|
|
35882
|
+
code({ keyword: e, parentSchema: n, it: r }) {
|
|
35883
|
+
n.contains === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
|
|
35884
|
+
}
|
|
35885
|
+
};
|
|
35886
|
+
})), WQ = /* @__PURE__ */ G(((e) => {
|
|
35887
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35888
|
+
var t = VQ(), n = HQ(), r = UQ();
|
|
35889
|
+
e.default = [
|
|
35890
|
+
t.default,
|
|
35891
|
+
n.default,
|
|
35892
|
+
r.default
|
|
35893
|
+
];
|
|
35894
|
+
})), GQ = /* @__PURE__ */ G(((e) => {
|
|
35895
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35896
|
+
var t = lZ(), n = uZ(), r = dZ();
|
|
35897
|
+
e.default = {
|
|
35898
|
+
keyword: "unevaluatedProperties",
|
|
35899
|
+
type: "object",
|
|
35900
|
+
schemaType: ["boolean", "object"],
|
|
35901
|
+
trackErrors: !0,
|
|
35902
|
+
error: {
|
|
35903
|
+
message: "must NOT have unevaluated properties",
|
|
35904
|
+
params: ({ params: e }) => (0, t._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`
|
|
35905
|
+
},
|
|
35906
|
+
code(e) {
|
|
35907
|
+
let { gen: i, schema: a, data: o, errsCount: s, it: c } = e;
|
|
35908
|
+
/* istanbul ignore if */
|
|
35909
|
+
if (!s) throw Error("ajv implementation error");
|
|
35910
|
+
let { allErrors: l, props: u } = c;
|
|
35911
|
+
u instanceof t.Name ? i.if((0, t._)`${u} !== true`, () => i.forIn("key", o, (e) => i.if(f(u, e), () => d(e)))) : u !== !0 && i.forIn("key", o, (e) => u === void 0 ? d(e) : i.if(p(u, e), () => d(e))), c.props = !0, e.ok((0, t._)`${s} === ${r.default.errors}`);
|
|
35912
|
+
function d(r) {
|
|
35913
|
+
if (a === !1) {
|
|
35914
|
+
e.setParams({ unevaluatedProperty: r }), e.error(), l || i.break();
|
|
35915
|
+
return;
|
|
35916
|
+
}
|
|
35917
|
+
if (!(0, n.alwaysValidSchema)(c, a)) {
|
|
35918
|
+
let a = i.name("valid");
|
|
35919
|
+
e.subschema({
|
|
35920
|
+
keyword: "unevaluatedProperties",
|
|
35921
|
+
dataProp: r,
|
|
35922
|
+
dataPropType: n.Type.Str
|
|
35923
|
+
}, a), l || i.if((0, t.not)(a), () => i.break());
|
|
35924
|
+
}
|
|
35925
|
+
}
|
|
35926
|
+
function f(e, n) {
|
|
35927
|
+
return (0, t._)`!${e} || !${e}[${n}]`;
|
|
35928
|
+
}
|
|
35929
|
+
function p(e, n) {
|
|
35930
|
+
let r = [];
|
|
35931
|
+
for (let i in e) e[i] === !0 && r.push((0, t._)`${n} !== ${i}`);
|
|
35932
|
+
return (0, t.and)(...r);
|
|
35933
|
+
}
|
|
35934
|
+
}
|
|
35935
|
+
};
|
|
35936
|
+
})), KQ = /* @__PURE__ */ G(((e) => {
|
|
35937
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35938
|
+
var t = lZ(), n = uZ();
|
|
35939
|
+
e.default = {
|
|
35940
|
+
keyword: "unevaluatedItems",
|
|
35941
|
+
type: "array",
|
|
35942
|
+
schemaType: ["boolean", "object"],
|
|
35943
|
+
error: {
|
|
35944
|
+
message: ({ params: { len: e } }) => (0, t.str)`must NOT have more than ${e} items`,
|
|
35945
|
+
params: ({ params: { len: e } }) => (0, t._)`{limit: ${e}}`
|
|
35946
|
+
},
|
|
35947
|
+
code(e) {
|
|
35948
|
+
let { gen: r, schema: i, data: a, it: o } = e, s = o.items || 0;
|
|
35949
|
+
if (s === !0) return;
|
|
35950
|
+
let c = r.const("len", (0, t._)`${a}.length`);
|
|
35951
|
+
if (i === !1) e.setParams({ len: s }), e.fail((0, t._)`${c} > ${s}`);
|
|
35952
|
+
else if (typeof i == "object" && !(0, n.alwaysValidSchema)(o, i)) {
|
|
35953
|
+
let n = r.var("valid", (0, t._)`${c} <= ${s}`);
|
|
35954
|
+
r.if((0, t.not)(n), () => l(n, s)), e.ok(n);
|
|
35955
|
+
}
|
|
35956
|
+
o.items = !0;
|
|
35957
|
+
function l(i, a) {
|
|
35958
|
+
r.forRange("i", a, c, (a) => {
|
|
35959
|
+
e.subschema({
|
|
35960
|
+
keyword: "unevaluatedItems",
|
|
35961
|
+
dataProp: a,
|
|
35962
|
+
dataPropType: n.Type.Num
|
|
35963
|
+
}, i), o.allErrors || r.if((0, t.not)(i), () => r.break());
|
|
35964
|
+
});
|
|
35965
|
+
}
|
|
35966
|
+
}
|
|
35967
|
+
};
|
|
35968
|
+
})), qQ = /* @__PURE__ */ G(((e) => {
|
|
35969
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35970
|
+
var t = GQ(), n = KQ();
|
|
35971
|
+
e.default = [t.default, n.default];
|
|
35972
|
+
})), JQ = /* @__PURE__ */ mt({
|
|
35973
|
+
$id: () => XQ,
|
|
35974
|
+
$recursiveAnchor: () => !0,
|
|
35975
|
+
$schema: () => YQ,
|
|
35976
|
+
$vocabulary: () => ZQ,
|
|
35977
|
+
allOf: () => $Q,
|
|
35978
|
+
default: () => n$,
|
|
35979
|
+
properties: () => t$,
|
|
35980
|
+
title: () => QQ,
|
|
35981
|
+
type: () => e$
|
|
35982
|
+
}), YQ, XQ, ZQ, QQ, $Q, e$, t$, n$, r$ = pt((() => {
|
|
35983
|
+
YQ = "https://json-schema.org/draft/2019-09/schema", XQ = "https://json-schema.org/draft/2019-09/schema", ZQ = {
|
|
35984
|
+
"https://json-schema.org/draft/2019-09/vocab/core": !0,
|
|
35985
|
+
"https://json-schema.org/draft/2019-09/vocab/applicator": !0,
|
|
35986
|
+
"https://json-schema.org/draft/2019-09/vocab/validation": !0,
|
|
35987
|
+
"https://json-schema.org/draft/2019-09/vocab/meta-data": !0,
|
|
35988
|
+
"https://json-schema.org/draft/2019-09/vocab/format": !1,
|
|
35989
|
+
"https://json-schema.org/draft/2019-09/vocab/content": !0
|
|
35990
|
+
}, QQ = "Core and Validation specifications meta-schema", $Q = [
|
|
35991
|
+
{ $ref: "meta/core" },
|
|
35992
|
+
{ $ref: "meta/applicator" },
|
|
35993
|
+
{ $ref: "meta/validation" },
|
|
35994
|
+
{ $ref: "meta/meta-data" },
|
|
35995
|
+
{ $ref: "meta/format" },
|
|
35996
|
+
{ $ref: "meta/content" }
|
|
35997
|
+
], e$ = ["object", "boolean"], t$ = {
|
|
35998
|
+
definitions: {
|
|
35999
|
+
$comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
|
|
36000
|
+
type: "object",
|
|
36001
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36002
|
+
default: {}
|
|
36003
|
+
},
|
|
36004
|
+
dependencies: {
|
|
36005
|
+
$comment: "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
|
|
36006
|
+
type: "object",
|
|
36007
|
+
additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] }
|
|
36008
|
+
}
|
|
36009
|
+
}, n$ = {
|
|
36010
|
+
$schema: YQ,
|
|
36011
|
+
$id: XQ,
|
|
36012
|
+
$vocabulary: ZQ,
|
|
36013
|
+
$recursiveAnchor: !0,
|
|
36014
|
+
title: QQ,
|
|
36015
|
+
allOf: $Q,
|
|
36016
|
+
type: e$,
|
|
36017
|
+
properties: t$
|
|
36018
|
+
};
|
|
36019
|
+
})), i$ = /* @__PURE__ */ mt({
|
|
36020
|
+
$defs: () => d$,
|
|
36021
|
+
$id: () => o$,
|
|
36022
|
+
$recursiveAnchor: () => !0,
|
|
36023
|
+
$schema: () => a$,
|
|
36024
|
+
$vocabulary: () => s$,
|
|
36025
|
+
default: () => f$,
|
|
36026
|
+
properties: () => u$,
|
|
36027
|
+
title: () => c$,
|
|
36028
|
+
type: () => l$
|
|
36029
|
+
}), a$, o$, s$, c$, l$, u$, d$, f$, p$ = pt((() => {
|
|
36030
|
+
a$ = "https://json-schema.org/draft/2019-09/schema", o$ = "https://json-schema.org/draft/2019-09/meta/applicator", s$ = { "https://json-schema.org/draft/2019-09/vocab/applicator": !0 }, c$ = "Applicator vocabulary meta-schema", l$ = ["object", "boolean"], u$ = {
|
|
36031
|
+
additionalItems: { $recursiveRef: "#" },
|
|
36032
|
+
unevaluatedItems: { $recursiveRef: "#" },
|
|
36033
|
+
items: { anyOf: [{ $recursiveRef: "#" }, { $ref: "#/$defs/schemaArray" }] },
|
|
36034
|
+
contains: { $recursiveRef: "#" },
|
|
36035
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36036
|
+
unevaluatedProperties: { $recursiveRef: "#" },
|
|
36037
|
+
properties: {
|
|
36038
|
+
type: "object",
|
|
36039
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36040
|
+
default: {}
|
|
36041
|
+
},
|
|
36042
|
+
patternProperties: {
|
|
36043
|
+
type: "object",
|
|
36044
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36045
|
+
propertyNames: { format: "regex" },
|
|
36046
|
+
default: {}
|
|
36047
|
+
},
|
|
36048
|
+
dependentSchemas: {
|
|
36049
|
+
type: "object",
|
|
36050
|
+
additionalProperties: { $recursiveRef: "#" }
|
|
36051
|
+
},
|
|
36052
|
+
propertyNames: { $recursiveRef: "#" },
|
|
36053
|
+
if: { $recursiveRef: "#" },
|
|
36054
|
+
then: { $recursiveRef: "#" },
|
|
36055
|
+
else: { $recursiveRef: "#" },
|
|
36056
|
+
allOf: { $ref: "#/$defs/schemaArray" },
|
|
36057
|
+
anyOf: { $ref: "#/$defs/schemaArray" },
|
|
36058
|
+
oneOf: { $ref: "#/$defs/schemaArray" },
|
|
36059
|
+
not: { $recursiveRef: "#" }
|
|
36060
|
+
}, d$ = { schemaArray: {
|
|
36061
|
+
type: "array",
|
|
36062
|
+
minItems: 1,
|
|
36063
|
+
items: { $recursiveRef: "#" }
|
|
36064
|
+
} }, f$ = {
|
|
36065
|
+
$schema: a$,
|
|
36066
|
+
$id: o$,
|
|
36067
|
+
$vocabulary: s$,
|
|
36068
|
+
$recursiveAnchor: !0,
|
|
36069
|
+
title: c$,
|
|
36070
|
+
type: l$,
|
|
36071
|
+
properties: u$,
|
|
36072
|
+
$defs: d$
|
|
36073
|
+
};
|
|
36074
|
+
})), m$ = /* @__PURE__ */ mt({
|
|
36075
|
+
$id: () => g$,
|
|
36076
|
+
$recursiveAnchor: () => !0,
|
|
36077
|
+
$schema: () => h$,
|
|
36078
|
+
$vocabulary: () => _$,
|
|
36079
|
+
default: () => x$,
|
|
36080
|
+
properties: () => b$,
|
|
36081
|
+
title: () => v$,
|
|
36082
|
+
type: () => y$
|
|
36083
|
+
}), h$, g$, _$, v$, y$, b$, x$, S$ = pt((() => {
|
|
36084
|
+
h$ = "https://json-schema.org/draft/2019-09/schema", g$ = "https://json-schema.org/draft/2019-09/meta/content", _$ = { "https://json-schema.org/draft/2019-09/vocab/content": !0 }, v$ = "Content vocabulary meta-schema", y$ = ["object", "boolean"], b$ = {
|
|
36085
|
+
contentMediaType: { type: "string" },
|
|
36086
|
+
contentEncoding: { type: "string" },
|
|
36087
|
+
contentSchema: { $recursiveRef: "#" }
|
|
36088
|
+
}, x$ = {
|
|
36089
|
+
$schema: h$,
|
|
36090
|
+
$id: g$,
|
|
36091
|
+
$vocabulary: _$,
|
|
36092
|
+
$recursiveAnchor: !0,
|
|
36093
|
+
title: v$,
|
|
36094
|
+
type: y$,
|
|
36095
|
+
properties: b$
|
|
36096
|
+
};
|
|
36097
|
+
})), C$ = /* @__PURE__ */ mt({
|
|
36098
|
+
$id: () => T$,
|
|
36099
|
+
$recursiveAnchor: () => !0,
|
|
36100
|
+
$schema: () => w$,
|
|
36101
|
+
$vocabulary: () => E$,
|
|
36102
|
+
default: () => A$,
|
|
36103
|
+
properties: () => k$,
|
|
36104
|
+
title: () => D$,
|
|
36105
|
+
type: () => O$
|
|
36106
|
+
}), w$, T$, E$, D$, O$, k$, A$, j$ = pt((() => {
|
|
36107
|
+
w$ = "https://json-schema.org/draft/2019-09/schema", T$ = "https://json-schema.org/draft/2019-09/meta/core", E$ = { "https://json-schema.org/draft/2019-09/vocab/core": !0 }, D$ = "Core vocabulary meta-schema", O$ = ["object", "boolean"], k$ = {
|
|
36108
|
+
$id: {
|
|
36109
|
+
type: "string",
|
|
36110
|
+
format: "uri-reference",
|
|
36111
|
+
$comment: "Non-empty fragments not allowed.",
|
|
36112
|
+
pattern: "^[^#]*#?$"
|
|
36113
|
+
},
|
|
36114
|
+
$schema: {
|
|
36115
|
+
type: "string",
|
|
36116
|
+
format: "uri"
|
|
36117
|
+
},
|
|
36118
|
+
$anchor: {
|
|
36119
|
+
type: "string",
|
|
36120
|
+
pattern: "^[A-Za-z][-A-Za-z0-9.:_]*$"
|
|
36121
|
+
},
|
|
36122
|
+
$ref: {
|
|
36123
|
+
type: "string",
|
|
36124
|
+
format: "uri-reference"
|
|
36125
|
+
},
|
|
36126
|
+
$recursiveRef: {
|
|
36127
|
+
type: "string",
|
|
36128
|
+
format: "uri-reference"
|
|
36129
|
+
},
|
|
36130
|
+
$recursiveAnchor: {
|
|
36131
|
+
type: "boolean",
|
|
36132
|
+
default: !1
|
|
36133
|
+
},
|
|
36134
|
+
$vocabulary: {
|
|
36135
|
+
type: "object",
|
|
36136
|
+
propertyNames: {
|
|
36137
|
+
type: "string",
|
|
36138
|
+
format: "uri"
|
|
36139
|
+
},
|
|
36140
|
+
additionalProperties: { type: "boolean" }
|
|
36141
|
+
},
|
|
36142
|
+
$comment: { type: "string" },
|
|
36143
|
+
$defs: {
|
|
36144
|
+
type: "object",
|
|
36145
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36146
|
+
default: {}
|
|
36147
|
+
}
|
|
36148
|
+
}, A$ = {
|
|
36149
|
+
$schema: w$,
|
|
36150
|
+
$id: T$,
|
|
36151
|
+
$vocabulary: E$,
|
|
36152
|
+
$recursiveAnchor: !0,
|
|
36153
|
+
title: D$,
|
|
36154
|
+
type: O$,
|
|
36155
|
+
properties: k$
|
|
36156
|
+
};
|
|
36157
|
+
})), M$ = /* @__PURE__ */ mt({
|
|
36158
|
+
$id: () => P$,
|
|
36159
|
+
$recursiveAnchor: () => !0,
|
|
36160
|
+
$schema: () => N$,
|
|
36161
|
+
$vocabulary: () => F$,
|
|
36162
|
+
default: () => z$,
|
|
36163
|
+
properties: () => R$,
|
|
36164
|
+
title: () => I$,
|
|
36165
|
+
type: () => L$
|
|
36166
|
+
}), N$, P$, F$, I$, L$, R$, z$, B$ = pt((() => {
|
|
36167
|
+
N$ = "https://json-schema.org/draft/2019-09/schema", P$ = "https://json-schema.org/draft/2019-09/meta/format", F$ = { "https://json-schema.org/draft/2019-09/vocab/format": !0 }, I$ = "Format vocabulary meta-schema", L$ = ["object", "boolean"], R$ = { format: { type: "string" } }, z$ = {
|
|
36168
|
+
$schema: N$,
|
|
36169
|
+
$id: P$,
|
|
36170
|
+
$vocabulary: F$,
|
|
36171
|
+
$recursiveAnchor: !0,
|
|
36172
|
+
title: I$,
|
|
36173
|
+
type: L$,
|
|
36174
|
+
properties: R$
|
|
36175
|
+
};
|
|
36176
|
+
})), V$ = /* @__PURE__ */ mt({
|
|
36177
|
+
$id: () => U$,
|
|
36178
|
+
$recursiveAnchor: () => !0,
|
|
36179
|
+
$schema: () => H$,
|
|
36180
|
+
$vocabulary: () => W$,
|
|
36181
|
+
default: () => J$,
|
|
36182
|
+
properties: () => q$,
|
|
36183
|
+
title: () => G$,
|
|
36184
|
+
type: () => K$
|
|
36185
|
+
}), H$, U$, W$, G$, K$, q$, J$, Y$ = pt((() => {
|
|
36186
|
+
H$ = "https://json-schema.org/draft/2019-09/schema", U$ = "https://json-schema.org/draft/2019-09/meta/meta-data", W$ = { "https://json-schema.org/draft/2019-09/vocab/meta-data": !0 }, G$ = "Meta-data vocabulary meta-schema", K$ = ["object", "boolean"], q$ = {
|
|
36187
|
+
title: { type: "string" },
|
|
36188
|
+
description: { type: "string" },
|
|
36189
|
+
default: !0,
|
|
36190
|
+
deprecated: {
|
|
36191
|
+
type: "boolean",
|
|
36192
|
+
default: !1
|
|
36193
|
+
},
|
|
36194
|
+
readOnly: {
|
|
36195
|
+
type: "boolean",
|
|
36196
|
+
default: !1
|
|
36197
|
+
},
|
|
36198
|
+
writeOnly: {
|
|
36199
|
+
type: "boolean",
|
|
36200
|
+
default: !1
|
|
36201
|
+
},
|
|
36202
|
+
examples: {
|
|
36203
|
+
type: "array",
|
|
36204
|
+
items: !0
|
|
36205
|
+
}
|
|
36206
|
+
}, J$ = {
|
|
36207
|
+
$schema: H$,
|
|
36208
|
+
$id: U$,
|
|
36209
|
+
$vocabulary: W$,
|
|
36210
|
+
$recursiveAnchor: !0,
|
|
36211
|
+
title: G$,
|
|
36212
|
+
type: K$,
|
|
36213
|
+
properties: q$
|
|
36214
|
+
};
|
|
36215
|
+
})), X$ = /* @__PURE__ */ mt({
|
|
36216
|
+
$defs: () => r1,
|
|
36217
|
+
$id: () => Q$,
|
|
36218
|
+
$recursiveAnchor: () => !0,
|
|
36219
|
+
$schema: () => Z$,
|
|
36220
|
+
$vocabulary: () => $$,
|
|
36221
|
+
default: () => i1,
|
|
36222
|
+
properties: () => n1,
|
|
36223
|
+
title: () => e1,
|
|
36224
|
+
type: () => t1
|
|
36225
|
+
}), Z$, Q$, $$, e1, t1, n1, r1, i1, a1 = pt((() => {
|
|
36226
|
+
Z$ = "https://json-schema.org/draft/2019-09/schema", Q$ = "https://json-schema.org/draft/2019-09/meta/validation", $$ = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, e1 = "Validation vocabulary meta-schema", t1 = ["object", "boolean"], n1 = {
|
|
36227
|
+
multipleOf: {
|
|
36228
|
+
type: "number",
|
|
36229
|
+
exclusiveMinimum: 0
|
|
36230
|
+
},
|
|
36231
|
+
maximum: { type: "number" },
|
|
36232
|
+
exclusiveMaximum: { type: "number" },
|
|
36233
|
+
minimum: { type: "number" },
|
|
36234
|
+
exclusiveMinimum: { type: "number" },
|
|
36235
|
+
maxLength: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36236
|
+
minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36237
|
+
pattern: {
|
|
36238
|
+
type: "string",
|
|
36239
|
+
format: "regex"
|
|
36240
|
+
},
|
|
36241
|
+
maxItems: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36242
|
+
minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36243
|
+
uniqueItems: {
|
|
36244
|
+
type: "boolean",
|
|
36245
|
+
default: !1
|
|
36246
|
+
},
|
|
36247
|
+
maxContains: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36248
|
+
minContains: {
|
|
36249
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
36250
|
+
default: 1
|
|
36251
|
+
},
|
|
36252
|
+
maxProperties: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36253
|
+
minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36254
|
+
required: { $ref: "#/$defs/stringArray" },
|
|
36255
|
+
dependentRequired: {
|
|
36256
|
+
type: "object",
|
|
36257
|
+
additionalProperties: { $ref: "#/$defs/stringArray" }
|
|
36258
|
+
},
|
|
36259
|
+
const: !0,
|
|
36260
|
+
enum: {
|
|
36261
|
+
type: "array",
|
|
36262
|
+
items: !0
|
|
36263
|
+
},
|
|
36264
|
+
type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, {
|
|
36265
|
+
type: "array",
|
|
36266
|
+
items: { $ref: "#/$defs/simpleTypes" },
|
|
36267
|
+
minItems: 1,
|
|
36268
|
+
uniqueItems: !0
|
|
36269
|
+
}] }
|
|
36270
|
+
}, r1 = {
|
|
36271
|
+
nonNegativeInteger: {
|
|
36272
|
+
type: "integer",
|
|
36273
|
+
minimum: 0
|
|
36274
|
+
},
|
|
36275
|
+
nonNegativeIntegerDefault0: {
|
|
36276
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
36277
|
+
default: 0
|
|
36278
|
+
},
|
|
36279
|
+
simpleTypes: { enum: [
|
|
36280
|
+
"array",
|
|
36281
|
+
"boolean",
|
|
36282
|
+
"integer",
|
|
36283
|
+
"null",
|
|
36284
|
+
"number",
|
|
36285
|
+
"object",
|
|
36286
|
+
"string"
|
|
36287
|
+
] },
|
|
36288
|
+
stringArray: {
|
|
36289
|
+
type: "array",
|
|
36290
|
+
items: { type: "string" },
|
|
36291
|
+
uniqueItems: !0,
|
|
36292
|
+
default: []
|
|
36293
|
+
}
|
|
36294
|
+
}, i1 = {
|
|
36295
|
+
$schema: Z$,
|
|
36296
|
+
$id: Q$,
|
|
36297
|
+
$vocabulary: $$,
|
|
36298
|
+
$recursiveAnchor: !0,
|
|
36299
|
+
title: e1,
|
|
36300
|
+
type: t1,
|
|
36301
|
+
properties: n1,
|
|
36302
|
+
$defs: r1
|
|
36303
|
+
};
|
|
36304
|
+
})), o1 = /* @__PURE__ */ G(((e) => {
|
|
36305
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36306
|
+
var t = (r$(), _t(JQ).default), n = (p$(), _t(i$).default), r = (S$(), _t(m$).default), i = (j$(), _t(C$).default), a = (B$(), _t(M$).default), o = (Y$(), _t(V$).default), s = (a1(), _t(X$).default), c = ["/properties"];
|
|
36307
|
+
function l(e) {
|
|
36308
|
+
return [
|
|
36309
|
+
t,
|
|
36310
|
+
n,
|
|
36311
|
+
r,
|
|
36312
|
+
i,
|
|
36313
|
+
l(this, a),
|
|
36314
|
+
o,
|
|
36315
|
+
l(this, s)
|
|
36316
|
+
].forEach((e) => this.addMetaSchema(e, void 0, !1)), this;
|
|
36317
|
+
function l(t, n) {
|
|
36318
|
+
return e ? t.$dataMetaSchema(n, c) : n;
|
|
36319
|
+
}
|
|
36320
|
+
}
|
|
36321
|
+
e.default = l;
|
|
36322
|
+
})), s1 = /* @__PURE__ */ G(((e, t) => {
|
|
36323
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2019 = void 0;
|
|
36324
|
+
var n = BZ(), r = CQ(), i = BQ(), a = WQ(), o = qQ(), s = TQ(), c = o1(), l = "https://json-schema.org/draft/2019-09/schema", u = class extends n.default {
|
|
36325
|
+
constructor(e = {}) {
|
|
36326
|
+
super({
|
|
36327
|
+
...e,
|
|
36328
|
+
dynamicRef: !0,
|
|
36329
|
+
next: !0,
|
|
36330
|
+
unevaluated: !0
|
|
36331
|
+
});
|
|
36332
|
+
}
|
|
36333
|
+
_addVocabularies() {
|
|
36334
|
+
super._addVocabularies(), this.addVocabulary(i.default), r.default.forEach((e) => this.addVocabulary(e)), this.addVocabulary(a.default), this.addVocabulary(o.default), this.opts.discriminator && this.addKeyword(s.default);
|
|
36335
|
+
}
|
|
36336
|
+
_addDefaultMetaSchema() {
|
|
36337
|
+
super._addDefaultMetaSchema();
|
|
36338
|
+
let { $data: e, meta: t } = this.opts;
|
|
36339
|
+
t && (c.default.call(this, e), this.refs["http://json-schema.org/schema"] = l);
|
|
36340
|
+
}
|
|
36341
|
+
defaultMeta() {
|
|
36342
|
+
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(l) ? l : void 0);
|
|
36343
|
+
}
|
|
36344
|
+
};
|
|
36345
|
+
e.Ajv2019 = u, t.exports = e = u, t.exports.Ajv2019 = u, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = u;
|
|
36346
|
+
var d = wZ();
|
|
36347
|
+
Object.defineProperty(e, "KeywordCxt", {
|
|
36348
|
+
enumerable: !0,
|
|
36349
|
+
get: function() {
|
|
36350
|
+
return d.KeywordCxt;
|
|
36351
|
+
}
|
|
36352
|
+
});
|
|
36353
|
+
var f = lZ();
|
|
36354
|
+
Object.defineProperty(e, "_", {
|
|
36355
|
+
enumerable: !0,
|
|
36356
|
+
get: function() {
|
|
36357
|
+
return f._;
|
|
36358
|
+
}
|
|
36359
|
+
}), Object.defineProperty(e, "str", {
|
|
36360
|
+
enumerable: !0,
|
|
36361
|
+
get: function() {
|
|
36362
|
+
return f.str;
|
|
36363
|
+
}
|
|
36364
|
+
}), Object.defineProperty(e, "stringify", {
|
|
36365
|
+
enumerable: !0,
|
|
36366
|
+
get: function() {
|
|
36367
|
+
return f.stringify;
|
|
36368
|
+
}
|
|
36369
|
+
}), Object.defineProperty(e, "nil", {
|
|
36370
|
+
enumerable: !0,
|
|
36371
|
+
get: function() {
|
|
36372
|
+
return f.nil;
|
|
36373
|
+
}
|
|
36374
|
+
}), Object.defineProperty(e, "Name", {
|
|
36375
|
+
enumerable: !0,
|
|
36376
|
+
get: function() {
|
|
36377
|
+
return f.Name;
|
|
36378
|
+
}
|
|
36379
|
+
}), Object.defineProperty(e, "CodeGen", {
|
|
36380
|
+
enumerable: !0,
|
|
36381
|
+
get: function() {
|
|
36382
|
+
return f.CodeGen;
|
|
36383
|
+
}
|
|
36384
|
+
});
|
|
36385
|
+
var p = TZ();
|
|
36386
|
+
Object.defineProperty(e, "ValidationError", {
|
|
36387
|
+
enumerable: !0,
|
|
36388
|
+
get: function() {
|
|
36389
|
+
return p.default;
|
|
36390
|
+
}
|
|
36391
|
+
});
|
|
36392
|
+
var m = EZ();
|
|
36393
|
+
Object.defineProperty(e, "MissingRefError", {
|
|
36394
|
+
enumerable: !0,
|
|
36395
|
+
get: function() {
|
|
36396
|
+
return m.default;
|
|
36397
|
+
}
|
|
36398
|
+
});
|
|
36399
|
+
})), c1 = /* @__PURE__ */ G(((e) => {
|
|
35718
36400
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35719
36401
|
function t(e, t) {
|
|
35720
36402
|
return {
|
|
@@ -35866,9 +36548,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35866
36548
|
return !1;
|
|
35867
36549
|
}
|
|
35868
36550
|
}
|
|
35869
|
-
})),
|
|
36551
|
+
})), l1 = /* @__PURE__ */ G(((e) => {
|
|
35870
36552
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35871
|
-
var t =
|
|
36553
|
+
var t = FQ(), n = lZ(), r = n.operators, i = {
|
|
35872
36554
|
formatMaximum: {
|
|
35873
36555
|
okStr: "<=",
|
|
35874
36556
|
ok: r.LTE,
|
|
@@ -35928,9 +36610,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35928
36610
|
},
|
|
35929
36611
|
dependencies: ["format"]
|
|
35930
36612
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35931
|
-
})),
|
|
36613
|
+
})), u1 = /* @__PURE__ */ G(((e, t) => {
|
|
35932
36614
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35933
|
-
var n =
|
|
36615
|
+
var n = c1(), r = l1(), i = lZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35934
36616
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35935
36617
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35936
36618
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35946,9 +36628,9 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35946
36628
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35947
36629
|
}
|
|
35948
36630
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35949
|
-
})),
|
|
36631
|
+
})), d1 = /* @__PURE__ */ gt(FQ(), 1), f1 = /* @__PURE__ */ gt(s1(), 1), p1 = /* @__PURE__ */ gt(u1(), 1), m1 = {
|
|
35950
36632
|
required: () => "This field is required",
|
|
35951
|
-
type: (e) => `Should be "${
|
|
36633
|
+
type: (e) => `Should be "${g1(e)}".`,
|
|
35952
36634
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35953
36635
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35954
36636
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35964,76 +36646,83 @@ var iZ = /* @__PURE__ */ G(((e) => {
|
|
|
35964
36646
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35965
36647
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35966
36648
|
};
|
|
35967
|
-
function
|
|
35968
|
-
let n =
|
|
36649
|
+
function h1(e, t) {
|
|
36650
|
+
let n = m1[e.keyword];
|
|
35969
36651
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35970
36652
|
}
|
|
35971
|
-
function
|
|
36653
|
+
function g1(e) {
|
|
35972
36654
|
let t = e.params.type;
|
|
35973
36655
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35974
36656
|
}
|
|
35975
36657
|
//#endregion
|
|
35976
36658
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
|
|
35980
|
-
|
|
36659
|
+
var _1 = /* @__PURE__ */ new Set();
|
|
36660
|
+
function v1(e, t, n, r = {}) {
|
|
36661
|
+
let i = t === "" ? [] : t.split("."), a = {
|
|
36662
|
+
...r,
|
|
36663
|
+
root: n
|
|
36664
|
+
}, o = e.root, s = n, c = [];
|
|
36665
|
+
for (let e of i) {
|
|
36666
|
+
if (!o) return {
|
|
35981
36667
|
node: void 0,
|
|
35982
36668
|
value: void 0
|
|
35983
36669
|
};
|
|
35984
|
-
|
|
36670
|
+
let t = o, { node: n } = y1(t, s, c, a);
|
|
36671
|
+
/^\d+$/.test(e) ? (o = n.items, s = Array.isArray(s) ? s[Number(e)] : void 0) : (o = n.properties?.get(e) ?? t.properties?.get(e), s = s && typeof s == "object" ? s[e] : void 0), c.push(e);
|
|
35985
36672
|
}
|
|
35986
|
-
|
|
35987
|
-
node: UQ(HQ(i, a, n, r), r),
|
|
35988
|
-
value: a
|
|
35989
|
-
} : {
|
|
36673
|
+
if (!o) return {
|
|
35990
36674
|
node: void 0,
|
|
35991
|
-
value:
|
|
36675
|
+
value: s
|
|
36676
|
+
};
|
|
36677
|
+
let { node: l, hiddenByDisplayIf: u } = y1(o, s, i, a);
|
|
36678
|
+
return {
|
|
36679
|
+
node: b1(l, i),
|
|
36680
|
+
value: s,
|
|
36681
|
+
hiddenByDisplayIf: u
|
|
35992
36682
|
};
|
|
35993
36683
|
}
|
|
35994
|
-
function
|
|
35995
|
-
|
|
35996
|
-
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
|
|
36000
|
-
|
|
36001
|
-
|
|
36002
|
-
|
|
36003
|
-
|
|
36004
|
-
|
|
36684
|
+
function y1(e, t, n, r) {
|
|
36685
|
+
if (!e.properties && !e.variants?.length && !e.dependencyBranches?.length) return {
|
|
36686
|
+
node: e,
|
|
36687
|
+
hiddenByDisplayIf: _1
|
|
36688
|
+
};
|
|
36689
|
+
let i = jX(e, typeof t == "object" && t && !Array.isArray(t) ? t : {}, n.join("."), r);
|
|
36690
|
+
return {
|
|
36691
|
+
node: {
|
|
36692
|
+
...e,
|
|
36693
|
+
properties: new Map(i.visible.map((e) => [e.key, e.node]))
|
|
36694
|
+
},
|
|
36695
|
+
hiddenByDisplayIf: new Set(i.hiddenByDisplayIf)
|
|
36696
|
+
};
|
|
36005
36697
|
}
|
|
36006
|
-
function
|
|
36698
|
+
function b1(e, t) {
|
|
36007
36699
|
return e.displayIf ? {
|
|
36008
36700
|
...e,
|
|
36009
36701
|
displayIf: VJ(e.displayIf, t.join("."))
|
|
36010
36702
|
} : e;
|
|
36011
36703
|
}
|
|
36012
|
-
function WQ(e, t, n) {
|
|
36013
|
-
for (let [r, i] of e) {
|
|
36014
|
-
let e = PJ(t, BJ(r, n));
|
|
36015
|
-
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
36016
|
-
}
|
|
36017
|
-
return !0;
|
|
36018
|
-
}
|
|
36019
|
-
function GQ(e, t) {
|
|
36020
|
-
if (typeof t != "object" || !t) return;
|
|
36021
|
-
let n = t;
|
|
36022
|
-
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
36023
|
-
}
|
|
36024
36704
|
//#endregion
|
|
36025
36705
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
36026
|
-
var
|
|
36706
|
+
var x1 = T1(new d1.default({
|
|
36027
36707
|
strict: !1,
|
|
36028
36708
|
allErrors: !0
|
|
36029
|
-
})
|
|
36030
|
-
|
|
36031
|
-
|
|
36032
|
-
|
|
36033
|
-
|
|
36034
|
-
|
|
36035
|
-
|
|
36036
|
-
|
|
36709
|
+
})), S1 = T1(new f1.default({
|
|
36710
|
+
strict: !1,
|
|
36711
|
+
allErrors: !0
|
|
36712
|
+
})), C1 = /^https?:\/\/json-schema\.org\/draft\/2019-09\/schema#?$/;
|
|
36713
|
+
function w1(e) {
|
|
36714
|
+
let t = e.$schema;
|
|
36715
|
+
return typeof t == "string" && C1.test(t) ? S1 : x1;
|
|
36716
|
+
}
|
|
36717
|
+
function T1(e) {
|
|
36718
|
+
(0, p1.default)(e);
|
|
36719
|
+
for (let t of ["text", "gio-code-editor"]) e.addFormat(t, !0);
|
|
36720
|
+
return e.removeKeyword("id"), e.addKeyword({
|
|
36721
|
+
keyword: "id",
|
|
36722
|
+
validate: () => !0
|
|
36723
|
+
}), e;
|
|
36724
|
+
}
|
|
36725
|
+
function E1(e, t = {}) {
|
|
36037
36726
|
let n;
|
|
36038
36727
|
try {
|
|
36039
36728
|
n = uY(e);
|
|
@@ -36047,9 +36736,9 @@ function qQ(e, t = {}) {
|
|
|
36047
36736
|
} }
|
|
36048
36737
|
});
|
|
36049
36738
|
}
|
|
36050
|
-
let r = n.root.schema, i =
|
|
36739
|
+
let r = n.root.schema, { variantPicks: i } = t, a = w1(r), o;
|
|
36051
36740
|
try {
|
|
36052
|
-
|
|
36741
|
+
o = a.compile(r);
|
|
36053
36742
|
} catch (e) {
|
|
36054
36743
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36055
36744
|
return () => ({
|
|
@@ -36060,83 +36749,171 @@ function qQ(e, t = {}) {
|
|
|
36060
36749
|
} }
|
|
36061
36750
|
});
|
|
36062
36751
|
}
|
|
36063
|
-
|
|
36064
|
-
let
|
|
36065
|
-
let
|
|
36066
|
-
|
|
36752
|
+
a.removeSchema(r);
|
|
36753
|
+
let s = async (e, r, a) => {
|
|
36754
|
+
let s = o(e) ? [] : o.errors ?? [], c = V1(n.root, e, "", "", {
|
|
36755
|
+
root: e,
|
|
36756
|
+
context: t.context,
|
|
36757
|
+
variantPicks: i
|
|
36758
|
+
}), l = [...s, ...c];
|
|
36759
|
+
if (l.length === 0) return {
|
|
36067
36760
|
values: e,
|
|
36068
36761
|
errors: {}
|
|
36069
|
-
}
|
|
36762
|
+
};
|
|
36763
|
+
let u = {
|
|
36764
|
+
context: t.context,
|
|
36765
|
+
variantPicks: i
|
|
36766
|
+
};
|
|
36767
|
+
return {
|
|
36070
36768
|
values: {},
|
|
36071
|
-
errors:
|
|
36769
|
+
errors: R1(L1(l.filter((t) => !D1(t, n, e, u))), a.criteriaMode ?? "firstError")
|
|
36072
36770
|
};
|
|
36073
36771
|
};
|
|
36074
|
-
if (!t.basePath) return
|
|
36075
|
-
let { basePath:
|
|
36772
|
+
if (!t.basePath) return s;
|
|
36773
|
+
let { basePath: c } = t;
|
|
36076
36774
|
return async (e, t, n) => {
|
|
36077
|
-
let r = await
|
|
36775
|
+
let r = await s(e[c] ?? {}, t, n);
|
|
36078
36776
|
return Object.keys(r.errors).length === 0 ? {
|
|
36079
36777
|
values: e,
|
|
36080
36778
|
errors: {}
|
|
36081
36779
|
} : {
|
|
36082
36780
|
values: {},
|
|
36083
|
-
errors: { [
|
|
36781
|
+
errors: { [c]: r.errors }
|
|
36084
36782
|
};
|
|
36085
36783
|
};
|
|
36086
36784
|
}
|
|
36087
|
-
function
|
|
36088
|
-
let { node:
|
|
36089
|
-
if (!
|
|
36785
|
+
function D1(e, t, n, r) {
|
|
36786
|
+
let { node: i, value: a, hiddenByDisplayIf: o } = v1(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(oY) : []).join("."), n, r);
|
|
36787
|
+
if (!i) return !1;
|
|
36090
36788
|
switch (e.keyword) {
|
|
36091
36789
|
case "const":
|
|
36092
|
-
case "enum": return
|
|
36790
|
+
case "enum": return I1(i.schema, a);
|
|
36093
36791
|
case "required": {
|
|
36094
|
-
|
|
36095
|
-
|
|
36792
|
+
if (O1(e, t, n, r.variantPicks)) return !0;
|
|
36793
|
+
let a = e.params.missingProperty;
|
|
36794
|
+
return typeof a != "string" || !i.properties || i.properties.has(a) ? !1 : k1(i.schema, a) ? o?.has(a) === !0 || F1(e.schemaPath) : !0;
|
|
36096
36795
|
}
|
|
36097
36796
|
default: return !1;
|
|
36098
36797
|
}
|
|
36099
36798
|
}
|
|
36100
|
-
function
|
|
36799
|
+
function O1(e, t, n, r) {
|
|
36800
|
+
let i = e.schemaPath.replace(/^#\/?/, "").split("/").map(oY);
|
|
36801
|
+
i.pop();
|
|
36802
|
+
let a = e.instancePath ? e.instancePath.slice(1).split("/").map(oY) : [], o = t.root, s, c = n, l = 0;
|
|
36803
|
+
for (let e = 0; e < i.length && o; e++) {
|
|
36804
|
+
let t = i[e];
|
|
36805
|
+
if (t === "properties") {
|
|
36806
|
+
let t = i[++e];
|
|
36807
|
+
if (a[l] !== t) return !1;
|
|
36808
|
+
o = s ? s.properties.get(t) : o.properties?.get(t), s = void 0, c = A1(c) ? c[t] : void 0, l++;
|
|
36809
|
+
} else if (t === "items" && !s && !/^\d+$/.test(i[e + 1] ?? "")) {
|
|
36810
|
+
let e = a[l];
|
|
36811
|
+
if (e === void 0 || !/^\d+$/.test(e)) return !1;
|
|
36812
|
+
o = o.items, c = Array.isArray(c) ? c[Number(e)] : void 0, l++;
|
|
36813
|
+
} else if ((t === "oneOf" || t === "anyOf") && !s) {
|
|
36814
|
+
let n = o.schema[t]?.[Number(i[++e])], u = o.variants ?? [], d = u.findIndex((e) => e.raw === n);
|
|
36815
|
+
if (d < 0) return !1;
|
|
36816
|
+
let f = A1(c) ? c : {}, p = a.slice(0, l).join(".");
|
|
36817
|
+
if (rX(u.map((e) => e.raw), p, r, (e) => f[e]) !== d) return !0;
|
|
36818
|
+
s = u[d];
|
|
36819
|
+
} else return !1;
|
|
36820
|
+
}
|
|
36821
|
+
return !1;
|
|
36822
|
+
}
|
|
36823
|
+
function k1(e, t) {
|
|
36824
|
+
if (e.$ref !== void 0 || e.properties && Object.prototype.hasOwnProperty.call(e.properties, t)) return !0;
|
|
36825
|
+
for (let n of Object.keys(e.patternProperties ?? {})) try {
|
|
36826
|
+
if (new RegExp(n).test(t)) return !0;
|
|
36827
|
+
} catch {
|
|
36828
|
+
return !0;
|
|
36829
|
+
}
|
|
36830
|
+
let n = [
|
|
36831
|
+
...e.oneOf ?? [],
|
|
36832
|
+
...e.anyOf ?? [],
|
|
36833
|
+
...e.allOf ?? [],
|
|
36834
|
+
...[
|
|
36835
|
+
e.if,
|
|
36836
|
+
e.then,
|
|
36837
|
+
e.else
|
|
36838
|
+
].filter((e) => typeof e == "object" && !!e)
|
|
36839
|
+
];
|
|
36840
|
+
for (let t of Object.values(e.dependencies ?? {})) !Array.isArray(t) && typeof t == "object" && n.push(t);
|
|
36841
|
+
return n.some((e) => k1(e, t));
|
|
36842
|
+
}
|
|
36843
|
+
function A1(e) {
|
|
36844
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
36845
|
+
}
|
|
36846
|
+
var j1 = new Set([
|
|
36847
|
+
"properties",
|
|
36848
|
+
"patternProperties",
|
|
36849
|
+
"dependencies",
|
|
36850
|
+
"definitions",
|
|
36851
|
+
"$defs"
|
|
36852
|
+
]), M1 = new Set([
|
|
36853
|
+
"oneOf",
|
|
36854
|
+
"anyOf",
|
|
36855
|
+
"allOf"
|
|
36856
|
+
]), N1 = new Set([
|
|
36857
|
+
"properties",
|
|
36858
|
+
"patternProperties",
|
|
36859
|
+
"additionalProperties",
|
|
36860
|
+
"items",
|
|
36861
|
+
"additionalItems"
|
|
36862
|
+
]), P1 = new Set([
|
|
36863
|
+
"oneOf",
|
|
36864
|
+
"anyOf",
|
|
36865
|
+
"dependencies"
|
|
36866
|
+
]);
|
|
36867
|
+
function F1(e) {
|
|
36868
|
+
let t = e.replace(/^#\/?/, "").split("/").map(oY);
|
|
36869
|
+
t.pop();
|
|
36870
|
+
let n = [];
|
|
36871
|
+
for (let e = 0; e < t.length; e++) {
|
|
36872
|
+
let r = t[e];
|
|
36873
|
+
N1.has(r) ? n = [] : n.push(r), (j1.has(r) || M1.has(r) || r === "items" && /^\d+$/.test(t[e + 1] ?? "")) && e++;
|
|
36874
|
+
}
|
|
36875
|
+
return n.some((e) => P1.has(e));
|
|
36876
|
+
}
|
|
36877
|
+
function I1(e, t) {
|
|
36101
36878
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
36102
36879
|
}
|
|
36103
|
-
function
|
|
36880
|
+
function L1(e) {
|
|
36104
36881
|
return e.filter((t) => {
|
|
36105
36882
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
36106
|
-
let n =
|
|
36883
|
+
let n = z1(t), r = n === "" ? "" : `${n}.`;
|
|
36107
36884
|
return !e.some((e) => {
|
|
36108
36885
|
if (e === t) return !1;
|
|
36109
|
-
let i =
|
|
36886
|
+
let i = z1(e);
|
|
36110
36887
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
36111
36888
|
});
|
|
36112
36889
|
});
|
|
36113
36890
|
}
|
|
36114
|
-
function
|
|
36891
|
+
function R1(e, t) {
|
|
36115
36892
|
let n = /* @__PURE__ */ new Map();
|
|
36116
36893
|
for (let t of e) {
|
|
36117
|
-
let e =
|
|
36894
|
+
let e = z1(t), r = n.get(e) ?? [];
|
|
36118
36895
|
r.push(t), n.set(e, r);
|
|
36119
36896
|
}
|
|
36120
36897
|
let r = {};
|
|
36121
36898
|
for (let [e, i] of n) {
|
|
36122
36899
|
let n = {
|
|
36123
36900
|
type: i[0].keyword,
|
|
36124
|
-
message:
|
|
36901
|
+
message: h1(i[0], e)
|
|
36125
36902
|
};
|
|
36126
36903
|
if (t === "all" && i.length > 0) {
|
|
36127
36904
|
let t = {};
|
|
36128
|
-
for (let n of i) t[n.keyword] =
|
|
36905
|
+
for (let n of i) t[n.keyword] = h1(n, e);
|
|
36129
36906
|
n.types = t;
|
|
36130
36907
|
}
|
|
36131
|
-
|
|
36908
|
+
B1(r, e === "" ? "root" : e, n);
|
|
36132
36909
|
}
|
|
36133
36910
|
return r;
|
|
36134
36911
|
}
|
|
36135
|
-
function
|
|
36912
|
+
function z1(e) {
|
|
36136
36913
|
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(oY) : [];
|
|
36137
36914
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
36138
36915
|
}
|
|
36139
|
-
function
|
|
36916
|
+
function B1(e, t, n) {
|
|
36140
36917
|
let r = t.split("."), i = e;
|
|
36141
36918
|
for (let e = 0; e < r.length - 1; e++) {
|
|
36142
36919
|
let t = r[e];
|
|
@@ -36144,62 +36921,161 @@ function $Q(e, t, n) {
|
|
|
36144
36921
|
}
|
|
36145
36922
|
i[r[r.length - 1]] = n;
|
|
36146
36923
|
}
|
|
36147
|
-
function
|
|
36924
|
+
function V1(e, t, n, r, i) {
|
|
36148
36925
|
if (!e) return [];
|
|
36149
|
-
let
|
|
36150
|
-
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let
|
|
36151
|
-
let e = t.map((e) => typeof e == "object" && e ? e[
|
|
36926
|
+
let a = [];
|
|
36927
|
+
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let n of e.schema.gioConfig.uniqueItemProperties) {
|
|
36928
|
+
let e = t.map((e) => typeof e == "object" && e ? e[n] : void 0).filter((e) => e != null);
|
|
36152
36929
|
if (new Set(e).size !== e.length) {
|
|
36153
|
-
|
|
36930
|
+
a.push({
|
|
36154
36931
|
keyword: "uniqueItemProperties",
|
|
36155
|
-
instancePath:
|
|
36932
|
+
instancePath: r,
|
|
36156
36933
|
schemaPath: "",
|
|
36157
|
-
params: { propertyName:
|
|
36934
|
+
params: { propertyName: n },
|
|
36158
36935
|
message: "must be unique"
|
|
36159
36936
|
});
|
|
36160
36937
|
break;
|
|
36161
36938
|
}
|
|
36162
36939
|
}
|
|
36163
|
-
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
let a = t, o = rX(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
36167
|
-
if (s) for (let [e, t] of s.properties) i.push(...e$(t, a[e], `${n}/${aY(e)}`, r));
|
|
36940
|
+
if (typeof t == "object" && t && !Array.isArray(t)) {
|
|
36941
|
+
let o = t;
|
|
36942
|
+
for (let t of jX(e, o, n, i).visible) a.push(...V1(t.node, o[t.key], t.path, `${r}/${aY(t.key)}`, i));
|
|
36168
36943
|
}
|
|
36169
|
-
return e.items && Array.isArray(t) && t.forEach((t,
|
|
36170
|
-
|
|
36171
|
-
|
|
36944
|
+
return e.items && Array.isArray(t) && t.forEach((t, o) => {
|
|
36945
|
+
let s = n ? `${n}.${o}` : String(o);
|
|
36946
|
+
a.push(...V1(e.items, t, s, `${r}/${o}`, i));
|
|
36947
|
+
}), a;
|
|
36172
36948
|
}
|
|
36173
36949
|
//#endregion
|
|
36174
|
-
//#region src/composed/JsonSchemaForm/
|
|
36175
|
-
function
|
|
36176
|
-
let
|
|
36177
|
-
|
|
36178
|
-
|
|
36179
|
-
|
|
36180
|
-
|
|
36181
|
-
};
|
|
36182
|
-
|
|
36950
|
+
//#region src/composed/JsonSchemaForm/schema/displayedErrorPaths.ts
|
|
36951
|
+
function H1(e, t, n, r) {
|
|
36952
|
+
let i = /* @__PURE__ */ new Set(), a = RX(e);
|
|
36953
|
+
return a && U1(a, t, "", {
|
|
36954
|
+
root: t,
|
|
36955
|
+
context: n,
|
|
36956
|
+
variantPicks: r
|
|
36957
|
+
}, i), i;
|
|
36958
|
+
}
|
|
36959
|
+
function U1(e, t, n, r, i) {
|
|
36960
|
+
if (e.schema.deprecated !== !0) switch (CX(e.schema)) {
|
|
36961
|
+
case "object": {
|
|
36962
|
+
let a = W1(t) ? t : {}, o = jX(e, a, n, r), s = o.activeVariantIndex === void 0 ? void 0 : e.variants?.[o.activeVariantIndex];
|
|
36963
|
+
for (let e of o.visible) e.node.schema.const !== void 0 && s?.properties.get(e.key) === e.node || U1(e.node, a[e.key], e.path, r, i);
|
|
36964
|
+
return;
|
|
36965
|
+
}
|
|
36966
|
+
case "array":
|
|
36967
|
+
if (n && i.add(n), e.items && Array.isArray(t)) {
|
|
36968
|
+
let { items: a } = e;
|
|
36969
|
+
t.forEach((e, t) => U1(a, e, n ? `${n}.${t}` : String(t), r, i));
|
|
36970
|
+
}
|
|
36971
|
+
return;
|
|
36972
|
+
case "null":
|
|
36973
|
+
case void 0: return;
|
|
36974
|
+
default: n && i.add(n);
|
|
36975
|
+
}
|
|
36976
|
+
}
|
|
36977
|
+
function W1(e) {
|
|
36978
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
36979
|
+
}
|
|
36980
|
+
//#endregion
|
|
36981
|
+
//#region src/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.ts
|
|
36982
|
+
var G1 = new Set([
|
|
36983
|
+
"type",
|
|
36984
|
+
"message",
|
|
36985
|
+
"types",
|
|
36986
|
+
"ref"
|
|
36987
|
+
]);
|
|
36988
|
+
function K1(e, t, n, r, i) {
|
|
36989
|
+
let a = RX(e), o = {
|
|
36990
|
+
root: t,
|
|
36991
|
+
context: r,
|
|
36992
|
+
variantPicks: i
|
|
36993
|
+
}, s = q1(n, (e) => !!a && X1(a, t, e ? `${e}.root` : "root", o) !== void 0);
|
|
36994
|
+
if (s.length === 0) return [];
|
|
36995
|
+
let c = H1(e, t, r, i);
|
|
36996
|
+
return s.filter((e) => !c.has(e.path)).map((e) => ({
|
|
36997
|
+
...e,
|
|
36998
|
+
labels: a ? Y1(a, t, e.path, o) : $1(e.path)
|
|
36999
|
+
}));
|
|
37000
|
+
}
|
|
37001
|
+
function q1(e, t = () => !1, n = "") {
|
|
37002
|
+
if (typeof e != "object" || !e) return [];
|
|
37003
|
+
let r = e, i = [], a = typeof r.type == "string";
|
|
37004
|
+
a && i.push({
|
|
37005
|
+
path: n,
|
|
37006
|
+
messages: J1(r)
|
|
37007
|
+
});
|
|
37008
|
+
for (let [e, o] of Object.entries(r)) {
|
|
37009
|
+
if (a && G1.has(e)) continue;
|
|
37010
|
+
let r = e === "root" && !t(n) ? n : n ? `${n}.${e}` : e;
|
|
37011
|
+
i.push(...q1(o, t, r));
|
|
37012
|
+
}
|
|
36183
37013
|
return i;
|
|
36184
37014
|
}
|
|
36185
|
-
function
|
|
37015
|
+
function J1(e) {
|
|
37016
|
+
let t = e.types;
|
|
37017
|
+
if (typeof t == "object" && t) {
|
|
37018
|
+
let e = Object.values(t).flat().filter((e) => typeof e == "string");
|
|
37019
|
+
if (e.length > 0) return [...new Set(e)];
|
|
37020
|
+
}
|
|
37021
|
+
return [typeof e.message == "string" && e.message ? e.message : "Invalid value"];
|
|
37022
|
+
}
|
|
37023
|
+
function Y1(e, t, n, r) {
|
|
37024
|
+
return Z1(e, t, n, r).map(({ segment: e, parent: t, node: n }) => t?.items && n === t.items ? `${AY(n.schema)} ${Number(e) + 1}` : n ? T(n.schema, e) : e);
|
|
37025
|
+
}
|
|
37026
|
+
function X1(e, t, n, r) {
|
|
37027
|
+
return Z1(e, t, n, r).at(-1)?.node;
|
|
37028
|
+
}
|
|
37029
|
+
function Z1(e, t, n, r) {
|
|
37030
|
+
let i = [], a = e, o = t, s = "";
|
|
37031
|
+
for (let e of $1(n)) {
|
|
37032
|
+
let t = a;
|
|
37033
|
+
a = t?.items && /^\d+$/.test(e) ? t.items : t ? Q1(t, o, s, e, r) : void 0, i.push({
|
|
37034
|
+
segment: e,
|
|
37035
|
+
parent: t,
|
|
37036
|
+
node: a
|
|
37037
|
+
}), o = typeof o == "object" && o ? o[e] : void 0, s = s ? `${s}.${e}` : e;
|
|
37038
|
+
}
|
|
37039
|
+
return i;
|
|
37040
|
+
}
|
|
37041
|
+
function Q1(e, t, n, r, i) {
|
|
37042
|
+
let a = jX(e, typeof t == "object" && t && !Array.isArray(t) ? t : {}, n, i).visible.find((e) => e.key === r);
|
|
37043
|
+
return a ? a.node : e.properties?.get(r) ?? e.variants?.map((e) => e.properties.get(r)).find((e) => e !== void 0) ?? e.dependencyBranches?.map((e) => e.properties.get(r)).find((e) => e !== void 0);
|
|
37044
|
+
}
|
|
37045
|
+
function $1(e) {
|
|
37046
|
+
return e ? e.split(".") : [];
|
|
37047
|
+
}
|
|
37048
|
+
//#endregion
|
|
37049
|
+
//#region src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts
|
|
37050
|
+
function e0(e, t, n, r) {
|
|
37051
|
+
let i = RX(e);
|
|
37052
|
+
if (!i) return t;
|
|
37053
|
+
let a = structuredClone(t), o = {
|
|
37054
|
+
root: a,
|
|
37055
|
+
context: n,
|
|
37056
|
+
variantPicks: r
|
|
37057
|
+
};
|
|
37058
|
+
for (; t0(i, a, "", o););
|
|
37059
|
+
return a;
|
|
37060
|
+
}
|
|
37061
|
+
function t0(e, t, n, r) {
|
|
36186
37062
|
if (Array.isArray(t)) {
|
|
36187
37063
|
let { items: i } = e;
|
|
36188
37064
|
if (!i) return !1;
|
|
36189
37065
|
let a = !1;
|
|
36190
37066
|
return t.forEach((e, t) => {
|
|
36191
|
-
|
|
37067
|
+
t0(i, e, n ? `${n}.${t}` : String(t), r) && (a = !0);
|
|
36192
37068
|
}), a;
|
|
36193
37069
|
}
|
|
36194
37070
|
if (typeof t != "object" || !t) return !1;
|
|
36195
|
-
let i = t, { visible: a, hiddenKeys: o } =
|
|
36196
|
-
for (let t of o) !(t in i) ||
|
|
36197
|
-
for (let e of a) e.key in i &&
|
|
37071
|
+
let i = t, { visible: a, hiddenKeys: o } = jX(e, i, n, r), s = !1;
|
|
37072
|
+
for (let t of o) !(t in i) || FX(e, t) || (delete i[t], s = !0);
|
|
37073
|
+
for (let e of a) e.key in i && t0(e.node, i[e.key], e.path, r) && (s = !0);
|
|
36198
37074
|
return s;
|
|
36199
37075
|
}
|
|
36200
37076
|
//#endregion
|
|
36201
37077
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
36202
|
-
var
|
|
37078
|
+
var n0 = {
|
|
36203
37079
|
navigation: null,
|
|
36204
37080
|
contextSidebar: null,
|
|
36205
37081
|
breadcrumbs: [],
|
|
@@ -36210,9 +37086,9 @@ var r$ = {
|
|
|
36210
37086
|
banner: null,
|
|
36211
37087
|
bannerSticky: !1,
|
|
36212
37088
|
footer: null
|
|
36213
|
-
},
|
|
36214
|
-
function
|
|
36215
|
-
let [t, n] = Xe(
|
|
37089
|
+
}, r0 = Ie(null);
|
|
37090
|
+
function i0({ children: e }) {
|
|
37091
|
+
let [t, n] = Xe(n0), r = Be((e, t) => {
|
|
36216
37092
|
n((n) => ({
|
|
36217
37093
|
...n,
|
|
36218
37094
|
[e]: t
|
|
@@ -36224,7 +37100,7 @@ function a$({ children: e }) {
|
|
|
36224
37100
|
}));
|
|
36225
37101
|
}, []), a = Be((e) => {
|
|
36226
37102
|
n((t) => {
|
|
36227
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
37103
|
+
let n = Object.fromEntries(e.map((e) => [e, n0[e]]));
|
|
36228
37104
|
return {
|
|
36229
37105
|
...t,
|
|
36230
37106
|
...n
|
|
@@ -36241,20 +37117,20 @@ function a$({ children: e }) {
|
|
|
36241
37117
|
i,
|
|
36242
37118
|
a
|
|
36243
37119
|
]);
|
|
36244
|
-
return /* @__PURE__ */ U(
|
|
37120
|
+
return /* @__PURE__ */ U(r0.Provider, {
|
|
36245
37121
|
value: o,
|
|
36246
37122
|
children: e
|
|
36247
37123
|
});
|
|
36248
37124
|
}
|
|
36249
|
-
function
|
|
36250
|
-
let e = Ve(
|
|
37125
|
+
function a0() {
|
|
37126
|
+
let e = Ve(r0);
|
|
36251
37127
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
36252
37128
|
return e;
|
|
36253
37129
|
}
|
|
36254
37130
|
//#endregion
|
|
36255
37131
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
36256
|
-
function
|
|
36257
|
-
let { setSlots: n, resetSlots: r } =
|
|
37132
|
+
function o0(e, t = []) {
|
|
37133
|
+
let { setSlots: n, resetSlots: r } = a0();
|
|
36258
37134
|
Ke(() => {
|
|
36259
37135
|
n(e);
|
|
36260
37136
|
let t = Object.keys(e);
|
|
@@ -36269,7 +37145,7 @@ function s$(e, t = []) {
|
|
|
36269
37145
|
}
|
|
36270
37146
|
//#endregion
|
|
36271
37147
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
36272
|
-
function
|
|
37148
|
+
function s0({ children: e, className: n, "data-testid": r }) {
|
|
36273
37149
|
return /* @__PURE__ */ U("div", {
|
|
36274
37150
|
"data-slot": "page-focused",
|
|
36275
37151
|
"data-testid": r,
|
|
@@ -36277,10 +37153,10 @@ function c$({ children: e, className: n, "data-testid": r }) {
|
|
|
36277
37153
|
children: e
|
|
36278
37154
|
});
|
|
36279
37155
|
}
|
|
36280
|
-
|
|
37156
|
+
s0.displayName = "PageFocused";
|
|
36281
37157
|
//#endregion
|
|
36282
37158
|
//#region src/composed/PageHeader/PageHeader.tsx
|
|
36283
|
-
function
|
|
37159
|
+
function c0({ title: e, description: n, actions: r, children: i, className: a, "data-testid": o }) {
|
|
36284
37160
|
return /* @__PURE__ */ W("header", {
|
|
36285
37161
|
"data-slot": "page-header",
|
|
36286
37162
|
"data-testid": o,
|
|
@@ -36312,10 +37188,10 @@ function l$({ title: e, description: n, actions: r, children: i, className: a, "
|
|
|
36312
37188
|
}) : null]
|
|
36313
37189
|
});
|
|
36314
37190
|
}
|
|
36315
|
-
|
|
37191
|
+
c0.displayName = "PageHeader";
|
|
36316
37192
|
//#endregion
|
|
36317
37193
|
//#region src/composed/SearchField/SearchField.tsx
|
|
36318
|
-
function
|
|
37194
|
+
function l0({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, "data-testid": s, ...c }) {
|
|
36319
37195
|
let [l, u] = Xe(t), d = Ye(null), f = Ye(t), p = Ye(void 0), m = Ye(n);
|
|
36320
37196
|
Ge(e, () => d.current, []), Ue(() => {
|
|
36321
37197
|
m.current = n;
|
|
@@ -36375,10 +37251,10 @@ function u$({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
|
|
|
36375
37251
|
]
|
|
36376
37252
|
});
|
|
36377
37253
|
}
|
|
36378
|
-
|
|
37254
|
+
l0.displayName = "SearchField";
|
|
36379
37255
|
//#endregion
|
|
36380
37256
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
36381
|
-
var
|
|
37257
|
+
var u0 = [
|
|
36382
37258
|
{
|
|
36383
37259
|
value: "light",
|
|
36384
37260
|
label: "Light"
|
|
@@ -36392,48 +37268,56 @@ var d$ = [
|
|
|
36392
37268
|
label: "System"
|
|
36393
37269
|
}
|
|
36394
37270
|
];
|
|
36395
|
-
function
|
|
36396
|
-
let
|
|
37271
|
+
function d0({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o, "data-testid": s }) {
|
|
37272
|
+
let c = i ?? e.slice(0, 2).toUpperCase(), { mode: l, setMode: u } = Me();
|
|
36397
37273
|
return /* @__PURE__ */ W(bL, { children: [/* @__PURE__ */ U(SL, {
|
|
36398
37274
|
asChild: !0,
|
|
36399
37275
|
children: /* @__PURE__ */ U("button", {
|
|
36400
37276
|
type: "button",
|
|
36401
37277
|
className: t("rounded-full ring-ring outline-none focus-visible:ring-2", a),
|
|
36402
37278
|
"aria-label": "User menu",
|
|
37279
|
+
"data-testid": s,
|
|
36403
37280
|
children: /* @__PURE__ */ W(Uv, { children: [r && /* @__PURE__ */ U(Wv, {
|
|
36404
37281
|
src: r,
|
|
36405
37282
|
alt: e
|
|
36406
|
-
}), /* @__PURE__ */ U(Gv, { children:
|
|
37283
|
+
}), /* @__PURE__ */ U(Gv, { children: c })] })
|
|
36407
37284
|
})
|
|
36408
37285
|
}), /* @__PURE__ */ W(CL, {
|
|
36409
37286
|
align: "end",
|
|
36410
37287
|
className: "min-w-48",
|
|
37288
|
+
"data-testid": J(s, "content"),
|
|
36411
37289
|
children: [
|
|
36412
37290
|
/* @__PURE__ */ W(kL, {
|
|
36413
37291
|
className: "flex flex-col gap-0.5",
|
|
36414
|
-
children: [/* @__PURE__ */ U("span", {
|
|
37292
|
+
children: [/* @__PURE__ */ U("span", {
|
|
37293
|
+
"data-testid": J(s, "name"),
|
|
37294
|
+
children: e
|
|
37295
|
+
}), n && /* @__PURE__ */ U("span", {
|
|
36415
37296
|
className: "text-xs font-normal text-muted-foreground",
|
|
37297
|
+
"data-testid": J(s, "email"),
|
|
36416
37298
|
children: n
|
|
36417
37299
|
})]
|
|
36418
37300
|
}),
|
|
36419
37301
|
/* @__PURE__ */ U(AL, {}),
|
|
36420
37302
|
/* @__PURE__ */ U(kL, { children: "Theme" }),
|
|
36421
37303
|
/* @__PURE__ */ U(DL, {
|
|
36422
|
-
value:
|
|
36423
|
-
onValueChange: (e) =>
|
|
36424
|
-
children:
|
|
37304
|
+
value: l,
|
|
37305
|
+
onValueChange: (e) => u(e),
|
|
37306
|
+
children: u0.map((e) => /* @__PURE__ */ U(OL, {
|
|
36425
37307
|
value: e.value,
|
|
37308
|
+
"data-testid": J(s, `theme-option-${e.value}`),
|
|
36426
37309
|
children: e.label
|
|
36427
37310
|
}, e.value))
|
|
36428
37311
|
}),
|
|
36429
37312
|
/* @__PURE__ */ U(AL, {}),
|
|
36430
37313
|
/* @__PURE__ */ U(TL, {
|
|
36431
37314
|
onSelect: o,
|
|
37315
|
+
"data-testid": J(s, "sign-out"),
|
|
36432
37316
|
children: "Sign out"
|
|
36433
37317
|
})
|
|
36434
37318
|
]
|
|
36435
37319
|
})] });
|
|
36436
37320
|
}
|
|
36437
|
-
|
|
37321
|
+
d0.displayName = "TopNavUser";
|
|
36438
37322
|
//#endregion
|
|
36439
|
-
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, aq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, sq as CopyableCell, aG as CopyableText,
|
|
37323
|
+
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, aq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, sq as CopyableCell, aG as CopyableText, n0 as DEFAULT_SLOTS, YK as DataTable, XK as DataTableColumnHeader, lq as DataTableEmptyState, MK as DataTablePagination, UK as DataTableViewOptions, iq as DateCell, vJ as DatePicker, yJ as DateRangePicker, SJ as DateTimePicker, TJ as DateTimeRangePicker, TF as Dialog, OF as DialogClose, AF as DialogContent, PF as DialogDescription, MF as DialogFooter, jF as DialogHeader, kF as DialogOverlay, DF as DialogPortal, NF as DialogTitle, EF as DialogTrigger, uL as Drawer, pL as DrawerClose, hL as DrawerContent, yL as DrawerDescription, _L as DrawerFooter, gL as DrawerHeader, mL as DrawerOverlay, fL as DrawerPortal, vL as DrawerTitle, dL as DrawerTrigger, bL as DropdownMenu, EL as DropdownMenuCheckboxItem, CL as DropdownMenuContent, wL as DropdownMenuGroup, TL as DropdownMenuItem, kL as DropdownMenuLabel, xL as DropdownMenuPortal, DL as DropdownMenuRadioGroup, OL as DropdownMenuRadioItem, AL as DropdownMenuSeparator, jL as DropdownMenuShortcut, ML as DropdownMenuSub, PL as DropdownMenuSubContent, NL as DropdownMenuSubTrigger, SL as DropdownMenuTrigger, DJ as ElCheatSheetTrigger, FL as Empty, VL as EmptyContent, BL as EmptyDescription, IL as EmptyHeader, RL as EmptyMedia, zL as EmptyTitle, OJ as FacetedFilter, k as Field, w as FieldContent, C as FieldDescription, _ as FieldError, L as FieldGroup, R as FieldLabel, y as FieldLegend, te as FieldSeparator, h as FieldSet, i as FieldTitle, NJ as FileUpload, Fz as FileUploadInput, MJ as FileUploadItem, Iz as HoverCard, Rz as HoverCardContent, Vz as HoverCardDescription, zz as HoverCardHeader, Bz as HoverCardTitle, Lz as HoverCardTrigger, QA as Input, $A as InputGroup, tj as InputGroupAddon, rj as InputGroupButton, aj as InputGroupInput, ij as InputGroupText, oj as InputGroupTextarea, Gz as Item, Zz as ItemActions, Jz as ItemContent, Xz as ItemDescription, $z as ItemFooter, Hz as ItemGroup, Qz as ItemHeader, qz as ItemMedia, Uz as ItemSeparator, Yz as ItemTitle, kX as JsonSchemaForm, eB as Kbd, tB as KbdGroup, ee as Label, i0 as LayoutSlotsProvider, iB as Logo, oq as MonoCell, s0 as PageFocused, c0 as PageHeader, aB as Pagination, oB as PaginationContent, dB as PaginationEllipsis, sB as PaginationItem, cB as PaginationLink, uB as PaginationNext, lB as PaginationPrevious, gX as PasswordInput, fB as Popover, hB as PopoverAnchor, mB as PopoverContent, vB as PopoverDescription, gB as PopoverHeader, _B as PopoverTitle, pB as PopoverTrigger, yt as PortalContainerProvider, yB as Progress, xB as Prose, SB as RadioGroup, CB as RadioGroupItem, xH as ResizableHandle, bH as ResizablePanel, yH as ResizablePanelGroup, SH as ScrollArea, CH as ScrollBar, l0 as SearchField, wH as Select, OH as SelectContent, TH as SelectGroup, AH as SelectItem, kH as SelectLabel, NH as SelectScrollDownButton, MH as SelectScrollUpButton, jH as SelectSeparator, DH as SelectTrigger, EH as SelectValue, PW as SelectorDropdown, FW as SelectorTriggerButton, g as Separator, PH as Sheet, IH as SheetClose, zH as SheetContent, UH as SheetDescription, VH as SheetFooter, BH as SheetHeader, HH as SheetTitle, FH as SheetTrigger, cU as Sidebar, gU as SidebarContent, mU as SidebarFooter, _U as SidebarGroup, yU as SidebarGroupAction, bU as SidebarGroupContent, vU as SidebarGroupLabel, pU as SidebarHeader, fU as SidebarInput, dU as SidebarInset, xU as SidebarMenu, TU as SidebarMenuAction, EU as SidebarMenuBadge, wU as SidebarMenuButton, SU as SidebarMenuItem, DU as SidebarMenuSkeleton, OU as SidebarMenuSub, AU as SidebarMenuSubButton, kU as SidebarMenuSubItem, WW as SidebarModeControl, HW as SidebarModeProvider, XW as SidebarNavigation, sU as SidebarProvider, uU as SidebarRail, hU as SidebarSeparator, lU as SidebarTrigger, eG as SidebarUpgradeFooter, n as Skeleton, uW as Spinner, dW as Switch, fW as Table, mW as TableBody, yW as TableCaption, vW as TableCell, hW as TableFooter, _W as TableHead, pW as TableHeader, gW as TableRow, bW as Tabs, wW as TabsContent, SW as TabsList, CW as TabsTrigger, e as Textarea, Ne as ThemeProvider, lW as Toaster, EW as Toggle, OW as ToggleGroup, kW as ToggleGroupItem, GH as Tooltip, qH as TooltipContent, WH as TooltipProvider, KH as TooltipTrigger, d0 as TopNavUser, cq as TruncatedCell, r as alertVariants, HX as applyVisibleDefaults, Yv as badgeVariants, oG as buildLinearBreadcrumbs, oy as buttonGroupVariants, iy as buttonVariants, t as cn, oZ as composeResolvers, xY as extractDefaults, K1 as hiddenFormErrors, E1 as jsonSchemaResolver, rB as logoVariants, e0 as pruneHiddenValues, xW as tabsListVariants, qU as toast, TW as toggleVariants, Cj as useComboboxAnchor, xt as useDebouncedValue, o0 as useLayoutConfig, a0 as useLayoutSlots, bt as usePortalContainer, oU as useSidebar, zW as useSidebarMode, Me as useTheme };
|