@quickflo/quickforms-vue 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as xs, inject as Zs, computed as J, defineComponent as ve, ref as fe, createElementBlock as R, openBlock as I, createElementVNode as U, withDirectives as ze, createCommentVNode as B, createTextVNode as Ae, toDisplayString as X, vModelText as Ln, normalizeClass as Ys, vModelDynamic as wr, vModelCheckbox as Qs, Fragment as Re, renderList as xe, vModelSelect as Xs, createBlock as Dt, resolveDynamicComponent as ea, createVNode as Hn, onMounted as ta, reactive as ra, toRaw as na, markRaw as sa, watch as ir, renderSlot as aa } from "vue";
1
+ import { provide as Zs, inject as Ys, computed as J, defineComponent as me, ref as fe, createElementBlock as M, openBlock as I, createElementVNode as U, withDirectives as ze, createCommentVNode as G, createTextVNode as Ae, toDisplayString as X, vModelText as Ln, normalizeClass as Qs, vModelDynamic as wr, vModelCheckbox as Xs, Fragment as je, renderList as We, vModelSelect as ea, createBlock as Dt, resolveDynamicComponent as ta, createVNode as Hn, onMounted as Kn, reactive as ra, toRaw as na, markRaw as sa, watch as ir, renderSlot as aa } from "vue";
2
2
  import { useField as oa, useForm as ia } from "vee-validate";
