@bonsae/nrg 0.21.1 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ function Ds() {
23
23
  function n(m) {
24
24
  return e.test(m) ? m.replace(t, r) : m;
25
25
  }
26
- function u(m, v, N) {
26
+ function i(m, v, N) {
27
27
  for (var b, c, g = 1, E = v.length; g < E; ) {
28
28
  if (v[g] === "constructor" || v[g] === "prototype" || v[g] === "__proto__") return m;
29
29
  if (b = n(v[g++]), c = E > g, typeof m[b] > "u" && (Array.isArray(m) && b === "-" && (b = m.length), c && (v[g] !== "" && v[g] < 1 / 0 || v[g] === "-" ? m[b] = [] : m[b] = {})), !c) break;
@@ -54,10 +54,10 @@ function Ds() {
54
54
  if (typeof m != "object" || m === null) return;
55
55
  }
56
56
  }
57
- function i(m, v, N) {
57
+ function u(m, v, N) {
58
58
  if (typeof m != "object") throw new Error("Invalid input object.");
59
59
  if (v = a(v), v.length === 0) throw new Error("Invalid JSON pointer for set.");
60
- return u(m, v, N);
60
+ return i(m, v, N);
61
61
  }
62
62
  function h(m) {
63
63
  var v = a(m);
@@ -66,11 +66,11 @@ function Ds() {
66
66
  return o(N, v);
67
67
  },
68
68
  set: function(N, b) {
69
- return i(N, v, b);
69
+ return u(N, v, b);
70
70
  }
71
71
  };
72
72
  }
73
- return Ue.get = o, Ue.set = i, Ue.compile = h, Ue;
73
+ return Ue.get = o, Ue.set = u, Ue.compile = h, Ue;
74
74
  }
75
75
  var Cs = Ds();
76
76
  const Wn = /* @__PURE__ */ Ut(Cs);
@@ -121,27 +121,27 @@ function Ze() {
121
121
  }
122
122
  }
123
123
  e._Code = n, e.nil = new n("");
124
- function u(y, ...s) {
124
+ function i(y, ...s) {
125
125
  const p = [y[0]];
126
126
  let w = 0;
127
127
  for (; w < s.length; )
128
- i(p, s[w]), p.push(y[++w]);
128
+ u(p, s[w]), p.push(y[++w]);
129
129
  return new n(p);
130
130
  }
131
- e._ = u;
131
+ e._ = i;
132
132
  const a = new n("+");
133
133
  function o(y, ...s) {
134
134
  const p = [c(y[0])];
135
135
  let w = 0;
136
136
  for (; w < s.length; )
137
- p.push(a), i(p, s[w]), p.push(a, c(y[++w]));
137
+ p.push(a), u(p, s[w]), p.push(a, c(y[++w]));
138
138
  return h(p), new n(p);
139
139
  }
140
140
  e.str = o;
141
- function i(y, s) {
141
+ function u(y, s) {
142
142
  s instanceof n ? y.push(...s._items) : s instanceof r ? y.push(s) : y.push(N(s));
143
143
  }
144
- e.addCodeArg = i;
144
+ e.addCodeArg = u;
145
145
  function h(y) {
146
146
  let s = 1;
147
147
  for (; s < y.length - 1; ) {
@@ -182,7 +182,7 @@ function Ze() {
182
182
  }
183
183
  e.safeStringify = c;
184
184
  function g(y) {
185
- return typeof y == "string" && e.IDENTIFIER.test(y) ? new n(`.${y}`) : u`[${y}]`;
185
+ return typeof y == "string" && e.IDENTIFIER.test(y) ? new n(`.${y}`) : i`[${y}]`;
186
186
  }
187
187
  e.getProperty = g;
188
188
  function E(y) {
@@ -215,7 +215,7 @@ function Sr() {
215
215
  let: new t.Name("let"),
216
216
  var: new t.Name("var")
217
217
  };
218
- class u {
218
+ class i {
219
219
  constructor({ prefixes: m, parent: v } = {}) {
220
220
  this._names = {}, this._prefixes = m, this._parent = v;
221
221
  }
@@ -236,7 +236,7 @@ function Sr() {
236
236
  return this._names[m] = { prefix: m, index: 0 };
237
237
  }
238
238
  }
239
- e.Scope = u;
239
+ e.Scope = i;
240
240
  class a extends t.Name {
241
241
  constructor(m, v) {
242
242
  super(v), this.prefix = m;
@@ -247,7 +247,7 @@ function Sr() {
247
247
  }
248
248
  e.ValueScopeName = a;
249
249
  const o = (0, t._)`\n`;
250
- class i extends u {
250
+ class u extends i {
251
251
  constructor(m) {
252
252
  super(m), this._values = {}, this._scope = m.scope, this.opts = { ...m, _n: m.lines ? o : t.nil };
253
253
  }
@@ -317,7 +317,7 @@ function Sr() {
317
317
  return c;
318
318
  }
319
319
  }
320
- e.ValueScope = i;
320
+ e.ValueScope = u;
321
321
  })(er)), er;
322
322
  }
323
323
  var Nr;
@@ -343,15 +343,15 @@ function Q() {
343
343
  } }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
344
344
  return n.Name;
345
345
  } });
346
- var u = /* @__PURE__ */ Sr();
346
+ var i = /* @__PURE__ */ Sr();
347
347
  Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
348
- return u.Scope;
348
+ return i.Scope;
349
349
  } }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
350
- return u.ValueScope;
350
+ return i.ValueScope;
351
351
  } }), Object.defineProperty(e, "ValueScopeName", { enumerable: !0, get: function() {
352
- return u.ValueScopeName;
352
+ return i.ValueScopeName;
353
353
  } }), Object.defineProperty(e, "varKinds", { enumerable: !0, get: function() {
354
- return u.varKinds;
354
+ return i.varKinds;
355
355
  } }), e.operators = {
356
356
  GT: new t._Code(">"),
357
357
  GTE: new t._Code(">="),
@@ -388,7 +388,7 @@ function Q() {
388
388
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
389
389
  }
390
390
  }