3
3
  class la {
4
4
  constructor() {
@@ -57,11 +57,11 @@ class la {
57
57
  this.components.clear();
58
58
  }
59
59
  }
60
- const be = (e, t) => t ? e : -1, Qe = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", da = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", Sf = (e) => e.type === "integer", ca = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ua = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, fa = (e) => e.type === "array", kf = (e) => e.type === "null", ma = (e) => Array.isArray(e.enum) && e.enum.length > 0, Ef = (e) => (t) => t.format === e, Pf = (e) => Qe(e) && e.format === "email", ha = (e) => Qe(e) && e.format === "date", Of = (e) => Qe(e) && e.format === "time", jf = (e) => Qe(e) && e.format === "date-time", Nf = (e) => Qe(e) && (e.format === "url" || e.format === "uri"), Kn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, pa = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, ya = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, If = (e) => Kn(e) && e.discriminator !== void 0, Mf = (e) => e.if !== void 0, qf = (e) => (t) => t[e] !== void 0, Tf = (...e) => (t) => e.every((r) => r(t)), Rf = (...e) => (t) => e.some((r) => r(t)), Af = (e) => (t) => !e(t);
60
+ const pe = (e, t) => t ? e : -1, Qe = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", da = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", jf = (e) => e.type === "integer", ca = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", ua = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, fa = (e) => e.type === "array", Nf = (e) => e.type === "null", ma = (e) => e.const !== void 0, ha = (e) => Array.isArray(e.enum) && e.enum.length > 0, If = (e) => (t) => t.format === e, qf = (e) => Qe(e) && e.format === "email", pa = (e) => Qe(e) && e.format === "date", Mf = (e) => Qe(e) && e.format === "time", Tf = (e) => Qe(e) && e.format === "date-time", Rf = (e) => Qe(e) && (e.format === "url" || e.format === "uri"), Bn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, ya = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, va = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, Af = (e) => Bn(e) && e.discriminator !== void 0, Cf = (e) => e.if !== void 0, Vf = (e) => (t) => t[e] !== void 0, Df = (...e) => (t) => e.every((r) => r(t)), Ff = (...e) => (t) => e.some((r) => r(t)), zf = (e) => (t) => !e(t);
61
61
  function Gn(e) {
62
62
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
63
63
  }
64
- var mr = { exports: {} }, Bn = {}, ye = {}, Ze = {}, ht = {}, H = {}, mt = {};
64
+ var mr = { exports: {} }, Jn = {}, ge = {}, Ze = {}, ht = {}, H = {}, mt = {};
65
65
  (function(e) {
66
66
  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;
67
67
  class t {
@@ -458,7 +458,7 @@ var hr = {};
458
458
  let A = k.length;
459
459
  for (; A--; ) {
460
460
  const V = k[A];
461
- V.optimizeNames(l, f) || (ge(l, V.names), k.splice(A, 1));
461
+ V.optimizeNames(l, f) || (be(l, V.names), k.splice(A, 1));
462
462
  }
463
463
  return k.length > 0 ? this : void 0;
464
464
  }
@@ -571,7 +571,7 @@ var hr = {};
571
571
  }
572
572
  }
573
573
  K.kind = "return";
574
- class M extends _ {
574
+ class q extends _ {
575
575
  render(l) {
576
576
  let f = "try" + super.render(l);
577
577
  return this.catch && (f += this.catch.render(l)), this.finally && (f += this.finally.render(l)), f;
@@ -589,7 +589,7 @@ var hr = {};
589
589
  return this.catch && z(l, this.catch.names), this.finally && z(l, this.finally.names), l;
590
590
  }
591
591
  }
592
- class q extends _ {
592
+ class T extends _ {
593
593
  constructor(l) {
594
594
  super(), this.error = l;
595
595
  }
@@ -597,14 +597,14 @@ var hr = {};
597
597
  return `catch(${this.error})` + super.render(l);
598
598
  }
599
599
  }
600
- q.kind = "catch";
600
+ T.kind = "catch";
601
601
  class D extends _ {
602
602
  render(l) {
603
603
  return "finally" + super.render(l);
604
604
  }
605
605
  }
606
606
  D.kind = "finally";
607
- class x {
607
+ class W {
608
608
  constructor(l, f = {}) {
609
609
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...f, _n: f.lines ? `
610
610
  ` : "" }, this._extScope = l, this._scope = new r.Scope({ parent: l }), this._nodes = [new g()];
@@ -710,8 +710,8 @@ var hr = {};
710
710
  const V = this._scope.toName(l);
711
711
  if (this.opts.es5) {
712
712
  const Z = f instanceof t.Name ? f : this.var("_arr", f);
713
- return this.forRange("_i", 0, (0, t._)`${Z}.length`, (W) => {
714
- this.var(V, (0, t._)`${Z}[${W}]`), k(V);
713
+ return this.forRange("_i", 0, (0, t._)`${Z}.length`, (x) => {
714
+ this.var(V, (0, t._)`${Z}[${x}]`), k(V);
715
715
  });
716
716
  }
717
717
  return this._for(new O("of", A, V, f), () => k(V));
@@ -747,12 +747,12 @@ var hr = {};
747
747
  try(l, f, k) {
748
748
  if (!f && !k)
749
749
  throw new Error('CodeGen: "try" without "catch" and "finally"');
750
- const A = new M();
750
+ const A = new q();
751
751
  if (this._blockNode(A), this.code(l), f) {
752
752
  const V = this.name("e");
753
- this._currNode = A.catch = new q(V), f(V);
753
+ this._currNode = A.catch = new T(V), f(V);
754
754
  }
755
- return k && (this._currNode = A.finally = new D(), this.code(k)), this._endBlockNode(q, D);
755
+ return k && (this._currNode = A.finally = new D(), this.code(k)), this._endBlockNode(T, D);
756
756
  }
757
757
  // `throw` statement
758
758
  throw(l) {
@@ -814,7 +814,7 @@ var hr = {};
814
814
  f[f.length - 1] = l;
815
815
  }
816
816
  }
817
- e.CodeGen = x;
817
+ e.CodeGen = W;
818
818
  function z($, l) {
819
819
  for (const f in l)
820
820
  $[f] = ($[f] || 0) + (l[f] || 0);
@@ -837,7 +837,7 @@ var hr = {};
837
837
  return V instanceof t._Code && V._items.some((Z) => Z instanceof t.Name && l[Z.str] === 1 && f[Z.str] !== void 0);
838
838
  }
839
839
  }
840
- function ge($, l) {
840
+ function be($, l) {
841
841
  for (const f in l)
842
842
  $[f] = ($[f] || 0) - (l[f] || 0);
843
843
  }
@@ -845,11 +845,11 @@ var hr = {};
845
845
  return typeof $ == "boolean" || typeof $ == "number" || $ === null ? !$ : (0, t._)`!${P($)}`;
846
846
  }
847
847
  e.not = gt;
848
- const Gt = v(e.operators.AND);
849
- function Bt(...$) {
850
- return $.reduce(Gt);
848
+ const Bt = v(e.operators.AND);
849
+ function Gt(...$) {
850
+ return $.reduce(Bt);
851
851
  }
852
- e.and = Bt;
852
+ e.and = Gt;
853
853
  const bt = v(e.operators.OR);
854
854
  function j(...$) {
855
855
  return $.reduce(bt);
@@ -865,27 +865,27 @@ var hr = {};
865
865
  var N = {};
866
866
  Object.defineProperty(N, "__esModule", { value: !0 });
867
867
  N.checkStrictMode = N.getErrorPath = N.Type = N.useFunc = N.setEvaluated = N.evaluatedPropsToName = N.mergeEvaluated = N.eachItem = N.unescapeJsonPointer = N.escapeJsonPointer = N.escapeFragment = N.unescapeFragment = N.schemaRefOrVal = N.schemaHasRulesButRef = N.schemaHasRules = N.checkUnknownRules = N.alwaysValidSchema = N.toHash = void 0;
868
- const Y = H, va = mt;
869
- function _a(e) {
868
+ const Y = H, _a = mt;
869
+ function ga(e) {
870
870
  const t = {};
871
871
  for (const r of e)
872
872
  t[r] = !0;
873
873
  return t;
874
874
  }
875
- N.toHash = _a;
876
- function ga(e, t) {
877
- return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Jn(e, t), !Wn(t, e.self.RULES.all));
875
+ N.toHash = ga;
876
+ function ba(e, t) {
877
+ return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (xn(e, t), !Wn(t, e.self.RULES.all));
878
878
  }
879
- N.alwaysValidSchema = ga;
880
- function Jn(e, t = e.schema) {
879
+ N.alwaysValidSchema = ba;
880
+ function xn(e, t = e.schema) {
881
881
  const { opts: r, self: n } = e;
882
882
  if (!r.strictSchema || typeof t == "boolean")
883
883
  return;
884
884
  const s = n.RULES.keywords;
885
885
  for (const a in t)
886
- s[a] || Yn(e, `unknown keyword: "${a}"`);
886
+ s[a] || Qn(e, `unknown keyword: "${a}"`);
887
887
  }
888
- N.checkUnknownRules = Jn;
888
+ N.checkUnknownRules = xn;
889
889
  function Wn(e, t) {
890
890
  if (typeof e == "boolean")
891
891
  return !e;
@@ -895,7 +895,7 @@ function Wn(e, t) {
895
895
  return !1;
896
896
  }
897
897
  N.schemaHasRules = Wn;
898
- function ba(e, t) {
898
+ function $a(e, t) {
899
899
  if (typeof e == "boolean")
900
900
  return !e;
901
901
  for (const r in e)
@@ -903,8 +903,8 @@ function ba(e, t) {
903
903
  return !0;
904
904
  return !1;
905
905
  }
906
- N.schemaHasRulesButRef = ba;
907
- function $a({ topSchemaRef: e, schemaPath: t }, r, n, s) {
906
+ N.schemaHasRulesButRef = $a;
907
+ function wa({ topSchemaRef: e, schemaPath: t }, r, n, s) {
908
908
  if (!s) {
909
909
  if (typeof r == "number" || typeof r == "boolean")
910
910
  return r;
@@ -913,31 +913,31 @@ function $a({ topSchemaRef: e, schemaPath: t }, r, n, s) {
913
913
  }
914
914
  return (0, Y._)`${e}${t}${(0, Y.getProperty)(n)}`;
915
915
  }
916
- N.schemaRefOrVal = $a;
917
- function wa(e) {
918
- return xn(decodeURIComponent(e));
919
- }
920
- N.unescapeFragment = wa;
916
+ N.schemaRefOrVal = wa;
921
917
  function Sa(e) {
918
+ return Zn(decodeURIComponent(e));
919
+ }
920
+ N.unescapeFragment = Sa;
921
+ function ka(e) {
922
922
  return encodeURIComponent(Sr(e));
923
923
  }
924
- N.escapeFragment = Sa;
924
+ N.escapeFragment = ka;
925
925
  function Sr(e) {
926
926
  return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
927
927
  }
928
928
  N.escapeJsonPointer = Sr;
929
- function xn(e) {
929
+ function Zn(e) {
930
930
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
931
931
  }
932
- N.unescapeJsonPointer = xn;
933
- function ka(e, t) {
932
+ N.unescapeJsonPointer = Zn;
933
+ function Ea(e, t) {
934
934
  if (Array.isArray(e))
935
935
  for (const r of e)
936
936
  t(r);
937
937
  else
938
938
  t(e);
939
939
  }
940
- N.eachItem = ka;
940
+ N.eachItem = Ea;
941
941
  function yn({ mergeNames: e, mergeToName: t, mergeValues: r, resultToName: n }) {
942
942
  return (s, a, o, i) => {
943
943
  const d = o === void 0 ? a : o instanceof Y.Name ? (a instanceof Y.Name ? e(s, a, o) : t(s, a, o), o) : a instanceof Y.Name ? (t(s, o, a), a) : r(a, o);
@@ -953,7 +953,7 @@ N.mergeEvaluated = {
953
953
  t === !0 ? e.assign(r, !0) : (e.assign(r, (0, Y._)`${r} || {}`), kr(e, r, t));
954
954
  }),
955
955
  mergeValues: (e, t) => e === !0 ? !0 : { ...e, ...t },
956
- resultToName: Zn
956
+ resultToName: Yn
957
957
  }),
958
958
  items: yn({
959
959
  mergeNames: (e, t, r) => e.if((0, Y._)`${r} !== true && ${t} !== undefined`, () => e.assign(r, (0, Y._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),
@@ -962,48 +962,48 @@ N.mergeEvaluated = {
962
962
  resultToName: (e, t) => e.var("items", t)
963
963
  })
964
964
  };
965
- function Zn(e, t) {
965
+ function Yn(e, t) {
966
966
  if (t === !0)
967
967
  return e.var("props", !0);
968
968
  const r = e.var("props", (0, Y._)`{}`);
969
969
  return t !== void 0 && kr(e, r, t), r;
970
970
  }
971
- N.evaluatedPropsToName = Zn;
971
+ N.evaluatedPropsToName = Yn;
972
972
  function kr(e, t, r) {
973
973
  Object.keys(r).forEach((n) => e.assign((0, Y._)`${t}${(0, Y.getProperty)(n)}`, !0));
974
974
  }
975
975
  N.setEvaluated = kr;
976
976
  const vn = {};
977
- function Ea(e, t) {
977
+ function Pa(e, t) {
978
978
  return e.scopeValue("func", {
979
979
  ref: t,
980
- code: vn[t.code] || (vn[t.code] = new va._Code(t.code))
980
+ code: vn[t.code] || (vn[t.code] = new _a._Code(t.code))
981
981
  });
982
982
  }
983
- N.useFunc = Ea;
983
+ N.useFunc = Pa;
984
984
  var pr;
985
985
  (function(e) {
986
986
  e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
987
987
  })(pr || (N.Type = pr = {}));
988
- function Pa(e, t, r) {
988
+ function Oa(e, t, r) {
989
989
  if (e instanceof Y.Name) {
990
990
  const n = t === pr.Num;
991
991
  return r ? n ? (0, Y._)`"[" + ${e} + "]"` : (0, Y._)`"['" + ${e} + "']"` : n ? (0, Y._)`"/" + ${e}` : (0, Y._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
992
992
  }
993
993
  return r ? (0, Y.getProperty)(e).toString() : "/" + Sr(e);
994
994
  }
995
- N.getErrorPath = Pa;
996
- function Yn(e, t, r = e.opts.strictSchema) {
995
+ N.getErrorPath = Oa;
996
+ function Qn(e, t, r = e.opts.strictSchema) {
997
997
  if (r) {
998
998
  if (t = `strict mode: ${t}`, r === !0)
999
999
  throw new Error(t);
1000
1000
  e.self.logger.warn(t);
1001
1001
  }
1002
1002
  }
1003
- N.checkStrictMode = Yn;
1003
+ N.checkStrictMode = Qn;
1004
1004
  var ke = {};
1005
1005
  Object.defineProperty(ke, "__esModule", { value: !0 });
1006
- const ie = H, Oa = {
1006
+ const ie = H, ja = {
1007
1007
  // validation function arguments
1008
1008
  data: new ie.Name("data"),
1009
1009
  // data passed to validation function
@@ -1032,7 +1032,7 @@ const ie = H, Oa = {
1032
1032
  jsonLen: new ie.Name("jsonLen"),
1033
1033
  jsonPart: new ie.Name("jsonPart")
1034
1034
  };
1035
- ke.default = Oa;
1035
+ ke.default = ja;
1036
1036
  (function(e) {
1037
1037
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
1038
1038
  const t = H, r = N, n = ke;
@@ -1042,8 +1042,8 @@ ke.default = Oa;
1042
1042
  message: ({ keyword: p, schemaType: m }) => m ? (0, t.str)`"${p}" keyword must be ${m} ($data)` : (0, t.str)`"${p}" keyword is invalid ($data)`
1043
1043
  };
1044
1044
  function s(p, m = e.keywordError, y, S) {
1045
- const { it: E } = p, { gen: O, compositeRule: C, allErrors: K } = E, M = h(p, m, y);
1046
- S ?? (C || K) ? d(O, M) : c(E, (0, t._)`[${M}]`);
1045
+ const { it: E } = p, { gen: O, compositeRule: C, allErrors: K } = E, q = h(p, m, y);
1046
+ S ?? (C || K) ? d(O, q) : c(E, (0, t._)`[${q}]`);
1047
1047
  }
1048
1048
  e.reportError = s;
1049
1049
  function a(p, m = e.keywordError, y) {
@@ -1102,26 +1102,26 @@ ke.default = Oa;
1102
1102
  return y && (E = (0, t.str)`${E}${(0, r.getErrorPath)(y, r.Type.Str)}`), [u.schemaPath, E];
1103
1103
  }
1104
1104
  function g(p, { params: m, message: y }, S) {
1105
- const { keyword: E, data: O, schemaValue: C, it: K } = p, { opts: M, propertyName: q, topSchemaRef: D, schemaPath: x } = K;
1106
- S.push([u.keyword, E], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), M.messages && S.push([u.message, typeof y == "function" ? y(p) : y]), M.verbose && S.push([u.schema, C], [u.parentSchema, (0, t._)`${D}${x}`], [n.default.data, O]), q && S.push([u.propertyName, q]);
1105
+ const { keyword: E, data: O, schemaValue: C, it: K } = p, { opts: q, propertyName: T, topSchemaRef: D, schemaPath: W } = K;
1106
+ S.push([u.keyword, E], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), q.messages && S.push([u.message, typeof y == "function" ? y(p) : y]), q.verbose && S.push([u.schema, C], [u.parentSchema, (0, t._)`${D}${W}`], [n.default.data, O]), T && S.push([u.propertyName, T]);
1107
1107
  }
1108
1108
  })(ht);
1109
1109
  Object.defineProperty(Ze, "__esModule", { value: !0 });
1110
1110
  Ze.boolOrEmptySchema = Ze.topBoolOrEmptySchema = void 0;
1111
- const ja = ht, Na = H, Ia = ke, Ma = {
1111
+ const Na = ht, Ia = H, qa = ke, Ma = {
1112
1112
  message: "boolean schema is false"
1113
1113
  };
1114
- function qa(e) {
1114
+ function Ta(e) {
1115
1115
  const { gen: t, schema: r, validateName: n } = e;
1116
- r === !1 ? Qn(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(Ia.default.data) : (t.assign((0, Na._)`${n}.errors`, null), t.return(!0));
1116
+ r === !1 ? Xn(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(qa.default.data) : (t.assign((0, Ia._)`${n}.errors`, null), t.return(!0));
1117
1117
  }
1118
- Ze.topBoolOrEmptySchema = qa;
1119
- function Ta(e, t) {
1118
+ Ze.topBoolOrEmptySchema = Ta;
1119
+ function Ra(e, t) {
1120
1120
  const { gen: r, schema: n } = e;
1121
- n === !1 ? (r.var(t, !1), Qn(e)) : r.var(t, !0);
1121
+ n === !1 ? (r.var(t, !1), Xn(e)) : r.var(t, !0);
1122
1122
  }
1123
- Ze.boolOrEmptySchema = Ta;
1124
- function Qn(e, t) {
1123
+ Ze.boolOrEmptySchema = Ra;
1124
+ function Xn(e, t) {
1125
1125
  const { gen: r, data: n } = e, s = {
1126
1126
  gen: r,
1127
1127
  keyword: "false schema",
@@ -1132,17 +1132,17 @@ function Qn(e, t) {
1132
1132
  params: {},
1133
1133
  it: e
1134
1134
  };
1135
- (0, ja.reportError)(s, Ma, void 0, t);
1135
+ (0, Na.reportError)(s, Ma, void 0, t);
1136
1136
  }
1137
1137
  var te = {}, Ue = {};
1138
1138
  Object.defineProperty(Ue, "__esModule", { value: !0 });
1139
1139
  Ue.getRules = Ue.isJSONType = void 0;
1140
- const Ra = ["string", "number", "integer", "boolean", "null", "object", "array"], Aa = new Set(Ra);
1141
- function Ca(e) {
1142
- return typeof e == "string" && Aa.has(e);
1140
+ const Aa = ["string", "number", "integer", "boolean", "null", "object", "array"], Ca = new Set(Aa);
1141
+ function Va(e) {
1142
+ return typeof e == "string" && Ca.has(e);
1143
1143
  }
1144
- Ue.isJSONType = Ca;
1145
- function Va() {
1144
+ Ue.isJSONType = Va;
1145
+ function Da() {
1146
1146
  const e = {
1147
1147
  number: { type: "number", rules: [] },
1148
1148
  string: { type: "string", rules: [] },
@@ -1157,33 +1157,33 @@ function Va() {
1157
1157
  keywords: {}
1158
1158
  };
1159
1159
  }
1160
- Ue.getRules = Va;
1161
- var Ee = {};
1162
- Object.defineProperty(Ee, "__esModule", { value: !0 });
1163
- Ee.shouldUseRule = Ee.shouldUseGroup = Ee.schemaHasRulesForType = void 0;
1164
- function Da({ schema: e, self: t }, r) {
1160
+ Ue.getRules = Da;
1161
+ var Pe = {};
1162
+ Object.defineProperty(Pe, "__esModule", { value: !0 });
1163
+ Pe.shouldUseRule = Pe.shouldUseGroup = Pe.schemaHasRulesForType = void 0;
1164
+ function Fa({ schema: e, self: t }, r) {
1165
1165
  const n = t.RULES.types[r];
1166
- return n && n !== !0 && Xn(e, n);
1167
- }
1168
- Ee.schemaHasRulesForType = Da;
1169
- function Xn(e, t) {
1170
- return t.rules.some((r) => es(e, r));
1166
+ return n && n !== !0 && es(e, n);
1171
1167
  }
1172
- Ee.shouldUseGroup = Xn;
1168
+ Pe.schemaHasRulesForType = Fa;
1173
1169
  function es(e, t) {
1170
+ return t.rules.some((r) => ts(e, r));
1171
+ }
1172
+ Pe.shouldUseGroup = es;
1173
+ function ts(e, t) {
1174
1174
  var r;
1175
1175
  return e[t.keyword] !== void 0 || ((r = t.definition.implements) === null || r === void 0 ? void 0 : r.some((n) => e[n] !== void 0));
1176
1176
  }
1177
- Ee.shouldUseRule = es;
1177
+ Pe.shouldUseRule = ts;
1178
1178
  Object.defineProperty(te, "__esModule", { value: !0 });
1179
1179
  te.reportTypeError = te.checkDataTypes = te.checkDataType = te.coerceAndCheckDataType = te.getJSONTypes = te.getSchemaTypes = te.DataType = void 0;
1180
- const Fa = Ue, za = Ee, Ua = ht, L = H, ts = N;
1180
+ const za = Ue, Ua = Pe, La = ht, L = H, rs = N;
1181
1181
  var Je;
1182
1182
  (function(e) {
1183
1183
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1184
1184
  })(Je || (te.DataType = Je = {}));
1185
- function La(e) {
1186
- const t = rs(e.type);
1185
+ function Ha(e) {
1186
+ const t = ns(e.type);
1187
1187
  if (t.includes("null")) {
1188
1188
  if (e.nullable === !1)
1189
1189
  throw new Error("type: null contradicts nullable: false");
@@ -1194,16 +1194,16 @@ function La(e) {
1194
1194
  }
1195
1195
  return t;
1196
1196
  }
1197
- te.getSchemaTypes = La;
1198
- function rs(e) {
1197
+ te.getSchemaTypes = Ha;
1198
+ function ns(e) {
1199
1199
  const t = Array.isArray(e) ? e : e ? [e] : [];
1200
- if (t.every(Fa.isJSONType))
1200
+ if (t.every(za.isJSONType))
1201
1201
  return t;
1202
1202
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1203
1203
  }
1204
- te.getJSONTypes = rs;
1205
- function Ha(e, t) {
1206
- const { gen: r, data: n, opts: s } = e, a = Ka(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, za.schemaHasRulesForType)(e, t[0]));
1204
+ te.getJSONTypes = ns;
1205
+ function Ka(e, t) {
1206
+ const { gen: r, data: n, opts: s } = e, a = Ba(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ua.schemaHasRulesForType)(e, t[0]));
1207
1207
  if (o) {
1208
1208
  const i = Er(t, n, s.strictNumbers, Je.Wrong);
1209
1209
  r.if(i, () => {
@@ -1212,18 +1212,18 @@ function Ha(e, t) {
1212
1212
  }
1213
1213
  return o;
1214
1214
  }
1215
- te.coerceAndCheckDataType = Ha;
1216
- const ns = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1217
- function Ka(e, t) {
1218
- return t ? e.filter((r) => ns.has(r) || t === "array" && r === "array") : [];
1215
+ te.coerceAndCheckDataType = Ka;
1216
+ const ss = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1217
+ function Ba(e, t) {
1218
+ return t ? e.filter((r) => ss.has(r) || t === "array" && r === "array") : [];
1219
1219
  }
1220
1220
  function Ga(e, t, r) {
1221
1221
  const { gen: n, data: s, opts: a } = e, o = n.let("dataType", (0, L._)`typeof ${s}`), i = n.let("coerced", (0, L._)`undefined`);
1222
1222
  a.coerceTypes === "array" && n.if((0, L._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`, () => n.assign(s, (0, L._)`${s}[0]`).assign(o, (0, L._)`typeof ${s}`).if(Er(t, s, a.strictNumbers), () => n.assign(i, s))), n.if((0, L._)`${i} !== undefined`);
1223
1223
  for (const c of r)
1224
- (ns.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
1224
+ (ss.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
1225
1225
  n.else(), Pr(e), n.endIf(), n.if((0, L._)`${i} !== undefined`, () => {
1226
- n.assign(s, i), Ba(e, i);
1226
+ n.assign(s, i), Ja(e, i);
1227
1227
  });
1228
1228
  function d(c) {
1229
1229
  switch (c) {
@@ -1250,7 +1250,7 @@ function Ga(e, t, r) {
1250
1250
  }
1251
1251
  }
1252
1252
  }
1253
- function Ba({ gen: e, parentData: t, parentDataProperty: r }, n) {
1253
+ function Ja({ gen: e, parentData: t, parentDataProperty: r }, n) {
1254
1254
  e.if((0, L._)`${t} !== undefined`, () => e.assign((0, L._)`${t}[${r}]`, n));
1255
1255
  }
1256
1256
  function yr(e, t, r, n = Je.Correct) {
@@ -1284,7 +1284,7 @@ function Er(e, t, r, n) {
1284
1284
  if (e.length === 1)
1285
1285
  return yr(e[0], t, r, n);
1286
1286
  let s;
1287
- const a = (0, ts.toHash)(e);
1287
+ const a = (0, rs.toHash)(e);
1288
1288
  if (a.array && a.object) {
1289
1289
  const o = (0, L._)`typeof ${t} != "object"`;
1290
1290
  s = a.null ? o : (0, L._)`!${t} || ${o}`, delete a.null, delete a.array, delete a.object;
@@ -1296,17 +1296,17 @@ function Er(e, t, r, n) {
1296
1296
  return s;
1297
1297
  }
1298
1298
  te.checkDataTypes = Er;
1299
- const Ja = {
1299
+ const xa = {
1300
1300
  message: ({ schema: e }) => `must be ${e}`,
1301
1301
  params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, L._)`{type: ${e}}` : (0, L._)`{type: ${t}}`
1302
1302
  };
1303
1303
  function Pr(e) {
1304
1304
  const t = Wa(e);
1305
- (0, Ua.reportError)(t, Ja);
1305
+ (0, La.reportError)(t, xa);
1306
1306
  }
1307
1307
  te.reportTypeError = Pr;
1308
1308
  function Wa(e) {
1309
- const { gen: t, data: r, schema: n } = e, s = (0, ts.schemaRefOrVal)(e, n, "type");
1309
+ const { gen: t, data: r, schema: n } = e, s = (0, rs.schemaRefOrVal)(e, n, "type");
1310
1310
  return {
1311
1311
  gen: t,
1312
1312
  keyword: "type",
@@ -1322,99 +1322,99 @@ function Wa(e) {
1322
1322
  var Ft = {};
1323
1323
  Object.defineProperty(Ft, "__esModule", { value: !0 });
1324
1324
  Ft.assignDefaults = void 0;
1325
- const Ke = H, xa = N;
1326
- function Za(e, t) {
1325
+ const Ke = H, Za = N;
1326
+ function Ya(e, t) {
1327
1327
  const { properties: r, items: n } = e.schema;
1328
1328
  if (t === "object" && r)
1329
1329
  for (const s in r)
1330
1330
  _n(e, s, r[s].default);
1331
1331
  else t === "array" && Array.isArray(n) && n.forEach((s, a) => _n(e, a, s.default));
1332
1332
  }
1333
- Ft.assignDefaults = Za;
1333
+ Ft.assignDefaults = Ya;
1334
1334
  function _n(e, t, r) {
1335
1335
  const { gen: n, compositeRule: s, data: a, opts: o } = e;
1336
1336
  if (r === void 0)
1337
1337
  return;
1338
1338
  const i = (0, Ke._)`${a}${(0, Ke.getProperty)(t)}`;
1339
1339
  if (s) {
1340
- (0, xa.checkStrictMode)(e, `default is ignored for: ${i}`);
1340
+ (0, Za.checkStrictMode)(e, `default is ignored for: ${i}`);
1341
1341
  return;
1342
1342
  }
1343
1343
  let d = (0, Ke._)`${i} === undefined`;
1344
1344
  o.useDefaults === "empty" && (d = (0, Ke._)`${d} || ${i} === null || ${i} === ""`), n.if(d, (0, Ke._)`${i} = ${(0, Ke.stringify)(r)}`);
1345
1345
  }
1346
- var we = {}, G = {};
1347
- Object.defineProperty(G, "__esModule", { value: !0 });
1348
- G.validateUnion = G.validateArray = G.usePattern = G.callValidateCode = G.schemaProperties = G.allSchemaProperties = G.noPropertyInData = G.propertyInData = G.isOwnProperty = G.hasPropFunc = G.reportMissingProp = G.checkMissingProp = G.checkReportMissingProp = void 0;
1349
- const Q = H, Or = N, Ie = ke, Ya = N;
1350
- function Qa(e, t) {
1346
+ var we = {}, B = {};
1347
+ Object.defineProperty(B, "__esModule", { value: !0 });
1348
+ B.validateUnion = B.validateArray = B.usePattern = B.callValidateCode = B.schemaProperties = B.allSchemaProperties = B.noPropertyInData = B.propertyInData = B.isOwnProperty = B.hasPropFunc = B.reportMissingProp = B.checkMissingProp = B.checkReportMissingProp = void 0;
1349
+ const Q = H, Or = N, qe = ke, Qa = N;
1350
+ function Xa(e, t) {
1351
1351
  const { gen: r, data: n, it: s } = e;
1352
1352
  r.if(Nr(r, n, t, s.opts.ownProperties), () => {
1353
1353
  e.setParams({ missingProperty: (0, Q._)`${t}` }, !0), e.error();
1354
1354
  });
1355
1355
  }
1356
- G.checkReportMissingProp = Qa;
1357
- function Xa({ gen: e, data: t, it: { opts: r } }, n, s) {
1356
+ B.checkReportMissingProp = Xa;
1357
+ function eo({ gen: e, data: t, it: { opts: r } }, n, s) {
1358
1358
  return (0, Q.or)(...n.map((a) => (0, Q.and)(Nr(e, t, a, r.ownProperties), (0, Q._)`${s} = ${a}`)));
1359
1359
  }
1360
- G.checkMissingProp = Xa;
1361
- function eo(e, t) {
1360
+ B.checkMissingProp = eo;
1361
+ function to(e, t) {
1362
1362
  e.setParams({ missingProperty: t }, !0), e.error();
1363
1363
  }
1364
- G.reportMissingProp = eo;
1365
- function ss(e) {
1364
+ B.reportMissingProp = to;
1365
+ function as(e) {
1366
1366
  return e.scopeValue("func", {
1367
1367
  // eslint-disable-next-line @typescript-eslint/unbound-method
1368
1368
  ref: Object.prototype.hasOwnProperty,
1369
1369
  code: (0, Q._)`Object.prototype.hasOwnProperty`
1370
1370
  });
1371
1371
  }
1372
- G.hasPropFunc = ss;
1372
+ B.hasPropFunc = as;
1373
1373
  function jr(e, t, r) {
1374
- return (0, Q._)`${ss(e)}.call(${t}, ${r})`;
1374
+ return (0, Q._)`${as(e)}.call(${t}, ${r})`;
1375
1375
  }
1376
- G.isOwnProperty = jr;
1377
- function to(e, t, r, n) {
1376
+ B.isOwnProperty = jr;
1377
+ function ro(e, t, r, n) {
1378
1378
  const s = (0, Q._)`${t}${(0, Q.getProperty)(r)} !== undefined`;
1379
1379
  return n ? (0, Q._)`${s} && ${jr(e, t, r)}` : s;
1380
1380
  }
1381
- G.propertyInData = to;
1381
+ B.propertyInData = ro;
1382
1382
  function Nr(e, t, r, n) {
1383
1383
  const s = (0, Q._)`${t}${(0, Q.getProperty)(r)} === undefined`;
1384
1384
  return n ? (0, Q.or)(s, (0, Q.not)(jr(e, t, r))) : s;
1385
1385
  }
1386
- G.noPropertyInData = Nr;
1387
- function as(e) {
1386
+ B.noPropertyInData = Nr;
1387
+ function os(e) {
1388
1388
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
1389
1389
  }
1390
- G.allSchemaProperties = as;
1391
- function ro(e, t) {
1392
- return as(t).filter((r) => !(0, Or.alwaysValidSchema)(e, t[r]));
1390
+ B.allSchemaProperties = os;
1391
+ function no(e, t) {
1392
+ return os(t).filter((r) => !(0, Or.alwaysValidSchema)(e, t[r]));
1393
1393
  }
1394
- G.schemaProperties = ro;
1395
- function no({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
1394
+ B.schemaProperties = no;
1395
+ function so({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
1396
1396
  const u = c ? (0, Q._)`${e}, ${t}, ${n}${s}` : t, h = [
1397
- [Ie.default.instancePath, (0, Q.strConcat)(Ie.default.instancePath, a)],
1398
- [Ie.default.parentData, o.parentData],
1399
- [Ie.default.parentDataProperty, o.parentDataProperty],
1400
- [Ie.default.rootData, Ie.default.rootData]
1397
+ [qe.default.instancePath, (0, Q.strConcat)(qe.default.instancePath, a)],
1398
+ [qe.default.parentData, o.parentData],
1399
+ [qe.default.parentDataProperty, o.parentDataProperty],
1400
+ [qe.default.rootData, qe.default.rootData]
1401
1401
  ];
1402
- o.opts.dynamicRef && h.push([Ie.default.dynamicAnchors, Ie.default.dynamicAnchors]);
1402
+ o.opts.dynamicRef && h.push([qe.default.dynamicAnchors, qe.default.dynamicAnchors]);
1403
1403
  const w = (0, Q._)`${u}, ${r.object(...h)}`;
1404
1404
  return d !== Q.nil ? (0, Q._)`${i}.call(${d}, ${w})` : (0, Q._)`${i}(${w})`;
1405
1405
  }
1406
- G.callValidateCode = no;
1407
- const so = (0, Q._)`new RegExp`;
1408
- function ao({ gen: e, it: { opts: t } }, r) {
1406
+ B.callValidateCode = so;
1407
+ const ao = (0, Q._)`new RegExp`;
1408
+ function oo({ gen: e, it: { opts: t } }, r) {
1409
1409
  const n = t.unicodeRegExp ? "u" : "", { regExp: s } = t.code, a = s(r, n);
1410
1410
  return e.scopeValue("pattern", {
1411
1411
  key: a.toString(),
1412
1412
  ref: a,
1413
- code: (0, Q._)`${s.code === "new RegExp" ? so : (0, Ya.useFunc)(e, s)}(${r}, ${n})`
1413
+ code: (0, Q._)`${s.code === "new RegExp" ? ao : (0, Qa.useFunc)(e, s)}(${r}, ${n})`
1414
1414
  });
1415
1415
  }
1416
- G.usePattern = ao;
1417
- function oo(e) {
1416
+ B.usePattern = oo;
1417
+ function io(e) {
1418
1418
  const { gen: t, data: r, keyword: n, it: s } = e, a = t.name("valid");
1419
1419
  if (s.allErrors) {
1420
1420
  const i = t.let("valid", !0);
@@ -1432,8 +1432,8 @@ function oo(e) {
1432
1432
  });
1433
1433
  }
1434
1434
  }
1435
- G.validateArray = oo;
1436
- function io(e) {
1435
+ B.validateArray = io;
1436
+ function lo(e) {
1437
1437
  const { gen: t, schema: r, keyword: n, it: s } = e;
1438
1438
  if (!Array.isArray(r))
1439
1439
  throw new Error("ajv implementation error");
@@ -1449,12 +1449,12 @@ function io(e) {
1449
1449
  t.assign(o, (0, Q._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, Q.not)(o));
1450
1450
  })), e.result(o, () => e.reset(), () => e.error(!0));
1451
1451
  }
1452
- G.validateUnion = io;
1452
+ B.validateUnion = lo;
1453
1453
  Object.defineProperty(we, "__esModule", { value: !0 });
1454
1454
  we.validateKeywordUsage = we.validSchemaType = we.funcKeywordCode = we.macroKeywordCode = void 0;
1455
- const le = H, Ve = ke, lo = G, co = ht;
1456
- function uo(e, t) {
1457
- const { gen: r, keyword: n, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = os(r, n, i);
1455
+ const le = H, Ve = ke, co = B, uo = ht;
1456
+ function fo(e, t) {
1457
+ const { gen: r, keyword: n, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = is(r, n, i);
1458
1458
  o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
1459
1459
  const c = r.name("valid");
1460
1460
  e.subschema({
@@ -1465,19 +1465,19 @@ function uo(e, t) {
1465
1465
  compositeRule: !0
1466
1466
  }, c), e.pass(c, () => e.error(!0));
1467
1467
  }
1468
- we.macroKeywordCode = uo;
1469
- function fo(e, t) {
1468
+ we.macroKeywordCode = fo;
1469
+ function mo(e, t) {
1470
1470
  var r;
1471
1471
  const { gen: n, keyword: s, schema: a, parentSchema: o, $data: i, it: d } = e;
1472
- ho(d, t);
1473
- const c = !i && t.compile ? t.compile.call(d.self, a, o, d) : t.validate, u = os(n, s, c), h = n.let("valid");
1472
+ po(d, t);
1473
+ const c = !i && t.compile ? t.compile.call(d.self, a, o, d) : t.validate, u = is(n, s, c), h = n.let("valid");
1474
1474
  e.block$data(h, w), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
1475
1475
  function w() {
1476
1476
  if (t.errors === !1)
1477
1477
  g(), t.modifying && gn(e), p(() => e.error());
1478
1478
  else {
1479
1479
  const m = t.async ? b() : _();
1480
- t.modifying && gn(e), p(() => mo(e, m));
1480
+ t.modifying && gn(e), p(() => ho(e, m));
1481
1481
  }
1482
1482
  }
1483
1483
  function b() {
@@ -1490,38 +1490,38 @@ function fo(e, t) {
1490
1490
  }
1491
1491
  function g(m = t.async ? (0, le._)`await ` : le.nil) {
1492
1492
  const y = d.opts.passContext ? Ve.default.this : Ve.default.self, S = !("compile" in t && !i || t.schema === !1);
1493
- n.assign(h, (0, le._)`${m}${(0, lo.callValidateCode)(e, u, y, S)}`, t.modifying);
1493
+ n.assign(h, (0, le._)`${m}${(0, co.callValidateCode)(e, u, y, S)}`, t.modifying);
1494
1494
  }
1495
1495
  function p(m) {
1496
1496
  var y;
1497
1497
  n.if((0, le.not)((y = t.valid) !== null && y !== void 0 ? y : h), m);
1498
1498
  }
1499
1499
  }
1500
- we.funcKeywordCode = fo;
1500
+ we.funcKeywordCode = mo;
1501
1501
  function gn(e) {
1502
1502
  const { gen: t, data: r, it: n } = e;
1503
1503
  t.if(n.parentData, () => t.assign(r, (0, le._)`${n.parentData}[${n.parentDataProperty}]`));
1504
1504
  }
1505
- function mo(e, t) {
1505
+ function ho(e, t) {
1506
1506
  const { gen: r } = e;
1507
1507
  r.if((0, le._)`Array.isArray(${t})`, () => {
1508
- r.assign(Ve.default.vErrors, (0, le._)`${Ve.default.vErrors} === null ? ${t} : ${Ve.default.vErrors}.concat(${t})`).assign(Ve.default.errors, (0, le._)`${Ve.default.vErrors}.length`), (0, co.extendErrors)(e);
1508
+ r.assign(Ve.default.vErrors, (0, le._)`${Ve.default.vErrors} === null ? ${t} : ${Ve.default.vErrors}.concat(${t})`).assign(Ve.default.errors, (0, le._)`${Ve.default.vErrors}.length`), (0, uo.extendErrors)(e);
1509
1509
  }, () => e.error());
1510
1510
  }
1511
- function ho({ schemaEnv: e }, t) {
1511
+ function po({ schemaEnv: e }, t) {
1512
1512
  if (t.async && !e.$async)
1513
1513
  throw new Error("async keyword in sync schema");
1514
1514
  }
1515
- function os(e, t, r) {
1515
+ function is(e, t, r) {
1516
1516
  if (r === void 0)
1517
1517
  throw new Error(`keyword "${t}" failed to compile`);
1518
1518
  return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, le.stringify)(r) });
1519
1519
  }
1520
- function po(e, t, r = !1) {
1520
+ function yo(e, t, r = !1) {
1521
1521
  return !t.length || t.some((n) => n === "array" ? Array.isArray(e) : n === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == n || r && typeof e > "u");
1522
1522
  }
1523
- we.validSchemaType = po;
1524
- function yo({ schema: e, opts: t, self: r, errSchemaPath: n }, s, a) {
1523
+ we.validSchemaType = yo;
1524
+ function vo({ schema: e, opts: t, self: r, errSchemaPath: n }, s, a) {
1525
1525
  if (Array.isArray(s.keyword) ? !s.keyword.includes(a) : s.keyword !== a)
1526
1526
  throw new Error("ajv implementation error");
1527
1527
  const o = s.dependencies;
@@ -1535,12 +1535,12 @@ function yo({ schema: e, opts: t, self: r, errSchemaPath: n }, s, a) {
1535
1535
  throw new Error(d);
1536
1536
  }
1537
1537
  }
1538
- we.validateKeywordUsage = yo;
1539
- var Te = {};
1540
- Object.defineProperty(Te, "__esModule", { value: !0 });
1541
- Te.extendSubschemaMode = Te.extendSubschemaData = Te.getSubschema = void 0;
1542
- const $e = H, is = N;
1543
- function vo(e, { keyword: t, schemaProp: r, schema: n, schemaPath: s, errSchemaPath: a, topSchemaRef: o }) {
1538
+ we.validateKeywordUsage = vo;
1539
+ var Re = {};
1540
+ Object.defineProperty(Re, "__esModule", { value: !0 });
1541
+ Re.extendSubschemaMode = Re.extendSubschemaData = Re.getSubschema = void 0;
1542
+ const $e = H, ls = N;
1543
+ function _o(e, { keyword: t, schemaProp: r, schema: n, schemaPath: s, errSchemaPath: a, topSchemaRef: o }) {
1544
1544
  if (t !== void 0 && n !== void 0)
1545
1545
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1546
1546
  if (t !== void 0) {
@@ -1552,7 +1552,7 @@ function vo(e, { keyword: t, schemaProp: r, schema: n, schemaPath: s, errSchemaP
1552
1552
  } : {
1553
1553
  schema: i[r],
1554
1554
  schemaPath: (0, $e._)`${e.schemaPath}${(0, $e.getProperty)(t)}${(0, $e.getProperty)(r)}`,
1555
- errSchemaPath: `${e.errSchemaPath}/${t}/${(0, is.escapeFragment)(r)}`
1555
+ errSchemaPath: `${e.errSchemaPath}/${t}/${(0, ls.escapeFragment)(r)}`
1556
1556
  };
1557
1557
  }
1558
1558
  if (n !== void 0) {
@@ -1567,14 +1567,14 @@ function vo(e, { keyword: t, schemaProp: r, schema: n, schemaPath: s, errSchemaP
1567
1567
  }
1568
1568
  throw new Error('either "keyword" or "schema" must be passed');
1569
1569
  }
1570
- Te.getSubschema = vo;
1571
- function _o(e, t, { dataProp: r, dataPropType: n, data: s, dataTypes: a, propertyName: o }) {
1570
+ Re.getSubschema = _o;
1571
+ function go(e, t, { dataProp: r, dataPropType: n, data: s, dataTypes: a, propertyName: o }) {
1572
1572
  if (s !== void 0 && r !== void 0)
1573
1573
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1574
1574
  const { gen: i } = t;
1575
1575
  if (r !== void 0) {
1576
1576
  const { errorPath: c, dataPathArr: u, opts: h } = t, w = i.let("data", (0, $e._)`${t.data}${(0, $e.getProperty)(r)}`, !0);
1577
- d(w), e.errorPath = (0, $e.str)`${c}${(0, is.getErrorPath)(r, n, h.jsPropertySyntax)}`, e.parentDataProperty = (0, $e._)`${r}`, e.dataPathArr = [...u, e.parentDataProperty];
1577
+ d(w), e.errorPath = (0, $e.str)`${c}${(0, ls.getErrorPath)(r, n, h.jsPropertySyntax)}`, e.parentDataProperty = (0, $e._)`${r}`, e.dataPathArr = [...u, e.parentDataProperty];
1578
1578
  }
1579
1579
  if (s !== void 0) {
1580
1580
  const c = s instanceof $e.Name ? s : i.let("data", s, !0);
@@ -1585,12 +1585,12 @@ function _o(e, t, { dataProp: r, dataPropType: n, data: s, dataTypes: a, propert
1585
1585
  e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
1586
1586
  }
1587
1587
  }
1588
- Te.extendSubschemaData = _o;
1589
- function go(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: n, createErrors: s, allErrors: a }) {
1588
+ Re.extendSubschemaData = go;
1589
+ function bo(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: n, createErrors: s, allErrors: a }) {
1590
1590
  n !== void 0 && (e.compositeRule = n), s !== void 0 && (e.createErrors = s), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = r;
1591
1591
  }
1592
- Te.extendSubschemaMode = go;
1593
- var ae = {}, ls = function e(t, r) {
1592
+ Re.extendSubschemaMode = bo;
1593
+ var ae = {}, ds = function e(t, r) {
1594
1594
  if (t === r) return !0;
1595
1595
  if (t && r && typeof t == "object" && typeof r == "object") {
1596
1596
  if (t.constructor !== r.constructor) return !1;
@@ -1614,14 +1614,14 @@ var ae = {}, ls = function e(t, r) {
1614
1614
  return !0;
1615
1615
  }
1616
1616
  return t !== t && r !== r;
1617
- }, ds = { exports: {} }, qe = ds.exports = function(e, t, r) {
1617
+ }, cs = { exports: {} }, Te = cs.exports = function(e, t, r) {
1618
1618
  typeof t == "function" && (r = t, t = {}), r = t.cb || r;
1619
1619
  var n = typeof r == "function" ? r : r.pre || function() {
1620
1620
  }, s = r.post || function() {
1621
1621
  };
1622
1622
  Ot(t, n, s, e, "", e);
1623
1623
  };
1624
- qe.keywords = {
1624
+ Te.keywords = {
1625
1625
  additionalItems: !0,
1626
1626
  items: !0,
1627
1627
  contains: !0,
@@ -1632,20 +1632,20 @@ qe.keywords = {
1632
1632
  then: !0,
1633
1633
  else: !0
1634
1634
  };
1635
- qe.arrayKeywords = {
1635
+ Te.arrayKeywords = {
1636
1636
  items: !0,
1637
1637
  allOf: !0,
1638
1638
  anyOf: !0,
1639
1639
  oneOf: !0
1640
1640
  };
1641
- qe.propsKeywords = {
1641
+ Te.propsKeywords = {
1642
1642
  $defs: !0,
1643
1643
  definitions: !0,
1644
1644
  properties: !0,
1645
1645
  patternProperties: !0,
1646
1646
  dependencies: !0
1647
1647
  };
1648
- qe.skipKeywords = {
1648
+ Te.skipKeywords = {
1649
1649
  default: !0,
1650
1650
  enum: !0,
1651
1651
  const: !0,
@@ -1671,25 +1671,25 @@ function Ot(e, t, r, n, s, a, o, i, d, c) {
1671
1671
  for (var u in n) {
1672
1672
  var h = n[u];
1673
1673
  if (Array.isArray(h)) {
1674
- if (u in qe.arrayKeywords)
1674
+ if (u in Te.arrayKeywords)
1675
1675
  for (var w = 0; w < h.length; w++)
1676
1676
  Ot(e, t, r, h[w], s + "/" + u + "/" + w, a, s, u, n, w);
1677
- } else if (u in qe.propsKeywords) {
1677
+ } else if (u in Te.propsKeywords) {
1678
1678
  if (h && typeof h == "object")
1679
1679
  for (var b in h)
1680
- Ot(e, t, r, h[b], s + "/" + u + "/" + bo(b), a, s, u, n, b);
1681
- } else (u in qe.keywords || e.allKeys && !(u in qe.skipKeywords)) && Ot(e, t, r, h, s + "/" + u, a, s, u, n);
1680
+ Ot(e, t, r, h[b], s + "/" + u + "/" + $o(b), a, s, u, n, b);
1681
+ } else (u in Te.keywords || e.allKeys && !(u in Te.skipKeywords)) && Ot(e, t, r, h, s + "/" + u, a, s, u, n);
1682
1682
  }
1683
1683
  r(n, s, a, o, i, d, c);
1684
1684
  }
1685
1685
  }
1686
- function bo(e) {
1686
+ function $o(e) {
1687
1687
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
1688
1688
  }
1689
- var $o = ds.exports;
1689
+ var wo = cs.exports;
1690
1690
  Object.defineProperty(ae, "__esModule", { value: !0 });
1691
1691
  ae.getSchemaRefs = ae.resolveUrl = ae.normalizeId = ae._getFullPath = ae.getFullPath = ae.inlineRef = void 0;
1692
- const wo = N, So = ls, ko = $o, Eo = /* @__PURE__ */ new Set([
1692
+ const So = N, ko = ds, Eo = wo, Po = /* @__PURE__ */ new Set([
1693
1693
  "type",
1694
1694
  "format",
1695
1695
  "pattern",
@@ -1707,11 +1707,11 @@ const wo = N, So = ls, ko = $o, Eo = /* @__PURE__ */ new Set([
1707
1707
  "enum",
1708
1708
  "const"
1709
1709
  ]);
1710
- function Po(e, t = !0) {
1711
- return typeof e == "boolean" ? !0 : t === !0 ? !vr(e) : t ? cs(e) <= t : !1;
1710
+ function Oo(e, t = !0) {
1711
+ return typeof e == "boolean" ? !0 : t === !0 ? !vr(e) : t ? us(e) <= t : !1;
1712
1712
  }
1713
- ae.inlineRef = Po;
1714
- const Oo = /* @__PURE__ */ new Set([
1713
+ ae.inlineRef = Oo;
1714
+ const jo = /* @__PURE__ */ new Set([
1715
1715
  "$ref",
1716
1716
  "$recursiveRef",
1717
1717
  "$recursiveAnchor",
@@ -1720,7 +1720,7 @@ const Oo = /* @__PURE__ */ new Set([
1720
1720
  ]);
1721
1721
  function vr(e) {
1722
1722
  for (const t in e) {
1723
- if (Oo.has(t))
1723
+ if (jo.has(t))
1724
1724
  return !0;
1725
1725
  const r = e[t];
1726
1726
  if (Array.isArray(r) && r.some(vr) || typeof r == "object" && vr(r))
@@ -1728,41 +1728,41 @@ function vr(e) {
1728
1728
  }
1729
1729
  return !1;
1730
1730
  }
1731
- function cs(e) {
1731
+ function us(e) {
1732
1732
  let t = 0;
1733
1733
  for (const r in e) {
1734
1734
  if (r === "$ref")
1735
1735
  return 1 / 0;
1736
- if (t++, !Eo.has(r) && (typeof e[r] == "object" && (0, wo.eachItem)(e[r], (n) => t += cs(n)), t === 1 / 0))
1736
+ if (t++, !Po.has(r) && (typeof e[r] == "object" && (0, So.eachItem)(e[r], (n) => t += us(n)), t === 1 / 0))
1737
1737
  return 1 / 0;
1738
1738
  }
1739
1739
  return t;
1740
1740
  }
1741
- function us(e, t = "", r) {
1742
- r !== !1 && (t = We(t));
1741
+ function fs(e, t = "", r) {
1742
+ r !== !1 && (t = xe(t));
1743
1743
  const n = e.parse(t);
1744
- return fs(e, n);
1744
+ return ms(e, n);
1745
1745
  }
1746
- ae.getFullPath = us;
1747
- function fs(e, t) {
1746
+ ae.getFullPath = fs;
1747
+ function ms(e, t) {
1748
1748
  return e.serialize(t).split("#")[0] + "#";
1749
1749
  }
1750
- ae._getFullPath = fs;
1751
- const jo = /#\/?$/;
1752
- function We(e) {
1753
- return e ? e.replace(jo, "") : "";
1750
+ ae._getFullPath = ms;
1751
+ const No = /#\/?$/;
1752
+ function xe(e) {
1753
+ return e ? e.replace(No, "") : "";
1754
1754
  }
1755
- ae.normalizeId = We;
1756
- function No(e, t, r) {
1757
- return r = We(r), e.resolve(t, r);
1755
+ ae.normalizeId = xe;
1756
+ function Io(e, t, r) {
1757
+ return r = xe(r), e.resolve(t, r);
1758
1758
  }
1759
- ae.resolveUrl = No;
1760
- const Io = /^[a-z_][-a-z0-9._]*$/i;
1759
+ ae.resolveUrl = Io;
1760
+ const qo = /^[a-z_][-a-z0-9._]*$/i;
1761
1761
  function Mo(e, t) {
1762
1762
  if (typeof e == "boolean")
1763
1763
  return {};
1764
- const { schemaId: r, uriResolver: n } = this.opts, s = We(e[r] || t), a = { "": s }, o = us(n, s, !1), i = {}, d = /* @__PURE__ */ new Set();
1765
- return ko(e, { allKeys: !0 }, (h, w, b, _) => {
1764
+ const { schemaId: r, uriResolver: n } = this.opts, s = xe(e[r] || t), a = { "": s }, o = fs(n, s, !1), i = {}, d = /* @__PURE__ */ new Set();
1765
+ return Eo(e, { allKeys: !0 }, (h, w, b, _) => {
1766
1766
  if (_ === void 0)
1767
1767
  return;
1768
1768
  const g = o + w;
@@ -1770,22 +1770,22 @@ function Mo(e, t) {
1770
1770
  typeof h[r] == "string" && (p = m.call(this, h[r])), y.call(this, h.$anchor), y.call(this, h.$dynamicAnchor), a[w] = p;
1771
1771
  function m(S) {
1772
1772
  const E = this.opts.uriResolver.resolve;
1773
- if (S = We(p ? E(p, S) : S), d.has(S))
1773
+ if (S = xe(p ? E(p, S) : S), d.has(S))
1774
1774
  throw u(S);
1775
1775
  d.add(S);
1776
1776
  let O = this.refs[S];
1777
- return typeof O == "string" && (O = this.refs[O]), typeof O == "object" ? c(h, O.schema, S) : S !== We(g) && (S[0] === "#" ? (c(h, i[S], S), i[S] = h) : this.refs[S] = g), S;
1777
+ return typeof O == "string" && (O = this.refs[O]), typeof O == "object" ? c(h, O.schema, S) : S !== xe(g) && (S[0] === "#" ? (c(h, i[S], S), i[S] = h) : this.refs[S] = g), S;
1778
1778
  }
1779
1779
  function y(S) {
1780
1780
  if (typeof S == "string") {
1781
- if (!Io.test(S))
1781
+ if (!qo.test(S))
1782
1782
  throw new Error(`invalid anchor "${S}"`);
1783
1783
  m.call(this, `#${S}`);
1784
1784
  }
1785
1785
  }
1786
1786
  }), i;
1787
1787
  function c(h, w, b) {
1788
- if (w !== void 0 && !So(h, w))
1788
+ if (w !== void 0 && !ko(h, w))
1789
1789
  throw u(b);
1790
1790
  }
1791
1791
  function u(h) {
@@ -1793,54 +1793,54 @@ function Mo(e, t) {
1793
1793
  }
1794
1794
  }
1795
1795
  ae.getSchemaRefs = Mo;
1796
- Object.defineProperty(ye, "__esModule", { value: !0 });
1797
- ye.getData = ye.KeywordCxt = ye.validateFunctionCode = void 0;
1798
- const ms = Ze, bn = te, Ir = Ee, qt = te, qo = Ft, lt = we, lr = Te, T = H, F = ke, To = ae, Pe = N, st = ht;
1799
- function Ro(e) {
1800
- if (ys(e) && (vs(e), ps(e))) {
1801
- Vo(e);
1796
+ Object.defineProperty(ge, "__esModule", { value: !0 });
1797
+ ge.getData = ge.KeywordCxt = ge.validateFunctionCode = void 0;
1798
+ const hs = Ze, bn = te, Ir = Pe, Mt = te, To = Ft, lt = we, lr = Re, R = H, F = ke, Ro = ae, Oe = N, st = ht;
1799
+ function Ao(e) {
1800
+ if (vs(e) && (_s(e), ys(e))) {
1801
+ Do(e);
1802
1802
  return;
1803
1803
  }
1804
- hs(e, () => (0, ms.topBoolOrEmptySchema)(e));
1804
+ ps(e, () => (0, hs.topBoolOrEmptySchema)(e));
1805
1805
  }
1806
- ye.validateFunctionCode = Ro;
1807
- function hs({ gen: e, validateName: t, schema: r, schemaEnv: n, opts: s }, a) {
1808
- s.code.es5 ? e.func(t, (0, T._)`${F.default.data}, ${F.default.valCxt}`, n.$async, () => {
1809
- e.code((0, T._)`"use strict"; ${$n(r, s)}`), Co(e, s), e.code(a);
1810
- }) : e.func(t, (0, T._)`${F.default.data}, ${Ao(s)}`, n.$async, () => e.code($n(r, s)).code(a));
1806
+ ge.validateFunctionCode = Ao;
1807
+ function ps({ gen: e, validateName: t, schema: r, schemaEnv: n, opts: s }, a) {
1808
+ s.code.es5 ? e.func(t, (0, R._)`${F.default.data}, ${F.default.valCxt}`, n.$async, () => {
1809
+ e.code((0, R._)`"use strict"; ${$n(r, s)}`), Vo(e, s), e.code(a);
1810
+ }) : e.func(t, (0, R._)`${F.default.data}, ${Co(s)}`, n.$async, () => e.code($n(r, s)).code(a));
1811
1811
  }
1812
- function Ao(e) {
1813
- return (0, T._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${e.dynamicRef ? (0, T._)`, ${F.default.dynamicAnchors}={}` : T.nil}}={}`;
1812
+ function Co(e) {
1813
+ return (0, R._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${e.dynamicRef ? (0, R._)`, ${F.default.dynamicAnchors}={}` : R.nil}}={}`;
1814
1814
  }
1815
- function Co(e, t) {
1815
+ function Vo(e, t) {
1816
1816
  e.if(F.default.valCxt, () => {
1817
- e.var(F.default.instancePath, (0, T._)`${F.default.valCxt}.${F.default.instancePath}`), e.var(F.default.parentData, (0, T._)`${F.default.valCxt}.${F.default.parentData}`), e.var(F.default.parentDataProperty, (0, T._)`${F.default.valCxt}.${F.default.parentDataProperty}`), e.var(F.default.rootData, (0, T._)`${F.default.valCxt}.${F.default.rootData}`), t.dynamicRef && e.var(F.default.dynamicAnchors, (0, T._)`${F.default.valCxt}.${F.default.dynamicAnchors}`);
1817
+ e.var(F.default.instancePath, (0, R._)`${F.default.valCxt}.${F.default.instancePath}`), e.var(F.default.parentData, (0, R._)`${F.default.valCxt}.${F.default.parentData}`), e.var(F.default.parentDataProperty, (0, R._)`${F.default.valCxt}.${F.default.parentDataProperty}`), e.var(F.default.rootData, (0, R._)`${F.default.valCxt}.${F.default.rootData}`), t.dynamicRef && e.var(F.default.dynamicAnchors, (0, R._)`${F.default.valCxt}.${F.default.dynamicAnchors}`);
1818
1818
  }, () => {
1819
- e.var(F.default.instancePath, (0, T._)`""`), e.var(F.default.parentData, (0, T._)`undefined`), e.var(F.default.parentDataProperty, (0, T._)`undefined`), e.var(F.default.rootData, F.default.data), t.dynamicRef && e.var(F.default.dynamicAnchors, (0, T._)`{}`);
1819
+ e.var(F.default.instancePath, (0, R._)`""`), e.var(F.default.parentData, (0, R._)`undefined`), e.var(F.default.parentDataProperty, (0, R._)`undefined`), e.var(F.default.rootData, F.default.data), t.dynamicRef && e.var(F.default.dynamicAnchors, (0, R._)`{}`);
1820
1820
  });
1821
1821
  }
1822
- function Vo(e) {
1822
+ function Do(e) {
1823
1823
  const { schema: t, opts: r, gen: n } = e;
1824
- hs(e, () => {
1825
- r.$comment && t.$comment && gs(e), Lo(e), n.let(F.default.vErrors, null), n.let(F.default.errors, 0), r.unevaluated && Do(e), _s(e), Go(e);
1824
+ ps(e, () => {
1825
+ r.$comment && t.$comment && bs(e), Ho(e), n.let(F.default.vErrors, null), n.let(F.default.errors, 0), r.unevaluated && Fo(e), gs(e), Go(e);
1826
1826
  });
1827
1827
  }
1828
- function Do(e) {
1828
+ function Fo(e) {
1829
1829
  const { gen: t, validateName: r } = e;
1830
- e.evaluated = t.const("evaluated", (0, T._)`${r}.evaluated`), t.if((0, T._)`${e.evaluated}.dynamicProps`, () => t.assign((0, T._)`${e.evaluated}.props`, (0, T._)`undefined`)), t.if((0, T._)`${e.evaluated}.dynamicItems`, () => t.assign((0, T._)`${e.evaluated}.items`, (0, T._)`undefined`));
1830
+ e.evaluated = t.const("evaluated", (0, R._)`${r}.evaluated`), t.if((0, R._)`${e.evaluated}.dynamicProps`, () => t.assign((0, R._)`${e.evaluated}.props`, (0, R._)`undefined`)), t.if((0, R._)`${e.evaluated}.dynamicItems`, () => t.assign((0, R._)`${e.evaluated}.items`, (0, R._)`undefined`));
1831
1831
  }
1832
1832
  function $n(e, t) {
1833
1833
  const r = typeof e == "object" && e[t.schemaId];
1834
- return r && (t.code.source || t.code.process) ? (0, T._)`/*# sourceURL=${r} */` : T.nil;
1834
+ return r && (t.code.source || t.code.process) ? (0, R._)`/*# sourceURL=${r} */` : R.nil;
1835
1835
  }
1836
- function Fo(e, t) {
1837
- if (ys(e) && (vs(e), ps(e))) {
1838
- zo(e, t);
1836
+ function zo(e, t) {
1837
+ if (vs(e) && (_s(e), ys(e))) {
1838
+ Uo(e, t);
1839
1839
  return;
1840
1840
  }
1841
- (0, ms.boolOrEmptySchema)(e, t);
1841
+ (0, hs.boolOrEmptySchema)(e, t);
1842
1842
  }
1843
- function ps({ schema: e, self: t }) {
1843
+ function ys({ schema: e, self: t }) {
1844
1844
  if (typeof e == "boolean")
1845
1845
  return !e;
1846
1846
  for (const r in e)
@@ -1848,80 +1848,80 @@ function ps({ schema: e, self: t }) {
1848
1848
  return !0;
1849
1849
  return !1;
1850
1850
  }
1851
- function ys(e) {
1851
+ function vs(e) {
1852
1852
  return typeof e.schema != "boolean";
1853
1853
  }
1854
- function zo(e, t) {
1854
+ function Uo(e, t) {
1855
1855
  const { schema: r, gen: n, opts: s } = e;
1856
- s.$comment && r.$comment && gs(e), Ho(e), Ko(e);
1856
+ s.$comment && r.$comment && bs(e), Ko(e), Bo(e);
1857
1857
  const a = n.const("_errs", F.default.errors);
1858
- _s(e, a), n.var(t, (0, T._)`${a} === ${F.default.errors}`);
1858
+ gs(e, a), n.var(t, (0, R._)`${a} === ${F.default.errors}`);
1859
1859
  }
1860
- function vs(e) {
1861
- (0, Pe.checkUnknownRules)(e), Uo(e);
1860
+ function _s(e) {
1861
+ (0, Oe.checkUnknownRules)(e), Lo(e);
1862
1862
  }
1863
- function _s(e, t) {
1863
+ function gs(e, t) {
1864
1864
  if (e.opts.jtd)
1865
1865
  return wn(e, [], !1, t);
1866
1866
  const r = (0, bn.getSchemaTypes)(e.schema), n = (0, bn.coerceAndCheckDataType)(e, r);
1867
1867
  wn(e, r, !n, t);
1868
1868
  }
1869
- function Uo(e) {
1869
+ function Lo(e) {
1870
1870
  const { schema: t, errSchemaPath: r, opts: n, self: s } = e;
1871
- t.$ref && n.ignoreKeywordsWithRef && (0, Pe.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1871
+ t.$ref && n.ignoreKeywordsWithRef && (0, Oe.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1872
1872
  }
1873
- function Lo(e) {
1873
+ function Ho(e) {
1874
1874
  const { schema: t, opts: r } = e;
1875
- t.default !== void 0 && r.useDefaults && r.strictSchema && (0, Pe.checkStrictMode)(e, "default is ignored in the schema root");
1875
+ t.default !== void 0 && r.useDefaults && r.strictSchema && (0, Oe.checkStrictMode)(e, "default is ignored in the schema root");
1876
1876
  }
1877
- function Ho(e) {
1877
+ function Ko(e) {
1878
1878
  const t = e.schema[e.opts.schemaId];
1879
- t && (e.baseId = (0, To.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1879
+ t && (e.baseId = (0, Ro.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1880
1880
  }
1881
- function Ko(e) {
1881
+ function Bo(e) {
1882
1882
  if (e.schema.$async && !e.schemaEnv.$async)
1883
1883
  throw new Error("async schema in sync schema");
1884
1884
  }
1885
- function gs({ gen: e, schemaEnv: t, schema: r, errSchemaPath: n, opts: s }) {
1885
+ function bs({ gen: e, schemaEnv: t, schema: r, errSchemaPath: n, opts: s }) {
1886
1886
  const a = r.$comment;
1887
1887
  if (s.$comment === !0)
1888
- e.code((0, T._)`${F.default.self}.logger.log(${a})`);
1888
+ e.code((0, R._)`${F.default.self}.logger.log(${a})`);
1889
1889
  else if (typeof s.$comment == "function") {
1890
- const o = (0, T.str)`${n}/$comment`, i = e.scopeValue("root", { ref: t.root });
1891
- e.code((0, T._)`${F.default.self}.opts.$comment(${a}, ${o}, ${i}.schema)`);
1890
+ const o = (0, R.str)`${n}/$comment`, i = e.scopeValue("root", { ref: t.root });
1891
+ e.code((0, R._)`${F.default.self}.opts.$comment(${a}, ${o}, ${i}.schema)`);
1892
1892
  }
1893
1893
  }
1894
1894
  function Go(e) {
1895
1895
  const { gen: t, schemaEnv: r, validateName: n, ValidationError: s, opts: a } = e;
1896
- r.$async ? t.if((0, T._)`${F.default.errors} === 0`, () => t.return(F.default.data), () => t.throw((0, T._)`new ${s}(${F.default.vErrors})`)) : (t.assign((0, T._)`${n}.errors`, F.default.vErrors), a.unevaluated && Bo(e), t.return((0, T._)`${F.default.errors} === 0`));
1896
+ r.$async ? t.if((0, R._)`${F.default.errors} === 0`, () => t.return(F.default.data), () => t.throw((0, R._)`new ${s}(${F.default.vErrors})`)) : (t.assign((0, R._)`${n}.errors`, F.default.vErrors), a.unevaluated && Jo(e), t.return((0, R._)`${F.default.errors} === 0`));
1897
1897
  }
1898
- function Bo({ gen: e, evaluated: t, props: r, items: n }) {
1899
- r instanceof T.Name && e.assign((0, T._)`${t}.props`, r), n instanceof T.Name && e.assign((0, T._)`${t}.items`, n);
1898
+ function Jo({ gen: e, evaluated: t, props: r, items: n }) {
1899
+ r instanceof R.Name && e.assign((0, R._)`${t}.props`, r), n instanceof R.Name && e.assign((0, R._)`${t}.items`, n);
1900
1900
  }
1901
1901
  function wn(e, t, r, n) {
1902
1902
  const { gen: s, schema: a, data: o, allErrors: i, opts: d, self: c } = e, { RULES: u } = c;
1903
- if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Pe.schemaHasRulesButRef)(a, u))) {
1904
- s.block(() => ws(e, "$ref", u.all.$ref.definition));
1903
+ if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Oe.schemaHasRulesButRef)(a, u))) {
1904
+ s.block(() => Ss(e, "$ref", u.all.$ref.definition));
1905
1905
  return;
1906
1906
  }
1907
- d.jtd || Jo(e, t), s.block(() => {
1907
+ d.jtd || xo(e, t), s.block(() => {
1908
1908
  for (const w of u.rules)
1909
1909
  h(w);
1910
1910
  h(u.post);
1911
1911
  });
1912
1912
  function h(w) {
1913
- (0, Ir.shouldUseGroup)(a, w) && (w.type ? (s.if((0, qt.checkDataType)(w.type, o, d.strictNumbers)), Sn(e, w), t.length === 1 && t[0] === w.type && r && (s.else(), (0, qt.reportTypeError)(e)), s.endIf()) : Sn(e, w), i || s.if((0, T._)`${F.default.errors} === ${n || 0}`));
1913
+ (0, Ir.shouldUseGroup)(a, w) && (w.type ? (s.if((0, Mt.checkDataType)(w.type, o, d.strictNumbers)), Sn(e, w), t.length === 1 && t[0] === w.type && r && (s.else(), (0, Mt.reportTypeError)(e)), s.endIf()) : Sn(e, w), i || s.if((0, R._)`${F.default.errors} === ${n || 0}`));
1914
1914
  }
1915
1915
  }
1916
1916
  function Sn(e, t) {
1917
1917
  const { gen: r, schema: n, opts: { useDefaults: s } } = e;
1918
- s && (0, qo.assignDefaults)(e, t.type), r.block(() => {
1918
+ s && (0, To.assignDefaults)(e, t.type), r.block(() => {
1919
1919
  for (const a of t.rules)
1920
- (0, Ir.shouldUseRule)(n, a) && ws(e, a.keyword, a.definition, t.type);
1920
+ (0, Ir.shouldUseRule)(n, a) && Ss(e, a.keyword, a.definition, t.type);
1921
1921
  });
1922
1922
  }
1923
- function Jo(e, t) {
1924
- e.schemaEnv.meta || !e.opts.strictTypes || (Wo(e, t), e.opts.allowUnionTypes || xo(e, t), Zo(e, e.dataTypes));
1923
+ function xo(e, t) {
1924
+ e.schemaEnv.meta || !e.opts.strictTypes || (Wo(e, t), e.opts.allowUnionTypes || Zo(e, t), Yo(e, e.dataTypes));
1925
1925
  }
1926
1926
  function Wo(e, t) {
1927
1927
  if (t.length) {
@@ -1930,55 +1930,55 @@ function Wo(e, t) {
1930
1930
  return;
1931
1931
  }
1932
1932
  t.forEach((r) => {
1933
- bs(e.dataTypes, r) || Mr(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1934
- }), Qo(e, t);
1933
+ $s(e.dataTypes, r) || qr(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1934
+ }), Xo(e, t);
1935
1935
  }
1936
1936
  }
1937
- function xo(e, t) {
1938
- t.length > 1 && !(t.length === 2 && t.includes("null")) && Mr(e, "use allowUnionTypes to allow union type keyword");
1939
- }
1940
1937
  function Zo(e, t) {
1938
+ t.length > 1 && !(t.length === 2 && t.includes("null")) && qr(e, "use allowUnionTypes to allow union type keyword");
1939
+ }
1940
+ function Yo(e, t) {
1941
1941
  const r = e.self.RULES.all;
1942
1942
  for (const n in r) {
1943
1943
  const s = r[n];
1944
1944
  if (typeof s == "object" && (0, Ir.shouldUseRule)(e.schema, s)) {
1945
1945
  const { type: a } = s.definition;
1946
- a.length && !a.some((o) => Yo(t, o)) && Mr(e, `missing type "${a.join(",")}" for keyword "${n}"`);
1946
+ a.length && !a.some((o) => Qo(t, o)) && qr(e, `missing type "${a.join(",")}" for keyword "${n}"`);
1947
1947
  }
1948
1948
  }
1949
1949
  }
1950
- function Yo(e, t) {
1950
+ function Qo(e, t) {
1951
1951
  return e.includes(t) || t === "number" && e.includes("integer");
1952
1952
  }
1953
- function bs(e, t) {
1953
+ function $s(e, t) {
1954
1954
  return e.includes(t) || t === "integer" && e.includes("number");
1955
1955
  }
1956
- function Qo(e, t) {
1956
+ function Xo(e, t) {
1957
1957
  const r = [];
1958
1958
  for (const n of e.dataTypes)
1959
- bs(t, n) ? r.push(n) : t.includes("integer") && n === "number" && r.push("integer");
1959
+ $s(t, n) ? r.push(n) : t.includes("integer") && n === "number" && r.push("integer");
1960
1960
  e.dataTypes = r;
1961
1961
  }
1962
- function Mr(e, t) {
1962
+ function qr(e, t) {
1963
1963
  const r = e.schemaEnv.baseId + e.errSchemaPath;
1964
- t += ` at "${r}" (strictTypes)`, (0, Pe.checkStrictMode)(e, t, e.opts.strictTypes);
1964
+ t += ` at "${r}" (strictTypes)`, (0, Oe.checkStrictMode)(e, t, e.opts.strictTypes);
1965
1965
  }
1966
- class $s {
1966
+ class ws {
1967
1967
  constructor(t, r, n) {
1968
- if ((0, lt.validateKeywordUsage)(t, r, n), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = n, this.data = t.data, this.schema = t.schema[n], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Pe.schemaRefOrVal)(t, this.schema, n, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1969
- this.schemaCode = t.gen.const("vSchema", Ss(this.$data, t));
1968
+ if ((0, lt.validateKeywordUsage)(t, r, n), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = n, this.data = t.data, this.schema = t.schema[n], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Oe.schemaRefOrVal)(t, this.schema, n, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1969
+ this.schemaCode = t.gen.const("vSchema", ks(this.$data, t));
1970
1970
  else if (this.schemaCode = this.schemaValue, !(0, lt.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1971
1971
  throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);
1972
1972
  ("code" in r ? r.trackErrors : r.errors !== !1) && (this.errsCount = t.gen.const("_errs", F.default.errors));
1973
1973
  }
1974
1974
  result(t, r, n) {
1975
- this.failResult((0, T.not)(t), r, n);
1975
+ this.failResult((0, R.not)(t), r, n);
1976
1976
  }
1977
1977
  failResult(t, r, n) {
1978
1978
  this.gen.if(t), n ? n() : this.error(), r ? (this.gen.else(), r(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
1979
1979
  }
1980
1980
  pass(t, r) {
1981
- this.failResult((0, T.not)(t), void 0, r);
1981
+ this.failResult((0, R.not)(t), void 0, r);
1982
1982
  }
1983
1983
  fail(t) {
1984
1984
  if (t === void 0) {
@@ -1991,7 +1991,7 @@ class $s {
1991
1991
  if (!this.$data)
1992
1992
  return this.fail(t);
1993
1993
  const { schemaCode: r } = this;
1994
- this.fail((0, T._)`${r} !== undefined && (${(0, T.or)(this.invalid$data(), t)})`);
1994
+ this.fail((0, R._)`${r} !== undefined && (${(0, R.or)(this.invalid$data(), t)})`);
1995
1995
  }
1996
1996
  error(t, r, n) {
1997
1997
  if (r) {
@@ -2017,69 +2017,69 @@ class $s {
2017
2017
  setParams(t, r) {
2018
2018
  r ? Object.assign(this.params, t) : this.params = t;
2019
2019
  }
2020
- block$data(t, r, n = T.nil) {
2020
+ block$data(t, r, n = R.nil) {
2021
2021
  this.gen.block(() => {
2022
2022
  this.check$data(t, n), r();
2023
2023
  });
2024
2024
  }
2025
- check$data(t = T.nil, r = T.nil) {
2025
+ check$data(t = R.nil, r = R.nil) {
2026
2026
  if (!this.$data)
2027
2027
  return;
2028
2028
  const { gen: n, schemaCode: s, schemaType: a, def: o } = this;
2029
- n.if((0, T.or)((0, T._)`${s} === undefined`, r)), t !== T.nil && n.assign(t, !0), (a.length || o.validateSchema) && (n.elseIf(this.invalid$data()), this.$dataError(), t !== T.nil && n.assign(t, !1)), n.else();
2029
+ n.if((0, R.or)((0, R._)`${s} === undefined`, r)), t !== R.nil && n.assign(t, !0), (a.length || o.validateSchema) && (n.elseIf(this.invalid$data()), this.$dataError(), t !== R.nil && n.assign(t, !1)), n.else();
2030
2030
  }
2031
2031
  invalid$data() {
2032
2032
  const { gen: t, schemaCode: r, schemaType: n, def: s, it: a } = this;
2033
- return (0, T.or)(o(), i());
2033
+ return (0, R.or)(o(), i());
2034
2034
  function o() {
2035
2035
  if (n.length) {
2036
- if (!(r instanceof T.Name))
2036
+ if (!(r instanceof R.Name))
2037
2037
  throw new Error("ajv implementation error");
2038
2038
  const d = Array.isArray(n) ? n : [n];
2039
- return (0, T._)`${(0, qt.checkDataTypes)(d, r, a.opts.strictNumbers, qt.DataType.Wrong)}`;
2039
+ return (0, R._)`${(0, Mt.checkDataTypes)(d, r, a.opts.strictNumbers, Mt.DataType.Wrong)}`;
2040
2040
  }
2041
- return T.nil;
2041
+ return R.nil;
2042
2042
  }
2043
2043
  function i() {
2044
2044
  if (s.validateSchema) {
2045
2045
  const d = t.scopeValue("validate$data", { ref: s.validateSchema });
2046
- return (0, T._)`!${d}(${r})`;
2046
+ return (0, R._)`!${d}(${r})`;
2047
2047
  }
2048
- return T.nil;
2048
+ return R.nil;
2049
2049
  }
2050
2050
  }
2051
2051
  subschema(t, r) {
2052
2052
  const n = (0, lr.getSubschema)(this.it, t);
2053
2053
  (0, lr.extendSubschemaData)(n, this.it, t), (0, lr.extendSubschemaMode)(n, t);
2054
2054
  const s = { ...this.it, ...n, items: void 0, props: void 0 };
2055
- return Fo(s, r), s;
2055
+ return zo(s, r), s;
2056
2056
  }
2057
2057
  mergeEvaluated(t, r) {
2058
2058
  const { it: n, gen: s } = this;
2059
- n.opts.unevaluated && (n.props !== !0 && t.props !== void 0 && (n.props = Pe.mergeEvaluated.props(s, t.props, n.props, r)), n.items !== !0 && t.items !== void 0 && (n.items = Pe.mergeEvaluated.items(s, t.items, n.items, r)));
2059
+ n.opts.unevaluated && (n.props !== !0 && t.props !== void 0 && (n.props = Oe.mergeEvaluated.props(s, t.props, n.props, r)), n.items !== !0 && t.items !== void 0 && (n.items = Oe.mergeEvaluated.items(s, t.items, n.items, r)));
2060
2060
  }
2061
2061
  mergeValidEvaluated(t, r) {
2062
2062
  const { it: n, gen: s } = this;
2063
2063
  if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0))
2064
- return s.if(r, () => this.mergeEvaluated(t, T.Name)), !0;
2064
+ return s.if(r, () => this.mergeEvaluated(t, R.Name)), !0;
2065
2065
  }
2066
2066
  }
2067
- ye.KeywordCxt = $s;
2068
- function ws(e, t, r, n) {
2069
- const s = new $s(e, r, t);
2067
+ ge.KeywordCxt = ws;
2068
+ function Ss(e, t, r, n) {
2069
+ const s = new ws(e, r, t);
2070
2070
  "code" in r ? r.code(s, n) : s.$data && r.validate ? (0, lt.funcKeywordCode)(s, r) : "macro" in r ? (0, lt.macroKeywordCode)(s, r) : (r.compile || r.validate) && (0, lt.funcKeywordCode)(s, r);
2071
2071
  }
2072
- const Xo = /^\/(?:[^~]|~0|~1)*$/, ei = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2073
- function Ss(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
2072
+ const ei = /^\/(?:[^~]|~0|~1)*$/, ti = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2073
+ function ks(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
2074
2074
  let s, a;
2075
2075
  if (e === "")
2076
2076
  return F.default.rootData;
2077
2077
  if (e[0] === "/") {
2078
- if (!Xo.test(e))
2078
+ if (!ei.test(e))
2079
2079
  throw new Error(`Invalid JSON-pointer: ${e}`);
2080
2080
  s = e, a = F.default.rootData;
2081
2081
  } else {
2082
- const c = ei.exec(e);
2082
+ const c = ti.exec(e);
2083
2083
  if (!c)
2084
2084
  throw new Error(`Invalid JSON-pointer: ${e}`);
2085
2085
  const u = +c[1];
@@ -2096,52 +2096,52 @@ function Ss(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
2096
2096
  let o = a;
2097
2097
  const i = s.split("/");
2098
2098
  for (const c of i)
2099
- c && (a = (0, T._)`${a}${(0, T.getProperty)((0, Pe.unescapeJsonPointer)(c))}`, o = (0, T._)`${o} && ${a}`);
2099
+ c && (a = (0, R._)`${a}${(0, R.getProperty)((0, Oe.unescapeJsonPointer)(c))}`, o = (0, R._)`${o} && ${a}`);
2100
2100
  return o;
2101
2101
  function d(c, u) {
2102
2102
  return `Cannot access ${c} ${u} levels up, current level is ${t}`;
2103
2103
  }
2104
2104
  }
2105
- ye.getData = Ss;
2105
+ ge.getData = ks;
2106
2106
  var pt = {};
2107
2107
  Object.defineProperty(pt, "__esModule", { value: !0 });
2108
- class ti extends Error {
2108
+ class ri extends Error {
2109
2109
  constructor(t) {
2110
2110
  super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
2111
2111
  }
2112
2112
  }
2113
- pt.default = ti;
2113
+ pt.default = ri;
2114
2114
  var Xe = {};
2115
2115
  Object.defineProperty(Xe, "__esModule", { value: !0 });
2116
2116
  const dr = ae;
2117
- class ri extends Error {
2117
+ class ni extends Error {
2118
2118
  constructor(t, r, n, s) {
2119
2119
  super(s || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0, dr.resolveUrl)(t, r, n), this.missingSchema = (0, dr.normalizeId)((0, dr.getFullPath)(t, this.missingRef));
2120
2120
  }
2121
2121
  }
2122
- Xe.default = ri;
2122
+ Xe.default = ni;
2123
2123
  var ce = {};
2124
2124
  Object.defineProperty(ce, "__esModule", { value: !0 });
2125
2125
  ce.resolveSchema = ce.getCompilingSchema = ce.resolveRef = ce.compileSchema = ce.SchemaEnv = void 0;
2126
- const me = H, ni = pt, Ce = ke, pe = ae, kn = N, si = ye;
2126
+ const ye = H, si = pt, Ce = ke, _e = ae, kn = N, ai = ge;
2127
2127
  class zt {
2128
2128
  constructor(t) {
2129
2129
  var r;
2130
2130
  this.refs = {}, this.dynamicAnchors = {};
2131
2131
  let n;
2132
- typeof t.schema == "object" && (n = t.schema), this.schema = t.schema, this.schemaId = t.schemaId, this.root = t.root || this, this.baseId = (r = t.baseId) !== null && r !== void 0 ? r : (0, pe.normalizeId)(n == null ? void 0 : n[t.schemaId || "$id"]), this.schemaPath = t.schemaPath, this.localRefs = t.localRefs, this.meta = t.meta, this.$async = n == null ? void 0 : n.$async, this.refs = {};
2132
+ typeof t.schema == "object" && (n = t.schema), this.schema = t.schema, this.schemaId = t.schemaId, this.root = t.root || this, this.baseId = (r = t.baseId) !== null && r !== void 0 ? r : (0, _e.normalizeId)(n == null ? void 0 : n[t.schemaId || "$id"]), this.schemaPath = t.schemaPath, this.localRefs = t.localRefs, this.meta = t.meta, this.$async = n == null ? void 0 : n.$async, this.refs = {};
2133
2133
  }
2134
2134
  }
2135
2135
  ce.SchemaEnv = zt;
2136
- function qr(e) {
2137
- const t = ks.call(this, e);
2136
+ function Mr(e) {
2137
+ const t = Es.call(this, e);
2138
2138
  if (t)
2139
2139
  return t;
2140
- const r = (0, pe.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: n, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new me.CodeGen(this.scope, { es5: n, lines: s, ownProperties: a });
2140
+ const r = (0, _e.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: n, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new ye.CodeGen(this.scope, { es5: n, lines: s, ownProperties: a });
2141
2141
  let i;
2142
2142
  e.$async && (i = o.scopeValue("Error", {
2143
- ref: ni.default,
2144
- code: (0, me._)`require("ajv/dist/runtime/validation_error").default`
2143
+ ref: si.default,
2144
+ code: (0, ye._)`require("ajv/dist/runtime/validation_error").default`
2145
2145
  }));
2146
2146
  const d = o.scopeName("validate");
2147
2147
  e.validateName = d;
@@ -2152,38 +2152,38 @@ function qr(e) {
2152
2152
  parentData: Ce.default.parentData,
2153
2153
  parentDataProperty: Ce.default.parentDataProperty,
2154
2154
  dataNames: [Ce.default.data],
2155
- dataPathArr: [me.nil],
2155
+ dataPathArr: [ye.nil],
2156
2156
  // TODO can its length be used as dataLevel if nil is removed?
2157
2157
  dataLevel: 0,
2158
2158
  dataTypes: [],
2159
2159
  definedProperties: /* @__PURE__ */ new Set(),
2160
- topSchemaRef: o.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, me.stringify)(e.schema) } : { ref: e.schema }),
2160
+ topSchemaRef: o.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, ye.stringify)(e.schema) } : { ref: e.schema }),
2161
2161
  validateName: d,
2162
2162
  ValidationError: i,
2163
2163
  schema: e.schema,
2164
2164
  schemaEnv: e,
2165
2165
  rootId: r,
2166
2166
  baseId: e.baseId || r,
2167
- schemaPath: me.nil,
2167
+ schemaPath: ye.nil,
2168
2168
  errSchemaPath: e.schemaPath || (this.opts.jtd ? "" : "#"),
2169
- errorPath: (0, me._)`""`,
2169
+ errorPath: (0, ye._)`""`,
2170
2170
  opts: this.opts,
2171
2171
  self: this
2172
2172
  };
2173
2173
  let u;
2174
2174
  try {
2175
- this._compilations.add(e), (0, si.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
2175
+ this._compilations.add(e), (0, ai.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
2176
2176
  const h = o.toString();
2177
2177
  u = `${o.scopeRefs(Ce.default.scope)}return ${h}`, this.opts.code.process && (u = this.opts.code.process(u, e));
2178
2178
  const b = new Function(`${Ce.default.self}`, `${Ce.default.scope}`, u)(this, this.scope.get());
2179
2179
  if (this.scope.value(d, { ref: b }), b.errors = null, b.schema = e.schema, b.schemaEnv = e, e.$async && (b.$async = !0), this.opts.code.source === !0 && (b.source = { validateName: d, validateCode: h, scopeValues: o._values }), this.opts.unevaluated) {
2180
2180
  const { props: _, items: g } = c;
2181
2181
  b.evaluated = {
2182
- props: _ instanceof me.Name ? void 0 : _,
2183
- items: g instanceof me.Name ? void 0 : g,
2184
- dynamicProps: _ instanceof me.Name,
2185
- dynamicItems: g instanceof me.Name
2186
- }, b.source && (b.source.evaluated = (0, me.stringify)(b.evaluated));
2182
+ props: _ instanceof ye.Name ? void 0 : _,
2183
+ items: g instanceof ye.Name ? void 0 : g,
2184
+ dynamicProps: _ instanceof ye.Name,
2185
+ dynamicItems: g instanceof ye.Name
2186
+ }, b.source && (b.source.evaluated = (0, ye.stringify)(b.evaluated));
2187
2187
  }
2188
2188
  return e.validate = b, e;
2189
2189
  } catch (h) {
@@ -2192,60 +2192,60 @@ function qr(e) {
2192
2192
  this._compilations.delete(e);
2193
2193
  }
2194
2194
  }
2195
- ce.compileSchema = qr;
2196
- function ai(e, t, r) {
2195
+ ce.compileSchema = Mr;
2196
+ function oi(e, t, r) {
2197
2197
  var n;
2198
- r = (0, pe.resolveUrl)(this.opts.uriResolver, t, r);
2198
+ r = (0, _e.resolveUrl)(this.opts.uriResolver, t, r);
2199
2199
  const s = e.refs[r];
2200
2200
  if (s)
2201
2201
  return s;
2202
- let a = li.call(this, e, r);
2202
+ let a = di.call(this, e, r);
2203
2203
  if (a === void 0) {
2204
2204
  const o = (n = e.localRefs) === null || n === void 0 ? void 0 : n[r], { schemaId: i } = this.opts;
2205
2205
  o && (a = new zt({ schema: o, schemaId: i, root: e, baseId: t }));
2206
2206
  }
2207
2207
  if (a !== void 0)
2208
- return e.refs[r] = oi.call(this, a);
2208
+ return e.refs[r] = ii.call(this, a);
2209
2209
  }
2210
- ce.resolveRef = ai;
2211
- function oi(e) {
2212
- return (0, pe.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : qr.call(this, e);
2210
+ ce.resolveRef = oi;
2211
+ function ii(e) {
2212
+ return (0, _e.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Mr.call(this, e);
2213
2213
  }
2214
- function ks(e) {
2214
+ function Es(e) {
2215
2215
  for (const t of this._compilations)
2216
- if (ii(t, e))
2216
+ if (li(t, e))
2217
2217
  return t;
2218
2218
  }
2219
- ce.getCompilingSchema = ks;
2220
- function ii(e, t) {
2219
+ ce.getCompilingSchema = Es;
2220
+ function li(e, t) {
2221
2221
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2222
2222
  }
2223
- function li(e, t) {
2223
+ function di(e, t) {
2224
2224
  let r;
2225
2225
  for (; typeof (r = this.refs[t]) == "string"; )
2226
2226
  t = r;
2227
2227
  return r || this.schemas[t] || Ut.call(this, e, t);
2228
2228
  }
2229
2229
  function Ut(e, t) {
2230
- const r = this.opts.uriResolver.parse(t), n = (0, pe._getFullPath)(this.opts.uriResolver, r);
2231
- let s = (0, pe.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2230
+ const r = this.opts.uriResolver.parse(t), n = (0, _e._getFullPath)(this.opts.uriResolver, r);
2231
+ let s = (0, _e.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2232
2232
  if (Object.keys(e.schema).length > 0 && n === s)
2233
2233
  return cr.call(this, r, e);
2234
- const a = (0, pe.normalizeId)(n), o = this.refs[a] || this.schemas[a];
2234
+ const a = (0, _e.normalizeId)(n), o = this.refs[a] || this.schemas[a];
2235
2235
  if (typeof o == "string") {
2236
2236
  const i = Ut.call(this, e, o);
2237
2237
  return typeof (i == null ? void 0 : i.schema) != "object" ? void 0 : cr.call(this, r, i);
2238
2238
  }
2239
2239
  if (typeof (o == null ? void 0 : o.schema) == "object") {
2240
- if (o.validate || qr.call(this, o), a === (0, pe.normalizeId)(t)) {
2240
+ if (o.validate || Mr.call(this, o), a === (0, _e.normalizeId)(t)) {
2241
2241
  const { schema: i } = o, { schemaId: d } = this.opts, c = i[d];
2242
- return c && (s = (0, pe.resolveUrl)(this.opts.uriResolver, s, c)), new zt({ schema: i, schemaId: d, root: e, baseId: s });
2242
+ return c && (s = (0, _e.resolveUrl)(this.opts.uriResolver, s, c)), new zt({ schema: i, schemaId: d, root: e, baseId: s });
2243
2243
  }
2244
2244
  return cr.call(this, r, o);
2245
2245
  }
2246
2246
  }
2247
2247
  ce.resolveSchema = Ut;
2248
- const di = /* @__PURE__ */ new Set([
2248
+ const ci = /* @__PURE__ */ new Set([
2249
2249
  "properties",
2250
2250
  "patternProperties",
2251
2251
  "enum",
@@ -2264,20 +2264,20 @@ function cr(e, { baseId: t, schema: r, root: n }) {
2264
2264
  return;
2265
2265
  r = d;
2266
2266
  const c = typeof r == "object" && r[this.opts.schemaId];
2267
- !di.has(i) && c && (t = (0, pe.resolveUrl)(this.opts.uriResolver, t, c));
2267
+ !ci.has(i) && c && (t = (0, _e.resolveUrl)(this.opts.uriResolver, t, c));
2268
2268
  }
2269
2269
  let a;
2270
2270
  if (typeof r != "boolean" && r.$ref && !(0, kn.schemaHasRulesButRef)(r, this.RULES)) {
2271
- const i = (0, pe.resolveUrl)(this.opts.uriResolver, t, r.$ref);
2271
+ const i = (0, _e.resolveUrl)(this.opts.uriResolver, t, r.$ref);
2272
2272
  a = Ut.call(this, n, i);
2273
2273
  }
2274
2274
  const { schemaId: o } = this.opts;
2275
2275
  if (a = a || new zt({ schema: r, schemaId: o, root: n, baseId: t }), a.schema !== a.root.schema)
2276
2276
  return a;
2277
2277
  }
2278
- const ci = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", ui = "Meta-schema for $data reference (JSON AnySchema extension proposal)", fi = "object", mi = [
2278
+ const ui = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", fi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", mi = "object", hi = [
2279
2279
  "$data"
2280
- ], hi = {
2280
+ ], pi = {
2281
2281
  $data: {
2282
2282
  type: "string",
2283
2283
  anyOf: [
@@ -2289,17 +2289,17 @@ const ci = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
2289
2289
  }
2290
2290
  ]
2291
2291
  }
2292
- }, pi = !1, yi = {
2293
- $id: ci,
2294
- description: ui,
2295
- type: fi,
2296
- required: mi,
2297
- properties: hi,
2298
- additionalProperties: pi
2292
+ }, yi = !1, vi = {
2293
+ $id: ui,
2294
+ description: fi,
2295
+ type: mi,
2296
+ required: hi,
2297
+ properties: pi,
2298
+ additionalProperties: yi
2299
2299
  };
2300
2300
  var Tr = {}, Lt = { exports: {} };
2301
- const vi = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), Es = 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);
2302
- function Ps(e) {
2301
+ const _i = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), Ps = 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);
2302
+ function Os(e) {
2303
2303
  let t = "", r = 0, n = 0;
2304
2304
  for (n = 0; n < e.length; n++)
2305
2305
  if (r = e[n].charCodeAt(0), r !== 48) {
@@ -2315,13 +2315,13 @@ function Ps(e) {
2315
2315
  }
2316
2316
  return t;
2317
2317
  }
2318
- const _i = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2318
+ const gi = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2319
2319
  function En(e) {
2320
2320
  return e.length = 0, !0;
2321
2321
  }
2322
- function gi(e, t, r) {
2322
+ function bi(e, t, r) {
2323
2323
  if (e.length) {
2324
- const n = Ps(e);
2324
+ const n = Os(e);
2325
2325
  if (n !== "")
2326
2326
  t.push(n);
2327
2327
  else
@@ -2330,10 +2330,10 @@ function gi(e, t, r) {
2330
2330
  }
2331
2331
  return !0;
2332
2332
  }
2333
- function bi(e) {
2333
+ function $i(e) {
2334
2334
  let t = 0;
2335
2335
  const r = { error: !1, address: "", zone: "" }, n = [], s = [];
2336
- let a = !1, o = !1, i = gi;
2336
+ let a = !1, o = !1, i = bi;
2337
2337
  for (let d = 0; d < e.length; d++) {
2338
2338
  const c = e[d];
2339
2339
  if (!(c === "[" || c === "]"))
@@ -2355,12 +2355,12 @@ function bi(e) {
2355
2355
  continue;
2356
2356
  }
2357
2357
  }
2358
- return s.length && (i === En ? r.zone = s.join("") : o ? n.push(s.join("")) : n.push(Ps(s))), r.address = n.join(""), r;
2358
+ return s.length && (i === En ? r.zone = s.join("") : o ? n.push(s.join("")) : n.push(Os(s))), r.address = n.join(""), r;
2359
2359
  }
2360
- function Os(e) {
2361
- if ($i(e, ":") < 2)
2360
+ function js(e) {
2361
+ if (wi(e, ":") < 2)
2362
2362
  return { host: e, isIPV6: !1 };
2363
- const t = bi(e);
2363
+ const t = $i(e);
2364
2364
  if (t.error)
2365
2365
  return { host: e, isIPV6: !1 };
2366
2366
  {
@@ -2368,13 +2368,13 @@ function Os(e) {
2368
2368
  return t.zone && (r += "%" + t.zone, n += "%25" + t.zone), { host: r, isIPV6: !0, escapedHost: n };
2369
2369
  }
2370
2370
  }
2371
- function $i(e, t) {
2371
+ function wi(e, t) {
2372
2372
  let r = 0;
2373
2373
  for (let n = 0; n < e.length; n++)
2374
2374
  e[n] === t && r++;
2375
2375
  return r;
2376
2376
  }
2377
- function wi(e) {
2377
+ function Si(e) {
2378
2378
  let t = e;
2379
2379
  const r = [];
2380
2380
  let n = -1, s = 0;
@@ -2432,56 +2432,56 @@ function wi(e) {
2432
2432
  }
2433
2433
  return r.join("");
2434
2434
  }
2435
- function Si(e, t) {
2435
+ function ki(e, t) {
2436
2436
  const r = t !== !0 ? escape : unescape;
2437
2437
  return e.scheme !== void 0 && (e.scheme = r(e.scheme)), e.userinfo !== void 0 && (e.userinfo = r(e.userinfo)), e.host !== void 0 && (e.host = r(e.host)), e.path !== void 0 && (e.path = r(e.path)), e.query !== void 0 && (e.query = r(e.query)), e.fragment !== void 0 && (e.fragment = r(e.fragment)), e;
2438
2438
  }
2439
- function ki(e) {
2439
+ function Ei(e) {
2440
2440
  const t = [];
2441
2441
  if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
2442
2442
  let r = unescape(e.host);
2443
- if (!Es(r)) {
2444
- const n = Os(r);
2443
+ if (!Ps(r)) {
2444
+ const n = js(r);
2445
2445
  n.isIPV6 === !0 ? r = `[${n.escapedHost}]` : r = e.host;
2446
2446
  }
2447
2447
  t.push(r);
2448
2448
  }
2449
2449
  return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
2450
2450
  }
2451
- var js = {
2452
- nonSimpleDomain: _i,
2453
- recomposeAuthority: ki,
2454
- normalizeComponentEncoding: Si,
2455
- removeDotSegments: wi,
2456
- isIPv4: Es,
2457
- isUUID: vi,
2458
- normalizeIPv6: Os
2451
+ var Ns = {
2452
+ nonSimpleDomain: gi,
2453
+ recomposeAuthority: Ei,
2454
+ normalizeComponentEncoding: ki,
2455
+ removeDotSegments: Si,
2456
+ isIPv4: Ps,
2457
+ isUUID: _i,
2458
+ normalizeIPv6: js
2459
2459
  };
2460
- const { isUUID: Ei } = js, Pi = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2461
- function Ns(e) {
2460
+ const { isUUID: Pi } = Ns, Oi = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2461
+ function Is(e) {
2462
2462
  return e.secure === !0 ? !0 : e.secure === !1 ? !1 : e.scheme ? e.scheme.length === 3 && (e.scheme[0] === "w" || e.scheme[0] === "W") && (e.scheme[1] === "s" || e.scheme[1] === "S") && (e.scheme[2] === "s" || e.scheme[2] === "S") : !1;
2463
2463
  }
2464
- function Is(e) {
2464
+ function qs(e) {
2465
2465
  return e.host || (e.error = e.error || "HTTP URIs must have a host."), e;
2466
2466
  }
2467
2467
  function Ms(e) {
2468
2468
  const t = String(e.scheme).toLowerCase() === "https";
2469
2469
  return (e.port === (t ? 443 : 80) || e.port === "") && (e.port = void 0), e.path || (e.path = "/"), e;
2470
2470
  }
2471
- function Oi(e) {
2472
- return e.secure = Ns(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
2473
- }
2474
2471
  function ji(e) {
2475
- if ((e.port === (Ns(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
2472
+ return e.secure = Is(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
2473
+ }
2474
+ function Ni(e) {
2475
+ if ((e.port === (Is(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
2476
2476
  const [t, r] = e.resourceName.split("?");
2477
2477
  e.path = t && t !== "/" ? t : void 0, e.query = r, e.resourceName = void 0;
2478
2478
  }
2479
2479
  return e.fragment = void 0, e;
2480
2480
  }
2481
- function Ni(e, t) {
2481
+ function Ii(e, t) {
2482
2482
  if (!e.path)
2483
2483
  return e.error = "URN can not be parsed", e;
2484
- const r = e.path.match(Pi);
2484
+ const r = e.path.match(Oi);
2485
2485
  if (r) {
2486
2486
  const n = t.scheme || e.scheme || "urn";
2487
2487
  e.nid = r[1].toLowerCase(), e.nss = r[2];
@@ -2491,7 +2491,7 @@ function Ni(e, t) {
2491
2491
  e.error = e.error || "URN can not be parsed.";
2492
2492
  return e;
2493
2493
  }
2494
- function Ii(e, t) {
2494
+ function qi(e, t) {
2495
2495
  if (e.nid === void 0)
2496
2496
  throw new Error("URN without nid cannot be serialized");
2497
2497
  const r = t.scheme || e.scheme || "urn", n = e.nid.toLowerCase(), s = `${r}:${t.nid || n}`, a = Rr(s);
@@ -2501,26 +2501,26 @@ function Ii(e, t) {
2501
2501
  }
2502
2502
  function Mi(e, t) {
2503
2503
  const r = e;
2504
- return r.uuid = r.nss, r.nss = void 0, !t.tolerant && (!r.uuid || !Ei(r.uuid)) && (r.error = r.error || "UUID is not valid."), r;
2504
+ return r.uuid = r.nss, r.nss = void 0, !t.tolerant && (!r.uuid || !Pi(r.uuid)) && (r.error = r.error || "UUID is not valid."), r;
2505
2505
  }
2506
- function qi(e) {
2506
+ function Ti(e) {
2507
2507
  const t = e;
2508
2508
  return t.nss = (e.uuid || "").toLowerCase(), t;
2509
2509
  }
2510
- const qs = (
2510
+ const Ts = (
2511
2511
  /** @type {SchemeHandler} */
2512
2512
  {
2513
2513
  scheme: "http",
2514
2514
  domainHost: !0,
2515
- parse: Is,
2515
+ parse: qs,
2516
2516
  serialize: Ms
2517
2517
  }
2518
- ), Ti = (
2518
+ ), Ri = (
2519
2519
  /** @type {SchemeHandler} */
2520
2520
  {
2521
2521
  scheme: "https",
2522
- domainHost: qs.domainHost,
2523
- parse: Is,
2522
+ domainHost: Ts.domainHost,
2523
+ parse: qs,
2524
2524
  serialize: Ms
2525
2525
  }
2526
2526
  ), jt = (
@@ -2528,10 +2528,10 @@ const qs = (
2528
2528
  {
2529
2529
  scheme: "ws",
2530
2530
  domainHost: !0,
2531
- parse: Oi,
2532
- serialize: ji
2531
+ parse: ji,
2532
+ serialize: Ni
2533
2533
  }
2534
- ), Ri = (
2534
+ ), Ai = (
2535
2535
  /** @type {SchemeHandler} */
2536
2536
  {
2537
2537
  scheme: "wss",
@@ -2539,31 +2539,31 @@ const qs = (
2539
2539
  parse: jt.parse,
2540
2540
  serialize: jt.serialize
2541
2541
  }
2542
- ), Ai = (
2542
+ ), Ci = (
2543
2543
  /** @type {SchemeHandler} */
2544
2544
  {
2545
2545
  scheme: "urn",
2546
- parse: Ni,
2547
- serialize: Ii,
2546
+ parse: Ii,
2547
+ serialize: qi,
2548
2548
  skipNormalize: !0
2549
2549
  }
2550
- ), Ci = (
2550
+ ), Vi = (
2551
2551
  /** @type {SchemeHandler} */
2552
2552
  {
2553
2553
  scheme: "urn:uuid",
2554
2554
  parse: Mi,
2555
- serialize: qi,
2555
+ serialize: Ti,
2556
2556
  skipNormalize: !0
2557
2557
  }
2558
2558
  ), Tt = (
2559
2559
  /** @type {Record<SchemeName, SchemeHandler>} */
2560
2560
  {
2561
- http: qs,
2562
- https: Ti,
2561
+ http: Ts,
2562
+ https: Ri,
2563
2563
  ws: jt,
2564
- wss: Ri,
2565
- urn: Ai,
2566
- "urn:uuid": Ci
2564
+ wss: Ai,
2565
+ urn: Ci,
2566
+ "urn:uuid": Vi
2567
2567
  }
2568
2568
  );
2569
2569
  Object.setPrototypeOf(Tt, null);
@@ -2576,26 +2576,26 @@ function Rr(e) {
2576
2576
  e.toLowerCase()
2577
2577
  ]) || void 0;
2578
2578
  }
2579
- var Vi = {
2579
+ var Di = {
2580
2580
  SCHEMES: Tt,
2581
2581
  getSchemeHandler: Rr
2582
2582
  };
2583
- const { normalizeIPv6: Di, removeDotSegments: ot, recomposeAuthority: Fi, normalizeComponentEncoding: $t, isIPv4: zi, nonSimpleDomain: Ui } = js, { SCHEMES: Li, getSchemeHandler: Ts } = Vi;
2584
- function Hi(e, t) {
2583
+ const { normalizeIPv6: Fi, removeDotSegments: ot, recomposeAuthority: zi, normalizeComponentEncoding: $t, isIPv4: Ui, nonSimpleDomain: Li } = Ns, { SCHEMES: Hi, getSchemeHandler: Rs } = Di;
2584
+ function Ki(e, t) {
2585
2585
  return typeof e == "string" ? e = /** @type {T} */
2586
- Se(Oe(e, t), t) : typeof e == "object" && (e = /** @type {T} */
2587
- Oe(Se(e, t), t)), e;
2586
+ Se(Ne(e, t), t) : typeof e == "object" && (e = /** @type {T} */
2587
+ Ne(Se(e, t), t)), e;
2588
2588
  }
2589
- function Ki(e, t, r) {
2590
- const n = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, s = Rs(Oe(e, n), Oe(t, n), n, !0);
2589
+ function Bi(e, t, r) {
2590
+ const n = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, s = As(Ne(e, n), Ne(t, n), n, !0);
2591
2591
  return n.skipEscape = !0, Se(s, n);
2592
2592
  }
2593
- function Rs(e, t, r, n) {
2593
+ function As(e, t, r, n) {
2594
2594
  const s = {};
2595
- return n || (e = Oe(Se(e, r), r), t = Oe(Se(t, r), r)), r = r || {}, !r.tolerant && t.scheme ? (s.scheme = t.scheme, s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ot(t.path || ""), s.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ot(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = ot(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? s.path = "/" + t.path : e.path ? s.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : s.path = t.path, s.path = ot(s.path)), s.query = t.query) : (s.path = e.path, t.query !== void 0 ? s.query = t.query : s.query = e.query), s.userinfo = e.userinfo, s.host = e.host, s.port = e.port), s.scheme = e.scheme), s.fragment = t.fragment, s;
2595
+ return n || (e = Ne(Se(e, r), r), t = Ne(Se(t, r), r)), r = r || {}, !r.tolerant && t.scheme ? (s.scheme = t.scheme, s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ot(t.path || ""), s.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ot(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = ot(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? s.path = "/" + t.path : e.path ? s.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : s.path = t.path, s.path = ot(s.path)), s.query = t.query) : (s.path = e.path, t.query !== void 0 ? s.query = t.query : s.query = e.query), s.userinfo = e.userinfo, s.host = e.host, s.port = e.port), s.scheme = e.scheme), s.fragment = t.fragment, s;
2596
2596
  }
2597
2597
  function Gi(e, t, r) {
2598
- return typeof e == "string" ? (e = unescape(e), e = Se($t(Oe(e, r), !0), { ...r, skipEscape: !0 })) : typeof e == "object" && (e = Se($t(e, !0), { ...r, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = Se($t(Oe(t, r), !0), { ...r, skipEscape: !0 })) : typeof t == "object" && (t = Se($t(t, !0), { ...r, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
2598
+ return typeof e == "string" ? (e = unescape(e), e = Se($t(Ne(e, r), !0), { ...r, skipEscape: !0 })) : typeof e == "object" && (e = Se($t(e, !0), { ...r, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = Se($t(Ne(t, r), !0), { ...r, skipEscape: !0 })) : typeof t == "object" && (t = Se($t(t, !0), { ...r, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
2599
2599
  }
2600
2600
  function Se(e, t) {
2601
2601
  const r = {
@@ -2613,17 +2613,17 @@ function Se(e, t) {
2613
2613
  resourceName: e.resourceName,
2614
2614
  secure: e.secure,
2615
2615
  error: ""
2616
- }, n = Object.assign({}, t), s = [], a = Ts(n.scheme || r.scheme);
2616
+ }, n = Object.assign({}, t), s = [], a = Rs(n.scheme || r.scheme);
2617
2617
  a && a.serialize && a.serialize(r, n), r.path !== void 0 && (n.skipEscape ? r.path = unescape(r.path) : (r.path = escape(r.path), r.scheme !== void 0 && (r.path = r.path.split("%3A").join(":")))), n.reference !== "suffix" && r.scheme && s.push(r.scheme, ":");
2618
- const o = Fi(r);
2618
+ const o = zi(r);
2619
2619
  if (o !== void 0 && (n.reference !== "suffix" && s.push("//"), s.push(o), r.path && r.path[0] !== "/" && s.push("/")), r.path !== void 0) {
2620
2620
  let i = r.path;
2621
2621
  !n.absolutePath && (!a || !a.absolutePath) && (i = ot(i)), o === void 0 && i[0] === "/" && i[1] === "/" && (i = "/%2F" + i.slice(2)), s.push(i);
2622
2622
  }
2623
2623
  return r.query !== void 0 && s.push("?", r.query), r.fragment !== void 0 && s.push("#", r.fragment), s.join("");
2624
2624
  }
2625
- const Bi = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2626
- function Oe(e, t) {
2625
+ const Ji = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2626
+ function Ne(e, t) {
2627
2627
  const r = Object.assign({}, t), n = {
2628
2628
  scheme: void 0,
2629
2629
  userinfo: void 0,
@@ -2635,17 +2635,17 @@ function Oe(e, t) {
2635
2635
  };
2636
2636
  let s = !1;
2637
2637
  r.reference === "suffix" && (r.scheme ? e = r.scheme + ":" + e : e = "//" + e);
2638
- const a = e.match(Bi);
2638
+ const a = e.match(Ji);
2639
2639
  if (a) {
2640
2640
  if (n.scheme = a[1], n.userinfo = a[3], n.host = a[4], n.port = parseInt(a[5], 10), n.path = a[6] || "", n.query = a[7], n.fragment = a[8], isNaN(n.port) && (n.port = a[5]), n.host)
2641
- if (zi(n.host) === !1) {
2642
- const d = Di(n.host);
2641
+ if (Ui(n.host) === !1) {
2642
+ const d = Fi(n.host);
2643
2643
  n.host = d.host.toLowerCase(), s = d.isIPV6;
2644
2644
  } else
2645
2645
  s = !0;
2646
2646
  n.scheme === void 0 && n.userinfo === void 0 && n.host === void 0 && n.port === void 0 && n.query === void 0 && !n.path ? n.reference = "same-document" : n.scheme === void 0 ? n.reference = "relative" : n.fragment === void 0 ? n.reference = "absolute" : n.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== n.reference && (n.error = n.error || "URI is not a " + r.reference + " reference.");
2647
- const o = Ts(r.scheme || n.scheme);
2648
- if (!r.unicodeSupport && (!o || !o.unicodeSupport) && n.host && (r.domainHost || o && o.domainHost) && s === !1 && Ui(n.host))
2647
+ const o = Rs(r.scheme || n.scheme);
2648
+ if (!r.unicodeSupport && (!o || !o.unicodeSupport) && n.host && (r.domainHost || o && o.domainHost) && s === !1 && Li(n.host))
2649
2649
  try {
2650
2650
  n.host = URL.domainToASCII(n.host.toLowerCase());
2651
2651
  } catch (i) {
@@ -2657,25 +2657,25 @@ function Oe(e, t) {
2657
2657
  return n;
2658
2658
  }
2659
2659
  const Ar = {
2660
- SCHEMES: Li,
2661
- normalize: Hi,
2662
- resolve: Ki,
2663
- resolveComponent: Rs,
2660
+ SCHEMES: Hi,
2661
+ normalize: Ki,
2662
+ resolve: Bi,
2663
+ resolveComponent: As,
2664
2664
  equal: Gi,
2665
2665
  serialize: Se,
2666
- parse: Oe
2666
+ parse: Ne
2667
2667
  };
2668
2668
  Lt.exports = Ar;
2669
2669
  Lt.exports.default = Ar;
2670
2670
  Lt.exports.fastUri = Ar;
2671
- var Ji = Lt.exports;
2671
+ var xi = Lt.exports;
2672
2672
  Object.defineProperty(Tr, "__esModule", { value: !0 });
2673
- const As = Ji;
2674
- As.code = 'require("ajv/dist/runtime/uri").default';
2675
- Tr.default = As;
2673
+ const Cs = xi;
2674
+ Cs.code = 'require("ajv/dist/runtime/uri").default';
2675
+ Tr.default = Cs;
2676
2676
  (function(e) {
2677
2677
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2678
- var t = ye;
2678
+ var t = ge;
2679
2679
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
2680
2680
  return t.KeywordCxt;
2681
2681
  } });
@@ -2693,7 +2693,7 @@ Tr.default = As;
2693
2693
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2694
2694
  return r.CodeGen;
2695
2695
  } });
2696
- const n = pt, s = Xe, a = Ue, o = ce, i = H, d = ae, c = te, u = N, h = yi, w = Tr, b = (j, v) => new RegExp(j, v);
2696
+ const n = pt, s = Xe, a = Ue, o = ce, i = H, d = ae, c = te, u = N, h = vi, w = Tr, b = (j, v) => new RegExp(j, v);
2697
2697
  b.code = "new RegExp";
2698
2698
  const _ = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
2699
2699
  "validate",
@@ -2731,16 +2731,16 @@ Tr.default = As;
2731
2731
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2732
2732
  }, y = 200;
2733
2733
  function S(j) {
2734
- var v, P, $, l, f, k, A, V, Z, W, re, He, Jt, Wt, xt, Zt, Yt, Qt, Xt, er, tr, rr, nr, sr, ar;
2734
+ var v, P, $, l, f, k, A, V, Z, x, re, He, Jt, xt, Wt, Zt, Yt, Qt, Xt, er, tr, rr, nr, sr, ar;
2735
2735
  const nt = j.strict, or = (v = j.code) === null || v === void 0 ? void 0 : v.optimize, hn = or === !0 || or === void 0 ? 1 : or || 0, pn = ($ = (P = j.code) === null || P === void 0 ? void 0 : P.regExp) !== null && $ !== void 0 ? $ : b, Ws = (l = j.uriResolver) !== null && l !== void 0 ? l : w.default;
2736
2736
  return {
2737
2737
  strictSchema: (k = (f = j.strictSchema) !== null && f !== void 0 ? f : nt) !== null && k !== void 0 ? k : !0,
2738
2738
  strictNumbers: (V = (A = j.strictNumbers) !== null && A !== void 0 ? A : nt) !== null && V !== void 0 ? V : !0,
2739
- strictTypes: (W = (Z = j.strictTypes) !== null && Z !== void 0 ? Z : nt) !== null && W !== void 0 ? W : "log",
2739
+ strictTypes: (x = (Z = j.strictTypes) !== null && Z !== void 0 ? Z : nt) !== null && x !== void 0 ? x : "log",
2740
2740
  strictTuples: (He = (re = j.strictTuples) !== null && re !== void 0 ? re : nt) !== null && He !== void 0 ? He : "log",
2741
- strictRequired: (Wt = (Jt = j.strictRequired) !== null && Jt !== void 0 ? Jt : nt) !== null && Wt !== void 0 ? Wt : !1,
2741
+ strictRequired: (xt = (Jt = j.strictRequired) !== null && Jt !== void 0 ? Jt : nt) !== null && xt !== void 0 ? xt : !1,
2742
2742
  code: j.code ? { ...j.code, optimize: hn, regExp: pn } : { optimize: hn, regExp: pn },
2743
- loopRequired: (xt = j.loopRequired) !== null && xt !== void 0 ? xt : y,
2743
+ loopRequired: (Wt = j.loopRequired) !== null && Wt !== void 0 ? Wt : y,
2744
2744
  loopEnum: (Zt = j.loopEnum) !== null && Zt !== void 0 ? Zt : y,
2745
2745
  meta: (Yt = j.meta) !== null && Yt !== void 0 ? Yt : !0,
2746
2746
  messages: (Qt = j.messages) !== null && Qt !== void 0 ? Qt : !0,
@@ -2760,7 +2760,7 @@ Tr.default = As;
2760
2760
  const { es5: P, lines: $ } = this.opts.code;
2761
2761
  this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5: P, lines: $ }), this.logger = z(v.logger);
2762
2762
  const l = v.validateFormats;
2763
- v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = D.call(this), v.formats && M.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords && q.call(this, v.keywords), typeof v.meta == "object" && this.addMetaSchema(v.meta), K.call(this), v.validateFormats = l;
2763
+ v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = D.call(this), v.formats && q.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords && T.call(this, v.keywords), typeof v.meta == "object" && this.addMetaSchema(v.meta), K.call(this), v.validateFormats = l;
2764
2764
  }
2765
2765
  _addVocabularies() {
2766
2766
  this.addKeyword("$async");
@@ -2793,39 +2793,39 @@ Tr.default = As;
2793
2793
  throw new Error("options.loadSchema should be a function");
2794
2794
  const { loadSchema: $ } = this.opts;
2795
2795
  return l.call(this, v, P);
2796
- async function l(W, re) {
2797
- await f.call(this, W.$schema);
2798
- const He = this._addSchema(W, re);
2796
+ async function l(x, re) {
2797
+ await f.call(this, x.$schema);
2798
+ const He = this._addSchema(x, re);
2799
2799
  return He.validate || k.call(this, He);
2800
2800
  }
2801
- async function f(W) {
2802
- W && !this.getSchema(W) && await l.call(this, { $ref: W }, !0);
2801
+ async function f(x) {
2802
+ x && !this.getSchema(x) && await l.call(this, { $ref: x }, !0);
2803
2803
  }
2804
- async function k(W) {
2804
+ async function k(x) {
2805
2805
  try {
2806
- return this._compileSchemaEnv(W);
2806
+ return this._compileSchemaEnv(x);
2807
2807
  } catch (re) {
2808
2808
  if (!(re instanceof s.default))
2809
2809
  throw re;
2810
- return A.call(this, re), await V.call(this, re.missingSchema), k.call(this, W);
2810
+ return A.call(this, re), await V.call(this, re.missingSchema), k.call(this, x);
2811
2811
  }
2812
2812
  }
2813
- function A({ missingSchema: W, missingRef: re }) {
2814
- if (this.refs[W])
2815
- throw new Error(`AnySchema ${W} is loaded but ${re} cannot be resolved`);
2813
+ function A({ missingSchema: x, missingRef: re }) {
2814
+ if (this.refs[x])
2815
+ throw new Error(`AnySchema ${x} is loaded but ${re} cannot be resolved`);
2816
2816
  }
2817
- async function V(W) {
2818
- const re = await Z.call(this, W);
2819
- this.refs[W] || await f.call(this, re.$schema), this.refs[W] || this.addSchema(re, W, P);
2817
+ async function V(x) {
2818
+ const re = await Z.call(this, x);
2819
+ this.refs[x] || await f.call(this, re.$schema), this.refs[x] || this.addSchema(re, x, P);
2820
2820
  }
2821
- async function Z(W) {
2822
- const re = this._loading[W];
2821
+ async function Z(x) {
2822
+ const re = this._loading[x];
2823
2823
  if (re)
2824
2824
  return re;
2825
2825
  try {
2826
- return await (this._loading[W] = $(W));
2826
+ return await (this._loading[x] = $(x));
2827
2827
  } finally {
2828
- delete this._loading[W];
2828
+ delete this._loading[x];
2829
2829
  }
2830
2830
  }
2831
2831
  }
@@ -2922,14 +2922,14 @@ Tr.default = As;
2922
2922
  } else
2923
2923
  throw new Error("invalid addKeywords parameters");
2924
2924
  if (ne.call(this, $, P), !P)
2925
- return (0, u.eachItem)($, (f) => ge.call(this, f)), this;
2926
- Gt.call(this, P);
2925
+ return (0, u.eachItem)($, (f) => be.call(this, f)), this;
2926
+ Bt.call(this, P);
2927
2927
  const l = {
2928
2928
  ...P,
2929
2929
  type: (0, c.getJSONTypes)(P.type),
2930
2930
  schemaType: (0, c.getJSONTypes)(P.schemaType)
2931
2931
  };
2932
- return (0, u.eachItem)($, l.type.length === 0 ? (f) => ge.call(this, f, l) : (f) => l.type.forEach((k) => ge.call(this, f, l, k))), this;
2932
+ return (0, u.eachItem)($, l.type.length === 0 ? (f) => be.call(this, f, l) : (f) => l.type.forEach((k) => be.call(this, f, l, k))), this;
2933
2933
  }
2934
2934
  getKeyword(v) {
2935
2935
  const P = this.RULES.all[v];
@@ -2964,8 +2964,8 @@ Tr.default = As;
2964
2964
  const V = $[A];
2965
2965
  if (typeof V != "object")
2966
2966
  continue;
2967
- const { $data: Z } = V.definition, W = k[A];
2968
- Z && W && (k[A] = bt(W));
2967
+ const { $data: Z } = V.definition, x = k[A];
2968
+ Z && x && (k[A] = bt(x));
2969
2969
  }
2970
2970
  }
2971
2971
  return v;
@@ -3032,13 +3032,13 @@ Tr.default = As;
3032
3032
  for (const v in j)
3033
3033
  this.addSchema(j[v], v);
3034
3034
  }
3035
- function M() {
3035
+ function q() {
3036
3036
  for (const j in this.opts.formats) {
3037
3037
  const v = this.opts.formats[j];
3038
3038
  v && this.addFormat(j, v);
3039
3039
  }
3040
3040
  }
3041
- function q(j) {
3041
+ function T(j) {
3042
3042
  if (Array.isArray(j)) {
3043
3043
  this.addVocabulary(j);
3044
3044
  return;
@@ -3055,13 +3055,13 @@ Tr.default = As;
3055
3055
  delete j[v];
3056
3056
  return j;
3057
3057
  }
3058
- const x = { log() {
3058
+ const W = { log() {
3059
3059
  }, warn() {
3060
3060
  }, error() {
3061
3061
  } };
3062
3062
  function z(j) {
3063
3063
  if (j === !1)
3064
- return x;
3064
+ return W;
3065
3065
  if (j === void 0)
3066
3066
  return console;
3067
3067
  if (j.log && j.warn && j.error)
@@ -3079,7 +3079,7 @@ Tr.default = As;
3079
3079
  }), !!v && v.$data && !("code" in v || "validate" in v))
3080
3080
  throw new Error('$data keyword must have "code" or "validate" function');
3081
3081
  }
3082
- function ge(j, v, P) {
3082
+ function be(j, v, P) {
3083
3083
  var $;
3084
3084
  const l = v == null ? void 0 : v.post;
3085
3085
  if (P && l)
@@ -3102,17 +3102,17 @@ Tr.default = As;
3102
3102
  const $ = j.rules.findIndex((l) => l.keyword === P);
3103
3103
  $ >= 0 ? j.rules.splice($, 0, v) : (j.rules.push(v), this.logger.warn(`rule ${P} is not defined`));
3104
3104
  }
3105
- function Gt(j) {
3105
+ function Bt(j) {
3106
3106
  let { metaSchema: v } = j;
3107
3107
  v !== void 0 && (j.$data && this.opts.$data && (v = bt(v)), j.validateSchema = this.compile(v, !0));
3108
3108
  }
3109
- const Bt = {
3109
+ const Gt = {
3110
3110
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
3111
3111
  };
3112
3112
  function bt(j) {
3113
- return { anyOf: [j, Bt] };
3113
+ return { anyOf: [j, Gt] };
3114
3114
  }
3115
- })(Bn);
3115
+ })(Jn);
3116
3116
  var Cr = {}, Vr = {}, Dr = {};
3117
3117
  Object.defineProperty(Dr, "__esModule", { value: !0 });
3118
3118
  const Wi = {
@@ -3125,7 +3125,7 @@ Dr.default = Wi;
3125
3125
  var Le = {};
3126
3126
  Object.defineProperty(Le, "__esModule", { value: !0 });
3127
3127
  Le.callRef = Le.getValidate = void 0;
3128
- const xi = Xe, Pn = G, de = H, Ge = ke, On = ce, wt = N, Zi = {
3128
+ const Zi = Xe, Pn = B, de = H, Be = ke, On = ce, wt = N, Yi = {
3129
3129
  keyword: "$ref",
3130
3130
  schemaType: "string",
3131
3131
  code(e) {
@@ -3134,7 +3134,7 @@ const xi = Xe, Pn = G, de = H, Ge = ke, On = ce, wt = N, Zi = {
3134
3134
  return h();
3135
3135
  const u = On.resolveRef.call(d, c, s, r);
3136
3136
  if (u === void 0)
3137
- throw new xi.default(n.opts.uriResolver, s, r);
3137
+ throw new Zi.default(n.opts.uriResolver, s, r);
3138
3138
  if (u instanceof On.SchemaEnv)
3139
3139
  return w(u);
3140
3140
  return b(u);
@@ -3145,7 +3145,7 @@ const xi = Xe, Pn = G, de = H, Ge = ke, On = ce, wt = N, Zi = {
3145
3145
  return Nt(e, (0, de._)`${_}.validate`, c, c.$async);
3146
3146
  }
3147
3147
  function w(_) {
3148
- const g = Cs(e, _);
3148
+ const g = Vs(e, _);
3149
3149
  Nt(e, g, _, _.$async);
3150
3150
  }
3151
3151
  function b(_) {
@@ -3160,13 +3160,13 @@ const xi = Xe, Pn = G, de = H, Ge = ke, On = ce, wt = N, Zi = {
3160
3160
  }
3161
3161
  }
3162
3162
  };
3163
- function Cs(e, t) {
3163
+ function Vs(e, t) {
3164
3164
  const { gen: r } = e;
3165
3165
  return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, de._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
3166
3166
  }
3167
- Le.getValidate = Cs;
3167
+ Le.getValidate = Vs;
3168
3168
  function Nt(e, t, r, n) {
3169
- const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? Ge.default.this : de.nil;
3169
+ const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? Be.default.this : de.nil;
3170
3170
  n ? u() : h();
3171
3171
  function u() {
3172
3172
  if (!i.$async)
@@ -3183,7 +3183,7 @@ function Nt(e, t, r, n) {
3183
3183
  }
3184
3184
  function w(_) {
3185
3185
  const g = (0, de._)`${_}.errors`;
3186
- s.assign(Ge.default.vErrors, (0, de._)`${Ge.default.vErrors} === null ? ${g} : ${Ge.default.vErrors}.concat(${g})`), s.assign(Ge.default.errors, (0, de._)`${Ge.default.vErrors}.length`);
3186
+ s.assign(Be.default.vErrors, (0, de._)`${Be.default.vErrors} === null ? ${g} : ${Be.default.vErrors}.concat(${g})`), s.assign(Be.default.errors, (0, de._)`${Be.default.vErrors}.length`);
3187
3187
  }
3188
3188
  function b(_) {
3189
3189
  var g;
@@ -3207,19 +3207,19 @@ function Nt(e, t, r, n) {
3207
3207
  }
3208
3208
  }
3209
3209
  Le.callRef = Nt;
3210
- Le.default = Zi;
3210
+ Le.default = Yi;
3211
3211
  Object.defineProperty(Vr, "__esModule", { value: !0 });
3212
- const Yi = Dr, Qi = Le, Xi = [
3212
+ const Qi = Dr, Xi = Le, el = [
3213
3213
  "$schema",
3214
3214
  "$id",
3215
3215
  "$defs",
3216
3216
  "$vocabulary",
3217
3217
  { keyword: "$comment" },
3218
3218
  "definitions",
3219
- Yi.default,
3220
- Qi.default
3219
+ Qi.default,
3220
+ Xi.default
3221
3221
  ];
3222
- Vr.default = Xi;
3222
+ Vr.default = el;
3223
3223
  var Fr = {}, zr = {};
3224
3224
  Object.defineProperty(zr, "__esModule", { value: !0 });
3225
3225
  const Rt = H, Me = Rt.operators, At = {
@@ -3227,116 +3227,116 @@ const Rt = H, Me = Rt.operators, At = {
3227
3227
  minimum: { okStr: ">=", ok: Me.GTE, fail: Me.LT },
3228
3228
  exclusiveMaximum: { okStr: "<", ok: Me.LT, fail: Me.GTE },
3229
3229
  exclusiveMinimum: { okStr: ">", ok: Me.GT, fail: Me.LTE }
3230
- }, el = {
3230
+ }, tl = {
3231
3231
  message: ({ keyword: e, schemaCode: t }) => (0, Rt.str)`must be ${At[e].okStr} ${t}`,
3232
3232
  params: ({ keyword: e, schemaCode: t }) => (0, Rt._)`{comparison: ${At[e].okStr}, limit: ${t}}`
3233
- }, tl = {
3233
+ }, rl = {
3234
3234
  keyword: Object.keys(At),
3235
3235
  type: "number",
3236
3236
  schemaType: "number",
3237
3237
  $data: !0,
3238
- error: el,
3238
+ error: tl,
3239
3239
  code(e) {
3240
3240
  const { keyword: t, data: r, schemaCode: n } = e;
3241
3241
  e.fail$data((0, Rt._)`${r} ${At[t].fail} ${n} || isNaN(${r})`);
3242
3242
  }
3243
3243
  };
3244
- zr.default = tl;
3244
+ zr.default = rl;
3245
3245
  var Ur = {};
3246
3246
  Object.defineProperty(Ur, "__esModule", { value: !0 });
3247
- const dt = H, rl = {
3247
+ const dt = H, nl = {
3248
3248
  message: ({ schemaCode: e }) => (0, dt.str)`must be multiple of ${e}`,
3249
3249
  params: ({ schemaCode: e }) => (0, dt._)`{multipleOf: ${e}}`
3250
- }, nl = {
3250
+ }, sl = {
3251
3251
  keyword: "multipleOf",
3252
3252
  type: "number",
3253
3253
  schemaType: "number",
3254
3254
  $data: !0,
3255
- error: rl,
3255
+ error: nl,
3256
3256
  code(e) {
3257
3257
  const { gen: t, data: r, schemaCode: n, it: s } = e, a = s.opts.multipleOfPrecision, o = t.let("res"), i = a ? (0, dt._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}` : (0, dt._)`${o} !== parseInt(${o})`;
3258
3258
  e.fail$data((0, dt._)`(${n} === 0 || (${o} = ${r}/${n}, ${i}))`);
3259
3259
  }
3260
3260
  };
3261
- Ur.default = nl;
3261
+ Ur.default = sl;
3262
3262
  var Lr = {}, Hr = {};
3263
3263
  Object.defineProperty(Hr, "__esModule", { value: !0 });
3264
- function Vs(e) {
3264
+ function Ds(e) {
3265
3265
  const t = e.length;
3266
3266
  let r = 0, n = 0, s;
3267
3267
  for (; n < t; )
3268
3268
  r++, s = e.charCodeAt(n++), s >= 55296 && s <= 56319 && n < t && (s = e.charCodeAt(n), (s & 64512) === 56320 && n++);
3269
3269
  return r;
3270
3270
  }
3271
- Hr.default = Vs;
3272
- Vs.code = 'require("ajv/dist/runtime/ucs2length").default';
3271
+ Hr.default = Ds;
3272
+ Ds.code = 'require("ajv/dist/runtime/ucs2length").default';
3273
3273
  Object.defineProperty(Lr, "__esModule", { value: !0 });
3274
- const De = H, sl = N, al = Hr, ol = {
3274
+ const De = H, al = N, ol = Hr, il = {
3275
3275
  message({ keyword: e, schemaCode: t }) {
3276
3276
  const r = e === "maxLength" ? "more" : "fewer";
3277
3277
  return (0, De.str)`must NOT have ${r} than ${t} characters`;
3278
3278
  },
3279
3279
  params: ({ schemaCode: e }) => (0, De._)`{limit: ${e}}`
3280
- }, il = {
3280
+ }, ll = {
3281
3281
  keyword: ["maxLength", "minLength"],
3282
3282
  type: "string",
3283
3283
  schemaType: "number",
3284
3284
  $data: !0,
3285
- error: ol,
3285
+ error: il,
3286
3286
  code(e) {
3287
- const { keyword: t, data: r, schemaCode: n, it: s } = e, a = t === "maxLength" ? De.operators.GT : De.operators.LT, o = s.opts.unicode === !1 ? (0, De._)`${r}.length` : (0, De._)`${(0, sl.useFunc)(e.gen, al.default)}(${r})`;
3287
+ const { keyword: t, data: r, schemaCode: n, it: s } = e, a = t === "maxLength" ? De.operators.GT : De.operators.LT, o = s.opts.unicode === !1 ? (0, De._)`${r}.length` : (0, De._)`${(0, al.useFunc)(e.gen, ol.default)}(${r})`;
3288
3288
  e.fail$data((0, De._)`${o} ${a} ${n}`);
3289
3289
  }
3290
3290
  };
3291
- Lr.default = il;
3291
+ Lr.default = ll;
3292
3292
  var Kr = {};
3293
3293
  Object.defineProperty(Kr, "__esModule", { value: !0 });
3294
- const ll = G, Ct = H, dl = {
3294
+ const dl = B, Ct = H, cl = {
3295
3295
  message: ({ schemaCode: e }) => (0, Ct.str)`must match pattern "${e}"`,
3296
3296
  params: ({ schemaCode: e }) => (0, Ct._)`{pattern: ${e}}`
3297
- }, cl = {
3297
+ }, ul = {
3298
3298
  keyword: "pattern",
3299
3299
  type: "string",
3300
3300
  schemaType: "string",
3301
3301
  $data: !0,
3302
- error: dl,
3302
+ error: cl,
3303
3303
  code(e) {
3304
- const { data: t, $data: r, schema: n, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = r ? (0, Ct._)`(new RegExp(${s}, ${o}))` : (0, ll.usePattern)(e, n);
3304
+ const { data: t, $data: r, schema: n, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = r ? (0, Ct._)`(new RegExp(${s}, ${o}))` : (0, dl.usePattern)(e, n);
3305
3305
  e.fail$data((0, Ct._)`!${i}.test(${t})`);
3306
3306
  }
3307
3307
  };
3308
- Kr.default = cl;
3309
- var Gr = {};
3310
- Object.defineProperty(Gr, "__esModule", { value: !0 });
3311
- const ct = H, ul = {
3308
+ Kr.default = ul;
3309
+ var Br = {};
3310
+ Object.defineProperty(Br, "__esModule", { value: !0 });
3311
+ const ct = H, fl = {
3312
3312
  message({ keyword: e, schemaCode: t }) {
3313
3313
  const r = e === "maxProperties" ? "more" : "fewer";
3314
3314
  return (0, ct.str)`must NOT have ${r} than ${t} properties`;
3315
3315
  },
3316
3316
  params: ({ schemaCode: e }) => (0, ct._)`{limit: ${e}}`
3317
- }, fl = {
3317
+ }, ml = {
3318
3318
  keyword: ["maxProperties", "minProperties"],
3319
3319
  type: "object",
3320
3320
  schemaType: "number",
3321
3321
  $data: !0,
3322
- error: ul,
3322
+ error: fl,
3323
3323
  code(e) {
3324
3324
  const { keyword: t, data: r, schemaCode: n } = e, s = t === "maxProperties" ? ct.operators.GT : ct.operators.LT;
3325
3325
  e.fail$data((0, ct._)`Object.keys(${r}).length ${s} ${n}`);
3326
3326
  }
3327
3327
  };
3328
- Gr.default = fl;
3329
- var Br = {};
3330
- Object.defineProperty(Br, "__esModule", { value: !0 });
3331
- const at = G, ut = H, ml = N, hl = {
3328
+ Br.default = ml;
3329
+ var Gr = {};
3330
+ Object.defineProperty(Gr, "__esModule", { value: !0 });
3331
+ const at = B, ut = H, hl = N, pl = {
3332
3332
  message: ({ params: { missingProperty: e } }) => (0, ut.str)`must have required property '${e}'`,
3333
3333
  params: ({ params: { missingProperty: e } }) => (0, ut._)`{missingProperty: ${e}}`
3334
- }, pl = {
3334
+ }, yl = {
3335
3335
  keyword: "required",
3336
3336
  type: "object",
3337
3337
  schemaType: "array",
3338
3338
  $data: !0,
3339
- error: hl,
3339
+ error: pl,
3340
3340
  code(e) {
3341
3341
  const { gen: t, schema: r, schemaCode: n, data: s, $data: a, it: o } = e, { opts: i } = o;
3342
3342
  if (!a && r.length === 0)
@@ -3347,7 +3347,7 @@ const at = G, ut = H, ml = N, hl = {
3347
3347
  for (const g of r)
3348
3348
  if ((b == null ? void 0 : b[g]) === void 0 && !_.has(g)) {
3349
3349
  const p = o.schemaEnv.baseId + o.errSchemaPath, m = `required property "${g}" is not defined at "${p}" (strictRequired)`;
3350
- (0, ml.checkStrictMode)(o, m, o.opts.strictRequired);
3350
+ (0, hl.checkStrictMode)(o, m, o.opts.strictRequired);
3351
3351
  }
3352
3352
  }
3353
3353
  function c() {
@@ -3379,42 +3379,42 @@ const at = G, ut = H, ml = N, hl = {
3379
3379
  }
3380
3380
  }
3381
3381
  };
3382
- Br.default = pl;
3382
+ Gr.default = yl;
3383
3383
  var Jr = {};
3384
3384
  Object.defineProperty(Jr, "__esModule", { value: !0 });
3385
- const ft = H, yl = {
3385
+ const ft = H, vl = {
3386
3386
  message({ keyword: e, schemaCode: t }) {
3387
3387
  const r = e === "maxItems" ? "more" : "fewer";
3388
3388
  return (0, ft.str)`must NOT have ${r} than ${t} items`;
3389
3389
  },
3390
3390
  params: ({ schemaCode: e }) => (0, ft._)`{limit: ${e}}`
3391
- }, vl = {
3391
+ }, _l = {
3392
3392
  keyword: ["maxItems", "minItems"],
3393
3393
  type: "array",
3394
3394
  schemaType: "number",
3395
3395
  $data: !0,
3396
- error: yl,
3396
+ error: vl,
3397
3397
  code(e) {
3398
3398
  const { keyword: t, data: r, schemaCode: n } = e, s = t === "maxItems" ? ft.operators.GT : ft.operators.LT;
3399
3399
  e.fail$data((0, ft._)`${r}.length ${s} ${n}`);
3400
3400
  }
3401
3401
  };
3402
- Jr.default = vl;
3403
- var Wr = {}, yt = {};
3402
+ Jr.default = _l;
3403
+ var xr = {}, yt = {};
3404
3404
  Object.defineProperty(yt, "__esModule", { value: !0 });
3405
- const Ds = ls;
3406
- Ds.code = 'require("ajv/dist/runtime/equal").default';
3407
- yt.default = Ds;
3408
- Object.defineProperty(Wr, "__esModule", { value: !0 });
3409
- const ur = te, se = H, _l = N, gl = yt, bl = {
3405
+ const Fs = ds;
3406
+ Fs.code = 'require("ajv/dist/runtime/equal").default';
3407
+ yt.default = Fs;
3408
+ Object.defineProperty(xr, "__esModule", { value: !0 });
3409
+ const ur = te, se = H, gl = N, bl = yt, $l = {
3410
3410
  message: ({ params: { i: e, j: t } }) => (0, se.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
3411
3411
  params: ({ params: { i: e, j: t } }) => (0, se._)`{i: ${e}, j: ${t}}`
3412
- }, $l = {
3412
+ }, wl = {
3413
3413
  keyword: "uniqueItems",
3414
3414
  type: "array",
3415
3415
  schemaType: "boolean",
3416
3416
  $data: !0,
3417
- error: bl,
3417
+ error: $l,
3418
3418
  code(e) {
3419
3419
  const { gen: t, data: r, $data: n, schema: s, parentSchema: a, schemaCode: o, it: i } = e;
3420
3420
  if (!n && !s)
@@ -3437,46 +3437,46 @@ const ur = te, se = H, _l = N, gl = yt, bl = {
3437
3437
  });
3438
3438
  }
3439
3439
  function b(_, g) {
3440
- const p = (0, _l.useFunc)(t, gl.default), m = t.name("outer");
3440
+ const p = (0, gl.useFunc)(t, bl.default), m = t.name("outer");
3441
3441
  t.label(m).for((0, se._)`;${_}--;`, () => t.for((0, se._)`${g} = ${_}; ${g}--;`, () => t.if((0, se._)`${p}(${r}[${_}], ${r}[${g}])`, () => {
3442
3442
  e.error(), t.assign(d, !1).break(m);
3443
3443
  })));
3444
3444
  }
3445
3445
  }
3446
3446
  };
3447
- Wr.default = $l;
3448
- var xr = {};
3449
- Object.defineProperty(xr, "__esModule", { value: !0 });
3450
- const _r = H, wl = N, Sl = yt, kl = {
3447
+ xr.default = wl;
3448
+ var Wr = {};
3449
+ Object.defineProperty(Wr, "__esModule", { value: !0 });
3450
+ const _r = H, Sl = N, kl = yt, El = {
3451
3451
  message: "must be equal to constant",
3452
3452
  params: ({ schemaCode: e }) => (0, _r._)`{allowedValue: ${e}}`
3453
- }, El = {
3453
+ }, Pl = {
3454
3454
  keyword: "const",
3455
3455
  $data: !0,
3456
- error: kl,
3456
+ error: El,
3457
3457
  code(e) {
3458
3458
  const { gen: t, data: r, $data: n, schemaCode: s, schema: a } = e;
3459
- n || a && typeof a == "object" ? e.fail$data((0, _r._)`!${(0, wl.useFunc)(t, Sl.default)}(${r}, ${s})`) : e.fail((0, _r._)`${a} !== ${r}`);
3459
+ n || a && typeof a == "object" ? e.fail$data((0, _r._)`!${(0, Sl.useFunc)(t, kl.default)}(${r}, ${s})`) : e.fail((0, _r._)`${a} !== ${r}`);
3460
3460
  }
3461
3461
  };
3462
- xr.default = El;
3462
+ Wr.default = Pl;
3463
3463
  var Zr = {};
3464
3464
  Object.defineProperty(Zr, "__esModule", { value: !0 });
3465
- const it = H, Pl = N, Ol = yt, jl = {
3465
+ const it = H, Ol = N, jl = yt, Nl = {
3466
3466
  message: "must be equal to one of the allowed values",
3467
3467
  params: ({ schemaCode: e }) => (0, it._)`{allowedValues: ${e}}`
3468
- }, Nl = {
3468
+ }, Il = {
3469
3469
  keyword: "enum",
3470
3470
  schemaType: "array",
3471
3471
  $data: !0,
3472
- error: jl,
3472
+ error: Nl,
3473
3473
  code(e) {
3474
3474
  const { gen: t, data: r, $data: n, schema: s, schemaCode: a, it: o } = e;
3475
3475
  if (!n && s.length === 0)
3476
3476
  throw new Error("enum must have non-empty array");
3477
3477
  const i = s.length >= o.opts.loopEnum;
3478
3478
  let d;
3479
- const c = () => d ?? (d = (0, Pl.useFunc)(t, Ol.default));
3479
+ const c = () => d ?? (d = (0, Ol.useFunc)(t, jl.default));
3480
3480
  let u;
3481
3481
  if (i || n)
3482
3482
  u = t.let("valid"), e.block$data(u, h);
@@ -3496,50 +3496,50 @@ const it = H, Pl = N, Ol = yt, jl = {
3496
3496
  }
3497
3497
  }
3498
3498
  };
3499
- Zr.default = Nl;
3499
+ Zr.default = Il;
3500
3500
  Object.defineProperty(Fr, "__esModule", { value: !0 });
3501
- const Il = zr, Ml = Ur, ql = Lr, Tl = Kr, Rl = Gr, Al = Br, Cl = Jr, Vl = Wr, Dl = xr, Fl = Zr, zl = [
3501
+ const ql = zr, Ml = Ur, Tl = Lr, Rl = Kr, Al = Br, Cl = Gr, Vl = Jr, Dl = xr, Fl = Wr, zl = Zr, Ul = [
3502
3502
  // number
3503
- Il.default,
3503
+ ql.default,
3504
3504
  Ml.default,
3505
3505
  // string
3506
- ql.default,
3507
3506
  Tl.default,
3508
- // object
3509
3507
  Rl.default,
3508
+ // object
3510
3509
  Al.default,
3511
- // array
3512
3510
  Cl.default,
3511
+ // array
3513
3512
  Vl.default,
3513
+ Dl.default,
3514
3514
  // any
3515
3515
  { keyword: "type", schemaType: ["string", "array"] },
3516
3516
  { keyword: "nullable", schemaType: "boolean" },
3517
- Dl.default,
3518
- Fl.default
3517
+ Fl.default,
3518
+ zl.default
3519
3519
  ];
3520
- Fr.default = zl;
3520
+ Fr.default = Ul;
3521
3521
  var Yr = {}, et = {};
3522
3522
  Object.defineProperty(et, "__esModule", { value: !0 });
3523
3523
  et.validateAdditionalItems = void 0;
3524
- const Fe = H, gr = N, Ul = {
3524
+ const Fe = H, gr = N, Ll = {
3525
3525
  message: ({ params: { len: e } }) => (0, Fe.str)`must NOT have more than ${e} items`,
3526
3526
  params: ({ params: { len: e } }) => (0, Fe._)`{limit: ${e}}`
3527
- }, Ll = {
3527
+ }, Hl = {
3528
3528
  keyword: "additionalItems",
3529
3529
  type: "array",
3530
3530
  schemaType: ["boolean", "object"],
3531
3531
  before: "uniqueItems",
3532
- error: Ul,
3532
+ error: Ll,
3533
3533
  code(e) {
3534
3534
  const { parentSchema: t, it: r } = e, { items: n } = t;
3535
3535
  if (!Array.isArray(n)) {
3536
3536
  (0, gr.checkStrictMode)(r, '"additionalItems" is ignored when "items" is not an array of schemas');
3537
3537
  return;
3538
3538
  }
3539
- Fs(e, n);
3539
+ zs(e, n);
3540
3540
  }
3541
3541
  };
3542
- function Fs(e, t) {
3542
+ function zs(e, t) {
3543
3543
  const { gen: r, schema: n, data: s, keyword: a, it: o } = e;
3544
3544
  o.items = !0;
3545
3545
  const i = r.const("len", (0, Fe._)`${s}.length`);
@@ -3555,12 +3555,12 @@ function Fs(e, t) {
3555
3555
  });
3556
3556
  }
3557
3557
  }
3558
- et.validateAdditionalItems = Fs;
3559
- et.default = Ll;
3558
+ et.validateAdditionalItems = zs;
3559
+ et.default = Hl;
3560
3560
  var Qr = {}, tt = {};
3561
3561
  Object.defineProperty(tt, "__esModule", { value: !0 });
3562
3562
  tt.validateTuple = void 0;
3563
- const jn = H, It = N, Hl = G, Kl = {
3563
+ const jn = H, It = N, Kl = B, Bl = {
3564
3564
  keyword: "items",
3565
3565
  type: "array",
3566
3566
  schemaType: ["object", "array", "boolean"],
@@ -3568,11 +3568,11 @@ const jn = H, It = N, Hl = G, Kl = {
3568
3568
  code(e) {
3569
3569
  const { schema: t, it: r } = e;
3570
3570
  if (Array.isArray(t))
3571
- return zs(e, "additionalItems", t);
3572
- r.items = !0, !(0, It.alwaysValidSchema)(r, t) && e.ok((0, Hl.validateArray)(e));
3571
+ return Us(e, "additionalItems", t);
3572
+ r.items = !0, !(0, It.alwaysValidSchema)(r, t) && e.ok((0, Kl.validateArray)(e));
3573
3573
  }
3574
3574
  };
3575
- function zs(e, t, r = e.schema) {
3575
+ function Us(e, t, r = e.schema) {
3576
3576
  const { gen: n, parentSchema: s, data: a, keyword: o, it: i } = e;
3577
3577
  u(s), i.opts.unevaluated && r.length && i.items !== !0 && (i.items = It.mergeEvaluated.items(n, r.length, i.items));
3578
3578
  const d = n.name("valid"), c = n.const("len", (0, jn._)`${a}.length`);
@@ -3591,46 +3591,46 @@ function zs(e, t, r = e.schema) {
3591
3591
  }
3592
3592
  }
3593
3593
  }
3594
- tt.validateTuple = zs;
3595
- tt.default = Kl;
3594
+ tt.validateTuple = Us;
3595
+ tt.default = Bl;
3596
3596
  Object.defineProperty(Qr, "__esModule", { value: !0 });
3597
- const Gl = tt, Bl = {
3597
+ const Gl = tt, Jl = {
3598
3598
  keyword: "prefixItems",
3599
3599
  type: "array",
3600
3600
  schemaType: ["array"],
3601
3601
  before: "uniqueItems",
3602
3602
  code: (e) => (0, Gl.validateTuple)(e, "items")
3603
3603
  };
3604
- Qr.default = Bl;
3604
+ Qr.default = Jl;
3605
3605
  var Xr = {};
3606
3606
  Object.defineProperty(Xr, "__esModule", { value: !0 });
3607
- const Nn = H, Jl = N, Wl = G, xl = et, Zl = {
3607
+ const Nn = H, xl = N, Wl = B, Zl = et, Yl = {
3608
3608
  message: ({ params: { len: e } }) => (0, Nn.str)`must NOT have more than ${e} items`,
3609
3609
  params: ({ params: { len: e } }) => (0, Nn._)`{limit: ${e}}`
3610
- }, Yl = {
3610
+ }, Ql = {
3611
3611
  keyword: "items",
3612
3612
  type: "array",
3613
3613
  schemaType: ["object", "boolean"],
3614
3614
  before: "uniqueItems",
3615
- error: Zl,
3615
+ error: Yl,
3616
3616
  code(e) {
3617
3617
  const { schema: t, parentSchema: r, it: n } = e, { prefixItems: s } = r;
3618
- n.items = !0, !(0, Jl.alwaysValidSchema)(n, t) && (s ? (0, xl.validateAdditionalItems)(e, s) : e.ok((0, Wl.validateArray)(e)));
3618
+ n.items = !0, !(0, xl.alwaysValidSchema)(n, t) && (s ? (0, Zl.validateAdditionalItems)(e, s) : e.ok((0, Wl.validateArray)(e)));
3619
3619
  }
3620
3620
  };
3621
- Xr.default = Yl;
3621
+ Xr.default = Ql;
3622
3622
  var en = {};
3623
3623
  Object.defineProperty(en, "__esModule", { value: !0 });
3624
- const ue = H, St = N, Ql = {
3624
+ const ue = H, St = N, Xl = {
3625
3625
  message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ue.str)`must contain at least ${e} valid item(s)` : (0, ue.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3626
3626
  params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ue._)`{minContains: ${e}}` : (0, ue._)`{minContains: ${e}, maxContains: ${t}}`
3627
- }, Xl = {
3627
+ }, ed = {
3628
3628
  keyword: "contains",
3629
3629
  type: "array",
3630
3630
  schemaType: ["object", "boolean"],
3631
3631
  before: "uniqueItems",
3632
3632
  trackErrors: !0,
3633
- error: Ql,
3633
+ error: Xl,
3634
3634
  code(e) {
3635
3635
  const { gen: t, schema: r, parentSchema: n, data: s, it: a } = e;
3636
3636
  let o, i;
@@ -3672,11 +3672,11 @@ const ue = H, St = N, Ql = {
3672
3672
  }
3673
3673
  }
3674
3674
  };
3675
- en.default = Xl;
3676
- var Us = {};
3675
+ en.default = ed;
3676
+ var Ls = {};
3677
3677
  (function(e) {
3678
3678
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3679
- const t = H, r = N, n = G;
3679
+ const t = H, r = N, n = B;
3680
3680
  e.error = {
3681
3681
  message: ({ params: { property: d, depsCount: c, deps: u } }) => {
3682
3682
  const h = c === 1 ? "property" : "properties";
@@ -3743,20 +3743,20 @@ var Us = {};
3743
3743
  ), d.ok(_));
3744
3744
  }
3745
3745
  e.validateSchemaDeps = i, e.default = s;
3746
- })(Us);
3746
+ })(Ls);
3747
3747
  var tn = {};
3748
3748
  Object.defineProperty(tn, "__esModule", { value: !0 });
3749
- const Ls = H, ed = N, td = {
3749
+ const Hs = H, td = N, rd = {
3750
3750
  message: "property name must be valid",
3751
- params: ({ params: e }) => (0, Ls._)`{propertyName: ${e.propertyName}}`
3752
- }, rd = {
3751
+ params: ({ params: e }) => (0, Hs._)`{propertyName: ${e.propertyName}}`
3752
+ }, nd = {
3753
3753
  keyword: "propertyNames",
3754
3754
  type: "object",
3755
3755
  schemaType: ["object", "boolean"],
3756
- error: td,
3756
+ error: rd,
3757
3757
  code(e) {
3758
3758
  const { gen: t, schema: r, data: n, it: s } = e;
3759
- if ((0, ed.alwaysValidSchema)(s, r))
3759
+ if ((0, td.alwaysValidSchema)(s, r))
3760
3760
  return;
3761
3761
  const a = t.name("valid");
3762
3762
  t.forIn("key", n, (o) => {
@@ -3766,25 +3766,25 @@ const Ls = H, ed = N, td = {
3766
3766
  dataTypes: ["string"],
3767
3767
  propertyName: o,
3768
3768
  compositeRule: !0
3769
- }, a), t.if((0, Ls.not)(a), () => {
3769
+ }, a), t.if((0, Hs.not)(a), () => {
3770
3770
  e.error(!0), s.allErrors || t.break();
3771
3771
  });
3772
3772
  }), e.ok(a);
3773
3773
  }
3774
3774
  };
3775
- tn.default = rd;
3775
+ tn.default = nd;
3776
3776
  var Ht = {};
3777
3777
  Object.defineProperty(Ht, "__esModule", { value: !0 });
3778
- const kt = G, he = H, nd = ke, Et = N, sd = {
3778
+ const kt = B, ve = H, sd = ke, Et = N, ad = {
3779
3779
  message: "must NOT have additional properties",
3780
- params: ({ params: e }) => (0, he._)`{additionalProperty: ${e.additionalProperty}}`
3781
- }, ad = {
3780
+ params: ({ params: e }) => (0, ve._)`{additionalProperty: ${e.additionalProperty}}`
3781
+ }, od = {
3782
3782
  keyword: "additionalProperties",
3783
3783
  type: ["object"],
3784
3784
  schemaType: ["boolean", "object"],
3785
3785
  allowUndefined: !0,
3786
3786
  trackErrors: !0,
3787
- error: sd,
3787
+ error: ad,
3788
3788
  code(e) {
3789
3789
  const { gen: t, schema: r, parentSchema: n, data: s, errsCount: a, it: o } = e;
3790
3790
  if (!a)
@@ -3793,7 +3793,7 @@ const kt = G, he = H, nd = ke, Et = N, sd = {
3793
3793
  if (o.props = !0, d.removeAdditional !== "all" && (0, Et.alwaysValidSchema)(o, r))
3794
3794
  return;
3795
3795
  const c = (0, kt.allSchemaProperties)(n.properties), u = (0, kt.allSchemaProperties)(n.patternProperties);
3796
- h(), e.ok((0, he._)`${a} === ${nd.default.errors}`);
3796
+ h(), e.ok((0, ve._)`${a} === ${sd.default.errors}`);
3797
3797
  function h() {
3798
3798
  t.forIn("key", s, (p) => {
3799
3799
  !c.length && !u.length ? _(p) : t.if(w(p), () => _(p));
@@ -3804,11 +3804,11 @@ const kt = G, he = H, nd = ke, Et = N, sd = {
3804
3804
  if (c.length > 8) {
3805
3805
  const y = (0, Et.schemaRefOrVal)(o, n.properties, "properties");
3806
3806
  m = (0, kt.isOwnProperty)(t, y, p);
3807
- } else c.length ? m = (0, he.or)(...c.map((y) => (0, he._)`${p} === ${y}`)) : m = he.nil;
3808
- return u.length && (m = (0, he.or)(m, ...u.map((y) => (0, he._)`${(0, kt.usePattern)(e, y)}.test(${p})`))), (0, he.not)(m);
3807
+ } else c.length ? m = (0, ve.or)(...c.map((y) => (0, ve._)`${p} === ${y}`)) : m = ve.nil;
3808
+ return u.length && (m = (0, ve.or)(m, ...u.map((y) => (0, ve._)`${(0, kt.usePattern)(e, y)}.test(${p})`))), (0, ve.not)(m);
3809
3809
  }
3810
3810
  function b(p) {
3811
- t.code((0, he._)`delete ${s}[${p}]`);
3811
+ t.code((0, ve._)`delete ${s}[${p}]`);
3812
3812
  }
3813
3813
  function _(p) {
3814
3814
  if (d.removeAdditional === "all" || d.removeAdditional && r === !1) {
@@ -3821,9 +3821,9 @@ const kt = G, he = H, nd = ke, Et = N, sd = {
3821
3821
  }
3822
3822
  if (typeof r == "object" && !(0, Et.alwaysValidSchema)(o, r)) {
3823
3823
  const m = t.name("valid");
3824
- d.removeAdditional === "failing" ? (g(p, m, !1), t.if((0, he.not)(m), () => {
3824
+ d.removeAdditional === "failing" ? (g(p, m, !1), t.if((0, ve.not)(m), () => {
3825
3825
  e.reset(), b(p);
3826
- })) : (g(p, m), i || t.if((0, he.not)(m), () => t.break()));
3826
+ })) : (g(p, m), i || t.if((0, ve.not)(m), () => t.break()));
3827
3827
  }
3828
3828
  }
3829
3829
  function g(p, m, y) {
@@ -3840,16 +3840,16 @@ const kt = G, he = H, nd = ke, Et = N, sd = {
3840
3840
  }
3841
3841
  }
3842
3842
  };
3843
- Ht.default = ad;
3843
+ Ht.default = od;
3844
3844
  var rn = {};
3845
3845
  Object.defineProperty(rn, "__esModule", { value: !0 });
3846
- const od = ye, In = G, fr = N, Mn = Ht, id = {
3846
+ const id = ge, In = B, fr = N, qn = Ht, ld = {
3847
3847
  keyword: "properties",
3848
3848
  type: "object",
3849
3849
  schemaType: "object",
3850
3850
  code(e) {
3851
3851
  const { gen: t, schema: r, parentSchema: n, data: s, it: a } = e;
3852
- a.opts.removeAdditional === "all" && n.additionalProperties === void 0 && Mn.default.code(new od.KeywordCxt(a, Mn.default, "additionalProperties"));
3852
+ a.opts.removeAdditional === "all" && n.additionalProperties === void 0 && qn.default.code(new id.KeywordCxt(a, qn.default, "additionalProperties"));
3853
3853
  const o = (0, In.allSchemaProperties)(r);
3854
3854
  for (const h of o)
3855
3855
  a.definedProperties.add(h);
@@ -3872,15 +3872,15 @@ const od = ye, In = G, fr = N, Mn = Ht, id = {
3872
3872
  }
3873
3873
  }
3874
3874
  };
3875
- rn.default = id;
3875
+ rn.default = ld;
3876
3876
  var nn = {};
3877
3877
  Object.defineProperty(nn, "__esModule", { value: !0 });
3878
- const qn = G, Pt = H, Tn = N, Rn = N, ld = {
3878
+ const Mn = B, Pt = H, Tn = N, Rn = N, dd = {
3879
3879
  keyword: "patternProperties",
3880
3880
  type: "object",
3881
3881
  schemaType: "object",
3882
3882
  code(e) {
3883
- const { gen: t, schema: r, data: n, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, qn.allSchemaProperties)(r), d = i.filter((g) => (0, Tn.alwaysValidSchema)(a, r[g]));
3883
+ const { gen: t, schema: r, data: n, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, Mn.allSchemaProperties)(r), d = i.filter((g) => (0, Tn.alwaysValidSchema)(a, r[g]));
3884
3884
  if (i.length === 0 || d.length === i.length && (!a.opts.unevaluated || a.props === !0))
3885
3885
  return;
3886
3886
  const c = o.strictSchema && !o.allowMatchingProperties && s.properties, u = t.name("valid");
@@ -3897,7 +3897,7 @@ const qn = G, Pt = H, Tn = N, Rn = N, ld = {
3897
3897
  }
3898
3898
  function _(g) {
3899
3899
  t.forIn("key", n, (p) => {
3900
- t.if((0, Pt._)`${(0, qn.usePattern)(e, g)}.test(${p})`, () => {
3900
+ t.if((0, Pt._)`${(0, Mn.usePattern)(e, g)}.test(${p})`, () => {
3901
3901
  const m = d.includes(g);
3902
3902
  m || e.subschema({
3903
3903
  keyword: "patternProperties",
@@ -3910,16 +3910,16 @@ const qn = G, Pt = H, Tn = N, Rn = N, ld = {
3910
3910
  }
3911
3911
  }
3912
3912
  };
3913
- nn.default = ld;
3913
+ nn.default = dd;
3914
3914
  var sn = {};
3915
3915
  Object.defineProperty(sn, "__esModule", { value: !0 });
3916
- const dd = N, cd = {
3916
+ const cd = N, ud = {
3917
3917
  keyword: "not",
3918
3918
  schemaType: ["object", "boolean"],
3919
3919
  trackErrors: !0,
3920
3920
  code(e) {
3921
3921
  const { gen: t, schema: r, it: n } = e;
3922
- if ((0, dd.alwaysValidSchema)(n, r)) {
3922
+ if ((0, cd.alwaysValidSchema)(n, r)) {
3923
3923
  e.fail();
3924
3924
  return;
3925
3925
  }
@@ -3933,27 +3933,27 @@ const dd = N, cd = {
3933
3933
  },
3934
3934
  error: { message: "must NOT be valid" }
3935
3935
  };
3936
- sn.default = cd;
3936
+ sn.default = ud;
3937
3937
  var an = {};
3938
3938
  Object.defineProperty(an, "__esModule", { value: !0 });
3939
- const ud = G, fd = {
3939
+ const fd = B, md = {
3940
3940
  keyword: "anyOf",
3941
3941
  schemaType: "array",
3942
3942
  trackErrors: !0,
3943
- code: ud.validateUnion,
3943
+ code: fd.validateUnion,
3944
3944
  error: { message: "must match a schema in anyOf" }
3945
3945
  };
3946
- an.default = fd;
3946
+ an.default = md;
3947
3947
  var on = {};
3948
3948
  Object.defineProperty(on, "__esModule", { value: !0 });
3949
- const Mt = H, md = N, hd = {
3949
+ const qt = H, hd = N, pd = {
3950
3950
  message: "must match exactly one schema in oneOf",
3951
- params: ({ params: e }) => (0, Mt._)`{passingSchemas: ${e.passing}}`
3952
- }, pd = {
3951
+ params: ({ params: e }) => (0, qt._)`{passingSchemas: ${e.passing}}`
3952
+ }, yd = {
3953
3953
  keyword: "oneOf",
3954
3954
  schemaType: "array",
3955
3955
  trackErrors: !0,
3956
- error: hd,
3956
+ error: pd,
3957
3957
  code(e) {
3958
3958
  const { gen: t, schema: r, parentSchema: n, it: s } = e;
3959
3959
  if (!Array.isArray(r))
@@ -3965,21 +3965,21 @@ const Mt = H, md = N, hd = {
3965
3965
  function c() {
3966
3966
  a.forEach((u, h) => {
3967
3967
  let w;
3968
- (0, md.alwaysValidSchema)(s, u) ? t.var(d, !0) : w = e.subschema({
3968
+ (0, hd.alwaysValidSchema)(s, u) ? t.var(d, !0) : w = e.subschema({
3969
3969
  keyword: "oneOf",
3970
3970
  schemaProp: h,
3971
3971
  compositeRule: !0
3972
- }, d), h > 0 && t.if((0, Mt._)`${d} && ${o}`).assign(o, !1).assign(i, (0, Mt._)`[${i}, ${h}]`).else(), t.if(d, () => {
3973
- t.assign(o, !0), t.assign(i, h), w && e.mergeEvaluated(w, Mt.Name);
3972
+ }, d), h > 0 && t.if((0, qt._)`${d} && ${o}`).assign(o, !1).assign(i, (0, qt._)`[${i}, ${h}]`).else(), t.if(d, () => {
3973
+ t.assign(o, !0), t.assign(i, h), w && e.mergeEvaluated(w, qt.Name);
3974
3974
  });
3975
3975
  });
3976
3976
  }
3977
3977
  }
3978
3978
  };
3979
- on.default = pd;
3979
+ on.default = yd;
3980
3980
  var ln = {};
3981
3981
  Object.defineProperty(ln, "__esModule", { value: !0 });
3982
- const yd = N, vd = {
3982
+ const vd = N, _d = {
3983
3983
  keyword: "allOf",
3984
3984
  schemaType: "array",
3985
3985
  code(e) {
@@ -3988,27 +3988,27 @@ const yd = N, vd = {
3988
3988
  throw new Error("ajv implementation error");
3989
3989
  const s = t.name("valid");
3990
3990
  r.forEach((a, o) => {
3991
- if ((0, yd.alwaysValidSchema)(n, a))
3991
+ if ((0, vd.alwaysValidSchema)(n, a))
3992
3992
  return;
3993
3993
  const i = e.subschema({ keyword: "allOf", schemaProp: o }, s);
3994
3994
  e.ok(s), e.mergeEvaluated(i);
3995
3995
  });
3996
3996
  }
3997
3997
  };
3998
- ln.default = vd;
3998
+ ln.default = _d;
3999
3999
  var dn = {};
4000
4000
  Object.defineProperty(dn, "__esModule", { value: !0 });
4001
- const Vt = H, Hs = N, _d = {
4001
+ const Vt = H, Ks = N, gd = {
4002
4002
  message: ({ params: e }) => (0, Vt.str)`must match "${e.ifClause}" schema`,
4003
4003
  params: ({ params: e }) => (0, Vt._)`{failingKeyword: ${e.ifClause}}`
4004
- }, gd = {
4004
+ }, bd = {
4005
4005
  keyword: "if",
4006
4006
  schemaType: ["object", "boolean"],
4007
4007
  trackErrors: !0,
4008
- error: _d,
4008
+ error: gd,
4009
4009
  code(e) {
4010
4010
  const { gen: t, parentSchema: r, it: n } = e;
4011
- r.then === void 0 && r.else === void 0 && (0, Hs.checkStrictMode)(n, '"if" without "then" and "else" is ignored');
4011
+ r.then === void 0 && r.else === void 0 && (0, Ks.checkStrictMode)(n, '"if" without "then" and "else" is ignored');
4012
4012
  const s = An(n, "then"), a = An(n, "else");
4013
4013
  if (!s && !a)
4014
4014
  return;
@@ -4037,51 +4037,51 @@ const Vt = H, Hs = N, _d = {
4037
4037
  };
4038
4038
  function An(e, t) {
4039
4039
  const r = e.schema[t];
4040
- return r !== void 0 && !(0, Hs.alwaysValidSchema)(e, r);
4040
+ return r !== void 0 && !(0, Ks.alwaysValidSchema)(e, r);
4041
4041
  }
4042
- dn.default = gd;
4042
+ dn.default = bd;
4043
4043
  var cn = {};
4044
4044
  Object.defineProperty(cn, "__esModule", { value: !0 });
4045
- const bd = N, $d = {
4045
+ const $d = N, wd = {
4046
4046
  keyword: ["then", "else"],
4047
4047
  schemaType: ["object", "boolean"],
4048
4048
  code({ keyword: e, parentSchema: t, it: r }) {
4049
- t.if === void 0 && (0, bd.checkStrictMode)(r, `"${e}" without "if" is ignored`);
4049
+ t.if === void 0 && (0, $d.checkStrictMode)(r, `"${e}" without "if" is ignored`);
4050
4050
  }
4051
4051
  };
4052
- cn.default = $d;
4052
+ cn.default = wd;
4053
4053
  Object.defineProperty(Yr, "__esModule", { value: !0 });
4054
- const wd = et, Sd = Qr, kd = tt, Ed = Xr, Pd = en, Od = Us, jd = tn, Nd = Ht, Id = rn, Md = nn, qd = sn, Td = an, Rd = on, Ad = ln, Cd = dn, Vd = cn;
4055
- function Dd(e = !1) {
4054
+ const Sd = et, kd = Qr, Ed = tt, Pd = Xr, Od = en, jd = Ls, Nd = tn, Id = Ht, qd = rn, Md = nn, Td = sn, Rd = an, Ad = on, Cd = ln, Vd = dn, Dd = cn;
4055
+ function Fd(e = !1) {
4056
4056
  const t = [
4057
4057
  // any
4058
- qd.default,
4059
4058
  Td.default,
4060
4059
  Rd.default,
4061
4060
  Ad.default,
4062
4061
  Cd.default,
4063
4062
  Vd.default,
4063
+ Dd.default,
4064
4064
  // object
4065
- jd.default,
4066
4065
  Nd.default,
4067
- Od.default,
4068
4066
  Id.default,
4067
+ jd.default,
4068
+ qd.default,
4069
4069
  Md.default
4070
4070
  ];
4071
- return e ? t.push(Sd.default, Ed.default) : t.push(wd.default, kd.default), t.push(Pd.default), t;
4071
+ return e ? t.push(kd.default, Pd.default) : t.push(Sd.default, Ed.default), t.push(Od.default), t;
4072
4072
  }
4073
- Yr.default = Dd;
4073
+ Yr.default = Fd;
4074
4074
  var un = {}, fn = {};
4075
4075
  Object.defineProperty(fn, "__esModule", { value: !0 });
4076
- const ee = H, Fd = {
4076
+ const ee = H, zd = {
4077
4077
  message: ({ schemaCode: e }) => (0, ee.str)`must match format "${e}"`,
4078
4078
  params: ({ schemaCode: e }) => (0, ee._)`{format: ${e}}`
4079
- }, zd = {
4079
+ }, Ud = {
4080
4080
  keyword: "format",
4081
4081
  type: ["number", "string"],
4082
4082
  schemaType: "string",
4083
4083
  $data: !0,
4084
- error: Fd,
4084
+ error: zd,
4085
4085
  code(e, t) {
4086
4086
  const { gen: r, data: n, $data: s, schema: a, schemaCode: o, it: i } = e, { opts: d, errSchemaPath: c, schemaEnv: u, self: h } = i;
4087
4087
  if (!d.validateFormats)
@@ -4136,10 +4136,10 @@ const ee = H, Fd = {
4136
4136
  }
4137
4137
  }
4138
4138
  };
4139
- fn.default = zd;
4139
+ fn.default = Ud;
4140
4140
  Object.defineProperty(un, "__esModule", { value: !0 });
4141
- const Ud = fn, Ld = [Ud.default];
4142
- un.default = Ld;
4141
+ const Ld = fn, Hd = [Ld.default];
4142
+ un.default = Hd;
4143
4143
  var Ye = {};
4144
4144
  Object.defineProperty(Ye, "__esModule", { value: !0 });
4145
4145
  Ye.contentVocabulary = Ye.metadataVocabulary = void 0;
@@ -4158,15 +4158,15 @@ Ye.contentVocabulary = [
4158
4158
  "contentSchema"
4159
4159
  ];
4160
4160
  Object.defineProperty(Cr, "__esModule", { value: !0 });
4161
- const Hd = Vr, Kd = Fr, Gd = Yr, Bd = un, Cn = Ye, Jd = [
4162
- Hd.default,
4161
+ const Kd = Vr, Bd = Fr, Gd = Yr, Jd = un, Cn = Ye, xd = [
4163
4162
  Kd.default,
4164
- (0, Gd.default)(),
4165
4163
  Bd.default,
4164
+ (0, Gd.default)(),
4165
+ Jd.default,
4166
4166
  Cn.metadataVocabulary,
4167
4167
  Cn.contentVocabulary
4168
4168
  ];
4169
- Cr.default = Jd;
4169
+ Cr.default = xd;
4170
4170
  var mn = {}, Kt = {};
4171
4171
  Object.defineProperty(Kt, "__esModule", { value: !0 });
4172
4172
  Kt.DiscrError = void 0;
@@ -4175,14 +4175,14 @@ var Vn;
4175
4175
  e.Tag = "tag", e.Mapping = "mapping";
4176
4176
  })(Vn || (Kt.DiscrError = Vn = {}));
4177
4177
  Object.defineProperty(mn, "__esModule", { value: !0 });
4178
- const Be = H, br = Kt, Dn = ce, Wd = Xe, xd = N, Zd = {
4178
+ const Ge = H, br = Kt, Dn = ce, Wd = Xe, Zd = N, Yd = {
4179
4179
  message: ({ params: { discrError: e, tagName: t } }) => e === br.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
4180
- params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Be._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
4181
- }, Yd = {
4180
+ params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Ge._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
4181
+ }, Qd = {
4182
4182
  keyword: "discriminator",
4183
4183
  type: "object",
4184
4184
  schemaType: "object",
4185
- error: Zd,
4185
+ error: Yd,
4186
4186
  code(e) {
4187
4187
  const { gen: t, data: r, schema: n, parentSchema: s, it: a } = e, { oneOf: o } = s;
4188
4188
  if (!a.opts.discriminator)
@@ -4194,18 +4194,18 @@ const Be = H, br = Kt, Dn = ce, Wd = Xe, xd = N, Zd = {
4194
4194
  throw new Error("discriminator: mapping is not supported");
4195
4195
  if (!o)
4196
4196
  throw new Error("discriminator: requires oneOf keyword");
4197
- const d = t.let("valid", !1), c = t.const("tag", (0, Be._)`${r}${(0, Be.getProperty)(i)}`);
4198
- t.if((0, Be._)`typeof ${c} == "string"`, () => u(), () => e.error(!1, { discrError: br.DiscrError.Tag, tag: c, tagName: i })), e.ok(d);
4197
+ const d = t.let("valid", !1), c = t.const("tag", (0, Ge._)`${r}${(0, Ge.getProperty)(i)}`);
4198
+ t.if((0, Ge._)`typeof ${c} == "string"`, () => u(), () => e.error(!1, { discrError: br.DiscrError.Tag, tag: c, tagName: i })), e.ok(d);
4199
4199
  function u() {
4200
4200
  const b = w();
4201
4201
  t.if(!1);
4202
4202
  for (const _ in b)
4203
- t.elseIf((0, Be._)`${c} === ${_}`), t.assign(d, h(b[_]));
4203
+ t.elseIf((0, Ge._)`${c} === ${_}`), t.assign(d, h(b[_]));
4204
4204
  t.else(), e.error(!1, { discrError: br.DiscrError.Mapping, tag: c, tagName: i }), t.endIf();
4205
4205
  }
4206
4206
  function h(b) {
4207
4207
  const _ = t.name("valid"), g = e.subschema({ keyword: "oneOf", schemaProp: b }, _);
4208
- return e.mergeEvaluated(g, Be.Name), _;
4208
+ return e.mergeEvaluated(g, Ge.Name), _;
4209
4209
  }
4210
4210
  function w() {
4211
4211
  var b;
@@ -4213,7 +4213,7 @@ const Be = H, br = Kt, Dn = ce, Wd = Xe, xd = N, Zd = {
4213
4213
  let p = !0;
4214
4214
  for (let E = 0; E < o.length; E++) {
4215
4215
  let O = o[E];
4216
- if (O != null && O.$ref && !(0, xd.schemaHasRulesButRef)(O, a.self.RULES)) {
4216
+ if (O != null && O.$ref && !(0, Zd.schemaHasRulesButRef)(O, a.self.RULES)) {
4217
4217
  const K = O.$ref;
4218
4218
  if (O = Dn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, K), O instanceof Dn.SchemaEnv && (O = O.schema), O === void 0)
4219
4219
  throw new Wd.default(a.opts.uriResolver, a.baseId, K);
@@ -4246,8 +4246,8 @@ const Be = H, br = Kt, Dn = ce, Wd = Xe, xd = N, Zd = {
4246
4246
  }
4247
4247
  }
4248
4248
  };
4249
- mn.default = Yd;
4250
- const Qd = "http://json-schema.org/draft-07/schema#", Xd = "http://json-schema.org/draft-07/schema#", ec = "Core schema meta-schema", tc = {
4249
+ mn.default = Qd;
4250
+ const Xd = "http://json-schema.org/draft-07/schema#", ec = "http://json-schema.org/draft-07/schema#", tc = "Core schema meta-schema", rc = {
4251
4251
  schemaArray: {
4252
4252
  type: "array",
4253
4253
  minItems: 1,
@@ -4288,10 +4288,10 @@ const Qd = "http://json-schema.org/draft-07/schema#", Xd = "http://json-schema.o
4288
4288
  uniqueItems: !0,
4289
4289
  default: []
4290
4290
  }
4291
- }, rc = [
4291
+ }, nc = [
4292
4292
  "object",
4293
4293
  "boolean"
4294
- ], nc = {
4294
+ ], sc = {
4295
4295
  $id: {
4296
4296
  type: "string",
4297
4297
  format: "uri-reference"
@@ -4479,18 +4479,18 @@ const Qd = "http://json-schema.org/draft-07/schema#", Xd = "http://json-schema.o
4479
4479
  not: {
4480
4480
  $ref: "#"
4481
4481
  }
4482
- }, sc = {
4483
- $schema: Qd,
4484
- $id: Xd,
4485
- title: ec,
4486
- definitions: tc,
4487
- type: rc,
4488
- properties: nc,
4482
+ }, ac = {
4483
+ $schema: Xd,
4484
+ $id: ec,
4485
+ title: tc,
4486
+ definitions: rc,
4487
+ type: nc,
4488
+ properties: sc,
4489
4489
  default: !0
4490
4490
  };
4491
4491
  (function(e, t) {
4492
4492
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
4493
- const r = Bn, n = Cr, s = mn, a = sc, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
4493
+ const r = Jn, n = Cr, s = mn, a = ac, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
4494
4494
  class d extends r.default {
4495
4495
  _addVocabularies() {
4496
4496
  super._addVocabularies(), n.default.forEach((_) => this.addVocabulary(_)), this.opts.discriminator && this.addKeyword(s.default);
@@ -4506,7 +4506,7 @@ const Qd = "http://json-schema.org/draft-07/schema#", Xd = "http://json-schema.o
4506
4506
  }
4507
4507
  }
4508
4508
  t.Ajv = d, e.exports = t = d, e.exports.Ajv = d, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = d;
4509
- var c = ye;
4509
+ var c = ge;
4510
4510
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4511
4511
  return c.KeywordCxt;
4512
4512
  } });
@@ -4533,13 +4533,13 @@ const Qd = "http://json-schema.org/draft-07/schema#", Xd = "http://json-schema.o
4533
4533
  return w.default;
4534
4534
  } });
4535
4535
  })(mr, mr.exports);
4536
- var Ks = mr.exports;
4537
- const ac = /* @__PURE__ */ Gn(Ks);
4536
+ var Bs = mr.exports;
4537
+ const oc = /* @__PURE__ */ Gn(Bs);
4538
4538
  var $r = { exports: {} }, Gs = {};
4539
4539
  (function(e) {
4540
4540
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
4541
- function t(q, D) {
4542
- return { validate: q, compare: D };
4541
+ function t(T, D) {
4542
+ return { validate: T, compare: D };
4543
4543
  }
4544
4544
  e.fullFormats = {
4545
4545
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -4561,7 +4561,7 @@ var $r = { exports: {} }, Gs = {};
4561
4561
  // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
4562
4562
  ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
4563
4563
  ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
4564
- regex: M,
4564
+ regex: q,
4565
4565
  // uuid: http://tools.ietf.org/html/rfc4122
4566
4566
  uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
4567
4567
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
@@ -4598,81 +4598,81 @@ var $r = { exports: {} }, Gs = {};
4598
4598
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
4599
4599
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
4600
4600
  }, e.formatNames = Object.keys(e.fullFormats);
4601
- function r(q) {
4602
- return q % 4 === 0 && (q % 100 !== 0 || q % 400 === 0);
4601
+ function r(T) {
4602
+ return T % 4 === 0 && (T % 100 !== 0 || T % 400 === 0);
4603
4603
  }
4604
4604
  const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, s = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4605
- function a(q) {
4606
- const D = n.exec(q);
4605
+ function a(T) {
4606
+ const D = n.exec(T);
4607
4607
  if (!D)
4608
4608
  return !1;
4609
- const x = +D[1], z = +D[2], oe = +D[3];
4610
- return z >= 1 && z <= 12 && oe >= 1 && oe <= (z === 2 && r(x) ? 29 : s[z]);
4609
+ const W = +D[1], z = +D[2], oe = +D[3];
4610
+ return z >= 1 && z <= 12 && oe >= 1 && oe <= (z === 2 && r(W) ? 29 : s[z]);
4611
4611
  }
4612
- function o(q, D) {
4613
- if (q && D)
4614
- return q > D ? 1 : q < D ? -1 : 0;
4612
+ function o(T, D) {
4613
+ if (T && D)
4614
+ return T > D ? 1 : T < D ? -1 : 0;
4615
4615
  }
4616
4616
  const i = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
4617
- function d(q, D) {
4618
- const x = i.exec(q);
4619
- if (!x)
4617
+ function d(T, D) {
4618
+ const W = i.exec(T);
4619
+ if (!W)
4620
4620
  return !1;
4621
- const z = +x[1], oe = +x[2], ne = +x[3], ge = x[5];
4622
- return (z <= 23 && oe <= 59 && ne <= 59 || z === 23 && oe === 59 && ne === 60) && (!D || ge !== "");
4621
+ const z = +W[1], oe = +W[2], ne = +W[3], be = W[5];
4622
+ return (z <= 23 && oe <= 59 && ne <= 59 || z === 23 && oe === 59 && ne === 60) && (!D || be !== "");
4623
4623
  }
4624
- function c(q, D) {
4625
- if (!(q && D))
4624
+ function c(T, D) {
4625
+ if (!(T && D))
4626
4626
  return;
4627
- const x = i.exec(q), z = i.exec(D);
4628
- if (x && z)
4629
- return q = x[1] + x[2] + x[3] + (x[4] || ""), D = z[1] + z[2] + z[3] + (z[4] || ""), q > D ? 1 : q < D ? -1 : 0;
4627
+ const W = i.exec(T), z = i.exec(D);
4628
+ if (W && z)
4629
+ return T = W[1] + W[2] + W[3] + (W[4] || ""), D = z[1] + z[2] + z[3] + (z[4] || ""), T > D ? 1 : T < D ? -1 : 0;
4630
4630
  }
4631
4631
  const u = /t|\s/i;
4632
- function h(q) {
4633
- const D = q.split(u);
4632
+ function h(T) {
4633
+ const D = T.split(u);
4634
4634
  return D.length === 2 && a(D[0]) && d(D[1], !0);
4635
4635
  }
4636
- function w(q, D) {
4637
- if (!(q && D))
4636
+ function w(T, D) {
4637
+ if (!(T && D))
4638
4638
  return;
4639
- const [x, z] = q.split(u), [oe, ne] = D.split(u), ge = o(x, oe);
4640
- if (ge !== void 0)
4641
- return ge || c(z, ne);
4639
+ const [W, z] = T.split(u), [oe, ne] = D.split(u), be = o(W, oe);
4640
+ if (be !== void 0)
4641
+ return be || c(z, ne);
4642
4642
  }
4643
4643
  const b = /\/|:/, _ = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
4644
- function g(q) {
4645
- return b.test(q) && _.test(q);
4644
+ function g(T) {
4645
+ return b.test(T) && _.test(T);
4646
4646
  }
4647
4647
  const p = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
4648
- function m(q) {
4649
- return p.lastIndex = 0, p.test(q);
4648
+ function m(T) {
4649
+ return p.lastIndex = 0, p.test(T);
4650
4650
  }
4651
4651
  const y = -2147483648, S = 2 ** 31 - 1;
4652
- function E(q) {
4653
- return Number.isInteger(q) && q <= S && q >= y;
4652
+ function E(T) {
4653
+ return Number.isInteger(T) && T <= S && T >= y;
4654
4654
  }
4655
- function O(q) {
4656
- return Number.isInteger(q);
4655
+ function O(T) {
4656
+ return Number.isInteger(T);
4657
4657
  }
4658
4658
  function C() {
4659
4659
  return !0;
4660
4660
  }
4661
4661
  const K = /[^\\]\\Z/;
4662
- function M(q) {
4663
- if (K.test(q))
4662
+ function q(T) {
4663
+ if (K.test(T))
4664
4664
  return !1;
4665
4665
  try {
4666
- return new RegExp(q), !0;
4666
+ return new RegExp(T), !0;
4667
4667
  } catch {
4668
4668
  return !1;
4669
4669
  }
4670
4670
  }
4671
4671
  })(Gs);
4672
- var Bs = {};
4672
+ var Js = {};
4673
4673
  (function(e) {
4674
4674
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4675
- const t = Ks, r = H, n = r.operators, s = {
4675
+ const t = Bs, r = H, n = r.operators, s = {
4676
4676
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
4677
4677
  formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
4678
4678
  formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
@@ -4721,10 +4721,10 @@ var Bs = {};
4721
4721
  };
4722
4722
  const o = (i) => (i.addKeyword(e.formatLimitDefinition), i);
4723
4723
  e.default = o;
4724
- })(Bs);
4724
+ })(Js);
4725
4725
  (function(e, t) {
4726
4726
  Object.defineProperty(t, "__esModule", { value: !0 });
4727
- const r = Gs, n = Bs, s = H, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4727
+ const r = Gs, n = Js, s = H, a = new s.Name("fullFormats"), o = new s.Name("fastFormats"), i = (c, u = { keywords: !0 }) => {
4728
4728
  if (Array.isArray(u))
4729
4729
  return d(c, u, r.fullFormats, a), c;
4730
4730
  const [h, w] = u.mode === "fast" ? [r.fastFormats, o] : [r.fullFormats, a], b = u.formats || r.formatNames;
@@ -4744,15 +4744,15 @@ var Bs = {};
4744
4744
  }
4745
4745
  e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
4746
4746
  })($r, $r.exports);
4747
- var oc = $r.exports;
4748
- const ic = /* @__PURE__ */ Gn(oc);
4747
+ var ic = $r.exports;
4748
+ const lc = /* @__PURE__ */ Gn(ic);
4749
4749
  class vt {
4750
4750
  constructor() {
4751
- this.validators = /* @__PURE__ */ new Map(), this.ajv = new ac({
4751
+ this.validators = /* @__PURE__ */ new Map(), this.ajv = new oc({
4752
4752
  allErrors: !0,
4753
4753
  strict: !1,
4754
4754
  validateFormats: !0
4755
- }), ic(this.ajv);
4755
+ }), lc(this.ajv), this.ajv.addFormat("textarea", () => !0), this.ajv.addFormat("password", () => !0);
4756
4756
  }
4757
4757
  /**
4758
4758
  * Validate data against a JSON Schema
@@ -4896,41 +4896,41 @@ class vt {
4896
4896
  this.validators.clear();
4897
4897
  }
4898
4898
  }
4899
- const Js = Symbol("quickforms-context");
4900
- function lc(e) {
4901
- xs(Js, e);
4899
+ const xs = Symbol("quickforms-context");
4900
+ function dc(e) {
4901
+ Zs(xs, e);
4902
4902
  }
4903
4903
  function rt() {
4904
- return Zs(Js, void 0);
4904
+ return Ys(xs, void 0);
4905
4905
  }
4906
- function je(e) {
4906
+ function Ie(e) {
4907
4907
  return `field-${e.replace(/\./g, "-")}`;
4908
4908
  }
4909
- function Cf(e, t) {
4909
+ function Uf(e, t) {
4910
4910
  return e.title || t.split(".").pop() || t;
4911
4911
  }
4912
- function dc(e) {
4912
+ function cc(e) {
4913
4913
  const t = e["x-hint"];
4914
4914
  return t || e.description;
4915
4915
  }
4916
- function Vf(e) {
4916
+ function Lf(e) {
4917
4917
  return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
4918
4918
  }
4919
- function Df(...e) {
4919
+ function Hf(...e) {
4920
4920
  return e.filter(Boolean).join(".");
4921
4921
  }
4922
4922
  const Fn = new vt();
4923
- function cc(e) {
4923
+ function uc(e) {
4924
4924
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
4925
4925
  }
4926
- function uc(e) {
4926
+ function fc(e) {
4927
4927
  try {
4928
4928
  return new URL(e), !0;
4929
4929
  } catch {
4930
4930
  return !1;
4931
4931
  }
4932
4932
  }
4933
- function fc(e, t) {
4933
+ function mc(e, t) {
4934
4934
  let r = null;
4935
4935
  return (...n) => new Promise((s) => {
4936
4936
  r && clearTimeout(r), r = setTimeout(async () => {
@@ -4942,53 +4942,53 @@ function fc(e, t) {
4942
4942
  function zn(e) {
4943
4943
  return typeof e == "boolean" || typeof e == "string" ? e : e && typeof e == "object" && e.valid === !1 ? e.message || "Validation failed" : !0;
4944
4944
  }
4945
- function Ne(e, t, r = {}) {
4946
- const n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", a = n == null ? void 0 : n.errorMessages, o = n == null ? void 0 : n.validators, i = n == null ? void 0 : n.validatorDebounce, d = (M, q) => {
4947
- var x;
4945
+ function Ee(e, t, r = {}) {
4946
+ const n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", a = n == null ? void 0 : n.errorMessages, o = n == null ? void 0 : n.validators, i = n == null ? void 0 : n.validatorDebounce, d = (q, T) => {
4947
+ var W;
4948
4948
  const D = t["x-error-messages"];
4949
- return D != null && D[M] ? D[M] : (x = a == null ? void 0 : a[e]) != null && x[M] ? a[e][M] : q;
4949
+ return D != null && D[q] ? D[q] : (W = a == null ? void 0 : a[e]) != null && W[q] ? a[e][q] : T;
4950
4950
  }, c = () => {
4951
4951
  if (typeof i == "number")
4952
4952
  return i;
4953
4953
  if (i && typeof i == "object")
4954
4954
  return i[e];
4955
- }, u = (M) => {
4956
- var x;
4955
+ }, u = (q) => {
4956
+ var W;
4957
4957
  if (s === "NoValidation")
4958
4958
  return !0;
4959
- const q = n == null ? void 0 : n.schema;
4960
- if (q && Fn.isRequired(q, e) && (M == null || M === ""))
4959
+ const T = n == null ? void 0 : n.schema;
4960
+ if (T && Fn.isRequired(T, e) && (q == null || q === ""))
4961
4961
  return d(
4962
4962
  "required",
4963
4963
  `${t.title || e} is required`
4964
4964
  );
4965
- if (M == null || M === "")
4965
+ if (q == null || q === "")
4966
4966
  return !0;
4967
- if (t.type === "string" && typeof M == "string") {
4968
- if (t.minLength !== void 0 && M.length < t.minLength)
4967
+ if (t.type === "string" && typeof q == "string") {
4968
+ if (t.minLength !== void 0 && q.length < t.minLength)
4969
4969
  return d(
4970
4970
  "minLength",
4971
4971
  `Must be at least ${t.minLength} characters`
4972
4972
  );
4973
- if (t.maxLength !== void 0 && M.length > t.maxLength)
4973
+ if (t.maxLength !== void 0 && q.length > t.maxLength)
4974
4974
  return d(
4975
4975
  "maxLength",
4976
4976
  `Must be at most ${t.maxLength} characters`
4977
4977
  );
4978
4978
  if (t.pattern)
4979
4979
  try {
4980
- if (!new RegExp(t.pattern).test(M))
4980
+ if (!new RegExp(t.pattern).test(q))
4981
4981
  return d("pattern", "Invalid format");
4982
4982
  } catch {
4983
4983
  console.warn("Invalid regex pattern:", t.pattern);
4984
4984
  }
4985
- if (t.format === "email" && !cc(M))
4985
+ if (t.format === "email" && !uc(q))
4986
4986
  return d("format", "Invalid email address");
4987
- if ((t.format === "url" || t.format === "uri") && !uc(M))
4987
+ if ((t.format === "url" || t.format === "uri") && !fc(q))
4988
4988
  return d("format", "Invalid URL");
4989
4989
  }
4990
- if ((t.type === "number" || t.type === "integer") && M !== "") {
4991
- const z = Number(M);
4990
+ if ((t.type === "number" || t.type === "integer") && q !== "") {
4991
+ const z = Number(q);
4992
4992
  if (isNaN(z))
4993
4993
  return d("type", "Must be a valid number");
4994
4994
  if (t.type === "integer" && !Number.isInteger(z))
@@ -5013,34 +5013,34 @@ function Ne(e, t, r = {}) {
5013
5013
  `Must be a multiple of ${t.multipleOf}`
5014
5014
  );
5015
5015
  }
5016
- if (t.type === "array" && Array.isArray(M)) {
5017
- if (t.minItems !== void 0 && M.length < t.minItems)
5016
+ if (t.type === "array" && Array.isArray(q)) {
5017
+ if (t.minItems !== void 0 && q.length < t.minItems)
5018
5018
  return d(
5019
5019
  "minItems",
5020
5020
  `Must have at least ${t.minItems} items`
5021
5021
  );
5022
- if (t.maxItems !== void 0 && M.length > t.maxItems)
5022
+ if (t.maxItems !== void 0 && q.length > t.maxItems)
5023
5023
  return d(
5024
5024
  "maxItems",
5025
5025
  `Must have at most ${t.maxItems} items`
5026
5026
  );
5027
- if (t.uniqueItems && new Set(M).size !== M.length)
5027
+ if (t.uniqueItems && new Set(q).size !== q.length)
5028
5028
  return d("uniqueItems", "All items must be unique");
5029
5029
  }
5030
- if (t.enum && !t.enum.includes(M))
5030
+ if (t.enum && !t.enum.includes(q))
5031
5031
  return d("enum", "Invalid value");
5032
- if (t.const !== void 0 && M !== t.const)
5032
+ if (t.const !== void 0 && q !== t.const)
5033
5033
  return d("const", `Must be ${t.const}`);
5034
5034
  const D = o == null ? void 0 : o[e];
5035
5035
  if (D)
5036
5036
  try {
5037
- const z = ((x = n == null ? void 0 : n.formValues) == null ? void 0 : x.call(n)) || {}, oe = (n == null ? void 0 : n.context) || {}, ne = D(M, z, oe);
5037
+ const z = ((W = n == null ? void 0 : n.formValues) == null ? void 0 : W.call(n)) || {}, oe = (n == null ? void 0 : n.context) || {}, ne = D(q, z, oe);
5038
5038
  return ne instanceof Promise ? ne.then(zn) : zn(ne);
5039
5039
  } catch (z) {
5040
5040
  return console.error("Custom validator error for", e, ":", z), "Validation error";
5041
5041
  }
5042
5042
  return !0;
5043
- }, h = c(), w = h && (o != null && o[e]) ? fc(u, h) : u, { value: b, errorMessage: _, errors: g, setValue: p, setTouched: m, meta: y } = oa(
5043
+ }, h = c(), w = h && (o != null && o[e]) ? mc(u, h) : u, { value: b, errorMessage: _, errors: g, setValue: p, setTouched: m, meta: y } = oa(
5044
5044
  e,
5045
5045
  s === "NoValidation" ? void 0 : w,
5046
5046
  {
@@ -5049,20 +5049,20 @@ function Ne(e, t, r = {}) {
5049
5049
  validateOnMount: !1
5050
5050
  }
5051
5051
  ), S = J(() => r.label !== void 0 ? r.label : t.title || e), E = J(() => {
5052
- const M = dc(t);
5053
- if (M)
5054
- return n != null && n.hintRenderer ? n.hintRenderer(M, {
5052
+ const q = cc(t);
5053
+ if (q)
5054
+ return n != null && n.hintRenderer ? n.hintRenderer(q, {
5055
5055
  schema: t,
5056
5056
  path: e,
5057
5057
  value: b.value
5058
- }) : M;
5058
+ }) : q;
5059
5059
  }), O = J(() => {
5060
- var q, D;
5061
- const M = t["x-hint-mode"];
5062
- return M || ((D = (q = n == null ? void 0 : n.componentDefaults) == null ? void 0 : q.hints) == null ? void 0 : D.showMode) || "always";
5060
+ var T, D;
5061
+ const q = t["x-hint-mode"];
5062
+ return q || ((D = (T = n == null ? void 0 : n.componentDefaults) == null ? void 0 : T.hints) == null ? void 0 : D.showMode) || "always";
5063
5063
  }), C = J(() => {
5064
- const M = n == null ? void 0 : n.schema;
5065
- return M ? Fn.isRequired(M, e) : !1;
5064
+ const q = n == null ? void 0 : n.schema;
5065
+ return q ? Fn.isRequired(q, e) : !1;
5066
5066
  }), K = J(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
5067
5067
  return {
5068
5068
  value: b,
@@ -5077,7 +5077,7 @@ function Ne(e, t, r = {}) {
5077
5077
  required: C
5078
5078
  };
5079
5079
  }
5080
- const mc = /* @__PURE__ */ ve({
5080
+ const hc = /* @__PURE__ */ me({
5081
5081
  __name: "StringField",
5082
5082
  props: {
5083
5083
  schema: { type: Object, required: !0 },
@@ -5090,27 +5090,27 @@ const mc = /* @__PURE__ */ ve({
5090
5090
  },
5091
5091
  setup(e, { expose: t }) {
5092
5092
  t();
5093
- const r = e, n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = Ne(
5093
+ const r = e, n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = Ee(
5094
5094
  r.path,
5095
5095
  r.schema,
5096
5096
  { label: r.label }
5097
- ), u = je(r.path), h = fe(!1), w = fe(!1), b = fe(!1), _ = J(() => r.schema.format === "password"), g = J(() => r.schema.format === "email" ? "email" : r.schema.format === "url" || r.schema.format === "uri" ? "url" : r.schema.format === "password" ? h.value ? "text" : "password" : "text"), p = J(() => r.schema.format === "textarea" || r.schema.maxLength && r.schema.maxLength > 200), m = () => {
5097
+ ), u = Ie(r.path), h = fe(!1), w = fe(!1), b = fe(!1), _ = J(() => r.schema.format === "password"), g = J(() => r.schema.format === "email" ? "email" : r.schema.format === "url" || r.schema.format === "uri" ? "url" : r.schema.format === "password" ? h.value ? "text" : "password" : "text"), p = J(() => r.schema.format === "textarea" || r.schema.maxLength && r.schema.maxLength > 200), m = () => {
5098
5098
  h.value = !h.value;
5099
5099
  }, y = J(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? w.value : c.value === "hover" ? b.value : !0), S = { props: r, formContext: n, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, showPassword: h, isFocused: w, isHovered: b, isPassword: _, inputType: g, isTextarea: p, togglePasswordVisibility: m, showHint: y };
5100
5100
  return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
5101
5101
  }
5102
- }), _e = (e, t) => {
5102
+ }), he = (e, t) => {
5103
5103
  const r = e.__vccOpts || e;
5104
5104
  for (const [n, s] of t)
5105
5105
  r[n] = s;
5106
5106
  return r;
5107
- }, hc = { class: "quickform-field quickform-string-field" }, pc = ["for"], yc = {
5107
+ }, pc = { class: "quickform-field quickform-string-field" }, yc = ["for"], vc = {
5108
5108
  key: 0,
5109
5109
  class: "quickform-required"
5110
- }, vc = ["id", "disabled", "readonly", "placeholder", "minlength", "maxlength", "aria-describedby", "aria-invalid"], _c = {
5110
+ }, _c = ["id", "disabled", "readonly", "placeholder", "minlength", "maxlength", "aria-describedby", "aria-invalid"], gc = {
5111
5111
  key: 1,
5112
5112
  class: "quickform-input-wrapper"
5113
- }, gc = ["id", "type", "disabled", "readonly", "placeholder", "minlength", "maxlength", "pattern", "aria-describedby", "aria-invalid"], bc = ["aria-label"], $c = {
5113
+ }, bc = ["id", "type", "disabled", "readonly", "placeholder", "minlength", "maxlength", "pattern", "aria-describedby", "aria-invalid"], $c = ["aria-label"], wc = {
5114
5114
  key: 0,
5115
5115
  xmlns: "http://www.w3.org/2000/svg",
5116
5116
  width: "20",
@@ -5121,7 +5121,7 @@ const mc = /* @__PURE__ */ ve({
5121
5121
  "stroke-width": "2",
5122
5122
  "stroke-linecap": "round",
5123
5123
  "stroke-linejoin": "round"
5124
- }, wc = {
5124
+ }, Sc = {
5125
5125
  key: 1,
5126
5126
  xmlns: "http://www.w3.org/2000/svg",
5127
5127
  width: "20",
@@ -5132,13 +5132,13 @@ const mc = /* @__PURE__ */ ve({
5132
5132
  "stroke-width": "2",
5133
5133
  "stroke-linecap": "round",
5134
5134
  "stroke-linejoin": "round"
5135
- }, Sc = ["id"], kc = ["innerHTML"], Ec = {
5135
+ }, kc = ["id"], Ec = ["innerHTML"], Pc = {
5136
5136
  key: 3,
5137
5137
  class: "quickform-error"
5138
5138
  };
5139
- function Pc(e, t, r, n, s, a) {
5139
+ function Oc(e, t, r, n, s, a) {
5140
5140
  var o, i;
5141
- return I(), R("div", hc, [
5141
+ return I(), M("div", pc, [
5142
5142
  U("label", {
5143
5143
  for: n.fieldId,
5144
5144
  class: "quickform-label"
@@ -5148,9 +5148,9 @@ function Pc(e, t, r, n, s, a) {
5148
5148
  1
5149
5149
  /* TEXT */
5150
5150
  ),
5151
- n.props.schema.required ? (I(), R("span", yc, "*")) : B("v-if", !0)
5152
- ], 8, pc),
5153
- n.isTextarea ? ze((I(), R("textarea", {
5151
+ n.props.schema.required ? (I(), M("span", vc, "*")) : G("v-if", !0)
5152
+ ], 8, yc),
5153
+ n.isTextarea ? ze((I(), M("textarea", {
5154
5154
  key: 0,
5155
5155
  id: n.fieldId,
5156
5156
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
@@ -5166,14 +5166,14 @@ function Pc(e, t, r, n, s, a) {
5166
5166
  onBlur: t[2] || (t[2] = (d) => n.isFocused = !1),
5167
5167
  onMouseenter: t[3] || (t[3] = (d) => n.isHovered = !0),
5168
5168
  onMouseleave: t[4] || (t[4] = (d) => n.isHovered = !1)
5169
- }, null, 40, vc)), [
5169
+ }, null, 40, _c)), [
5170
5170
  [Ln, n.value]
5171
- ]) : (I(), R("div", _c, [
5171
+ ]) : (I(), M("div", gc, [
5172
5172
  ze(U("input", {
5173
5173
  id: n.fieldId,
5174
5174
  "onUpdate:modelValue": t[5] || (t[5] = (d) => n.value = d),
5175
5175
  type: n.inputType,
5176
- class: Ys(["quickform-input", { "quickform-input-with-icon": n.isPassword }]),
5176
+ class: Qs(["quickform-input", { "quickform-input-with-icon": n.isPassword }]),
5177
5177
  disabled: r.disabled,
5178
5178
  readonly: r.readonly,
5179
5179
  placeholder: n.hint,
@@ -5186,17 +5186,17 @@ function Pc(e, t, r, n, s, a) {
5186
5186
  onBlur: t[7] || (t[7] = (d) => n.isFocused = !1),
5187
5187
  onMouseenter: t[8] || (t[8] = (d) => n.isHovered = !0),
5188
5188
  onMouseleave: t[9] || (t[9] = (d) => n.isHovered = !1)
5189
- }, null, 42, gc), [
5189
+ }, null, 42, bc), [
5190
5190
  [wr, n.value]
5191
5191
  ]),
5192
- n.isPassword ? (I(), R("button", {
5192
+ n.isPassword ? (I(), M("button", {
5193
5193
  key: 0,
5194
5194
  type: "button",
5195
5195
  class: "quickform-password-toggle",
5196
5196
  "aria-label": n.showPassword ? (o = n.formContext) == null ? void 0 : o.labels.hidePassword : (i = n.formContext) == null ? void 0 : i.labels.showPassword,
5197
5197
  onClick: n.togglePasswordVisibility
5198
5198
  }, [
5199
- n.showPassword ? (I(), R("svg", $c, [...t[10] || (t[10] = [
5199
+ n.showPassword ? (I(), M("svg", wc, [...t[10] || (t[10] = [
5200
5200
  U(
5201
5201
  "path",
5202
5202
  { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" },
@@ -5216,7 +5216,7 @@ function Pc(e, t, r, n, s, a) {
5216
5216
  -1
5217
5217
  /* CACHED */
5218
5218
  )
5219
- ])])) : (I(), R("svg", wc, [...t[11] || (t[11] = [
5219
+ ])])) : (I(), M("svg", Sc, [...t[11] || (t[11] = [
5220
5220
  U(
5221
5221
  "path",
5222
5222
  { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" },
@@ -5236,25 +5236,25 @@ function Pc(e, t, r, n, s, a) {
5236
5236
  /* CACHED */
5237
5237
  )
5238
5238
  ])]))
5239
- ], 8, bc)) : B("v-if", !0)
5239
+ ], 8, $c)) : G("v-if", !0)
5240
5240
  ])),
5241
- n.showHint ? (I(), R("div", {
5241
+ n.showHint ? (I(), M("div", {
5242
5242
  key: 2,
5243
5243
  id: `${n.fieldId}-hint`,
5244
5244
  class: "quickform-hint"
5245
5245
  }, [
5246
- U("span", { innerHTML: n.hint }, null, 8, kc)
5247
- ], 8, Sc)) : B("v-if", !0),
5248
- n.errorMessage ? (I(), R(
5246
+ U("span", { innerHTML: n.hint }, null, 8, Ec)
5247
+ ], 8, kc)) : G("v-if", !0),
5248
+ n.errorMessage ? (I(), M(
5249
5249
  "div",
5250
- Ec,
5250
+ Pc,
5251
5251
  X(n.errorMessage),
5252
5252
  1
5253
5253
  /* TEXT */
5254
- )) : B("v-if", !0)
5254
+ )) : G("v-if", !0)
5255
5255
  ]);
5256
5256
  }
5257
- const Oc = /* @__PURE__ */ _e(mc, [["render", Pc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/StringField.vue"]]), jc = /* @__PURE__ */ ve({
5257
+ const jc = /* @__PURE__ */ he(hc, [["render", Oc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/StringField.vue"]]), Nc = /* @__PURE__ */ me({
5258
5258
  __name: "NumberField",
5259
5259
  props: {
5260
5260
  schema: { type: Object, required: !0 },
@@ -5267,18 +5267,18 @@ const Oc = /* @__PURE__ */ _e(mc, [["render", Pc], ["__scopeId", "data-v-ad9ab1f
5267
5267
  },
5268
5268
  setup(e, { expose: t }) {
5269
5269
  t();
5270
- const r = e, n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = Ne(r.path, r.schema, { label: r.label }), u = je(r.path), h = fe(!1), w = fe(!1), b = J(() => (r.schema.type === "integer", "number")), _ = J(() => r.schema.multipleOf ? r.schema.multipleOf : r.schema.type === "integer" ? 1 : "any"), g = J(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? h.value : c.value === "hover" ? w.value : !0), p = { props: r, formContext: n, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, isFocused: h, isHovered: w, inputType: b, step: _, showHint: g };
5270
+ const r = e, n = rt(), s = (n == null ? void 0 : n.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = Ee(r.path, r.schema, { label: r.label }), u = Ie(r.path), h = fe(!1), w = fe(!1), b = J(() => (r.schema.type === "integer", "number")), _ = J(() => r.schema.multipleOf ? r.schema.multipleOf : r.schema.type === "integer" ? 1 : "any"), g = J(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? h.value : c.value === "hover" ? w.value : !0), p = { props: r, formContext: n, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, isFocused: h, isHovered: w, inputType: b, step: _, showHint: g };
5271
5271
  return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
5272
5272
  }
5273
- }), Nc = { class: "quickform-field quickform-number-field" }, Ic = ["for"], Mc = {
5273
+ }), Ic = { class: "quickform-field quickform-number-field" }, qc = ["for"], Mc = {
5274
5274
  key: 0,
5275
5275
  class: "quickform-required"
5276
- }, qc = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], Tc = ["id"], Rc = ["innerHTML"], Ac = {
5276
+ }, Tc = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], Rc = ["id"], Ac = ["innerHTML"], Cc = {
5277
5277
  key: 1,
5278
5278
  class: "quickform-error"
5279
5279
  };
5280
- function Cc(e, t, r, n, s, a) {
5281
- return I(), R("div", Nc, [
5280
+ function Vc(e, t, r, n, s, a) {
5281
+ return I(), M("div", Ic, [
5282
5282
  U("label", {
5283
5283
  for: n.fieldId,
5284
5284
  class: "quickform-label"
@@ -5288,8 +5288,8 @@ function Cc(e, t, r, n, s, a) {
5288
5288
  1
5289
5289
  /* TEXT */
5290
5290
  ),
5291
- n.props.schema.required ? (I(), R("span", Mc, "*")) : B("v-if", !0)
5292
- ], 8, Ic),
5291
+ n.props.schema.required ? (I(), M("span", Mc, "*")) : G("v-if", !0)
5292
+ ], 8, qc),
5293
5293
  ze(U("input", {
5294
5294
  id: n.fieldId,
5295
5295
  "onUpdate:modelValue": t[0] || (t[0] = (o) => n.value = o),
@@ -5307,7 +5307,7 @@ function Cc(e, t, r, n, s, a) {
5307
5307
  onBlur: t[2] || (t[2] = (o) => n.isFocused = !1),
5308
5308
  onMouseenter: t[3] || (t[3] = (o) => n.isHovered = !0),
5309
5309
  onMouseleave: t[4] || (t[4] = (o) => n.isHovered = !1)
5310
- }, null, 40, qc), [
5310
+ }, null, 40, Tc), [
5311
5311
  [
5312
5312
  wr,
5313
5313
  n.value,
@@ -5315,23 +5315,23 @@ function Cc(e, t, r, n, s, a) {
5315
5315
  { number: !0 }
5316
5316
  ]
5317
5317
  ]),
5318
- n.showHint ? (I(), R("div", {
5318
+ n.showHint ? (I(), M("div", {
5319
5319
  key: 0,
5320
5320
  id: `${n.fieldId}-hint`,
5321
5321
  class: "quickform-hint"
5322
5322
  }, [
5323
- U("span", { innerHTML: n.hint }, null, 8, Rc)
5324
- ], 8, Tc)) : B("v-if", !0),
5325
- n.errorMessage ? (I(), R(
5323
+ U("span", { innerHTML: n.hint }, null, 8, Ac)
5324
+ ], 8, Rc)) : G("v-if", !0),
5325
+ n.errorMessage ? (I(), M(
5326
5326
  "div",
5327
- Ac,
5327
+ Cc,
5328
5328
  X(n.errorMessage),
5329
5329
  1
5330
5330
  /* TEXT */
5331
- )) : B("v-if", !0)
5331
+ )) : G("v-if", !0)
5332
5332
  ]);
5333
5333
  }
5334
- const Vc = /* @__PURE__ */ _e(jc, [["render", Cc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/NumberField.vue"]]), Dc = /* @__PURE__ */ ve({
5334
+ const Dc = /* @__PURE__ */ he(Nc, [["render", Vc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/NumberField.vue"]]), Fc = /* @__PURE__ */ me({
5335
5335
  __name: "BooleanField",
5336
5336
  props: {
5337
5337
  schema: { type: Object, required: !0 },
@@ -5344,18 +5344,18 @@ const Vc = /* @__PURE__ */ _e(jc, [["render", Cc], ["__scopeId", "data-v-7def4a8
5344
5344
  },
5345
5345
  setup(e, { expose: t }) {
5346
5346
  t();
5347
- const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ne(r.path, r.schema, { label: r.label }), d = je(r.path), c = fe(!1), u = fe(!1), h = J(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), w = { props: r, value: n, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, showHint: h };
5347
+ const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ee(r.path, r.schema, { label: r.label }), d = Ie(r.path), c = fe(!1), u = fe(!1), h = J(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), w = { props: r, value: n, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, showHint: h };
5348
5348
  return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
5349
5349
  }
5350
- }), Fc = { class: "quickform-field quickform-boolean-field" }, zc = ["for"], Uc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Lc = { class: "quickform-checkbox-text" }, Hc = {
5350
+ }), zc = { class: "quickform-field quickform-boolean-field" }, Uc = ["for"], Lc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Hc = { class: "quickform-checkbox-text" }, Kc = {
5351
5351
  key: 0,
5352
5352
  class: "quickform-required"
5353
- }, Kc = ["id"], Gc = ["innerHTML"], Bc = {
5353
+ }, Bc = ["id"], Gc = ["innerHTML"], Jc = {
5354
5354
  key: 1,
5355
5355
  class: "quickform-error"
5356
5356
  };
5357
- function Jc(e, t, r, n, s, a) {
5358
- return I(), R("div", Fc, [
5357
+ function xc(e, t, r, n, s, a) {
5358
+ return I(), M("div", zc, [
5359
5359
  U("label", {
5360
5360
  for: n.fieldId,
5361
5361
  class: "quickform-checkbox-label",
@@ -5373,35 +5373,35 @@ function Jc(e, t, r, n, s, a) {
5373
5373
  "aria-invalid": !!n.errorMessage,
5374
5374
  onFocus: t[1] || (t[1] = (o) => n.isFocused = !0),
5375
5375
  onBlur: t[2] || (t[2] = (o) => n.isFocused = !1)
5376
- }, null, 40, Uc), [
5377
- [Qs, n.value]
5376
+ }, null, 40, Lc), [
5377
+ [Xs, n.value]
5378
5378
  ]),
5379
- U("span", Lc, [
5379
+ U("span", Hc, [
5380
5380
  Ae(
5381
5381
  X(n.label) + " ",
5382
5382
  1
5383
5383
  /* TEXT */
5384
5384
  ),
5385
- n.props.schema.required ? (I(), R("span", Hc, "*")) : B("v-if", !0)
5385
+ n.props.schema.required ? (I(), M("span", Kc, "*")) : G("v-if", !0)
5386
5386
  ])
5387
- ], 40, zc),
5388
- n.showHint ? (I(), R("div", {
5387
+ ], 40, Uc),
5388
+ n.showHint ? (I(), M("div", {
5389
5389
  key: 0,
5390
5390
  id: `${n.fieldId}-hint`,
5391
5391
  class: "quickform-hint"
5392
5392
  }, [
5393
5393
  U("span", { innerHTML: n.hint }, null, 8, Gc)
5394
- ], 8, Kc)) : B("v-if", !0),
5395
- n.errorMessage ? (I(), R(
5394
+ ], 8, Bc)) : G("v-if", !0),
5395
+ n.errorMessage ? (I(), M(
5396
5396
  "div",
5397
- Bc,
5397
+ Jc,
5398
5398
  X(n.errorMessage),
5399
5399
  1
5400
5400
  /* TEXT */
5401
- )) : B("v-if", !0)
5401
+ )) : G("v-if", !0)
5402
5402
  ]);
5403
5403
  }
5404
- const Wc = /* @__PURE__ */ _e(Dc, [["render", Jc], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/BooleanField.vue"]]), xc = /* @__PURE__ */ ve({
5404
+ const Wc = /* @__PURE__ */ he(Fc, [["render", xc], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/BooleanField.vue"]]), Zc = /* @__PURE__ */ me({
5405
5405
  __name: "EnumField",
5406
5406
  props: {
5407
5407
  schema: { type: Object, required: !0 },
@@ -5414,11 +5414,11 @@ const Wc = /* @__PURE__ */ _e(Dc, [["render", Jc], ["__scopeId", "data-v-1ff012c
5414
5414
  },
5415
5415
  setup(e, { expose: t }) {
5416
5416
  t();
5417
- const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ne(
5417
+ const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ee(
5418
5418
  r.path,
5419
5419
  r.schema,
5420
5420
  { label: r.label }
5421
- ), d = rt(), c = je(r.path), u = `${c}-datalist`, h = fe(!1), w = fe(!1), b = J(() => {
5421
+ ), d = rt(), c = Ie(r.path), u = `${c}-datalist`, h = fe(!1), w = fe(!1), b = J(() => {
5422
5422
  if (!r.schema.enum) return [];
5423
5423
  const y = r.schema["x-enum-labels"];
5424
5424
  return r.schema.enum.map((S) => {
@@ -5429,11 +5429,11 @@ const Wc = /* @__PURE__ */ _e(Dc, [["render", Jc], ["__scopeId", "data-v-1ff012c
5429
5429
  };
5430
5430
  });
5431
5431
  }), _ = J(() => {
5432
- var O, C, K, M;
5432
+ var O, C, K, q;
5433
5433
  const y = r.schema["x-component-props"];
5434
5434
  if ((y == null ? void 0 : y.autocomplete) !== void 0)
5435
5435
  return y.autocomplete;
5436
- const S = ((C = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : C.autocomplete) || !1, E = ((M = (K = d == null ? void 0 : d.componentDefaults) == null ? void 0 : K.select) == null ? void 0 : M.autocompleteThreshold) || 5;
5436
+ const S = ((C = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : C.autocomplete) || !1, E = ((q = (K = d == null ? void 0 : d.componentDefaults) == null ? void 0 : K.select) == null ? void 0 : q.autocompleteThreshold) || 5;
5437
5437
  return S || b.value.length >= E;
5438
5438
  }), g = J(() => {
5439
5439
  var y;
@@ -5441,15 +5441,15 @@ const Wc = /* @__PURE__ */ _e(Dc, [["render", Jc], ["__scopeId", "data-v-1ff012c
5441
5441
  }), p = J(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? h.value : i.value === "hover" ? w.value : !0), m = { props: r, value: n, errorMessage: s, label: a, hint: o, hintMode: i, formContext: d, fieldId: c, datalistId: u, isFocused: h, isHovered: w, options: b, useAutocomplete: _, placeholder: g, showHint: p };
5442
5442
  return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
5443
5443
  }
5444
- }), Zc = { class: "quickform-field quickform-enum-field" }, Yc = ["for"], Qc = {
5444
+ }), Yc = { class: "quickform-field quickform-enum-field" }, Qc = ["for"], Xc = {
5445
5445
  key: 0,
5446
5446
  class: "quickform-required"
5447
- }, Xc = ["id", "disabled", "placeholder", "aria-describedby", "aria-invalid"], eu = ["value"], tu = ["id", "disabled", "aria-describedby", "aria-invalid"], ru = { value: "" }, nu = ["value"], su = ["id"], au = ["innerHTML"], ou = {
5447
+ }, eu = ["id", "disabled", "placeholder", "aria-describedby", "aria-invalid"], tu = ["value"], ru = ["id", "disabled", "aria-describedby", "aria-invalid"], nu = { value: "" }, su = ["value"], au = ["id"], ou = ["innerHTML"], iu = {
5448
5448
  key: 3,
5449
5449
  class: "quickform-error"
5450
5450
  };
5451
- function iu(e, t, r, n, s, a) {
5452
- return I(), R("div", Zc, [
5451
+ function lu(e, t, r, n, s, a) {
5452
+ return I(), M("div", Yc, [
5453
5453
  U("label", {
5454
5454
  for: n.fieldId,
5455
5455
  class: "quickform-label"
@@ -5459,10 +5459,10 @@ function iu(e, t, r, n, s, a) {
5459
5459
  1
5460
5460
  /* TEXT */
5461
5461
  ),
5462
- n.props.schema.required ? (I(), R("span", Qc, "*")) : B("v-if", !0)
5463
- ], 8, Yc),
5464
- B(" Use datalist for autocomplete when enabled "),
5465
- n.useAutocomplete ? ze((I(), R("input", {
5462
+ n.props.schema.required ? (I(), M("span", Xc, "*")) : G("v-if", !0)
5463
+ ], 8, Qc),
5464
+ G(" Use datalist for autocomplete when enabled "),
5465
+ n.useAutocomplete ? ze((I(), M("input", {
5466
5466
  key: 0,
5467
5467
  id: n.fieldId,
5468
5468
  "onUpdate:modelValue": t[0] || (t[0] = (o) => n.value = o),
@@ -5476,23 +5476,23 @@ function iu(e, t, r, n, s, a) {
5476
5476
  onBlur: t[2] || (t[2] = (o) => n.isFocused = !1),
5477
5477
  onMouseenter: t[3] || (t[3] = (o) => n.isHovered = !0),
5478
5478
  onMouseleave: t[4] || (t[4] = (o) => n.isHovered = !1)
5479
- }, null, 40, Xc)), [
5479
+ }, null, 40, eu)), [
5480
5480
  [Ln, n.value]
5481
- ]) : B("v-if", !0),
5481
+ ]) : G("v-if", !0),
5482
5482
  U("datalist", { id: n.datalistId }, [
5483
- (I(!0), R(
5484
- Re,
5483
+ (I(!0), M(
5484
+ je,
5485
5485
  null,
5486
- xe(n.options, (o) => (I(), R("option", {
5486
+ We(n.options, (o) => (I(), M("option", {
5487
5487
  key: String(o.value),
5488
5488
  value: o.value
5489
- }, X(o.label), 9, eu))),
5489
+ }, X(o.label), 9, tu))),
5490
5490
  128
5491
5491
  /* KEYED_FRAGMENT */
5492
5492
  ))
5493
5493
  ]),
5494
- B(" Use regular select when autocomplete disabled "),
5495
- n.useAutocomplete ? B("v-if", !0) : ze((I(), R("select", {
5494
+ G(" Use regular select when autocomplete disabled "),
5495
+ n.useAutocomplete ? G("v-if", !0) : ze((I(), M("select", {
5496
5496
  key: 1,
5497
5497
  id: n.fieldId,
5498
5498
  "onUpdate:modelValue": t[5] || (t[5] = (o) => n.value = o),
@@ -5507,41 +5507,41 @@ function iu(e, t, r, n, s, a) {
5507
5507
  }, [
5508
5508
  U(
5509
5509
  "option",
5510
- ru,
5510
+ nu,
5511
5511
  X(n.placeholder),
5512
5512
  1
5513
5513
  /* TEXT */
5514
5514
  ),
5515
- (I(!0), R(
5516
- Re,
5515
+ (I(!0), M(
5516
+ je,
5517
5517
  null,
5518
- xe(n.options, (o) => (I(), R("option", {
5518
+ We(n.options, (o) => (I(), M("option", {
5519
5519
  key: String(o.value),
5520
5520
  value: o.value
5521
- }, X(o.label), 9, nu))),
5521
+ }, X(o.label), 9, su))),
5522
5522
  128
5523
5523
  /* KEYED_FRAGMENT */
5524
5524
  ))
5525
- ], 40, tu)), [
5526
- [Xs, n.value]
5525
+ ], 40, ru)), [
5526
+ [ea, n.value]
5527
5527
  ]),
5528
- n.showHint ? (I(), R("div", {
5528
+ n.showHint ? (I(), M("div", {
5529
5529
  key: 2,
5530
5530
  id: `${n.fieldId}-hint`,
5531
5531
  class: "quickform-hint"
5532
5532
  }, [
5533
- U("span", { innerHTML: n.hint }, null, 8, au)
5534
- ], 8, su)) : B("v-if", !0),
5535
- n.errorMessage ? (I(), R(
5533
+ U("span", { innerHTML: n.hint }, null, 8, ou)
5534
+ ], 8, au)) : G("v-if", !0),
5535
+ n.errorMessage ? (I(), M(
5536
5536
  "div",
5537
- ou,
5537
+ iu,
5538
5538
  X(n.errorMessage),
5539
5539
  1
5540
5540
  /* TEXT */
5541
- )) : B("v-if", !0)
5541
+ )) : G("v-if", !0)
5542
5542
  ]);
5543
5543
  }
5544
- const lu = /* @__PURE__ */ _e(xc, [["render", iu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/EnumField.vue"]]), du = /* @__PURE__ */ ve({
5544
+ const du = /* @__PURE__ */ he(Zc, [["render", lu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/EnumField.vue"]]), cu = /* @__PURE__ */ me({
5545
5545
  __name: "DateField",
5546
5546
  props: {
5547
5547
  schema: { type: Object, required: !0 },
@@ -5554,18 +5554,18 @@ const lu = /* @__PURE__ */ _e(xc, [["render", iu], ["__scopeId", "data-v-666cc49
5554
5554
  },
5555
5555
  setup(e, { expose: t }) {
5556
5556
  t();
5557
- const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ne(r.path, r.schema, { label: r.label }), d = je(r.path), c = fe(!1), u = fe(!1), h = J(() => r.schema.format === "time" ? "time" : r.schema.format === "date-time" ? "datetime-local" : "date"), w = J(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), b = { props: r, value: n, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, inputType: h, showHint: w };
5557
+ const r = e, { value: n, errorMessage: s, label: a, hint: o, hintMode: i } = Ee(r.path, r.schema, { label: r.label }), d = Ie(r.path), c = fe(!1), u = fe(!1), h = J(() => r.schema.format === "time" ? "time" : r.schema.format === "date-time" ? "datetime-local" : "date"), w = J(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), b = { props: r, value: n, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, inputType: h, showHint: w };
5558
5558
  return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
5559
5559
  }
5560
- }), cu = { class: "quickform-field quickform-date-field" }, uu = ["for"], fu = {
5560
+ }), uu = { class: "quickform-field quickform-date-field" }, fu = ["for"], mu = {
5561
5561
  key: 0,
5562
5562
  class: "quickform-required"
5563
- }, mu = ["id", "type", "disabled", "readonly", "aria-describedby", "aria-invalid"], hu = ["id"], pu = ["innerHTML"], yu = {
5563
+ }, hu = ["id", "type", "disabled", "readonly", "aria-describedby", "aria-invalid"], pu = ["id"], yu = ["innerHTML"], vu = {
5564
5564
  key: 1,
5565
5565
  class: "quickform-error"
5566
5566
  };
5567
- function vu(e, t, r, n, s, a) {
5568
- return I(), R("div", cu, [
5567
+ function _u(e, t, r, n, s, a) {
5568
+ return I(), M("div", uu, [
5569
5569
  U("label", {
5570
5570
  for: n.fieldId,
5571
5571
  class: "quickform-label"
@@ -5575,8 +5575,8 @@ function vu(e, t, r, n, s, a) {
5575
5575
  1
5576
5576
  /* TEXT */
5577
5577
  ),
5578
- n.props.schema.required ? (I(), R("span", fu, "*")) : B("v-if", !0)
5579
- ], 8, uu),
5578
+ n.props.schema.required ? (I(), M("span", mu, "*")) : G("v-if", !0)
5579
+ ], 8, fu),
5580
5580
  ze(U("input", {
5581
5581
  id: n.fieldId,
5582
5582
  "onUpdate:modelValue": t[0] || (t[0] = (o) => n.value = o),
@@ -5590,26 +5590,26 @@ function vu(e, t, r, n, s, a) {
5590
5590
  onBlur: t[2] || (t[2] = (o) => n.isFocused = !1),
5591
5591
  onMouseenter: t[3] || (t[3] = (o) => n.isHovered = !0),
5592
5592
  onMouseleave: t[4] || (t[4] = (o) => n.isHovered = !1)
5593
- }, null, 40, mu), [
5593
+ }, null, 40, hu), [
5594
5594
  [wr, n.value]
5595
5595
  ]),
5596
- n.showHint ? (I(), R("div", {
5596
+ n.showHint ? (I(), M("div", {
5597
5597
  key: 0,
5598
5598
  id: `${n.fieldId}-hint`,
5599
5599
  class: "quickform-hint"
5600
5600
  }, [
5601
- U("span", { innerHTML: n.hint }, null, 8, pu)
5602
- ], 8, hu)) : B("v-if", !0),
5603
- n.errorMessage ? (I(), R(
5601
+ U("span", { innerHTML: n.hint }, null, 8, yu)
5602
+ ], 8, pu)) : G("v-if", !0),
5603
+ n.errorMessage ? (I(), M(
5604
5604
  "div",
5605
- yu,
5605
+ vu,
5606
5606
  X(n.errorMessage),
5607
5607
  1
5608
5608
  /* TEXT */
5609
- )) : B("v-if", !0)
5609
+ )) : G("v-if", !0)
5610
5610
  ]);
5611
5611
  }
5612
- const _u = /* @__PURE__ */ _e(du, [["render", vu], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/DateField.vue"]]), gu = /* @__PURE__ */ ve({
5612
+ const gu = /* @__PURE__ */ he(cu, [["render", _u], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/DateField.vue"]]), bu = /* @__PURE__ */ me({
5613
5613
  __name: "FieldRenderer",
5614
5614
  props: {
5615
5615
  schema: { type: Object, required: !0 },
@@ -5652,21 +5652,21 @@ const _u = /* @__PURE__ */ _e(du, [["render", vu], ["__scopeId", "data-v-e0ddab6
5652
5652
  }), i = { props: r, context: n, isVisible: s, isFieldReadonly: a, component: o };
5653
5653
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
5654
5654
  }
5655
- }), bu = {
5655
+ }), $u = {
5656
5656
  key: 1,
5657
5657
  class: "quickform-no-renderer"
5658
5658
  };
5659
- function $u(e, t, r, n, s, a) {
5660
- return I(), R(
5661
- Re,
5659
+ function wu(e, t, r, n, s, a) {
5660
+ return I(), M(
5661
+ je,
5662
5662
  null,
5663
5663
  [
5664
- B(" Only render if visible "),
5665
- n.isVisible ? (I(), R(
5666
- Re,
5664
+ G(" Only render if visible "),
5665
+ n.isVisible ? (I(), M(
5666
+ je,
5667
5667
  { key: 0 },
5668
5668
  [
5669
- n.component ? (I(), Dt(ea(n.component), {
5669
+ n.component ? (I(), Dt(ta(n.component), {
5670
5670
  key: 0,
5671
5671
  schema: r.schema,
5672
5672
  uischema: r.uischema,
@@ -5674,7 +5674,7 @@ function $u(e, t, r, n, s, a) {
5674
5674
  label: r.label,
5675
5675
  disabled: r.disabled || n.context.disabled,
5676
5676
  readonly: n.isFieldReadonly
5677
- }, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (I(), R("div", bu, [
5677
+ }, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (I(), M("div", $u, [
5678
5678
  U(
5679
5679
  "p",
5680
5680
  null,
@@ -5693,13 +5693,13 @@ function $u(e, t, r, n, s, a) {
5693
5693
  ],
5694
5694
  64
5695
5695
  /* STABLE_FRAGMENT */
5696
- )) : B("v-if", !0)
5696
+ )) : G("v-if", !0)
5697
5697
  ],
5698
5698
  2112
5699
5699
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5700
5700
  );
5701
5701
  }
5702
- const _t = /* @__PURE__ */ _e(gu, [["render", $u], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/FieldRenderer.vue"]]), wu = /* @__PURE__ */ ve({
5702
+ const _t = /* @__PURE__ */ he(bu, [["render", wu], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/FieldRenderer.vue"]]), Su = /* @__PURE__ */ me({
5703
5703
  __name: "ObjectField",
5704
5704
  props: {
5705
5705
  schema: { type: Object, required: !0 },
@@ -5712,50 +5712,50 @@ const _t = /* @__PURE__ */ _e(gu, [["render", $u], ["__scopeId", "data-v-abf28e2
5712
5712
  },
5713
5713
  setup(e, { expose: t }) {
5714
5714
  t();
5715
- const r = e, { label: n, hint: s, errorMessage: a } = Ne(r.path, r.schema, { label: r.label }), o = je(r.path), i = J(() => r.schema.properties ? Object.entries(r.schema.properties).map(([c, u]) => ({
5715
+ const r = e, { label: n, hint: s, errorMessage: a } = Ee(r.path, r.schema, { label: r.label }), o = Ie(r.path), i = J(() => r.schema.properties ? Object.entries(r.schema.properties).map(([c, u]) => ({
5716
5716
  key: c,
5717
5717
  schema: u,
5718
5718
  path: r.path ? `${r.path}.${c}` : c
5719
5719
  })) : []), d = { props: r, label: n, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: _t };
5720
5720
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
5721
5721
  }
5722
- }), Su = { class: "quickform-field quickform-object-field" }, ku = ["id", "aria-describedby"], Eu = {
5722
+ }), ku = { class: "quickform-field quickform-object-field" }, Eu = ["id", "aria-describedby"], Pu = {
5723
5723
  key: 0,
5724
5724
  class: "quickform-legend"
5725
- }, Pu = {
5725
+ }, Ou = {
5726
5726
  key: 0,
5727
5727
  class: "quickform-required"
5728
- }, Ou = ["id"], ju = ["innerHTML"], Nu = { class: "quickform-object-content" }, Iu = {
5728
+ }, ju = ["id"], Nu = ["innerHTML"], Iu = { class: "quickform-object-content" }, qu = {
5729
5729
  key: 2,
5730
5730
  class: "quickform-error"
5731
5731
  };
5732
5732
  function Mu(e, t, r, n, s, a) {
5733
- return I(), R("div", Su, [
5733
+ return I(), M("div", ku, [
5734
5734
  U("fieldset", {
5735
5735
  id: n.fieldId,
5736
5736
  class: "quickform-fieldset",
5737
5737
  "aria-describedby": n.hint ? `${n.fieldId}-hint` : void 0
5738
5738
  }, [
5739
- n.label ? (I(), R("legend", Eu, [
5739
+ n.label ? (I(), M("legend", Pu, [
5740
5740
  Ae(
5741
5741
  X(n.label) + " ",
5742
5742
  1
5743
5743
  /* TEXT */
5744
5744
  ),
5745
- n.props.schema.required ? (I(), R("span", Pu, "*")) : B("v-if", !0)
5746
- ])) : B("v-if", !0),
5747
- n.hint ? (I(), R("div", {
5745
+ n.props.schema.required ? (I(), M("span", Ou, "*")) : G("v-if", !0)
5746
+ ])) : G("v-if", !0),
5747
+ n.hint ? (I(), M("div", {
5748
5748
  key: 1,
5749
5749
  id: `${n.fieldId}-hint`,
5750
5750
  class: "quickform-hint quickform-object-hint"
5751
5751
  }, [
5752
- U("span", { innerHTML: n.hint }, null, 8, ju)
5753
- ], 8, Ou)) : B("v-if", !0),
5754
- U("div", Nu, [
5755
- (I(!0), R(
5756
- Re,
5752
+ U("span", { innerHTML: n.hint }, null, 8, Nu)
5753
+ ], 8, ju)) : G("v-if", !0),
5754
+ U("div", Iu, [
5755
+ (I(!0), M(
5756
+ je,
5757
5757
  null,
5758
- xe(n.properties, (o) => (I(), Dt(n.FieldRenderer, {
5758
+ We(n.properties, (o) => (I(), Dt(n.FieldRenderer, {
5759
5759
  key: o.key,
5760
5760
  schema: o.schema,
5761
5761
  path: o.path,
@@ -5766,17 +5766,17 @@ function Mu(e, t, r, n, s, a) {
5766
5766
  /* KEYED_FRAGMENT */
5767
5767
  ))
5768
5768
  ]),
5769
- n.errorMessage ? (I(), R(
5769
+ n.errorMessage ? (I(), M(
5770
5770
  "div",
5771
- Iu,
5771
+ qu,
5772
5772
  X(n.errorMessage),
5773
5773
  1
5774
5774
  /* TEXT */
5775
- )) : B("v-if", !0)
5776
- ], 8, ku)
5775
+ )) : G("v-if", !0)
5776
+ ], 8, Eu)
5777
5777
  ]);
5778
5778
  }
5779
- const qu = /* @__PURE__ */ _e(wu, [["render", Mu], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/ObjectField.vue"]]), Tu = /* @__PURE__ */ ve({
5779
+ const Tu = /* @__PURE__ */ he(Su, [["render", Mu], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/ObjectField.vue"]]), Ru = /* @__PURE__ */ me({
5780
5780
  __name: "ArrayField",
5781
5781
  props: {
5782
5782
  schema: { type: Object, required: !0 },
@@ -5789,11 +5789,11 @@ const qu = /* @__PURE__ */ _e(wu, [["render", Mu], ["__scopeId", "data-v-8012fc1
5789
5789
  },
5790
5790
  setup(e, { expose: t }) {
5791
5791
  t();
5792
- const r = e, { value: n, errorMessage: s, label: a, hint: o } = Ne(
5792
+ const r = e, { value: n, errorMessage: s, label: a, hint: o } = Ee(
5793
5793
  r.path,
5794
5794
  r.schema,
5795
5795
  { label: r.label }
5796
- ), i = rt(), d = je(r.path), c = new vt(), u = J({
5796
+ ), i = rt(), d = Ie(r.path), c = new vt(), u = J({
5797
5797
  get: () => Array.isArray(n.value) ? n.value : [],
5798
5798
  set: (S) => n.value = S
5799
5799
  }), h = J(() => Array.isArray(r.schema.items) ? r.schema.items[0] : r.schema.items), w = () => {
@@ -5815,62 +5815,62 @@ const qu = /* @__PURE__ */ _e(wu, [["render", Mu], ["__scopeId", "data-v-8012fc1
5815
5815
  if (typeof E == "string" && E.includes("{{")) {
5816
5816
  const K = u.value[S];
5817
5817
  if (typeof K == "object" && K !== null) {
5818
- let M = E, q = !1;
5819
- if (M = M.replace(/\{\{([^}]+)\}\}/g, (D, x) => {
5820
- const z = K[x.trim()];
5821
- return z != null && z !== "" ? (q = !0, String(z)) : "";
5822
- }), M = M.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), q && M.trim())
5823
- return M.trim();
5818
+ let q = E, T = !1;
5819
+ if (q = q.replace(/\{\{([^}]+)\}\}/g, (D, W) => {
5820
+ const z = K[W.trim()];
5821
+ return z != null && z !== "" ? (T = !0, String(z)) : "";
5822
+ }), q = q.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), T && q.trim())
5823
+ return q.trim();
5824
5824
  }
5825
5825
  }
5826
5826
  return `${((C = h.value) == null ? void 0 : C.title) || "Item"} #${S + 1}`;
5827
5827
  }, FieldRenderer: _t };
5828
5828
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
5829
5829
  }
5830
- }), Ru = { class: "quickform-field quickform-array-field" }, Au = ["id", "aria-describedby"], Cu = {
5830
+ }), Au = { class: "quickform-field quickform-array-field" }, Cu = ["id", "aria-describedby"], Vu = {
5831
5831
  key: 0,
5832
5832
  class: "quickform-legend"
5833
- }, Vu = {
5833
+ }, Du = {
5834
5834
  key: 0,
5835
5835
  class: "quickform-required"
5836
- }, Du = ["id"], Fu = ["innerHTML"], zu = { class: "quickform-array-items" }, Uu = { class: "quickform-array-item-content" }, Lu = { class: "quickform-array-item-actions" }, Hu = ["disabled", "onClick"], Ku = ["disabled", "onClick"], Gu = ["disabled", "onClick", "title"], Bu = {
5836
+ }, Fu = ["id"], zu = ["innerHTML"], Uu = { class: "quickform-array-items" }, Lu = { class: "quickform-array-item-content" }, Hu = { class: "quickform-array-item-actions" }, Ku = ["disabled", "onClick"], Bu = ["disabled", "onClick"], Gu = ["disabled", "onClick", "title"], Ju = {
5837
5837
  key: 0,
5838
5838
  class: "quickform-array-empty"
5839
- }, Ju = { class: "quickform-array-footer" }, Wu = ["disabled"], xu = {
5839
+ }, xu = { class: "quickform-array-footer" }, Wu = ["disabled"], Zu = {
5840
5840
  key: 2,
5841
5841
  class: "quickform-error"
5842
5842
  };
5843
- function Zu(e, t, r, n, s, a) {
5844
- return I(), R("div", Ru, [
5843
+ function Yu(e, t, r, n, s, a) {
5844
+ return I(), M("div", Au, [
5845
5845
  U("fieldset", {
5846
5846
  id: n.fieldId,
5847
5847
  class: "quickform-fieldset",
5848
5848
  "aria-describedby": n.hint ? `${n.fieldId}-hint` : void 0
5849
5849
  }, [
5850
- n.label ? (I(), R("legend", Cu, [
5850
+ n.label ? (I(), M("legend", Vu, [
5851
5851
  Ae(
5852
5852
  X(n.label) + " ",
5853
5853
  1
5854
5854
  /* TEXT */
5855
5855
  ),
5856
- n.props.schema.required ? (I(), R("span", Vu, "*")) : B("v-if", !0)
5857
- ])) : B("v-if", !0),
5858
- n.hint ? (I(), R("div", {
5856
+ n.props.schema.required ? (I(), M("span", Du, "*")) : G("v-if", !0)
5857
+ ])) : G("v-if", !0),
5858
+ n.hint ? (I(), M("div", {
5859
5859
  key: 1,
5860
5860
  id: `${n.fieldId}-hint`,
5861
5861
  class: "quickform-hint quickform-array-hint"
5862
5862
  }, [
5863
- U("span", { innerHTML: n.hint }, null, 8, Fu)
5864
- ], 8, Du)) : B("v-if", !0),
5865
- U("div", zu, [
5866
- (I(!0), R(
5867
- Re,
5863
+ U("span", { innerHTML: n.hint }, null, 8, zu)
5864
+ ], 8, Fu)) : G("v-if", !0),
5865
+ U("div", Uu, [
5866
+ (I(!0), M(
5867
+ je,
5868
5868
  null,
5869
- xe(n.arrayValue, (o, i) => (I(), R("div", {
5869
+ We(n.arrayValue, (o, i) => (I(), M("div", {
5870
5870
  key: i,
5871
5871
  class: "quickform-array-item"
5872
5872
  }, [
5873
- U("div", Uu, [
5873
+ U("div", Lu, [
5874
5874
  Hn(n.FieldRenderer, {
5875
5875
  schema: n.itemsSchema,
5876
5876
  path: `${r.path}[${i}]`,
@@ -5879,21 +5879,21 @@ function Zu(e, t, r, n, s, a) {
5879
5879
  readonly: r.readonly
5880
5880
  }, null, 8, ["schema", "path", "label", "disabled", "readonly"])
5881
5881
  ]),
5882
- U("div", Lu, [
5882
+ U("div", Hu, [
5883
5883
  U("button", {
5884
5884
  type: "button",
5885
5885
  class: "quickform-btn-icon",
5886
5886
  disabled: i === 0 || r.disabled || r.readonly,
5887
5887
  onClick: (d) => n.moveItem(i, "up"),
5888
5888
  title: "Move Up"
5889
- }, " ↑ ", 8, Hu),
5889
+ }, " ↑ ", 8, Ku),
5890
5890
  U("button", {
5891
5891
  type: "button",
5892
5892
  class: "quickform-btn-icon",
5893
5893
  disabled: i === n.arrayValue.length - 1 || r.disabled || r.readonly,
5894
5894
  onClick: (d) => n.moveItem(i, "down"),
5895
5895
  title: "Move Down"
5896
- }, " ↓ ", 8, Ku),
5896
+ }, " ↓ ", 8, Bu),
5897
5897
  U("button", {
5898
5898
  type: "button",
5899
5899
  class: "quickform-btn-icon quickform-btn-danger",
@@ -5906,9 +5906,9 @@ function Zu(e, t, r, n, s, a) {
5906
5906
  128
5907
5907
  /* KEYED_FRAGMENT */
5908
5908
  )),
5909
- n.arrayValue.length === 0 ? (I(), R("div", Bu, " No items ")) : B("v-if", !0)
5909
+ n.arrayValue.length === 0 ? (I(), M("div", Ju, " No items ")) : G("v-if", !0)
5910
5910
  ]),
5911
- U("div", Ju, [
5911
+ U("div", xu, [
5912
5912
  U("button", {
5913
5913
  type: "button",
5914
5914
  class: "quickform-btn quickform-btn-secondary",
@@ -5916,17 +5916,17 @@ function Zu(e, t, r, n, s, a) {
5916
5916
  onClick: n.addItem
5917
5917
  }, " + " + X(n.formContext.labels.addItem), 9, Wu)
5918
5918
  ]),
5919
- n.errorMessage ? (I(), R(
5919
+ n.errorMessage ? (I(), M(
5920
5920
  "div",
5921
- xu,
5921
+ Zu,
5922
5922
  X(n.errorMessage),
5923
5923
  1
5924
5924
  /* TEXT */
5925
- )) : B("v-if", !0)
5926
- ], 8, Au)
5925
+ )) : G("v-if", !0)
5926
+ ], 8, Cu)
5927
5927
  ]);
5928
5928
  }
5929
- const Yu = /* @__PURE__ */ _e(Tu, [["render", Zu], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/ArrayField.vue"]]), Qu = /* @__PURE__ */ ve({
5929
+ const Qu = /* @__PURE__ */ he(Ru, [["render", Yu], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/ArrayField.vue"]]), Xu = /* @__PURE__ */ me({
5930
5930
  __name: "OneOfField",
5931
5931
  props: {
5932
5932
  schema: { type: Object, required: !0 },
@@ -5939,8 +5939,8 @@ const Yu = /* @__PURE__ */ _e(Tu, [["render", Zu], ["__scopeId", "data-v-a078389
5939
5939
  },
5940
5940
  setup(e, { expose: t }) {
5941
5941
  t();
5942
- const r = e, { value: n, label: s, hint: a, errorMessage: o } = Ne(r.path, r.schema, { label: r.label }), i = je(r.path), d = new vt(), c = J(() => r.schema.oneOf || r.schema.anyOf || []), u = fe(0);
5943
- ta(() => {
5942
+ const r = e, { value: n, label: s, hint: a, errorMessage: o } = Ee(r.path, r.schema, { label: r.label }), i = Ie(r.path), d = new vt(), c = J(() => r.schema.oneOf || r.schema.anyOf || []), u = fe(0);
5943
+ Kn(() => {
5944
5944
  if (n.value) {
5945
5945
  const g = c.value.findIndex((p) => d.validate(p, n.value).valid);
5946
5946
  g !== -1 && (u.value = g);
@@ -5952,77 +5952,77 @@ const Yu = /* @__PURE__ */ _e(Tu, [["render", Zu], ["__scopeId", "data-v-a078389
5952
5952
  }, FieldRenderer: _t };
5953
5953
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
5954
5954
  }
5955
- }), Xu = { class: "quickform-field quickform-oneof-field" }, ef = ["id", "aria-describedby"], tf = {
5955
+ }), ef = { class: "quickform-field quickform-oneof-field" }, tf = ["id", "aria-describedby"], rf = {
5956
5956
  key: 0,
5957
5957
  class: "quickform-legend"
5958
- }, rf = {
5958
+ }, nf = {
5959
5959
  key: 0,
5960
5960
  class: "quickform-required"
5961
- }, nf = ["id"], sf = ["innerHTML"], af = { class: "quickform-oneof-selector" }, of = ["value", "disabled"], lf = ["value"], df = { class: "quickform-oneof-content" }, cf = {
5961
+ }, sf = ["id"], af = ["innerHTML"], of = { class: "quickform-oneof-selector" }, lf = ["value", "disabled"], df = ["value"], cf = { class: "quickform-oneof-content" }, uf = {
5962
5962
  key: 2,
5963
5963
  class: "quickform-error"
5964
5964
  };
5965
- function uf(e, t, r, n, s, a) {
5966
- return I(), R("div", Xu, [
5965
+ function ff(e, t, r, n, s, a) {
5966
+ return I(), M("div", ef, [
5967
5967
  U("fieldset", {
5968
5968
  id: n.fieldId,
5969
5969
  class: "quickform-fieldset",
5970
5970
  "aria-describedby": n.hint ? `${n.fieldId}-hint` : void 0
5971
5971
  }, [
5972
- n.label ? (I(), R("legend", tf, [
5972
+ n.label ? (I(), M("legend", rf, [
5973
5973
  Ae(
5974
5974
  X(n.label) + " ",
5975
5975
  1
5976
5976
  /* TEXT */
5977
5977
  ),
5978
- n.props.schema.required ? (I(), R("span", rf, "*")) : B("v-if", !0)
5979
- ])) : B("v-if", !0),
5980
- n.hint ? (I(), R("div", {
5978
+ n.props.schema.required ? (I(), M("span", nf, "*")) : G("v-if", !0)
5979
+ ])) : G("v-if", !0),
5980
+ n.hint ? (I(), M("div", {
5981
5981
  key: 1,
5982
5982
  id: `${n.fieldId}-hint`,
5983
5983
  class: "quickform-hint quickform-oneof-hint"
5984
5984
  }, [
5985
- U("span", { innerHTML: n.hint }, null, 8, sf)
5986
- ], 8, nf)) : B("v-if", !0),
5987
- U("div", af, [
5985
+ U("span", { innerHTML: n.hint }, null, 8, af)
5986
+ ], 8, sf)) : G("v-if", !0),
5987
+ U("div", of, [
5988
5988
  U("select", {
5989
5989
  value: n.selectedIndex,
5990
5990
  onChange: n.handleOptionChange,
5991
5991
  class: "quickform-select",
5992
5992
  disabled: r.disabled || r.readonly
5993
5993
  }, [
5994
- (I(!0), R(
5995
- Re,
5994
+ (I(!0), M(
5995
+ je,
5996
5996
  null,
5997
- xe(n.optionLabels, (o, i) => (I(), R("option", {
5997
+ We(n.optionLabels, (o, i) => (I(), M("option", {
5998
5998
  key: i,
5999
5999
  value: i
6000
- }, X(o), 9, lf))),
6000
+ }, X(o), 9, df))),
6001
6001
  128
6002
6002
  /* KEYED_FRAGMENT */
6003
6003
  ))
6004
- ], 40, of)
6004
+ ], 40, lf)
6005
6005
  ]),
6006
- U("div", df, [
6006
+ U("div", cf, [
6007
6007
  n.activeSchema ? (I(), Dt(n.FieldRenderer, {
6008
6008
  key: 0,
6009
6009
  schema: n.activeSchema,
6010
6010
  path: r.path,
6011
6011
  disabled: r.disabled,
6012
6012
  readonly: r.readonly
6013
- }, null, 8, ["schema", "path", "disabled", "readonly"])) : B("v-if", !0)
6013
+ }, null, 8, ["schema", "path", "disabled", "readonly"])) : G("v-if", !0)
6014
6014
  ]),
6015
- n.errorMessage ? (I(), R(
6015
+ n.errorMessage ? (I(), M(
6016
6016
  "div",
6017
- cf,
6017
+ uf,
6018
6018
  X(n.errorMessage),
6019
6019
  1
6020
6020
  /* TEXT */
6021
- )) : B("v-if", !0)
6022
- ], 8, ef)
6021
+ )) : G("v-if", !0)
6022
+ ], 8, tf)
6023
6023
  ]);
6024
6024
  }
6025
- const Un = /* @__PURE__ */ _e(Qu, [["render", uf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/OneOfField.vue"]]), ff = /* @__PURE__ */ ve({
6025
+ const Un = /* @__PURE__ */ he(Xu, [["render", ff], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/OneOfField.vue"]]), mf = /* @__PURE__ */ me({
6026
6026
  __name: "AllOfField",
6027
6027
  props: {
6028
6028
  schema: { type: Object, required: !0 },
@@ -6035,17 +6035,17 @@ const Un = /* @__PURE__ */ _e(Qu, [["render", uf], ["__scopeId", "data-v-dab625e
6035
6035
  },
6036
6036
  setup(e, { expose: t }) {
6037
6037
  t();
6038
- const r = e, { label: n, hint: s, errorMessage: a } = Ne(r.path, r.schema, { label: r.label }), o = je(r.path), i = new vt(), d = J(() => {
6038
+ const r = e, { label: n, hint: s, errorMessage: a } = Ee(r.path, r.schema, { label: r.label }), o = Ie(r.path), i = new vt(), d = J(() => {
6039
6039
  if (!r.schema.allOf) return r.schema;
6040
6040
  const u = { ...r.schema };
6041
6041
  return delete u.allOf, i.mergeSchemas(u, ...r.schema.allOf);
6042
6042
  }), c = { props: r, label: n, hint: s, errorMessage: a, fieldId: o, schemaUtils: i, mergedSchema: d, FieldRenderer: _t };
6043
6043
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
6044
6044
  }
6045
- }), mf = { class: "quickform-field quickform-allof-field" };
6046
- function hf(e, t, r, n, s, a) {
6047
- return I(), R("div", mf, [
6048
- B(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6045
+ }), hf = { class: "quickform-field quickform-allof-field" };
6046
+ function pf(e, t, r, n, s, a) {
6047
+ return I(), M("div", hf, [
6048
+ G(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
6049
6049
  Hn(n.FieldRenderer, {
6050
6050
  schema: n.mergedSchema,
6051
6051
  path: r.path,
@@ -6055,52 +6055,92 @@ function hf(e, t, r, n, s, a) {
6055
6055
  }, null, 8, ["schema", "path", "disabled", "readonly", "label"])
6056
6056
  ]);
6057
6057
  }
6058
- const pf = /* @__PURE__ */ _e(ff, [["render", hf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/AllOfField.vue"]]);
6059
- function yf() {
6058
+ const yf = /* @__PURE__ */ he(mf, [["render", pf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/AllOfField.vue"]]), vf = /* @__PURE__ */ me({
6059
+ __name: "HiddenField",
6060
+ props: {
6061
+ schema: { type: Object, required: !0 },
6062
+ uischema: { type: Object, required: !1 },
6063
+ path: { type: String, required: !0 },
6064
+ modelValue: { type: null, required: !1 },
6065
+ disabled: { type: Boolean, required: !1, default: !1 },
6066
+ readonly: { type: Boolean, required: !1, default: !1 },
6067
+ label: { type: String, required: !1 }
6068
+ },
6069
+ setup(e, { expose: t }) {
6070
+ t();
6071
+ const r = e, { value: n } = Ee(r.path, r.schema, { label: r.label });
6072
+ Kn(() => {
6073
+ r.schema.const !== void 0 && n.value === void 0 && (n.value = r.schema.const);
6074
+ });
6075
+ const s = { props: r, value: n };
6076
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
6077
+ }
6078
+ }), _f = ["value"];
6079
+ function gf(e, t, r, n, s, a) {
6080
+ return I(), M(
6081
+ je,
6082
+ null,
6083
+ [
6084
+ G(" Hidden field - renders nothing visible to the user "),
6085
+ U("input", {
6086
+ type: "hidden",
6087
+ value: n.value
6088
+ }, null, 8, _f)
6089
+ ],
6090
+ 2112
6091
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
6092
+ );
6093
+ }
6094
+ const bf = /* @__PURE__ */ he(vf, [["render", gf], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/HiddenField.vue"]]);
6095
+ function $f() {
6060
6096
  const e = new la();
6061
6097
  return e.register(
6098
+ "hidden",
6099
+ bf,
6100
+ (t) => pe(100, ma(t))
6101
+ ), e.register(
6062
6102
  "string",
6063
- Oc,
6064
- (t) => be(1, Qe(t))
6103
+ jc,
6104
+ (t) => pe(1, Qe(t))
6065
6105
  ), e.register(
6066
6106
  "number",
6067
- Vc,
6068
- (t) => be(1, da(t))
6107
+ Dc,
6108
+ (t) => pe(1, da(t))
6069
6109
  ), e.register(
6070
6110
  "boolean",
6071
6111
  Wc,
6072
- (t) => be(1, ca(t))
6112
+ (t) => pe(1, ca(t))
6073
6113
  ), e.register(
6074
6114
  "enum",
6075
- lu,
6076
- (t) => be(2, ma(t))
6115
+ du,
6116
+ (t) => pe(2, ha(t))
6077
6117
  ), e.register(
6078
6118
  "date",
6079
- _u,
6080
- (t) => be(2, ha(t))
6119
+ gu,
6120
+ (t) => pe(2, pa(t))
6081
6121
  ), e.register(
6082
6122
  "object",
6083
- qu,
6084
- (t) => be(1, ua(t))
6123
+ Tu,
6124
+ (t) => pe(1, ua(t))
6085
6125
  ), e.register(
6086
6126
  "array",
6087
- Yu,
6088
- (t) => be(1, fa(t))
6127
+ Qu,
6128
+ (t) => pe(1, fa(t))
6089
6129
  ), e.register(
6090
6130
  "oneOf",
6091
6131
  Un,
6092
- (t) => be(10, Kn(t))
6132
+ (t) => pe(10, Bn(t))
6093
6133
  ), e.register(
6094
6134
  "anyOf",
6095
6135
  Un,
6096
- (t) => be(10, pa(t))
6136
+ (t) => pe(10, ya(t))
6097
6137
  ), e.register(
6098
6138
  "allOf",
6099
- pf,
6100
- (t) => be(10, ya(t))
6139
+ yf,
6140
+ (t) => pe(10, va(t))
6101
6141
  ), e;
6102
6142
  }
6103
- const vf = /* @__PURE__ */ ve({
6143
+ const wf = /* @__PURE__ */ me({
6104
6144
  __name: "DynamicForm",
6105
6145
  props: {
6106
6146
  schema: { type: Object, required: !0 },
@@ -6111,7 +6151,7 @@ const vf = /* @__PURE__ */ ve({
6111
6151
  setup(e, { expose: t, emit: r }) {
6112
6152
  var y, S, E, O;
6113
6153
  t();
6114
- const n = e, s = r, a = new vt(), o = n.options.registry || yf(), { handleSubmit: i, values: d, setValues: c, errors: u, meta: h } = ia({
6154
+ const n = e, s = r, a = new vt(), o = n.options.registry || $f(), { handleSubmit: i, values: d, setValues: c, errors: u, meta: h } = ia({
6115
6155
  initialValues: n.options.useDefaults !== !1 ? { ...a.getDefaultValue(n.schema), ...n.modelValue } : n.modelValue
6116
6156
  }), w = {
6117
6157
  selectPlaceholder: "Select an option...",
@@ -6122,7 +6162,8 @@ const vf = /* @__PURE__ */ ve({
6122
6162
  hidePassword: "Hide password"
6123
6163
  }, b = {
6124
6164
  select: {
6125
- autocomplete: !1,
6165
+ autocomplete: !0,
6166
+ // Enable autocomplete by default (Quasar uses this)
6126
6167
  autocompleteThreshold: 5
6127
6168
  },
6128
6169
  array: {
@@ -6149,6 +6190,9 @@ const vf = /* @__PURE__ */ ve({
6149
6190
  formValues: () => na(d),
6150
6191
  labels: { ...w, ...n.options.labels },
6151
6192
  componentDefaults: {
6193
+ // Start with all custom component defaults from options
6194
+ ...n.options.componentDefaults,
6195
+ // Then merge in the built-in defaults
6152
6196
  select: { ...b.select, ...(y = n.options.componentDefaults) == null ? void 0 : y.select },
6153
6197
  array: { ...b.array, ...(S = n.options.componentDefaults) == null ? void 0 : S.array },
6154
6198
  number: { ...b.number, ...(E = n.options.componentDefaults) == null ? void 0 : E.number },
@@ -6156,7 +6200,7 @@ const vf = /* @__PURE__ */ ve({
6156
6200
  },
6157
6201
  hintRenderer: n.options.hintRenderer
6158
6202
  });
6159
- lc(_), ir(
6203
+ dc(_), ir(
6160
6204
  () => n.modelValue,
6161
6205
  (C) => {
6162
6206
  C && JSON.stringify(C) !== JSON.stringify(d) && c(C);
@@ -6188,19 +6232,19 @@ const vf = /* @__PURE__ */ ve({
6188
6232
  }))), m = { props: n, emit: s, schemaUtils: a, registry: o, handleSubmit: i, values: d, setValues: c, errors: u, meta: h, defaultLabels: w, defaultComponentDefaults: b, formContext: _, onSubmit: g, properties: p, FieldRenderer: _t };
6189
6233
  return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
6190
6234
  }
6191
- }), _f = { class: "quickform-actions" }, gf = ["disabled"];
6192
- function bf(e, t, r, n, s, a) {
6193
- return I(), R(
6235
+ }), Sf = { class: "quickform-actions" }, kf = ["disabled"];
6236
+ function Ef(e, t, r, n, s, a) {
6237
+ return I(), M(
6194
6238
  "form",
6195
6239
  {
6196
6240
  class: "quickform",
6197
6241
  onSubmit: t[0] || (t[0] = (...o) => n.onSubmit && n.onSubmit(...o))
6198
6242
  },
6199
6243
  [
6200
- (I(!0), R(
6201
- Re,
6244
+ (I(!0), M(
6245
+ je,
6202
6246
  null,
6203
- xe(n.properties, (o) => (I(), Dt(n.FieldRenderer, {
6247
+ We(n.properties, (o) => (I(), Dt(n.FieldRenderer, {
6204
6248
  key: o.key,
6205
6249
  schema: o.schema,
6206
6250
  path: o.path,
@@ -6210,7 +6254,7 @@ function bf(e, t, r, n, s, a) {
6210
6254
  128
6211
6255
  /* KEYED_FRAGMENT */
6212
6256
  )),
6213
- U("div", _f, [
6257
+ U("div", Sf, [
6214
6258
  aa(e.$slots, "actions", {
6215
6259
  isValid: n.meta.valid,
6216
6260
  errors: n.errors
@@ -6219,7 +6263,7 @@ function bf(e, t, r, n, s, a) {
6219
6263
  type: "submit",
6220
6264
  class: "quickform-submit",
6221
6265
  disabled: r.options.disabled || !n.meta.valid
6222
- }, " Submit ", 8, gf)
6266
+ }, " Submit ", 8, kf)
6223
6267
  ], !0)
6224
6268
  ])
6225
6269
  ],
@@ -6227,52 +6271,54 @@ function bf(e, t, r, n, s, a) {
6227
6271
  /* NEED_HYDRATION */
6228
6272
  );
6229
6273
  }
6230
- const Ff = /* @__PURE__ */ _e(vf, [["render", bf], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/DynamicForm.vue"]]);
6274
+ const Kf = /* @__PURE__ */ he(wf, [["render", Ef], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickflo-forms/packages/vue/src/components/DynamicForm.vue"]]);
6231
6275
  export {
6232
- pf as AllOfField,
6233
- Yu as ArrayField,
6276
+ yf as AllOfField,
6277
+ Qu as ArrayField,
6234
6278
  Wc as BooleanField,
6235
6279
  la as ComponentRegistry,
6236
- _u as DateField,
6237
- Ff as DynamicForm,
6238
- lu as EnumField,
6280
+ gu as DateField,
6281
+ Kf as DynamicForm,
6282
+ du as EnumField,
6239
6283
  _t as FieldRenderer,
6240
- Vc as NumberField,
6241
- qu as ObjectField,
6284
+ bf as HiddenField,
6285
+ Dc as NumberField,
6286
+ Tu as ObjectField,
6242
6287
  Un as OneOfField,
6243
6288
  vt as SchemaUtils,
6244
- Oc as StringField,
6245
- Tf as and,
6246
- yf as createDefaultRegistry,
6247
- je as generateFieldId,
6248
- dc as getHint,
6249
- Cf as getLabel,
6250
- ya as hasAllOf,
6251
- pa as hasAnyOf,
6252
- Mf as hasConditional,
6253
- qf as hasExtension,
6254
- Ef as hasFormat,
6255
- Kn as hasOneOf,
6289
+ jc as StringField,
6290
+ Df as and,
6291
+ $f as createDefaultRegistry,
6292
+ Ie as generateFieldId,
6293
+ cc as getHint,
6294
+ Uf as getLabel,
6295
+ va as hasAllOf,
6296
+ ya as hasAnyOf,
6297
+ Cf as hasConditional,
6298
+ ma as hasConst,
6299
+ Vf as hasExtension,
6300
+ If as hasFormat,
6301
+ Bn as hasOneOf,
6256
6302
  fa as isArrayType,
6257
6303
  ca as isBooleanType,
6258
- ha as isDateFormat,
6259
- jf as isDateTimeFormat,
6260
- If as isDiscriminatedUnion,
6261
- Pf as isEmailFormat,
6262
- Vf as isEmpty,
6263
- ma as isEnumType,
6264
- Sf as isIntegerType,
6265
- kf as isNullType,
6304
+ pa as isDateFormat,
6305
+ Tf as isDateTimeFormat,
6306
+ Af as isDiscriminatedUnion,
6307
+ qf as isEmailFormat,
6308
+ Lf as isEmpty,
6309
+ ha as isEnumType,
6310
+ jf as isIntegerType,
6311
+ Nf as isNullType,
6266
6312
  da as isNumberType,
6267
6313
  ua as isObjectType,
6268
6314
  Qe as isStringType,
6269
- Of as isTimeFormat,
6270
- Nf as isUrlFormat,
6271
- Df as joinPath,
6272
- Af as not,
6273
- Rf as or,
6274
- lc as provideFormContext,
6275
- be as rankWith,
6315
+ Mf as isTimeFormat,
6316
+ Rf as isUrlFormat,
6317
+ Hf as joinPath,
6318
+ zf as not,
6319
+ Ff as or,
6320
+ dc as provideFormContext,
6321
+ pe as rankWith,
6276
6322
  rt as useFormContext,
6277
- Ne as useFormField
6323
+ Ee as useFormField
6278
6324
  };