391
- class i extends a {
391
+ class u extends a {
392
392
  constructor(f, P, q) {
393
393
  super(), this.lhs = f, this.rhs = P, this.sideEffects = q;
394
394
  }
@@ -404,7 +404,7 @@ function Q() {
404
404
  return K(f, this.rhs);
405
405
  }
406
406
  }
407
- class h extends i {
407
+ class h extends u {
408
408
  constructor(f, P, q, L) {
409
409
  super(f, q, L), this.op = P;
410
410
  }
@@ -673,7 +673,7 @@ function Q() {
673
673
  }
674
674
  // assignment code
675
675
  assign(f, P, q) {
676
- return this._leafNode(new i(f, P, q));
676
+ return this._leafNode(new u(f, P, q));
677
677
  }
678
678
  // `+=` code
679
679
  add(f, P) {
@@ -895,10 +895,10 @@ function ee() {
895
895
  }
896
896
  X.toHash = r;
897
897
  function n(l, _) {
898
- return typeof _ == "boolean" ? _ : Object.keys(_).length === 0 ? !0 : (u(l, _), !a(_, l.self.RULES.all));
898
+ return typeof _ == "boolean" ? _ : Object.keys(_).length === 0 ? !0 : (i(l, _), !a(_, l.self.RULES.all));
899
899
  }
900
900
  X.alwaysValidSchema = n;
901
- function u(l, _ = l.schema) {
901
+ function i(l, _ = l.schema) {
902
902
  const { opts: S, self: T } = l;
903
903
  if (!S.strictSchema || typeof _ == "boolean")
904
904
  return;
@@ -906,7 +906,7 @@ function ee() {
906
906
  for (const U in _)
907
907
  V[U] || w(l, `unknown keyword: "${U}"`);
908
908
  }
909
- X.checkUnknownRules = u;
909
+ X.checkUnknownRules = i;
910
910
  function a(l, _) {
911
911
  if (typeof l == "boolean")
912
912
  return !l;
@@ -925,7 +925,7 @@ function ee() {
925
925
  return !1;
926
926
  }
927
927
  X.schemaHasRulesButRef = o;
928
- function i({ topSchemaRef: l, schemaPath: _ }, S, T, V) {
928
+ function u({ topSchemaRef: l, schemaPath: _ }, S, T, V) {
929
929
  if (!V) {
930
930
  if (typeof S == "number" || typeof S == "boolean")
931
931
  return S;
@@ -934,7 +934,7 @@ function ee() {
934
934
  }
935
935
  return (0, e._)`${l}${_}${(0, e.getProperty)(T)}`;
936
936
  }
937
- X.schemaRefOrVal = i;
937
+ X.schemaRefOrVal = u;
938
938
  function h(l) {
939
939
  return N(decodeURIComponent(l));
940
940
  }
@@ -1068,11 +1068,11 @@ function Qe() {
1068
1068
  }, e.keyword$DataError = {
1069
1069
  message: ({ keyword: d, schemaType: y }) => y ? (0, t.str)`"${d}" keyword must be ${y} ($data)` : (0, t.str)`"${d}" keyword is invalid ($data)`
1070
1070
  };
1071
- function u(d, y = e.keywordError, s, p) {
1071
+ function i(d, y = e.keywordError, s, p) {
1072
1072
  const { it: w } = d, { gen: l, compositeRule: _, allErrors: S } = w, T = N(d, y, s);
1073
1073
  p ?? (_ || S) ? h(l, T) : m(w, (0, t._)`[${T}]`);
1074
1074
  }
1075
- e.reportError = u;
1075
+ e.reportError = i;
1076
1076
  function a(d, y = e.keywordError, s) {
1077
1077
  const { it: p } = d, { gen: w, compositeRule: l, allErrors: _ } = p, S = N(d, y, s);
1078
1078
  h(w, S), l || _ || m(p, n.default.vErrors);
@@ -1082,7 +1082,7 @@ function Qe() {
1082
1082
  d.assign(n.default.errors, y), d.if((0, t._)`${n.default.vErrors} !== null`, () => d.if(y, () => d.assign((0, t._)`${n.default.vErrors}.length`, y), () => d.assign(n.default.vErrors, null)));
1083
1083
  }
1084
1084
  e.resetErrorsCount = o;
1085
- function i({ gen: d, keyword: y, schemaValue: s, data: p, errsCount: w, it: l }) {
1085
+ function u({ gen: d, keyword: y, schemaValue: s, data: p, errsCount: w, it: l }) {
1086
1086
  if (w === void 0)
1087
1087
  throw new Error("ajv implementation error");
1088
1088
  const _ = d.name("err");
@@ -1090,7 +1090,7 @@ function Qe() {
1090
1090
  d.const(_, (0, t._)`${n.default.vErrors}[${S}]`), d.if((0, t._)`${_}.instancePath === undefined`, () => d.assign((0, t._)`${_}.instancePath`, (0, t.strConcat)(n.default.instancePath, l.errorPath))), d.assign((0, t._)`${_}.schemaPath`, (0, t.str)`${l.errSchemaPath}/${y}`), l.opts.verbose && (d.assign((0, t._)`${_}.schema`, s), d.assign((0, t._)`${_}.data`, p));
1091
1091
  });
1092
1092
  }
1093
- e.extendErrors = i;
1093
+ e.extendErrors = u;
1094
1094
  function h(d, y) {
1095
1095
  const s = d.const("err", y);
1096
1096
  d.if((0, t._)`${n.default.vErrors} === null`, () => d.assign(n.default.vErrors, (0, t._)`[${s}]`), (0, t._)`${n.default.vErrors}.push(${s})`), d.code((0, t._)`${n.default.errors}++`);
@@ -1141,18 +1141,18 @@ function zs() {
1141
1141
  const e = /* @__PURE__ */ Qe(), t = /* @__PURE__ */ Q(), r = /* @__PURE__ */ Oe(), n = {
1142
1142
  message: "boolean schema is false"
1143
1143
  };
1144
- function u(i) {
1145
- const { gen: h, schema: m, validateName: v } = i;
1146
- m === !1 ? o(i, !1) : typeof m == "object" && m.$async === !0 ? h.return(r.default.data) : (h.assign((0, t._)`${v}.errors`, null), h.return(!0));
1144
+ function i(u) {
1145
+ const { gen: h, schema: m, validateName: v } = u;
1146
+ m === !1 ? o(u, !1) : typeof m == "object" && m.$async === !0 ? h.return(r.default.data) : (h.assign((0, t._)`${v}.errors`, null), h.return(!0));
1147
1147
  }
1148
- ke.topBoolOrEmptySchema = u;
1149
- function a(i, h) {
1150
- const { gen: m, schema: v } = i;
1151
- v === !1 ? (m.var(h, !1), o(i)) : m.var(h, !0);
1148
+ ke.topBoolOrEmptySchema = i;
1149
+ function a(u, h) {
1150
+ const { gen: m, schema: v } = u;
1151
+ v === !1 ? (m.var(h, !1), o(u)) : m.var(h, !0);
1152
1152
  }
1153
1153
  ke.boolOrEmptySchema = a;
1154
- function o(i, h) {
1155
- const { gen: m, data: v } = i, N = {
1154
+ function o(u, h) {
1155
+ const { gen: m, data: v } = u, N = {
1156
1156
  gen: m,
1157
1157
  keyword: "false schema",
1158
1158
  data: v,
@@ -1160,7 +1160,7 @@ function zs() {
1160
1160
  schemaCode: !1,
1161
1161
  schemaValue: !1,
1162
1162
  params: {},
1163
- it: i
1163
+ it: u
1164
1164
  };
1165
1165
  (0, e.reportError)(N, n, void 0, h);
1166
1166
  }
@@ -1171,20 +1171,20 @@ function Gn() {
1171
1171
  if (kr) return qe;
1172
1172
  kr = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.getRules = qe.isJSONType = void 0;
1173
1173
  const e = ["string", "number", "integer", "boolean", "null", "object", "array"], t = new Set(e);
1174
- function r(u) {
1175
- return typeof u == "string" && t.has(u);
1174
+ function r(i) {
1175
+ return typeof i == "string" && t.has(i);
1176
1176
  }
1177
1177
  qe.isJSONType = r;
1178
1178
  function n() {
1179
- const u = {
1179
+ const i = {
1180
1180
  number: { type: "number", rules: [] },
1181
1181
  string: { type: "string", rules: [] },
1182
1182
  array: { type: "array", rules: [] },
1183
1183
  object: { type: "object", rules: [] }
1184
1184
  };
1185
1185
  return {
1186
- types: { ...u, integer: !0, boolean: !0, null: !0 },
1187
- rules: [{ rules: [] }, u.number, u.string, u.array, u.object],
1186
+ types: { ...i, integer: !0, boolean: !0, null: !0 },
1187
+ rules: [{ rules: [] }, i.number, i.string, i.array, i.object],
1188
1188
  post: { rules: [] },
1189
1189
  all: {},
1190
1190
  keywords: {}
@@ -1196,18 +1196,18 @@ var Ee = {}, qr;
1196
1196
  function Jn() {
1197
1197
  if (qr) return Ee;
1198
1198
  qr = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.shouldUseRule = Ee.shouldUseGroup = Ee.schemaHasRulesForType = void 0;
1199
- function e({ schema: n, self: u }, a) {
1200
- const o = u.RULES.types[a];
1199
+ function e({ schema: n, self: i }, a) {
1200
+ const o = i.RULES.types[a];
1201
1201
  return o && o !== !0 && t(n, o);
1202
1202
  }
1203
1203
  Ee.schemaHasRulesForType = e;
1204
- function t(n, u) {
1205
- return u.rules.some((a) => r(n, a));
1204
+ function t(n, i) {
1205
+ return i.rules.some((a) => r(n, a));
1206
1206
  }
1207
1207
  Ee.shouldUseGroup = t;
1208
- function r(n, u) {
1208
+ function r(n, i) {
1209
1209
  var a;
1210
- return n[u.keyword] !== void 0 || ((a = u.definition.implements) === null || a === void 0 ? void 0 : a.some((o) => n[o] !== void 0));
1210
+ return n[i.keyword] !== void 0 || ((a = i.definition.implements) === null || a === void 0 ? void 0 : a.some((o) => n[o] !== void 0));
1211
1211
  }
1212
1212
  return Ee.shouldUseRule = r, Ee;
1213
1213
  }
@@ -1215,13 +1215,13 @@ var Tr;
1215
1215
  function Ft() {
1216
1216
  if (Tr) return le;
1217
1217
  Tr = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.reportTypeError = le.checkDataTypes = le.checkDataType = le.coerceAndCheckDataType = le.getJSONTypes = le.getSchemaTypes = le.DataType = void 0;
1218
- const e = /* @__PURE__ */ Gn(), t = /* @__PURE__ */ Jn(), r = /* @__PURE__ */ Qe(), n = /* @__PURE__ */ Q(), u = /* @__PURE__ */ ee();
1218
+ const e = /* @__PURE__ */ Gn(), t = /* @__PURE__ */ Jn(), r = /* @__PURE__ */ Qe(), n = /* @__PURE__ */ Q(), i = /* @__PURE__ */ ee();
1219
1219
  var a;
1220
1220
  (function(s) {
1221
1221
  s[s.Correct = 0] = "Correct", s[s.Wrong = 1] = "Wrong";
1222
1222
  })(a || (le.DataType = a = {}));
1223
1223
  function o(s) {
1224
- const p = i(s.type);
1224
+ const p = u(s.type);
1225
1225
  if (p.includes("null")) {
1226
1226
  if (s.nullable === !1)
1227
1227
  throw new Error("type: null contradicts nullable: false");
@@ -1233,13 +1233,13 @@ function Ft() {
1233
1233
  return p;
1234
1234
  }
1235
1235
  le.getSchemaTypes = o;
1236
- function i(s) {
1236
+ function u(s) {
1237
1237
  const p = Array.isArray(s) ? s : s ? [s] : [];
1238
1238
  if (p.every(e.isJSONType))
1239
1239
  return p;
1240
1240
  throw new Error("type must be JSONType or JSONType[]: " + p.join(","));
1241
1241
  }
1242
- le.getJSONTypes = i;
1242
+ le.getJSONTypes = u;
1243
1243
  function h(s, p) {
1244
1244
  const { gen: w, data: l, opts: _ } = s, S = v(p, _.coerceTypes), T = p.length > 0 && !(S.length === 0 && p.length === 1 && (0, t.schemaHasRulesForType)(s, p[0]));
1245
1245
  if (T) {
@@ -1322,7 +1322,7 @@ function Ft() {
1322
1322
  if (s.length === 1)
1323
1323
  return c(s[0], p, w, l);
1324
1324
  let _;
1325
- const S = (0, u.toHash)(s);
1325
+ const S = (0, i.toHash)(s);
1326
1326
  if (S.array && S.object) {
1327
1327
  const T = (0, n._)`typeof ${p} != "object"`;
1328
1328
  _ = S.null ? T : (0, n._)`!${p} || ${T}`, delete S.null, delete S.array, delete S.object;
@@ -1344,7 +1344,7 @@ function Ft() {
1344
1344
  }
1345
1345
  le.reportTypeError = d;
1346
1346
  function y(s) {
1347
- const { gen: p, data: w, schema: l } = s, _ = (0, u.schemaRefOrVal)(s, l, "type");
1347
+ const { gen: p, data: w, schema: l } = s, _ = (0, i.schemaRefOrVal)(s, l, "type");
1348
1348
  return {
1349
1349
  gen: p,
1350
1350
  keyword: "type",
@@ -1364,25 +1364,25 @@ function Ls() {
1364
1364
  if (Ar) return Ke;
1365
1365
  Ar = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.assignDefaults = void 0;
1366
1366
  const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee();
1367
- function r(u, a) {
1368
- const { properties: o, items: i } = u.schema;
1367
+ function r(i, a) {
1368
+ const { properties: o, items: u } = i.schema;
1369
1369
  if (a === "object" && o)
1370
1370
  for (const h in o)
1371
- n(u, h, o[h].default);
1372
- else a === "array" && Array.isArray(i) && i.forEach((h, m) => n(u, m, h.default));
1371
+ n(i, h, o[h].default);
1372
+ else a === "array" && Array.isArray(u) && u.forEach((h, m) => n(i, m, h.default));
1373
1373
  }
1374
1374
  Ke.assignDefaults = r;
1375
- function n(u, a, o) {
1376
- const { gen: i, compositeRule: h, data: m, opts: v } = u;
1375
+ function n(i, a, o) {
1376
+ const { gen: u, compositeRule: h, data: m, opts: v } = i;
1377
1377
  if (o === void 0)
1378
1378
  return;
1379
1379
  const N = (0, e._)`${m}${(0, e.getProperty)(a)}`;
1380
1380
  if (h) {
1381
- (0, t.checkStrictMode)(u, `default is ignored for: ${N}`);
1381
+ (0, t.checkStrictMode)(i, `default is ignored for: ${N}`);
1382
1382
  return;
1383
1383
  }
1384
1384
  let b = (0, e._)`${N} === undefined`;
1385
- v.useDefaults === "empty" && (b = (0, e._)`${b} || ${N} === null || ${N} === ""`), i.if(b, (0, e._)`${N} = ${(0, e.stringify)(o)}`);
1385
+ v.useDefaults === "empty" && (b = (0, e._)`${b} || ${N} === null || ${N} === ""`), u.if(b, (0, e._)`${N} = ${(0, e.stringify)(o)}`);
1386
1386
  }
1387
1387
  return Ke;
1388
1388
  }
@@ -1391,13 +1391,13 @@ function be() {
1391
1391
  if (Mr) return se;
1392
1392
  Mr = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.validateUnion = se.validateArray = se.usePattern = se.callValidateCode = se.schemaProperties = se.allSchemaProperties = se.noPropertyInData = se.propertyInData = se.isOwnProperty = se.hasPropFunc = se.reportMissingProp = se.checkMissingProp = se.checkReportMissingProp = void 0;
1393
1393
  const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ Oe(), n = /* @__PURE__ */ ee();
1394
- function u(s, p) {
1394
+ function i(s, p) {
1395
1395
  const { gen: w, data: l, it: _ } = s;
1396
1396
  w.if(v(w, l, p, _.opts.ownProperties), () => {
1397
1397
  s.setParams({ missingProperty: (0, e._)`${p}` }, !0), s.error();
1398
1398
  });
1399
1399
  }
1400
- se.checkReportMissingProp = u;
1400
+ se.checkReportMissingProp = i;
1401
1401
  function a({ gen: s, data: p, it: { opts: w } }, l, _) {
1402
1402
  return (0, e.or)(...l.map((S) => (0, e.and)(v(s, p, S, w.ownProperties), (0, e._)`${_} = ${S}`)));
1403
1403
  }
@@ -1406,16 +1406,16 @@ function be() {
1406
1406
  s.setParams({ missingProperty: p }, !0), s.error();
1407
1407
  }
1408
1408
  se.reportMissingProp = o;
1409
- function i(s) {
1409
+ function u(s) {
1410
1410
  return s.scopeValue("func", {
1411
1411
  // eslint-disable-next-line @typescript-eslint/unbound-method
1412
1412
  ref: Object.prototype.hasOwnProperty,
1413
1413
  code: (0, e._)`Object.prototype.hasOwnProperty`
1414
1414
  });
1415
1415
  }
1416
- se.hasPropFunc = i;
1416
+ se.hasPropFunc = u;
1417
1417
  function h(s, p, w) {
1418
- return (0, e._)`${i(s)}.call(${p}, ${w})`;
1418
+ return (0, e._)`${u(s)}.call(${p}, ${w})`;
1419
1419
  }
1420
1420
  se.isOwnProperty = h;
1421
1421
  function m(s, p, w, l) {
@@ -1500,7 +1500,7 @@ function Fs() {
1500
1500
  if (Vr) return _e;
1501
1501
  Vr = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.validateKeywordUsage = _e.validSchemaType = _e.funcKeywordCode = _e.macroKeywordCode = void 0;
1502
1502
  const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ Oe(), r = /* @__PURE__ */ be(), n = /* @__PURE__ */ Qe();
1503
- function u(b, c) {
1503
+ function i(b, c) {
1504
1504
  const { gen: g, keyword: E, schema: d, parentSchema: y, it: s } = b, p = c.macro.call(s.self, d, y, s), w = m(g, E, p);
1505
1505
  s.opts.validateSchema !== !1 && s.self.validateSchema(p, !0);
1506
1506
  const l = g.name("valid");
@@ -1512,7 +1512,7 @@ function Fs() {
1512
1512
  compositeRule: !0
1513
1513
  }, l), b.pass(l, () => b.error(!0));
1514
1514
  }
1515
- _e.macroKeywordCode = u;
1515
+ _e.macroKeywordCode = i;
1516
1516
  function a(b, c) {
1517
1517
  var g;
1518
1518
  const { gen: E, keyword: d, schema: y, parentSchema: s, $data: p, it: w } = b;
@@ -1524,7 +1524,7 @@ function Fs() {
1524
1524
  A(), c.modifying && o(b), F(() => b.error());
1525
1525
  else {
1526
1526
  const K = c.async ? V() : U();
1527
- c.modifying && o(b), F(() => i(b, K));
1527
+ c.modifying && o(b), F(() => u(b, K));
1528
1528
  }
1529
1529
  }
1530
1530
  function V() {
@@ -1549,7 +1549,7 @@ function Fs() {
1549
1549
  const { gen: c, data: g, it: E } = b;
1550
1550
  c.if(E.parentData, () => c.assign(g, (0, e._)`${E.parentData}[${E.parentDataProperty}]`));
1551
1551
  }
1552
- function i(b, c) {
1552
+ function u(b, c) {
1553
1553
  const { gen: g } = b;
1554
1554
  g.if((0, e._)`Array.isArray(${c})`, () => {
1555
1555
  g.assign(t.default.vErrors, (0, e._)`${t.default.vErrors} === null ? ${c} : ${t.default.vErrors}.concat(${c})`).assign(t.default.errors, (0, e._)`${t.default.vErrors}.length`), (0, n.extendErrors)(b);
@@ -1589,19 +1589,19 @@ function Us() {
1589
1589
  if (Dr) return Pe;
1590
1590
  Dr = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.extendSubschemaMode = Pe.extendSubschemaData = Pe.getSubschema = void 0;
1591
1591
  const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee();
1592
- function r(a, { keyword: o, schemaProp: i, schema: h, schemaPath: m, errSchemaPath: v, topSchemaRef: N }) {
1592
+ function r(a, { keyword: o, schemaProp: u, schema: h, schemaPath: m, errSchemaPath: v, topSchemaRef: N }) {
1593
1593
  if (o !== void 0 && h !== void 0)
1594
1594
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1595
1595
  if (o !== void 0) {
1596
1596
  const b = a.schema[o];
1597
- return i === void 0 ? {
1597
+ return u === void 0 ? {
1598
1598
  schema: b,
1599
1599
  schemaPath: (0, e._)`${a.schemaPath}${(0, e.getProperty)(o)}`,
1600
1600
  errSchemaPath: `${a.errSchemaPath}/${o}`
1601
1601
  } : {
1602
- schema: b[i],
1603
- schemaPath: (0, e._)`${a.schemaPath}${(0, e.getProperty)(o)}${(0, e.getProperty)(i)}`,
1604
- errSchemaPath: `${a.errSchemaPath}/${o}/${(0, t.escapeFragment)(i)}`
1602
+ schema: b[u],
1603
+ schemaPath: (0, e._)`${a.schemaPath}${(0, e.getProperty)(o)}${(0, e.getProperty)(u)}`,
1604
+ errSchemaPath: `${a.errSchemaPath}/${o}/${(0, t.escapeFragment)(u)}`
1605
1605
  };
1606
1606
  }
1607
1607
  if (h !== void 0) {
@@ -1617,13 +1617,13 @@ function Us() {
1617
1617
  throw new Error('either "keyword" or "schema" must be passed');
1618
1618
  }
1619
1619
  Pe.getSubschema = r;
1620
- function n(a, o, { dataProp: i, dataPropType: h, data: m, dataTypes: v, propertyName: N }) {
1621
- if (m !== void 0 && i !== void 0)
1620
+ function n(a, o, { dataProp: u, dataPropType: h, data: m, dataTypes: v, propertyName: N }) {
1621
+ if (m !== void 0 && u !== void 0)
1622
1622
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1623
1623
  const { gen: b } = o;
1624
- if (i !== void 0) {
1625
- const { errorPath: g, dataPathArr: E, opts: d } = o, y = b.let("data", (0, e._)`${o.data}${(0, e.getProperty)(i)}`, !0);
1626
- c(y), a.errorPath = (0, e.str)`${g}${(0, t.getErrorPath)(i, h, d.jsPropertySyntax)}`, a.parentDataProperty = (0, e._)`${i}`, a.dataPathArr = [...E, a.parentDataProperty];
1624
+ if (u !== void 0) {
1625
+ const { errorPath: g, dataPathArr: E, opts: d } = o, y = b.let("data", (0, e._)`${o.data}${(0, e.getProperty)(u)}`, !0);
1626
+ c(y), a.errorPath = (0, e.str)`${g}${(0, t.getErrorPath)(u, h, d.jsPropertySyntax)}`, a.parentDataProperty = (0, e._)`${u}`, a.dataPathArr = [...E, a.parentDataProperty];
1627
1627
  }
1628
1628
  if (m !== void 0) {
1629
1629
  const g = m instanceof e.Name ? m : b.let("data", m, !0);
@@ -1635,10 +1635,10 @@ function Us() {
1635
1635
  }
1636
1636
  }
1637
1637
  Pe.extendSubschemaData = n;
1638
- function u(a, { jtdDiscriminator: o, jtdMetadata: i, compositeRule: h, createErrors: m, allErrors: v }) {
1639
- h !== void 0 && (a.compositeRule = h), m !== void 0 && (a.createErrors = m), v !== void 0 && (a.allErrors = v), a.jtdDiscriminator = o, a.jtdMetadata = i;
1638
+ function i(a, { jtdDiscriminator: o, jtdMetadata: u, compositeRule: h, createErrors: m, allErrors: v }) {
1639
+ h !== void 0 && (a.compositeRule = h), m !== void 0 && (a.createErrors = m), v !== void 0 && (a.allErrors = v), a.jtdDiscriminator = o, a.jtdMetadata = u;
1640
1640
  }
1641
- return Pe.extendSubschemaMode = u, Pe;
1641
+ return Pe.extendSubschemaMode = i, Pe;
1642
1642
  }
1643
1643
  var fe = {}, tr, Cr;
1644
1644
  function Yn() {
@@ -1646,21 +1646,21 @@ function Yn() {
1646
1646
  if (t === r) return !0;
1647
1647
  if (t && r && typeof t == "object" && typeof r == "object") {
1648
1648
  if (t.constructor !== r.constructor) return !1;
1649
- var n, u, a;
1649
+ var n, i, a;
1650
1650
  if (Array.isArray(t)) {
1651
1651
  if (n = t.length, n != r.length) return !1;
1652
- for (u = n; u-- !== 0; )
1653
- if (!e(t[u], r[u])) return !1;
1652
+ for (i = n; i-- !== 0; )
1653
+ if (!e(t[i], r[i])) return !1;
1654
1654
  return !0;
1655
1655
  }
1656
1656
  if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
1657
1657
  if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
1658
1658
  if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
1659
1659
  if (a = Object.keys(t), n = a.length, n !== Object.keys(r).length) return !1;
1660
- for (u = n; u-- !== 0; )
1661
- if (!Object.prototype.hasOwnProperty.call(r, a[u])) return !1;
1662
- for (u = n; u-- !== 0; ) {
1663
- var o = a[u];
1660
+ for (i = n; i-- !== 0; )
1661
+ if (!Object.prototype.hasOwnProperty.call(r, a[i])) return !1;
1662
+ for (i = n; i-- !== 0; ) {
1663
+ var o = a[i];
1664
1664
  if (!e(t[o], r[o])) return !1;
1665
1665
  }
1666
1666
  return !0;
@@ -1672,12 +1672,12 @@ var rr = { exports: {} }, zr;
1672
1672
  function Ks() {
1673
1673
  if (zr) return rr.exports;
1674
1674
  zr = 1;
1675
- var e = rr.exports = function(n, u, a) {
1676
- typeof u == "function" && (a = u, u = {}), a = u.cb || a;
1675
+ var e = rr.exports = function(n, i, a) {
1676
+ typeof i == "function" && (a = i, i = {}), a = i.cb || a;
1677
1677
  var o = typeof a == "function" ? a : a.pre || function() {
1678
- }, i = a.post || function() {
1678
+ }, u = a.post || function() {
1679
1679
  };
1680
- t(u, o, i, n, "", n);
1680
+ t(i, o, u, n, "", n);
1681
1681
  };
1682
1682
  e.keywords = {
1683
1683
  additionalItems: !0,
@@ -1720,22 +1720,22 @@ function Ks() {
1720
1720
  maxProperties: !0,
1721
1721
  minProperties: !0
1722
1722
  };
1723
- function t(n, u, a, o, i, h, m, v, N, b) {
1723
+ function t(n, i, a, o, u, h, m, v, N, b) {
1724
1724
  if (o && typeof o == "object" && !Array.isArray(o)) {
1725
- u(o, i, h, m, v, N, b);
1725
+ i(o, u, h, m, v, N, b);
1726
1726
  for (var c in o) {
1727
1727
  var g = o[c];
1728
1728
  if (Array.isArray(g)) {
1729
1729
  if (c in e.arrayKeywords)
1730
1730
  for (var E = 0; E < g.length; E++)
1731
- t(n, u, a, g[E], i + "/" + c + "/" + E, h, i, c, o, E);
1731
+ t(n, i, a, g[E], u + "/" + c + "/" + E, h, u, c, o, E);
1732
1732
  } else if (c in e.propsKeywords) {
1733
1733
  if (g && typeof g == "object")
1734
1734
  for (var d in g)
1735
- t(n, u, a, g[d], i + "/" + c + "/" + r(d), h, i, c, o, d);
1736
- } else (c in e.keywords || n.allKeys && !(c in e.skipKeywords)) && t(n, u, a, g, i + "/" + c, h, i, c, o);
1735
+ t(n, i, a, g[d], u + "/" + c + "/" + r(d), h, u, c, o, d);
1736
+ } else (c in e.keywords || n.allKeys && !(c in e.skipKeywords)) && t(n, i, a, g, u + "/" + c, h, u, c, o);
1737
1737
  }
1738
- a(o, i, h, m, v, N, b);
1738
+ a(o, u, h, m, v, N, b);
1739
1739
  }
1740
1740
  }
1741
1741
  function r(n) {
@@ -1765,10 +1765,10 @@ function Kt() {
1765
1765
  "enum",
1766
1766
  "const"
1767
1767
  ]);
1768
- function u(E, d = !0) {
1769
- return typeof E == "boolean" ? !0 : d === !0 ? !o(E) : d ? i(E) <= d : !1;
1768
+ function i(E, d = !0) {
1769
+ return typeof E == "boolean" ? !0 : d === !0 ? !o(E) : d ? u(E) <= d : !1;
1770
1770
  }
1771
- fe.inlineRef = u;
1771
+ fe.inlineRef = i;
1772
1772
  const a = /* @__PURE__ */ new Set([
1773
1773
  "$ref",
1774
1774
  "$recursiveRef",
@@ -1786,12 +1786,12 @@ function Kt() {
1786
1786
  }
1787
1787
  return !1;
1788
1788
  }
1789
- function i(E) {
1789
+ function u(E) {
1790
1790
  let d = 0;
1791
1791
  for (const y in E) {
1792
1792
  if (y === "$ref")
1793
1793
  return 1 / 0;
1794
- if (d++, !n.has(y) && (typeof E[y] == "object" && (0, e.eachItem)(E[y], (s) => d += i(s)), d === 1 / 0))
1794
+ if (d++, !n.has(y) && (typeof E[y] == "object" && (0, e.eachItem)(E[y], (s) => d += u(s)), d === 1 / 0))
1795
1795
  return 1 / 0;
1796
1796
  }
1797
1797
  return d;
@@ -1856,7 +1856,7 @@ var Fr;
1856
1856
  function Xe() {
1857
1857
  if (Fr) return we;
1858
1858
  Fr = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.getData = we.KeywordCxt = we.validateFunctionCode = void 0;
1859
- const e = /* @__PURE__ */ zs(), t = /* @__PURE__ */ Ft(), r = /* @__PURE__ */ Jn(), n = /* @__PURE__ */ Ft(), u = /* @__PURE__ */ Ls(), a = /* @__PURE__ */ Fs(), o = /* @__PURE__ */ Us(), i = /* @__PURE__ */ Q(), h = /* @__PURE__ */ Oe(), m = /* @__PURE__ */ Kt(), v = /* @__PURE__ */ ee(), N = /* @__PURE__ */ Qe();
1859
+ const e = /* @__PURE__ */ zs(), t = /* @__PURE__ */ Ft(), r = /* @__PURE__ */ Jn(), n = /* @__PURE__ */ Ft(), i = /* @__PURE__ */ Ls(), a = /* @__PURE__ */ Fs(), o = /* @__PURE__ */ Us(), u = /* @__PURE__ */ Q(), h = /* @__PURE__ */ Oe(), m = /* @__PURE__ */ Kt(), v = /* @__PURE__ */ ee(), N = /* @__PURE__ */ Qe();
1860
1860
  function b(R) {
1861
1861
  if (l(R) && (S(R), w(R))) {
1862
1862
  d(R);
@@ -1866,18 +1866,18 @@ function Xe() {
1866
1866
  }
1867
1867
  we.validateFunctionCode = b;
1868
1868
  function c({ gen: R, validateName: I, schema: M, schemaEnv: z, opts: W }, x) {
1869
- W.code.es5 ? R.func(I, (0, i._)`${h.default.data}, ${h.default.valCxt}`, z.$async, () => {
1870
- R.code((0, i._)`"use strict"; ${s(M, W)}`), E(R, W), R.code(x);
1871
- }) : R.func(I, (0, i._)`${h.default.data}, ${g(W)}`, z.$async, () => R.code(s(M, W)).code(x));
1869
+ W.code.es5 ? R.func(I, (0, u._)`${h.default.data}, ${h.default.valCxt}`, z.$async, () => {
1870
+ R.code((0, u._)`"use strict"; ${s(M, W)}`), E(R, W), R.code(x);
1871
+ }) : R.func(I, (0, u._)`${h.default.data}, ${g(W)}`, z.$async, () => R.code(s(M, W)).code(x));
1872
1872
  }
1873
1873
  function g(R) {
1874
- return (0, i._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${R.dynamicRef ? (0, i._)`, ${h.default.dynamicAnchors}={}` : i.nil}}={}`;
1874
+ return (0, u._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${R.dynamicRef ? (0, u._)`, ${h.default.dynamicAnchors}={}` : u.nil}}={}`;
1875
1875
  }
1876
1876
  function E(R, I) {
1877
1877
  R.if(h.default.valCxt, () => {
1878
- R.var(h.default.instancePath, (0, i._)`${h.default.valCxt}.${h.default.instancePath}`), R.var(h.default.parentData, (0, i._)`${h.default.valCxt}.${h.default.parentData}`), R.var(h.default.parentDataProperty, (0, i._)`${h.default.valCxt}.${h.default.parentDataProperty}`), R.var(h.default.rootData, (0, i._)`${h.default.valCxt}.${h.default.rootData}`), I.dynamicRef && R.var(h.default.dynamicAnchors, (0, i._)`${h.default.valCxt}.${h.default.dynamicAnchors}`);
1878
+ R.var(h.default.instancePath, (0, u._)`${h.default.valCxt}.${h.default.instancePath}`), R.var(h.default.parentData, (0, u._)`${h.default.valCxt}.${h.default.parentData}`), R.var(h.default.parentDataProperty, (0, u._)`${h.default.valCxt}.${h.default.parentDataProperty}`), R.var(h.default.rootData, (0, u._)`${h.default.valCxt}.${h.default.rootData}`), I.dynamicRef && R.var(h.default.dynamicAnchors, (0, u._)`${h.default.valCxt}.${h.default.dynamicAnchors}`);
1879
1879
  }, () => {
1880
- R.var(h.default.instancePath, (0, i._)`""`), R.var(h.default.parentData, (0, i._)`undefined`), R.var(h.default.parentDataProperty, (0, i._)`undefined`), R.var(h.default.rootData, h.default.data), I.dynamicRef && R.var(h.default.dynamicAnchors, (0, i._)`{}`);
1880
+ R.var(h.default.instancePath, (0, u._)`""`), R.var(h.default.parentData, (0, u._)`undefined`), R.var(h.default.parentDataProperty, (0, u._)`undefined`), R.var(h.default.rootData, h.default.data), I.dynamicRef && R.var(h.default.dynamicAnchors, (0, u._)`{}`);
1881
1881
  });
1882
1882
  }
1883
1883
  function d(R) {
@@ -1888,11 +1888,11 @@ function Xe() {
1888
1888
  }
1889
1889
  function y(R) {
1890
1890
  const { gen: I, validateName: M } = R;
1891
- R.evaluated = I.const("evaluated", (0, i._)`${M}.evaluated`), I.if((0, i._)`${R.evaluated}.dynamicProps`, () => I.assign((0, i._)`${R.evaluated}.props`, (0, i._)`undefined`)), I.if((0, i._)`${R.evaluated}.dynamicItems`, () => I.assign((0, i._)`${R.evaluated}.items`, (0, i._)`undefined`));
1891
+ R.evaluated = I.const("evaluated", (0, u._)`${M}.evaluated`), I.if((0, u._)`${R.evaluated}.dynamicProps`, () => I.assign((0, u._)`${R.evaluated}.props`, (0, u._)`undefined`)), I.if((0, u._)`${R.evaluated}.dynamicItems`, () => I.assign((0, u._)`${R.evaluated}.items`, (0, u._)`undefined`));
1892
1892
  }
1893
1893
  function s(R, I) {
1894
1894
  const M = typeof R == "object" && R[I.schemaId];
1895
- return M && (I.code.source || I.code.process) ? (0, i._)`/*# sourceURL=${M} */` : i.nil;
1895
+ return M && (I.code.source || I.code.process) ? (0, u._)`/*# sourceURL=${M} */` : u.nil;
1896
1896
  }
1897
1897
  function p(R, I) {
1898
1898
  if (l(R) && (S(R), w(R))) {
@@ -1916,7 +1916,7 @@ function Xe() {
1916
1916
  const { schema: M, gen: z, opts: W } = R;
1917
1917
  W.$comment && M.$comment && K(R), A(R), F(R);
1918
1918
  const x = z.const("_errs", h.default.errors);
1919
- T(R, x), z.var(I, (0, i._)`${x} === ${h.default.errors}`);
1919
+ T(R, x), z.var(I, (0, u._)`${x} === ${h.default.errors}`);
1920
1920
  }
1921
1921
  function S(R) {
1922
1922
  (0, v.checkUnknownRules)(R), V(R);
@@ -1946,18 +1946,18 @@ function Xe() {
1946
1946
  function K({ gen: R, schemaEnv: I, schema: M, errSchemaPath: z, opts: W }) {
1947
1947
  const x = M.$comment;
1948
1948
  if (W.$comment === !0)
1949
- R.code((0, i._)`${h.default.self}.logger.log(${x})`);
1949
+ R.code((0, u._)`${h.default.self}.logger.log(${x})`);
1950
1950
  else if (typeof W.$comment == "function") {
1951
- const ue = (0, i.str)`${z}/$comment`, ve = R.scopeValue("root", { ref: I.root });
1952
- R.code((0, i._)`${h.default.self}.opts.$comment(${x}, ${ue}, ${ve}.schema)`);
1951
+ const ue = (0, u.str)`${z}/$comment`, ve = R.scopeValue("root", { ref: I.root });
1952
+ R.code((0, u._)`${h.default.self}.opts.$comment(${x}, ${ue}, ${ve}.schema)`);
1953
1953
  }
1954
1954
  }
1955
1955
  function B(R) {
1956
1956
  const { gen: I, schemaEnv: M, validateName: z, ValidationError: W, opts: x } = R;
1957
- M.$async ? I.if((0, i._)`${h.default.errors} === 0`, () => I.return(h.default.data), () => I.throw((0, i._)`new ${W}(${h.default.vErrors})`)) : (I.assign((0, i._)`${z}.errors`, h.default.vErrors), x.unevaluated && te(R), I.return((0, i._)`${h.default.errors} === 0`));
1957
+ M.$async ? I.if((0, u._)`${h.default.errors} === 0`, () => I.return(h.default.data), () => I.throw((0, u._)`new ${W}(${h.default.vErrors})`)) : (I.assign((0, u._)`${z}.errors`, h.default.vErrors), x.unevaluated && te(R), I.return((0, u._)`${h.default.errors} === 0`));
1958
1958
  }
1959
1959
  function te({ gen: R, evaluated: I, props: M, items: z }) {
1960
- M instanceof i.Name && R.assign((0, i._)`${I}.props`, M), z instanceof i.Name && R.assign((0, i._)`${I}.items`, z);
1960
+ M instanceof u.Name && R.assign((0, u._)`${I}.props`, M), z instanceof u.Name && R.assign((0, u._)`${I}.items`, z);
1961
1961
  }
1962
1962
  function ae(R, I, M, z) {
1963
1963
  const { gen: W, schema: x, data: ue, allErrors: ve, opts: pe, self: he } = R, { RULES: ce } = he;
@@ -1971,12 +1971,12 @@ function Xe() {
1971
1971
  De(ce.post);
1972
1972
  });
1973
1973
  function De(ge) {
1974
- (0, r.shouldUseGroup)(x, ge) && (ge.type ? (W.if((0, n.checkDataType)(ge.type, ue, pe.strictNumbers)), ie(R, ge), I.length === 1 && I[0] === ge.type && M && (W.else(), (0, n.reportTypeError)(R)), W.endIf()) : ie(R, ge), ve || W.if((0, i._)`${h.default.errors} === ${z || 0}`));
1974
+ (0, r.shouldUseGroup)(x, ge) && (ge.type ? (W.if((0, n.checkDataType)(ge.type, ue, pe.strictNumbers)), ie(R, ge), I.length === 1 && I[0] === ge.type && M && (W.else(), (0, n.reportTypeError)(R)), W.endIf()) : ie(R, ge), ve || W.if((0, u._)`${h.default.errors} === ${z || 0}`));
1975
1975
  }
1976
1976
  }
1977
1977
  function ie(R, I) {
1978
1978
  const { gen: M, schema: z, opts: { useDefaults: W } } = R;
1979
- W && (0, u.assignDefaults)(R, I.type), M.block(() => {
1979
+ W && (0, i.assignDefaults)(R, I.type), M.block(() => {
1980
1980
  for (const x of I.rules)
1981
1981
  (0, r.shouldUseRule)(z, x) && L(R, x.keyword, x.definition, I.type);
1982
1982
  });
@@ -2033,13 +2033,13 @@ function Xe() {
2033
2033
  ("code" in M ? M.trackErrors : M.errors !== !1) && (this.errsCount = I.gen.const("_errs", h.default.errors));
2034
2034
  }
2035
2035
  result(I, M, z) {
2036
- this.failResult((0, i.not)(I), M, z);
2036
+ this.failResult((0, u.not)(I), M, z);
2037
2037
  }
2038
2038
  failResult(I, M, z) {
2039
2039
  this.gen.if(I), z ? z() : this.error(), M ? (this.gen.else(), M(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
2040
2040
  }
2041
2041
  pass(I, M) {
2042
- this.failResult((0, i.not)(I), void 0, M);
2042
+ this.failResult((0, u.not)(I), void 0, M);
2043
2043
  }
2044
2044
  fail(I) {
2045
2045
  if (I === void 0) {
@@ -2052,7 +2052,7 @@ function Xe() {
2052
2052
  if (!this.$data)
2053
2053
  return this.fail(I);
2054
2054
  const { schemaCode: M } = this;
2055
- this.fail((0, i._)`${M} !== undefined && (${(0, i.or)(this.invalid$data(), I)})`);
2055
+ this.fail((0, u._)`${M} !== undefined && (${(0, u.or)(this.invalid$data(), I)})`);
2056
2056
  }
2057
2057
  error(I, M, z) {
2058
2058
  if (M) {
@@ -2078,35 +2078,35 @@ function Xe() {
2078
2078
  setParams(I, M) {
2079
2079
  M ? Object.assign(this.params, I) : this.params = I;
2080
2080
  }
2081
- block$data(I, M, z = i.nil) {
2081
+ block$data(I, M, z = u.nil) {
2082
2082
  this.gen.block(() => {
2083
2083
  this.check$data(I, z), M();
2084
2084
  });
2085
2085
  }
2086
- check$data(I = i.nil, M = i.nil) {
2086
+ check$data(I = u.nil, M = u.nil) {
2087
2087
  if (!this.$data)
2088
2088
  return;
2089
2089
  const { gen: z, schemaCode: W, schemaType: x, def: ue } = this;
2090
- z.if((0, i.or)((0, i._)`${W} === undefined`, M)), I !== i.nil && z.assign(I, !0), (x.length || ue.validateSchema) && (z.elseIf(this.invalid$data()), this.$dataError(), I !== i.nil && z.assign(I, !1)), z.else();
2090
+ z.if((0, u.or)((0, u._)`${W} === undefined`, M)), I !== u.nil && z.assign(I, !0), (x.length || ue.validateSchema) && (z.elseIf(this.invalid$data()), this.$dataError(), I !== u.nil && z.assign(I, !1)), z.else();
2091
2091
  }
2092
2092
  invalid$data() {
2093
2093
  const { gen: I, schemaCode: M, schemaType: z, def: W, it: x } = this;
2094
- return (0, i.or)(ue(), ve());
2094
+ return (0, u.or)(ue(), ve());
2095
2095
  function ue() {
2096
2096
  if (z.length) {
2097
- if (!(M instanceof i.Name))
2097
+ if (!(M instanceof u.Name))
2098
2098
  throw new Error("ajv implementation error");
2099
2099
  const pe = Array.isArray(z) ? z : [z];
2100
- return (0, i._)`${(0, n.checkDataTypes)(pe, M, x.opts.strictNumbers, n.DataType.Wrong)}`;
2100
+ return (0, u._)`${(0, n.checkDataTypes)(pe, M, x.opts.strictNumbers, n.DataType.Wrong)}`;
2101
2101
  }
2102
- return i.nil;
2102
+ return u.nil;
2103
2103
  }
2104
2104
  function ve() {
2105
2105
  if (W.validateSchema) {
2106
2106
  const pe = I.scopeValue("validate$data", { ref: W.validateSchema });
2107
- return (0, i._)`!${pe}(${M})`;
2107
+ return (0, u._)`!${pe}(${M})`;
2108
2108
  }
2109
- return i.nil;
2109
+ return u.nil;
2110
2110
  }
2111
2111
  }
2112
2112
  subschema(I, M) {
@@ -2122,7 +2122,7 @@ function Xe() {
2122
2122
  mergeValidEvaluated(I, M) {
2123
2123
  const { it: z, gen: W } = this;
2124
2124
  if (z.opts.unevaluated && (z.props !== !0 || z.items !== !0))
2125
- return W.if(M, () => this.mergeEvaluated(I, i.Name)), !0;
2125
+ return W.if(M, () => this.mergeEvaluated(I, u.Name)), !0;
2126
2126
  }
2127
2127
  }
2128
2128
  we.KeywordCxt = q;
@@ -2157,7 +2157,7 @@ function Xe() {
2157
2157
  let ue = x;
2158
2158
  const ve = W.split("/");
2159
2159
  for (const he of ve)
2160
- he && (x = (0, i._)`${x}${(0, i.getProperty)((0, v.unescapeJsonPointer)(he))}`, ue = (0, i._)`${ue} && ${x}`);
2160
+ he && (x = (0, u._)`${x}${(0, u.getProperty)((0, v.unescapeJsonPointer)(he))}`, ue = (0, u._)`${ue} && ${x}`);
2161
2161
  return ue;
2162
2162
  function pe(he, ce) {
2163
2163
  return `Cannot access ${he} ${ce} levels up, current level is ${I}`;
@@ -2182,8 +2182,8 @@ function Bt() {
2182
2182
  Kr = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
2183
2183
  const e = /* @__PURE__ */ Kt();
2184
2184
  class t extends Error {
2185
- constructor(n, u, a, o) {
2186
- super(o || `can't resolve reference ${a} from id ${u}`), this.missingRef = (0, e.resolveUrl)(n, u, a), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
2185
+ constructor(n, i, a, o) {
2186
+ super(o || `can't resolve reference ${a} from id ${i}`), this.missingRef = (0, e.resolveUrl)(n, i, a), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
2187
2187
  }
2188
2188
  }
2189
2189
  return rt.default = t, rt;
@@ -2192,7 +2192,7 @@ var ye = {}, Br;
2192
2192
  function mr() {
2193
2193
  if (Br) return ye;
2194
2194
  Br = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.resolveSchema = ye.getCompilingSchema = ye.resolveRef = ye.compileSchema = ye.SchemaEnv = void 0;
2195
- const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ hr(), r = /* @__PURE__ */ Oe(), n = /* @__PURE__ */ Kt(), u = /* @__PURE__ */ ee(), a = /* @__PURE__ */ Xe();
2195
+ const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ hr(), r = /* @__PURE__ */ Oe(), n = /* @__PURE__ */ Kt(), i = /* @__PURE__ */ ee(), a = /* @__PURE__ */ Xe();
2196
2196
  class o {
2197
2197
  constructor(y) {
2198
2198
  var s;
@@ -2202,7 +2202,7 @@ function mr() {
2202
2202
  }
2203
2203
  }
2204
2204
  ye.SchemaEnv = o;
2205
- function i(d) {
2205
+ function u(d) {
2206
2206
  const y = v.call(this, d);
2207
2207
  if (y)
2208
2208
  return y;
@@ -2261,7 +2261,7 @@ function mr() {
2261
2261
  this._compilations.delete(d);
2262
2262
  }
2263
2263
  }
2264
- ye.compileSchema = i;
2264
+ ye.compileSchema = u;
2265
2265
  function h(d, y, s) {
2266
2266
  var p;
2267
2267
  s = (0, n.resolveUrl)(this.opts.uriResolver, y, s);
@@ -2278,7 +2278,7 @@ function mr() {
2278
2278
  }
2279
2279
  ye.resolveRef = h;
2280
2280
  function m(d) {
2281
- return (0, n.inlineRef)(d.schema, this.opts.inlineRefs) ? d.schema : d.validate ? d : i.call(this, d);
2281
+ return (0, n.inlineRef)(d.schema, this.opts.inlineRefs) ? d.schema : d.validate ? d : u.call(this, d);
2282
2282
  }
2283
2283
  function v(d) {
2284
2284
  for (const y of this._compilations)
@@ -2306,7 +2306,7 @@ function mr() {
2306
2306
  return typeof (S == null ? void 0 : S.schema) != "object" ? void 0 : E.call(this, s, S);
2307
2307
  }
2308
2308
  if (typeof (_ == null ? void 0 : _.schema) == "object") {
2309
- if (_.validate || i.call(this, _), l === (0, n.normalizeId)(y)) {
2309
+ if (_.validate || u.call(this, _), l === (0, n.normalizeId)(y)) {
2310
2310
  const { schema: S } = _, { schemaId: T } = this.opts, V = S[T];
2311
2311
  return V && (w = (0, n.resolveUrl)(this.opts.uriResolver, w, V)), new o({ schema: S, schemaId: T, root: d, baseId: w });
2312
2312
  }
@@ -2328,7 +2328,7 @@ function mr() {
2328
2328
  for (const S of d.fragment.slice(1).split("/")) {
2329
2329
  if (typeof s == "boolean")
2330
2330
  return;
2331
- const T = s[(0, u.unescapeFragment)(S)];
2331
+ const T = s[(0, i.unescapeFragment)(S)];
2332
2332
  if (T === void 0)
2333
2333
  return;
2334
2334
  s = T;
@@ -2336,7 +2336,7 @@ function mr() {
2336
2336
  !g.has(S) && V && (y = (0, n.resolveUrl)(this.opts.uriResolver, y, V));
2337
2337
  }
2338
2338
  let l;
2339
- if (typeof s != "boolean" && s.$ref && !(0, u.schemaHasRulesButRef)(s, this.RULES)) {
2339
+ if (typeof s != "boolean" && s.$ref && !(0, i.schemaHasRulesButRef)(s, this.RULES)) {
2340
2340
  const S = (0, n.resolveUrl)(this.opts.uriResolver, y, s.$ref);
2341
2341
  l = c.call(this, p, S);
2342
2342
  }
@@ -2376,7 +2376,7 @@ function Zn() {
2376
2376
  return c;
2377
2377
  }
2378
2378
  const n = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2379
- function u(b) {
2379
+ function i(b) {
2380
2380
  return b.length = 0, !0;
2381
2381
  }
2382
2382
  function a(b, c, g) {
@@ -2409,15 +2409,15 @@ function Zn() {
2409
2409
  } else if (l === "%") {
2410
2410
  if (!p(d, E, g))
2411
2411
  break;
2412
- p = u;
2412
+ p = i;
2413
2413
  } else {
2414
2414
  d.push(l);
2415
2415
  continue;
2416
2416
  }
2417
2417
  }
2418
- return d.length && (p === u ? g.zone = d.join("") : s ? E.push(d.join("")) : E.push(r(d))), g.address = E.join(""), g;
2418
+ return d.length && (p === i ? g.zone = d.join("") : s ? E.push(d.join("")) : E.push(r(d))), g.address = E.join(""), g;
2419
2419
  }
2420
- function i(b) {
2420
+ function u(b) {
2421
2421
  if (h(b, ":") < 2)
2422
2422
  return { host: b, isIPV6: !1 };
2423
2423
  const c = o(b);
@@ -2501,7 +2501,7 @@ function Zn() {
2501
2501
  if (b.userinfo !== void 0 && (c.push(b.userinfo), c.push("@")), b.host !== void 0) {
2502
2502
  let g = unescape(b.host);
2503
2503
  if (!t(g)) {
2504
- const E = i(g);
2504
+ const E = u(g);
2505
2505
  E.isIPV6 === !0 ? g = `[${E.escapedHost}]` : g = b.host;
2506
2506
  }
2507
2507
  c.push(g);
@@ -2515,7 +2515,7 @@ function Zn() {
2515
2515
  removeDotSegments: m,
2516
2516
  isIPv4: t,
2517
2517
  isUUID: e,
2518
- normalizeIPv6: i,
2518
+ normalizeIPv6: u,
2519
2519
  stringArrayToHexStripped: r
2520
2520
  }, nr;
2521
2521
  }
@@ -2540,7 +2540,7 @@ function Qs() {
2540
2540
  l
2541
2541
  ) !== -1;
2542
2542
  }
2543
- function u(l) {
2543
+ function i(l) {
2544
2544
  return l.secure === !0 ? !0 : l.secure === !1 ? !1 : l.scheme ? l.scheme.length === 3 && (l.scheme[0] === "w" || l.scheme[0] === "W") && (l.scheme[1] === "s" || l.scheme[1] === "S") && (l.scheme[2] === "s" || l.scheme[2] === "S") : !1;
2545
2545
  }
2546
2546
  function a(l) {
@@ -2550,11 +2550,11 @@ function Qs() {
2550
2550
  const _ = String(l.scheme).toLowerCase() === "https";
2551
2551
  return (l.port === (_ ? 443 : 80) || l.port === "") && (l.port = void 0), l.path || (l.path = "/"), l;
2552
2552
  }
2553
- function i(l) {
2554
- return l.secure = u(l), l.resourceName = (l.path || "/") + (l.query ? "?" + l.query : ""), l.path = void 0, l.query = void 0, l;
2553
+ function u(l) {
2554
+ return l.secure = i(l), l.resourceName = (l.path || "/") + (l.query ? "?" + l.query : ""), l.path = void 0, l.query = void 0, l;
2555
2555
  }
2556
2556
  function h(l) {
2557
- if ((l.port === (u(l) ? 443 : 80) || l.port === "") && (l.port = void 0), typeof l.secure == "boolean" && (l.scheme = l.secure ? "wss" : "ws", l.secure = void 0), l.resourceName) {
2557
+ if ((l.port === (i(l) ? 443 : 80) || l.port === "") && (l.port = void 0), typeof l.secure == "boolean" && (l.scheme = l.secure ? "wss" : "ws", l.secure = void 0), l.resourceName) {
2558
2558
  const [_, S] = l.resourceName.split("?");
2559
2559
  l.path = _ && _ !== "/" ? _ : void 0, l.query = S, l.resourceName = void 0;
2560
2560
  }
@@ -2610,7 +2610,7 @@ function Qs() {
2610
2610
  {
2611
2611
  scheme: "ws",
2612
2612
  domainHost: !0,
2613
- parse: i,
2613
+ parse: u,
2614
2614
  serialize: h
2615
2615
  }
2616
2616
  ), d = (
@@ -2659,7 +2659,7 @@ function Qs() {
2659
2659
  ]) || void 0;
2660
2660
  }
2661
2661
  return sr = {
2662
- wsIsSecure: u,
2662
+ wsIsSecure: i,
2663
2663
  SCHEMES: p,
2664
2664
  isValidSchemeName: n,
2665
2665
  getSchemeHandler: w
@@ -2669,7 +2669,7 @@ var Gr;
2669
2669
  function Xs() {
2670
2670
  if (Gr) return Be.exports;
2671
2671
  Gr = 1;
2672
- const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: r, normalizeComponentEncoding: n, isIPv4: u, nonSimpleDomain: a } = Zn(), { SCHEMES: o, getSchemeHandler: i } = Qs();
2672
+ const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: r, normalizeComponentEncoding: n, isIPv4: i, nonSimpleDomain: a } = Zn(), { SCHEMES: o, getSchemeHandler: u } = Qs();
2673
2673
  function h(d, y) {
2674
2674
  return typeof d == "string" ? d = /** @type {T} */
2675
2675
  b(g(d, y), y) : typeof d == "object" && (d = /** @type {T} */
@@ -2702,7 +2702,7 @@ function Xs() {
2702
2702
  resourceName: d.resourceName,
2703
2703
  secure: d.secure,
2704
2704
  error: ""
2705
- }, p = Object.assign({}, y), w = [], l = i(p.scheme || s.scheme);
2705
+ }, p = Object.assign({}, y), w = [], l = u(p.scheme || s.scheme);
2706
2706
  l && l.serialize && l.serialize(s, p), s.path !== void 0 && (p.skipEscape ? s.path = unescape(s.path) : (s.path = escape(s.path), s.scheme !== void 0 && (s.path = s.path.split("%3A").join(":")))), p.reference !== "suffix" && s.scheme && w.push(s.scheme, ":");
2707
2707
  const _ = r(s);
2708
2708
  if (_ !== void 0 && (p.reference !== "suffix" && w.push("//"), w.push(_), s.path && s.path[0] !== "/" && w.push("/")), s.path !== void 0) {
@@ -2727,13 +2727,13 @@ function Xs() {
2727
2727
  const l = d.match(c);
2728
2728
  if (l) {
2729
2729
  if (p.scheme = l[1], p.userinfo = l[3], p.host = l[4], p.port = parseInt(l[5], 10), p.path = l[6] || "", p.query = l[7], p.fragment = l[8], isNaN(p.port) && (p.port = l[5]), p.host)
2730
- if (u(p.host) === !1) {
2730
+ if (i(p.host) === !1) {
2731
2731
  const T = e(p.host);
2732
2732
  p.host = T.host.toLowerCase(), w = T.isIPV6;
2733
2733
  } else
2734
2734
  w = !0;
2735
2735
  p.scheme === void 0 && p.userinfo === void 0 && p.host === void 0 && p.port === void 0 && p.query === void 0 && !p.path ? p.reference = "same-document" : p.scheme === void 0 ? p.reference = "relative" : p.fragment === void 0 ? p.reference = "absolute" : p.reference = "uri", s.reference && s.reference !== "suffix" && s.reference !== p.reference && (p.error = p.error || "URI is not a " + s.reference + " reference.");
2736
- const _ = i(s.scheme || p.scheme);
2736
+ const _ = u(s.scheme || p.scheme);
2737
2737
  if (!s.unicodeSupport && (!_ || !_.unicodeSupport) && p.host && (s.domainHost || _ && _.domainHost) && w === !1 && a(p.host))
2738
2738
  try {
2739
2739
  p.host = URL.domainToASCII(p.host.toLowerCase());
@@ -2785,7 +2785,7 @@ function eo() {
2785
2785
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2786
2786
  return r.CodeGen;
2787
2787
  } });
2788
- const n = /* @__PURE__ */ hr(), u = /* @__PURE__ */ Bt(), a = /* @__PURE__ */ Gn(), o = /* @__PURE__ */ mr(), i = /* @__PURE__ */ Q(), h = /* @__PURE__ */ Kt(), m = /* @__PURE__ */ Ft(), v = /* @__PURE__ */ ee(), N = Zs, b = /* @__PURE__ */ xs(), c = (D, j) => new RegExp(D, j);
2788
+ const n = /* @__PURE__ */ hr(), i = /* @__PURE__ */ Bt(), a = /* @__PURE__ */ Gn(), o = /* @__PURE__ */ mr(), u = /* @__PURE__ */ Q(), h = /* @__PURE__ */ Kt(), m = /* @__PURE__ */ Ft(), v = /* @__PURE__ */ ee(), N = Zs, b = /* @__PURE__ */ xs(), c = (D, j) => new RegExp(D, j);
2789
2789
  c.code = "new RegExp";
2790
2790
  const g = ["removeAdditional", "useDefaults", "coerceTypes"], E = /* @__PURE__ */ new Set([
2791
2791
  "validate",
@@ -2850,7 +2850,7 @@ function eo() {
2850
2850
  constructor(j = {}) {
2851
2851
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), j = this.opts = { ...j, ...p(j) };
2852
2852
  const { es5: k, lines: O } = this.opts.code;
2853
- this.scope = new i.ValueScope({ scope: {}, prefixes: E, es5: k, lines: O }), this.logger = F(j.logger);
2853
+ this.scope = new u.ValueScope({ scope: {}, prefixes: E, es5: k, lines: O }), this.logger = F(j.logger);
2854
2854
  const f = j.validateFormats;
2855
2855
  j.validateFormats = !1, this.RULES = (0, a.getRules)(), l.call(this, d, j, "NOT SUPPORTED"), l.call(this, y, j, "DEPRECATED", "warn"), this._metaOpts = U.call(this), j.formats && T.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && V.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), S.call(this), j.validateFormats = f;
2856
2856
  }
@@ -2897,7 +2897,7 @@ function eo() {
2897
2897
  try {
2898
2898
  return this._compileSchemaEnv(J);
2899
2899
  } catch (R) {
2900
- if (!(R instanceof u.default))
2900
+ if (!(R instanceof i.default))
2901
2901
  throw R;
2902
2902
  return L.call(this, R), await C.call(this, R.missingSchema), q.call(this, J);
2903
2903
  }
@@ -3105,7 +3105,7 @@ function eo() {
3105
3105
  }
3106
3106
  }
3107
3107
  }
3108
- w.ValidationError = n.default, w.MissingRefError = u.default, e.default = w;
3108
+ w.ValidationError = n.default, w.MissingRefError = i.default, e.default = w;
3109
3109
  function l(D, j, k, O = "error") {
3110
3110
  for (const f in D) {
3111
3111
  const P = f;
@@ -3222,17 +3222,17 @@ var Ie = {}, Qr;
3222
3222
  function ro() {
3223
3223
  if (Qr) return Ie;
3224
3224
  Qr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.callRef = Ie.getValidate = void 0;
3225
- const e = /* @__PURE__ */ Bt(), t = /* @__PURE__ */ be(), r = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Oe(), u = /* @__PURE__ */ mr(), a = /* @__PURE__ */ ee(), o = {
3225
+ const e = /* @__PURE__ */ Bt(), t = /* @__PURE__ */ be(), r = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Oe(), i = /* @__PURE__ */ mr(), a = /* @__PURE__ */ ee(), o = {
3226
3226
  keyword: "$ref",
3227
3227
  schemaType: "string",
3228
3228
  code(m) {
3229
3229
  const { gen: v, schema: N, it: b } = m, { baseId: c, schemaEnv: g, validateName: E, opts: d, self: y } = b, { root: s } = g;
3230
3230
  if ((N === "#" || N === "#/") && c === s.baseId)
3231
3231
  return w();
3232
- const p = u.resolveRef.call(y, s, c, N);
3232
+ const p = i.resolveRef.call(y, s, c, N);
3233
3233
  if (p === void 0)
3234
3234
  throw new e.default(b.opts.uriResolver, c, N);
3235
- if (p instanceof u.SchemaEnv)
3235
+ if (p instanceof i.SchemaEnv)
3236
3236
  return l(p);
3237
3237
  return _(p);
3238
3238
  function w() {
@@ -3242,7 +3242,7 @@ function ro() {
3242
3242
  return h(m, (0, r._)`${S}.validate`, s, s.$async);
3243
3243
  }
3244
3244
  function l(S) {
3245
- const T = i(m, S);
3245
+ const T = u(m, S);
3246
3246
  h(m, T, S, S.$async);
3247
3247
  }
3248
3248
  function _(S) {
@@ -3257,11 +3257,11 @@ function ro() {
3257
3257
  }
3258
3258
  }
3259
3259
  };
3260
- function i(m, v) {
3260
+ function u(m, v) {
3261
3261
  const { gen: N } = m;
3262
3262
  return v.validate ? N.scopeValue("validate", { ref: v.validate }) : (0, r._)`${N.scopeValue("wrapper", { ref: v })}.validate`;
3263
3263
  }
3264
- Ie.getValidate = i;
3264
+ Ie.getValidate = u;
3265
3265
  function h(m, v, N, b) {
3266
3266
  const { gen: c, it: g } = m, { allErrors: E, schemaEnv: d, opts: y } = g, s = y.passContext ? n.default.this : r.nil;
3267
3267
  b ? p() : w();
@@ -3333,18 +3333,18 @@ function so() {
3333
3333
  }, n = {
3334
3334
  message: ({ keyword: a, schemaCode: o }) => (0, e.str)`must be ${r[a].okStr} ${o}`,
3335
3335
  params: ({ keyword: a, schemaCode: o }) => (0, e._)`{comparison: ${r[a].okStr}, limit: ${o}}`
3336
- }, u = {
3336
+ }, i = {
3337
3337
  keyword: Object.keys(r),
3338
3338
  type: "number",
3339
3339
  schemaType: "number",
3340
3340
  $data: !0,
3341
3341
  error: n,
3342
3342
  code(a) {
3343
- const { keyword: o, data: i, schemaCode: h } = a;
3344
- a.fail$data((0, e._)`${i} ${r[o].fail} ${h} || isNaN(${i})`);
3343
+ const { keyword: o, data: u, schemaCode: h } = a;
3344
+ a.fail$data((0, e._)`${u} ${r[o].fail} ${h} || isNaN(${u})`);
3345
3345
  }
3346
3346
  };
3347
- return ut.default = u, ut;
3347
+ return ut.default = i, ut;
3348
3348
  }
3349
3349
  var ct = {}, en;
3350
3350
  function oo() {
@@ -3360,7 +3360,7 @@ function oo() {
3360
3360
  params: ({ schemaCode: n }) => (0, e._)`{multipleOf: ${n}}`
3361
3361
  },
3362
3362
  code(n) {
3363
- const { gen: u, data: a, schemaCode: o, it: i } = n, h = i.opts.multipleOfPrecision, m = u.let("res"), v = h ? (0, e._)`Math.abs(Math.round(${m}) - ${m}) > 1e-${h}` : (0, e._)`${m} !== parseInt(${m})`;
3363
+ const { gen: i, data: a, schemaCode: o, it: u } = n, h = u.opts.multipleOfPrecision, m = i.let("res"), v = h ? (0, e._)`Math.abs(Math.round(${m}) - ${m}) > 1e-${h}` : (0, e._)`${m} !== parseInt(${m})`;
3364
3364
  n.fail$data((0, e._)`(${o} === 0 || (${m} = ${a}/${o}, ${v}))`);
3365
3365
  }
3366
3366
  };
@@ -3372,9 +3372,9 @@ function ao() {
3372
3372
  tn = 1, Object.defineProperty(dt, "__esModule", { value: !0 });
3373
3373
  function e(t) {
3374
3374
  const r = t.length;
3375
- let n = 0, u = 0, a;
3376
- for (; u < r; )
3377
- n++, a = t.charCodeAt(u++), a >= 55296 && a <= 56319 && u < r && (a = t.charCodeAt(u), (a & 64512) === 56320 && u++);
3375
+ let n = 0, i = 0, a;
3376
+ for (; i < r; )
3377
+ n++, a = t.charCodeAt(i++), a >= 55296 && a <= 56319 && i < r && (a = t.charCodeAt(i), (a & 64512) === 56320 && i++);
3378
3378
  return n;
3379
3379
  }
3380
3380
  return dt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', dt;
@@ -3383,30 +3383,30 @@ var rn;
3383
3383
  function io() {
3384
3384
  if (rn) return lt;
3385
3385
  rn = 1, Object.defineProperty(lt, "__esModule", { value: !0 });
3386
- const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ ao(), u = {
3386
+ const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ ao(), i = {
3387
3387
  keyword: ["maxLength", "minLength"],
3388
3388
  type: "string",
3389
3389
  schemaType: "number",
3390
3390
  $data: !0,
3391
3391
  error: {
3392
3392
  message({ keyword: a, schemaCode: o }) {
3393
- const i = a === "maxLength" ? "more" : "fewer";
3394
- return (0, e.str)`must NOT have ${i} than ${o} characters`;
3393
+ const u = a === "maxLength" ? "more" : "fewer";
3394
+ return (0, e.str)`must NOT have ${u} than ${o} characters`;
3395
3395
  },
3396
3396
  params: ({ schemaCode: a }) => (0, e._)`{limit: ${a}}`
3397
3397
  },
3398
3398
  code(a) {
3399
- const { keyword: o, data: i, schemaCode: h, it: m } = a, v = o === "maxLength" ? e.operators.GT : e.operators.LT, N = m.opts.unicode === !1 ? (0, e._)`${i}.length` : (0, e._)`${(0, t.useFunc)(a.gen, r.default)}(${i})`;
3399
+ const { keyword: o, data: u, schemaCode: h, it: m } = a, v = o === "maxLength" ? e.operators.GT : e.operators.LT, N = m.opts.unicode === !1 ? (0, e._)`${u}.length` : (0, e._)`${(0, t.useFunc)(a.gen, r.default)}(${u})`;
3400
3400
  a.fail$data((0, e._)`${N} ${v} ${h}`);
3401
3401
  }
3402
3402
  };
3403
- return lt.default = u, lt;
3403
+ return lt.default = i, lt;
3404
3404
  }
3405
3405
  var ft = {}, nn;
3406
3406
  function uo() {
3407
3407
  if (nn) return ft;
3408
3408
  nn = 1, Object.defineProperty(ft, "__esModule", { value: !0 });
3409
- const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ Q(), u = {
3409
+ const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ Q(), i = {
3410
3410
  keyword: "pattern",
3411
3411
  type: "string",
3412
3412
  schemaType: "string",
@@ -3416,17 +3416,17 @@ function uo() {
3416
3416
  params: ({ schemaCode: a }) => (0, r._)`{pattern: ${a}}`
3417
3417
  },
3418
3418
  code(a) {
3419
- const { gen: o, data: i, $data: h, schema: m, schemaCode: v, it: N } = a, b = N.opts.unicodeRegExp ? "u" : "";
3419
+ const { gen: o, data: u, $data: h, schema: m, schemaCode: v, it: N } = a, b = N.opts.unicodeRegExp ? "u" : "";
3420
3420
  if (h) {
3421
3421
  const { regExp: c } = N.opts.code, g = c.code === "new RegExp" ? (0, r._)`new RegExp` : (0, t.useFunc)(o, c), E = o.let("valid");
3422
- o.try(() => o.assign(E, (0, r._)`${g}(${v}, ${b}).test(${i})`), () => o.assign(E, !1)), a.fail$data((0, r._)`!${E}`);
3422
+ o.try(() => o.assign(E, (0, r._)`${g}(${v}, ${b}).test(${u})`), () => o.assign(E, !1)), a.fail$data((0, r._)`!${E}`);
3423
3423
  } else {
3424
3424
  const c = (0, e.usePattern)(a, m);
3425
- a.fail$data((0, r._)`!${c}.test(${i})`);
3425
+ a.fail$data((0, r._)`!${c}.test(${u})`);
3426
3426
  }
3427
3427
  }
3428
3428
  };
3429
- return ft.default = u, ft;
3429
+ return ft.default = i, ft;
3430
3430
  }
3431
3431
  var pt = {}, sn;
3432
3432
  function co() {
@@ -3438,15 +3438,15 @@ function co() {
3438
3438
  schemaType: "number",
3439
3439
  $data: !0,
3440
3440
  error: {
3441
- message({ keyword: n, schemaCode: u }) {
3441
+ message({ keyword: n, schemaCode: i }) {
3442
3442
  const a = n === "maxProperties" ? "more" : "fewer";
3443
- return (0, e.str)`must NOT have ${a} than ${u} properties`;
3443
+ return (0, e.str)`must NOT have ${a} than ${i} properties`;
3444
3444
  },
3445
3445
  params: ({ schemaCode: n }) => (0, e._)`{limit: ${n}}`
3446
3446
  },
3447
3447
  code(n) {
3448
- const { keyword: u, data: a, schemaCode: o } = n, i = u === "maxProperties" ? e.operators.GT : e.operators.LT;
3449
- n.fail$data((0, e._)`Object.keys(${a}).length ${i} ${o}`);
3448
+ const { keyword: i, data: a, schemaCode: o } = n, u = i === "maxProperties" ? e.operators.GT : e.operators.LT;
3449
+ n.fail$data((0, e._)`Object.keys(${a}).length ${u} ${o}`);
3450
3450
  }
3451
3451
  };
3452
3452
  return pt.default = r, pt;
@@ -3455,7 +3455,7 @@ var ht = {}, on;
3455
3455
  function lo() {
3456
3456
  if (on) return ht;
3457
3457
  on = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
3458
- const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ Q(), r = /* @__PURE__ */ ee(), u = {
3458
+ const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ Q(), r = /* @__PURE__ */ ee(), i = {
3459
3459
  keyword: "required",
3460
3460
  type: "object",
3461
3461
  schemaType: "array",
@@ -3465,13 +3465,13 @@ function lo() {
3465
3465
  params: ({ params: { missingProperty: a } }) => (0, t._)`{missingProperty: ${a}}`
3466
3466
  },
3467
3467
  code(a) {
3468
- const { gen: o, schema: i, schemaCode: h, data: m, $data: v, it: N } = a, { opts: b } = N;
3469
- if (!v && i.length === 0)
3468
+ const { gen: o, schema: u, schemaCode: h, data: m, $data: v, it: N } = a, { opts: b } = N;
3469
+ if (!v && u.length === 0)
3470
3470
  return;
3471
- const c = i.length >= b.loopRequired;
3471
+ const c = u.length >= b.loopRequired;
3472
3472
  if (N.allErrors ? g() : E(), b.strictRequired) {
3473
3473
  const s = a.parentSchema.properties, { definedProperties: p } = a.it;
3474
- for (const w of i)
3474
+ for (const w of u)
3475
3475
  if ((s == null ? void 0 : s[w]) === void 0 && !p.has(w)) {
3476
3476
  const l = N.schemaEnv.baseId + N.errSchemaPath, _ = `required property "${w}" is not defined at "${l}" (strictRequired)`;
3477
3477
  (0, r.checkStrictMode)(N, _, N.opts.strictRequired);
@@ -3481,7 +3481,7 @@ function lo() {
3481
3481
  if (c || v)
3482
3482
  a.block$data(t.nil, d);
3483
3483
  else
3484
- for (const s of i)
3484
+ for (const s of u)
3485
3485
  (0, e.checkReportMissingProp)(a, s);
3486
3486
  }
3487
3487
  function E() {
@@ -3490,7 +3490,7 @@ function lo() {
3490
3490
  const p = o.let("valid", !0);
3491
3491
  a.block$data(p, () => y(s, p)), a.ok(p);
3492
3492
  } else
3493
- o.if((0, e.checkMissingProp)(a, i, s)), (0, e.reportMissingProp)(a, s), o.else();
3493
+ o.if((0, e.checkMissingProp)(a, u, s)), (0, e.reportMissingProp)(a, s), o.else();
3494
3494
  }
3495
3495
  function d() {
3496
3496
  o.forOf("prop", h, (s) => {
@@ -3506,7 +3506,7 @@ function lo() {
3506
3506
  }
3507
3507
  }
3508
3508
  };
3509
- return ht.default = u, ht;
3509
+ return ht.default = i, ht;
3510
3510
  }
3511
3511
  var mt = {}, an;
3512
3512
  function fo() {
@@ -3518,15 +3518,15 @@ function fo() {
3518
3518
  schemaType: "number",
3519
3519
  $data: !0,
3520
3520
  error: {
3521
- message({ keyword: n, schemaCode: u }) {
3521
+ message({ keyword: n, schemaCode: i }) {
3522
3522
  const a = n === "maxItems" ? "more" : "fewer";
3523
- return (0, e.str)`must NOT have ${a} than ${u} items`;
3523
+ return (0, e.str)`must NOT have ${a} than ${i} items`;
3524
3524
  },
3525
3525
  params: ({ schemaCode: n }) => (0, e._)`{limit: ${n}}`
3526
3526
  },
3527
3527
  code(n) {
3528
- const { keyword: u, data: a, schemaCode: o } = n, i = u === "maxItems" ? e.operators.GT : e.operators.LT;
3529
- n.fail$data((0, e._)`${a}.length ${i} ${o}`);
3528
+ const { keyword: i, data: a, schemaCode: o } = n, u = i === "maxItems" ? e.operators.GT : e.operators.LT;
3529
+ n.fail$data((0, e._)`${a}.length ${u} ${o}`);
3530
3530
  }
3531
3531
  };
3532
3532
  return mt.default = r, mt;
@@ -3548,34 +3548,34 @@ function po() {
3548
3548
  schemaType: "boolean",
3549
3549
  $data: !0,
3550
3550
  error: {
3551
- message: ({ params: { i: o, j: i } }) => (0, t.str)`must NOT have duplicate items (items ## ${i} and ${o} are identical)`,
3552
- params: ({ params: { i: o, j: i } }) => (0, t._)`{i: ${o}, j: ${i}}`
3551
+ message: ({ params: { i: o, j: u } }) => (0, t.str)`must NOT have duplicate items (items ## ${u} and ${o} are identical)`,
3552
+ params: ({ params: { i: o, j: u } }) => (0, t._)`{i: ${o}, j: ${u}}`
3553
3553
  },
3554
3554
  code(o) {
3555
- const { gen: i, data: h, $data: m, schema: v, parentSchema: N, schemaCode: b, it: c } = o;
3555
+ const { gen: u, data: h, $data: m, schema: v, parentSchema: N, schemaCode: b, it: c } = o;
3556
3556
  if (!m && !v)
3557
3557
  return;
3558
- const g = i.let("valid"), E = N.items ? (0, e.getSchemaTypes)(N.items) : [];
3558
+ const g = u.let("valid"), E = N.items ? (0, e.getSchemaTypes)(N.items) : [];
3559
3559
  o.block$data(g, d, (0, t._)`${b} === false`), o.ok(g);
3560
3560
  function d() {
3561
- const w = i.let("i", (0, t._)`${h}.length`), l = i.let("j");
3562
- o.setParams({ i: w, j: l }), i.assign(g, !0), i.if((0, t._)`${w} > 1`, () => (y() ? s : p)(w, l));
3561
+ const w = u.let("i", (0, t._)`${h}.length`), l = u.let("j");
3562
+ o.setParams({ i: w, j: l }), u.assign(g, !0), u.if((0, t._)`${w} > 1`, () => (y() ? s : p)(w, l));
3563
3563
  }
3564
3564
  function y() {
3565
3565
  return E.length > 0 && !E.some((w) => w === "object" || w === "array");
3566
3566
  }
3567
3567
  function s(w, l) {
3568
- const _ = i.name("item"), S = (0, e.checkDataTypes)(E, _, c.opts.strictNumbers, e.DataType.Wrong), T = i.const("indices", (0, t._)`{}`);
3569
- i.for((0, t._)`;${w}--;`, () => {
3570
- i.let(_, (0, t._)`${h}[${w}]`), i.if(S, (0, t._)`continue`), E.length > 1 && i.if((0, t._)`typeof ${_} == "string"`, (0, t._)`${_} += "_"`), i.if((0, t._)`typeof ${T}[${_}] == "number"`, () => {
3571
- i.assign(l, (0, t._)`${T}[${_}]`), o.error(), i.assign(g, !1).break();
3568
+ const _ = u.name("item"), S = (0, e.checkDataTypes)(E, _, c.opts.strictNumbers, e.DataType.Wrong), T = u.const("indices", (0, t._)`{}`);
3569
+ u.for((0, t._)`;${w}--;`, () => {
3570
+ u.let(_, (0, t._)`${h}[${w}]`), u.if(S, (0, t._)`continue`), E.length > 1 && u.if((0, t._)`typeof ${_} == "string"`, (0, t._)`${_} += "_"`), u.if((0, t._)`typeof ${T}[${_}] == "number"`, () => {
3571
+ u.assign(l, (0, t._)`${T}[${_}]`), o.error(), u.assign(g, !1).break();
3572
3572
  }).code((0, t._)`${T}[${_}] = ${w}`);
3573
3573
  });
3574
3574
  }
3575
3575
  function p(w, l) {
3576
- const _ = (0, r.useFunc)(i, n.default), S = i.name("outer");
3577
- i.label(S).for((0, t._)`;${w}--;`, () => i.for((0, t._)`${l} = ${w}; ${l}--;`, () => i.if((0, t._)`${_}(${h}[${w}], ${h}[${l}])`, () => {
3578
- o.error(), i.assign(g, !1).break(S);
3576
+ const _ = (0, r.useFunc)(u, n.default), S = u.name("outer");
3577
+ u.label(S).for((0, t._)`;${w}--;`, () => u.for((0, t._)`${l} = ${w}; ${l}--;`, () => u.if((0, t._)`${_}(${h}[${w}], ${h}[${l}])`, () => {
3578
+ o.error(), u.assign(g, !1).break(S);
3579
3579
  })));
3580
3580
  }
3581
3581
  }
@@ -3586,7 +3586,7 @@ var vt = {}, ln;
3586
3586
  function ho() {
3587
3587
  if (ln) return vt;
3588
3588
  ln = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
3589
- const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ yr(), u = {
3589
+ const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ yr(), i = {
3590
3590
  keyword: "const",
3591
3591
  $data: !0,
3592
3592
  error: {
@@ -3594,17 +3594,17 @@ function ho() {
3594
3594
  params: ({ schemaCode: a }) => (0, e._)`{allowedValue: ${a}}`
3595
3595
  },
3596
3596
  code(a) {
3597
- const { gen: o, data: i, $data: h, schemaCode: m, schema: v } = a;
3598
- h || v && typeof v == "object" ? a.fail$data((0, e._)`!${(0, t.useFunc)(o, r.default)}(${i}, ${m})`) : a.fail((0, e._)`${v} !== ${i}`);
3597
+ const { gen: o, data: u, $data: h, schemaCode: m, schema: v } = a;
3598
+ h || v && typeof v == "object" ? a.fail$data((0, e._)`!${(0, t.useFunc)(o, r.default)}(${u}, ${m})`) : a.fail((0, e._)`${v} !== ${u}`);
3599
3599
  }
3600
3600
  };
3601
- return vt.default = u, vt;
3601
+ return vt.default = i, vt;
3602
3602
  }
3603
3603
  var _t = {}, dn;
3604
3604
  function mo() {
3605
3605
  if (dn) return _t;
3606
3606
  dn = 1, Object.defineProperty(_t, "__esModule", { value: !0 });
3607
- const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ yr(), u = {
3607
+ const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ ee(), r = /* @__PURE__ */ yr(), i = {
3608
3608
  keyword: "enum",
3609
3609
  schemaType: "array",
3610
3610
  $data: !0,
@@ -3613,7 +3613,7 @@ function mo() {
3613
3613
  params: ({ schemaCode: a }) => (0, e._)`{allowedValues: ${a}}`
3614
3614
  },
3615
3615
  code(a) {
3616
- const { gen: o, data: i, $data: h, schema: m, schemaCode: v, it: N } = a;
3616
+ const { gen: o, data: u, $data: h, schema: m, schemaCode: v, it: N } = a;
3617
3617
  if (!h && m.length === 0)
3618
3618
  throw new Error("enum must have non-empty array");
3619
3619
  const b = m.length >= N.opts.loopEnum;
@@ -3630,21 +3630,21 @@ function mo() {
3630
3630
  }
3631
3631
  a.pass(E);
3632
3632
  function d() {
3633
- o.assign(E, !1), o.forOf("v", v, (s) => o.if((0, e._)`${g()}(${i}, ${s})`, () => o.assign(E, !0).break()));
3633
+ o.assign(E, !1), o.forOf("v", v, (s) => o.if((0, e._)`${g()}(${u}, ${s})`, () => o.assign(E, !0).break()));
3634
3634
  }
3635
3635
  function y(s, p) {
3636
3636
  const w = m[p];
3637
- return typeof w == "object" && w !== null ? (0, e._)`${g()}(${i}, ${s}[${p}])` : (0, e._)`${i} === ${w}`;
3637
+ return typeof w == "object" && w !== null ? (0, e._)`${g()}(${u}, ${s}[${p}])` : (0, e._)`${u} === ${w}`;
3638
3638
  }
3639
3639
  }
3640
3640
  };
3641
- return _t.default = u, _t;
3641
+ return _t.default = i, _t;
3642
3642
  }
3643
3643
  var fn;
3644
3644
  function yo() {
3645
3645
  if (fn) return it;
3646
3646
  fn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3647
- const e = /* @__PURE__ */ so(), t = /* @__PURE__ */ oo(), r = /* @__PURE__ */ io(), n = /* @__PURE__ */ uo(), u = /* @__PURE__ */ co(), a = /* @__PURE__ */ lo(), o = /* @__PURE__ */ fo(), i = /* @__PURE__ */ po(), h = /* @__PURE__ */ ho(), m = /* @__PURE__ */ mo(), v = [
3647
+ const e = /* @__PURE__ */ so(), t = /* @__PURE__ */ oo(), r = /* @__PURE__ */ io(), n = /* @__PURE__ */ uo(), i = /* @__PURE__ */ co(), a = /* @__PURE__ */ lo(), o = /* @__PURE__ */ fo(), u = /* @__PURE__ */ po(), h = /* @__PURE__ */ ho(), m = /* @__PURE__ */ mo(), v = [
3648
3648
  // number
3649
3649
  e.default,
3650
3650
  t.default,
@@ -3652,11 +3652,11 @@ function yo() {
3652
3652
  r.default,
3653
3653
  n.default,
3654
3654
  // object
3655
- u.default,
3655
+ i.default,
3656
3656
  a.default,
3657
3657
  // array
3658
3658
  o.default,
3659
- i.default,
3659
+ u.default,
3660
3660
  // any
3661
3661
  { keyword: "type", schemaType: ["string", "array"] },
3662
3662
  { keyword: "nullable", schemaType: "boolean" },
@@ -3679,31 +3679,31 @@ function Qn() {
3679
3679
  params: ({ params: { len: a } }) => (0, e._)`{limit: ${a}}`
3680
3680
  },
3681
3681
  code(a) {
3682
- const { parentSchema: o, it: i } = a, { items: h } = o;
3682
+ const { parentSchema: o, it: u } = a, { items: h } = o;
3683
3683
  if (!Array.isArray(h)) {
3684
- (0, t.checkStrictMode)(i, '"additionalItems" is ignored when "items" is not an array of schemas');
3684
+ (0, t.checkStrictMode)(u, '"additionalItems" is ignored when "items" is not an array of schemas');
3685
3685
  return;
3686
3686
  }
3687
- u(a, h);
3687
+ i(a, h);
3688
3688
  }
3689
3689
  };
3690
- function u(a, o) {
3691
- const { gen: i, schema: h, data: m, keyword: v, it: N } = a;
3690
+ function i(a, o) {
3691
+ const { gen: u, schema: h, data: m, keyword: v, it: N } = a;
3692
3692
  N.items = !0;
3693
- const b = i.const("len", (0, e._)`${m}.length`);
3693
+ const b = u.const("len", (0, e._)`${m}.length`);
3694
3694
  if (h === !1)
3695
3695
  a.setParams({ len: o.length }), a.pass((0, e._)`${b} <= ${o.length}`);
3696
3696
  else if (typeof h == "object" && !(0, t.alwaysValidSchema)(N, h)) {
3697
- const g = i.var("valid", (0, e._)`${b} <= ${o.length}`);
3698
- i.if((0, e.not)(g), () => c(g)), a.ok(g);
3697
+ const g = u.var("valid", (0, e._)`${b} <= ${o.length}`);
3698
+ u.if((0, e.not)(g), () => c(g)), a.ok(g);
3699
3699
  }
3700
3700
  function c(g) {
3701
- i.forRange("i", o.length, b, (E) => {
3702
- a.subschema({ keyword: v, dataProp: E, dataPropType: t.Type.Num }, g), N.allErrors || i.if((0, e.not)(g), () => i.break());
3701
+ u.forRange("i", o.length, b, (E) => {
3702
+ a.subschema({ keyword: v, dataProp: E, dataPropType: t.Type.Num }, g), N.allErrors || u.if((0, e.not)(g), () => u.break());
3703
3703
  });
3704
3704
  }
3705
3705
  }
3706
- return Ce.validateAdditionalItems = u, Ce.default = n, Ce;
3706
+ return Ce.validateAdditionalItems = i, Ce.default = n, Ce;
3707
3707
  }
3708
3708
  var bt = {}, ze = {}, hn;
3709
3709
  function Xn() {
@@ -3715,17 +3715,17 @@ function Xn() {
3715
3715
  schemaType: ["object", "array", "boolean"],
3716
3716
  before: "uniqueItems",
3717
3717
  code(a) {
3718
- const { schema: o, it: i } = a;
3718
+ const { schema: o, it: u } = a;
3719
3719
  if (Array.isArray(o))
3720
- return u(a, "additionalItems", o);
3721
- i.items = !0, !(0, t.alwaysValidSchema)(i, o) && a.ok((0, r.validateArray)(a));
3720
+ return i(a, "additionalItems", o);
3721
+ u.items = !0, !(0, t.alwaysValidSchema)(u, o) && a.ok((0, r.validateArray)(a));
3722
3722
  }
3723
3723
  };
3724
- function u(a, o, i = a.schema) {
3724
+ function i(a, o, u = a.schema) {
3725
3725
  const { gen: h, parentSchema: m, data: v, keyword: N, it: b } = a;
3726
- E(m), b.opts.unevaluated && i.length && b.items !== !0 && (b.items = t.mergeEvaluated.items(h, i.length, b.items));
3726
+ E(m), b.opts.unevaluated && u.length && b.items !== !0 && (b.items = t.mergeEvaluated.items(h, u.length, b.items));
3727
3727
  const c = h.name("valid"), g = h.const("len", (0, e._)`${v}.length`);
3728
- i.forEach((d, y) => {
3728
+ u.forEach((d, y) => {
3729
3729
  (0, t.alwaysValidSchema)(b, d) || (h.if((0, e._)`${g} > ${y}`, () => a.subschema({
3730
3730
  keyword: N,
3731
3731
  schemaProp: y,
@@ -3733,14 +3733,14 @@ function Xn() {
3733
3733
  }, c)), a.ok(c));
3734
3734
  });
3735
3735
  function E(d) {
3736
- const { opts: y, errSchemaPath: s } = b, p = i.length, w = p === d.minItems && (p === d.maxItems || d[o] === !1);
3736
+ const { opts: y, errSchemaPath: s } = b, p = u.length, w = p === d.minItems && (p === d.maxItems || d[o] === !1);
3737
3737
  if (y.strictTuples && !w) {
3738
3738
  const l = `"${N}" is ${p}-tuple, but minItems or maxItems/${o} are not specified or different at path "${s}"`;
3739
3739
  (0, t.checkStrictMode)(b, l, y.strictTuples);
3740
3740
  }
3741
3741
  }
3742
3742
  }
3743
- return ze.validateTuple = u, ze.default = n, ze;
3743
+ return ze.validateTuple = i, ze.default = n, ze;
3744
3744
  }
3745
3745
  var mn;
3746
3746
  function go() {
@@ -3769,8 +3769,8 @@ function vo() {
3769
3769
  params: ({ params: { len: o } }) => (0, e._)`{limit: ${o}}`
3770
3770
  },
3771
3771
  code(o) {
3772
- const { schema: i, parentSchema: h, it: m } = o, { prefixItems: v } = h;
3773
- m.items = !0, !(0, t.alwaysValidSchema)(m, i) && (v ? (0, n.validateAdditionalItems)(o, v) : o.ok((0, r.validateArray)(o)));
3772
+ const { schema: u, parentSchema: h, it: m } = o, { prefixItems: v } = h;
3773
+ m.items = !0, !(0, t.alwaysValidSchema)(m, u) && (v ? (0, n.validateAdditionalItems)(o, v) : o.ok((0, r.validateArray)(o)));
3774
3774
  }
3775
3775
  };
3776
3776
  return wt.default = a, wt;
@@ -3786,38 +3786,38 @@ function _o() {
3786
3786
  before: "uniqueItems",
3787
3787
  trackErrors: !0,
3788
3788
  error: {
3789
- message: ({ params: { min: u, max: a } }) => a === void 0 ? (0, e.str)`must contain at least ${u} valid item(s)` : (0, e.str)`must contain at least ${u} and no more than ${a} valid item(s)`,
3790
- params: ({ params: { min: u, max: a } }) => a === void 0 ? (0, e._)`{minContains: ${u}}` : (0, e._)`{minContains: ${u}, maxContains: ${a}}`
3789
+ message: ({ params: { min: i, max: a } }) => a === void 0 ? (0, e.str)`must contain at least ${i} valid item(s)` : (0, e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,
3790
+ params: ({ params: { min: i, max: a } }) => a === void 0 ? (0, e._)`{minContains: ${i}}` : (0, e._)`{minContains: ${i}, maxContains: ${a}}`
3791
3791
  },
3792
- code(u) {
3793
- const { gen: a, schema: o, parentSchema: i, data: h, it: m } = u;
3792
+ code(i) {
3793
+ const { gen: a, schema: o, parentSchema: u, data: h, it: m } = i;
3794
3794
  let v, N;
3795
- const { minContains: b, maxContains: c } = i;
3795
+ const { minContains: b, maxContains: c } = u;
3796
3796
  m.opts.next ? (v = b === void 0 ? 1 : b, N = c) : v = 1;
3797
3797
  const g = a.const("len", (0, e._)`${h}.length`);
3798
- if (u.setParams({ min: v, max: N }), N === void 0 && v === 0) {
3798
+ if (i.setParams({ min: v, max: N }), N === void 0 && v === 0) {
3799
3799
  (0, t.checkStrictMode)(m, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3800
3800
  return;
3801
3801
  }
3802
3802
  if (N !== void 0 && v > N) {
3803
- (0, t.checkStrictMode)(m, '"minContains" > "maxContains" is always invalid'), u.fail();
3803
+ (0, t.checkStrictMode)(m, '"minContains" > "maxContains" is always invalid'), i.fail();
3804
3804
  return;
3805
3805
  }
3806
3806
  if ((0, t.alwaysValidSchema)(m, o)) {
3807
3807
  let p = (0, e._)`${g} >= ${v}`;
3808
- N !== void 0 && (p = (0, e._)`${p} && ${g} <= ${N}`), u.pass(p);
3808
+ N !== void 0 && (p = (0, e._)`${p} && ${g} <= ${N}`), i.pass(p);
3809
3809
  return;
3810
3810
  }
3811
3811
  m.items = !0;
3812
3812
  const E = a.name("valid");
3813
- N === void 0 && v === 1 ? y(E, () => a.if(E, () => a.break())) : v === 0 ? (a.let(E, !0), N !== void 0 && a.if((0, e._)`${h}.length > 0`, d)) : (a.let(E, !1), d()), u.result(E, () => u.reset());
3813
+ N === void 0 && v === 1 ? y(E, () => a.if(E, () => a.break())) : v === 0 ? (a.let(E, !0), N !== void 0 && a.if((0, e._)`${h}.length > 0`, d)) : (a.let(E, !1), d()), i.result(E, () => i.reset());
3814
3814
  function d() {
3815
3815
  const p = a.name("_valid"), w = a.let("count", 0);
3816
3816
  y(p, () => a.if(p, () => s(w)));
3817
3817
  }
3818
3818
  function y(p, w) {
3819
3819
  a.forRange("i", 0, g, (l) => {
3820
- u.subschema({
3820
+ i.subschema({
3821
3821
  keyword: "contains",
3822
3822
  dataProp: l,
3823
3823
  dataPropType: t.Type.Num,
@@ -3848,14 +3848,14 @@ function $o() {
3848
3848
  deps: ${v}}`
3849
3849
  // TODO change to reference
3850
3850
  };
3851
- const u = {
3851
+ const i = {
3852
3852
  keyword: "dependencies",
3853
3853
  type: "object",
3854
3854
  schemaType: "object",
3855
3855
  error: e.error,
3856
3856
  code(h) {
3857
3857
  const [m, v] = a(h);
3858
- o(h, m), i(h, v);
3858
+ o(h, m), u(h, v);
3859
3859
  }
3860
3860
  };
3861
3861
  function a({ schema: h }) {
@@ -3889,7 +3889,7 @@ function $o() {
3889
3889
  }
3890
3890
  }
3891
3891
  e.validatePropertyDeps = o;
3892
- function i(h, m = h.schema) {
3892
+ function u(h, m = h.schema) {
3893
3893
  const { gen: v, data: N, keyword: b, it: c } = h, g = v.name("valid");
3894
3894
  for (const E in m)
3895
3895
  (0, r.alwaysValidSchema)(c, m[E]) || (v.if(
@@ -3902,7 +3902,7 @@ function $o() {
3902
3902
  // TODO var
3903
3903
  ), h.ok(g));
3904
3904
  }
3905
- e.validateSchemaDeps = i, e.default = u;
3905
+ e.validateSchemaDeps = u, e.default = i;
3906
3906
  })(or)), or;
3907
3907
  }
3908
3908
  var Pt = {}, _n;
@@ -3915,24 +3915,24 @@ function bo() {
3915
3915
  schemaType: ["object", "boolean"],
3916
3916
  error: {
3917
3917
  message: "property name must be valid",
3918
- params: ({ params: u }) => (0, e._)`{propertyName: ${u.propertyName}}`
3918
+ params: ({ params: i }) => (0, e._)`{propertyName: ${i.propertyName}}`
3919
3919
  },
3920
- code(u) {
3921
- const { gen: a, schema: o, data: i, it: h } = u;
3920
+ code(i) {
3921
+ const { gen: a, schema: o, data: u, it: h } = i;
3922
3922
  if ((0, t.alwaysValidSchema)(h, o))
3923
3923
  return;
3924
3924
  const m = a.name("valid");
3925
- a.forIn("key", i, (v) => {
3926
- u.setParams({ propertyName: v }), u.subschema({
3925
+ a.forIn("key", u, (v) => {
3926
+ i.setParams({ propertyName: v }), i.subschema({
3927
3927
  keyword: "propertyNames",
3928
3928
  data: v,
3929
3929
  dataTypes: ["string"],
3930
3930
  propertyName: v,
3931
3931
  compositeRule: !0
3932
3932
  }, m), a.if((0, e.not)(m), () => {
3933
- u.error(!0), h.allErrors || a.break();
3933
+ i.error(!0), h.allErrors || a.break();
3934
3934
  });
3935
- }), u.ok(m);
3935
+ }), i.ok(m);
3936
3936
  }
3937
3937
  };
3938
3938
  return Pt.default = n, Pt;
@@ -3952,7 +3952,7 @@ function xn() {
3952
3952
  params: ({ params: o }) => (0, t._)`{additionalProperty: ${o.additionalProperty}}`
3953
3953
  },
3954
3954
  code(o) {
3955
- const { gen: i, schema: h, parentSchema: m, data: v, errsCount: N, it: b } = o;
3955
+ const { gen: u, schema: h, parentSchema: m, data: v, errsCount: N, it: b } = o;
3956
3956
  if (!N)
3957
3957
  throw new Error("ajv implementation error");
3958
3958
  const { allErrors: c, opts: g } = b;
@@ -3961,20 +3961,20 @@ function xn() {
3961
3961
  const E = (0, e.allSchemaProperties)(m.properties), d = (0, e.allSchemaProperties)(m.patternProperties);
3962
3962
  y(), o.ok((0, t._)`${N} === ${r.default.errors}`);
3963
3963
  function y() {
3964
- i.forIn("key", v, (_) => {
3965
- !E.length && !d.length ? w(_) : i.if(s(_), () => w(_));
3964
+ u.forIn("key", v, (_) => {
3965
+ !E.length && !d.length ? w(_) : u.if(s(_), () => w(_));
3966
3966
  });
3967
3967
  }
3968
3968
  function s(_) {
3969
3969
  let S;
3970
3970
  if (E.length > 8) {
3971
3971
  const T = (0, n.schemaRefOrVal)(b, m.properties, "properties");
3972
- S = (0, e.isOwnProperty)(i, T, _);
3972
+ S = (0, e.isOwnProperty)(u, T, _);
3973
3973
  } else E.length ? S = (0, t.or)(...E.map((T) => (0, t._)`${_} === ${T}`)) : S = t.nil;
3974
3974
  return d.length && (S = (0, t.or)(S, ...d.map((T) => (0, t._)`${(0, e.usePattern)(o, T)}.test(${_})`))), (0, t.not)(S);
3975
3975
  }
3976
3976
  function p(_) {
3977
- i.code((0, t._)`delete ${v}[${_}]`);
3977
+ u.code((0, t._)`delete ${v}[${_}]`);
3978
3978
  }
3979
3979
  function w(_) {
3980
3980
  if (g.removeAdditional === "all" || g.removeAdditional && h === !1) {
@@ -3982,14 +3982,14 @@ function xn() {
3982
3982
  return;
3983
3983
  }
3984
3984
  if (h === !1) {
3985
- o.setParams({ additionalProperty: _ }), o.error(), c || i.break();
3985
+ o.setParams({ additionalProperty: _ }), o.error(), c || u.break();
3986
3986
  return;
3987
3987
  }
3988
3988
  if (typeof h == "object" && !(0, n.alwaysValidSchema)(b, h)) {
3989
- const S = i.name("valid");
3990
- g.removeAdditional === "failing" ? (l(_, S, !1), i.if((0, t.not)(S), () => {
3989
+ const S = u.name("valid");
3990
+ g.removeAdditional === "failing" ? (l(_, S, !1), u.if((0, t.not)(S), () => {
3991
3991
  o.reset(), p(_);
3992
- })) : (l(_, S), c || i.if((0, t.not)(S), () => i.break()));
3992
+ })) : (l(_, S), c || u.if((0, t.not)(S), () => u.break()));
3993
3993
  }
3994
3994
  }
3995
3995
  function l(_, S, T) {
@@ -4012,25 +4012,25 @@ var Nt = {}, bn;
4012
4012
  function wo() {
4013
4013
  if (bn) return Nt;
4014
4014
  bn = 1, Object.defineProperty(Nt, "__esModule", { value: !0 });
4015
- const e = /* @__PURE__ */ Xe(), t = /* @__PURE__ */ be(), r = /* @__PURE__ */ ee(), n = /* @__PURE__ */ xn(), u = {
4015
+ const e = /* @__PURE__ */ Xe(), t = /* @__PURE__ */ be(), r = /* @__PURE__ */ ee(), n = /* @__PURE__ */ xn(), i = {
4016
4016
  keyword: "properties",
4017
4017
  type: "object",
4018
4018
  schemaType: "object",
4019
4019
  code(a) {
4020
- const { gen: o, schema: i, parentSchema: h, data: m, it: v } = a;
4020
+ const { gen: o, schema: u, parentSchema: h, data: m, it: v } = a;
4021
4021
  v.opts.removeAdditional === "all" && h.additionalProperties === void 0 && n.default.code(new e.KeywordCxt(v, n.default, "additionalProperties"));
4022
- const N = (0, t.allSchemaProperties)(i);
4022
+ const N = (0, t.allSchemaProperties)(u);
4023
4023
  for (const d of N)
4024
4024
  v.definedProperties.add(d);
4025
4025
  v.opts.unevaluated && N.length && v.props !== !0 && (v.props = r.mergeEvaluated.props(o, (0, r.toHash)(N), v.props));
4026
- const b = N.filter((d) => !(0, r.alwaysValidSchema)(v, i[d]));
4026
+ const b = N.filter((d) => !(0, r.alwaysValidSchema)(v, u[d]));
4027
4027
  if (b.length === 0)
4028
4028
  return;
4029
4029
  const c = o.name("valid");
4030
4030
  for (const d of b)
4031
4031
  g(d) ? E(d) : (o.if((0, t.propertyInData)(o, m, d, v.opts.ownProperties)), E(d), v.allErrors || o.else().var(c, !0), o.endIf()), a.it.definedProperties.add(d), a.ok(c);
4032
4032
  function g(d) {
4033
- return v.opts.useDefaults && !v.compositeRule && i[d].default !== void 0;
4033
+ return v.opts.useDefaults && !v.compositeRule && u[d].default !== void 0;
4034
4034
  }
4035
4035
  function E(d) {
4036
4036
  a.subschema({
@@ -4041,18 +4041,18 @@ function wo() {
4041
4041
  }
4042
4042
  }
4043
4043
  };
4044
- return Nt.default = u, Nt;
4044
+ return Nt.default = i, Nt;
4045
4045
  }
4046
4046
  var Ot = {}, wn;
4047
4047
  function Eo() {
4048
4048
  if (wn) return Ot;
4049
4049
  wn = 1, Object.defineProperty(Ot, "__esModule", { value: !0 });
4050
- const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ Q(), r = /* @__PURE__ */ ee(), n = /* @__PURE__ */ ee(), u = {
4050
+ const e = /* @__PURE__ */ be(), t = /* @__PURE__ */ Q(), r = /* @__PURE__ */ ee(), n = /* @__PURE__ */ ee(), i = {
4051
4051
  keyword: "patternProperties",
4052
4052
  type: "object",
4053
4053
  schemaType: "object",
4054
4054
  code(a) {
4055
- const { gen: o, schema: i, data: h, parentSchema: m, it: v } = a, { opts: N } = v, b = (0, e.allSchemaProperties)(i), c = b.filter((w) => (0, r.alwaysValidSchema)(v, i[w]));
4055
+ const { gen: o, schema: u, data: h, parentSchema: m, it: v } = a, { opts: N } = v, b = (0, e.allSchemaProperties)(u), c = b.filter((w) => (0, r.alwaysValidSchema)(v, u[w]));
4056
4056
  if (b.length === 0 || c.length === b.length && (!v.opts.unevaluated || v.props === !0))
4057
4057
  return;
4058
4058
  const g = N.strictSchema && !N.allowMatchingProperties && m.properties, E = o.name("valid");
@@ -4082,7 +4082,7 @@ function Eo() {
4082
4082
  }
4083
4083
  }
4084
4084
  };
4085
- return Ot.default = u, Ot;
4085
+ return Ot.default = i, Ot;
4086
4086
  }
4087
4087
  var Rt = {}, En;
4088
4088
  function Po() {
@@ -4093,8 +4093,8 @@ function Po() {
4093
4093
  schemaType: ["object", "boolean"],
4094
4094
  trackErrors: !0,
4095
4095
  code(r) {
4096
- const { gen: n, schema: u, it: a } = r;
4097
- if ((0, e.alwaysValidSchema)(a, u)) {
4096
+ const { gen: n, schema: i, it: a } = r;
4097
+ if ((0, e.alwaysValidSchema)(a, i)) {
4098
4098
  r.fail();
4099
4099
  return;
4100
4100
  }
@@ -4133,25 +4133,25 @@ function No() {
4133
4133
  trackErrors: !0,
4134
4134
  error: {
4135
4135
  message: "must match exactly one schema in oneOf",
4136
- params: ({ params: u }) => (0, e._)`{passingSchemas: ${u.passing}}`
4136
+ params: ({ params: i }) => (0, e._)`{passingSchemas: ${i.passing}}`
4137
4137
  },
4138
- code(u) {
4139
- const { gen: a, schema: o, parentSchema: i, it: h } = u;
4138
+ code(i) {
4139
+ const { gen: a, schema: o, parentSchema: u, it: h } = i;
4140
4140
  if (!Array.isArray(o))
4141
4141
  throw new Error("ajv implementation error");
4142
- if (h.opts.discriminator && i.discriminator)
4142
+ if (h.opts.discriminator && u.discriminator)
4143
4143
  return;
4144
4144
  const m = o, v = a.let("valid", !1), N = a.let("passing", null), b = a.name("_valid");
4145
- u.setParams({ passing: N }), a.block(c), u.result(v, () => u.reset(), () => u.error(!0));
4145
+ i.setParams({ passing: N }), a.block(c), i.result(v, () => i.reset(), () => i.error(!0));
4146
4146
  function c() {
4147
4147
  m.forEach((g, E) => {
4148
4148
  let d;
4149
- (0, t.alwaysValidSchema)(h, g) ? a.var(b, !0) : d = u.subschema({
4149
+ (0, t.alwaysValidSchema)(h, g) ? a.var(b, !0) : d = i.subschema({
4150
4150
  keyword: "oneOf",
4151
4151
  schemaProp: E,
4152
4152
  compositeRule: !0
4153
4153
  }, b), E > 0 && a.if((0, e._)`${b} && ${v}`).assign(v, !1).assign(N, (0, e._)`[${N}, ${E}]`).else(), a.if(b, () => {
4154
- a.assign(v, !0), a.assign(N, E), d && u.mergeEvaluated(d, e.Name);
4154
+ a.assign(v, !0), a.assign(N, E), d && i.mergeEvaluated(d, e.Name);
4155
4155
  });
4156
4156
  });
4157
4157
  }
@@ -4167,12 +4167,12 @@ function Oo() {
4167
4167
  keyword: "allOf",
4168
4168
  schemaType: "array",
4169
4169
  code(r) {
4170
- const { gen: n, schema: u, it: a } = r;
4171
- if (!Array.isArray(u))
4170
+ const { gen: n, schema: i, it: a } = r;
4171
+ if (!Array.isArray(i))
4172
4172
  throw new Error("ajv implementation error");
4173
4173
  const o = n.name("valid");
4174
- u.forEach((i, h) => {
4175
- if ((0, e.alwaysValidSchema)(a, i))
4174
+ i.forEach((u, h) => {
4175
+ if ((0, e.alwaysValidSchema)(a, u))
4176
4176
  return;
4177
4177
  const m = r.subschema({ keyword: "allOf", schemaProp: h }, o);
4178
4178
  r.ok(o), r.mergeEvaluated(m);
@@ -4194,9 +4194,9 @@ function Ro() {
4194
4194
  params: ({ params: a }) => (0, e._)`{failingKeyword: ${a.ifClause}}`
4195
4195
  },
4196
4196
  code(a) {
4197
- const { gen: o, parentSchema: i, it: h } = a;
4198
- i.then === void 0 && i.else === void 0 && (0, t.checkStrictMode)(h, '"if" without "then" and "else" is ignored');
4199
- const m = u(h, "then"), v = u(h, "else");
4197
+ const { gen: o, parentSchema: u, it: h } = a;
4198
+ u.then === void 0 && u.else === void 0 && (0, t.checkStrictMode)(h, '"if" without "then" and "else" is ignored');
4199
+ const m = i(h, "then"), v = i(h, "else");
4200
4200
  if (!m && !v)
4201
4201
  return;
4202
4202
  const N = o.let("valid", !0), b = o.name("_valid");
@@ -4222,9 +4222,9 @@ function Ro() {
4222
4222
  }
4223
4223
  }
4224
4224
  };
4225
- function u(a, o) {
4226
- const i = a.schema[o];
4227
- return i !== void 0 && !(0, t.alwaysValidSchema)(a, i);
4225
+ function i(a, o) {
4226
+ const u = a.schema[o];
4227
+ return u !== void 0 && !(0, t.alwaysValidSchema)(a, u);
4228
4228
  }
4229
4229
  return qt.default = n, qt;
4230
4230
  }
@@ -4235,8 +4235,8 @@ function Io() {
4235
4235
  const e = /* @__PURE__ */ ee(), t = {
4236
4236
  keyword: ["then", "else"],
4237
4237
  schemaType: ["object", "boolean"],
4238
- code({ keyword: r, parentSchema: n, it: u }) {
4239
- n.if === void 0 && (0, e.checkStrictMode)(u, `"${r}" without "if" is ignored`);
4238
+ code({ keyword: r, parentSchema: n, it: i }) {
4239
+ n.if === void 0 && (0, e.checkStrictMode)(i, `"${r}" without "if" is ignored`);
4240
4240
  }
4241
4241
  };
4242
4242
  return Tt.default = t, Tt;
@@ -4245,7 +4245,7 @@ var In;
4245
4245
  function jo() {
4246
4246
  if (In) return $t;
4247
4247
  In = 1, Object.defineProperty($t, "__esModule", { value: !0 });
4248
- const e = /* @__PURE__ */ Qn(), t = /* @__PURE__ */ go(), r = /* @__PURE__ */ Xn(), n = /* @__PURE__ */ vo(), u = /* @__PURE__ */ _o(), a = /* @__PURE__ */ $o(), o = /* @__PURE__ */ bo(), i = /* @__PURE__ */ xn(), h = /* @__PURE__ */ wo(), m = /* @__PURE__ */ Eo(), v = /* @__PURE__ */ Po(), N = /* @__PURE__ */ So(), b = /* @__PURE__ */ No(), c = /* @__PURE__ */ Oo(), g = /* @__PURE__ */ Ro(), E = /* @__PURE__ */ Io();
4248
+ const e = /* @__PURE__ */ Qn(), t = /* @__PURE__ */ go(), r = /* @__PURE__ */ Xn(), n = /* @__PURE__ */ vo(), i = /* @__PURE__ */ _o(), a = /* @__PURE__ */ $o(), o = /* @__PURE__ */ bo(), u = /* @__PURE__ */ xn(), h = /* @__PURE__ */ wo(), m = /* @__PURE__ */ Eo(), v = /* @__PURE__ */ Po(), N = /* @__PURE__ */ So(), b = /* @__PURE__ */ No(), c = /* @__PURE__ */ Oo(), g = /* @__PURE__ */ Ro(), E = /* @__PURE__ */ Io();
4249
4249
  function d(y = !1) {
4250
4250
  const s = [
4251
4251
  // any
@@ -4257,12 +4257,12 @@ function jo() {
4257
4257
  E.default,
4258
4258
  // object
4259
4259
  o.default,
4260
- i.default,
4260
+ u.default,
4261
4261
  a.default,
4262
4262
  h.default,
4263
4263
  m.default
4264
4264
  ];
4265
- return y ? s.push(t.default, n.default) : s.push(e.default, r.default), s.push(u.default), s;
4265
+ return y ? s.push(t.default, n.default) : s.push(e.default, r.default), s.push(i.default), s;
4266
4266
  }
4267
4267
  return $t.default = d, $t;
4268
4268
  }
@@ -4279,11 +4279,11 @@ function ko() {
4279
4279
  message: ({ schemaCode: n }) => (0, e.str)`must match format "${n}"`,
4280
4280
  params: ({ schemaCode: n }) => (0, e._)`{format: ${n}}`
4281
4281
  },
4282
- code(n, u) {
4283
- const { gen: a, data: o, $data: i, schema: h, schemaCode: m, it: v } = n, { opts: N, errSchemaPath: b, schemaEnv: c, self: g } = v;
4282
+ code(n, i) {
4283
+ const { gen: a, data: o, $data: u, schema: h, schemaCode: m, it: v } = n, { opts: N, errSchemaPath: b, schemaEnv: c, self: g } = v;
4284
4284
  if (!N.validateFormats)
4285
4285
  return;
4286
- i ? E() : d();
4286
+ u ? E() : d();
4287
4287
  function E() {
4288
4288
  const y = a.scopeValue("formats", {
4289
4289
  ref: g.formats,
@@ -4295,7 +4295,7 @@ function ko() {
4295
4295
  }
4296
4296
  function _() {
4297
4297
  const S = c.$async ? (0, e._)`(${s}.async ? await ${w}(${o}) : ${w}(${o}))` : (0, e._)`${w}(${o})`, T = (0, e._)`(typeof ${w} == "function" ? ${S} : ${w}.test(${o}))`;
4298
- return (0, e._)`${w} && ${w} !== true && ${p} === ${u} && !${T}`;
4298
+ return (0, e._)`${w} && ${w} !== true && ${p} === ${i} && !${T}`;
4299
4299
  }
4300
4300
  }
4301
4301
  function d() {
@@ -4307,7 +4307,7 @@ function ko() {
4307
4307
  if (y === !0)
4308
4308
  return;
4309
4309
  const [s, p, w] = _(y);
4310
- s === u && n.pass(S());
4310
+ s === i && n.pass(S());
4311
4311
  function l() {
4312
4312
  if (N.strictSchema === !1) {
4313
4313
  g.logger.warn(T());
@@ -4362,13 +4362,13 @@ var Tn;
4362
4362
  function Ao() {
4363
4363
  if (Tn) return st;
4364
4364
  Tn = 1, Object.defineProperty(st, "__esModule", { value: !0 });
4365
- const e = /* @__PURE__ */ no(), t = /* @__PURE__ */ yo(), r = /* @__PURE__ */ jo(), n = /* @__PURE__ */ qo(), u = /* @__PURE__ */ To(), a = [
4365
+ const e = /* @__PURE__ */ no(), t = /* @__PURE__ */ yo(), r = /* @__PURE__ */ jo(), n = /* @__PURE__ */ qo(), i = /* @__PURE__ */ To(), a = [
4366
4366
  e.default,
4367
4367
  t.default,
4368
4368
  (0, r.default)(),
4369
4369
  n.default,
4370
- u.metadataVocabulary,
4371
- u.contentVocabulary
4370
+ i.metadataVocabulary,
4371
+ i.contentVocabulary
4372
4372
  ];
4373
4373
  return st.default = a, st;
4374
4374
  }
@@ -4385,16 +4385,16 @@ var Mn;
4385
4385
  function Vo() {
4386
4386
  if (Mn) return Vt;
4387
4387
  Mn = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
4388
- const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ Mo(), r = /* @__PURE__ */ mr(), n = /* @__PURE__ */ Bt(), u = /* @__PURE__ */ ee(), o = {
4388
+ const e = /* @__PURE__ */ Q(), t = /* @__PURE__ */ Mo(), r = /* @__PURE__ */ mr(), n = /* @__PURE__ */ Bt(), i = /* @__PURE__ */ ee(), o = {
4389
4389
  keyword: "discriminator",
4390
4390
  type: "object",
4391
4391
  schemaType: "object",
4392
4392
  error: {
4393
- message: ({ params: { discrError: i, tagName: h } }) => i === t.DiscrError.Tag ? `tag "${h}" must be string` : `value of tag "${h}" must be in oneOf`,
4394
- params: ({ params: { discrError: i, tag: h, tagName: m } }) => (0, e._)`{error: ${i}, tag: ${m}, tagValue: ${h}}`
4393
+ message: ({ params: { discrError: u, tagName: h } }) => u === t.DiscrError.Tag ? `tag "${h}" must be string` : `value of tag "${h}" must be in oneOf`,
4394
+ params: ({ params: { discrError: u, tag: h, tagName: m } }) => (0, e._)`{error: ${u}, tag: ${m}, tagValue: ${h}}`
4395
4395
  },
4396
- code(i) {
4397
- const { gen: h, data: m, schema: v, parentSchema: N, it: b } = i, { oneOf: c } = N;
4396
+ code(u) {
4397
+ const { gen: h, data: m, schema: v, parentSchema: N, it: b } = u, { oneOf: c } = N;
4398
4398
  if (!b.opts.discriminator)
4399
4399
  throw new Error("discriminator: requires discriminator option");
4400
4400
  const g = v.propertyName;
@@ -4405,17 +4405,17 @@ function Vo() {
4405
4405
  if (!c)
4406
4406
  throw new Error("discriminator: requires oneOf keyword");
4407
4407
  const E = h.let("valid", !1), d = h.const("tag", (0, e._)`${m}${(0, e.getProperty)(g)}`);
4408
- h.if((0, e._)`typeof ${d} == "string"`, () => y(), () => i.error(!1, { discrError: t.DiscrError.Tag, tag: d, tagName: g })), i.ok(E);
4408
+ h.if((0, e._)`typeof ${d} == "string"`, () => y(), () => u.error(!1, { discrError: t.DiscrError.Tag, tag: d, tagName: g })), u.ok(E);
4409
4409
  function y() {
4410
4410
  const w = p();
4411
4411
  h.if(!1);
4412
4412
  for (const l in w)
4413
4413
  h.elseIf((0, e._)`${d} === ${l}`), h.assign(E, s(w[l]));
4414
- h.else(), i.error(!1, { discrError: t.DiscrError.Mapping, tag: d, tagName: g }), h.endIf();
4414
+ h.else(), u.error(!1, { discrError: t.DiscrError.Mapping, tag: d, tagName: g }), h.endIf();
4415
4415
  }
4416
4416
  function s(w) {
4417
- const l = h.name("valid"), _ = i.subschema({ keyword: "oneOf", schemaProp: w }, l);
4418
- return i.mergeEvaluated(_, e.Name), l;
4417
+ const l = h.name("valid"), _ = u.subschema({ keyword: "oneOf", schemaProp: w }, l);
4418
+ return u.mergeEvaluated(_, e.Name), l;
4419
4419
  }
4420
4420
  function p() {
4421
4421
  var w;
@@ -4423,7 +4423,7 @@ function Vo() {
4423
4423
  let S = !0;
4424
4424
  for (let A = 0; A < c.length; A++) {
4425
4425
  let F = c[A];
4426
- if (F != null && F.$ref && !(0, u.schemaHasRulesButRef)(F, b.self.RULES)) {
4426
+ if (F != null && F.$ref && !(0, i.schemaHasRulesButRef)(F, b.self.RULES)) {
4427
4427
  const B = F.$ref;
4428
4428
  if (F = r.resolveRef.call(b.self, b.schemaEnv.root, b.baseId, B), F instanceof r.SchemaEnv && (F = F.schema), F === void 0)
4429
4429
  throw new n.default(b.opts.uriResolver, b.baseId, B);
@@ -4471,19 +4471,19 @@ var Vn;
4471
4471
  function gr() {
4472
4472
  return Vn || (Vn = 1, (function(e, t) {
4473
4473
  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;
4474
- const r = /* @__PURE__ */ eo(), n = /* @__PURE__ */ Ao(), u = /* @__PURE__ */ Vo(), a = Ko, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
4474
+ const r = /* @__PURE__ */ eo(), n = /* @__PURE__ */ Ao(), i = /* @__PURE__ */ Vo(), a = Ko, o = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4475
4475
  class h extends r.default {
4476
4476
  _addVocabularies() {
4477
- super._addVocabularies(), n.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(u.default);
4477
+ super._addVocabularies(), n.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(i.default);
4478
4478
  }
4479
4479
  _addDefaultMetaSchema() {
4480
4480
  if (super._addDefaultMetaSchema(), !this.opts.meta)
4481
4481
  return;
4482
4482
  const g = this.opts.$data ? this.$dataMetaSchema(a, o) : a;
4483
- this.addMetaSchema(g, i, !1), this.refs["http://json-schema.org/schema"] = i;
4483
+ this.addMetaSchema(g, u, !1), this.refs["http://json-schema.org/schema"] = u;
4484
4484
  }
4485
4485
  defaultMeta() {
4486
- return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(i) ? i : void 0);
4486
+ return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(u) ? u : void 0);
4487
4487
  }
4488
4488
  }
4489
4489
  t.Ajv = h, e.exports = t = h, e.exports.Ajv = h, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = h;
@@ -4588,22 +4588,22 @@ function Wo() {
4588
4588
  function r(A) {
4589
4589
  return A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0);
4590
4590
  }
4591
- const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, u = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4591
+ const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, i = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4592
4592
  function a(A) {
4593
4593
  const F = n.exec(A);
4594
4594
  if (!F)
4595
4595
  return !1;
4596
4596
  const K = +F[1], B = +F[2], te = +F[3];
4597
- return B >= 1 && B <= 12 && te >= 1 && te <= (B === 2 && r(K) ? 29 : u[B]);
4597
+ return B >= 1 && B <= 12 && te >= 1 && te <= (B === 2 && r(K) ? 29 : i[B]);
4598
4598
  }
4599
4599
  function o(A, F) {
4600
4600
  if (A && F)
4601
4601
  return A > F ? 1 : A < F ? -1 : 0;
4602
4602
  }
4603
- const i = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
4603
+ const u = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
4604
4604
  function h(A) {
4605
4605
  return function(K) {
4606
- const B = i.exec(K);
4606
+ const B = u.exec(K);
4607
4607
  if (!B)
4608
4608
  return !1;
4609
4609
  const te = +B[1], ae = +B[2], ie = +B[3], ne = B[4], de = B[5] === "-" ? -1 : 1, D = +(B[6] || 0), j = +(B[7] || 0);
@@ -4625,7 +4625,7 @@ function Wo() {
4625
4625
  function v(A, F) {
4626
4626
  if (!(A && F))
4627
4627
  return;
4628
- const K = i.exec(A), B = i.exec(F);
4628
+ const K = u.exec(A), B = u.exec(F);
4629
4629
  if (K && B)
4630
4630
  return A = K[1] + K[2] + K[3], F = B[1] + B[2] + B[3], A > F ? 1 : A < F ? -1 : 0;
4631
4631
  }
@@ -4685,23 +4685,23 @@ var ir = {}, Cn;
4685
4685
  function Go() {
4686
4686
  return Cn || (Cn = 1, (function(e) {
4687
4687
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4688
- const t = /* @__PURE__ */ gr(), r = /* @__PURE__ */ Q(), n = r.operators, u = {
4688
+ const t = /* @__PURE__ */ gr(), r = /* @__PURE__ */ Q(), n = r.operators, i = {
4689
4689
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
4690
4690
  formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
4691
4691
  formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
4692
4692
  formatExclusiveMinimum: { okStr: ">", ok: n.GT, fail: n.LTE }
4693
4693
  }, a = {
4694
- message: ({ keyword: i, schemaCode: h }) => (0, r.str)`should be ${u[i].okStr} ${h}`,
4695
- params: ({ keyword: i, schemaCode: h }) => (0, r._)`{comparison: ${u[i].okStr}, limit: ${h}}`
4694
+ message: ({ keyword: u, schemaCode: h }) => (0, r.str)`should be ${i[u].okStr} ${h}`,
4695
+ params: ({ keyword: u, schemaCode: h }) => (0, r._)`{comparison: ${i[u].okStr}, limit: ${h}}`
4696
4696
  };
4697
4697
  e.formatLimitDefinition = {
4698
- keyword: Object.keys(u),
4698
+ keyword: Object.keys(i),
4699
4699
  type: "string",
4700
4700
  schemaType: "string",
4701
4701
  $data: !0,
4702
4702
  error: a,
4703
- code(i) {
4704
- const { gen: h, data: m, schemaCode: v, keyword: N, it: b } = i, { opts: c, self: g } = b;
4703
+ code(u) {
4704
+ const { gen: h, data: m, schemaCode: v, keyword: N, it: b } = u, { opts: c, self: g } = b;
4705
4705
  if (!c.validateFormats)
4706
4706
  return;
4707
4707
  const E = new t.KeywordCxt(b, g.RULES.all.format.definition, "format");
@@ -4711,7 +4711,7 @@ function Go() {
4711
4711
  ref: g.formats,
4712
4712
  code: c.code.formats
4713
4713
  }), w = h.const("fmt", (0, r._)`${p}[${E.schemaCode}]`);
4714
- i.fail$data((0, r.or)((0, r._)`typeof ${w} != "object"`, (0, r._)`${w} instanceof RegExp`, (0, r._)`typeof ${w}.compare != "function"`, s(w)));
4714
+ u.fail$data((0, r.or)((0, r._)`typeof ${w} != "object"`, (0, r._)`${w} instanceof RegExp`, (0, r._)`typeof ${w}.compare != "function"`, s(w)));
4715
4715
  }
4716
4716
  function y() {
4717
4717
  const p = E.schema, w = g.formats[p];
@@ -4724,15 +4724,15 @@ function Go() {
4724
4724
  ref: w,
4725
4725
  code: c.code.formats ? (0, r._)`${c.code.formats}${(0, r.getProperty)(p)}` : void 0
4726
4726
  });
4727
- i.fail$data(s(l));
4727
+ u.fail$data(s(l));
4728
4728
  }
4729
4729
  function s(p) {
4730
- return (0, r._)`${p}.compare(${m}, ${v}) ${u[N].fail} 0`;
4730
+ return (0, r._)`${p}.compare(${m}, ${v}) ${i[N].fail} 0`;
4731
4731
  }
4732
4732
  },
4733
4733
  dependencies: ["format"]
4734
4734
  };
4735
- const o = (i) => (i.addKeyword(e.formatLimitDefinition), i);
4735
+ const o = (u) => (u.addKeyword(e.formatLimitDefinition), u);
4736
4736
  e.default = o;
4737
4737
  })(ir)), ir;
4738
4738
  }
@@ -4740,13 +4740,13 @@ var zn;
4740
4740
  function Jo() {
4741
4741
  return zn || (zn = 1, (function(e, t) {
4742
4742
  Object.defineProperty(t, "__esModule", { value: !0 });
4743
- const r = Wo(), n = Go(), u = /* @__PURE__ */ Q(), a = new u.Name("fullFormats"), o = new u.Name("fastFormats"), i = (m, v = { keywords: !0 }) => {
4743
+ const r = Wo(), n = Go(), i = /* @__PURE__ */ Q(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), u = (m, v = { keywords: !0 }) => {
4744
4744
  if (Array.isArray(v))
4745
4745
  return h(m, v, r.fullFormats, a), m;
4746
4746
  const [N, b] = v.mode === "fast" ? [r.fastFormats, o] : [r.fullFormats, a], c = v.formats || r.formatNames;
4747
4747
  return h(m, c, N, b), v.keywords && (0, n.default)(m), m;
4748
4748
  };
4749
- i.get = (m, v = "full") => {
4749
+ u.get = (m, v = "full") => {
4750
4750
  const b = (v === "fast" ? r.fastFormats : r.fullFormats)[m];
4751
4751
  if (!b)
4752
4752
  throw new Error(`Unknown format "${m}"`);
@@ -4754,11 +4754,11 @@ function Jo() {
4754
4754
  };
4755
4755
  function h(m, v, N, b) {
4756
4756
  var c, g;
4757
- (c = (g = m.opts.code).formats) !== null && c !== void 0 || (g.formats = (0, u._)`require("ajv-formats/dist/formats").${b}`);
4757
+ (c = (g = m.opts.code).formats) !== null && c !== void 0 || (g.formats = (0, i._)`require("ajv-formats/dist/formats").${b}`);
4758
4758
  for (const E of v)
4759
4759
  m.addFormat(E, N[E]);
4760
4760
  }
4761
- e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
4761
+ e.exports = t = u, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = u;
4762
4762
  })(Dt, Dt.exports)), Dt.exports;
4763
4763
  }
4764
4764
  var Yo = Jo();
@@ -4767,7 +4767,7 @@ var Ct = { exports: {} }, Ln;
4767
4767
  function Qo() {
4768
4768
  return Ln || (Ln = 1, (function(e, t) {
4769
4769
  Object.defineProperty(t, "__esModule", { value: !0 });
4770
- const r = /* @__PURE__ */ gr(), n = /* @__PURE__ */ Q(), u = /* @__PURE__ */ Ze(), a = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ Qe(), i = /* @__PURE__ */ Oe(), h = "errorMessage", m = new r.Name("emUsed"), v = {
4770
+ const r = /* @__PURE__ */ gr(), n = /* @__PURE__ */ Q(), i = /* @__PURE__ */ Ze(), a = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ Qe(), u = /* @__PURE__ */ Oe(), h = "errorMessage", m = new r.Name("emUsed"), v = {
4771
4771
  required: "missingProperty",
4772
4772
  dependencies: "property",
4773
4773
  dependentRequired: "property"
@@ -4781,8 +4781,8 @@ function Qo() {
4781
4781
  const { gen: s, data: p, schema: w, schemaValue: l, it: _ } = y;
4782
4782
  if (_.createErrors === !1)
4783
4783
  return;
4784
- const S = w, T = n.strConcat(i.default.instancePath, _.errorPath);
4785
- s.if(r._`${i.default.errors} > 0`, () => {
4784
+ const S = w, T = n.strConcat(u.default.instancePath, _.errorPath);
4785
+ s.if(r._`${u.default.errors} > 0`, () => {
4786
4786
  if (typeof S == "object") {
4787
4787
  const [O, f] = U(S);
4788
4788
  f && A(f), O && F(O), K(V(S));
@@ -4822,7 +4822,7 @@ function Qo() {
4822
4822
  }
4823
4823
  function A(k) {
4824
4824
  const O = s.const("emErrors", r.stringify(k)), f = s.const("templates", de(k, w));
4825
- s.forOf("err", i.default.vErrors, (C) => s.if(ae(C, O), () => s.code(r._`${O}[${C}.keyword].push(${C})`).assign(r._`${C}.${m}`, !0)));
4825
+ s.forOf("err", u.default.vErrors, (C) => s.if(ae(C, O), () => s.code(r._`${O}[${C}.keyword].push(${C})`).assign(r._`${C}.${m}`, !0)));
4826
4826
  const { singleError: P } = d;
4827
4827
  if (P) {
4828
4828
  const C = s.let("message", r._`""`), H = s.let("paramsErrors", r._`[]`);
@@ -4852,7 +4852,7 @@ function Qo() {
4852
4852
  ref: v,
4853
4853
  code: r.stringify(v)
4854
4854
  }), L = s.let("emPropParams"), C = s.let("emParamsErrors");
4855
- s.forOf("err", i.default.vErrors, (H) => s.if(ae(H, O), () => {
4855
+ s.forOf("err", u.default.vErrors, (H) => s.if(ae(H, O), () => {
4856
4856
  s.assign(L, r._`${q}[${H}.keyword]`), s.assign(C, r._`${O}[${H}.keyword][${H}.params[${L}]]`), s.if(C, () => s.code(r._`${C}.push(${H})`).assign(r._`${H}.${m}`, !0));
4857
4857
  })), s.forIn("key", O, (H) => s.forIn("keyProp", r._`${O}[${H}]`, (J) => {
4858
4858
  s.assign(C, r._`${O}[${H}][${J}]`), s.if(r._`${C}.length`, () => {
@@ -4875,11 +4875,11 @@ function Qo() {
4875
4875
  R(f, w.items), s.assign(C, r.str`items`);
4876
4876
  }, () => {
4877
4877
  R(O, w.properties), s.assign(C, r.str`properties`);
4878
- }), H = r._`[${C}]`) : f ? (s.if(q), R(f, w.items), H = r._`.items`) : O && (s.if(n.and(P, n.not(q))), R(O, w.properties), H = r._`.properties`), s.forOf("err", i.default.vErrors, (I) => ie(I, L, (M) => s.code(r._`${L}[${M}].push(${I})`).assign(r._`${I}.${m}`, !0))), s.forIn("key", L, (I) => s.if(r._`${L}[${I}].length`, () => {
4878
+ }), H = r._`[${C}]`) : f ? (s.if(q), R(f, w.items), H = r._`.items`) : O && (s.if(n.and(P, n.not(q))), R(O, w.properties), H = r._`.properties`), s.forOf("err", u.default.vErrors, (I) => ie(I, L, (M) => s.code(r._`${L}[${M}].push(${I})`).assign(r._`${I}.${m}`, !0))), s.forIn("key", L, (I) => s.if(r._`${L}[${I}].length`, () => {
4879
4879
  o.reportError(y, {
4880
4880
  message: r._`${I} in ${J} ? ${J}[${I}]() : ${l}${H}[${I}]`,
4881
4881
  params: r._`{errors: ${L}[${I}]}`
4882
- }), s.assign(r._`${i.default.vErrors}[${i.default.errors}-1].instancePath`, r._`${T} + "/" + ${I}.replace(/~/g, "~0").replace(/\\//g, "~1")`);
4882
+ }), s.assign(r._`${u.default.vErrors}[${u.default.errors}-1].instancePath`, r._`${T} + "/" + ${I}.replace(/~/g, "~0").replace(/\\//g, "~1")`);
4883
4883
  })), s.endIf();
4884
4884
  function R(I, M) {
4885
4885
  s.assign(L, r.stringify(I)), s.assign(J, de(I, M));
@@ -4887,14 +4887,14 @@ function Qo() {
4887
4887
  }
4888
4888
  function B(k) {
4889
4889
  const O = s.const("emErrs", r._`[]`);
4890
- s.forOf("err", i.default.vErrors, (f) => s.if(ne(f), () => s.code(r._`${O}.push(${f})`).assign(r._`${f}.${m}`, !0))), s.if(r._`${O}.length`, () => o.reportError(y, {
4890
+ s.forOf("err", u.default.vErrors, (f) => s.if(ne(f), () => s.code(r._`${O}.push(${f})`).assign(r._`${f}.${m}`, !0))), s.if(r._`${O}.length`, () => o.reportError(y, {
4891
4891
  message: D(k),
4892
4892
  params: r._`{errors: ${O}}`
4893
4893
  }));
4894
4894
  }
4895
4895
  function te() {
4896
4896
  const k = s.const("emErrs", r._`[]`);
4897
- s.forOf("err", i.default.vErrors, (O) => s.if(r._`!${O}.${m}`, () => s.code(r._`${k}.push(${O})`))), s.assign(i.default.vErrors, k).assign(i.default.errors, r._`${k}.length`);
4897
+ s.forOf("err", u.default.vErrors, (O) => s.if(r._`!${O}.${m}`, () => s.code(r._`${k}.push(${O})`))), s.assign(u.default.vErrors, k).assign(u.default.errors, r._`${k}.length`);
4898
4898
  }
4899
4899
  function ae(k, O) {
4900
4900
  return n.and(
@@ -4928,7 +4928,7 @@ function Qo() {
4928
4928
  return s.object(...f);
4929
4929
  }
4930
4930
  function D(k) {
4931
- return N.test(k) ? new u._Code(u.safeStringify(k).replace(b, (O, f) => `" + JSON.stringify(${a.getData(f, _)}) + "`).replace(c, "")) : r.stringify(k);
4931
+ return N.test(k) ? new i._Code(i.safeStringify(k).replace(b, (O, f) => `" + JSON.stringify(${a.getData(f, _)}) + "`).replace(c, "")) : r.stringify(k);
4932
4932
  }
4933
4933
  function j(k) {
4934
4934
  return r._`function(){return ${D(k)}}`;
@@ -4976,7 +4976,7 @@ const xo = /* @__PURE__ */ Ut(Xo);
4976
4976
  class ea {
4977
4977
  constructor(t) {
4978
4978
  br(this, "ajv");
4979
- const { customKeywords: r, customFormats: n, ...u } = t || {};
4979
+ const { customKeywords: r, customFormats: n, ...i } = t || {};
4980
4980
  this.ajv = new Ho({
4981
4981
  allErrors: !0,
4982
4982
  code: {
@@ -4992,7 +4992,7 @@ class ea {
4992
4992
  // NOTE: if true, types that are not serializable JSON, like Function, would not work
4993
4993
  validateSchema: !1,
4994
4994
  verbose: !0,
4995
- ...u
4995
+ ...i
4996
4996
  }), Zo(this.ajv), xo(this.ajv), this.addCustomKeywords(r || []), this.addCustomFormats(n || {});
4997
4997
  }
4998
4998
  /**
@@ -5018,8 +5018,8 @@ class ea {
5018
5018
  */
5019
5019
  createValidator(t, r) {
5020
5020
  if (r && !t.$id && (t.$id = r), t.$id) {
5021
- const u = this.ajv.getSchema(t.$id);
5022
- if (u) return u;
5021
+ const i = this.ajv.getSchema(t.$id);
5022
+ if (i) return i;
5023
5023
  }
5024
5024
  return this.ajv.compile(t);
5025
5025
  }
@@ -5027,14 +5027,14 @@ class ea {
5027
5027
  * Validate data against a schema and return a structured result
5028
5028
  */
5029
5029
  validate(t, r, n) {
5030
- const u = this.createValidator(r, n == null ? void 0 : n.cacheKey);
5031
- if (!u(t)) {
5032
- const o = this.formatErrors(u.errors);
5030
+ const i = this.createValidator(r, n == null ? void 0 : n.cacheKey);
5031
+ if (!i(t)) {
5032
+ const o = this.formatErrors(i.errors);
5033
5033
  if (n != null && n.throwOnError)
5034
- throw new vr(o, u.errors || []);
5034
+ throw new vr(o, i.errors || []);
5035
5035
  return {
5036
5036
  valid: !1,
5037
- errors: u.errors || void 0,
5037
+ errors: i.errors || void 0,
5038
5038
  errorMessage: o
5039
5039
  };
5040
5040
  }
@@ -5129,36 +5129,36 @@ function na(e, t) {
5129
5129
  var o;
5130
5130
  if (((o = n.parentSchema) == null ? void 0 : o.format) !== "password") return !0;
5131
5131
  if (!e.credentials) return !1;
5132
- const u = n.instancePath.split("/").pop(), a = Wn.get(e, n.instancePath);
5133
- return !(e.credentials[`has_${u}`] && (!a || a === "__PWD__"));
5132
+ const i = n.instancePath.split("/").pop(), a = Wn.get(e, n.instancePath);
5133
+ return !(e.credentials[`has_${i}`] && (!a || a === "__PWD__"));
5134
5134
  });
5135
5135
  return r.length === 0 ? !0 : r.map((n) => {
5136
5136
  var a;
5137
- let u = n.instancePath;
5138
- return n.keyword === "required" && ((a = n.params) != null && a.missingProperty) && (u = `${u}/${n.params.missingProperty}`), `${u.slice(1) || "root"}: ${n.message ?? "invalid"}`;
5137
+ let i = n.instancePath;
5138
+ return n.keyword === "required" && ((a = n.params) != null && a.missingProperty) && (i = `${i}/${n.params.missingProperty}`), `${i.slice(1) || "root"}: ${n.message ?? "invalid"}`;
5139
5139
  });
5140
5140
  }
5141
5141
  function sa(e, t) {
5142
5142
  return es(e, t).filter((r) => {
5143
- var u;
5144
- return ((u = r.parentSchema) == null ? void 0 : u.format) !== "password" ? !0 : Wn.get(e, r.instancePath) !== "__PWD__";
5143
+ var i;
5144
+ return ((i = r.parentSchema) == null ? void 0 : i.format) !== "password" ? !0 : Wn.get(e, r.instancePath) !== "__PWD__";
5145
5145
  }).reduce(
5146
5146
  (r, n) => {
5147
5147
  var o;
5148
- let u = n.instancePath;
5149
- n.keyword === "required" && ((o = n.params) != null && o.missingProperty) && (u = `${u}/${n.params.missingProperty}`);
5150
- const a = `node${u.replaceAll("/", ".")}`;
5148
+ let i = n.instancePath;
5149
+ n.keyword === "required" && ((o = n.params) != null && o.missingProperty) && (i = `${i}/${n.params.missingProperty}`);
5150
+ const a = `node${i.replaceAll("/", ".")}`;
5151
5151
  return r[a] = n.message ?? "Invalid", r;
5152
5152
  },
5153
5153
  {}
5154
5154
  );
5155
5155
  }
5156
5156
  function oa(e, t, { signal: r, edges: n } = {}) {
5157
- let u, a = null;
5158
- const o = n != null && n.includes("leading"), i = n == null || n.includes("trailing"), h = () => {
5159
- a !== null && (e.apply(u, a), u = void 0, a = null);
5157
+ let i, a = null;
5158
+ const o = n != null && n.includes("leading"), u = n == null || n.includes("trailing"), h = () => {
5159
+ a !== null && (e.apply(i, a), i = void 0, a = null);
5160
5160
  }, m = () => {
5161
- i && h(), c();
5161
+ u && h(), c();
5162
5162
  };
5163
5163
  let v = null;
5164
5164
  const N = () => {
@@ -5168,13 +5168,13 @@ function oa(e, t, { signal: r, edges: n } = {}) {
5168
5168
  }, b = () => {
5169
5169
  v !== null && (clearTimeout(v), v = null);
5170
5170
  }, c = () => {
5171
- b(), u = void 0, a = null;
5171
+ b(), i = void 0, a = null;
5172
5172
  }, g = () => {
5173
5173
  h();
5174
5174
  }, E = function(...d) {
5175
5175
  if (r != null && r.aborted)
5176
5176
  return;
5177
- u = this, a = d;
5177
+ i = this, a = d;
5178
5178
  const y = v == null;
5179
5179
  N(), o && y && h();
5180
5180
  };
@@ -5195,8 +5195,8 @@ function dr(e) {
5195
5195
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
5196
5196
  }
5197
5197
  const ts = "[object RegExp]", rs = "[object String]", ns = "[object Number]", ss = "[object Boolean]", fr = "[object Arguments]", os = "[object Symbol]", as = "[object Date]", is = "[object Map]", us = "[object Set]", cs = "[object Array]", ca = "[object Function]", ls = "[object ArrayBuffer]", zt = "[object Object]", la = "[object Error]", ds = "[object DataView]", fs = "[object Uint8Array]", ps = "[object Uint8ClampedArray]", hs = "[object Uint16Array]", ms = "[object Uint32Array]", da = "[object BigUint64Array]", ys = "[object Int8Array]", gs = "[object Int16Array]", vs = "[object Int32Array]", fa = "[object BigInt64Array]", _s = "[object Float32Array]", $s = "[object Float64Array]";
5198
- function Le(e, t, r, n = /* @__PURE__ */ new Map(), u = void 0) {
5199
- const a = u == null ? void 0 : u(e, t, r, n);
5198
+ function Le(e, t, r, n = /* @__PURE__ */ new Map(), i = void 0) {
5199
+ const a = i == null ? void 0 : i(e, t, r, n);
5200
5200
  if (a !== void 0)
5201
5201
  return a;
5202
5202
  if (ia(e))
@@ -5206,8 +5206,8 @@ function Le(e, t, r, n = /* @__PURE__ */ new Map(), u = void 0) {
5206
5206
  if (Array.isArray(e)) {
5207
5207
  const o = new Array(e.length);
5208
5208
  n.set(e, o);
5209
- for (let i = 0; i < e.length; i++)
5210
- o[i] = Le(e[i], i, r, n, u);
5209
+ for (let u = 0; u < e.length; u++)
5210
+ o[u] = Le(e[u], u, r, n, i);
5211
5211
  return Object.hasOwn(e, "index") && (o.index = e.index), Object.hasOwn(e, "input") && (o.input = e.input), o;
5212
5212
  }
5213
5213
  if (e instanceof Date)
@@ -5219,15 +5219,15 @@ function Le(e, t, r, n = /* @__PURE__ */ new Map(), u = void 0) {
5219
5219
  if (e instanceof Map) {
5220
5220
  const o = /* @__PURE__ */ new Map();
5221
5221
  n.set(e, o);
5222
- for (const [i, h] of e)
5223
- o.set(i, Le(h, i, r, n, u));
5222
+ for (const [u, h] of e)
5223
+ o.set(u, Le(h, u, r, n, i));
5224
5224
  return o;
5225
5225
  }
5226
5226
  if (e instanceof Set) {
5227
5227
  const o = /* @__PURE__ */ new Set();
5228
5228
  n.set(e, o);
5229
- for (const i of e)
5230
- o.add(Le(i, void 0, r, n, u));
5229
+ for (const u of e)
5230
+ o.add(Le(u, void 0, r, n, i));
5231
5231
  return o;
5232
5232
  }
5233
5233
  if (typeof Buffer < "u" && Buffer.isBuffer(e))
@@ -5235,53 +5235,53 @@ function Le(e, t, r, n = /* @__PURE__ */ new Map(), u = void 0) {
5235
5235
  if (ua(e)) {
5236
5236
  const o = new (Object.getPrototypeOf(e)).constructor(e.length);
5237
5237
  n.set(e, o);
5238
- for (let i = 0; i < e.length; i++)
5239
- o[i] = Le(e[i], i, r, n, u);
5238
+ for (let u = 0; u < e.length; u++)
5239
+ o[u] = Le(e[u], u, r, n, i);
5240
5240
  return o;
5241
5241
  }
5242
5242
  if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer)
5243
5243
  return e.slice(0);
5244
5244
  if (e instanceof DataView) {
5245
5245
  const o = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
5246
- return n.set(e, o), je(o, e, r, n, u), o;
5246
+ return n.set(e, o), je(o, e, r, n, i), o;
5247
5247
  }
5248
5248
  if (typeof File < "u" && e instanceof File) {
5249
5249
  const o = new File([e], e.name, {
5250
5250
  type: e.type
5251
5251
  });
5252
- return n.set(e, o), je(o, e, r, n, u), o;
5252
+ return n.set(e, o), je(o, e, r, n, i), o;
5253
5253
  }
5254
5254
  if (typeof Blob < "u" && e instanceof Blob) {
5255
5255
  const o = new Blob([e], { type: e.type });
5256
- return n.set(e, o), je(o, e, r, n, u), o;
5256
+ return n.set(e, o), je(o, e, r, n, i), o;
5257
5257
  }
5258
5258
  if (e instanceof Error) {
5259
5259
  const o = structuredClone(e);
5260
- return n.set(e, o), o.message = e.message, o.name = e.name, o.stack = e.stack, o.cause = e.cause, o.constructor = e.constructor, je(o, e, r, n, u), o;
5260
+ return n.set(e, o), o.message = e.message, o.name = e.name, o.stack = e.stack, o.cause = e.cause, o.constructor = e.constructor, je(o, e, r, n, i), o;
5261
5261
  }
5262
5262
  if (e instanceof Boolean) {
5263
5263
  const o = new Boolean(e.valueOf());
5264
- return n.set(e, o), je(o, e, r, n, u), o;
5264
+ return n.set(e, o), je(o, e, r, n, i), o;
5265
5265
  }
5266
5266
  if (e instanceof Number) {
5267
5267
  const o = new Number(e.valueOf());
5268
- return n.set(e, o), je(o, e, r, n, u), o;
5268
+ return n.set(e, o), je(o, e, r, n, i), o;
5269
5269
  }
5270
5270
  if (e instanceof String) {
5271
5271
  const o = new String(e.valueOf());
5272
- return n.set(e, o), je(o, e, r, n, u), o;
5272
+ return n.set(e, o), je(o, e, r, n, i), o;
5273
5273
  }
5274
5274
  if (typeof e == "object" && pa(e)) {
5275
5275
  const o = Object.create(Object.getPrototypeOf(e));
5276
- return n.set(e, o), je(o, e, r, n, u), o;
5276
+ return n.set(e, o), je(o, e, r, n, i), o;
5277
5277
  }
5278
5278
  return e;
5279
5279
  }
5280
- function je(e, t, r = e, n, u) {
5280
+ function je(e, t, r = e, n, i) {
5281
5281
  const a = [...Object.keys(t), ...lr(t)];
5282
5282
  for (let o = 0; o < a.length; o++) {
5283
- const i = a[o], h = Object.getOwnPropertyDescriptor(e, i);
5284
- (h == null || h.writable) && (e[i] = Le(t[i], i, r, n, u));
5283
+ const u = a[o], h = Object.getOwnPropertyDescriptor(e, u);
5284
+ (h == null || h.writable) && (e[u] = Le(t[u], u, r, n, i));
5285
5285
  }
5286
5286
  }
5287
5287
  function pa(e) {
@@ -5328,10 +5328,10 @@ function ma(e, t) {
5328
5328
  function ya(e, t, r) {
5329
5329
  return We(e, t, void 0, void 0, void 0, void 0, r);
5330
5330
  }
5331
- function We(e, t, r, n, u, a, o) {
5332
- const i = o(e, t, r, n, u, a);
5333
- if (i !== void 0)
5334
- return i;
5331
+ function We(e, t, r, n, i, a, o) {
5332
+ const u = o(e, t, r, n, i, a);
5333
+ if (u !== void 0)
5334
+ return u;
5335
5335
  if (typeof e == typeof t)
5336
5336
  switch (typeof e) {
5337
5337
  case "bigint":
@@ -5352,10 +5352,10 @@ function We(e, t, r, n, u, a, o) {
5352
5352
  function Ye(e, t, r, n) {
5353
5353
  if (Object.is(e, t))
5354
5354
  return !0;
5355
- let u = dr(e), a = dr(t);
5356
- if (u === fr && (u = zt), a === fr && (a = zt), u !== a)
5355
+ let i = dr(e), a = dr(t);
5356
+ if (i === fr && (i = zt), a === fr && (a = zt), i !== a)
5357
5357
  return !1;
5358
- switch (u) {
5358
+ switch (i) {
5359
5359
  case rs:
5360
5360
  return e.toString() === t.toString();
5361
5361
  case ns: {
@@ -5372,12 +5372,12 @@ function Ye(e, t, r, n) {
5372
5372
  return e === t;
5373
5373
  }
5374
5374
  r = r ?? /* @__PURE__ */ new Map();
5375
- const o = r.get(e), i = r.get(t);
5376
- if (o != null && i != null)
5375
+ const o = r.get(e), u = r.get(t);
5376
+ if (o != null && u != null)
5377
5377
  return o === t;
5378
5378
  r.set(e, t), r.set(t, e);
5379
5379
  try {
5380
- switch (u) {
5380
+ switch (i) {
5381
5381
  case is: {
5382
5382
  if (e.size !== t.size)
5383
5383
  return !1;
@@ -5531,11 +5531,11 @@ const va = Ne({
5531
5531
  */
5532
5532
  outputRows() {
5533
5533
  const e = (this.localNode.errorPort ? 1 : 0) + (this.localNode.completePort ? 1 : 0) + (this.localNode.statusPort ? 1 : 0), t = typeof this.localNode.outputs == "number" ? this.localNode.outputs : null, r = t !== null && t >= e ? t - e : this.features.outputPorts.length;
5534
- return Array.from({ length: r }, (n, u) => {
5534
+ return Array.from({ length: r }, (n, i) => {
5535
5535
  var a;
5536
5536
  return {
5537
- index: u,
5538
- label: ((a = this.features.outputPorts[u]) == null ? void 0 : a.label) ?? `Output ${u}`
5537
+ index: i,
5538
+ label: ((a = this.features.outputPorts[i]) == null ? void 0 : a.label) ?? `Output ${i}`
5539
5539
  };
5540
5540
  });
5541
5541
  },
@@ -5592,8 +5592,8 @@ const va = Ne({
5592
5592
  this.$watch(
5593
5593
  () => this.localNode.credentials[t],
5594
5594
  (r, n) => {
5595
- var u;
5596
- (u = this.debouncedValidate) == null || u.call(this), this.localNode._def.credentials[t].type === "password" && r !== n && (this.localNode.credentials[`has_${t}`] = !!r);
5595
+ var i;
5596
+ (i = this.debouncedValidate) == null || i.call(this), this.localNode._def.credentials[t].type === "password" && r !== n && (this.localNode.credentials[`has_${t}`] = !!r);
5597
5597
  },
5598
5598
  { deep: !0 }
5599
5599
  );
@@ -5602,8 +5602,8 @@ const va = Ne({
5602
5602
  beforeUnmount() {
5603
5603
  var e, t;
5604
5604
  (t = (e = this.debouncedValidate) == null ? void 0 : e.cancel) == null || t.call(e), this.localNode._def.credentials && Object.keys(this.localNode._def.credentials).forEach((r) => {
5605
- var n, u;
5606
- this.localNode._def.credentials[r].type === "password" && ((n = this.localNode.credentials) != null && n[`has_${r}`]) && ((u = this.localNode.credentials) == null ? void 0 : u[r]) === "__PWD__" && (this.localNode.credentials[r] = void 0);
5605
+ var n, i;
5606
+ this.localNode._def.credentials[r].type === "password" && ((n = this.localNode.credentials) != null && n[`has_${r}`]) && ((i = this.localNode.credentials) == null ? void 0 : i[r]) === "__PWD__" && (this.localNode.credentials[r] = void 0);
5607
5607
  });
5608
5608
  },
5609
5609
  methods: {
@@ -5660,8 +5660,8 @@ const va = Ne({
5660
5660
  }
5661
5661
  }), Re = (e, t) => {
5662
5662
  const r = e.__vccOpts || e;
5663
- for (const [n, u] of t)
5664
- r[n] = u;
5663
+ for (const [n, i] of t)
5664
+ r[n] = i;
5665
5665
  return r;
5666
5666
  }, _a = { style: { width: "100%", "padding-bottom": "12px" } }, $a = {
5667
5667
  key: 0,
@@ -5685,8 +5685,8 @@ const va = Ne({
5685
5685
  key: 2,
5686
5686
  class: "form-row"
5687
5687
  };
5688
- function Xa(e, t, r, n, u, a) {
5689
- const o = me("NodeRedNodeForm"), i = me("NodeRedToggle");
5688
+ function Xa(e, t, r, n, i, a) {
5689
+ const o = me("NodeRedNodeForm"), u = me("NodeRedToggle");
5690
5690
  return G(), Z(
5691
5691
  Ge,
5692
5692
  null,
@@ -5719,7 +5719,7 @@ function Xa(e, t, r, n, u, a) {
5719
5719
  /* TEXT */
5720
5720
  ),
5721
5721
  Y("div", Pa, [
5722
- Se(i, {
5722
+ Se(u, {
5723
5723
  modelValue: e.localNode.validateInput,
5724
5724
  "onUpdate:modelValue": t[0] || (t[0] = (h) => e.localNode.validateInput = h),
5725
5725
  label: e.resolveLabel("toggles.validateInput", "Validate")
@@ -5907,7 +5907,7 @@ function Xa(e, t, r, n, u, a) {
5907
5907
  ]),
5908
5908
  Y("div", Ja, [
5909
5909
  e.hasErrorPort ? (G(), Z("div", Ya, [
5910
- Se(i, {
5910
+ Se(u, {
5911
5911
  "model-value": e.localNode.errorPort,
5912
5912
  label: e.resolveLabel("toggles.errorPort", "Error Port"),
5913
5913
  "onUpdate:modelValue": t[1] || (t[1] = (h) => {
@@ -5916,7 +5916,7 @@ function Xa(e, t, r, n, u, a) {
5916
5916
  }, null, 8, ["model-value", "label"])
5917
5917
  ])) : re("v-if", !0),
5918
5918
  e.hasCompletePort ? (G(), Z("div", Za, [
5919
- Se(i, {
5919
+ Se(u, {
5920
5920
  "model-value": e.localNode.completePort,
5921
5921
  label: e.resolveLabel("toggles.completePort", "Complete Port"),
5922
5922
  "onUpdate:modelValue": t[2] || (t[2] = (h) => {
@@ -5925,7 +5925,7 @@ function Xa(e, t, r, n, u, a) {
5925
5925
  }, null, 8, ["model-value", "label"])
5926
5926
  ])) : re("v-if", !0),
5927
5927
  e.hasStatusPort ? (G(), Z("div", Qa, [
5928
- Se(i, {
5928
+ Se(u, {
5929
5929
  "model-value": e.localNode.statusPort,
5930
5930
  label: e.resolveLabel("toggles.statusPort", "Status Port"),
5931
5931
  "onUpdate:modelValue": t[3] || (t[3] = (h) => {
@@ -5965,7 +5965,7 @@ const xa = /* @__PURE__ */ Re(va, [["render", Xa], ["__scopeId", "data-v-4f708a4
5965
5965
  key: 1,
5966
5966
  class: "nrg-required"
5967
5967
  };
5968
- function ni(e, t, r, n, u, a) {
5968
+ function ni(e, t, r, n, i, a) {
5969
5969
  return G(), Z("span", ti, [
5970
5970
  e.icon ? (G(), Z(
5971
5971
  "i",
@@ -6052,7 +6052,7 @@ const Ve = /* @__PURE__ */ Re(ei, [["render", ni], ["__scopeId", "data-v-864b02f
6052
6052
  key: 0,
6053
6053
  class: "node-red-vue-input-error-message"
6054
6054
  };
6055
- function ui(e, t, r, n, u, a) {
6055
+ function ui(e, t, r, n, i, a) {
6056
6056
  const o = me("NodeRedInputLabel");
6057
6057
  return G(), Z("div", oi, [
6058
6058
  Me(e.$slots, "label", {}, () => [
@@ -6069,9 +6069,9 @@ function ui(e, t, r, n, u, a) {
6069
6069
  value: e.internalValue,
6070
6070
  placeholder: e.placeholder,
6071
6071
  style: { width: "100%" },
6072
- onInput: t[0] || (t[0] = (...i) => e.onInput && e.onInput(...i)),
6073
- onFocus: t[1] || (t[1] = (...i) => e.onFocus && e.onFocus(...i)),
6074
- onBlur: t[2] || (t[2] = (...i) => e.onBlur && e.onBlur(...i))
6072
+ onInput: t[0] || (t[0] = (...u) => e.onInput && e.onInput(...u)),
6073
+ onFocus: t[1] || (t[1] = (...u) => e.onFocus && e.onFocus(...u)),
6074
+ onBlur: t[2] || (t[2] = (...u) => e.onBlur && e.onBlur(...u))
6075
6075
  }, null, 40, ai),
6076
6076
  e.error ? (G(), Z(
6077
6077
  "div",
@@ -6229,7 +6229,7 @@ const bs = /* @__PURE__ */ Re(si, [["render", ui]]), ci = [
6229
6229
  key: 0,
6230
6230
  class: "node-red-vue-input-error-message"
6231
6231
  };
6232
- function mi(e, t, r, n, u, a) {
6232
+ function mi(e, t, r, n, i, a) {
6233
6233
  const o = me("NodeRedInputLabel");
6234
6234
  return G(), Z("div", fi, [
6235
6235
  Me(e.$slots, "label", {}, () => [
@@ -6330,7 +6330,7 @@ const ws = /* @__PURE__ */ Re(di, [["render", mi]]), yi = Ne({
6330
6330
  key: 0,
6331
6331
  class: "node-red-vue-input-error-message"
6332
6332
  };
6333
- function $i(e, t, r, n, u, a) {
6333
+ function $i(e, t, r, n, i, a) {
6334
6334
  const o = me("NodeRedInputLabel");
6335
6335
  return G(), Z("div", gi, [
6336
6336
  Me(e.$slots, "label", {}, () => [
@@ -6445,7 +6445,7 @@ const Es = /* @__PURE__ */ Re(yi, [["render", $i]]), bi = Ne({
6445
6445
  key: 0,
6446
6446
  class: "node-red-vue-input-error-message"
6447
6447
  };
6448
- function Si(e, t, r, n, u, a) {
6448
+ function Si(e, t, r, n, i, a) {
6449
6449
  const o = me("NodeRedInputLabel");
6450
6450
  return G(), Z("div", wi, [
6451
6451
  Me(e.$slots, "label", {}, () => [
@@ -6675,8 +6675,8 @@ const Ps = /* @__PURE__ */ Re(bi, [["render", Si]]), Ni = Ne({
6675
6675
  }, r = () => {
6676
6676
  var n;
6677
6677
  e.saveView(), (n = this.editorInstance) == null || n.setValue(e.getValue(), -1), setTimeout(() => {
6678
- var u, a;
6679
- (u = this.editorInstance) == null || u.restoreView(), (a = this.editorInstance) == null || a.focus();
6678
+ var i, a;
6679
+ (i = this.editorInstance) == null || i.restoreView(), (a = this.editorInstance) == null || a.focus();
6680
6680
  }, 250), RED.tray.close();
6681
6681
  };
6682
6682
  this.expandedEditorTray = {
@@ -6697,10 +6697,10 @@ const Ps = /* @__PURE__ */ Re(bi, [["render", Si]]), Ni = Ne({
6697
6697
  }
6698
6698
  ],
6699
6699
  open: (n) => {
6700
- const u = $(
6700
+ const i = $(
6701
6701
  '<form id="dialog-form" class="form-horizontal" autocomplete="off"></form>'
6702
6702
  ).appendTo(n.find(".red-ui-tray-body"));
6703
- u.html(
6703
+ i.html(
6704
6704
  '<div id="expanded-editor-input" style="height: 100%"></div>'
6705
6705
  ), e = RED.editor.createEditor({
6706
6706
  id: "expanded-editor-input",
@@ -6708,7 +6708,7 @@ const Ps = /* @__PURE__ */ Re(bi, [["render", Si]]), Ni = Ne({
6708
6708
  mode: this.language,
6709
6709
  focus: !0,
6710
6710
  value: this.effectiveValue
6711
- }), u.i18n();
6711
+ }), i.i18n();
6712
6712
  const a = n.find(".red-ui-tray-body")[0], o = document.createElement("div");
6713
6713
  o.className = "red-ui-tray-footer", a.insertAdjacentElement("afterend", o), this.trayElement = o, this.$emit("tray-open", this.trayElement);
6714
6714
  },
@@ -6725,7 +6725,7 @@ const Ps = /* @__PURE__ */ Re(bi, [["render", Si]]), Ni = Ne({
6725
6725
  ref: "container",
6726
6726
  class: "container"
6727
6727
  }, Ri = { class: "editor-wrapper" }, Ii = ["id"];
6728
- function ji(e, t, r, n, u, a) {
6728
+ function ji(e, t, r, n, i, a) {
6729
6729
  const o = me("NodeRedInputLabel");
6730
6730
  return G(), Z(
6731
6731
  "div",
@@ -6745,7 +6745,7 @@ function ji(e, t, r, n, u, a) {
6745
6745
  {
6746
6746
  ref: "expand-button",
6747
6747
  class: "red-ui-button red-ui-button-small expand-button",
6748
- onClick: t[0] || (t[0] = (...i) => e.onClickExpand && e.onClickExpand(...i))
6748
+ onClick: t[0] || (t[0] = (...u) => e.onClickExpand && e.onClickExpand(...u))
6749
6749
  },
6750
6750
  [...t[1] || (t[1] = [
6751
6751
  Y(
@@ -6810,7 +6810,7 @@ const Ss = /* @__PURE__ */ Re(Ni, [["render", ji], ["__scopeId", "data-v-ea93e88
6810
6810
  key: 0,
6811
6811
  class: "nrg-toggle__label"
6812
6812
  };
6813
- function Mi(e, t, r, n, u, a) {
6813
+ function Mi(e, t, r, n, i, a) {
6814
6814
  return G(), Z("div", qi, [
6815
6815
  Y(
6816
6816
  "label",
@@ -6883,11 +6883,11 @@ function Ci(e) {
6883
6883
  }
6884
6884
  function Kn(e, t, r, n) {
6885
6885
  var h;
6886
- const u = n || t.title || Di(e), a = t["x-nrg-form"] ?? {}, o = a.icon || "";
6886
+ const i = n || t.title || Di(e), a = t["x-nrg-form"] ?? {}, o = a.icon || "";
6887
6887
  if (t["x-nrg-node-type"])
6888
6888
  return {
6889
6889
  key: e,
6890
- label: u,
6890
+ label: i,
6891
6891
  icon: o,
6892
6892
  inputType: "config",
6893
6893
  required: r,
@@ -6896,7 +6896,7 @@ function Kn(e, t, r, n) {
6896
6896
  if (Ci(t))
6897
6897
  return {
6898
6898
  key: e,
6899
- label: u,
6899
+ label: i,
6900
6900
  icon: o,
6901
6901
  inputType: "typed",
6902
6902
  required: r,
@@ -6906,7 +6906,7 @@ function Kn(e, t, r, n) {
6906
6906
  if (t.type === "array" && ((h = t.items) != null && h.enum))
6907
6907
  return {
6908
6908
  key: e,
6909
- label: u,
6909
+ label: i,
6910
6910
  icon: o,
6911
6911
  inputType: "select",
6912
6912
  required: r,
@@ -6919,7 +6919,7 @@ function Kn(e, t, r, n) {
6919
6919
  if (t.enum)
6920
6920
  return {
6921
6921
  key: e,
6922
- label: u,
6922
+ label: i,
6923
6923
  icon: o,
6924
6924
  inputType: "select",
6925
6925
  required: r,
@@ -6932,7 +6932,7 @@ function Kn(e, t, r, n) {
6932
6932
  if (t.anyOf && t.anyOf.every((m) => m.const !== void 0))
6933
6933
  return {
6934
6934
  key: e,
6935
- label: u,
6935
+ label: i,
6936
6936
  icon: o,
6937
6937
  inputType: "select",
6938
6938
  required: r,
@@ -6946,7 +6946,7 @@ function Kn(e, t, r, n) {
6946
6946
  case "boolean":
6947
6947
  return {
6948
6948
  key: e,
6949
- label: u,
6949
+ label: i,
6950
6950
  icon: o,
6951
6951
  inputType: "boolean",
6952
6952
  required: r,
@@ -6956,7 +6956,7 @@ function Kn(e, t, r, n) {
6956
6956
  case "integer":
6957
6957
  return {
6958
6958
  key: e,
6959
- label: u,
6959
+ label: i,
6960
6960
  icon: o,
6961
6961
  inputType: "number",
6962
6962
  required: r,
@@ -6965,23 +6965,23 @@ function Kn(e, t, r, n) {
6965
6965
  case "array":
6966
6966
  return a.editorLanguage ? {
6967
6967
  key: e,
6968
- label: u,
6968
+ label: i,
6969
6969
  icon: o,
6970
6970
  inputType: "editor",
6971
6971
  required: r,
6972
6972
  language: a.editorLanguage
6973
- } : { key: e, label: u, icon: o, inputType: "array-text", required: r };
6973
+ } : { key: e, label: i, icon: o, inputType: "array-text", required: r };
6974
6974
  case "object":
6975
6975
  return a.editorLanguage ? {
6976
6976
  key: e,
6977
- label: u,
6977
+ label: i,
6978
6978
  icon: o,
6979
6979
  inputType: "editor",
6980
6980
  required: r,
6981
6981
  language: a.editorLanguage
6982
6982
  } : {
6983
6983
  key: e,
6984
- label: u,
6984
+ label: i,
6985
6985
  icon: o,
6986
6986
  inputType: "text",
6987
6987
  required: r,
@@ -6990,14 +6990,14 @@ function Kn(e, t, r, n) {
6990
6990
  default:
6991
6991
  return a.editorLanguage ? {
6992
6992
  key: e,
6993
- label: u,
6993
+ label: i,
6994
6994
  icon: o,
6995
6995
  inputType: "editor",
6996
6996
  required: r,
6997
6997
  language: a.editorLanguage
6998
6998
  } : {
6999
6999
  key: e,
7000
- label: u,
7000
+ label: i,
7001
7001
  icon: o,
7002
7002
  inputType: "text",
7003
7003
  required: r,
@@ -7049,12 +7049,12 @@ const zi = Ne({
7049
7049
  const e = (n = (r = this.schema) == null ? void 0 : r.properties) == null ? void 0 : n.credentials;
7050
7050
  if (!(e != null && e.properties)) return [];
7051
7051
  const t = new Set(e.required ?? []);
7052
- return Object.entries(e.properties).map(([u, a]) => {
7052
+ return Object.entries(e.properties).map(([i, a]) => {
7053
7053
  const o = Kn(
7054
- u,
7054
+ i,
7055
7055
  a,
7056
- t.has(u),
7057
- this.resolveI18n("credentials", u)
7056
+ t.has(i),
7057
+ this.resolveI18n("credentials", i)
7058
7058
  );
7059
7059
  return o.inputType !== "text" ? {
7060
7060
  ...o,
@@ -7075,8 +7075,8 @@ const zi = Ne({
7075
7075
  key: 0,
7076
7076
  class: "node-red-vue-input-error-message"
7077
7077
  };
7078
- function Wi(e, t, r, n, u, a) {
7079
- const o = me("NodeRedInput"), i = me("NodeRedToggle"), h = me("NodeRedInputLabel"), m = me("NodeRedSelectInput"), v = me("NodeRedTypedInput"), N = me("NodeRedConfigInput"), b = me("NodeRedEditorInput");
7078
+ function Wi(e, t, r, n, i, a) {
7079
+ const o = me("NodeRedInput"), u = me("NodeRedToggle"), h = me("NodeRedInputLabel"), m = me("NodeRedSelectInput"), v = me("NodeRedTypedInput"), N = me("NodeRedConfigInput"), b = me("NodeRedEditorInput");
7080
7080
  return G(), Z("div", null, [
7081
7081
  (G(!0), Z(
7082
7082
  Ge,
@@ -7095,7 +7095,7 @@ function Wi(e, t, r, n, u, a) {
7095
7095
  required: c.required,
7096
7096
  error: e.errors[`node.${c.key}`]
7097
7097
  }, null, 8, ["value", "onUpdate:value", "type", "label", "icon", "required", "error"])) : c.inputType === "boolean" && c.toggle ? (G(), Z("div", Li, [
7098
- Se(i, {
7098
+ Se(u, {
7099
7099
  "model-value": e.node[c.key],
7100
7100
  label: c.label,
7101
7101
  icon: c.icon,
@@ -7211,15 +7211,15 @@ function Wi(e, t, r, n, u, a) {
7211
7211
  }
7212
7212
  const Bn = /* @__PURE__ */ Re(zi, [["render", Wi]]);
7213
7213
  function Gi(e, t, r, n) {
7214
- const u = Vs(xa, {
7214
+ const i = Vs(xa, {
7215
7215
  node: e,
7216
7216
  schema: r,
7217
7217
  features: n
7218
7218
  });
7219
- return u.component("NodeRedInputLabel", Ve), u.component("NodeRedToggle", Ns), u.component("NodeRedInput", bs), u.component("NodeRedTypedInput", ws), u.component("NodeRedConfigInput", Es), u.component("NodeRedSelectInput", Ps), u.component("NodeRedEditorInput", Ss), u.component("NodeRedJsonSchemaForm", Bn), u.component("NodeRedNodeForm", (t == null ? void 0 : t.component) ?? Bn), u.config.globalProperties.$i18n = (a) => e._(`${e.type}.${a}`), u;
7219
+ return i.component("NodeRedInputLabel", Ve), i.component("NodeRedToggle", Ns), i.component("NodeRedInput", bs), i.component("NodeRedTypedInput", ws), i.component("NodeRedConfigInput", Es), i.component("NodeRedSelectInput", Ps), i.component("NodeRedEditorInput", Ss), i.component("NodeRedJsonSchemaForm", Bn), i.component("NodeRedNodeForm", (t == null ? void 0 : t.component) ?? Bn), i.config.globalProperties.$i18n = (a) => e._(`${e.type}.${a}`), i;
7220
7220
  }
7221
- function Ji(e, t, r, n, u) {
7222
- $(`#${u}`).empty(), e._newState = ha(e), e._app = Gi(e._newState, t, r, n), e._app.mount(`#${u}`);
7221
+ function Ji(e, t, r, n, i) {
7222
+ $(`#${i}`).empty(), e._newState = ha(e), e._app = Gi(e._newState, t, r, n), e._app.mount(`#${i}`);
7223
7223
  }
7224
7224
  function ur(e) {
7225
7225
  e._app && (e._app.unmount(), e._app = null);
@@ -7231,18 +7231,18 @@ function Hn(e) {
7231
7231
  return Object.keys(e._def.defaults ?? {}).forEach((r) => {
7232
7232
  t[r] = e[r];
7233
7233
  }), e._def.credentials && Object.keys(e._def.credentials).forEach((r) => {
7234
- var n, u;
7235
- t.credentials[r] = (n = e.credentials) == null ? void 0 : n[r], e._def.credentials[r].type === "password" && (t.credentials[`has_${r}`] = ((u = e.credentials) == null ? void 0 : u[`has_${r}`]) || !1);
7234
+ var n, i;
7235
+ t.credentials[r] = (n = e.credentials) == null ? void 0 : n[r], e._def.credentials[r].type === "password" && (t.credentials[`has_${r}`] = ((i = e.credentials) == null ? void 0 : i[`has_${r}`]) || !1);
7236
7236
  }), t;
7237
7237
  }
7238
7238
  function Os(e, t) {
7239
7239
  const r = {};
7240
- return (/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t ?? {})])).forEach((u) => {
7241
- const a = e[u], o = (t ?? {})[u];
7240
+ return (/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t ?? {})])).forEach((i) => {
7241
+ const a = e[i], o = (t ?? {})[i];
7242
7242
  if (!Array.isArray(a) && typeof a == "object" && a !== null) {
7243
- const i = Os(a, o);
7244
- Object.keys(i).length && (r[u] = i);
7245
- } else ga(a, o) || (r[u] = a);
7243
+ const u = Os(a, o);
7244
+ Object.keys(u).length && (r[i] = u);
7245
+ } else ga(a, o) || (r[i] = a);
7246
7246
  }), r;
7247
7247
  }
7248
7248
  function Rs(e, t) {
@@ -7277,29 +7277,27 @@ function Qi(e) {
7277
7277
  };
7278
7278
  }
7279
7279
  function Xi(e, t, r, n) {
7280
- return function(u) {
7281
- if (t && typeof t == "object" && !Array.isArray(t) && !("type" in t || "properties" in t)) {
7282
- const a = Object.keys(t);
7283
- if (u < a.length) return a[u];
7284
- }
7280
+ return function(i) {
7281
+ if (t && i < t.length)
7282
+ return t[i];
7285
7283
  if (r) {
7286
7284
  let a = n;
7287
7285
  if (this.errorPort) {
7288
- if (u === a) return "Error";
7286
+ if (i === a) return "Error";
7289
7287
  a++;
7290
7288
  }
7291
7289
  if (this.completePort) {
7292
- if (u === a) return "Complete";
7290
+ if (i === a) return "Complete";
7293
7291
  a++;
7294
7292
  }
7295
7293
  if (this.statusPort) {
7296
- if (u === a) return "Status";
7294
+ if (i === a) return "Status";
7297
7295
  a++;
7298
7296
  }
7299
7297
  }
7300
7298
  return Ht(
7301
7299
  this,
7302
- `${e}.outputLabels.${u}`,
7300
+ `${e}.outputLabels.${i}`,
7303
7301
  `${e}.outputLabels`
7304
7302
  );
7305
7303
  };
@@ -7320,46 +7318,46 @@ function xi(e) {
7320
7318
  if (!((o = (a = e._def.defaults) == null ? void 0 : a[t]) != null && o.type)) return;
7321
7319
  const r = e[t], n = e._newState[t];
7322
7320
  if (r === n) return;
7323
- const u = RED.nodes.node(r);
7324
- if (u && u._def.category === "config") {
7325
- const i = u.users.findIndex(
7321
+ const i = RED.nodes.node(r);
7322
+ if (i && i._def.category === "config") {
7323
+ const u = i.users.findIndex(
7326
7324
  (h) => h.id === e.id
7327
7325
  );
7328
- i !== -1 && u.users.splice(i, 1);
7326
+ u !== -1 && i.users.splice(u, 1);
7329
7327
  }
7330
7328
  }), Object.keys(e._def.defaults ?? {}).forEach((t) => {
7331
- var u, a;
7332
- if (!((a = (u = e._def.defaults) == null ? void 0 : u[t]) != null && a.type)) return;
7329
+ var i, a;
7330
+ if (!((a = (i = e._def.defaults) == null ? void 0 : i[t]) != null && a.type)) return;
7333
7331
  const r = e._newState[t];
7334
7332
  if (!r) return;
7335
7333
  const n = RED.nodes.node(r);
7336
7334
  n && n._def.category === "config" && n.users.findIndex(
7337
- (i) => i.id === e.id
7335
+ (u) => u.id === e.id
7338
7336
  ) === -1 && n.users.push(e);
7339
7337
  });
7340
7338
  }
7341
7339
  function eu(e, t, r) {
7342
7340
  Object.keys(e._def.defaults ?? {}).forEach((n) => {
7343
7341
  if (e._def.defaults[n].type) return;
7344
- const u = `node-config-input-${n}`;
7345
- let a = $(`#${u}`);
7346
- a.length || (a = $("<input>", { type: "hidden", id: u }), $(`#${r}`).append(a)), a.val(t[n] ?? "");
7342
+ const i = `node-config-input-${n}`;
7343
+ let a = $(`#${i}`);
7344
+ a.length || (a = $("<input>", { type: "hidden", id: i }), $(`#${r}`).append(a)), a.val(t[n] ?? "");
7347
7345
  });
7348
7346
  }
7349
7347
  function tu(e, t) {
7350
- var n, u, a;
7348
+ var n, i, a;
7351
7349
  const r = "errorPort" in e || "completePort" in e || "statusPort" in e;
7352
7350
  if (r && !("outputs" in e)) {
7353
7351
  let o = t;
7354
- (n = e.errorPort) != null && n.value && o++, (u = e.completePort) != null && u.value && o++, (a = e.statusPort) != null && a.value && o++, e.outputs = { value: o };
7352
+ (n = e.errorPort) != null && n.value && o++, (i = e.completePort) != null && i.value && o++, (a = e.statusPort) != null && a.value && o++, e.outputs = { value: o };
7355
7353
  }
7356
7354
  return { hasBuiltinPorts: r, baseOutputs: t };
7357
7355
  }
7358
7356
  function ru(e, t) {
7359
- const n = !!e && typeof e == "object" && !Array.isArray(e) && !("type" in e || "properties" in e) ? Object.keys(e) : [], u = [];
7360
- for (let a = 0; a < t; a++)
7361
- u.push({ index: a, label: n[a] ?? `Output ${a}` });
7362
- return u;
7357
+ const r = e ?? [], n = [];
7358
+ for (let i = 0; i < t; i++)
7359
+ n.push({ index: i, label: r[i] ?? `Output ${i}` });
7360
+ return n;
7363
7361
  }
7364
7362
  async function nu(e) {
7365
7363
  const { type: t } = e;
@@ -7394,7 +7392,7 @@ async function nu(e) {
7394
7392
  }
7395
7393
  ]
7396
7394
  };
7397
- }, u = function() {
7395
+ }, i = function() {
7398
7396
  ur(this);
7399
7397
  }, a = function() {
7400
7398
  ur(this);
@@ -7402,7 +7400,7 @@ async function nu(e) {
7402
7400
  const o = {
7403
7401
  ...Is[t] ?? {},
7404
7402
  ...e
7405
- }, i = o.defaults ? { ...o.defaults } : void 0, h = o.credentials ?? void 0, m = `nrg-app-${t}`;
7403
+ }, u = o.defaults ? { ...o.defaults } : void 0, h = o.credentials ?? void 0, m = `nrg-app-${t}`;
7406
7404
  $("<script>", {
7407
7405
  type: "text/html",
7408
7406
  "data-template-name": t,
@@ -7413,19 +7411,19 @@ async function nu(e) {
7413
7411
  o.credentialsSchema
7414
7412
  );
7415
7413
  let N = !1, b = o.outputs || 0;
7416
- i && ({ hasBuiltinPorts: N, baseOutputs: b } = tu(
7417
- i,
7414
+ u && ({ hasBuiltinPorts: N, baseOutputs: b } = tu(
7415
+ u,
7418
7416
  b
7419
7417
  ));
7420
7418
  const c = ru(
7421
- o.outputsSchema,
7419
+ o.outputPortNames,
7422
7420
  b
7423
7421
  );
7424
- if (v && i) {
7425
- const g = Object.keys(i)[0];
7422
+ if (v && u) {
7423
+ const g = Object.keys(u)[0];
7426
7424
  if (g) {
7427
- const { required: E, ...d } = i[g];
7428
- i[g] = {
7425
+ const { required: E, ...d } = u[g];
7426
+ u[g] = {
7429
7427
  ...d,
7430
7428
  validate: function(y, s) {
7431
7429
  return na(this, v);
@@ -7435,7 +7433,7 @@ async function nu(e) {
7435
7433
  }
7436
7434
  RED.nodes.registerType(t, {
7437
7435
  type: t,
7438
- defaults: i,
7436
+ defaults: u,
7439
7437
  credentials: h,
7440
7438
  category: o.category,
7441
7439
  color: o.color || "#FFFFFF",
@@ -7448,7 +7446,7 @@ async function nu(e) {
7448
7446
  inputLabels: o.inputLabels || Qi(t),
7449
7447
  outputLabels: o.outputLabels || Xi(
7450
7448
  t,
7451
- o.outputsSchema,
7449
+ o.outputPortNames,
7452
7450
  N,
7453
7451
  b
7454
7452
  ),
@@ -7456,7 +7454,7 @@ async function nu(e) {
7456
7454
  button: o.button ? { ...o.button, onclick: o.button.onClick } : void 0,
7457
7455
  oneditprepare: r,
7458
7456
  oneditsave: n,
7459
- oneditcancel: u,
7457
+ oneditcancel: i,
7460
7458
  oneditdelete: a,
7461
7459
  oneditresize: o.onEditResize,
7462
7460
  onpaletteadd: o.onPaletteAdd,